diff --git a/hostd/assets/404.html b/hostd/assets/404.html index c9b298d14..7c0190d6b 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/9ig4hKTnhTzQ5_BietKPm/_buildManifest.js b/hostd/assets/_next/static/9ig4hKTnhTzQ5_BietKPm/_buildManifest.js deleted file mode 100644 index 232da8b0c..000000000 --- a/hostd/assets/_next/static/9ig4hKTnhTzQ5_BietKPm/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-e7b77d077e51306b.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/config":["static/chunks/pages/config-b347e9e06b4beab4.js"],"/contracts":["static/chunks/pages/contracts-8745a389d33b43c3.js"],"/login":["static/chunks/pages/login-7b3bb221a6795fa1.js"],"/node":["static/chunks/pages/node-a334faf802742481.js"],"/volumes":["static/chunks/pages/volumes-b3be04e94991e699.js"],"/wallet":["static/chunks/pages/wallet-1f360997513d57eb.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/chunks/pages/_app-c0b39fc3248dc647.js b/hostd/assets/_next/static/chunks/pages/_app-52123370ea316fb5.js similarity index 51% rename from hostd/assets/_next/static/chunks/pages/_app-c0b39fc3248dc647.js rename to hostd/assets/_next/static/chunks/pages/_app-52123370ea316fb5.js index eb269054f..a64c9af62 100644 --- a/hostd/assets/_next/static/chunks/pages/_app-c0b39fc3248dc647.js +++ b/hostd/assets/_next/static/chunks/pages/_app-52123370ea316fb5.js @@ -1,20 +1,20 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{44711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizeObserver:function(){return q},ResizeObserverEntry:function(){return S},ResizeObserverSize:function(){return c}});var r,i,o,a=[],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,o=e.offsetHeight;return!(i||o||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/,x=/^tb|vertical/,b=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},E=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)},j=u({devicePixelContentBoxSize:E(),borderBoxSize:E(),contentBoxSize:E(),contentRect:new d(0,0,0,0)}),k=function(e,t){if(void 0===t&&(t=!1),g.has(e)&&!t)return g.get(e);if(h(e))return g.set(e,j),j;var n=getComputedStyle(e),r=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===n.boxSizing,o=x.test(n.writingMode||""),a=!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),k=r?0:w(n.borderRightWidth),_=r?0:w(n.borderBottomWidth),S=r?0:w(n.borderLeftWidth),O=m+c,C=l+p,M=S+k,A=v+_,P=s?e.offsetHeight-A-e.clientHeight:0,T=a?e.offsetWidth-M-e.clientWidth:0,N=r?r.width:w(n.width)-(i?O+M:0)-T,R=r?r.height:w(n.height)-(i?C+A:0)-P,D=N+O+T+M,L=R+C+P+A,F=u({devicePixelContentBoxSize:E(Math.round(N*devicePixelRatio),Math.round(R*devicePixelRatio),o),borderBoxSize:E(D,L,o),contentBoxSize:E(N,R,o),contentRect:new d(m,l,N,R)});return g.set(e,F),F},_=function(e,t,n){var r=k(e,n),o=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return o;default:return a}},S=function(e){var t=k(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},O=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},C=function(){var e=1/0,t=[];a.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new S(t.target),i=O(t.target);r.push(n),t.lastReportedSize=_(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},A=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=C());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},P=[],T=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return P.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}P.push(e),o()},N=function(e){T(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"],F=function(e){return void 0===e&&(e=0),Date.now()+e},V=!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),!V){V=!0;var n=F(e);N(function(){var r=!1;try{r=A()}finally{if(V=!1,e=n-F(),!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}()),I=function(e){!R&&e>0&&z.start(),(R+=e)||z.stop()},Z=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=_(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&&a.push(r),r.observationTargets.push(new Z(t,n&&n.box)),I(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&&a.splice(a.indexOf(n),1),n.observationTargets.splice(r,1),I(-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 o}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return o},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,o=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(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 o=(0,r.createContext)(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,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][a])||o,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),o=i[`__scope${r}`];return{...t,...o}},{});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 Y},VY:function(){return $},aV:function(){return q},dk:function(){return G},fC:function(){return H},h_:function(){return W},x8:function(){return K},xz:function(){return U}});var r=n(7896),i=n(2784),o=n(41816),a=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(88965),g=n(49732),y=n(99575);let x="Dialog",[b,w]=(0,s.b)(x),[E,j]=b(x),k=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=j("DialogTrigger",n),u=(0,a.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":I(l.open)},s,{ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)}))}),_="DialogPortal",[S,O]=b(_,{forceMount:void 0}),C="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=O(C,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=j(C,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:o||s.open},(0,i.createElement)(A,(0,r.Z)({},a,{ref:t}))):null}),A=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j(C,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":I(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),P="DialogContent",T=(0,i.forwardRef)((e,t)=>{let n=O(P,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=j(P,e.__scopeDialog);return(0,i.createElement)(h.z,{present:o||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},a,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},a,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=j(P,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,a.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,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=j(P,e.__scopeDialog),o=(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||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0);let a=t.target,s=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);s&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=j(P,n),h=(0,i.useRef)(null),p=(0,a.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,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":I(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:a.titleId},o,{ref:t}))}),V=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:a.descriptionId},o,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,s=j("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))}))});function I(e){return e?"open":"closed"}let[Z,B]=(0,s.k)("DialogTitleWarning",{contentName:P,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:o,onChange:a});return(0,i.createElement)(E,{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=k,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=j(_,t);return(0,i.createElement)(S,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||a.open},(0,i.createElement)(f.h,{asChild:!0,container:o},e))))},q=M,$=T,Y=F,G=V,K=z},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),o=n(2784),a=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...x}=e,b=(0,o.useContext)(d),[w,E]=(0,o.useState)(null),[,j]=(0,o.useState)({}),k=(0,l.e)(t,e=>E(e)),_=Array.from(b.layers),[S]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),O=_.indexOf(S),C=w?_.indexOf(w):-1,M=b.layersWithOutsidePointerEventsDisabled.size>0,A=C>=O,P=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.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=[...b.branches].some(e=>e.contains(t));!A||n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==y||y())}),T=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1);return(0,o.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,n=[...b.branches].some(e=>e.contains(t));n||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=C===b.layers.size-1;t&&(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,o.useEffect)(()=>{if(w)return n&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(w)),b.layers.add(w),h(),()=>{n&&1===b.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,b]),(0,o.useEffect)(()=>()=>{w&&(b.layers.delete(w),b.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,b]),(0,o.useEffect)(()=>{let e=()=>j({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},x,{ref:k,style:{pointerEvents:M?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,P.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(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?(0,s.jH)(i,o):i.dispatchEvent(o)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(2784);let i=0;function o(){(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:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),o=n(2784),a=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[x,b]=(0,o.useState)(null),w=(0,l.W)(f),E=(0,l.W)(g),j=(0,o.useRef)(null),k=(0,a.e)(t,e=>b(e)),_=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(_.paused||!x)return;let t=e.target;x.contains(t)?j.current=t:m(j.current,{select:!0})}function t(e){_.paused||!x||x.contains(e.relatedTarget)||m(j.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,x,_.paused]),(0,o.useEffect)(()=>{if(x){v.add(_);let e=document.activeElement,t=x.contains(e);if(!t){let t=new CustomEvent(u,d);x.addEventListener(u,w),x.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(x).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(x))}return()=>{x.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);x.addEventListener(c,E),x.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),x.removeEventListener(c,E),v.remove(_)},0)}}},[x,w,E,_]);let S=(0,o.useCallback)(e=>{if(!n&&!r||_.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t),a=r&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,_.paused]);return(0,o.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:k,onKeyDown:S}))});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),o=n(64680);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.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),o=n(28316),a=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?o.createPortal((0,i.createElement)(a.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),o=n(26215),a=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t;let[n,o]=(0,r.useState)(),s=(0,r.useRef)({}),u=(0,r.useRef)(e),c=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[f,h]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},d));return(0,r.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,n=u.current,r=n!==e;if(r){let r=c.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"),u.current=e}},[e,h]),(0,a.b)(()=>{if(n){let e=e=>{let t=l(s.current),r=t.includes(e.animationName);e.target===n&&r&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===n&&(c.current=l(s.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,o.e)(s.ref,u.ref),d="function"==typeof n;return d||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),o=n(28316),a=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:o,...s}=e,l=o?a.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,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7896),i=n(2784),o=n(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.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)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)});a.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],o=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,o.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 o}});var r=n(2784),i=n(86029);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n),c=(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[l,c]}},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,x=void 0!==y&&y,b=e.left,w=e.numTicks,E=void 0===w?10:w,j=e.orientation,k=void 0===j?d.default.bottom:j,_=e.rangePadding,S=void 0===_?0:_,O=e.scale,C=e.tickFormat,M=e.tickLength,A=void 0===M?8:M,P=e.tickValues,T=e.top,N=function(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}(e,h),R=null!=C?C:(0,u.default)(O),D=k===d.default.left,L=k===d.default.top,F=L||k===d.default.bottom,V=(0,l.default)(O),z=D||L?-1:1,I=O.range(),Z=(0,f.default)(S),B=(0,c.default)({x:Number(I[0])+.5-Z.start,y:0},F),H=(0,c.default)({x:Number(I[I.length-1])+.5+Z.end,y:0},F),U=(null!=P?P:(0,a.getTicks)(O,E)).filter(function(e){return!x||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,a.coerceNumber)(V(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},F),to:(0,c.default)({x:r,y:A*z},F),formattedValue:R(t,n,U)}});return r.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===T?0:T,left:void 0===b?0:b},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:x,horizontal:F,numTicks:E,orientation:k,rangePadding:S,scale:O,tickFormat:R,tickLength:A,tickPosition:V,tickSign:z,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),o=n(71602),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:a.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)),o=l(n(81401)),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:a.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)),o=l(n(81401)),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:a.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)),o=l(n(81401)),a=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=a()).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!=(o=n.xMin)?o:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=o(n(30968)),i=o(n(98929));function o(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(),o=0;o<=i;o+=n){var a=e.getPointAtLength(o).matrixTransform(t);r.push(a)}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],o=(0,r.useRef)(null),a=(0,r.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){o.current&&(o.current(n),o.current=null)},[n]),[n,a]};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 o}});var r=n(49833),i=n(44321);function o(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 o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);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}:o({},a)}(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 o(e){return!!e&&"createSVGPoint"in e}function a(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 a},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return o},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)),o=f(n(72779)),a=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),S=null!=j?j:(0,u.getTicks)(r,void 0===b?10:b),O=(null!=E?E:0)+(0,c.default)(r)/2,C=S.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+O;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,o.default)("visx-columns",x),top:void 0===t?0:t,left:void 0===n?0:n},k?k({lines:C}):C.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},_))}))}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)),o=f(n(72779)),a=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),S=null!=k?k:(0,u.getTicks)(r,void 0===w?10:w),O=(null!=j?j:0)+(0,c.default)(r)/2,C=S.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+O;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,o.default)("visx-rows",x),top:void 0===t?0:t,left:void 0===n?0:n},b?b({lines:C}):C.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:E},_))}))}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),o=n(2784),a=n(72779),s=n.n(a),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 o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}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 o},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 o(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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(o.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 o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),o=l(n(65154)),a=["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,a);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(o.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)),o=s(n(55727)),a=["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,o.useTransition)(n,u({},(0,a.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,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(o.animated.line,u({key:h,x1:r,x2:a,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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a);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(o.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)),o=s(n(55727)),a=["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,o.useRef)(null),y=(0,o.useRef)(0),x=(0,o.useState)({width:0,height:0,top:0,left:0}),b=x[0],w=x[1],E=(0,o.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,o.useEffect)(function(){var e=new a.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;y.current=window.requestAnimationFrame(function(){E({width:i,height:o,top:r,left:n})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=E&&E.cancel&&E.cancel()}},[E]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},b,{ref:g.current,resize:E})))}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),o=n(70590),a=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,o.Z)(e);case"sqrt":return(0,a.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 _.Z},createScale:function(){return b.Z},getTicks:function(){return S.Z},inferScaleType:function(){return k},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return C.Z},scaleLinear:function(){return o.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 x.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return O.Z},updateScale:function(){return E}});var r=n(26587),i=n(71646),o=n(8597),a=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.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),x=n(50630),b=n(2663),w=s.Z.apply(void 0,s.a),E=function(e,t){return w(e.copy(),t)},j=n(40668);function k(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,j.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var _=n(28142),S=n(71220),O=n(51519),C=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return S},Z:function(){return C}});var r=n(88751),i=n(87286),o=n(43780),a=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.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),x=n(94758),b=n(97631),w=n(2908),E=n(40668),j={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},k={day:v.Z,hour:g.Z,minute:y.Z,month:x.Z,second:h.Z,week:b.Ox,year:w.Z},_=n(74672),S=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],O={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,E.Z)(e);if("string"==typeof n)e.nice(r?k[n]:j[n]);else{var i=n.interval,o=n.step,a=(r?k[i]:j[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0||(i[n]=e[n]);return i}(e,s),y=(0,a.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:o()("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),S=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),O=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:x,sortValues:b}),C=O(void 0===s?[]:s);return E?r.createElement(r.Fragment,null,E({arcs:C,path:S,pie:O})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},C.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:o()("visx-pie-arc",t),d:S(e)||"",fill:null==k||"string"==typeof k?k:k(e)},_)),null==l?void 0:l(S.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),m=(0,a.aJ)({angle:n,radius:i,defined:s,curve:l});return f?r.createElement(r.Fragment,null,f({path:m})):r.createElement("path",g({ref:d,className:o()("visx-line-radial",t),d:m(c)||"",fill:void 0===h?"transparent":h},p))}var x=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x),y=(0,a.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===h?function(){return!0}:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:y})):r.createElement("path",b({ref:v,className:o()("visx-area",p),d:y(f)||""},g))}var E=n(55746),j=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,j),_=(0,a.kn)({keys:s,value:g,order:y,offset:x}),S=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),O=_(l);return w?r.createElement(r.Fragment,null,w({stacks:O,path:S,stack:_})):r.createElement(c.Z,{top:n,left:i},O.map(function(e,n){return r.createElement("path",k({className:o()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:S(e)||"",fill:null==b?void 0:b(e.key,n)},E))}))}var S=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,S);return r.createElement(_,O({className:t,top:n,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},b),x||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",O({className:o()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},b))})})}var M=n(14582),A=n(10897);function P(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 T=["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,T),g=P(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:o()("visx-bar-group",n),top:i,left:a},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=P(f),x=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(x)):r.createElement(c.Z,{className:o()("visx-bar-group-horizontal",n),top:i,left:a},x.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 V=n(98926);function z(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function I(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function Z(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),Y=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Y),E=(0,V.Z)();v&&E.keys(v),g&&(0,W.Z)(E.value,g),y&&E.order((0,q.ZP)(y)),x&&E.offset((0,$.ZP)(x));var j=E(t),k=P(h),_=j.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),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-k/2);return{bar:t,key:n,index:r,height:i,width:k,x:a||0,y:o||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(_)):r.createElement(c.Z,{className:o()("visx-bar-stack",n),top:i,left:a},_.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,G({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var X=["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,X),E=(0,V.Z)();v&&E.keys(v),g&&(0,W.Z)(E.value,g),y&&E.order((0,q.ZP)(y)),x&&E.offset((0,$.ZP)(x));var j=E(t),k=P(p),_=j.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),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:k,width:i,x:o||0,y:a||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(_)):r.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:a},_.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?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["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,ea),h=s||el({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:a,className:o()("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?Z:c,target:void 0===d?B:d,angle:void 0===l?z:l,radius:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:a,className:o()("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?Z:d,target:void 0===f?B:f,x:void 0===u?I: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:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var ex=["className","children","data","innerRef","path","percent","x","y","source","target"];function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ex),p=s||ew({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eb({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var ej=["className","children","data","innerRef","path","percent","x","y","source","target"];function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ej),p=s||e_({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ek({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eO=["className","children","innerRef","data","path","x","y","source","target"];function eC(){return(eC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eO),h=s||eM({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eC({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},f))}var eP=["className","innerRef","data","path","x","y","source","target","children"];function eT(){return(eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eP),h=a||eN({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eT({ref:n,className:o()("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=a||eF({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var ez=["className","innerRef","data","path","percent","x","y","source","target","children"];function eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ez),p=a||eZ({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I: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",eI({ref:n,className:o()("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=a||eW({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?I:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:o()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var e$=["className","innerRef","data","path","x","y","source","target","children"];function eY(){return(eY=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 eK(e){var t=e.className,n=e.innerRef,i=e.data,a=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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=a||eG({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eY({ref:n,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["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,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eJ:i,rotate:void 0===a?0:a}).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:o()("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:o()("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+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[k+1];)k+=1;c[k].push(S)}}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),o=n.n(i),a=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),E=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===v?function(){return!0}:v,curve:y});return(null==f?E.y0(h.range()[0]):(0,a.Z)(E.y0,f),c&&!d&&(0,a.Z)(E.y1,c),d&&!c&&(0,a.Z)(E.y1,d),b)?r.createElement(r.Fragment,null,b({path:E})):r.createElement("path",u({ref:x,className:o()("visx-area-closed",g),d:E(m)||""},w))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["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,a);return r.createElement("rect",s({ref:n,className:o()("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),o=n.n(i),a=["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,a),z=(n=(t={x:k,y:_,width:S,height:O,radius:C,all:void 0!==M&&M,top:void 0!==A&&A,bottom:void 0!==P&&P,left:void 0!==T&&T,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==F&&F}).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,x=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,b=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+x+" h"+(g-b)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-b)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(b-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(b-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:j,className:o()("visx-bar-rounded",E),d:z},V))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["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,a),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("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),o=n.n(i),a=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),g=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",l({ref:p,className:o()("visx-linepath",f),d:g(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))}},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(12235),o=n(79767),a=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,o=t.cornerRadius,a=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!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),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,o=t.x1,a=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),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),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,a=t.curve,s=(0,o.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),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,o=t.curve,a=(0,s.Z)();return n&&(0,u.Z)(a.angle,n),r&&(0,u.Z)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),n&&(0,u.Z)(o.value,n),r&&o.order((0,c.ZP)(r)),i&&o.offset((0,d.ZP)(i)),o}},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),o=n(90541),a=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:a.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),o=n(12197),a=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:a.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=void 0===h?[]:h,m=e.defined,v=e.className,g=e.curve,y=e.innerRef,x=function(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}(e,a),b=(0,o.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===m?function(){return!0}:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:b})):r.default.createElement("path",l({ref:y,className:(0,i.default)("visx-area",v),d:b(p)||""},x))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["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,o),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=a(n(2784)),i=a(n(72779)),o=["from","to","fill","className","innerRef"];function a(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,a),g=(0,o.line)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",l({ref:p,className:(0,i.default)("visx-linepath",f),d:g(s)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["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,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,x=g.startDy,b=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",a({ref:c,transform:b},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?x: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),o=n.n(i),a=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,x=function(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}(e,s),b=x.x,w=void 0===b?0:b,E=x.y,j=void 0===E?0:E,k=!u(w)||!u(j),_=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),S=_.wordsWithWidth,O=_.spaceWidth,C=(0,r.useMemo)(function(){return k?[]:f||c?S.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+O0){var t=C[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=j-n*j;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+j+")"),e.length>0?e.join(" "):""},[k,w,j,f,c,C,d]);return{wordsByLines:C,startDy:M,transform:A}}},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 o.Z}});var r=n(64170),i=n(75715),o=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);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",o),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,o={},a=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];o[n]||(o[n]=new WeakMap);var l=o[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"),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}}},89644:function(e,t,n){e.exports=n(25644)},70353:function(e,t,n){"use strict";var r=n(93044),i=n(86955),o=n(92233),a=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 x=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var E=s(e.baseURL,e.url);function j(){if(x){var r="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:r,config:e,request:x}),x=null}}if(x.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=j:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(j)},x.onabort=function(){x&&(n(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,x,x)),x=null},x.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,x)),x=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(E))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in x&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),g&&"json"!==g&&(x.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){x&&(n(!e||e&&e.type?new f:e),x.abort(),x=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var _=h(E);if(_&&-1===["http","https","file"].indexOf(_)){n(new d("Unsupported protocol "+_+":",d.ERR_BAD_REQUEST,e));return}x.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),o=n(62215),a=n(92937),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(10663));s.Axios=o,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, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.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?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},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 o(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,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"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,o(e))});return}}e(n,l)}}),n.pop()}else t.append(a,o(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(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),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,n){"use strict";var r,i,o=n(73644),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.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]"===a.call(e)}var x=l("URLSearchParams");function b(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)a[o=r[i]]||(t[o]=e[o],a[o]=!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 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){if(e===t)return[l,u];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},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,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;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,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)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 o,a=/^-?(?:\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,o=e[0]+"";ru^n?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^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 tP?h.c=h.e=null:e.e=10;s/=10,o++);o>P?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return j(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&F)return B(h=new V(e),S+h.e+1,O);if(f=String(e),u="number"==typeof e){if(0*e!=0)return j(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,V.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),o=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return j(h,String(e),u,t)}u=!1,(o=(f=E(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=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&&V.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>P)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new V(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=o||o<=C)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function I(e,t){for(var n,r=1,i=new V(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>P?e.c=e.e=null:n=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(r=r||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?c/d[i-a]: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==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),r)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>P?e.c=e.e=null:e.e=M?g(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return V.clone=e,V.ROUND_UP=0,V.ROUND_DOWN=1,V.ROUND_CEIL=2,V.ROUND_FLOOR=3,V.ROUND_HALF_UP=4,V.ROUND_HALF_DOWN=5,V.ROUND_HALF_EVEN=6,V.ROUND_HALF_CEIL=7,V.ROUND_HALF_FLOOR=8,V.EUCLID=9,V.config=V.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),S=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),O=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),C=n[0],M=n[1]):(m(n,-1e9,1e9,t),C=-(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),A=n[0],P=n[1];else if(m(n,-1e9,1e9,t),n)A=-(P=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))T=n;else throw T=!n,Error(u+"crypto unavailable")}else T=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);F="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:S,ROUNDING_MODE:O,EXPONENTIAL_AT:[C,M],RANGE:[A,P],CRYPTO:T,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},V.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!V.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===o||-1===o)&&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===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},V.maximum=V.max=function(){return I(arguments,k.lt)},V.minimum=V.min=function(){return I(arguments,k.gt)},V.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,o,a,c=0,f=[],h=new V(_);if(null==e?e=S:m(e,0,1e9),o=s(e/14),T){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw T=!1,Error(u+"crypto unavailable")}if(!T)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),V.sum=function(){for(var e=1,t=arguments,n=new V(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=S,x=O;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new V(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,a?(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=o,p=(f=w(f,m,g,x,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=x<4?(null!=v||d)&&(0==x||x==(f.s<0?3:2)):v>c||v==c&&(4==x||d||6==x&&1&p[l-1]||x==(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,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}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,o,a,s){var u,c,d,h,p,m,v,g,y,x,b,w,E,j,k,_,S,O=r.s==i.s?1:-1,C=r.c,M=i.c;if(!C||!C[0]||!M||!M[0])return new V(r.s&&i.s&&(C?!M||C[0]!=M[0]:M)?C&&0==C[0]||!M?0*O:O/0:NaN);for(y=(g=new V(O)).c=[],O=o+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),O=O/14|0),d=0;M[d]==(C[d]||0);d++);if(M[d]>(C[d]||0)&&c--,O<0)y.push(1),h=!0;else{for(j=C.length,_=M.length,d=0,O+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),C=e(C,p,s),_=M.length,j=C.length),E=_,b=(x=C.slice(0,_)).length;b<_;x[b++]=0);S=[0].concat(S=M.slice()),k=M[0],M[1]>=s/2&&k++;do{if(p=0,(u=t(M,x,_,b))<0){if(w=x[0],_!=b&&(w=w*s+(x[1]||0)),(p=l(w/k))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,b=x.length;1==t(m,x,v,b);)p--,n(m,_t(M,x,_,b);)p++,n(x,_=10;O/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,j=function(e,t,n,a){var s,l=n?t:t.replace(b,"");if(x.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,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new V(l,s);if(V.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},k.absoluteValue=k.abs=function(){var e=new V(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return p(this,new V(e,t))},k.decimalPlaces=k.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=O:m(t,0,8),B(new V(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},k.dividedBy=k.div=function(e,t){return w(this,new V(e,t),S,O)},k.dividedToIntegerBy=k.idiv=function(e,t){return w(this,new V(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var n,r,i,o,a,c,d,f,h,p=this;if((e=new V(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new V(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 V(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 V(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 o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new V(d?1/o:o);R&&(o=s(R/14+2))}for(c?(n=new V(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new V(_);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):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),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?h:(d&&(h=_.div(h)),t?h.mod(t):o?B(h,R,O,a):h)},k.integerValue=function(e){var t=new V(this);return null==e?e=O:m(e,0,8),B(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===p(this,new V(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return p(this,new V(e,t))>0},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=p(this,new V(e,t)))||0===t},k.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return 0>p(this,new V(e,t))},k.isLessThanOrEqualTo=k.lte=function(e,t){return -1===(t=p(this,new V(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new V(e,t)).s,!a||!t)return new V(NaN);if(a!=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 V(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new V(u[0]?this:3==O?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[o]+n)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=n}return n?++r:m.splice(0,1),Z(e,m,r)},k.negated=function(){var e=new V(this);return e.s=-e.s||null,e},k.plus=function(e,t){var n,r=this.s;if(t=(e=new V(e,t)).s,!r||!t)return new V(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new V(r/0);if(!a[0]||!s[0])return s[0]?e:new V(a[0]?this:0*r)}if(i=f(i),o=f(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),Z(e,a,o)},k.precision=k.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=O:m(t,0,8),B(new V(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},k.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,l=S+4,u=new V("0.5");if(1!==a||!o||!o[0])return new V(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,n=new V(t)):n=new V(a+""),n.c[0]){for((a=(s=n.e)+l)<3&&(a=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(n.c)).slice(0,a)){if(n.e0&&p>0){for(i=p%a||a,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||"")},k.toFraction=function(e){var t,n,r,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new V(e)).isInteger()&&(s.c||1!==s.s)||s.lt(_)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new V(this);for(t=new V(_),c=n=new V(_),r=l=new V(_),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=P,P=1/0,s=new V(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,o*=2,p=1>w(c,r,o,O).minus(this).abs().comparedTo(w(l,n,o,O).minus(this).abs())?[c,r]:[l,n],P=a,p},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),z(this,e,t,2)},k.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<=C||i>=M?g(h(n.c),i):y(h(n.c),i,"0"):10===e&&F?t=y(h((n=B(new V(n),S+i+1,O)).c),n.e,"0"):(m(e,2,L.length,"Base"),t=E(y(h(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=t&&V.set(t),V}()).default=o.BigNumber=o,void 0!==(r=(function(){return o}).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 o(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(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),o(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]=a(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]^a(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,o){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));let a=p(n,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,o){let a=g(e,t,n,i,o);return r.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=o(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=o(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}let a=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]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,o;u[n]=(r=e.b)[o=4*n]^r[o+1]<<8^r[o+2]<<16^r[o+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(a),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){let n=new TextEncoder;t=n.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 o=0;oe?t.activeTargets.push(n):t.skippedTargets.push(n))})})},A=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=C());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},T=[],P=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return T.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}T.push(e),o()},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"],F=function(e){return void 0===e&&(e=0),Date.now()+e},V=!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),!V){V=!0;var n=F(e);N(function(){var r=!1;try{r=A()}finally{if(V=!1,e=n-F(),!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}()),I=function(e){!R&&e>0&&z.start(),(R+=e)||z.stop()},Z=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&&a.push(r),r.observationTargets.push(new Z(t,n&&n.box)),I(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&&a.splice(a.indexOf(n),1),n.observationTargets.splice(r,1),I(-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 o}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return o},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,o=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(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 o=(0,r.createContext)(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,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][a])||o,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),o=i[`__scope${r}`];return{...t,...o}},{});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 Y},VY:function(){return $},aV:function(){return q},dk:function(){return G},fC:function(){return H},h_:function(){return W},x8:function(){return X},xz:function(){return U}});var r=n(7896),i=n(2784),o=n(41816),a=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(88965),g=n(49732),y=n(99575);let x="Dialog",[b,w]=(0,s.b)(x),[E,j]=b(x),k=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=j("DialogTrigger",n),u=(0,a.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":I(l.open)},s,{ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)}))}),S="DialogPortal",[_,O]=b(S,{forceMount:void 0}),C="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=O(C,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=j(C,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:o||s.open},(0,i.createElement)(A,(0,r.Z)({},a,{ref:t}))):null}),A=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j(C,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":I(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),T="DialogContent",P=(0,i.forwardRef)((e,t)=>{let n=O(T,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=j(T,e.__scopeDialog);return(0,i.createElement)(h.z,{present:o||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},a,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},a,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=j(T,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,a.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,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=j(T,e.__scopeDialog),o=(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||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0);let a=t.target,s=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);s&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=j(T,n),h=(0,i.useRef)(null),p=(0,a.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,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":I(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:a.titleId},o,{ref:t}))}),V=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:a.descriptionId},o,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,s=j("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))}))});function I(e){return e?"open":"closed"}let[Z,B]=(0,s.k)("DialogTitleWarning",{contentName:T,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:o,onChange:a});return(0,i.createElement)(E,{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=k,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=j(S,t);return(0,i.createElement)(_,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||a.open},(0,i.createElement)(f.h,{asChild:!0,container:o},e))))},q=M,$=P,Y=F,G=V,X=z},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),o=n(2784),a=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...x}=e,b=(0,o.useContext)(d),[w,E]=(0,o.useState)(null),[,j]=(0,o.useState)({}),k=(0,l.e)(t,e=>E(e)),S=Array.from(b.layers),[_]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),O=S.indexOf(_),C=w?S.indexOf(w):-1,M=b.layersWithOutsidePointerEventsDisabled.size>0,A=C>=O,T=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.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=[...b.branches].some(e=>e.contains(t));!A||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,o.useRef)(!1);return(0,o.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,n=[...b.branches].some(e=>e.contains(t));n||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=C===b.layers.size-1;t&&(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,o.useEffect)(()=>{if(w)return n&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(w)),b.layers.add(w),h(),()=>{n&&1===b.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,b]),(0,o.useEffect)(()=>()=>{w&&(b.layers.delete(w),b.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,b]),(0,o.useEffect)(()=>{let e=()=>j({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},x,{ref:k,style:{pointerEvents:M?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,T.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(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?(0,s.jH)(i,o):i.dispatchEvent(o)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(2784);let i=0;function o(){(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:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),o=n(2784),a=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[x,b]=(0,o.useState)(null),w=(0,l.W)(f),E=(0,l.W)(g),j=(0,o.useRef)(null),k=(0,a.e)(t,e=>b(e)),S=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(S.paused||!x)return;let t=e.target;x.contains(t)?j.current=t:m(j.current,{select:!0})}function t(e){S.paused||!x||x.contains(e.relatedTarget)||m(j.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,x,S.paused]),(0,o.useEffect)(()=>{if(x){v.add(S);let e=document.activeElement,t=x.contains(e);if(!t){let t=new CustomEvent(u,d);x.addEventListener(u,w),x.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(x).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(x))}return()=>{x.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);x.addEventListener(c,E),x.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),x.removeEventListener(c,E),v.remove(S)},0)}}},[x,w,E,S]);let _=(0,o.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,o]=function(e){let t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t),a=r&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,o.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:k,onKeyDown:_}))});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),o=n(64680);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.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),o=n(28316),a=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?o.createPortal((0,i.createElement)(a.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),o=n(26215),a=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t;let[n,o]=(0,r.useState)(),s=(0,r.useRef)({}),u=(0,r.useRef)(e),c=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[f,h]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},d));return(0,r.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,n=u.current,r=n!==e;if(r){let r=c.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"),u.current=e}},[e,h]),(0,a.b)(()=>{if(n){let e=e=>{let t=l(s.current),r=t.includes(e.animationName);e.target===n&&r&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===n&&(c.current=l(s.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,o.e)(s.ref,u.ref),d="function"==typeof n;return d||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),o=n(28316),a=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:o,...s}=e,l=o?a.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,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7896),i=n(2784),o=n(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.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)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)});a.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],o=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,o.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 o}});var r=n(2784),i=n(86029);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n),c=(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[l,c]}},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,x=void 0!==y&&y,b=e.left,w=e.numTicks,E=void 0===w?10:w,j=e.orientation,k=void 0===j?d.default.bottom:j,S=e.rangePadding,_=void 0===S?0:S,O=e.scale,C=e.tickFormat,M=e.tickLength,A=void 0===M?8:M,T=e.tickValues,P=e.top,N=function(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}(e,h),R=null!=C?C:(0,u.default)(O),D=k===d.default.left,L=k===d.default.top,F=L||k===d.default.bottom,V=(0,l.default)(O),z=D||L?-1:1,I=O.range(),Z=(0,f.default)(_),B=(0,c.default)({x:Number(I[0])+.5-Z.start,y:0},F),H=(0,c.default)({x:Number(I[I.length-1])+.5+Z.end,y:0},F),U=(null!=T?T:(0,a.getTicks)(O,E)).filter(function(e){return!x||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,a.coerceNumber)(V(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},F),to:(0,c.default)({x:r,y:A*z},F),formattedValue:R(t,n,U)}});return r.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===P?0:P,left:void 0===b?0:b},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:x,horizontal:F,numTicks:E,orientation:k,rangePadding:_,scale:O,tickFormat:R,tickLength:A,tickPosition:V,tickSign:z,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),o=n(71602),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:a.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)),o=l(n(81401)),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:a.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)),o=l(n(81401)),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:a.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)),o=l(n(81401)),a=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=a()).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!=(o=n.xMin)?o:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=o(n(30968)),i=o(n(98929));function o(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(),o=0;o<=i;o+=n){var a=e.getPointAtLength(o).matrixTransform(t);r.push(a)}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],o=(0,r.useRef)(null),a=(0,r.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){o.current&&(o.current(n),o.current=null)},[n]),[n,a]};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 o}});var r=n(49833),i=n(44321);function o(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 o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);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}:o({},a)}(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 o(e){return!!e&&"createSVGPoint"in e}function a(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 a},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return o},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)),o=f(n(72779)),a=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),_=null!=j?j:(0,u.getTicks)(r,void 0===b?10:b),O=(null!=E?E:0)+(0,c.default)(r)/2,C=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+O;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,o.default)("visx-columns",x),top:void 0===t?0:t,left:void 0===n?0:n},k?k({lines:C}):C.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.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)),o=f(n(72779)),a=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),_=null!=k?k:(0,u.getTicks)(r,void 0===w?10:w),O=(null!=j?j:0)+(0,c.default)(r)/2,C=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+O;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,o.default)("visx-rows",x),top:void 0===t?0:t,left:void 0===n?0:n},b?b({lines:C}):C.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:E},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),o=n(2784),a=n(72779),s=n.n(a),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 o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}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 o},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 o(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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(o.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 o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),o=l(n(65154)),a=["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,a);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(o.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)),o=s(n(55727)),a=["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,o.useTransition)(n,u({},(0,a.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,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(o.animated.line,u({key:h,x1:r,x2:a,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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a);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(o.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)),o=s(n(55727)),a=["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,o.useRef)(null),y=(0,o.useRef)(0),x=(0,o.useState)({width:0,height:0,top:0,left:0}),b=x[0],w=x[1],E=(0,o.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,o.useEffect)(function(){var e=new a.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;y.current=window.requestAnimationFrame(function(){E({width:i,height:o,top:r,left:n})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=E&&E.cancel&&E.cancel()}},[E]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},b,{ref:g.current,resize:E})))}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),o=n(70590),a=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,o.Z)(e);case"sqrt":return(0,a.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 b.Z},getTicks:function(){return _.Z},inferScaleType:function(){return k},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return C.Z},scaleLinear:function(){return o.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 x.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return O.Z},updateScale:function(){return E}});var r=n(26587),i=n(71646),o=n(8597),a=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.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),x=n(50630),b=n(2663),w=s.Z.apply(void 0,s.a),E=function(e,t){return w(e.copy(),t)},j=n(40668);function k(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,j.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var S=n(28142),_=n(71220),O=n(51519),C=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return _},Z:function(){return C}});var r=n(88751),i=n(87286),o=n(43780),a=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.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),x=n(94758),b=n(97631),w=n(2908),E=n(40668),j={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},k={day:v.Z,hour:g.Z,minute:y.Z,month:x.Z,second:h.Z,week:b.Ox,year:w.Z},S=n(74672),_=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],O={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,E.Z)(e);if("string"==typeof n)e.nice(r?k[n]:j[n]);else{var i=n.interval,o=n.step,a=(r?k[i]:j[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0||(i[n]=e[n]);return i}(e,s),y=(0,a.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:o()("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),_=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),O=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:x,sortValues:b}),C=O(void 0===s?[]:s);return E?r.createElement(r.Fragment,null,E({arcs:C,path:_,pie:O})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},C.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:o()("visx-pie-arc",t),d:_(e)||"",fill:null==k||"string"==typeof k?k:k(e)},S)),null==l?void 0:l(_.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),m=(0,a.aJ)({angle:n,radius:i,defined:s,curve:l});return f?r.createElement(r.Fragment,null,f({path:m})):r.createElement("path",g({ref:d,className:o()("visx-line-radial",t),d:m(c)||"",fill:void 0===h?"transparent":h},p))}var x=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x),y=(0,a.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===h?function(){return!0}:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:y})):r.createElement("path",b({ref:v,className:o()("visx-area",p),d:y(f)||""},g))}var E=n(55746),j=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,j),S=(0,a.kn)({keys:s,value:g,order:y,offset:x}),_=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),O=S(l);return w?r.createElement(r.Fragment,null,w({stacks:O,path:_,stack:S})):r.createElement(c.Z,{top:n,left:i},O.map(function(e,n){return r.createElement("path",k({className:o()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:_(e)||"",fill:null==b?void 0:b(e.key,n)},E))}))}var _=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,_);return r.createElement(S,O({className:t,top:n,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},b),x||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",O({className:o()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},b))})})}var M=n(14582),A=n(10897);function T(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=T(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:o()("visx-bar-group",n),top:i,left:a},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=T(f),x=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(x)):r.createElement(c.Z,{className:o()("visx-bar-group-horizontal",n),top:i,left:a},x.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 V=n(98926);function z(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function I(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function Z(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),Y=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Y),E=(0,V.Z)();v&&E.keys(v),g&&(0,W.Z)(E.value,g),y&&E.order((0,q.ZP)(y)),x&&E.offset((0,$.ZP)(x));var j=E(t),k=T(h),S=j.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),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-k/2);return{bar:t,key:n,index:r,height:i,width:k,x:a||0,y:o||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(S)):r.createElement(c.Z,{className:o()("visx-bar-stack",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,G({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var K=["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,K),E=(0,V.Z)();v&&E.keys(v),g&&(0,W.Z)(E.value,g),y&&E.order((0,q.ZP)(y)),x&&E.offset((0,$.ZP)(x));var j=E(t),k=T(p),S=j.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),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:k,width:i,x:o||0,y:a||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(S)):r.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:a},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?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["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,ea),h=s||el({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:a,className:o()("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?Z:c,target:void 0===d?B:d,angle:void 0===l?z:l,radius:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:a,className:o()("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?Z:d,target:void 0===f?B:f,x:void 0===u?I: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:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var ex=["className","children","data","innerRef","path","percent","x","y","source","target"];function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ex),p=s||ew({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eb({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var ej=["className","children","data","innerRef","path","percent","x","y","source","target"];function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ej),p=s||eS({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ek({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eO=["className","children","innerRef","data","path","x","y","source","target"];function eC(){return(eC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eO),h=s||eM({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eC({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},f))}var eT=["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,eT),h=a||eN({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eP({ref:n,className:o()("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=a||eF({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var ez=["className","innerRef","data","path","percent","x","y","source","target","children"];function eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ez),p=a||eZ({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I: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",eI({ref:n,className:o()("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=a||eW({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?I:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:o()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var e$=["className","innerRef","data","path","x","y","source","target","children"];function eY(){return(eY=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,a=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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=a||eG({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eY({ref:n,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eK=["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,eK),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eJ:i,rotate:void 0===a?0:a}).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:o()("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:o()("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+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[k+1];)k+=1;c[k].push(_)}}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),o=n.n(i),a=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),E=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===v?function(){return!0}:v,curve:y});return(null==f?E.y0(h.range()[0]):(0,a.Z)(E.y0,f),c&&!d&&(0,a.Z)(E.y1,c),d&&!c&&(0,a.Z)(E.y1,d),b)?r.createElement(r.Fragment,null,b({path:E})):r.createElement("path",u({ref:x,className:o()("visx-area-closed",g),d:E(m)||""},w))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["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,a);return r.createElement("rect",s({ref:n,className:o()("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),o=n.n(i),a=["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,a),z=(n=(t={x:k,y:S,width:_,height:O,radius:C,all:void 0!==M&&M,top:void 0!==A&&A,bottom:void 0!==T&&T,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!==F&&F}).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,x=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,b=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+x+" h"+(g-b)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-b)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(b-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(b-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:j,className:o()("visx-bar-rounded",E),d:z},V))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["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,a),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("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),o=n.n(i),a=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),g=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",l({ref:p,className:o()("visx-linepath",f),d:g(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))}},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(12235),o=n(79767),a=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,o=t.cornerRadius,a=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!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),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,o=t.x1,a=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),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),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,a=t.curve,s=(0,o.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),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,o=t.curve,a=(0,s.Z)();return n&&(0,u.Z)(a.angle,n),r&&(0,u.Z)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),n&&(0,u.Z)(o.value,n),r&&o.order((0,c.ZP)(r)),i&&o.offset((0,d.ZP)(i)),o}},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),o=n(90541),a=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:a.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),o=n(12197),a=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:a.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=void 0===h?[]:h,m=e.defined,v=e.className,g=e.curve,y=e.innerRef,x=function(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}(e,a),b=(0,o.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===m?function(){return!0}:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:b})):r.default.createElement("path",l({ref:y,className:(0,i.default)("visx-area",v),d:b(p)||""},x))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["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,o),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=a(n(2784)),i=a(n(72779)),o=["from","to","fill","className","innerRef"];function a(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,a),g=(0,o.line)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",l({ref:p,className:(0,i.default)("visx-linepath",f),d:g(s)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["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,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,x=g.startDy,b=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",a({ref:c,transform:b},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?x: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),o=n.n(i),a=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,x=function(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}(e,s),b=x.x,w=void 0===b?0:b,E=x.y,j=void 0===E?0:E,k=!u(w)||!u(j),S=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),_=S.wordsWithWidth,O=S.spaceWidth,C=(0,r.useMemo)(function(){return k?[]:f||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+O0){var t=C[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=j-n*j;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+j+")"),e.length>0?e.join(" "):""},[k,w,j,f,c,C,d]);return{wordsByLines:C,startDy:M,transform:A}}},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 o.Z}});var r=n(64170),i=n(75715),o=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);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",o),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,o={},a=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];o[n]||(o[n]=new WeakMap);var l=o[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"),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}}},89644:function(e,t,n){e.exports=n(25644)},70353:function(e,t,n){"use strict";var r=n(93044),i=n(86955),o=n(92233),a=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 x=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var E=s(e.baseURL,e.url);function j(){if(x){var r="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:r,config:e,request:x}),x=null}}if(x.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=j:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(j)},x.onabort=function(){x&&(n(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,x,x)),x=null},x.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,x)),x=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(E))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in x&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),g&&"json"!==g&&(x.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){x&&(n(!e||e&&e.type?new f:e),x.abort(),x=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var S=h(E);if(S&&-1===["http","https","file"].indexOf(S)){n(new d("Unsupported protocol "+S+":",d.ERR_BAD_REQUEST,e));return}x.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),o=n(62215),a=n(92937),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(10663));s.Axios=o,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, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.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?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},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 o(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,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"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,o(e))});return}}e(n,l)}}),n.pop()}else t.append(a,o(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(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),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,n){"use strict";var r,i,o=n(73644),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.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]"===a.call(e)}var x=l("URLSearchParams");function b(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)a[o=r[i]]||(t[o]=e[o],a[o]=!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 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){if(e===t)return[l,u];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},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,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;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,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)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 o,a=/^-?(?:\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,o=e[0]+"";ru^n?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^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 tT?h.c=h.e=null:e.e=10;s/=10,o++);o>T?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return j(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&F)return B(h=new V(e),_+h.e+1,O);if(f=String(e),u="number"==typeof e){if(0*e!=0)return j(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,V.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),o=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return j(h,String(e),u,t)}u=!1,(o=(f=E(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=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&&V.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>T)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new V(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=o||o<=C)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function I(e,t){for(var n,r=1,i=new V(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>T?e.c=e.e=null:n=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(r=r||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?c/d[i-a]: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==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),r)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>T?e.c=e.e=null:e.e=M?g(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return V.clone=e,V.ROUND_UP=0,V.ROUND_DOWN=1,V.ROUND_CEIL=2,V.ROUND_FLOOR=3,V.ROUND_HALF_UP=4,V.ROUND_HALF_DOWN=5,V.ROUND_HALF_EVEN=6,V.ROUND_HALF_CEIL=7,V.ROUND_HALF_FLOOR=8,V.EUCLID=9,V.config=V.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),_=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),O=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),C=n[0],M=n[1]):(m(n,-1e9,1e9,t),C=-(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),A=n[0],T=n[1];else if(m(n,-1e9,1e9,t),n)A=-(T=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);F="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:_,ROUNDING_MODE:O,EXPONENTIAL_AT:[C,M],RANGE:[A,T],CRYPTO:P,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},V.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!V.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===o||-1===o)&&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===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},V.maximum=V.max=function(){return I(arguments,k.lt)},V.minimum=V.min=function(){return I(arguments,k.gt)},V.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,o,a,c=0,f=[],h=new V(S);if(null==e?e=_:m(e,0,1e9),o=s(e/14),P){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw P=!1,Error(u+"crypto unavailable")}if(!P)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),V.sum=function(){for(var e=1,t=arguments,n=new V(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=_,x=O;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new V(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,a?(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=o,p=(f=w(f,m,g,x,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=x<4?(null!=v||d)&&(0==x||x==(f.s<0?3:2)):v>c||v==c&&(4==x||d||6==x&&1&p[l-1]||x==(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,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}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,o,a,s){var u,c,d,h,p,m,v,g,y,x,b,w,E,j,k,S,_,O=r.s==i.s?1:-1,C=r.c,M=i.c;if(!C||!C[0]||!M||!M[0])return new V(r.s&&i.s&&(C?!M||C[0]!=M[0]:M)?C&&0==C[0]||!M?0*O:O/0:NaN);for(y=(g=new V(O)).c=[],O=o+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),O=O/14|0),d=0;M[d]==(C[d]||0);d++);if(M[d]>(C[d]||0)&&c--,O<0)y.push(1),h=!0;else{for(j=C.length,S=M.length,d=0,O+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),C=e(C,p,s),S=M.length,j=C.length),E=S,b=(x=C.slice(0,S)).length;b=s/2&&k++;do{if(p=0,(u=t(M,x,S,b))<0){if(w=x[0],S!=b&&(w=w*s+(x[1]||0)),(p=l(w/k))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,b=x.length;1==t(m,x,v,b);)p--,n(m,St(M,x,S,b);)p++,n(x,S=10;O/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,j=function(e,t,n,a){var s,l=n?t:t.replace(b,"");if(x.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,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new V(l,s);if(V.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},k.absoluteValue=k.abs=function(){var e=new V(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return p(this,new V(e,t))},k.decimalPlaces=k.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=O:m(t,0,8),B(new V(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},k.dividedBy=k.div=function(e,t){return w(this,new V(e,t),_,O)},k.dividedToIntegerBy=k.idiv=function(e,t){return w(this,new V(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var n,r,i,o,a,c,d,f,h,p=this;if((e=new V(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new V(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 V(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 V(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 o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new V(d?1/o:o);R&&(o=s(R/14+2))}for(c?(n=new V(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new V(S);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):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),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):o?B(h,R,O,a):h)},k.integerValue=function(e){var t=new V(this);return null==e?e=O:m(e,0,8),B(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===p(this,new V(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return p(this,new V(e,t))>0},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=p(this,new V(e,t)))||0===t},k.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return 0>p(this,new V(e,t))},k.isLessThanOrEqualTo=k.lte=function(e,t){return -1===(t=p(this,new V(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new V(e,t)).s,!a||!t)return new V(NaN);if(a!=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 V(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new V(u[0]?this:3==O?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[o]+n)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=n}return n?++r:m.splice(0,1),Z(e,m,r)},k.negated=function(){var e=new V(this);return e.s=-e.s||null,e},k.plus=function(e,t){var n,r=this.s;if(t=(e=new V(e,t)).s,!r||!t)return new V(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new V(r/0);if(!a[0]||!s[0])return s[0]?e:new V(a[0]?this:0*r)}if(i=f(i),o=f(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),Z(e,a,o)},k.precision=k.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=O:m(t,0,8),B(new V(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},k.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,l=_+4,u=new V("0.5");if(1!==a||!o||!o[0])return new V(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,n=new V(t)):n=new V(a+""),n.c[0]){for((a=(s=n.e)+l)<3&&(a=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(n.c)).slice(0,a)){if(n.e0&&p>0){for(i=p%a||a,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||"")},k.toFraction=function(e){var t,n,r,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new V(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 V(this);for(t=new V(S),c=n=new V(S),r=l=new V(S),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=T,T=1/0,s=new V(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,o*=2,p=1>w(c,r,o,O).minus(this).abs().comparedTo(w(l,n,o,O).minus(this).abs())?[c,r]:[l,n],T=a,p},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),z(this,e,t,2)},k.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<=C||i>=M?g(h(n.c),i):y(h(n.c),i,"0"):10===e&&F?t=y(h((n=B(new V(n),_+i+1,O)).c),n.e,"0"):(m(e,2,L.length,"Base"),t=E(y(h(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=t&&V.set(t),V}()).default=o.BigNumber=o,void 0!==(r=(function(){return o}).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 o(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(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),o(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]=a(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]^a(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,o){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));let a=p(n,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,o){let a=g(e,t,n,i,o);return r.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=o(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=o(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}let a=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]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,o;u[n]=(r=e.b)[o=4*n]^r[o+1]<<8^r[o+2]<<16^r[o+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(a),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){let n=new TextEncoder;t=n.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 o=0;o * @license MIT - */var r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|h(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return O(e).length;default:if(i)return r?-1:S(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||E(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,o){return t=+t,n>>>=0,o||E(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function O(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},72779:function(e,t){var n;/*! + */var r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|h(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return O(e).length;default:if(i)return r?-1:_(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||E(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,o){return t=+t,n>>>=0,o||E(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function O(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},72779:function(e,t){var n;/*! 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,o,a,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&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(r,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.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 k},Il:function(){return i},J5:function(){return a},SU:function(){return j},Ss:function(){return _},Ym:function(){return P},ZP:function(){return b},xV:function(){return o}});var r=n(40948);function i(){}var o=.7,a=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 x(){return this.rgb().formatRgb()}function b(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 _(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?E(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?E(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 _(t[1],t[2],t[3],1):(t=f.exec(e))?new _(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?E(t[1],t[2],t[3],t[4]):(t=p.exec(e))?E(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 _(NaN,NaN,NaN,0):null}function w(e){return new _(e>>16&255,e>>8&255,255&e,1)}function E(e,t,n,r){return r<=0&&(e=t=n=NaN),new _(e,t,n,r)}function j(e){return(e instanceof i||(e=b(e)),e)?(e=e.rgb(),new _(e.r,e.g,e.b,e.opacity)):new _}function k(e,t,n,r){return 1==arguments.length?j(e):new _(e,t,n,null==r?1:r)}function _(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function S(){return"#"+C(this.r)+C(this.g)+C(this.b)}function O(){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 C(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 T(e,t,n,r)}function A(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new T;if(e instanceof T)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(n-r)/l+(n0&&u<1?0:s,new T(s,l,u,e.opacity)}function P(e,t,n,r){return 1==arguments.length?A(e):new T(e,t,n,null==r?1:r)}function T(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,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:x,toString:x}),(0,r.Z)(_,k,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new _(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new _(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:S,formatHex:S,formatRgb:O,toString:O})),(0,r.Z)(T,P,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new T(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 _(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),o=n(10810),a=4/29,s=6/29,l=3*(6/29)*(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 x(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=s:(t=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.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+a}function p(e){return e>s?e*e*e:l*(e-a)}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],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-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"];o=(i=function(e){var t,n,i,o=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,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=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 x(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,x=e.comma,b=e.precision,w=e.trim,E=e.type;"n"===E?(x=!0,E="g"):d[E]||(void 0===b&&(b=12),w=!0,E="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var j="$"===s?a:"#"===s&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",k="$"===s?u:/[%p]/.test(E)?v:"",_=d[E],S=/[defgprs%]/.test(E);function O(e){var a,s,l,u=j,d=k;if("c"===E)d=_(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:_(Math.abs(e),b),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"===E?p[8+r/3]:"")+d+(v&&"("===i?")":""),S){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}x&&!f&&(e=o(e,1/0));var O=u.length+e.length+d.length,C=O>1)+u+e+d+C.slice(O);break;default:e=C+u+e+d}return m(e)}return b=void 0===b?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),O.toString=function(){return e+""},O}return{format:x,formatPrefix:function(e,t){var n=x(((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),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=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 o({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 o(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=o.prototype,o.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}},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 o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(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 a=/[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?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var a=l(r,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),n.concat(a)}return n.concat(function(e,n,r){var i,a=[];if("L"===n.type||"Q"===n.type||"C"===n.type)a=a.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),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,r):a.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(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),o=n(10810),a=-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=(a*r+-1.7884503806*t-3.5172982438*n)/(a+-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)*o.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)*o.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(-.29227*r+-.90649*a)),255*(t+n*(1.97294*r)),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),o=(0,u.ZP)(t.s,r.s),a=(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=o(e),t.l=a(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 a}});var r=n(20966),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(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=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(68847),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(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=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(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 T.Z},interpolateHclLong:function(){return T.b},interpolateHsl:function(){return A.Z},interpolateHslLong:function(){return A.q},interpolateHue:function(){return p},interpolateLab:function(){return P.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 x.Z},interpolateTransformCss:function(){return k},interpolateTransformSvg:function(){return _},interpolateZoom:function(){return C},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,o,a,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),x=n(76060),b=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function E(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(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=o.skewX)!==(c=a.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,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=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=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=r-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),x=y/g,b=y/v;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+b*l)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);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),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*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=a},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[o],t)?r=o+1:i=o}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,o){null==r&&(r=0),null==o&&(o=e.length);let a=i(e,n,r,o-1);return a>r&&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}}}var o=n(81048);let a=i(r.Z),s=a.right;a.left,i(o.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 o=n(1169);function a(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=o.Z){for(;i>r;){if(i-r>600){let o=i-r+1,a=n-r+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(r,Math.floor(n-a*u/o+c)),f=Math.min(i,Math.floor(n+(o-a)*u/o+c));e(t,n,d,f,s)}let o=t[n],l=r,u=i;for(a(t,r,n),s(t[i],o)>0&&a(t,r,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[r],o)?a(t,r,u):a(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,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var r,i,o,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++lt&&--r,o=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function j(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function k(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function _(e,t,n){var r=v.exec(t.slice(n,n+2));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.V=+r[0],n+r[0].length):-1}function O(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function C(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 A(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 P(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 T(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 F(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function V(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 I(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Z(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 x(e.getDate(),t,2)}function U(e,t){return x(e.getHours(),t,2)}function W(e,t){return x(e.getHours()%12||12,t,2)}function q(e,t){return x(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return x(e.getMilliseconds(),t,3)}function Y(e,t){return $(e,t)+"000"}function G(e,t){return x(e.getMonth()+1,t,2)}function K(e,t){return x(e.getMinutes(),t,2)}function X(e,t){return x(e.getSeconds(),t,2)}function Q(e){var t=e.getDay();return 0===t?7:t}function J(e,t){return x(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),x(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 x(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return x(e.getFullYear()%100,t,2)}function eo(e,t){return x((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return x(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return x((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,"+"))+x(t/60|0,"0",2)+x(t%60,"0",2)}function eu(e,t){return x(e.getUTCDate(),t,2)}function ec(e,t){return x(e.getUTCHours(),t,2)}function ed(e,t){return x(e.getUTCHours()%12||12,t,2)}function ef(e,t){return x(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return x(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return x(e.getUTCMonth()+1,t,2)}function ev(e,t){return x(e.getUTCMinutes(),t,2)}function eg(e,t){return x(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function ex(e,t){return x(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function eb(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=eb(e),x(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function eE(e){return e.getUTCDay()}function ej(e,t){return x(a.l6.count((0,d.Z)(e)-1,e),t,2)}function ek(e,t){return x(e.getUTCFullYear()%100,t,2)}function e_(e,t){return x((e=eb(e)).getUTCFullYear()%100,t,2)}function eS(e,t){return x(e.getUTCFullYear()%1e4,t,4)}function eO(e,t){var n=e.getUTCDay();return x((e=n>=4||0===n?(0,a.hB)(e):a.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eC(){return"+0000"}function eM(){return"%"}function eA(e){return+e}function eP(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=E(i),x=w(o),b=E(o),ee=w(c),eb=E(c),eT=w(d),eN=E(d),eR=w(v),eD=E(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:Y,g:eo,G:es,H:U,I:W,j:q,L:$,m:G,M:K,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eA,s:eP,S:X,u:Q,U:J,V:et,w:en,W:er,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eF={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[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:e_,G:eO,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:eA,s:eP,S:eg,u:ey,U:ex,V:ew,w:eE,W:ej,x:null,X:null,y:ek,Y:eS,Z:eC,"%":eM},eV={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=eb.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=x.exec(t.slice(n));return r?(e.w=b.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=eT.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eZ(e,t,n,r)},d:N,e:N,f:z,g:M,G:C,H:D,I:D,j:R,L:V,m:T,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:P,Q:Z,s:B,S:F,u:k,U:_,V:S,w:j,W:O,x:function(e,t,r){return eZ(e,n,t,r)},X:function(e,t,n){return eZ(e,r,t,n)},y:M,Y:C,Z:A,"%":I};function ez(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(r):(0,a.l6)(r),r=s.Z.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eZ(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=eV[(i=t.charAt(a++))in m?t.charAt(a++):i])||(r=o(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),eF.x=ez(n,eF),eF.X=ez(r,eF),eF.c=ez(t,eF),{format:function(e){var t=ez(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=eI(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=ez(e+="",eF);return t.toString=function(){return e},t},utcParse:function(e){var t=eI(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,o=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},x:function(){return a}});var r=n(22274),i=n(34130);function o(){var e,t,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=a().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,x}function x(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return x.invert=function(n){return g(t((h||(h=r(m,p.map(e),o.Z)))(n)))},x.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},x.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},x.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},x.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},x.interpolate=function(e){return arguments.length?(v=e,y()):v},x.unknown=function(e){return arguments.length?(n=e,x):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)(C()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,a.Q)(C()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return A},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(C());return t.copy=function(){return w(t,e()).constant(t.constant())},x.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,o.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,o.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.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)(b()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(b()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleSequentialPow:function(){return E},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,k.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(_.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,S.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},x.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return j},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(b());return t.copy=function(){return w(t,e()).constant(t.constant())},x.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 P.Z}});var r=n(48623),i=n(93963),o=n(5497),a=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),x=n(22274);function b(){var e,t,n,r,i,o=0,a=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?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},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(o),t=i(a),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 E(){var e=(0,u.Hh)(b());return e.copy=function(){return w(e,E()).exponent(e.exponent())},x.O.apply(e,arguments)}function j(){return E.apply(null,arguments).exponent(.5)}var k=n(98038),_=n(1169),S=n(33907),O=n(87475);function C(){var e,t,n,r,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}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,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),o=n(10070),a=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,a=e(l,u),s=a.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),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.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],a]:[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,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),o=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,a.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,o.Q)(c)}}});var r=n(70552),i=n(22274),o=n(93963),a=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())},o.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),o=n(22274);function a(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(a(1),s(t));return n.constant=function(n){return arguments.length?e(a(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],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,r.ZP)(n,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((n=Array.from(e)).length,o.length-1),s):n.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(n.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.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(o).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},62498:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(32071),i=n(52328),o=n(23733),a=n(11192);function s(e,t,n,s){var l,u,c,d=(0,r.ly)(e,t,n);switch((s=(0,i.Z)(null==s?",f":s)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=s.precision||isNaN(c=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(f)/3)))-(0,o.Z)(Math.abs(d))))||(s.precision=c),(0,a.jH)(s,f);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN((l=d,u=Math.abs(u=Math.max(Math.abs(e),Math.abs(t)))-(l=Math.abs(l)),c=Math.max(0,(0,o.Z)(u)-(0,o.Z)(l))+1))||(s.precision=c-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(c=Math.max(0,-(0,o.Z)(Math.abs(d))))||(s.precision=c-("%"===s.type)*2)}return(0,a.WU)(s)}},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),o=n(50690),a=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,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),x=u(":%S"),b=u("%I:%M"),w=u("%I %p"),E=u("%a %d"),j=u("%b %d"),k=u("%B"),_=u("%Y");function S(e){return(l(e)P*P+T*T&&(_=O,S=C),{cx:_,cy:S,x01:-d,y01:-f,x11:_*(i/E-1),y11:S*(i/E-1)}}function f(){var e=a,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var x,b,w=u,E=c,j=u,k=c,_=g,S=g,O=m.apply(this,arguments)/2,C=O>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),A=M,P=M;if(C>o.Ho){var T=(0,o.ZR)(C/s*(0,o.O$)(O)),N=(0,o.ZR)(C/l*(0,o.O$)(O));(_-=2*T)>o.Ho?(T*=y?1:-1,j+=T,k-=T):(_=0,j=k=(u+c)/2),(S-=2*N)>o.Ho?(N*=y?1:-1,w+=N,E-=N):(S=0,w=E=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(k),F=s*(0,o.O$)(k);if(M>o.Ho){var V,z=l*(0,o.mC)(E),I=l*(0,o.O$)(E),Z=s*(0,o.mC)(j),B=s*(0,o.O$)(j);if(go.Ho?P>o.Ho?(x=d(Z,B,R,D,l,P,y),b=d(z,I,L,F,l,P,y),v.moveTo(x.cx+x.x01,x.cy+x.y01),Po.Ho&&_>o.Ho?A>o.Ho?(x=d(L,F,z,I,s,-A,y),b=d(R,D,Z,B,s,-A,y),v.lineTo(x.cx+x.x01,x.cy+x.y01),A=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.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,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*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 o(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),a.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:o(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,o(this,i(this,n=r(this,e,t)),n);break;default:o(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(a.prototype)).point=function(e,t){a.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,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},j:function(){return r}});var r=o(n(20651).Z);function i(e){this._curve=e}function o(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 o(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),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 j},curveBasisClosed:function(){return _},curveBasisOpen:function(){return O},curveBundle:function(){return M},curveCardinal:function(){return A.ZP},curveCardinalClosed:function(){return T},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return V},curveCatmullRomClosed:function(){return I},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 G},curveStep:function(){return K.ZP},curveStepAfter:function(){return K.cD},curveStepBefore:function(){return K.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return X.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 eo.Z},stackOrderInsideOut:function(){return ea.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 x.Z},symbols:function(){return f.u}});var r=n(38764),i=n(12235),o=n(79767),a=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,o=e.lineY0,a=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)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},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),x=n(60598);function b(){}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 E(e){this._context=e}function j(e){return new E(e)}function k(e){this._context=e}function _(e){return new k(e)}function S(e){this._context=e}function O(e){return new S(e)}function C(e,t){this._basis=new E(e),this._beta=t}E.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}},k.prototype={areaStart:b,areaEnd:b,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}},S.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}},C.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],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+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 E(e):new C(e,t)}return n.beta=function(t){return e(+t)},n}(.85),A=n(46385);function P(e,t){this._context=e,this._k=(1-t)/6}P.prototype={areaStart:b,areaEnd:b,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,A.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 T=function e(t){function n(e){return new P(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,A.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,o=e._x2,a=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);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}F.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 V=function e(t){function n(e){return t?new F(e,t):new A.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:b,areaEnd:b,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 I=function e(t){function n(e){return t?new z(e,t):new P(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: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 Z(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:b,areaEnd:b,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 Y(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[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,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=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,o,a=0,s=e[0].length;a1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o0){for(var n,i=0,o=e[t[0]],a=o.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(o);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function o(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 o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(a.BZ),u=(0,r.Z)(0);function c(r){var i,o,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/h,u.apply(this,arguments)),b=x*(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*b)/p:0;i0?f*c:0)+b,v[o]={data:r[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:x};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),o=n(90541),a=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,n=o.Z,l=s;function u(r){var i,o,a=e.apply(this,arguments),s=r.length,u=a.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=o;var a=o.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,u=365*a},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(22179),i=n(1514),o=(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=o;var a=o.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 a.Z},timeMinutes:function(){return a.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 o.Z},timeSeconds:function(){return o.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 o.Z},utcSeconds:function(){return o.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),o=n(52546),a=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,o,a){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 a;do a.push(o=new Date(+e)),n(e,i),t(e);while(o=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););}})},o&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(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 o}});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 o=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(22179),i=n(1514),o=(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=o;var a=o.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 a}});var r=n(22179),i=n(1514),o=(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=o;var a=o.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return S},jK:function(){return _},jo:function(){return k},WG:function(){return j}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>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)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{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}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===o)return l.Z.every(Math.max(a(t,n,r),1));let[u,d]=c[i/c[o-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 o=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return x},Ld:function(){return v},OM:function(){return a},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 o(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 a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,x=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});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 o=i.range},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}})},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(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},63397:function(e,t,n){"use strict";n.d(t,{TA:function(){return nn}});var r,i,o,a=n(2784),s=n(78435),l=n.n(s),u=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==c},c="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function d(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h(Array.isArray(e)?[]:{},e,t):e}function f(e,t,n){return e.concat(t).map(function(e){return d(e,n)})}function h(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||u;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?d(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=d(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=h(e[n],t[n],r):i[n]=d(t[n],r)}),i)}h.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return h(e,n,t)},{})};var p=h,m="object"==typeof global&&global&&global.Object===Object&&global,v="object"==typeof self&&self&&self.Object===Object&&self,g=m||v||Function("return this")(),y=g.Symbol,x=Object.prototype,b=x.hasOwnProperty,w=x.toString,E=y?y.toStringTag:void 0,j=function(e){var t=b.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var i=w.call(e);return r&&(t?e[E]=n:delete e[E]),i},k=Object.prototype.toString,_=y?y.toStringTag:void 0,S=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?j(e):k.call(e)},O=function(e,t){return function(n){return e(t(n))}},C=O(Object.getPrototypeOf,Object),M=function(e){return null!=e&&"object"==typeof e},A=Object.prototype,P=Function.prototype.toString,T=A.hasOwnProperty,N=P.call(Object),R=function(e){if(!M(e)||"[object Object]"!=S(e))return!1;var t=C(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==N},D=function(e,t){return e===t||e!=e&&t!=t},L=function(e,t){for(var n=e.length;n--;)if(D(e[n][0],t))return n;return -1},F=Array.prototype.splice;function V(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},V.prototype.set=function(e,t){var n=this.__data__,r=L(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},I=function(e){if(!z(e))return!1;var t=S(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Z=g["__core-js_shared__"],B=(r=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",H=Function.prototype.toString,U=function(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""},W=/^\[object .+?Constructor\]$/,q=Object.prototype,$=Function.prototype.toString,Y=q.hasOwnProperty,G=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=function(e,t){var n,r=null==e?void 0:e[t];return z(n=r)&&(!B||!(B in n))&&(I(n)?G:W).test(U(n))?r:void 0},X=K(g,"Map"),Q=K(Object,"create"),J=Object.prototype.hasOwnProperty,ee=Object.prototype.hasOwnProperty;function et(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},eS={};eS["[object Float32Array]"]=eS["[object Float64Array]"]=eS["[object Int8Array]"]=eS["[object Int16Array]"]=eS["[object Int32Array]"]=eS["[object Uint8Array]"]=eS["[object Uint8ClampedArray]"]=eS["[object Uint16Array]"]=eS["[object Uint32Array]"]=!0,eS["[object Arguments]"]=eS["[object Array]"]=eS["[object ArrayBuffer]"]=eS["[object Boolean]"]=eS["[object DataView]"]=eS["[object Date]"]=eS["[object Error]"]=eS["[object Function]"]=eS["[object Map]"]=eS["[object Number]"]=eS["[object Object]"]=eS["[object RegExp]"]=eS["[object Set]"]=eS["[object String]"]=eS["[object WeakMap]"]=!1;var eO=function(e){return function(t){return e(t)}},eC="object"==typeof exports&&exports&&!exports.nodeType&&exports,eM=eC&&"object"==typeof module&&module&&!module.nodeType&&module,eA=eM&&eM.exports===eC&&m.process,eP=function(){try{var e=eM&&eM.require&&eM.require("util").types;if(e)return e;return eA&&eA.binding&&eA.binding("util")}catch(e){}}(),eT=eP&&eP.isTypedArray,eN=eT?eO(eT):function(e){return M(e)&&e_(e.length)&&!!eS[S(e)]},eR=Object.prototype.hasOwnProperty,eD=function(e,t){var n=ey(e),r=!n&&eg(e),i=!n&&!r&&eE(e),o=!n&&!r&&!i&&eN(e),a=n||r||i||o,s=a?ef(e.length,String):[],l=s.length;for(var u in e)(t||eR.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ek(u,l)))&&s.push(u);return s},eL=Object.prototype,eF=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eL)},eV=O(Object.keys,Object),ez=Object.prototype.hasOwnProperty,eI=function(e){if(!eF(e))return eV(e);var t=[];for(var n in Object(e))ez.call(e,n)&&"constructor"!=n&&t.push(n);return t},eZ=function(e){return null!=e&&e_(e.length)&&!I(e)},eB=function(e){return eZ(e)?eD(e):eI(e)},eH=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eU=Object.prototype.hasOwnProperty,eW=function(e){if(!z(e))return eH(e);var t=eF(e),n=[];for(var r in e)"constructor"==r&&(t||!eU.call(e,r))||n.push(r);return n},eq=function(e){return eZ(e)?eD(e,!0):eW(e)},e$="object"==typeof exports&&exports&&!exports.nodeType&&exports,eY=e$&&"object"==typeof module&&module&&!module.nodeType&&module,eG=eY&&eY.exports===e$?g.Buffer:void 0,eK=eG?eG.allocUnsafe:void 0,eX=function(e,t){if(t)return e.slice();var n=e.length,r=eK?eK(n):new e.constructor(n);return e.copy(r),r},eQ=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0||(i[n]=e[n]);return i}function t0(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var t1=function(e){return Array.isArray(e)&&0===e.length},t2=function(e){return"function"==typeof e},t4=function(e){return null!==e&&"object"==typeof e},t3=function(e){return"[object String]"===Object.prototype.toString.call(e)},t5=function(e){return t4(e)&&t2(e.then)};function t6(e,t,n,r){void 0===r&&(r=0);for(var i=tK(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var t7=(0,a.createContext)(void 0);function t9(e,t){switch(t.type){case"SET_VALUES":return tQ({},e,{values:t.payload});case"SET_TOUCHED":return tQ({},e,{touched:t.payload});case"SET_ERRORS":if(l()(e.errors,t.payload))return e;return tQ({},e,{errors:t.payload});case"SET_STATUS":return tQ({},e,{status:t.payload});case"SET_ISSUBMITTING":return tQ({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tQ({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tQ({},e,{values:t8(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tQ({},e,{touched:t8(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tQ({},e,{errors:t8(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tQ({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tQ({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;t6(t,a.path)||(t=t8(t,a.path,a.message))}}return t}(n)):t(n)})})},[m.validationSchema]),O=(0,a.useCallback)(function(e,t){return new Promise(function(n){return n(w.current[e].validate(t))})},[]),C=(0,a.useCallback)(function(e){var t=Object.keys(w.current).filter(function(e){return t2(w.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return O(t,t6(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=t8(e,t[r],n)),e},{})})},[O]),M=(0,a.useCallback)(function(e){return Promise.all([C(e),m.validationSchema?S(e):{},m.validate?_(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return p.all([t,n,r],{arrayMerge:nr})})},[m.validate,m.validationSchema,C,_,S]),A=no(function(e){return void 0===e&&(e=j.values),k({type:"SET_ISVALIDATING",payload:!0}),M(e).then(function(e){return b.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:e})),e})});(0,a.useEffect)(function(){s&&!0===b.current&&l()(v.current,m.initialValues)&&A(v.current)},[s,A]);var P=(0,a.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:g.current?g.current:m.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:m.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:m.initialStatus;v.current=t,g.current=n,y.current=r,x.current=i;var o=function(){k({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(m.onReset){var a=m.onReset(j.values,X);t5(a)?a.then(o):o()}else o()},[m.initialErrors,m.initialStatus,m.initialTouched]);(0,a.useEffect)(function(){!0===b.current&&!l()(v.current,m.initialValues)&&(d&&(v.current=m.initialValues,P()),s&&A(v.current))},[d,m.initialValues,P,s,A]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(g.current,m.initialErrors)&&(g.current=m.initialErrors||ne,k({type:"SET_ERRORS",payload:m.initialErrors||ne}))},[d,m.initialErrors]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(y.current,m.initialTouched)&&(y.current=m.initialTouched||nt,k({type:"SET_TOUCHED",payload:m.initialTouched||nt}))},[d,m.initialTouched]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(x.current,m.initialStatus)&&(x.current=m.initialStatus,k({type:"SET_STATUS",payload:m.initialStatus}))},[d,m.initialStatus,m.initialTouched]);var T=no(function(e){if(w.current[e]&&t2(w.current[e].validate)){var t=t6(j.values,e),n=w.current[e].validate(t);return t5(n)?(k({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),k({type:"SET_ISVALIDATING",payload:!1})})):(k({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(k({type:"SET_ISVALIDATING",payload:!0}),S(j.values,e).then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),k({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),N=(0,a.useCallback)(function(e,t){var n=t.validate;w.current[e]={validate:n}},[]),D=(0,a.useCallback)(function(e){delete w.current[e]},[]),L=no(function(e,t){return k({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?A(j.values):Promise.resolve()}),F=(0,a.useCallback)(function(e){k({type:"SET_ERRORS",payload:e})},[]),V=no(function(e,t){var r=t2(e)?e(j.values):e;return k({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()}),z=(0,a.useCallback)(function(e,t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),I=no(function(e,t,r){return k({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(t8(j.values,e,t)):Promise.resolve()}),Z=(0,a.useCallback)(function(e,t){var n,r=t,i=e;if(!t3(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(t6(j.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&I(r,i)},[I,j.values]),B=no(function(e){if(t3(e))return function(t){return Z(t,e)};Z(e)}),H=no(function(e,t,n){return void 0===t&&(t=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?A(j.values):Promise.resolve()}),U=(0,a.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,H(t||r||i,!0)},[H]),W=no(function(e){if(t3(e))return function(t){return U(t,e)};U(e)}),q=(0,a.useCallback)(function(e){t2(e)?k({type:"SET_FORMIK_STATE",payload:e}):k({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),$=(0,a.useCallback)(function(e){k({type:"SET_STATUS",payload:e})},[]),Y=(0,a.useCallback)(function(e){k({type:"SET_ISSUBMITTING",payload:e})},[]),G=no(function(){return k({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=Q(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return b.current&&k({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw k({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(k({type:"SUBMIT_FAILURE"}),n))throw e})}),K=no(function(e){e&&e.preventDefault&&t2(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t2(e.stopPropagation)&&e.stopPropagation(),G().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),X={resetForm:P,validateForm:A,validateField:T,setErrors:F,setFieldError:z,setFieldTouched:H,setFieldValue:I,setStatus:$,setSubmitting:Y,setTouched:L,setValues:V,setFormikState:q,submitForm:G},Q=no(function(){return f(j.values,X)}),J=no(function(e){e&&e.preventDefault&&t2(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t2(e.stopPropagation)&&e.stopPropagation(),P()}),ee=(0,a.useCallback)(function(e){return{value:t6(j.values,e),error:t6(j.errors,e),touched:!!t6(j.touched,e),initialValue:t6(v.current,e),initialTouched:!!t6(y.current,e),initialError:t6(g.current,e)}},[j.errors,j.touched,j.values]),et=(0,a.useCallback)(function(e){return{setValue:function(t,n){return I(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return z(e,t)}}},[I,H,z]),en=(0,a.useCallback)(function(e){var t=t4(e),n=t?e.name:e,r=t6(j.values,n),i={name:n,value:r,onChange:B,onBlur:W};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[W,B,j.values]),er=(0,a.useMemo)(function(){return!l()(v.current,j.values)},[v.current,j.values]),ei=(0,a.useMemo)(function(){return void 0!==u?er?j.errors&&0===Object.keys(j.errors).length:!1!==u&&t2(u)?u(m):u:j.errors&&0===Object.keys(j.errors).length},[u,er,j.errors,m]);return tQ({},j,{initialValues:v.current,initialErrors:g.current,initialTouched:y.current,initialStatus:x.current,handleBlur:W,handleChange:B,handleReset:J,handleSubmit:K,resetForm:P,setErrors:F,setFormikState:q,setFieldTouched:H,setFieldValue:I,setFieldError:z,setStatus:$,setSubmitting:Y,setTouched:L,setValues:V,submitForm:G,validateForm:A,validateField:T,isValid:ei,dirty:er,unregisterField:D,registerField:N,getFieldProps:en,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:n,validateOnMount:s})}function nr(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?p(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=p(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var ni="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function no(e){var t=(0,a.useRef)(e);return ni(function(){t.current=e}),(0,a.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(tQ({},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,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=t8(n.values,o,e(t6(n.values,o))),l=r?i(t6(n.errors,o)):void 0,u=t?a(t6(n.touched,o)):void 0;return t1(l)&&(l=void 0),t1(u)&&(u=void 0),tQ({},n,{values:s,errors:r?t8(n.errors,o,l):n.errors,touched:t?t8(n.touched,o,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nc(t),[tL(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 ns(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 na(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 nl(n,e,t)},function(t){return nl(t,e,null)},function(t){return nl(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 nu(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(t0(n)),n.pop=n.pop.bind(t0(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&&!l()(t6(e.formik.values,e.name),t6(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?nc(n):[];return t||(t=r[e]),t2(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,r=t.render,i=t.children,o=t.name,s=tJ(t.formik,["validate","validationSchema"]),l=tQ({},e,{form:s,name:o});return n?(0,a.createElement)(n,l):r?r(l):i?"function"==typeof i?i(l):0===a.Children.count(i)?null:a.Children.only(i):null},t})(a.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},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;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 a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v=0;)(u=e(r,i,o,a,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&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(r,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.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 k},Il:function(){return i},J5:function(){return a},SU:function(){return j},Ss:function(){return S},Ym:function(){return T},ZP:function(){return b},xV:function(){return o}});var r=n(40948);function i(){}var o=.7,a=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 x(){return this.rgb().formatRgb()}function b(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?E(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?E(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))?E(t[1],t[2],t[3],t[4]):(t=p.exec(e))?E(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 E(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function j(e){return(e instanceof i||(e=b(e)),e)?(e=e.rgb(),new S(e.r,e.g,e.b,e.opacity)):new S}function k(e,t,n,r){return 1==arguments.length?j(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 _(){return"#"+C(this.r)+C(this.g)+C(this.b)}function O(){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 C(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 A(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(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,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(n-r)/l+(n0&&u<1?0:s,new P(s,l,u,e.opacity)}function T(e,t,n,r){return 1==arguments.length?A(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,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:x,toString:x}),(0,r.Z)(S,k,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,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:_,formatHex:_,formatRgb:O,toString:O})),(0,r.Z)(P,T,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,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),o=n(10810),a=4/29,s=6/29,l=3*(6/29)*(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 x(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=s:(t=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.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+a}function p(e){return e>s?e*e*e:l*(e-a)}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],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-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"];o=(i=function(e){var t,n,i,o=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,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=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 x(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,x=e.comma,b=e.precision,w=e.trim,E=e.type;"n"===E?(x=!0,E="g"):d[E]||(void 0===b&&(b=12),w=!0,E="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var j="$"===s?a:"#"===s&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",k="$"===s?u:/[%p]/.test(E)?v:"",S=d[E],_=/[defgprs%]/.test(E);function O(e){var a,s,l,u=j,d=k;if("c"===E)d=S(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:S(Math.abs(e),b),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"===E?p[8+r/3]:"")+d+(v&&"("===i?")":""),_){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}x&&!f&&(e=o(e,1/0));var O=u.length+e.length+d.length,C=O>1)+u+e+d+C.slice(O);break;default:e=C+u+e+d}return m(e)}return b=void 0===b?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),O.toString=function(){return e+""},O}return{format:x,formatPrefix:function(e,t){var n=x(((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),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=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 o({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 o(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=o.prototype,o.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}},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 o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(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 a=/[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?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var a=l(r,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),n.concat(a)}return n.concat(function(e,n,r){var i,a=[];if("L"===n.type||"Q"===n.type||"C"===n.type)a=a.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),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,r):a.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(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),o=n(10810),a=-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=(a*r+-1.7884503806*t-3.5172982438*n)/(a+-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)*o.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)*o.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(-.29227*r+-.90649*a)),255*(t+n*(1.97294*r)),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),o=(0,u.ZP)(t.s,r.s),a=(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=o(e),t.l=a(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 a}});var r=n(20966),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(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=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(68847),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(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=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(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 A.Z},interpolateHslLong:function(){return A.q},interpolateHue:function(){return p},interpolateLab:function(){return T.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 x.Z},interpolateTransformCss:function(){return k},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return C},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,o,a,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),x=n(76060),b=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function E(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(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=o.skewX)!==(c=a.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,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=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=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=r-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),x=y/g,b=y/v;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+b*l)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);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),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*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=a},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[o],t)?r=o+1:i=o}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,o){null==r&&(r=0),null==o&&(o=e.length);let a=i(e,n,r,o-1);return a>r&&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}}}var o=n(81048);let a=i(r.Z),s=a.right;a.left,i(o.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 o=n(1169);function a(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=o.Z){for(;i>r;){if(i-r>600){let o=i-r+1,a=n-r+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(r,Math.floor(n-a*u/o+c)),f=Math.min(i,Math.floor(n+(o-a)*u/o+c));e(t,n,d,f,s)}let o=t[n],l=r,u=i;for(a(t,r,n),s(t[i],o)>0&&a(t,r,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[r],o)?a(t,r,u):a(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,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var r,i,o,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++lt&&--r,o=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function j(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function k(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 _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function O(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function C(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 A(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 T(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 F(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function V(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 I(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Z(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 x(e.getDate(),t,2)}function U(e,t){return x(e.getHours(),t,2)}function W(e,t){return x(e.getHours()%12||12,t,2)}function q(e,t){return x(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return x(e.getMilliseconds(),t,3)}function Y(e,t){return $(e,t)+"000"}function G(e,t){return x(e.getMonth()+1,t,2)}function X(e,t){return x(e.getMinutes(),t,2)}function K(e,t){return x(e.getSeconds(),t,2)}function Q(e){var t=e.getDay();return 0===t?7:t}function J(e,t){return x(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),x(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 x(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return x(e.getFullYear()%100,t,2)}function eo(e,t){return x((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return x(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return x((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,"+"))+x(t/60|0,"0",2)+x(t%60,"0",2)}function eu(e,t){return x(e.getUTCDate(),t,2)}function ec(e,t){return x(e.getUTCHours(),t,2)}function ed(e,t){return x(e.getUTCHours()%12||12,t,2)}function ef(e,t){return x(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return x(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return x(e.getUTCMonth()+1,t,2)}function ev(e,t){return x(e.getUTCMinutes(),t,2)}function eg(e,t){return x(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function ex(e,t){return x(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function eb(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=eb(e),x(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function eE(e){return e.getUTCDay()}function ej(e,t){return x(a.l6.count((0,d.Z)(e)-1,e),t,2)}function ek(e,t){return x(e.getUTCFullYear()%100,t,2)}function eS(e,t){return x((e=eb(e)).getUTCFullYear()%100,t,2)}function e_(e,t){return x(e.getUTCFullYear()%1e4,t,4)}function eO(e,t){var n=e.getUTCDay();return x((e=n>=4||0===n?(0,a.hB)(e):a.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eC(){return"+0000"}function eM(){return"%"}function eA(e){return+e}function eT(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=E(i),x=w(o),b=E(o),ee=w(c),eb=E(c),eP=w(d),eN=E(d),eR=w(v),eD=E(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:Y,g:eo,G:es,H:U,I:W,j:q,L:$,m:G,M:X,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eA,s:eT,S:K,u:Q,U:J,V:et,w:en,W:er,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eF={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[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:eO,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:eA,s:eT,S:eg,u:ey,U:ex,V:ew,w:eE,W:ej,x:null,X:null,y:ek,Y:e_,Z:eC,"%":eM},eV={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=eb.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=x.exec(t.slice(n));return r?(e.w=b.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 eZ(e,t,n,r)},d:N,e:N,f:z,g:M,G:C,H:D,I:D,j:R,L:V,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:T,Q:Z,s:B,S:F,u:k,U:S,V:_,w:j,W:O,x:function(e,t,r){return eZ(e,n,t,r)},X:function(e,t,n){return eZ(e,r,t,n)},y:M,Y:C,Z:A,"%":I};function ez(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(r):(0,a.l6)(r),r=s.Z.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eZ(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=eV[(i=t.charAt(a++))in m?t.charAt(a++):i])||(r=o(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),eF.x=ez(n,eF),eF.X=ez(r,eF),eF.c=ez(t,eF),{format:function(e){var t=ez(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=eI(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=ez(e+="",eF);return t.toString=function(){return e},t},utcParse:function(e){var t=eI(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,o=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},x:function(){return a}});var r=n(22274),i=n(34130);function o(){var e,t,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=a().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,x}function x(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return x.invert=function(n){return g(t((h||(h=r(m,p.map(e),o.Z)))(n)))},x.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},x.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},x.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},x.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},x.interpolate=function(e){return arguments.length?(v=e,y()):v},x.unknown=function(e){return arguments.length?(n=e,x):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)(C()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,a.Q)(C()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return A},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(C());return t.copy=function(){return w(t,e()).constant(t.constant())},x.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,o.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,o.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.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)(b()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(b()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleSequentialPow:function(){return E},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,k.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,_.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},x.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return j},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(b());return t.copy=function(){return w(t,e()).constant(t.constant())},x.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 T.Z}});var r=n(48623),i=n(93963),o=n(5497),a=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),x=n(22274);function b(){var e,t,n,r,i,o=0,a=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?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},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(o),t=i(a),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 E(){var e=(0,u.Hh)(b());return e.copy=function(){return w(e,E()).exponent(e.exponent())},x.O.apply(e,arguments)}function j(){return E.apply(null,arguments).exponent(.5)}var k=n(98038),S=n(1169),_=n(33907),O=n(87475);function C(){var e,t,n,r,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}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,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),o=n(10070),a=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,a=e(l,u),s=a.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),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.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],a]:[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,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),o=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,a.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,o.Q)(c)}}});var r=n(70552),i=n(22274),o=n(93963),a=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())},o.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),o=n(22274);function a(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(a(1),s(t));return n.constant=function(n){return arguments.length?e(a(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],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,r.ZP)(n,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((n=Array.from(e)).length,o.length-1),s):n.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(n.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.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(o).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},62498:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(32071),i=n(52328),o=n(23733),a=n(11192);function s(e,t,n,s){var l,u,c,d=(0,r.ly)(e,t,n);switch((s=(0,i.Z)(null==s?",f":s)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=s.precision||isNaN(c=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(f)/3)))-(0,o.Z)(Math.abs(d))))||(s.precision=c),(0,a.jH)(s,f);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN((l=d,u=Math.abs(u=Math.max(Math.abs(e),Math.abs(t)))-(l=Math.abs(l)),c=Math.max(0,(0,o.Z)(u)-(0,o.Z)(l))+1))||(s.precision=c-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(c=Math.max(0,-(0,o.Z)(Math.abs(d))))||(s.precision=c-("%"===s.type)*2)}return(0,a.WU)(s)}},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),o=n(50690),a=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,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),x=u(":%S"),b=u("%I:%M"),w=u("%I %p"),E=u("%a %d"),j=u("%b %d"),k=u("%B"),S=u("%Y");function _(e){return(l(e)T*T+P*P&&(S=O,_=C),{cx:S,cy:_,x01:-d,y01:-f,x11:S*(i/E-1),y11:_*(i/E-1)}}function f(){var e=a,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var x,b,w=u,E=c,j=u,k=c,S=g,_=g,O=m.apply(this,arguments)/2,C=O>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),A=M,T=M;if(C>o.Ho){var P=(0,o.ZR)(C/s*(0,o.O$)(O)),N=(0,o.ZR)(C/l*(0,o.O$)(O));(S-=2*P)>o.Ho?(P*=y?1:-1,j+=P,k-=P):(S=0,j=k=(u+c)/2),(_-=2*N)>o.Ho?(N*=y?1:-1,w+=N,E-=N):(_=0,w=E=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(k),F=s*(0,o.O$)(k);if(M>o.Ho){var V,z=l*(0,o.mC)(E),I=l*(0,o.O$)(E),Z=s*(0,o.mC)(j),B=s*(0,o.O$)(j);if(go.Ho?T>o.Ho?(x=d(Z,B,R,D,l,T,y),b=d(z,I,L,F,l,T,y),v.moveTo(x.cx+x.x01,x.cy+x.y01),To.Ho&&S>o.Ho?A>o.Ho?(x=d(L,F,z,I,s,-A,y),b=d(R,D,Z,B,s,-A,y),v.lineTo(x.cx+x.x01,x.cy+x.y01),A=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.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,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*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 o(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),a.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:o(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,o(this,i(this,n=r(this,e,t)),n);break;default:o(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(a.prototype)).point=function(e,t){a.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,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},j:function(){return r}});var r=o(n(20651).Z);function i(e){this._curve=e}function o(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 o(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),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 j},curveBasisClosed:function(){return S},curveBasisOpen:function(){return O},curveBundle:function(){return M},curveCardinal:function(){return A.ZP},curveCardinalClosed:function(){return P},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return V},curveCatmullRomClosed:function(){return I},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 G},curveStep:function(){return X.ZP},curveStepAfter:function(){return X.cD},curveStepBefore:function(){return X.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return K.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 eo.Z},stackOrderInsideOut:function(){return ea.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 x.Z},symbols:function(){return f.u}});var r=n(38764),i=n(12235),o=n(79767),a=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,o=e.lineY0,a=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)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},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),x=n(60598);function b(){}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 E(e){this._context=e}function j(e){return new E(e)}function k(e){this._context=e}function S(e){return new k(e)}function _(e){this._context=e}function O(e){return new _(e)}function C(e,t){this._basis=new E(e),this._beta=t}E.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}},k.prototype={areaStart:b,areaEnd:b,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}},_.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}},C.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],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+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 E(e):new C(e,t)}return n.beta=function(t){return e(+t)},n}(.85),A=n(46385);function T(e,t){this._context=e,this._k=(1-t)/6}T.prototype={areaStart:b,areaEnd:b,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,A.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 T(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,A.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,o=e._x2,a=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);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}F.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 V=function e(t){function n(e){return t?new F(e,t):new A.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:b,areaEnd:b,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 I=function e(t){function n(e){return t?new z(e,t):new T(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: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 Z(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:b,areaEnd:b,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 Y(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[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,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=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,o,a=0,s=e[0].length;a1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o0){for(var n,i=0,o=e[t[0]],a=o.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(o);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function o(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 o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(a.BZ),u=(0,r.Z)(0);function c(r){var i,o,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/h,u.apply(this,arguments)),b=x*(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*b)/p:0;i0?f*c:0)+b,v[o]={data:r[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:x};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),o=n(90541),a=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,n=o.Z,l=s;function u(r){var i,o,a=e.apply(this,arguments),s=r.length,u=a.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=o;var a=o.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,u=365*a},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(22179),i=n(1514),o=(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=o;var a=o.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 a.Z},timeMinutes:function(){return a.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 o.Z},timeSeconds:function(){return o.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 o.Z},utcSeconds:function(){return o.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),o=n(52546),a=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,o,a){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 a;do a.push(o=new Date(+e)),n(e,i),t(e);while(o=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););}})},o&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(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 o}});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 o=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(22179),i=n(1514),o=(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=o;var a=o.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 a}});var r=n(22179),i=n(1514),o=(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=o;var a=o.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return _},jK:function(){return S},jo:function(){return k},WG:function(){return j}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>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)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{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}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===o)return l.Z.every(Math.max(a(t,n,r),1));let[u,d]=c[i/c[o-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 o=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return x},Ld:function(){return v},OM:function(){return a},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 o(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 a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,x=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});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 o=i.range},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}})},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(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},63397:function(e,t,n){"use strict";n.d(t,{TA:function(){return nn}});var r,i,o,a=n(2784),s=n(78435),l=n.n(s),u=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==c},c="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function d(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h(Array.isArray(e)?[]:{},e,t):e}function f(e,t,n){return e.concat(t).map(function(e){return d(e,n)})}function h(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||u;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?d(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=d(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=h(e[n],t[n],r):i[n]=d(t[n],r)}),i)}h.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return h(e,n,t)},{})};var p=h,m="object"==typeof global&&global&&global.Object===Object&&global,v="object"==typeof self&&self&&self.Object===Object&&self,g=m||v||Function("return this")(),y=g.Symbol,x=Object.prototype,b=x.hasOwnProperty,w=x.toString,E=y?y.toStringTag:void 0,j=function(e){var t=b.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var i=w.call(e);return r&&(t?e[E]=n:delete e[E]),i},k=Object.prototype.toString,S=y?y.toStringTag:void 0,_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?j(e):k.call(e)},O=function(e,t){return function(n){return e(t(n))}},C=O(Object.getPrototypeOf,Object),M=function(e){return null!=e&&"object"==typeof e},A=Object.prototype,T=Function.prototype.toString,P=A.hasOwnProperty,N=T.call(Object),R=function(e){if(!M(e)||"[object Object]"!=_(e))return!1;var t=C(e);if(null===t)return!0;var n=P.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&T.call(n)==N},D=function(e,t){return e===t||e!=e&&t!=t},L=function(e,t){for(var n=e.length;n--;)if(D(e[n][0],t))return n;return -1},F=Array.prototype.splice;function V(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},V.prototype.set=function(e,t){var n=this.__data__,r=L(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},I=function(e){if(!z(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Z=g["__core-js_shared__"],B=(r=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",H=Function.prototype.toString,U=function(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""},W=/^\[object .+?Constructor\]$/,q=Object.prototype,$=Function.prototype.toString,Y=q.hasOwnProperty,G=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=function(e,t){var n,r=null==e?void 0:e[t];return z(n=r)&&(!B||!(B in n))&&(I(n)?G:W).test(U(n))?r:void 0},K=X(g,"Map"),Q=X(Object,"create"),J=Object.prototype.hasOwnProperty,ee=Object.prototype.hasOwnProperty;function et(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},e_={};e_["[object Float32Array]"]=e_["[object Float64Array]"]=e_["[object Int8Array]"]=e_["[object Int16Array]"]=e_["[object Int32Array]"]=e_["[object Uint8Array]"]=e_["[object Uint8ClampedArray]"]=e_["[object Uint16Array]"]=e_["[object Uint32Array]"]=!0,e_["[object Arguments]"]=e_["[object Array]"]=e_["[object ArrayBuffer]"]=e_["[object Boolean]"]=e_["[object DataView]"]=e_["[object Date]"]=e_["[object Error]"]=e_["[object Function]"]=e_["[object Map]"]=e_["[object Number]"]=e_["[object Object]"]=e_["[object RegExp]"]=e_["[object Set]"]=e_["[object String]"]=e_["[object WeakMap]"]=!1;var eO=function(e){return function(t){return e(t)}},eC="object"==typeof exports&&exports&&!exports.nodeType&&exports,eM=eC&&"object"==typeof module&&module&&!module.nodeType&&module,eA=eM&&eM.exports===eC&&m.process,eT=function(){try{var e=eM&&eM.require&&eM.require("util").types;if(e)return e;return eA&&eA.binding&&eA.binding("util")}catch(e){}}(),eP=eT&&eT.isTypedArray,eN=eP?eO(eP):function(e){return M(e)&&eS(e.length)&&!!e_[_(e)]},eR=Object.prototype.hasOwnProperty,eD=function(e,t){var n=ey(e),r=!n&&eg(e),i=!n&&!r&&eE(e),o=!n&&!r&&!i&&eN(e),a=n||r||i||o,s=a?ef(e.length,String):[],l=s.length;for(var u in e)(t||eR.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ek(u,l)))&&s.push(u);return s},eL=Object.prototype,eF=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eL)},eV=O(Object.keys,Object),ez=Object.prototype.hasOwnProperty,eI=function(e){if(!eF(e))return eV(e);var t=[];for(var n in Object(e))ez.call(e,n)&&"constructor"!=n&&t.push(n);return t},eZ=function(e){return null!=e&&eS(e.length)&&!I(e)},eB=function(e){return eZ(e)?eD(e):eI(e)},eH=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eU=Object.prototype.hasOwnProperty,eW=function(e){if(!z(e))return eH(e);var t=eF(e),n=[];for(var r in e)"constructor"==r&&(t||!eU.call(e,r))||n.push(r);return n},eq=function(e){return eZ(e)?eD(e,!0):eW(e)},e$="object"==typeof exports&&exports&&!exports.nodeType&&exports,eY=e$&&"object"==typeof module&&module&&!module.nodeType&&module,eG=eY&&eY.exports===e$?g.Buffer:void 0,eX=eG?eG.allocUnsafe:void 0,eK=function(e,t){if(t)return e.slice();var n=e.length,r=eX?eX(n):new e.constructor(n);return e.copy(r),r},eQ=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0||(i[n]=e[n]);return i}function t0(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var t1=function(e){return Array.isArray(e)&&0===e.length},t2=function(e){return"function"==typeof e},t4=function(e){return null!==e&&"object"==typeof e},t3=function(e){return"[object String]"===Object.prototype.toString.call(e)},t5=function(e){return t4(e)&&t2(e.then)};function t6(e,t,n,r){void 0===r&&(r=0);for(var i=tX(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var t7=(0,a.createContext)(void 0);function t9(e,t){switch(t.type){case"SET_VALUES":return tQ({},e,{values:t.payload});case"SET_TOUCHED":return tQ({},e,{touched:t.payload});case"SET_ERRORS":if(l()(e.errors,t.payload))return e;return tQ({},e,{errors:t.payload});case"SET_STATUS":return tQ({},e,{status:t.payload});case"SET_ISSUBMITTING":return tQ({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tQ({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tQ({},e,{values:t8(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tQ({},e,{touched:t8(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tQ({},e,{errors:t8(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tQ({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tQ({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;t6(t,a.path)||(t=t8(t,a.path,a.message))}}return t}(n)):t(n)})})},[m.validationSchema]),O=(0,a.useCallback)(function(e,t){return new Promise(function(n){return n(w.current[e].validate(t))})},[]),C=(0,a.useCallback)(function(e){var t=Object.keys(w.current).filter(function(e){return t2(w.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return O(t,t6(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=t8(e,t[r],n)),e},{})})},[O]),M=(0,a.useCallback)(function(e){return Promise.all([C(e),m.validationSchema?_(e):{},m.validate?S(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return p.all([t,n,r],{arrayMerge:nr})})},[m.validate,m.validationSchema,C,S,_]),A=no(function(e){return void 0===e&&(e=j.values),k({type:"SET_ISVALIDATING",payload:!0}),M(e).then(function(e){return b.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:e})),e})});(0,a.useEffect)(function(){s&&!0===b.current&&l()(v.current,m.initialValues)&&A(v.current)},[s,A]);var T=(0,a.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:g.current?g.current:m.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:m.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:m.initialStatus;v.current=t,g.current=n,y.current=r,x.current=i;var o=function(){k({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(m.onReset){var a=m.onReset(j.values,K);t5(a)?a.then(o):o()}else o()},[m.initialErrors,m.initialStatus,m.initialTouched]);(0,a.useEffect)(function(){!0===b.current&&!l()(v.current,m.initialValues)&&(d&&(v.current=m.initialValues,T()),s&&A(v.current))},[d,m.initialValues,T,s,A]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(g.current,m.initialErrors)&&(g.current=m.initialErrors||ne,k({type:"SET_ERRORS",payload:m.initialErrors||ne}))},[d,m.initialErrors]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(y.current,m.initialTouched)&&(y.current=m.initialTouched||nt,k({type:"SET_TOUCHED",payload:m.initialTouched||nt}))},[d,m.initialTouched]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(x.current,m.initialStatus)&&(x.current=m.initialStatus,k({type:"SET_STATUS",payload:m.initialStatus}))},[d,m.initialStatus,m.initialTouched]);var P=no(function(e){if(w.current[e]&&t2(w.current[e].validate)){var t=t6(j.values,e),n=w.current[e].validate(t);return t5(n)?(k({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),k({type:"SET_ISVALIDATING",payload:!1})})):(k({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(k({type:"SET_ISVALIDATING",payload:!0}),_(j.values,e).then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),k({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),N=(0,a.useCallback)(function(e,t){var n=t.validate;w.current[e]={validate:n}},[]),D=(0,a.useCallback)(function(e){delete w.current[e]},[]),L=no(function(e,t){return k({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?A(j.values):Promise.resolve()}),F=(0,a.useCallback)(function(e){k({type:"SET_ERRORS",payload:e})},[]),V=no(function(e,t){var r=t2(e)?e(j.values):e;return k({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()}),z=(0,a.useCallback)(function(e,t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),I=no(function(e,t,r){return k({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(t8(j.values,e,t)):Promise.resolve()}),Z=(0,a.useCallback)(function(e,t){var n,r=t,i=e;if(!t3(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(t6(j.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&I(r,i)},[I,j.values]),B=no(function(e){if(t3(e))return function(t){return Z(t,e)};Z(e)}),H=no(function(e,t,n){return void 0===t&&(t=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?A(j.values):Promise.resolve()}),U=(0,a.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,H(t||r||i,!0)},[H]),W=no(function(e){if(t3(e))return function(t){return U(t,e)};U(e)}),q=(0,a.useCallback)(function(e){t2(e)?k({type:"SET_FORMIK_STATE",payload:e}):k({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),$=(0,a.useCallback)(function(e){k({type:"SET_STATUS",payload:e})},[]),Y=(0,a.useCallback)(function(e){k({type:"SET_ISSUBMITTING",payload:e})},[]),G=no(function(){return k({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=Q(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return b.current&&k({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw k({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(k({type:"SUBMIT_FAILURE"}),n))throw e})}),X=no(function(e){e&&e.preventDefault&&t2(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t2(e.stopPropagation)&&e.stopPropagation(),G().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),K={resetForm:T,validateForm:A,validateField:P,setErrors:F,setFieldError:z,setFieldTouched:H,setFieldValue:I,setStatus:$,setSubmitting:Y,setTouched:L,setValues:V,setFormikState:q,submitForm:G},Q=no(function(){return f(j.values,K)}),J=no(function(e){e&&e.preventDefault&&t2(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t2(e.stopPropagation)&&e.stopPropagation(),T()}),ee=(0,a.useCallback)(function(e){return{value:t6(j.values,e),error:t6(j.errors,e),touched:!!t6(j.touched,e),initialValue:t6(v.current,e),initialTouched:!!t6(y.current,e),initialError:t6(g.current,e)}},[j.errors,j.touched,j.values]),et=(0,a.useCallback)(function(e){return{setValue:function(t,n){return I(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return z(e,t)}}},[I,H,z]),en=(0,a.useCallback)(function(e){var t=t4(e),n=t?e.name:e,r=t6(j.values,n),i={name:n,value:r,onChange:B,onBlur:W};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[W,B,j.values]),er=(0,a.useMemo)(function(){return!l()(v.current,j.values)},[v.current,j.values]),ei=(0,a.useMemo)(function(){return void 0!==u?er?j.errors&&0===Object.keys(j.errors).length:!1!==u&&t2(u)?u(m):u:j.errors&&0===Object.keys(j.errors).length},[u,er,j.errors,m]);return tQ({},j,{initialValues:v.current,initialErrors:g.current,initialTouched:y.current,initialStatus:x.current,handleBlur:W,handleChange:B,handleReset:J,handleSubmit:X,resetForm:T,setErrors:F,setFormikState:q,setFieldTouched:H,setFieldValue:I,setFieldError:z,setStatus:$,setSubmitting:Y,setTouched:L,setValues:V,submitForm:G,validateForm:A,validateField:P,isValid:ei,dirty:er,unregisterField:D,registerField:N,getFieldProps:en,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:n,validateOnMount:s})}function nr(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?p(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=p(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var ni="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function no(e){var t=(0,a.useRef)(e);return ni(function(){t.current=e}),(0,a.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(tQ({},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,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=t8(n.values,o,e(t6(n.values,o))),l=r?i(t6(n.errors,o)):void 0,u=t?a(t6(n.touched,o)):void 0;return t1(l)&&(l=void 0),t1(u)&&(u=void 0),tQ({},n,{values:s,errors:r?t8(n.errors,o,l):n.errors,touched:t?t8(n.touched,o,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nc(t),[tL(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 ns(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 na(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 nl(n,e,t)},function(t){return nl(t,e,null)},function(t){return nl(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 nu(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(t0(n)),n.pop=n.pop.bind(t0(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&&!l()(t6(e.formik.values,e.name),t6(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?nc(n):[];return t||(t=r[e]),t2(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,r=t.render,i=t.children,o=t.name,s=tJ(t.formik,["validate","validationSchema"]),l=tQ({},e,{form:s,name:o});return n?(0,a.createElement)(n,l):r?r(l):i?"function"==typeof i?i(l):0===a.Children.count(i)?null:a.Children.only(i):null},t})(a.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},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;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 a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v */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:(h?-1:1)*(1/0);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();++t-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));t:for(;++c0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:function(e,t,n){var r=n(17297),i=n(33812);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var y=-1,x=p[0];t:for(;++yi?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=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new r}else p=t?[]:h;t:for(;++u=i?e:r(e,t,n)}},10768:function(e,t,n){var r=n(77832);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},51821:function(e,t,n){var r=n(77832);e.exports=function(e,t){for(var n=-1,i=e.length;++n-1;);return n}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))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)}},79493: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},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},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))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},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}},66024:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r=t||n<0||v&&r>=c}function b(){var e,n,r,o=i();if(x(o))return w(o);f=setTimeout(b,(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=x(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,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,"")}},17335:function(e,t,n){var r=n(85246),i=n(62034),o=n(36060),a=n(93746),s=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,n){e.exports=n(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},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}},3440:function(e,t,n){var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},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}},30898:function(e,t,n){var r=n(50343),i=n(88390),o=n(36060),a=n(5642),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},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)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&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},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},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}},4714:function(e,t,n){var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},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}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(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}},43679:function(e,t,n){var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},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)}},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},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},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(29097),c=n(76939),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},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},829:function(e,t,n){var r=n(62034),i=n(23813),o=n(36060),a=n(82406),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,n){var r=n(36473),i=n(89419),o=n(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=r(s,t);++n"+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:x})=>{let[b,w]=(0,r.useState)(()=>p(l,c)),[E,j]=(0,r.useState)(()=>p(l)),k=g?Object.values(g):u,_=(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()},[]),S=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),O=(0,r.useCallback)(t=>{let r=v(t);j(r),"system"===b&&n&&!e&&_("system")},[b,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&S(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[S]),(0,r.useEffect)(()=>{_(null!=e?e:b)},[e,b]);let C=(0,r.useMemo)(()=>({theme:b,setTheme:S,forcedTheme:e,resolvedTheme:"system"===b?E:b,themes:n?[...u,"system"]:u,systemTheme:n?E:void 0}),[b,S,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:x}),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")},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(76176)}])},4941: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(76848),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)},3639:function(e,t,n){"use strict";n.d(t,{F:function(){return y}});var r=n(52322),i=n(4941);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(22515),u=n(734);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(92838),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})]})}},71930:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(27444);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},99957:function(e,t,n){"use strict";n.d(t,{iV:function(){return w},ZR:function(){return b}});var r=n(52322),i=n(2784),o=n(76848),a=n(27444);let s=[{value:"",label:"Off"},{value:"route53",label:"Route 53"},{value:"noip",label:"No-IP"},{value:"duckdns",label:"Duck DNS"},{value:"cloudflare",label:"Cloudflare"}],l={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,maxRegistryEntries: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:""};var u=n(6391),c=n.n(u),d=n(96206),f=n(94977);function h(e,t){return new(c())(12960).times(e).div((0,o.S5V)(1)).times(t)}function p(e,t){return t?new(c())(new(c())(e).div(t.sc.usd).div(10).toFixed(0)).times(10):void 0}var m=n(63955),v=n(92762),g=n(2850),y=n(47025);let x=(0,i.createContext)({}),b=()=>(0,i.useContext)(x);function w(e){let{children:t}=e,n=function(){let e=(0,a.rV)({standalone:"configSettingsForm",config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),t=(0,a.Te)(),n=(0,a.uo)({disabled:!e.data||!e.data.ddns.provider,config:{swr:{revalidateOnFocus:!1,errorRetryCount:0}}}),[u,x]=(0,v.Z)("v0/config/showAdvanced",{defaultValue:!1}),b=(0,m.cI)({mode:"all",defaultValues:l}),w=b.watch("storagePrice"),E=b.watch("collateralMultiplier"),j=(0,i.useCallback)(e=>{let t;let n=(t=null,"duckdns"===e.ddns.provider&&(t={dnsDuckDnsToken:e.ddns.options.token}),"noip"===e.ddns.provider&&(t={dnsNoIpEmail:e.ddns.options.email,dnsNoIpPassword:e.ddns.options.password}),"route53"===e.ddns.provider&&(t={dnsAwsId:e.ddns.options.ID,dnsAwsSecret:e.ddns.options.secret,dnsAwsZoneId:e.ddns.options.zoneID}),"cloudflare"===e.ddns.provider&&(t={dnsCloudflareToken:e.ddns.options.token,dnsCloudflareZoneId:e.ddns.options.zoneID}),{acceptingContracts:e.acceptingContracts,netAddress:e.netAddress,maxContractDuration:new(c())(e.maxContractDuration).div((0,o.S5V)(1)),contractPrice:(0,d.ll)(e.contractPrice,6),baseRPCPrice:(0,d.ll)((0,f.sS)(e.baseRPCPrice),6),sectorAccessPrice:(0,d.ll)((0,f.nS)(e.sectorAccessPrice),6),collateralMultiplier:new(c())(e.collateralMultiplier),maxCollateral:(0,d.ll)(e.maxCollateral,6),storagePrice:(0,d.ll)((0,f.SY)(e.storagePrice),6),egressPrice:(0,d.ll)((0,f.B1)(e.egressPrice),6),ingressPrice:(0,d.ll)((0,f.dK)(e.ingressPrice),6),priceTableValidity:new(c())(e.priceTableValidity).div(1e9).div(60),maxRegistryEntries:new(c())(e.maxRegistryEntries),accountExpiry:new(c())(e.accountExpiry).div(1e9).div(86400),maxAccountBalance:(0,d.ll)(e.maxAccountBalance,6),ingressLimit:(0,o.BTR)(new(c())(e.ingressLimit)),egressLimit:(0,o.BTR)(new(c())(e.egressLimit)),dnsProvider:e.ddns.provider,dnsIpv4:e.ddns.ipv4,dnsIpv6:e.ddns.ipv6,...t});return b.reset(n),n},[b]),k=(0,i.useMemo)(()=>[e.data],[e.data]),_=(0,i.useCallback)(()=>e.data?j(e.data):null,[j,e.data]),[S,O]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(!S){let e=_();e&&O(!0)}},[S,_]);let C=(0,i.useCallback)(async()=>{let t=await e.mutate();t?(j(t),await n.mutate()):(0,o.OHV)("Error fetching settings.")},[e,j,n]),M=(0,i.useCallback)(async n=>{if(e.data)try{var r;let i;let a={};u||(a.maxCollateral=h(n.storagePrice,n.collateralMultiplier));let s={...n,...a},l=await t.patch({payload:(r=e.data,i=null,"duckdns"===s.dnsProvider&&(i={token:s.dnsDuckDnsToken}),"noip"===s.dnsProvider&&(i={email:s.dnsNoIpEmail,password:s.dnsNoIpPassword}),"route53"===s.dnsProvider&&(i={ID:s.dnsAwsId,secret:s.dnsAwsSecret,zoneID:s.dnsAwsZoneId}),"cloudflare"===s.dnsProvider&&(i={token:s.dnsCloudflareToken,zoneID:s.dnsCloudflareZoneId}),{...r,acceptingContracts:s.acceptingContracts,netAddress:s.netAddress,maxContractDuration:Number(s.maxContractDuration.times((0,o.S5V)(1)).toFixed(0)),contractPrice:(0,d.qN)(s.contractPrice).toString(),baseRPCPrice:s.baseRPCPrice.div((0,d.ll)((0,f.sS)(1))).toFixed(0),sectorAccessPrice:s.sectorAccessPrice.div((0,d.ll)((0,f.nS)(1))).toFixed(0),collateralMultiplier:s.collateralMultiplier.toNumber(),maxCollateral:(0,d.qN)(s.maxCollateral).toString(),storagePrice:s.storagePrice.div((0,d.ll)((0,f.SY)(1))).toFixed(0),egressPrice:s.egressPrice.div((0,d.ll)((0,f.B1)(1))).toFixed(0),ingressPrice:s.ingressPrice.div((0,d.ll)((0,f.dK)(1))).toFixed(0),priceTableValidity:Number(s.priceTableValidity.times(60).times(1e9).toFixed(0)),maxRegistryEntries:Number(s.maxRegistryEntries.toFixed(0)),accountExpiry:Number(s.accountExpiry.times(86400).times(1e9).toFixed(0)),maxAccountBalance:(0,d.qN)(s.maxAccountBalance).toString(),ingressLimit:Number((0,o.YaL)(s.ingressLimit).toFixed(0)),egressLimit:Number((0,o.YaL)(s.egressLimit).toFixed(0)),ddns:{...null==r?void 0:r.ddns,provider:s.dnsProvider,ipv4:s.dnsIpv4,ipv6:s.dnsIpv6,options:i}})});if(l.error)throw Error(l.error);b.formState.dirtyFields.netAddress?(0,o.OPV)("Settings have been saved. Address has changed, make sure to re-announce the host.",{duration:2e4}):(0,o.OPV)("Settings have been saved."),await C()}catch(e){(0,o.OHV)(e.message),console.log(e)}},[b,u,e,t,C]),A=(0,y.BW)(),P=(0,i.useMemo)(()=>{var e;return function(e){let{showAdvanced:t,storageTBMonth:n,collateralMultiplier:i,rates:a}=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:9882",validation:{required:"required"}},maxContractDuration:{type:"number",category:"host",title:"Maximum contract duration",units:"months",decimalsLimit:2,suggestion:new(c())(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(c())(e).gte((0,o.E6f)(4320))||"must be at least 1 month"}}},storagePrice:{title:"Storage price",type:"siacoin",category:"pricing",units:"SC/TB/month",decimalsLimitSc:6,suggestion:a?p(1,a):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:a?p(10,a):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."}),validation:{required:"required"}},ingressPrice:{title:"Ingress price",type:"siacoin",category:"pricing",units:"SC/TB",suggestion:a?p(.05,a):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."}),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(c())(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(c())(.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(c())(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(c())(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(c())(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"}},maxRegistryEntries:{title:"Maximum registry size",type:"number",category:"registry",units:"entries",suggestion:new(c())(1e3),suggestionTip:"The suggested maximum registry size.",decimalsLimit:0,description:(0,r.jsx)(r.Fragment,{children:"The maximum number of registry entries that the host will store. Each registry entry is up to 113 bytes."}),hidden:!t,validation:{required:"required"}},accountExpiry:{title:"Expiry",type:"number",category:"RHP3",units:"days",suggestion:new(c())(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(c())(e).gte(7)||"must be at least 1 week"}}},maxAccountBalance:{title:"Maximum balance",type:"siacoin",category:"RHP3",suggestion:new(c())(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(c())(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:s,description:(0,r.jsx)(r.Fragment,{children:"Enable dynamic DNS with one of the supported providers."}),validation:{validate:e=>!!s.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:u,storageTBMonth:w,collateralMultiplier:E,rates:null===(e=A.data)||void 0===e?void 0:e.rates})},[u,w,E,A.data]),T=(0,o.WsO)(P),N=(0,i.useMemo)(()=>b.handleSubmit(M,T),[b,M,T]),R=(0,i.useCallback)(()=>{let e=b.getValues(),t=_();if(t)for(let[n,r]of(b.reset(t),Object.entries(e)))b.setValue(n,r,{shouldDirty:!0})},[b,_]),{isUnlocked:D}=(0,g.Hv)();(0,i.useEffect)(()=>{D&&C()},[D]),(0,i.useEffect)(()=>{b.formState.isSubmitting||R()},[b,u,k]);let L=Object.entries(b.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length;return{fields:P,settings:e,dynDNSCheck:n,changeCount:L,revalidateAndResetFormData:C,form:b,onSubmit:N,showAdvanced:u,setShowAdvanced:x}}();return(0,r.jsx)(x.Provider,{value:n,children:t})}},92838:function(e,t,n){"use strict";n.d(t,{x:function(){return x},G:function(){return y}});var r=n(52322),i=n(76848),o=n(5632),a=n(27444),s=n(2784),l=n(56860),u=n(41775),c=n(96206),d=n(22515);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)(e.error):(0,i.OPV)((0,r.jsxs)(r.Fragment,{children:["Integrity check successfully started, 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."]}),{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.iG7,{})}),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}=e,{id:n,renewedFrom:o,isRenewedFrom:a,renewedTo:s,isRenewedTo:l}=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)(n),label:"contract ID"}),a&&(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",value:(0,i.I13)(o),label:"contract ID"})]})}),l&&(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)(s),label:"contract ID"})]})})]})}},{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,i.jrD)(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,i.jrD)(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,i.jrD)(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.YKL,{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.YKL,{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.YKL,{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.YKL,{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.YKL,{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.YKL,{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.YKL,{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.YKL,{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.YKL,{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.YKL,{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(25573);let g=(0,s.createContext)({}),y=()=>(0,s.useContext)(g);function x(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:g}=(0,i.Uu5)(),{configurableColumns:y,enabledColumns:x,sortableColumns:b,toggleColumnVisibility:w,setColumnsVisible:E,setColumnsHidden:j,toggleSort:k,setSortDirection:_,setSortField:S,sortField:O,sortDirection:C,resetDefaultColumnVisibility:M}=(0,i.oy6)("hostd/v0/contracts",{columns:h,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),A=(0,a.GP)({payload:{limit:r,offset:u,sortField:null===(e=l.Fo.find(e=>e.id===O))||void 0===e?void 0:e.value,sortDesc:"desc"===C,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:(0,i.XBW)(60)}}}),P=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:A}),T=(0,s.useMemo)(()=>h.filter(e=>x.includes(e.id)),[x]),N=A.isValidating,R=A.error,D=(0,i.c2j)(P,N,R,c),{estimatedBlockHeight:L,isSynced:F,nodeBlockHeight:V}=(0,v.n)(),z=F?V:L,{range:I}=(0,s.useMemo)(()=>(0,i.EJC)(z,P||[]),[z,P]);return{dataState:D,offset:u,limit:r,cellContext:{contractsTimeRange:I,currentHeight:z},pageCount:(null==P?void 0:P.length)||0,totalCount:null===(t=A.data)||void 0===t?void 0:t.count,columns:T,dataset:P,configurableColumns:y,enabledColumns:x,sortableColumns:b,toggleColumnVisibility:w,setColumnsVisible:E,setColumnsHidden:j,toggleSort:k,setSortDirection:_,setSortField:S,sortField:O,sortDirection:C,resetDefaultColumnVisibility:M,filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:g}}();return(0,r.jsx)(g.Provider,{value:n,children:t})}},56860: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"},22515:function(e,t,n){"use strict";n.d(t,{Tu:function(){return em},xQ:function(){return ev},Rh:function(){return ep}});var r=n(52322),i=n(2784),o=n(76848),a=n(27444),s=n(96206),l=n(63955);function u(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)},x=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)}},b=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(x,t),p?e(o.current):c.current;if(v)return n(x,t),e(o.current)}return s.current||n(x,t),c.current};return b.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},b.isPending=function(){return!!s.current},b.flush=function(){return s.current?y(Date.now()):c.current},b},[p,v,t,g,m,h])}function c(e,t){return e===t}function d(e){return"function"==typeof e?function(){return e}:e}var f=n(99182),h=n(4941),p=n(41775);function m(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)(p.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 v(){var e;let t=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(null===(e=t.data)||void 0===e?void 0:e.OS)==="windows"?"\\":"/"}var g=n(5648),y=n.n(g),x=n(1573),b=n.n(x);function w(e){let{currentPath:t,childPath:n,separator:r}=e;return"\\"===t&&n.endsWith(":")?n+r:E(t,n,r)}function E(e,t,n){e=e===n?e:b()(e,n),t=y()(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 j(){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)(p.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:"Error loading directory."})]})}function k(e){let{path:t,onCreate:n}=e,s=v(),l=(0,a.Kw)(),[u,c]=(0,i.useState)(""),d=(0,i.useCallback)(async()=>{let e=await l.put({payload:{path:w({currentPath:t,childPath:u,separator:s})}});e.error?(0,o.OHV)("Error creating directory: ".concat(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)(p.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 _(e){let{path:t,setPath:n,commandPage:i,currentPage:a,beforeSelect:s,afterSelect:l}=e,u=v();return(0,r.jsx)(h.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)(p.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:".."})]})},"..")}let S={namespace:"volumes/directorySelect",label:"Directory select"};function O(e){var t,n,i,a,s,l,u;let{path:c,dir:d,setPath:g,currentPage:y,beforeSelect:x,afterSelect:b}=e,E=v(),O=(null===(t=d.data)||void 0===t?void 0:t.path)===E,C=(null===(n=d.data)||void 0===n?void 0:n.path)==="\\";return(0,r.jsxs)(h.fu,{currentPage:y,commandPage:S,children:[d.isValidating||!d.data||d.error?null:O?null:(0,r.jsx)(_,{path:d.data.path,setPath:g,currentPage:y,commandPage:S,afterSelect:b,beforeSelect:x}),(0,r.jsxs)(f.mY.Empty,{children:[!d.isValidating&&d.error?(0,r.jsx)(j,{}):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)(m,{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)(h.WD,{commandPage:S,currentPage:y,onSelect:()=>{x&&x();let t=w({currentPath:d.data.path,childPath:e,separator:E});g(t),b&&b()},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)(p.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:e})]})},e)):null,!C&&!d.isValidating&&!d.error&&(0,r.jsx)(h.WD,{commandPage:S,currentPage:y,value:"create new directory",children:(0,r.jsx)(k,{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 C(e){let{path:t,dir:n,onChange:i}=e;return(0,r.jsx)(f.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)(f.mY.List,{children:(0,r.jsx)(O,{path:t,dir:n,setPath:i,currentPage:S})})})})})}var M=n(82851);function A(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,M.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,M.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,o.Hzd)(a))," available")}):null]})]})}let P={size:void 0,name:"",path:"~",immediatePath:"~"};function T(e){var t;let{trigger:n,open:c,onOpenChange:d}=e,{closeDialog:f}=ep(),h=(0,a.HU)(),p=v(),m=(0,l.cI)({mode:"all",defaultValues:P}),g=m.watch("path"),y=m.watch("immediatePath"),x=m.watch("name"),b=m.watch("size"),w=u(()=>{g!==y&&m.setValue("path",y)},500);(0,i.useEffect)(()=>{w()},[y]),(0,i.useEffect)(()=>{g!==y&&m.setValue("immediatePath",g)},[g]);let j=(0,i.useCallback)(async e=>{let t=await h.post({payload:{localPath:E(g,x,p),maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("New volume created."),m.reset(P),f())},[m,h,f,x,g,p]),k=(0,a.cM)({disabled:!c,params:{path:""===g?p:g},config:{swr:{shouldRetryOnError:!1}}});(0,i.useEffect)(()=>{k.error&&m.setError("immediatePath",{message:"Directory does not exist"})},[k.error]),(0,i.useEffect)(()=>{k.data&&k.data.path!==g&&m.setValue("path",k.data.path)},[k.data]);let _=(null==b?void 0:b.toNumber())||0,S=k.data?(0,o.Uzc)(k.data.freeBytes).toNumber():0,O=(0,o.Uzc)((null===(t=k.data)||void 0===t?void 0:t.freeBytes)||0).toNumber(),M=(0,i.useMemo)(()=>({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:e=>{let t="Must be between ".concat((0,s.vW)((0,o.Hzd)(10))," and ").concat((0,s.vW)((0,o.Hzd)(O),{fixed:3}));return e<=O&&e>=10||t},nospace:()=>O>10||"not enough space in directory"}}}}),[O]),T=(0,o.WsO)(M);return m.register("path",M.path.validation),(0,r.jsx)(o.VqE,{title:"Create Volume",trigger:n,open:c,onOpenChange:e=>{e||m.reset(P),d(e)},contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(j,T),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:M}),(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:M})}),(0,r.jsx)(C,{path:g,dir:k,onChange:e=>m.setValue("path",e,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})})]}),(0,r.jsx)(o.jIp,{name:"size",form:m,fields:M}),(0,r.jsx)(A,{newSizeGB:_,currentSizeGB:0,maxSizeGB:S})]})})}let N={size:void 0};function R(e){var t,n;let{trigger:u,open:c,onOpenChange:d}=e,{id:f,closeDialog:h}=ep(),p=v(),m=(0,a.ST)({disabled:!f,params:{id:f}}),g=(0,a.cM)({disabled:!c||!m.data,params:{path:null===(t=m.data)||void 0===t?void 0:t.localPath.split(p).slice(0,-1).join(p)}}),y=(0,a.G)(),x=(0,l.cI)({mode:"all",defaultValues:N}),b=x.watch("size"),w=(0,i.useCallback)(async e=>{let t=await y.put({params:{id:Number(f)},payload:{maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Volume resizing initiated."),x.reset(N),h())},[x,f,y,h]);(0,i.useEffect)(()=>{m.data&&x.reset(N)},[m.data]);let E=null==b?void 0:b.toNumber(),j=m.data?(0,o.bjP)(m.data.totalSectors).toNumber():0,k=g.data?(0,o.Uzc)(g.data.totalBytes).toNumber():0,_=j=1,O=(0,i.useMemo)(()=>({size:{type:"number",title:"New size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:e=>{let t="Must be between ".concat((0,s.vW)((0,o.Hzd)(10))," and ").concat((0,s.vW)((0,o.Hzd)(k),{fixed:3}));return e<=k&&e>=10||t}}}}}),[k]),C=(0,o.WsO)(O);return(0,r.jsx)(o.VqE,{title:"Resize Volume",trigger:u,open:c,onOpenChange:e=>{e||x.reset(N),d(e)},contentVariants:{className:"max-w-[400px]"},onSubmit:x.handleSubmit(w,C),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=m.data)||void 0===n?void 0:n.localPath})]}),(0,r.jsx)(o.jIp,{name:"size",form:x,fields:O}),(0,r.jsx)(A,{currentSizeGB:j,newSizeGB:E,maxSizeGB:k,label:S?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:_?"Increase by ".concat((0,s.vW)((0,o.Hzd)(E-j))):"Decrease by ".concat((0,s.vW)((0,o.Hzd)(j-E)))}):(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"Current size is ".concat((0,s.vW)((0,o.Hzd)(j)))})})]})})}let D={path:"",force:!1};function L(e){var t,n,u;let{trigger:c,open:d,onOpenChange:f}=e,{id:h,closeDialog:p}=ep(),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),x=null===(u=v.data)||void 0===u?void 0:u.localPath,b=(0,l.cI)({mode:"all",defaultValues:D}),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)(n.error):((0,o.OPV)("Volume permanently deleted."),b.reset(),p())},[b,v.data,m,p]),E=(0,i.useMemo)(()=>({path:{type:"text",title:"Path",placeholder:x,validation:{required:"required",validate:{equals:e=>e===x||"directory path does not match"}}},force:{type:"boolean",title:"Force",validation:{}}}),[x]),j=(0,o.WsO)(E);return(0,r.jsx)(o.VqE,{title:"Delete Volume",trigger:c,open:d,onOpenChange:e=>{e||b.reset(D),f(e)},contentVariants:{className:"w-[400px]"},onSubmit:b.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:b,fields:E}),(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.QBj,{name:"force",size:"medium",form:b,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:b,children:"Delete"})]})})}var F=n(6391),V=n.n(F);function z(){let{dialog:e,openDialog:t,closeDialog:n}=ep(),s=(0,a.Os)(),l=(0,a.cj)(),u=(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(V())(s.data.spendable):void 0,send:u,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}function I(){let{id:e,dialog:t,openDialog:n,closeDialog:s}=ep(),l=(0,a.Qq)({params:{},config:{swr:{revalidateOnFocus:!1,refreshInterval:6e4}},disabled:"transactionDetails"!==t}),u=(0,i.useMemo)(()=>{var t;let n=null===(t=l.data)||void 0===t?void 0:t.find(t=>t.ID===e);return n?{txType:(0,o.leQ)(n.transaction,n.source),inflow:n.inflow,outflow:n.outflow,timestamp:n.timestamp,raw:n.transaction}:null},[l,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:u,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):s()})}var Z=n(734),B=n(2850),H=n(71930),U=n(5632);let W={namespace:"wallet",label:"Wallet"};function q(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:s,closeDialog:l}=ep(),u=(0,U.useRouter)(),c=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:W,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:W,onSelect:()=>{i(W)},children:W.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{u.push(H._.wallet.view),l()},children:"View wallet transactions"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{s("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{s("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{s("addressDetails")},children:"View wallet address"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,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 $=n(38617);let Y={namespace:"settings",label:"Settings"};function G(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:o}=ep(),{setTheme:a}=(0,$.F)(),{settings:s,setSettings:l,lock:u,currencyOptions:c,setCurrency:d}=(0,B.Hv)();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:Y,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:Y,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{l({siaCentral:!s.siaCentral}),o()},children:(s.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(h.o4,{currentPage:t,commandPage:Y,onSelect:()=>{u(),o()},children:"Lock hostd"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{a("system"),o()},children:"Set theme to system preference"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{a("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{a("light"),o()},children:"Set theme to light"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),c.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{d(n),o()},children:"Set currency to ".concat(i)},n)})]})}let K={namespace:"node",label:"Blockchain node"};function X(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=ep(),s=(0,U.useRouter)();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:K,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:K,onSelect:()=>{i(K)},children:K.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:K,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:K,onSelect:()=>{s.push(H._.node.index),a()},children:"View peers"})]})}var Q=n(99957);let J={namespace:"configuration",label:"Configuration"};function ee(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,U.useRouter)(),{showAdvanced:a}=(0,Q.ZR)(),{closeDialog:s}=ep();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:J,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:J,onSelect:()=>{i(J)},children:J.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.index),s()},children:"Open configuration"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.host),s()},children:"Configure host"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.pricing),s()},children:"Configure pricing"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.dns),s()},children:"Configure DNS"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.bandwidth),s()},children:"Configure bandwidth"}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.registry),s()},children:"Configure registry"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.accounts),s()},children:"Configure accounts"})]})]})}var et=n(92838);function en(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)(p.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 er=n(3639);let ei={namespace:"contracts",label:"Contracts"};function eo(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,s=(0,U.useRouter)(),{closeDialog:l}=ep();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ei)},children:ei.label}),(0,r.jsx)(h.fu,{currentPage:t,commandPage:ei,children:(0,r.jsx)(h.WD,{currentPage:t,commandPage:ei,onSelect:()=>{s.push(H._.contracts.index),l()},children:"View contracts"})}),(0,r.jsx)(er.F,{parentPage:ei,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}let ea={namespace:"volumes",label:"Volumes"};function es(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,U.useRouter)(),{openDialog:a,closeDialog:s}=ep();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ea)},children:ea.label}),(0,r.jsxs)(h.fu,{currentPage:t,commandPage:ea,children:[(0,r.jsx)(h.WD,{currentPage:t,commandPage:ea,onSelect:()=>{o.push(H._.volumes.index),s()},children:"View volumes"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ea,onSelect:()=>{a("volumeCreate")},children:"Create volume"})]})]})}function el(e){var t,n,a,s,l,h,p,m,v;let{panel:g}=e,y=(0,U.useRouter)(),{resetFilters:x}=(0,et.G)(),{closeDialog:b}=ep(),[w,E]=(0,i.useState)(""),[j]=(s=t&&t.equalityFn||c,h=(a=(n=(0,i.useState)(d(w)))[1],l=[n[0],(0,i.useCallback)(function(e){return a(d(e))},[])])[0],p=l[1],m=u((0,i.useCallback)(function(e){return p(e)},[p]),500,t),s((v=(0,i.useRef)(w)).current,w)||(m(w),v.current=w),[h,m]),[k,_]=(0,i.useState)([]),S=k[k.length-1],O=0===k.length,C=(0,i.useCallback)(e=>{_(t=>[...t,e])},[_]),A=(0,i.useCallback)(()=>{b()},[b]),P=(0,i.useCallback)(()=>{E("")},[E]),T=(null==S?void 0:S.empty)||en;return(0,r.jsxs)(f.mY,{label:"Command Menu",loop:!0,className:(0,M.cx)(g&&(0,o.z$)()),onKeyDown:e=>{(k.length>0&&"Escape"===e.key||"Backspace"===e.key&&!w)&&(e.preventDefault(),_(e=>e.slice(0,-1)))},children:[S&&(0,r.jsx)(o.__J,{className:"px-2",children:S.label}),(0,r.jsx)(f.mY.Input,{value:w,onValueChange:E,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==S?void 0:S.prompt)||(O?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(f.mY.List,{children:[(0,r.jsx)(f.mY.Empty,{children:(0,r.jsx)(T,{search:w,debouncedSearch:j})}),(0,r.jsx)(G,{currentPage:S,pushPage:C}),(0,r.jsx)(q,{currentPage:S,pushPage:C}),(0,r.jsx)(es,{currentPage:S,pushPage:C}),(0,r.jsx)(eo,{currentPage:S,pushPage:C,beforeSelect:()=>{A(),x()},afterSelect:()=>{y.pathname.startsWith(H._.contracts.index)||y.push(H._.contracts.index),P()}}),(0,r.jsx)(ee,{currentPage:S,pushPage:C}),(0,r.jsx)(X,{currentPage:S,pushPage:C})]})]})}function eu(e){let{open:t,onOpenChange:n,setOpen:a}=e,{isUnlocked:s}=(0,B.Hv)(),{isConnected:l}=(0,o.Y97)({route:H.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)(el,{})})})}function ec(e){let{open:t,onOpenChange:n}=e,s=(0,a.Z7)(),l=(0,a.Uy)(),u=(0,i.useCallback)(async e=>{let t=await l.post({payload:[e]});t.error?(0,o.OHV)("Error dismissing alert."):(0,o.OPV)("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)(t?"Error dismissing all ".concat(t," alerts."):"Error dismissing all alerts."):(0,o.OPV)(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:ed,dataFields:ef,dismissMany:c,dismissOne:u})}let ed=["error","contractID","blockHeight","resolution","volume","volumeID","elapsed","error","checked","missing","corrupt","total","oldSectors","currentSectors","targetSectors","migratedSectors","migrated","target","force"],ef={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"})]})}}},eh=(0,i.createContext)({}),ep=()=>(0,i.useContext)(eh);function em(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)(eh.Provider,{value:n,children:t})}function ev(){var e;let{dialog:t,openDialog:n,openConfirmDialog:i,onOpenChange:s,closeDialog:l,confirm:u}=ep(),c=(0,a.Wl)(),d=(0,a.Os)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eu,{open:"cmdk"===t,onOpenChange:s,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:s}),(0,r.jsx)(ec,{open:"alerts"===t,onOpenChange:s}),(0,r.jsx)(z,{}),(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)(I,{}),(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)(T,{open:"volumeCreate"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(R,{open:"volumeResize"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(L,{open:"volumeDelete"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(Z.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()})]})}},5187: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(76848),a=n(96206);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(27444);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(14817),p=n(66700);function m(e,t){for(var n=Math.abs(e).toString();n.length"7"===e.value),b=(0,i.createContext)({}),w=()=>(0,i.useContext)(b);function E(e){let{children:t}=e,n=function(){let[e,t]=(0,y.Z)("v0/metrics/dataTimeSpan",{defaultValue:x.value}),[n,r]=(0,y.Z)("v0/metrics/dataInterval",{defaultValue:x.interval}),d=function(e){let[t,n]=(0,i.useState)(new Date().getTime());return(0,i.useEffect)(()=>{n(new Date().getTime());let t=setInterval(()=>{n(new Date().getTime()),console.log("reset time range")},(0,h.uQ)(e));return()=>clearInterval(t)},[e]),t}(n),b=(0,i.useMemo)(()=>(0,o.OQF)(e,d),[e,d]),w=(0,i.useCallback)(e=>{let n=h.lv.find(t=>t.value===e);r(n.interval),t(n.value)},[t,r]),E=(0,i.useMemo)(()=>(0,o.kOJ)(n),[n]),j=(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),x=m(n.getMinutes(),2),b=m(n.getSeconds(),2),w=""===o?"":"T",E=[y,x,b].join("extended"===r?":":"");o="".concat(o).concat(w).concat(E).concat(a)}return o}(new Date(b.start-(0,h.uQ)(n)))},config:{swr:{revalidateOnFocus:!1,refreshInterval:(0,o.sWj)(5)}}}),k=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.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),registryReadPotential:Number(e.revenue.potential.registryRead),registryWritePotential:Number(e.revenue.potential.registryWrite),rpcPotential:Number(e.revenue.potential.rpc),storage:Number(e.revenue.earned.storage),ingress:Number(e.revenue.earned.ingress),egress:Number(e.revenue.earned.egress),registryRead:Number(e.revenue.earned.registryRead),registryWrite:Number(e.revenue.earned.registryWrite),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.registryRead).plus(e.revenue.potential.registryWrite).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.registryRead).plus(e.revenue.earned.registryWrite).plus(e.revenue.earned.rpc).toNumber(),timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","registryRead","registryReadPotential","registryWrite","registryWritePotential","rpc","rpcPotential"],enabledTip:["potential","earned","storage","storagePotential","ingress","ingressPotential","egress","egressPotential","registryRead","registryReadPotential","registryWrite","registryWritePotential","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")},format:e=>(0,a.Vz)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:j.isValidating}},[j,E]),_=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.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},format:e=>(0,a.Vz)(e),formatTimestamp:E,disableAnimations:!0},chartType:"area",isLoading:j.isValidating}},[j,E]),S=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.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},format:e=>(0,a.Vz)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:j.isValidating}},[j,E]),O=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.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:E,disableAnimations:!0},chartType:"areastack",isLoading:j.isValidating}},[j,E]),C=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.data)||void 0===e?void 0:e.map(e=>({maxSectors:(0,o.B$N)(e.storage.totalSectors).times(4).toNumber(),registryEntries:113*e.registry.entries,maxRegistryEntries:113*e.registry.maxEntries,tempSectors:(0,o.B$N)(e.storage.tempSectors).times(4).toNumber(),physicalSectors:(0,o.B$N)(e.storage.physicalSectors).times(4).toNumber(),contractSectors:(0,o.B$N)(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","registryEntries","maxSectors","maxRegistryEntries"],enabledTip:["contractSectors","physicalSectors","tempSectors","registryEntries","maxSectors","maxRegistryEntries"],categories:["storage used","storage capacity"],data:{maxSectors:c(s.capacityStorage,"storage capacity","sectors"),maxRegistryEntries:c(s.capacityRegistry,"storage capacity","registry"),physicalSectors:c(s.storagePhysical,"storage used","sectors physical"),registryEntries:c(s.registry,"storage used","registry (max)"),tempSectors:c(s.sectorsTemp,"storage used","sectors temp"),contractSectors:c(s.storage,"storage used","sectors contract")},format:e=>(0,a.vW)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:j.isValidating}},[j,E]),M=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.data)||void 0===e?void 0:e.map(e=>({storageReads:e.storage.reads,storageWrites:e.storage.writes,registryReads:e.registry.reads,registryWrites:e.registry.writes,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storageReads","storageWrites","registryReads","registryWrites"],enabledTip:["storageReads","storageWrites","registryReads","registryWrites"],data:{registryReads:s.registryReads,registryWrites:s.registryWrites,storageReads:s.storageReads,storageWrites:s.storageWrites},format:e=>(0,a.yF)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:j.isValidating}},[j,E]),A=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.data)||void 0===e?void 0:e.map(e=>({egress:e.data.rhp3.egress+e.data.rhp2.egress,ingress:e.data.rhp3.ingress+e.data.rhp2.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:E,disableAnimations:!0},chartType:"line",isLoading:j.isValidating}},[j,E]);return{dataTimeSpan:e,setDataTimeSpan:w,timeRange:b,dataInterval:n,setDataInterval:r,operations:M,revenue:k,collateral:_,contracts:O,storage:C,pricing:S,bandwidth:A}}();return(0,r.jsx)(b.Provider,{value:n,children:t})}},14817:function(e,t,n){"use strict";n.d(t,{lv:function(){return i},uQ:function(){return o}});var r=n(76848);let i=[{label:"1D",interval:"5m",value:"1"},{label:"7D",interval:"15m",value:"7"},{label:"1M",interval:"hourly",value:"30"},{label:"3M",interval:"daily",value:"90"},{label:"1Y",interval:"daily",value:"365"},{label:"ALL",interval:"weekly",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}},78743:function(e,t,n){"use strict";n.d(t,{Y:function(){return y},F:function(){return g}});var r=n(52322),i=n(76848),o=n(27444),a=n(2784);let s=["actions","path","storage","available","readOnly","successfulReads","successfulWrites","failedReads","failedWrites"];var l=n(41775),u=n(96206),c=n(22515);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.iG7,{})}),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,n=await m.delete({params:{id:Number(a)}});n.error?(0,i.OHV)("Error canceling volume ".concat(f(t),".")):(0,i.OPV)("Successfully 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,t=await h.put({params:{id:Number(a)},payload:{readOnly:e}});t.error?(0,i.OHV)(e?"Error setting volume to read-only.":"Error setting volume to read/write."):(0,i.OPV)(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);let v=(0,a.createContext)({}),g=()=>(0,a.useContext)(v);function y(e){let{children:t}=e,n=function(){let{configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:u,setSortDirection:c,setSortField:d,sortField:f,sortDirection:p,resetDefaultColumnVisibility:v}=(0,i.oy6)("hostd/v0/volumes",{columns:h,columnsDefaultVisible:s}),g=(0,o.Fn)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.find(e=>!["ready","unavailable"].includes(e.status)))?(0,i.XBW)(5):(0,i.XBW)(60)}}}),y=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),ID:e.ID,localPath:e.localPath,usedSectors:e.usedSectors,usedBytes:new(m())(e.usedSectors).times((0,i.B$N)(4)).toNumber(),totalBytes:new(m())(e.totalSectors).times((0,i.B$N)(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:g}),x=(0,a.useMemo)(()=>h.filter(e=>t.includes(e.id)),[t]),b=g.isValidating,w=g.error,E=(0,i.c2j)(y,b,w,[]);return{dataState:E,totalCount:(null==y?void 0:y.length)||0,isLoading:g.isValidating,columns:x,dataset:y,configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:u,setSortDirection:c,setSortField:d,sortField:f,sortDirection:p,resetDefaultColumnVisibility:v}}();return(0,r.jsx)(v.Provider,{value:n,children:t})}},734:function(e,t,n){"use strict";n.d(t,{O:function(){return u},Y:function(){return f}});var r=n(52322),i=n(76848),o=n(92838),a=n(63397),s=n(24511),l=n(22515);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"})]})})})}},25573:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(2850),i=n(27444);function o(){var e,t,n,o;let{isUnlocked: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}}},94977: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(76848),i=n(6391),o=n.n(i);let a="/TB/month";function s(e){return new(o())(e).times((0,r.xf5)(1)).times((0,r.S5V)(1))}let l="/million";function u(e){return new(o())(e).times(1e7)}let c="/million";function d(e){return new(o())(e).times(1e7)}let f="/TB/month";function h(e){return new(o())(e).times((0,r.xf5)(1)).times((0,r.S5V)(1))}let p="/TB";function m(e){return new(o())(e).times((0,r.xf5)(1))}let v="/TB";function g(e){return new(o())(e).times((0,r.xf5)(1))}},76176:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var r=n(52322);n(37832);var i=n(76848),o=n(92838),a=n(5187),s=n(22515),l=n(78743),u=n(99957),c=n(41775),d=n(25573),f=n(71930),h=n(27444),p=n(6391),m=n.n(p),v=n(96206),g=n(2850),y=n(92762);function x(){var e,t;let{isUnlocked:n}=(0,g.Hv)(),{openDialog:o}=(0,s.Rh)(),{dataset:a}=(0,l.F)(),u=(0,h.rV)(),p=(0,h.Os)(),[x,w]=(0,y.Z)("v0/hostd/onboarding/maximized",{defaultValue:!0}),E=(0,d.n)();if(!n)return null;let j=new(m())((null===(e=p.data)||void 0===e?void 0:e.confirmed)||0),k=(0,v.qN)(5e3),_=p.data&&j.gte(k),S=(null==a?void 0:a.length)>0,O=null===(t=u.data)||void 0===t?void 0:t.acceptingContracts,C=E.isSynced,M=[_,S,O,C],A=M.length,P=M.filter(e=>e).length;return A===P?null:x?(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)(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)(b,{title:(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>o("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,v.Vz)(k)," siacoin to cover required contract collateral.").concat(E.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:_?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!E.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(E.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[E.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>o("addressDetails"),children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(b,{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)(b,{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)(b,{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:C?(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:[E.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:()=>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: ",P,"/",A," steps complete"]})})})}function b(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})})]})})}function w(e){let{children:t}=e;return(0,r.jsx)(s.Tu,{children:(0,r.jsx)(u.iV,{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)(x,{}),t]})})})})})}function E(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:f._,children:(0,r.jsx)(w,{children:(0,r.jsx)(t,{...n})})})}},76848:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{hcY:function(){return _V},tU3:function(){return _R},zXq:function(){return _J},juT:function(){return _a},Cts:function(){return lg},Z58:function(){return SA},WVB:function(){return cP},zxk:function(){return le},b0u:function(){return EF},EKh:function(){return lb},vRO:function(){return Ot},QHy:function(){return SJ},TaT:function(){return S$},eQh:function(){return lE},HfT:function(){return S2},ncR:function(){return k$},A06:function(){return SD},Vy9:function(){return SL},VqE:function(){return l9},h_2:function(){return cL},Xiv:function(){return cF},Juw:function(){return cV},KpP:function(){return cz},XOF:function(){return kq},jIp:function(){return On},QBj:function(){return Or},yEL:function(){return _G},cB7:function(){return kJ},ZqQ:function(){return kQ},IKw:function(){return k5},Hzd:function(){return Og},WN2:function(){return OE},X6q:function(){return cU},Yqd:function(){return f_},__J:function(){return cJ},rUS:function(){return c2},TRl:function(){return c3},YaL:function(){return Ox},kFS:function(){return cT},FzK:function(){return SK},Clw:function(){return cA},B$N:function(){return Op},PD$:function(){return Ol},Wxm:function(){return fM},uDJ:function(){return k7},s_4:function(){return tG},nvN:function(){return t$},u5Q:function(){return SP},j4H:function(){return fS},J2e:function(){return dg},kod:function(){return dP},xrM:function(){return l6},PhF:function(){return fC},Z0O:function(){return c_},DLL:function(){return Sb},KJW:function(){return _u},rsf:function(){return fW},D_D:function(){return Sf},xf5:function(){return Om},iA_:function(){return k6},t6k:function(){return S4},xvT:function(){return tq},nvn:function(){return d3},ua7:function(){return s7},mPE:function(){return Sh},XxW:function(){return kE},m2c:function(){return k_},YKL:function(){return kk},QUh:function(){return SE},weF:function(){return _9},YNn:function(){return Sv},DmW:function(){return Sg},jrD:function(){return SI},E6f:function(){return Sz},Uzc:function(){return Ov},BTR:function(){return Oy},O9T:function(){return m3},fVJ:function(){return SO},vQq:function(){return kh},NrH:function(){return ET},Y_Z:function(){return Sj},EJC:function(){return Oj},kOJ:function(){return SS},OQF:function(){return Sk},leQ:function(){return kg},ytg:function(){return EP},Vkc:function(){return cO},sWj:function(){return EA},S5V:function(){return SF},z$:function(){return tY},XBW:function(){return EN},x9T:function(){return Ob},bjP:function(){return Ow},I13:function(){return km},cEb:function(){return d4},OHV:function(){return kc},OPV:function(){return ku},$Gg:function(){return kp},Y97:function(){return _N},c2j:function(){return _D},WsO:function(){return _Y},Uu5:function(){return Oh},oy6:function(){return Of}});var s,l,u,c,d,f,h,p,m,v,g,y,x=n(52322),b=n(2784),w=n.t(b,2),E=n(7896),j=n(34540),k=n(26215),_=n(99575);function S(e){let t=e+"CollectionProvider",[n,r]=(0,j.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=b.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,k.e)(t,i.collectionRef);return b.createElement(_.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=b.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=b.useRef(null),s=(0,k.e)(t,a),c=o(l,n);return b.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),b.createElement(_.g7,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=b.useRef(null),o=b.useRef(new Map).current;return b.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=b.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}var O=n(41816),C=n(73597),M=n(72130),A=n(64680),P=n(28245),T=n(26074);let N="Collapsible",[R,D]=(0,j.b)(N),[L,F]=R(N),V=((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,C.T)({prop:r,defaultProp:i,onChange:a});return(0,b.createElement)(L,{scope:n,disabled:o,contentId:(0,T.M)(),open:l,onOpenToggle:(0,b.useCallback)(()=>u(e=>!e),[u])},(0,b.createElement)(M.WV.div,(0,E.Z)({"data-state":I(l),"data-disabled":o?"":void 0},s,{ref:t})))},"CollapsibleContent"),z=((e,t)=>{let{forceMount:n,...r}=e,i=F(V,e.__scopeCollapsible);return(0,b.createElement)(P.z,{present:n||i.open},({present:e})=>(0,b.createElement)(z,(0,E.Z)({},r,{ref:t,present:e})))},(0,b.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=F(V,n),[s,l]=(0,b.useState)(r),u=(0,b.useRef)(null),c=(0,k.e)(t,u),d=(0,b.useRef)(0),f=d.current,h=(0,b.useRef)(0),p=h.current,m=a.open||s,v=(0,b.useRef)(m),g=(0,b.useRef)();return(0,b.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,A.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,b.createElement)(M.WV.div,(0,E.Z)({"data-state":I(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 I(e){return e?"open":"closed"}let Z="Accordion",B=["Home","End","ArrowDown","ArrowUp"],[H,U,W]=S(Z),[q,$]=(0,j.b)(Z,[W,D]),Y=(D(),b.forwardRef((e,t)=>{let{type:n,...r}=e;return b.createElement(H.Provider,{scope:e.__scopeAccordion},"multiple"===n?b.createElement(ee,(0,E.Z)({},r,{ref:t})):b.createElement(J,(0,E.Z)({},r,{ref:t})))}));Y.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[G,K]=q(Z),[X,Q]=q(Z,{collapsible:!1}),J=b.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,C.T)({prop:n,defaultProp:r,onChange:i});return b.createElement(G,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:b.useCallback(()=>o&&l(""),[o,l])},b.createElement(X,{scope:e.__scopeAccordion,collapsible:o},b.createElement(er,(0,E.Z)({},a,{ref:t}))))}),ee=b.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,C.T)({prop:n,defaultProp:r,onChange:i}),l=b.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=b.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return b.createElement(G,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},b.createElement(X,{scope:e.__scopeAccordion,collapsible:!0},b.createElement(er,(0,E.Z)({},o,{ref:t}))))}),[et,en]=q(Z),er=b.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=b.useRef(null),a=(0,k.e)(o,t),s=U(n),l=(0,O.M)(e.onKeyDown,e=>{var t;if(!B.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)}let l=a%o;null===(t=r[l].ref.current)||void 0===t||t.focus()});return b.createElement(et,{scope:n,disabled:r},b.createElement(H.Slot,{scope:n},b.createElement(M.WV.div,(0,E.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),[ei,eo]=q("AccordionItem");var ea=n(82851),es=n(83317);function el(e){return e.split("-")[0]}function eu(e){return e.split("-")[1]}function ec(e){return["top","bottom"].includes(el(e))?"x":"y"}function ed(e){return"y"===e?"height":"width"}function ef(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=ec(t),u=ed(l),c=i[u]/2-o[u]/2,d="x"===l;switch(el(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(eu(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let eh=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}=ef(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=ep(r),c={x:i,y:o},d=ec(a),f=eu(a),h=ed(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],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),b=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0;0===b&&(b=s.floating[h]);let w=u[m],E=b-p[h]-u[v],j=b/2-p[h]/2+(g/2-y/2),k=ey(w,eg(j,E)),_=("start"===f?u[m]:u[v])>0&&j!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(_?jeb[e])}let eE={start:"end",end:"start"};function ej(e){return e.replace(/start|end/g,e=>eE[e])}let ek=["top","right","bottom","left"];ek.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let e_=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=el(a),x=p||(y!==u&&v?function(e){let t=ew(e);return[ej(e),t,ej(t)]}(u):[ew(u)]),b=[u,...x],w=await ev(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=eu(e),i=ec(e),o=ed(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ew(a)),{main:a,cross:ew(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=b[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 eS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eO(e){return ek.some(t=>e[t]>=0)}let eC=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=eS(await ev(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eO(t)}}}case"escaped":{let t=eS(await ev(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:eO(t)}}}default:return{}}}}},eM=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=el(n),s=eu(n),l="x"===ec(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 eA(e){return"x"===e?"y":"x"}let eP=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 ev(t,l),d=ec(el(i)),f=eA(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=ey(h+c["y"===d?"top":"left"],eg(h,h-c[e]))}a&&(p=ey(p+c["y"===f?"top":"left"],eg(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eT=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=ec(i),f=eA(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,x,b;let e="y"===d?"width":"height",t=["top","left"].includes(el(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!=(x=null==(b=a.offset)?void 0:b[f])?x:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function eN(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eR(e){if(null==e)return window;if(!eN(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eD(e){return eR(e).getComputedStyle(e)}function eL(e){return eN(e)?"":e?(e.nodeName||"").toLowerCase():""}function eF(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function eV(e){return e instanceof eR(e).HTMLElement}function ez(e){return e instanceof eR(e).Element}function eI(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eR(e).ShadowRoot||e instanceof ShadowRoot)}function eZ(e){let{overflow:t,overflowX:n,overflowY:r}=eD(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function eB(e){let t=/firefox/i.test(eF()),n=eD(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 eH(){return!/^((?!chrome|android).)*safari/i.test(eF())}let eU=Math.min,eW=Math.max,eq=Math.round;function e$(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&&eV(e)&&(l=e.offsetWidth>0&&eq(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&eq(s.height)/e.offsetHeight||1);let c=ez(e)?eR(e):window,d=!eH()&&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 eY(e){return((e instanceof eR(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function eG(e){return ez(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function eK(e){return e$(eY(e)).left+eG(e).scrollLeft}function eX(e){return"html"===eL(e)?e:e.assignedSlot||e.parentNode||(eI(e)?e.host:null)||eY(e)}function eQ(e){return eV(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function eJ(e){let t=eR(e),n=eQ(e);for(;n&&["table","td","th"].includes(eL(n))&&"static"===getComputedStyle(n).position;)n=eQ(n);return n&&("html"===eL(n)||"body"===eL(n)&&"static"===getComputedStyle(n).position&&!eB(n))?t:n||function(e){let t=eX(e);for(eI(t)&&(t=t.host);eV(t)&&!["html","body"].includes(eL(t));){if(eB(t))return t;t=t.parentNode}return null}(e)||t}function e0(e){if(eV(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e$(e);return{width:t.width,height:t.height}}function e1(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=eX(t);return["html","body","#document"].includes(eL(n))?t.ownerDocument.body:eV(n)&&eZ(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=eR(r),a=i?[o].concat(o.visualViewport||[],eZ(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(e1(a))}function e2(e,t,n){return"viewport"===t?em(function(e,t){let n=eR(e),r=eY(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=eH();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):ez(t)?function(e,t){let n=e$(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):em(function(e){var t;let n=eY(e),r=eG(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=eW(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=eW(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+eK(e),l=-r.scrollTop;return"rtl"===eD(i||n).direction&&(s+=eW(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(eY(e)))}let e4={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=e1(e),n=["absolute","fixed"].includes(eD(e).position)&&eV(e)?eJ(e):e;return ez(n)?t.filter(e=>ez(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&eI(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==eL(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=e2(t,n,i);return e.top=eW(r.top,e.top),e.right=eU(r.right,e.right),e.bottom=eU(r.bottom,e.bottom),e.left=eW(r.left,e.left),e},e2(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=eV(n),o=eY(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==eL(n)||eZ(o))&&(a=eG(n)),eV(n))){let e=e$(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:ez,getDimensions:e0,getOffsetParent:eJ,getDocumentElement:eY,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=eV(t),i=eY(t),o=e$(e,r&&function(e){let t=e$(e);return eq(t.width)!==e.offsetWidth||eq(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==eL(t)||eZ(i))&&(a=eG(t)),eV(t)){let e=e$(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=eK(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,eJ(n),r),floating:{...e0(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eD(e).direction};function e3(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?[...ez(e)?e1(e):[],...e1(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}),ez(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e$(e):null;return s&&function t(){let r=e$(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 e5=(e,t,n)=>eh(e,t,{platform:e4,...n});var e6=n(28316),e8="undefined"!=typeof document?b.useLayoutEffect:b.useEffect;function e7(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=b.useRef(null),a=b.useRef(null),s=function(e){let t=b.useRef(e);return e8(()=>{t.current=e}),t}(i),l=b.useRef(null),[u,c]=b.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=b.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=b.useCallback(()=>{o.current&&a.current&&e5(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&e6.flushSync(()=>{c(e)})})},[d,n,r]);e8(()=>{p.current&&h()},[h]);let p=b.useRef(!1);e8(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=b.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=b.useCallback(e=>{o.current=e,m()},[m]),g=b.useCallback(e=>{a.current=e,m()},[m]),y=b.useMemo(()=>({reference:o,floating:a}),[]);return b.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let e9=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 ex({element:t.current,padding:n}).fn(e)}else if(t)return ex({element:t,padding:n}).fn(e);return{}}}},te=(0,b.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,b.createElement)(M.WV.svg,(0,E.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,b.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tt(e){let[t,n]=(0,b.useState)(void 0);return(0,A.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 tn="Popper",[tr,ti]=(0,j.b)(tn),[to,ta]=tr(tn),ts=(0,b.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=ta("PopperAnchor",n),a=(0,b.useRef)(null),s=(0,k.e)(t,a);return(0,b.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,b.createElement)(M.WV.div,(0,E.Z)({},i,{ref:s}))}),tl="PopperContent",[tu,tc]=tr(tl),[td,tf]=tr(tl,{hasParent:!1,positionUpdateFns:new Set}),th=(0,b.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:x=!1,avoidCollisions:w=!0,...E}=e,j=ta(tl,c),[_,S]=(0,b.useState)(null),O=(0,k.e)(t,e=>S(e)),[C,P]=(0,b.useState)(null),T=tt(C),N=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,R=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,D="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},L=Array.isArray(v)?v:[v],F=L.length>0,V={padding:D,boundary:L.filter(tg),altBoundary:F},{reference:z,floating:I,strategy:Z,x:B,y:H,placement:U,middlewareData:W,update:q}=e7({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:e3,middleware:[eM({mainAxis:f+R,alignmentAxis:p}),w?eP({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eT():void 0,...V}):void 0,C?e9({element:C,padding:m}):void 0,w?e_({...V}):void 0,ty({arrowWidth:N,arrowHeight:R}),x?eC({strategy:"referenceHidden"}):void 0].filter(tv)});(0,A.b)(()=>{z(j.anchor)},[z,j.anchor]);let $=null!==B&&null!==H,[Y,G]=tx(U),K=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(o=W.arrow)||void 0===o?void 0:o.y,Q=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[J,ee]=(0,b.useState)();(0,A.b)(()=>{_&&ee(window.getComputedStyle(_).zIndex)},[_]);let{hasParent:et,positionUpdateFns:en}=tf(tl,c),er=!et;(0,b.useLayoutEffect)(()=>{if(!er)return en.add(q),()=>{en.delete(q)}},[er,en,q]),(0,b.useLayoutEffect)(()=>{er&&$&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,$,en]);let ei={"data-side":Y,"data-align":G,...E,ref:O,style:{...E.style,animation:$?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,b.createElement)("div",{ref:I,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:$?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,b.createElement)(tu,{scope:c,placedSide:Y,onArrowChange:P,arrowX:K,arrowY:X,shouldHideArrow:Q},er?(0,b.createElement)(td,{scope:c,hasParent:!0,positionUpdateFns:en},(0,b.createElement)(M.WV.div,ei)):(0,b.createElement)(M.WV.div,ei)))}),tp={top:"bottom",right:"left",bottom:"top",left:"right"},tm=(0,b.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tc("PopperArrow",n),o=tp[i.placedSide];return(0,b.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,b.createElement)(te,(0,E.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function tv(e){return void 0!==e}function tg(e){return null!==e}let ty=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]=tx(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="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function tx(e){let[t,n="center"]=e.split("-");return[t,n]}let tb=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,b.useState)(null);return(0,b.createElement)(to,{scope:t,anchor:r,onAnchorChange:i},n)};var tw=n(6500);let tE=(0,b.forwardRef)((e,t)=>(0,b.createElement)(M.WV.span,(0,E.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}}))),[tj,tk]=(0,j.b)("Tooltip",[ti]),t_=ti(),tS="tooltip.open",[tO,tC]=tj("TooltipProvider"),tM="Tooltip",[tA,tP]=tj(tM),tT="TooltipTrigger",tN=(0,b.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=tP(tT,n),o=tC(tT,n),a=t_(n),s=(0,b.useRef)(null),l=(0,k.e)(t,s,i.onTriggerChange),u=(0,b.useRef)(!1),c=(0,b.useRef)(!1),d=(0,b.useCallback)(()=>u.current=!1,[]);return(0,b.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,b.createElement)(ts,(0,E.Z)({asChild:!0},a),(0,b.createElement)(M.WV.button,(0,E.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,O.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,O.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,O.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,O.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,O.M)(e.onBlur,i.onClose),onClick:(0,O.M)(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tR="TooltipPortal",[tD,tL]=tj(tR,{forceMount:void 0}),tF="TooltipContent",tV=(0,b.forwardRef)((e,t)=>{let n=tL(tF,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=tP(tF,e.__scopeTooltip);return(0,b.createElement)(P.z,{present:r||a.open},a.disableHoverableContent?(0,b.createElement)(tB,(0,E.Z)({side:i},o,{ref:t})):(0,b.createElement)(tz,(0,E.Z)({side:i},o,{ref:t})))}),tz=(0,b.forwardRef)((e,t)=>{let n=tP(tF,e.__scopeTooltip),r=tC(tF,e.__scopeTooltip),i=(0,b.useRef)(null),o=(0,k.e)(t,i),[a,s]=(0,b.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,b.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,b.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=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}}(r,n.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=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()),u=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)}([a,...l]);s(u),d(!0)},[d]);return(0,b.useEffect)(()=>()=>f(),[f]),(0,b.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,b.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;c&&(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,b.createElement)(tB,(0,E.Z)({},e,{ref:o}))}),[tI,tZ]=tj(tM,{isInside:!1}),tB=(0,b.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tP(tF,n),u=t_(n),{onClose:c}=l;return(0,b.useEffect)(()=>(document.addEventListener(tS,c),()=>document.removeEventListener(tS,c)),[c]),(0,b.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,b.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,b.createElement)(th,(0,E.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,b.createElement)(_.A4,null,r),(0,b.createElement)(tI,{scope:n,isInside:!0},(0,b.createElement)(tE,{id:l.contentId,role:"tooltip"},i||r))))}),tH=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tC(tM,e.__scopeTooltip),u=t_(t),[c,d]=(0,b.useState)(null),f=(0,T.M)(),h=(0,b.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,b.useRef)(!1),[g=!1,y]=(0,C.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(tS))):l.onClose(),null==o||o(e)}}),x=(0,b.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),w=(0,b.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),E=(0,b.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,b.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,b.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,b.createElement)(tb,u,(0,b.createElement)(tA,{scope:t,contentId:f,open:g,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:(0,b.useCallback)(()=>{l.isOpenDelayed?j():w()},[l.isOpenDelayed,j,w]),onTriggerLeave:(0,b.useCallback)(()=>{p?E():window.clearTimeout(h.current)},[E,p]),onOpen:w,onClose:E,disableHoverableContent:p},n))},tU=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=tP(tR,t);return(0,b.createElement)(tD,{scope:t,forceMount:n},(0,b.createElement)(P.z,{present:n||o.open},(0,b.createElement)(tw.h,{asChild:!0,container:i},r)))},tW=(0,ea.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"}}),tq=b.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,x.jsx)(n,{ref:t,className:(0,ea.cx)(r,tW({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t$=b.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,x.jsx)(tq,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,ea.cx)("leading-relaxed md:leading-relaxed",e.className)})}),tY=(0,ea.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),tG=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:tY({className:n}),...r})});var tK=n(34406);let tX=(void 0===tK||tK.env,"production"),tQ=1/60*1e3,tJ="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),t0="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(tJ()),tQ),t1=!0,t2=!1,t4=!1,t3={delta:0,timestamp:0},t5=["read","update","preRender","render","postRender"],t6=t5.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;nt2=!0),e),{}),t8=t5.reduce((e,t)=>{let n=t6[t];return e[t]=(e,t=!1,r=!1)=>(t2||nn(),n.schedule(e,t,r)),e},{}),t7=t5.reduce((e,t)=>(e[t]=t6[t].cancel,e),{}),t9=t5.reduce((e,t)=>(e[t]=()=>t6[t].process(t3),e),{}),ne=e=>t6[e].process(t3),nt=e=>{t2=!1,t3.delta=t1?tQ:Math.max(Math.min(e-t3.timestamp,40),1),t3.timestamp=e,t4=!0,t5.forEach(ne),t4=!1,t2&&(t1=!1,t0(nt))},nn=()=>{t2=!0,t1=!0,t4||t0(nt)},nr=()=>t3,ni="undefined"!=typeof document,no=ni?b.useLayoutEffect:b.useEffect;function na(){let e=(0,b.useRef)(!1);return no(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ns=(0,b.createContext)(null);function nl(e){let t=(0,b.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nu extends b.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 nc({children:e,isPresent:t}){let n=(0,b.useId)(),r=(0,b.useRef)(null),i=(0,b.useRef)({width:0,height:0,top:0,left:0});return(0,b.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,x=n?Symbol.for("react.responder"):60118,b=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===x||e.$$typeof===b||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:(h?-1:1)*(1/0);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();++t-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));t:for(;++c0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:function(e,t,n){var r=n(17297),i=n(33812);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var y=-1,x=p[0];t:for(;++yi?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=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new r}else p=t?[]:h;t:for(;++u=i?e:r(e,t,n)}},10768:function(e,t,n){var r=n(77832);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},51821:function(e,t,n){var r=n(77832);e.exports=function(e,t){for(var n=-1,i=e.length;++n-1;);return n}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))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)}},79493: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},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},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))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},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}},66024:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r=t||n<0||v&&r>=c}function b(){var e,n,r,o=i();if(x(o))return w(o);f=setTimeout(b,(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=x(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,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,"")}},17335:function(e,t,n){var r=n(85246),i=n(62034),o=n(36060),a=n(93746),s=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,n){e.exports=n(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},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}},3440:function(e,t,n){var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},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}},30898:function(e,t,n){var r=n(50343),i=n(88390),o=n(36060),a=n(5642),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},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)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&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},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},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}},4714:function(e,t,n){var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},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}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(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}},43679:function(e,t,n){var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},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)}},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},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},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(29097),c=n(76939),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},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},829:function(e,t,n){var r=n(62034),i=n(23813),o=n(36060),a=n(82406),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,n){var r=n(36473),i=n(89419),o=n(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=r(s,t);++n"+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:x})=>{let[b,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()},[]),_=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),O=(0,r.useCallback)(t=>{let r=v(t);j(r),"system"===b&&n&&!e&&S("system")},[b,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&_(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[_]),(0,r.useEffect)(()=>{S(null!=e?e:b)},[e,b]);let C=(0,r.useMemo)(()=>({theme:b,setTheme:_,forcedTheme:e,resolvedTheme:"system"===b?E:b,themes:n?[...u,"system"]:u,systemTheme:n?E:void 0}),[b,_,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:x}),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")},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(76133)}])},4941: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(93463),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)},3639:function(e,t,n){"use strict";n.d(t,{F:function(){return y}});var r=n(52322),i=n(4941);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(22515),u=n(734);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(92838),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})]})}},71930:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(27444);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},99957:function(e,t,n){"use strict";n.d(t,{iV:function(){return w},ZR:function(){return b}});var r=n(52322),i=n(2784),o=n(93463),a=n(27444);let s=[{value:"",label:"Off"},{value:"route53",label:"Route 53"},{value:"noip",label:"No-IP"},{value:"duckdns",label:"Duck DNS"},{value:"cloudflare",label:"Cloudflare"}],l={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,maxRegistryEntries: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:""};var u=n(6391),c=n.n(u),d=n(96206),f=n(94977);function h(e,t){return new(c())(12960).times(e).div((0,o.S5V)(1)).times(t)}function p(e,t){return t?new(c())(new(c())(e).div(t.sc.usd).div(10).toFixed(0)).times(10):void 0}var m=n(63955),v=n(92762),g=n(2850),y=n(47025);let x=(0,i.createContext)({}),b=()=>(0,i.useContext)(x);function w(e){let{children:t}=e,n=function(){let e=(0,a.rV)({standalone:"configSettingsForm",config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),t=(0,a.Te)(),n=(0,a.uo)({disabled:!e.data||!e.data.ddns.provider,config:{swr:{revalidateOnFocus:!1,errorRetryCount:0}}}),[u,x]=(0,v.Z)("v0/config/showAdvanced",{defaultValue:!1}),b=(0,m.cI)({mode:"all",defaultValues:l}),w=b.watch("storagePrice"),E=b.watch("collateralMultiplier"),j=(0,i.useCallback)(e=>{let t;let n=(t=null,"duckdns"===e.ddns.provider&&(t={dnsDuckDnsToken:e.ddns.options.token}),"noip"===e.ddns.provider&&(t={dnsNoIpEmail:e.ddns.options.email,dnsNoIpPassword:e.ddns.options.password}),"route53"===e.ddns.provider&&(t={dnsAwsId:e.ddns.options.ID,dnsAwsSecret:e.ddns.options.secret,dnsAwsZoneId:e.ddns.options.zoneID}),"cloudflare"===e.ddns.provider&&(t={dnsCloudflareToken:e.ddns.options.token,dnsCloudflareZoneId:e.ddns.options.zoneID}),{acceptingContracts:e.acceptingContracts,netAddress:e.netAddress,maxContractDuration:new(c())(e.maxContractDuration).div((0,o.S5V)(1)),contractPrice:(0,d.ll)(e.contractPrice,6),baseRPCPrice:(0,d.ll)((0,f.sS)(e.baseRPCPrice),6),sectorAccessPrice:(0,d.ll)((0,f.nS)(e.sectorAccessPrice),6),collateralMultiplier:new(c())(e.collateralMultiplier),maxCollateral:(0,d.ll)(e.maxCollateral,6),storagePrice:(0,d.ll)((0,f.SY)(e.storagePrice),6),egressPrice:(0,d.ll)((0,f.B1)(e.egressPrice),6),ingressPrice:(0,d.ll)((0,f.dK)(e.ingressPrice),6),priceTableValidity:new(c())(e.priceTableValidity).div(1e9).div(60),maxRegistryEntries:new(c())(e.maxRegistryEntries),accountExpiry:new(c())(e.accountExpiry).div(1e9).div(86400),maxAccountBalance:(0,d.ll)(e.maxAccountBalance,6),ingressLimit:(0,o.BTR)(new(c())(e.ingressLimit)),egressLimit:(0,o.BTR)(new(c())(e.egressLimit)),dnsProvider:e.ddns.provider,dnsIpv4:e.ddns.ipv4,dnsIpv6:e.ddns.ipv6,...t});return b.reset(n),n},[b]),k=(0,i.useMemo)(()=>[e.data],[e.data]),S=(0,i.useCallback)(()=>e.data?j(e.data):null,[j,e.data]),[_,O]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(!_){let e=S();e&&O(!0)}},[_,S]);let C=(0,i.useCallback)(async()=>{let t=await e.mutate();t?(j(t),await n.mutate()):(0,o.OHV)("Error fetching settings.")},[e,j,n]),M=(0,i.useCallback)(async n=>{if(e.data)try{var r;let i;let a={};u||(a.maxCollateral=h(n.storagePrice,n.collateralMultiplier));let s={...n,...a},l=await t.patch({payload:(r=e.data,i=null,"duckdns"===s.dnsProvider&&(i={token:s.dnsDuckDnsToken}),"noip"===s.dnsProvider&&(i={email:s.dnsNoIpEmail,password:s.dnsNoIpPassword}),"route53"===s.dnsProvider&&(i={ID:s.dnsAwsId,secret:s.dnsAwsSecret,zoneID:s.dnsAwsZoneId}),"cloudflare"===s.dnsProvider&&(i={token:s.dnsCloudflareToken,zoneID:s.dnsCloudflareZoneId}),{...r,acceptingContracts:s.acceptingContracts,netAddress:s.netAddress,maxContractDuration:Number(s.maxContractDuration.times((0,o.S5V)(1)).toFixed(0)),contractPrice:(0,d.qN)(s.contractPrice).toString(),baseRPCPrice:s.baseRPCPrice.div((0,d.ll)((0,f.sS)(1))).toFixed(0),sectorAccessPrice:s.sectorAccessPrice.div((0,d.ll)((0,f.nS)(1))).toFixed(0),collateralMultiplier:s.collateralMultiplier.toNumber(),maxCollateral:(0,d.qN)(s.maxCollateral).toString(),storagePrice:s.storagePrice.div((0,d.ll)((0,f.SY)(1))).toFixed(0),egressPrice:s.egressPrice.div((0,d.ll)((0,f.B1)(1))).toFixed(0),ingressPrice:s.ingressPrice.div((0,d.ll)((0,f.dK)(1))).toFixed(0),priceTableValidity:Number(s.priceTableValidity.times(60).times(1e9).toFixed(0)),maxRegistryEntries:Number(s.maxRegistryEntries.toFixed(0)),accountExpiry:Number(s.accountExpiry.times(86400).times(1e9).toFixed(0)),maxAccountBalance:(0,d.qN)(s.maxAccountBalance).toString(),ingressLimit:Number((0,o.YaL)(s.ingressLimit).toFixed(0)),egressLimit:Number((0,o.YaL)(s.egressLimit).toFixed(0)),ddns:{...null==r?void 0:r.ddns,provider:s.dnsProvider,ipv4:s.dnsIpv4,ipv6:s.dnsIpv6,options:i}})});if(l.error)throw Error(l.error);b.formState.dirtyFields.netAddress?(0,o.OPV)("Settings have been saved. Address has changed, make sure to re-announce the host.",{duration:2e4}):(0,o.OPV)("Settings have been saved."),await C()}catch(e){(0,o.OHV)(e.message),console.log(e)}},[b,u,e,t,C]),A=(0,y.BW)(),T=(0,i.useMemo)(()=>{var e;return function(e){let{showAdvanced:t,storageTBMonth:n,collateralMultiplier:i,rates:a}=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:9882",validation:{required:"required"}},maxContractDuration:{type:"number",category:"host",title:"Maximum contract duration",units:"months",decimalsLimit:2,suggestion:new(c())(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(c())(e).gte((0,o.E6f)(4320))||"must be at least 1 month"}}},storagePrice:{title:"Storage price",type:"siacoin",category:"pricing",units:"SC/TB/month",decimalsLimitSc:6,suggestion:a?p(1,a):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:a?p(10,a):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."}),validation:{required:"required"}},ingressPrice:{title:"Ingress price",type:"siacoin",category:"pricing",units:"SC/TB",suggestion:a?p(.05,a):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."}),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(c())(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(c())(.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(c())(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(c())(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(c())(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"}},maxRegistryEntries:{title:"Maximum registry size",type:"number",category:"registry",units:"entries",suggestion:new(c())(1e3),suggestionTip:"The suggested maximum registry size.",decimalsLimit:0,description:(0,r.jsx)(r.Fragment,{children:"The maximum number of registry entries that the host will store. Each registry entry is up to 113 bytes."}),hidden:!t,validation:{required:"required"}},accountExpiry:{title:"Expiry",type:"number",category:"RHP3",units:"days",suggestion:new(c())(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(c())(e).gte(7)||"must be at least 1 week"}}},maxAccountBalance:{title:"Maximum balance",type:"siacoin",category:"RHP3",suggestion:new(c())(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(c())(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:s,description:(0,r.jsx)(r.Fragment,{children:"Enable dynamic DNS with one of the supported providers."}),validation:{validate:e=>!!s.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:u,storageTBMonth:w,collateralMultiplier:E,rates:null===(e=A.data)||void 0===e?void 0:e.rates})},[u,w,E,A.data]),P=(0,o.WsO)(T),N=(0,i.useMemo)(()=>b.handleSubmit(M,P),[b,M,P]),R=(0,i.useCallback)(()=>{let e=b.getValues(),t=S();if(t)for(let[n,r]of(b.reset(t),Object.entries(e)))b.setValue(n,r,{shouldDirty:!0})},[b,S]),{isUnlocked:D}=(0,g.Hv)();(0,i.useEffect)(()=>{D&&C()},[D]),(0,i.useEffect)(()=>{b.formState.isSubmitting||R()},[b,u,k]);let L=Object.entries(b.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length;return{fields:T,settings:e,dynDNSCheck:n,changeCount:L,revalidateAndResetFormData:C,form:b,onSubmit:N,showAdvanced:u,setShowAdvanced:x}}();return(0,r.jsx)(x.Provider,{value:n,children:t})}},92838:function(e,t,n){"use strict";n.d(t,{x:function(){return x},G:function(){return y}});var r=n(52322),i=n(93463),o=n(5632),a=n(27444),s=n(2784),l=n(56860),u=n(41775),c=n(96206),d=n(22515);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)(e.error):(0,i.OPV)((0,r.jsxs)(r.Fragment,{children:["Integrity check successfully started, 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."]}),{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.iG7,{})}),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}=e,{id:n,renewedFrom:o,isRenewedFrom:a,renewedTo:s,isRenewedTo:l}=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)(n),label:"contract ID"}),a&&(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",value:(0,i.I13)(o),label:"contract ID"})]})}),l&&(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)(s),label:"contract ID"})]})})]})}},{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,i.jrD)(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,i.jrD)(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,i.jrD)(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(25573);let g=(0,s.createContext)({}),y=()=>(0,s.useContext)(g);function x(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:g}=(0,i.Uu5)(),{configurableColumns:y,enabledColumns:x,sortableColumns:b,toggleColumnVisibility:w,setColumnsVisible:E,setColumnsHidden:j,toggleSort:k,setSortDirection:S,setSortField:_,sortField:O,sortDirection:C,resetDefaultColumnVisibility:M}=(0,i.oy6)("hostd/v0/contracts",{columns:h,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),A=(0,a.GP)({payload:{limit:r,offset:u,sortField:null===(e=l.Fo.find(e=>e.id===O))||void 0===e?void 0:e.value,sortDesc:"desc"===C,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:(0,i.XBW)(60)}}}),T=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:A}),P=(0,s.useMemo)(()=>h.filter(e=>x.includes(e.id)),[x]),N=A.isValidating,R=A.error,D=(0,i.c2j)(T,N,R,c),{estimatedBlockHeight:L,isSynced:F,nodeBlockHeight:V}=(0,v.n)(),z=F?V:L,{range:I}=(0,s.useMemo)(()=>(0,i.EJC)(z,T||[]),[z,T]);return{dataState:D,offset:u,limit:r,cellContext:{contractsTimeRange:I,currentHeight:z},pageCount:(null==T?void 0:T.length)||0,totalCount:null===(t=A.data)||void 0===t?void 0:t.count,columns:P,dataset:T,configurableColumns:y,enabledColumns:x,sortableColumns:b,toggleColumnVisibility:w,setColumnsVisible:E,setColumnsHidden:j,toggleSort:k,setSortDirection:S,setSortField:_,sortField:O,sortDirection:C,resetDefaultColumnVisibility:M,filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:g}}();return(0,r.jsx)(g.Provider,{value:n,children:t})}},56860: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"},22515:function(e,t,n){"use strict";n.d(t,{Tu:function(){return em},xQ:function(){return ev},Rh:function(){return ep}});var r=n(52322),i=n(2784),o=n(93463),a=n(27444),s=n(96206),l=n(63955);function u(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)},x=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)}},b=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(x,t),p?e(o.current):c.current;if(v)return n(x,t),e(o.current)}return s.current||n(x,t),c.current};return b.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},b.isPending=function(){return!!s.current},b.flush=function(){return s.current?y(Date.now()):c.current},b},[p,v,t,g,m,h])}function c(e,t){return e===t}function d(e){return"function"==typeof e?function(){return e}:e}var f=n(99182),h=n(4941),p=n(41775);function m(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)(p.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 v(){var e;let t=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(null===(e=t.data)||void 0===e?void 0:e.OS)==="windows"?"\\":"/"}var g=n(5648),y=n.n(g),x=n(1573),b=n.n(x);function w(e){let{currentPath:t,childPath:n,separator:r}=e;return"\\"===t&&n.endsWith(":")?n+r:E(t,n,r)}function E(e,t,n){e=e===n?e:b()(e,n),t=y()(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 j(){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)(p.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:"Error loading directory."})]})}function k(e){let{path:t,onCreate:n}=e,s=v(),l=(0,a.Kw)(),[u,c]=(0,i.useState)(""),d=(0,i.useCallback)(async()=>{let e=await l.put({payload:{path:w({currentPath:t,childPath:u,separator:s})}});e.error?(0,o.OHV)("Error creating directory: ".concat(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)(p.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 S(e){let{path:t,setPath:n,commandPage:i,currentPage:a,beforeSelect:s,afterSelect:l}=e,u=v();return(0,r.jsx)(h.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)(p.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:".."})]})},"..")}let _={namespace:"volumes/directorySelect",label:"Directory select"};function O(e){var t,n,i,a,s,l,u;let{path:c,dir:d,setPath:g,currentPage:y,beforeSelect:x,afterSelect:b}=e,E=v(),O=(null===(t=d.data)||void 0===t?void 0:t.path)===E,C=(null===(n=d.data)||void 0===n?void 0:n.path)==="\\";return(0,r.jsxs)(h.fu,{currentPage:y,commandPage:_,children:[d.isValidating||!d.data||d.error?null:O?null:(0,r.jsx)(S,{path:d.data.path,setPath:g,currentPage:y,commandPage:_,afterSelect:b,beforeSelect:x}),(0,r.jsxs)(f.mY.Empty,{children:[!d.isValidating&&d.error?(0,r.jsx)(j,{}):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)(m,{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)(h.WD,{commandPage:_,currentPage:y,onSelect:()=>{x&&x();let t=w({currentPath:d.data.path,childPath:e,separator:E});g(t),b&&b()},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)(p.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:e})]})},e)):null,!C&&!d.isValidating&&!d.error&&(0,r.jsx)(h.WD,{commandPage:_,currentPage:y,value:"create new directory",children:(0,r.jsx)(k,{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 C(e){let{path:t,dir:n,onChange:i}=e;return(0,r.jsx)(f.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)(f.mY.List,{children:(0,r.jsx)(O,{path:t,dir:n,setPath:i,currentPage:_})})})})})}var M=n(82851);function A(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,M.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,M.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,o.Hzd)(a))," available")}):null]})]})}let T={size:void 0,name:"",path:"~",immediatePath:"~"};function P(e){var t;let{trigger:n,open:c,onOpenChange:d}=e,{closeDialog:f}=ep(),h=(0,a.HU)(),p=v(),m=(0,l.cI)({mode:"all",defaultValues:T}),g=m.watch("path"),y=m.watch("immediatePath"),x=m.watch("name"),b=m.watch("size"),w=u(()=>{g!==y&&m.setValue("path",y)},500);(0,i.useEffect)(()=>{w()},[y]),(0,i.useEffect)(()=>{g!==y&&m.setValue("immediatePath",g)},[g]);let j=(0,i.useCallback)(async e=>{let t=await h.post({payload:{localPath:E(g,x,p),maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("New volume created."),m.reset(T),f())},[m,h,f,x,g,p]),k=(0,a.cM)({disabled:!c,params:{path:""===g?p:g},config:{swr:{shouldRetryOnError:!1}}});(0,i.useEffect)(()=>{k.error&&m.setError("immediatePath",{message:"Directory does not exist"})},[k.error]),(0,i.useEffect)(()=>{k.data&&k.data.path!==g&&m.setValue("path",k.data.path)},[k.data]);let S=(null==b?void 0:b.toNumber())||0,_=k.data?(0,o.Uzc)(k.data.freeBytes).toNumber():0,O=(0,o.Uzc)((null===(t=k.data)||void 0===t?void 0:t.freeBytes)||0).toNumber(),M=(0,i.useMemo)(()=>({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:e=>{let t="Must be between ".concat((0,s.vW)((0,o.Hzd)(10))," and ").concat((0,s.vW)((0,o.Hzd)(O),{fixed:3}));return e<=O&&e>=10||t},nospace:()=>O>10||"not enough space in directory"}}}}),[O]),P=(0,o.WsO)(M);return m.register("path",M.path.validation),(0,r.jsx)(o.VqE,{title:"Create Volume",trigger:n,open:c,onOpenChange:e=>{e||m.reset(T),d(e)},contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(j,P),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:M}),(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:M})}),(0,r.jsx)(C,{path:g,dir:k,onChange:e=>m.setValue("path",e,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})})]}),(0,r.jsx)(o.jIp,{name:"size",form:m,fields:M}),(0,r.jsx)(A,{newSizeGB:S,currentSizeGB:0,maxSizeGB:_})]})})}let N={size:void 0};function R(e){var t,n;let{trigger:u,open:c,onOpenChange:d}=e,{id:f,closeDialog:h}=ep(),p=v(),m=(0,a.ST)({disabled:!f,params:{id:f}}),g=(0,a.cM)({disabled:!c||!m.data,params:{path:null===(t=m.data)||void 0===t?void 0:t.localPath.split(p).slice(0,-1).join(p)}}),y=(0,a.G)(),x=(0,l.cI)({mode:"all",defaultValues:N}),b=x.watch("size"),w=(0,i.useCallback)(async e=>{let t=await y.put({params:{id:Number(f)},payload:{maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Volume resizing initiated."),x.reset(N),h())},[x,f,y,h]);(0,i.useEffect)(()=>{m.data&&x.reset(N)},[m.data]);let E=null==b?void 0:b.toNumber(),j=m.data?(0,o.bjP)(m.data.totalSectors).toNumber():0,k=g.data?(0,o.Uzc)(g.data.totalBytes).toNumber():0,S=j=1,O=(0,i.useMemo)(()=>({size:{type:"number",title:"New size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:e=>{let t="Must be between ".concat((0,s.vW)((0,o.Hzd)(10))," and ").concat((0,s.vW)((0,o.Hzd)(k),{fixed:3}));return e<=k&&e>=10||t}}}}}),[k]),C=(0,o.WsO)(O);return(0,r.jsx)(o.VqE,{title:"Resize Volume",trigger:u,open:c,onOpenChange:e=>{e||x.reset(N),d(e)},contentVariants:{className:"max-w-[400px]"},onSubmit:x.handleSubmit(w,C),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=m.data)||void 0===n?void 0:n.localPath})]}),(0,r.jsx)(o.jIp,{name:"size",form:x,fields:O}),(0,r.jsx)(A,{currentSizeGB:j,newSizeGB:E,maxSizeGB:k,label:_?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:S?"Increase by ".concat((0,s.vW)((0,o.Hzd)(E-j))):"Decrease by ".concat((0,s.vW)((0,o.Hzd)(j-E)))}):(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"Current size is ".concat((0,s.vW)((0,o.Hzd)(j)))})})]})})}let D={path:"",force:!1};function L(e){var t,n,u;let{trigger:c,open:d,onOpenChange:f}=e,{id:h,closeDialog:p}=ep(),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),x=null===(u=v.data)||void 0===u?void 0:u.localPath,b=(0,l.cI)({mode:"all",defaultValues:D}),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)(n.error):((0,o.OPV)("Volume permanently deleted."),b.reset(),p())},[b,v.data,m,p]),E=(0,i.useMemo)(()=>({path:{type:"text",title:"Path",placeholder:x,validation:{required:"required",validate:{equals:e=>e===x||"directory path does not match"}}},force:{type:"boolean",title:"Force",validation:{}}}),[x]),j=(0,o.WsO)(E);return(0,r.jsx)(o.VqE,{title:"Delete Volume",trigger:c,open:d,onOpenChange:e=>{e||b.reset(D),f(e)},contentVariants:{className:"w-[400px]"},onSubmit:b.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:b,fields:E}),(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.QBj,{name:"force",size:"medium",form:b,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:b,children:"Delete"})]})})}var F=n(6391),V=n.n(F);function z(){let{dialog:e,openDialog:t,closeDialog:n}=ep(),s=(0,a.Os)(),l=(0,a.cj)(),u=(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(V())(s.data.spendable):void 0,send:u,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}function I(){let{id:e,dialog:t,openDialog:n,closeDialog:s}=ep(),l=(0,a.Qq)({params:{},config:{swr:{revalidateOnFocus:!1,refreshInterval:6e4}},disabled:"transactionDetails"!==t}),u=(0,i.useMemo)(()=>{var t;let n=null===(t=l.data)||void 0===t?void 0:t.find(t=>t.ID===e);return n?{txType:(0,o.leQ)(n.transaction,n.source),inflow:n.inflow,outflow:n.outflow,timestamp:n.timestamp,raw:n.transaction}:null},[l,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:u,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):s()})}var Z=n(734),B=n(2850),H=n(71930),U=n(5632);let W={namespace:"wallet",label:"Wallet"};function q(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:s,closeDialog:l}=ep(),u=(0,U.useRouter)(),c=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:W,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:W,onSelect:()=>{i(W)},children:W.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{u.push(H._.wallet.view),l()},children:"View wallet transactions"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{s("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{s("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{s("addressDetails")},children:"View wallet address"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,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 $=n(38617);let Y={namespace:"settings",label:"Settings"};function G(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:o}=ep(),{setTheme:a}=(0,$.F)(),{settings:s,setSettings:l,lock:u,currencyOptions:c,setCurrency:d}=(0,B.Hv)();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:Y,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:Y,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{l({siaCentral:!s.siaCentral}),o()},children:(s.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(h.o4,{currentPage:t,commandPage:Y,onSelect:()=>{u(),o()},children:"Lock hostd"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{a("system"),o()},children:"Set theme to system preference"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{a("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{a("light"),o()},children:"Set theme to light"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),c.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{d(n),o()},children:"Set currency to ".concat(i)},n)})]})}let X={namespace:"node",label:"Blockchain node"};function K(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=ep(),s=(0,U.useRouter)();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:X,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:X,onSelect:()=>{i(X)},children:X.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:X,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:X,onSelect:()=>{s.push(H._.node.index),a()},children:"View peers"})]})}var Q=n(99957);let J={namespace:"configuration",label:"Configuration"};function ee(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,U.useRouter)(),{showAdvanced:a}=(0,Q.ZR)(),{closeDialog:s}=ep();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:J,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:J,onSelect:()=>{i(J)},children:J.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.index),s()},children:"Open configuration"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.host),s()},children:"Configure host"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.pricing),s()},children:"Configure pricing"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.dns),s()},children:"Configure DNS"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.bandwidth),s()},children:"Configure bandwidth"}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.registry),s()},children:"Configure registry"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.accounts),s()},children:"Configure accounts"})]})]})}var et=n(92838);function en(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)(p.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 er=n(3639);let ei={namespace:"contracts",label:"Contracts"};function eo(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,s=(0,U.useRouter)(),{closeDialog:l}=ep();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ei)},children:ei.label}),(0,r.jsx)(h.fu,{currentPage:t,commandPage:ei,children:(0,r.jsx)(h.WD,{currentPage:t,commandPage:ei,onSelect:()=>{s.push(H._.contracts.index),l()},children:"View contracts"})}),(0,r.jsx)(er.F,{parentPage:ei,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}let ea={namespace:"volumes",label:"Volumes"};function es(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,U.useRouter)(),{openDialog:a,closeDialog:s}=ep();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ea)},children:ea.label}),(0,r.jsxs)(h.fu,{currentPage:t,commandPage:ea,children:[(0,r.jsx)(h.WD,{currentPage:t,commandPage:ea,onSelect:()=>{o.push(H._.volumes.index),s()},children:"View volumes"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ea,onSelect:()=>{a("volumeCreate")},children:"Create volume"})]})]})}function el(e){var t,n,a,s,l,h,p,m,v;let{panel:g}=e,y=(0,U.useRouter)(),{resetFilters:x}=(0,et.G)(),{closeDialog:b}=ep(),[w,E]=(0,i.useState)(""),[j]=(s=t&&t.equalityFn||c,h=(a=(n=(0,i.useState)(d(w)))[1],l=[n[0],(0,i.useCallback)(function(e){return a(d(e))},[])])[0],p=l[1],m=u((0,i.useCallback)(function(e){return p(e)},[p]),500,t),s((v=(0,i.useRef)(w)).current,w)||(m(w),v.current=w),[h,m]),[k,S]=(0,i.useState)([]),_=k[k.length-1],O=0===k.length,C=(0,i.useCallback)(e=>{S(t=>[...t,e])},[S]),A=(0,i.useCallback)(()=>{b()},[b]),T=(0,i.useCallback)(()=>{E("")},[E]),P=(null==_?void 0:_.empty)||en;return(0,r.jsxs)(f.mY,{label:"Command Menu",loop:!0,className:(0,M.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:[_&&(0,r.jsx)(o.__J,{className:"px-2",children:_.label}),(0,r.jsx)(f.mY.Input,{value:w,onValueChange:E,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==_?void 0:_.prompt)||(O?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(f.mY.List,{children:[(0,r.jsx)(f.mY.Empty,{children:(0,r.jsx)(P,{search:w,debouncedSearch:j})}),(0,r.jsx)(G,{currentPage:_,pushPage:C}),(0,r.jsx)(q,{currentPage:_,pushPage:C}),(0,r.jsx)(es,{currentPage:_,pushPage:C}),(0,r.jsx)(eo,{currentPage:_,pushPage:C,beforeSelect:()=>{A(),x()},afterSelect:()=>{y.pathname.startsWith(H._.contracts.index)||y.push(H._.contracts.index),T()}}),(0,r.jsx)(ee,{currentPage:_,pushPage:C}),(0,r.jsx)(K,{currentPage:_,pushPage:C})]})]})}function eu(e){let{open:t,onOpenChange:n,setOpen:a}=e,{isUnlocked:s}=(0,B.Hv)(),{isConnected:l}=(0,o.Y97)({route:H.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)(el,{})})})}function ec(e){let{open:t,onOpenChange:n}=e,s=(0,a.Z7)(),l=(0,a.Uy)(),u=(0,i.useCallback)(async e=>{let t=await l.post({payload:[e]});t.error?(0,o.OHV)("Error dismissing alert."):(0,o.OPV)("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)(t?"Error dismissing all ".concat(t," alerts."):"Error dismissing all alerts."):(0,o.OPV)(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:ed,dataFields:ef,dismissMany:c,dismissOne:u})}let ed=["error","contractID","blockHeight","resolution","volume","volumeID","elapsed","error","checked","missing","corrupt","total","oldSectors","currentSectors","targetSectors","migratedSectors","migrated","target","force"],ef={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"})]})}}},eh=(0,i.createContext)({}),ep=()=>(0,i.useContext)(eh);function em(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)(eh.Provider,{value:n,children:t})}function ev(){var e;let{dialog:t,openDialog:n,openConfirmDialog:i,onOpenChange:s,closeDialog:l,confirm:u}=ep(),c=(0,a.Wl)(),d=(0,a.Os)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eu,{open:"cmdk"===t,onOpenChange:s,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:s}),(0,r.jsx)(ec,{open:"alerts"===t,onOpenChange:s}),(0,r.jsx)(z,{}),(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)(I,{}),(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)(P,{open:"volumeCreate"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(R,{open:"volumeResize"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(L,{open:"volumeDelete"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(Z.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()})]})}},5187: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(93463),a=n(96206);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(27444);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(14817),p=n(66700);function m(e,t){for(var n=Math.abs(e).toString();n.length"7"===e.value),b=(0,i.createContext)({}),w=()=>(0,i.useContext)(b);function E(e){let{children:t}=e,n=function(){let[e,t]=(0,y.Z)("v0/metrics/dataTimeSpan",{defaultValue:x.value}),[n,d]=(0,y.Z)("v0/metrics/dataInterval",{defaultValue:x.interval}),b=function(e){let[t,n]=(0,i.useState)(new Date().getTime());return(0,i.useEffect)(()=>{n(new Date().getTime());let t=setInterval(()=>{n(new Date().getTime()),console.log("reset time range")},(0,h.uQ)(e));return()=>clearInterval(t)},[e]),t}(n),w=(0,i.useMemo)(()=>(0,o.OQF)(e,b),[e,b]),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),x=m(n.getMinutes(),2),b=m(n.getSeconds(),2),w=""===o?"":"T",E=[y,x,b].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.sWj)(5)}}}),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),registryReadPotential:Number(e.revenue.potential.registryRead),registryWritePotential:Number(e.revenue.potential.registryWrite),rpcPotential:Number(e.revenue.potential.rpc),storage:Number(e.revenue.earned.storage),ingress:Number(e.revenue.earned.ingress),egress:Number(e.revenue.earned.egress),registryRead:Number(e.revenue.earned.registryRead),registryWrite:Number(e.revenue.earned.registryWrite),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.registryRead).plus(e.revenue.potential.registryWrite).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.registryRead).plus(e.revenue.earned.registryWrite).plus(e.revenue.earned.rpc).toNumber(),timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","registryRead","registryReadPotential","registryWrite","registryWritePotential","rpc","rpcPotential"],enabledTip:["potential","earned","storage","storagePotential","ingress","ingressPotential","egress","egressPotential","registryRead","registryReadPotential","registryWrite","registryWritePotential","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]),_=(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]),O=(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,o.B$N)(e.storage.totalSectors).times(4).toNumber(),registryEntries:113*e.registry.entries,maxRegistryEntries:113*e.registry.maxEntries,tempSectors:(0,o.B$N)(e.storage.tempSectors).times(4).toNumber(),physicalSectors:(0,o.B$N)(e.storage.physicalSectors).times(4).toNumber(),contractSectors:(0,o.B$N)(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","registryEntries","maxSectors","maxRegistryEntries"],enabledTip:["contractSectors","physicalSectors","tempSectors","registryEntries","maxSectors","maxRegistryEntries"],categories:["storage used","storage capacity"],data:{maxSectors:c(s.capacityStorage,"storage capacity","sectors"),maxRegistryEntries:c(s.capacityRegistry,"storage capacity","registry"),physicalSectors:c(s.storagePhysical,"storage used","sectors physical"),registryEntries:c(s.registry,"storage used","registry (max)"),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]),A=(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,registryReads:e.registry.reads,registryWrites:e.registry.writes,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storageReads","storageWrites","registryReads","registryWrites"],enabledTip:["storageReads","storageWrites","registryReads","registryWrites"],data:{registryReads:s.registryReads,registryWrites:s.registryWrites,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]),T=(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.rhp3.egress+e.data.rhp2.egress,ingress:e.data.rhp3.ingress+e.data.rhp2.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{dataTimeSpan:e,setDataTimeSpan:E,timeRange:w,dataInterval:n,setDataInterval:d,operations:A,revenue:S,collateral:_,contracts:C,storage:M,pricing:O,bandwidth:T}}();return(0,r.jsx)(b.Provider,{value:n,children:t})}},14817:function(e,t,n){"use strict";n.d(t,{lv:function(){return i},uQ:function(){return o}});var r=n(93463);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:"daily",value:"365"},{label:"ALL",interval:"weekly",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}},78743:function(e,t,n){"use strict";n.d(t,{Y:function(){return y},F:function(){return g}});var r=n(52322),i=n(93463),o=n(27444),a=n(2784);let s=["actions","path","storage","available","readOnly","successfulReads","successfulWrites","failedReads","failedWrites"];var l=n(41775),u=n(96206),c=n(22515);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.iG7,{})}),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,n=await m.delete({params:{id:Number(a)}});n.error?(0,i.OHV)("Error canceling volume ".concat(f(t),".")):(0,i.OPV)("Successfully 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,t=await h.put({params:{id:Number(a)},payload:{readOnly:e}});t.error?(0,i.OHV)(e?"Error setting volume to read-only.":"Error setting volume to read/write."):(0,i.OPV)(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);let v=(0,a.createContext)({}),g=()=>(0,a.useContext)(v);function y(e){let{children:t}=e,n=function(){let{configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:u,setSortDirection:c,setSortField:d,sortField:f,sortDirection:p,resetDefaultColumnVisibility:v}=(0,i.oy6)("hostd/v0/volumes",{columns:h,columnsDefaultVisible:s}),g=(0,o.Fn)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.find(e=>!["ready","unavailable"].includes(e.status)))?(0,i.XBW)(5):(0,i.XBW)(60)}}}),y=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),ID:e.ID,localPath:e.localPath,usedSectors:e.usedSectors,usedBytes:new(m())(e.usedSectors).times((0,i.B$N)(4)).toNumber(),totalBytes:new(m())(e.totalSectors).times((0,i.B$N)(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:g}),x=(0,a.useMemo)(()=>h.filter(e=>t.includes(e.id)),[t]),b=g.isValidating,w=g.error,E=(0,i.c2j)(y,b,w,[]);return{dataState:E,totalCount:(null==y?void 0:y.length)||0,isLoading:g.isValidating,columns:x,dataset:y,configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:u,setSortDirection:c,setSortField:d,sortField:f,sortDirection:p,resetDefaultColumnVisibility:v}}();return(0,r.jsx)(v.Provider,{value:n,children:t})}},734:function(e,t,n){"use strict";n.d(t,{O:function(){return u},Y:function(){return f}});var r=n(52322),i=n(93463),o=n(92838),a=n(63397),s=n(24511),l=n(22515);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"})]})})})}},25573:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(2850),i=n(27444);function o(){var e,t,n,o;let{isUnlocked: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}}},94977: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(93463),i=n(6391),o=n.n(i);let a="/TB/month";function s(e){return new(o())(e).times((0,r.xf5)(1)).times((0,r.S5V)(1))}let l="/million";function u(e){return new(o())(e).times(1e7)}let c="/million";function d(e){return new(o())(e).times(1e7)}let f="/TB/month";function h(e){return new(o())(e).times((0,r.xf5)(1)).times((0,r.S5V)(1))}let p="/TB";function m(e){return new(o())(e).times((0,r.xf5)(1))}let v="/TB";function g(e){return new(o())(e).times((0,r.xf5)(1))}},76133:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var r=n(52322);n(37832);var i=n(93463),o=n(92838),a=n(5187),s=n(22515),l=n(78743),u=n(99957),c=n(41775),d=n(25573),f=n(71930),h=n(27444),p=n(6391),m=n.n(p),v=n(96206),g=n(2850),y=n(92762);function x(){var e,t;let{isUnlocked:n}=(0,g.Hv)(),{openDialog:o}=(0,s.Rh)(),{dataset:a}=(0,l.F)(),u=(0,h.rV)(),p=(0,h.Os)(),[x,w]=(0,y.Z)("v0/hostd/onboarding/maximized",{defaultValue:!0}),E=(0,d.n)();if(!n)return null;let j=new(m())((null===(e=p.data)||void 0===e?void 0:e.confirmed)||0),k=(0,v.qN)(5e3),S=p.data&&j.gte(k),_=(null==a?void 0:a.length)>0,O=null===(t=u.data)||void 0===t?void 0:t.acceptingContracts,C=E.isSynced,M=[S,_,O,C],A=M.length,T=M.filter(e=>e).length;return A===T?null:x?(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)(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)(b,{title:(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>o("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,v.Vz)(k)," siacoin to cover required contract collateral.").concat(E.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:S?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!E.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(E.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[E.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>o("addressDetails"),children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(b,{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:_?(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)(b,{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)(b,{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:C?(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:[E.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:()=>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: ",T,"/",A," steps complete"]})})})}function b(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})})]})})}function w(e){let{children:t}=e;return(0,r.jsx)(s.Tu,{children:(0,r.jsx)(u.iV,{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)(x,{}),t]})})})})})}var E=n(1240),j=n.n(E),k=n(49854),S=n.n(k),_=n(82851);let O=(0,_.cx)(j().variable,S().variable);function C(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{className:O,fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:f._,children:(0,r.jsx)(w,{children:(0,r.jsx)(t,{...n})})})}},93463:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{hcY:function(){return SF},tU3:function(){return SN},zXq:function(){return SQ},juT:function(){return Si},Cts:function(){return lf},Z58:function(){return _T},WVB:function(){return c_},zxk:function(){return s5},b0u:function(){return EP},EKh:function(){return lm},vRO:function(){return On},QHy:function(){return _0},TaT:function(){return _Y},eQh:function(){return lg},HfT:function(){return _4},ncR:function(){return kW},A06:function(){return _L},Vy9:function(){return _F},VqE:function(){return l3},h_2:function(){return cT},Xiv:function(){return cP},Juw:function(){return cN},KpP:function(){return cR},XOF:function(){return kU},jIp:function(){return Or},QBj:function(){return Oi},yEL:function(){return SY},cB7:function(){return kK},ZqQ:function(){return kX},IKw:function(){return k4},Hzd:function(){return Oy},WN2:function(){return Oj},X6q:function(){return cz},Yqd:function(){return fb},__J:function(){return cY},rUS:function(){return cK},TRl:function(){return cJ},YaL:function(){return Ob},kFS:function(){return cO},FzK:function(){return _K},Clw:function(){return cS},B$N:function(){return Om},PD$:function(){return Ou},Wxm:function(){return fk},uDJ:function(){return k6},s_4:function(){return tG},nvN:function(){return t$},u5Q:function(){return _P},j4H:function(){return fw},J2e:function(){return df},kod:function(){return d_},xrM:function(){return l1},PhF:function(){return fj},Z0O:function(){return cb},DLL:function(){return _w},KJW:function(){return Sl},rsf:function(){return fI},D_D:function(){return _d},xf5:function(){return Ov},iA_:function(){return k3},t6k:function(){return _3},xvT:function(){return tq},nvn:function(){return dJ},ua7:function(){return s4},mPE:function(){return _f},XxW:function(){return kg},m2c:function(){return kj},ho9:function(){return kE},QUh:function(){return _j},weF:function(){return S7},YNn:function(){return _m},DmW:function(){return _v},jrD:function(){return _Z},E6f:function(){return _I},Uzc:function(){return Og},BTR:function(){return Ox},O9T:function(){return mJ},fVJ:function(){return _C},vQq:function(){return kl},NrH:function(){return EO},Y_Z:function(){return _k},EJC:function(){return Ok},kOJ:function(){return _O},OQF:function(){return _S},leQ:function(){return kf},ytg:function(){return E_},Vkc:function(){return cE},sWj:function(){return ES},S5V:function(){return _V},z$:function(){return tY},XBW:function(){return EC},x9T:function(){return Ow},bjP:function(){return OE},I13:function(){return kc},cEb:function(){return dQ},OHV:function(){return ko},OPV:function(){return ki},$Gg:function(){return ku},Y97:function(){return SP},c2j:function(){return SR},WsO:function(){return S$},Uu5:function(){return Op},oy6:function(){return Oh}});var s,l,u,c,d,f,h,p,m,v,g,y,x=n(52322),b=n(2784),w=n.t(b,2),E=n(7896),j=n(34540),k=n(26215),S=n(99575);function _(e){let t=e+"CollectionProvider",[n,r]=(0,j.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=b.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,k.e)(t,i.collectionRef);return b.createElement(S.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=b.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=b.useRef(null),s=(0,k.e)(t,a),c=o(l,n);return b.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),b.createElement(S.g7,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=b.useRef(null),o=b.useRef(new Map).current;return b.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=b.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}var O=n(41816),C=n(73597),M=n(72130),A=n(64680),T=n(28245),P=n(26074);let N="Collapsible",[R,D]=(0,j.b)(N),[L,F]=R(N),V=((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,C.T)({prop:r,defaultProp:i,onChange:a});return(0,b.createElement)(L,{scope:n,disabled:o,contentId:(0,P.M)(),open:l,onOpenToggle:(0,b.useCallback)(()=>u(e=>!e),[u])},(0,b.createElement)(M.WV.div,(0,E.Z)({"data-state":I(l),"data-disabled":o?"":void 0},s,{ref:t})))},"CollapsibleContent"),z=((e,t)=>{let{forceMount:n,...r}=e,i=F(V,e.__scopeCollapsible);return(0,b.createElement)(T.z,{present:n||i.open},({present:e})=>(0,b.createElement)(z,(0,E.Z)({},r,{ref:t,present:e})))},(0,b.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=F(V,n),[s,l]=(0,b.useState)(r),u=(0,b.useRef)(null),c=(0,k.e)(t,u),d=(0,b.useRef)(0),f=d.current,h=(0,b.useRef)(0),p=h.current,m=a.open||s,v=(0,b.useRef)(m),g=(0,b.useRef)();return(0,b.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,A.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,b.createElement)(M.WV.div,(0,E.Z)({"data-state":I(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 I(e){return e?"open":"closed"}let Z="Accordion",B=["Home","End","ArrowDown","ArrowUp"],[H,U,W]=_(Z),[q,$]=(0,j.b)(Z,[W,D]),Y=(D(),b.forwardRef((e,t)=>{let{type:n,...r}=e;return b.createElement(H.Provider,{scope:e.__scopeAccordion},"multiple"===n?b.createElement(ee,(0,E.Z)({},r,{ref:t})):b.createElement(J,(0,E.Z)({},r,{ref:t})))}));Y.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[G,X]=q(Z),[K,Q]=q(Z,{collapsible:!1}),J=b.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,C.T)({prop:n,defaultProp:r,onChange:i});return b.createElement(G,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:b.useCallback(()=>o&&l(""),[o,l])},b.createElement(K,{scope:e.__scopeAccordion,collapsible:o},b.createElement(er,(0,E.Z)({},a,{ref:t}))))}),ee=b.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,C.T)({prop:n,defaultProp:r,onChange:i}),l=b.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=b.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return b.createElement(G,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},b.createElement(K,{scope:e.__scopeAccordion,collapsible:!0},b.createElement(er,(0,E.Z)({},o,{ref:t}))))}),[et,en]=q(Z),er=b.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=b.useRef(null),a=(0,k.e)(o,t),s=U(n),l=(0,O.M)(e.onKeyDown,e=>{var t;if(!B.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)}let l=a%o;null===(t=r[l].ref.current)||void 0===t||t.focus()});return b.createElement(et,{scope:n,disabled:r},b.createElement(H.Slot,{scope:n},b.createElement(M.WV.div,(0,E.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),[ei,eo]=q("AccordionItem");var ea=n(82851),es=n(83317);function el(e){return e.split("-")[0]}function eu(e){return e.split("-")[1]}function ec(e){return["top","bottom"].includes(el(e))?"x":"y"}function ed(e){return"y"===e?"height":"width"}function ef(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=ec(t),u=ed(l),c=i[u]/2-o[u]/2,d="x"===l;switch(el(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(eu(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let eh=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}=ef(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=ep(r),c={x:i,y:o},d=ec(a),f=eu(a),h=ed(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],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),b=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0;0===b&&(b=s.floating[h]);let w=u[m],E=b-p[h]-u[v],j=b/2-p[h]/2+(g/2-y/2),k=ey(w,eg(j,E)),S=("start"===f?u[m]:u[v])>0&&j!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?jeb[e])}let eE={start:"end",end:"start"};function ej(e){return e.replace(/start|end/g,e=>eE[e])}let ek=["top","right","bottom","left"];ek.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eS=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=el(a),x=p||(y!==u&&v?function(e){let t=ew(e);return[ej(e),t,ej(t)]}(u):[ew(u)]),b=[u,...x],w=await ev(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=eu(e),i=ec(e),o=ed(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ew(a)),{main:a,cross:ew(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=b[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 e_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eO(e){return ek.some(t=>e[t]>=0)}let eC=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=e_(await ev(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eO(t)}}}case"escaped":{let t=e_(await ev(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:eO(t)}}}default:return{}}}}},eM=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=el(n),s=eu(n),l="x"===ec(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 eA(e){return"x"===e?"y":"x"}let eT=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 ev(t,l),d=ec(el(i)),f=eA(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=ey(h+c["y"===d?"top":"left"],eg(h,h-c[e]))}a&&(p=ey(p+c["y"===f?"top":"left"],eg(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eP=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=ec(i),f=eA(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,x,b;let e="y"===d?"width":"height",t=["top","left"].includes(el(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!=(x=null==(b=a.offset)?void 0:b[f])?x:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function eN(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eR(e){if(null==e)return window;if(!eN(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eD(e){return eR(e).getComputedStyle(e)}function eL(e){return eN(e)?"":e?(e.nodeName||"").toLowerCase():""}function eF(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function eV(e){return e instanceof eR(e).HTMLElement}function ez(e){return e instanceof eR(e).Element}function eI(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eR(e).ShadowRoot||e instanceof ShadowRoot)}function eZ(e){let{overflow:t,overflowX:n,overflowY:r}=eD(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function eB(e){let t=/firefox/i.test(eF()),n=eD(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 eH(){return!/^((?!chrome|android).)*safari/i.test(eF())}let eU=Math.min,eW=Math.max,eq=Math.round;function e$(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&&eV(e)&&(l=e.offsetWidth>0&&eq(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&eq(s.height)/e.offsetHeight||1);let c=ez(e)?eR(e):window,d=!eH()&&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 eY(e){return((e instanceof eR(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function eG(e){return ez(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function eX(e){return e$(eY(e)).left+eG(e).scrollLeft}function eK(e){return"html"===eL(e)?e:e.assignedSlot||e.parentNode||(eI(e)?e.host:null)||eY(e)}function eQ(e){return eV(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function eJ(e){let t=eR(e),n=eQ(e);for(;n&&["table","td","th"].includes(eL(n))&&"static"===getComputedStyle(n).position;)n=eQ(n);return n&&("html"===eL(n)||"body"===eL(n)&&"static"===getComputedStyle(n).position&&!eB(n))?t:n||function(e){let t=eK(e);for(eI(t)&&(t=t.host);eV(t)&&!["html","body"].includes(eL(t));){if(eB(t))return t;t=t.parentNode}return null}(e)||t}function e0(e){if(eV(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e$(e);return{width:t.width,height:t.height}}function e1(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=eK(t);return["html","body","#document"].includes(eL(n))?t.ownerDocument.body:eV(n)&&eZ(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=eR(r),a=i?[o].concat(o.visualViewport||[],eZ(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(e1(a))}function e2(e,t,n){return"viewport"===t?em(function(e,t){let n=eR(e),r=eY(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=eH();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):ez(t)?function(e,t){let n=e$(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):em(function(e){var t;let n=eY(e),r=eG(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=eW(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=eW(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+eX(e),l=-r.scrollTop;return"rtl"===eD(i||n).direction&&(s+=eW(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(eY(e)))}let e4={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=e1(e),n=["absolute","fixed"].includes(eD(e).position)&&eV(e)?eJ(e):e;return ez(n)?t.filter(e=>ez(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&eI(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==eL(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=e2(t,n,i);return e.top=eW(r.top,e.top),e.right=eU(r.right,e.right),e.bottom=eU(r.bottom,e.bottom),e.left=eW(r.left,e.left),e},e2(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=eV(n),o=eY(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==eL(n)||eZ(o))&&(a=eG(n)),eV(n))){let e=e$(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:ez,getDimensions:e0,getOffsetParent:eJ,getDocumentElement:eY,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=eV(t),i=eY(t),o=e$(e,r&&function(e){let t=e$(e);return eq(t.width)!==e.offsetWidth||eq(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==eL(t)||eZ(i))&&(a=eG(t)),eV(t)){let e=e$(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=eX(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,eJ(n),r),floating:{...e0(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eD(e).direction};function e3(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?[...ez(e)?e1(e):[],...e1(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}),ez(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e$(e):null;return s&&function t(){let r=e$(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 e5=(e,t,n)=>eh(e,t,{platform:e4,...n});var e6=n(28316),e8="undefined"!=typeof document?b.useLayoutEffect:b.useEffect;function e7(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=b.useRef(null),a=b.useRef(null),s=function(e){let t=b.useRef(e);return e8(()=>{t.current=e}),t}(i),l=b.useRef(null),[u,c]=b.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=b.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=b.useCallback(()=>{o.current&&a.current&&e5(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&e6.flushSync(()=>{c(e)})})},[d,n,r]);e8(()=>{p.current&&h()},[h]);let p=b.useRef(!1);e8(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=b.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=b.useCallback(e=>{o.current=e,m()},[m]),g=b.useCallback(e=>{a.current=e,m()},[m]),y=b.useMemo(()=>({reference:o,floating:a}),[]);return b.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let e9=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 ex({element:t.current,padding:n}).fn(e)}else if(t)return ex({element:t,padding:n}).fn(e);return{}}}},te=(0,b.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,b.createElement)(M.WV.svg,(0,E.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,b.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tt(e){let[t,n]=(0,b.useState)(void 0);return(0,A.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 tn="Popper",[tr,ti]=(0,j.b)(tn),[to,ta]=tr(tn),ts=(0,b.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=ta("PopperAnchor",n),a=(0,b.useRef)(null),s=(0,k.e)(t,a);return(0,b.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,b.createElement)(M.WV.div,(0,E.Z)({},i,{ref:s}))}),tl="PopperContent",[tu,tc]=tr(tl),[td,tf]=tr(tl,{hasParent:!1,positionUpdateFns:new Set}),th=(0,b.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:x=!1,avoidCollisions:w=!0,...E}=e,j=ta(tl,c),[S,_]=(0,b.useState)(null),O=(0,k.e)(t,e=>_(e)),[C,T]=(0,b.useState)(null),P=tt(C),N=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,R=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,D="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},L=Array.isArray(v)?v:[v],F=L.length>0,V={padding:D,boundary:L.filter(tg),altBoundary:F},{reference:z,floating:I,strategy:Z,x:B,y:H,placement:U,middlewareData:W,update:q}=e7({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:e3,middleware:[eM({mainAxis:f+R,alignmentAxis:p}),w?eT({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eP():void 0,...V}):void 0,C?e9({element:C,padding:m}):void 0,w?eS({...V}):void 0,ty({arrowWidth:N,arrowHeight:R}),x?eC({strategy:"referenceHidden"}):void 0].filter(tv)});(0,A.b)(()=>{z(j.anchor)},[z,j.anchor]);let $=null!==B&&null!==H,[Y,G]=tx(U),X=null===(i=W.arrow)||void 0===i?void 0:i.x,K=null===(o=W.arrow)||void 0===o?void 0:o.y,Q=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[J,ee]=(0,b.useState)();(0,A.b)(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:et,positionUpdateFns:en}=tf(tl,c),er=!et;(0,b.useLayoutEffect)(()=>{if(!er)return en.add(q),()=>{en.delete(q)}},[er,en,q]),(0,b.useLayoutEffect)(()=>{er&&$&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,$,en]);let ei={"data-side":Y,"data-align":G,...E,ref:O,style:{...E.style,animation:$?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,b.createElement)("div",{ref:I,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:$?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,b.createElement)(tu,{scope:c,placedSide:Y,onArrowChange:T,arrowX:X,arrowY:K,shouldHideArrow:Q},er?(0,b.createElement)(td,{scope:c,hasParent:!0,positionUpdateFns:en},(0,b.createElement)(M.WV.div,ei)):(0,b.createElement)(M.WV.div,ei)))}),tp={top:"bottom",right:"left",bottom:"top",left:"right"},tm=(0,b.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tc("PopperArrow",n),o=tp[i.placedSide];return(0,b.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,b.createElement)(te,(0,E.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function tv(e){return void 0!==e}function tg(e){return null!==e}let ty=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]=tx(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="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function tx(e){let[t,n="center"]=e.split("-");return[t,n]}let tb=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,b.useState)(null);return(0,b.createElement)(to,{scope:t,anchor:r,onAnchorChange:i},n)};var tw=n(6500);let tE=(0,b.forwardRef)((e,t)=>(0,b.createElement)(M.WV.span,(0,E.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}}))),[tj,tk]=(0,j.b)("Tooltip",[ti]),tS=ti(),t_="tooltip.open",[tO,tC]=tj("TooltipProvider"),tM="Tooltip",[tA,tT]=tj(tM),tP="TooltipTrigger",tN=(0,b.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=tT(tP,n),o=tC(tP,n),a=tS(n),s=(0,b.useRef)(null),l=(0,k.e)(t,s,i.onTriggerChange),u=(0,b.useRef)(!1),c=(0,b.useRef)(!1),d=(0,b.useCallback)(()=>u.current=!1,[]);return(0,b.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,b.createElement)(ts,(0,E.Z)({asChild:!0},a),(0,b.createElement)(M.WV.button,(0,E.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,O.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,O.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,O.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,O.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,O.M)(e.onBlur,i.onClose),onClick:(0,O.M)(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tR="TooltipPortal",[tD,tL]=tj(tR,{forceMount:void 0}),tF="TooltipContent",tV=(0,b.forwardRef)((e,t)=>{let n=tL(tF,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=tT(tF,e.__scopeTooltip);return(0,b.createElement)(T.z,{present:r||a.open},a.disableHoverableContent?(0,b.createElement)(tB,(0,E.Z)({side:i},o,{ref:t})):(0,b.createElement)(tz,(0,E.Z)({side:i},o,{ref:t})))}),tz=(0,b.forwardRef)((e,t)=>{let n=tT(tF,e.__scopeTooltip),r=tC(tF,e.__scopeTooltip),i=(0,b.useRef)(null),o=(0,k.e)(t,i),[a,s]=(0,b.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,b.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,b.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=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}}(r,n.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=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()),u=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)}([a,...l]);s(u),d(!0)},[d]);return(0,b.useEffect)(()=>()=>f(),[f]),(0,b.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,b.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;c&&(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,b.createElement)(tB,(0,E.Z)({},e,{ref:o}))}),[tI,tZ]=tj(tM,{isInside:!1}),tB=(0,b.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tT(tF,n),u=tS(n),{onClose:c}=l;return(0,b.useEffect)(()=>(document.addEventListener(t_,c),()=>document.removeEventListener(t_,c)),[c]),(0,b.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,b.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,b.createElement)(th,(0,E.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,b.createElement)(S.A4,null,r),(0,b.createElement)(tI,{scope:n,isInside:!0},(0,b.createElement)(tE,{id:l.contentId,role:"tooltip"},i||r))))}),tH=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tC(tM,e.__scopeTooltip),u=tS(t),[c,d]=(0,b.useState)(null),f=(0,P.M)(),h=(0,b.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,b.useRef)(!1),[g=!1,y]=(0,C.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(t_))):l.onClose(),null==o||o(e)}}),x=(0,b.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),w=(0,b.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),E=(0,b.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,b.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,b.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,b.createElement)(tb,u,(0,b.createElement)(tA,{scope:t,contentId:f,open:g,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:(0,b.useCallback)(()=>{l.isOpenDelayed?j():w()},[l.isOpenDelayed,j,w]),onTriggerLeave:(0,b.useCallback)(()=>{p?E():window.clearTimeout(h.current)},[E,p]),onOpen:w,onClose:E,disableHoverableContent:p},n))},tU=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=tT(tR,t);return(0,b.createElement)(tD,{scope:t,forceMount:n},(0,b.createElement)(T.z,{present:n||o.open},(0,b.createElement)(tw.h,{asChild:!0,container:i},r)))},tW=(0,ea.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"}}),tq=b.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,x.jsx)(n,{ref:t,className:(0,ea.cx)(r,tW({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t$=b.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,x.jsx)(tq,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,ea.cx)("leading-relaxed md:leading-relaxed",e.className)})}),tY=(0,ea.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),tG=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:tY({className:n}),...r})});var tX=n(34406);let tK=(void 0===tX||tX.env,"production"),tQ=1/60*1e3,tJ="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),t0="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(tJ()),tQ),t1=!0,t2=!1,t4=!1,t3={delta:0,timestamp:0},t5=["read","update","preRender","render","postRender"],t6=t5.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;nt2=!0),e),{}),t8=t5.reduce((e,t)=>{let n=t6[t];return e[t]=(e,t=!1,r=!1)=>(t2||nn(),n.schedule(e,t,r)),e},{}),t7=t5.reduce((e,t)=>(e[t]=t6[t].cancel,e),{}),t9=t5.reduce((e,t)=>(e[t]=()=>t6[t].process(t3),e),{}),ne=e=>t6[e].process(t3),nt=e=>{t2=!1,t3.delta=t1?tQ:Math.max(Math.min(e-t3.timestamp,40),1),t3.timestamp=e,t4=!0,t5.forEach(ne),t4=!1,t2&&(t1=!1,t0(nt))},nn=()=>{t2=!0,t1=!0,t4||t0(nt)},nr=()=>t3,ni="undefined"!=typeof document,no=ni?b.useLayoutEffect:b.useEffect;function na(){let e=(0,b.useRef)(!1);return no(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ns=(0,b.createContext)(null);function nl(e){let t=(0,b.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nu extends b.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 nc({children:e,isPresent:t}){let n=(0,b.useId)(),r=(0,b.useRef)(null),i=(0,b.useRef)({width:0,height:0,top:0,left:0});return(0,b.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,16 +22,16 @@ top: ${a}px !important; left: ${s}px !important; } - `),()=>{document.head.removeChild(l)}},[t]),b.createElement(nu,{isPresent:t,childRef:r,sizeRef:i},b.cloneElement(e,{ref:r}))}let nd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=nl(nf),l=(0,b.useId)(),u=(0,b.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,b.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),b.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=b.createElement(nc,{isPresent:n},e)),b.createElement(ns.Provider,{value:u},e)};function nf(){return new Map}let nh=(0,b.createContext)({});function np(e){return(0,b.useEffect)(()=>()=>e(),[])}let nm=new Set;function nv(e,t,n){e||nm.has(t)||(console.warn(t),n&&console.warn(n),nm.add(t))}let ng=e=>e.key||"",ny=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nv(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=na(),[t,n]=(0,b.useState)(0),r=(0,b.useCallback)(()=>{e.current&&n(t+1)},[t]),i=(0,b.useCallback)(()=>t8.postRender(r),[r]);return[i,t]}(),l=(0,b.useContext)(nh).forceRender;l&&(s=l);let u=na(),c=function(e){let t=[];return b.Children.forEach(e,e=>{(0,b.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,b.useRef)(d),p=(0,b.useRef)(new Map).current,m=(0,b.useRef)(!0);if(no(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=ng(e);t.set(n,e)})}(c,p),h.current=d}),np(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return b.createElement(b.Fragment,null,d.map(e=>b.createElement(nd,{key:ng(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(ng),g=c.map(ng),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,b.createElement(nd,{key:ng(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:b.createElement(nd,{key:ng(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==tX&&"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.'),b.createElement(b.Fragment,null,f.size?d:d.map(e=>(0,b.cloneElement)(e)))},nx=(0,b.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nb=(0,b.createContext)({}),nw=(0,b.createContext)({strict:!1});function nE(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nj(e){return"string"==typeof e||Array.isArray(e)}function nk(e){return"object"==typeof e&&"function"==typeof e.start}let n_=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function nS(e){return nk(e.animate)||n_.some(t=>nj(e[t]))}function nO(e){return!!(nS(e)||e.variants)}function nC(e){return Array.isArray(e)?e.join(" "):e}let nM=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nA={measureLayout:nM(["layout","layoutId","drag"]),animation:nM(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nM(["exit"]),drag:nM(["drag","dragControls"]),focus:nM(["whileFocus"]),hover:nM(["whileHover","onHoverStart","onHoverEnd"]),tap:nM(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nM(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nM(["whileInView","onViewportEnter","onViewportLeave"])},nP={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nT=1;class nN extends b.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let nR=(0,b.createContext)({}),nD=Symbol.for("motionComponentSymbol"),nL=["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 nF(e){if("string"!=typeof e||e.includes("-"));else if(nL.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let nV={},nz=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nI=new Set(nz);function nZ(e,{layout:t,layoutId:n}){return nI.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!nV[e]||"opacity"===e)}let nB=e=>!!(null==e?void 0:e.getVelocity),nH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nU=(e,t)=>nz.indexOf(e)-nz.indexOf(t);function nW(e){return e.startsWith("--")}let nq=(e,t)=>t&&"number"==typeof e?t.transform(e):e,n$=(e,t)=>n=>Math.max(Math.min(n,t),e),nY=e=>e%1?Number(e.toFixed(5)):e,nG=/(-)?([\d]*\.?[\d])+/g,nK=/(#[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,nX=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function nQ(e){return"string"==typeof e}let nJ=e=>({test:t=>nQ(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n0=nJ("deg"),n1=nJ("%"),n2=nJ("px"),n4=nJ("vh"),n3=nJ("vw"),n5=Object.assign(Object.assign({},n1),{parse:e=>n1.parse(e)/100,transform:e=>n1.transform(100*e)}),n6={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},n8=Object.assign(Object.assign({},n6),{transform:n$(0,1)}),n7=Object.assign(Object.assign({},n6),{default:1}),n9={...n6,transform:Math.round},re={borderWidth:n2,borderTopWidth:n2,borderRightWidth:n2,borderBottomWidth:n2,borderLeftWidth:n2,borderRadius:n2,radius:n2,borderTopLeftRadius:n2,borderTopRightRadius:n2,borderBottomRightRadius:n2,borderBottomLeftRadius:n2,width:n2,maxWidth:n2,height:n2,maxHeight:n2,size:n2,top:n2,right:n2,bottom:n2,left:n2,padding:n2,paddingTop:n2,paddingRight:n2,paddingBottom:n2,paddingLeft:n2,margin:n2,marginTop:n2,marginRight:n2,marginBottom:n2,marginLeft:n2,rotate:n0,rotateX:n0,rotateY:n0,rotateZ:n0,scale:n7,scaleX:n7,scaleY:n7,scaleZ:n7,skew:n0,skewX:n0,skewY:n0,distance:n2,translateX:n2,translateY:n2,translateZ:n2,x:n2,y:n2,z:n2,perspective:n2,transformPerspective:n2,opacity:n8,originX:n5,originY:n5,originZ:n2,zIndex:n9,fillOpacity:n8,strokeOpacity:n8,numOctaves:n9};function rt(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(nW(e)){o[e]=n;continue}let r=re[e],f=nq(n,r);if(nI.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(nU),t))a+=`${nH[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 rn=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rr(e,t,n){for(let r in t)nB(t[r])||nZ(r,n)||(e[r]=t[r])}function ri(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rr(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,b.useMemo)(()=>{let r=rn();return rt(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}let ro=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 ra(e){return ro.has(e)}let rs=e=>!ra(e);try{(EZ=require("@emotion/is-prop-valid").default)&&(rs=e=>e.startsWith("on")?!ra(e):EZ(e))}catch(e){}function rl(e,t,n){return"string"==typeof e?e:n2.transform(t+n*e)}let ru={offset:"stroke-dashoffset",array:"stroke-dasharray"},rc={offset:"strokeDashoffset",array:"strokeDasharray"};function rd(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rt(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=rl(t,e.x,e.width),i=rl(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?ru:rc;e[o.offset]=n2.transform(-r);let a=n2.transform(t),s=n2.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let rf=()=>({...rn(),attrs:{}});function rh(e,t){let n=(0,b.useMemo)(()=>{let n=rf();return rd(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rr(t,e.style,e),n.style={...t,...n.style}}return n}let rp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rm(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 rv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function rg(e,t,n,r){for(let n in rm(e,t,void 0,r),t.attrs)e.setAttribute(rv.has(n)?n:rp(n),t.attrs[n])}function ry(e){let{style:t}=e,n={};for(let r in t)(nB(t[r])||nZ(r,e))&&(n[r]=t[r]);return n}function rx(e){let t=ry(e);for(let n in e)if(nB(e[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function rb(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 rw=e=>Array.isArray(e),rE=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rj=e=>rw(e)?e[e.length-1]||0:e;function rk(e){let t=nB(e)?e.get():e;return rE(t)?t.toValue():t}let r_=e=>(t,n)=>{let r=(0,b.useContext)(nb),i=(0,b.useContext)(ns),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]=rk(o[e]);let{initial:a,animate:s}=e,l=nS(e),u=nO(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;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!nk(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let n=rb(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]})}return i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():nl(o)},rS={useVisualState:r_({scrapeMotionValuesFromProps:rx,createRenderState:rf,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}}rd(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),rg(t,n)}})},rO={useVisualState:r_({scrapeMotionValuesFromProps:ry,createRenderState:rn})};function rC(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rM(e,t,n,r){(0,b.useEffect)(()=>{let i=e.current;if(n&&i)return rC(i,t,n,r)},[e,t,n,r])}function rA(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function rP(e){let t=!!e.touches;return t}(EB=E$||(E$={})).Animate="animate",EB.Hover="whileHover",EB.Tap="whileTap",EB.Drag="whileDrag",EB.Focus="whileFocus",EB.InView="whileInView",EB.Exit="exit";let rT={pageX:0,pageY:0};function rN(e,t="page"){return{point:rP(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0],r=n||rT;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let rR=(e,t=!1)=>{let n=t=>e(t,rN(t));return t?e=>{let t=e instanceof MouseEvent,r=!t||t&&0===e.button;r&&n(e)}:n},rD=()=>ni&&null===window.onpointerdown,rL=()=>ni&&null===window.ontouchstart,rF=()=>ni&&null===window.onmousedown,rV={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rz={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function rI(e){if(rD());else if(rL())return rz[e];else if(rF())return rV[e];return e}function rZ(e,t,n,r){return rC(e,rI(t),rR(n,"pointerdown"===t),r)}function rB(e,t,n,r){return rM(e,rI(t),n&&rR(n,"pointerdown"===t),r)}function rH(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rU=rH("dragHorizontal"),rW=rH("dragVertical");function rq(e){let t=!1;if("y"===e)t=rW();else if("x"===e)t=rU();else{let e=rU(),n=rW();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function r$(){let e=rq(!0);return!e||(e(),!1)}function rY(e,t,n){return(r,i)=>{!(!rA(r)||r$())&&(e.animationState&&e.animationState.setActive(E$.Hover,t),n&&n(r,i))}}let rG=(e,t)=>!!t&&(e===t||rG(e,t.parentElement)),rK=(e,t)=>n=>t(e(n)),rX=(...e)=>e.reduce(rK),rQ=new WeakMap,rJ=new WeakMap,r0=e=>{let t=rQ.get(e.target);t&&t(e)},r1=e=>{e.forEach(r0)},r2={some:0,all:1};function r4(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,b.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:r2[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;rJ.has(n)||rJ.set(n,{});let r=rJ.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(r1,{root:e,...t})),r[i]}(t);return rQ.set(e,n),r.observe(e),()=>{rQ.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(E$.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])}function r3(e,t,n,{fallback:r=!0}){(0,b.useEffect)(()=>{e&&r&&("production"!==tX&&nv(!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(E$.InView,!0)}))},[e])}let r5=e=>t=>(e(t),null),r6={inView:r5(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,b.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?r3:r4;s(a,o.current,e,i)}),tap:r5(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,b.useRef)(!1),s=(0,b.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(E$.Tap,!1),!r$()}function d(t,r){c()&&(rG(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=rX(rZ(window,"pointerup",d,l),rZ(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(E$.Tap,!0),t&&t(e,n))}rB(i,"pointerdown",o?h:void 0,l),np(u)}),focus:r5(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;rM(t,"focus",e?()=>{n&&n.setActive(E$.Focus,!0)}:void 0),rM(t,"blur",e?()=>{n&&n.setActive(E$.Focus,!1)}:void 0)}),hover:r5(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){rB(r,"pointerenter",e||n?rY(r,!0,e):void 0,{passive:!e}),rB(r,"pointerleave",t||n?rY(r,!1,t):void 0,{passive:!t})})};function r8(){let e=(0,b.useContext)(ns);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,b.useId)();return(0,b.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function r7(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 ie=function(){},it=function(){};let ir=(e,t,n)=>Math.min(Math.max(n,e),t);function ii(e,t){return e*Math.sqrt(1-t*t)}let io=["duration","bounce"],ia=["stiffness","damping","mass"];function is(e,t){return t.some(t=>void 0!==e[t])}function il(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=r9(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(!is(e,ia)&&is(e,io)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;ie(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ir(.05,1,a),e=ir(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e,o=ii(t,a),s=Math.exp(-i);return .001-(r-n)/o*s},o=t=>{let r=t*a,o=r*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ii(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*n+n-s)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},o=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,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=iu,p=iu;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=ii(a,o);h=i=>{let s=Math.exp(-o*a*i);return n-s*((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(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}il.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iu=e=>0,ic=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},id=(e,t,n)=>-n*e+n*t+e,ih=(e,t)=>n=>!!(nQ(n)&&nX.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ip=(e,t,n)=>r=>{if(!nQ(r))return r;let[i,o,a,s]=r.match(nG);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},im=n$(0,255),iv=Object.assign(Object.assign({},n6),{transform:e=>Math.round(im(e))}),ig={test:ih("rgb","red"),parse:ip("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iv.transform(e)+", "+iv.transform(t)+", "+iv.transform(n)+", "+nY(n8.transform(r))+")"},iy={test:ih("#"),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},ix={test:ih("hsl","hue"),parse:ip("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+n1.transform(nY(t))+", "+n1.transform(nY(n))+", "+nY(n8.transform(r))+")"};function ib(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 iw({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=ib(s,r,e+1/3),o=ib(s,r,e),a=ib(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 iE=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ij=[iy,ig,ix],ik=e=>ij.find(t=>t.test(e)),i_=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,iS=(e,t)=>{let n=ik(e),r=ik(t);it(!!n,i_(e)),it(!!r,i_(t));let i=n.parse(e),o=r.parse(t);n===ix&&(i=iw(i),n=ig),r===ix&&(o=iw(o),r=ig);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iE(i[t],o[t],e));return a.alpha=id(i.alpha,o.alpha,e),n.transform(a)}},iO={test:e=>ig.test(e)||iy.test(e)||ix.test(e),parse:e=>ig.test(e)?ig.parse(e):ix.test(e)?ix.parse(e):iy.parse(e),transform:e=>nQ(e)?e:e.hasOwnProperty("red")?ig.transform(e):ix.transform(e)},iC="${c}",iM="${n}";function iA(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(nK);r&&(n=r.length,e=e.replace(nK,iC),t.push(...r.map(iO.parse)));let i=e.match(nG);return i&&(e=e.replace(nG,iM),t.push(...i.map(n6.parse))),{values:t,numColors:n,tokenised:e}}function iP(e){return iA(e).values}function iT(e){let{values:t,numColors:n,tokenised:r}=iA(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,iR={test:function(e){var t,n,r,i;return isNaN(e)&&nQ(e)&&(null!==(n=null===(t=e.match(nG))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(nK))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:iP,createTransformer:iT,getAnimatableNone:function(e){let t=iP(e),n=iT(e);return n(t.map(iN))}},iD=e=>"number"==typeof e;function iL(e,t){return iD(e)?n=>id(e,t,n):iO.test(e)?iS(e,t):iI(e,t)}let iF=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>iL(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]=iL(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function iz(e){let t=iR.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=iR.createTransformer(t),r=iz(e),i=iz(t),o=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return o?rX(iF(r.parsed,i.parsed),n):(ie(!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}`)},iZ=(e,t)=>n=>id(e,t,n);function iB(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;it(o===t.length,"Both input and output ranges must be the same length"),it(!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])?iZ:"string"==typeof r?iO.test(r)?iS:iI:Array.isArray(r)?iF:"object"==typeof r?iV:void 0),a=e.length-1;for(let n=0;nn(ic(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=ic(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(ir(e[0],e[o-1],t)):s}let iH=e=>t=>1-e(1-t),iU=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iW=e=>t=>t*t*((e+1)*t-e),iq=4/11,i$=8/11,iY=e=>e,iG=e=>Math.pow(e,2),iK=iH(iG),iX=iU(iG),iQ=e=>1-Math.sin(Math.acos(e)),iJ=iH(iQ),i0=iU(iJ),i1=iW(1.525),i2=iH(i1),i4=iU(i1),i3=(e=>{let t=iW(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),i5=4356/361,i6=35442/1805,i8=16061/1805,i7=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 iB(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||iX).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 ot={keyframes:oe,spring:il,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 on(e,t,n=0){return e-t-n}let or=e=>{let t=({delta:t})=>e(t);return{start:()=>t8.update(t,!0),stop:()=>t7.update(t)}};function oi(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=or,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=r9(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,x=0,b=g.duration,w=!1,E=!0,j=function(e){if(Array.isArray(e.to))return oe;if(ot[e.type])return ot[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 il;return oe}(g);(null===(i=j.needsInterpolation)||void 0===i?void 0:i.call(j,o,y))&&(r=iB([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===x&&(null!=b||(b=l)),x=o+d:i<=-d)&&(x++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?on(t+-e,t,n):t-(e-t)+n}(l,b,d,E=x%2==0):(l=on(l,b,d),"mirror"===c&&k.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let oo=e=>1e3*e,oa=(e,t)=>1-3*t+3*e,os=(e,t)=>3*t-6*e,ol=e=>3*e,ou=(e,t,n)=>((oa(t,n)*e+os(t,n))*e+ol(t))*e,oc=(e,t,n)=>3*oa(t,n)*e*e+2*os(t,n)*e+ol(t),od={linear:iY,easeIn:iG,easeInOut:iX,easeOut:iK,circIn:iQ,circInOut:i0,circOut:iJ,backIn:i1,backInOut:i4,backOut:i2,anticipate:i3,bounceIn:i9,bounceInOut:e=>e<.5?.5*(1-i7(1-2*e)):.5*i7(2*e-1)+.5,bounceOut:i7},of=e=>{if(Array.isArray(e)){it(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 iY;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=ou(.1*t,e,n);return o=>0===o||1===o?o:ou(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=r+.1*a,l=oc(s,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=oc(t,n,r);if(0===i)break;let o=ou(t,n,r)-e;t-=o/i}return t}(t,s,e,n):0===l?s:function(e,t,n,r,i){let o,a;let s=0;do(o=ou(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?(it(void 0!==od[e],`Invalid easing type '${e}'`),od[e]):e},oh=e=>Array.isArray(e)&&"number"!=typeof e[0],op=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iR.test(t)&&!t.startsWith("url(")),om=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ov=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),og=()=>({type:"keyframes",ease:"linear",duration:.3}),oy=e=>({type:"keyframes",duration:.8,values:e}),ox={x:om,y:om,z:om,rotate:om,rotateX:om,rotateY:om,rotateZ:om,scaleX:ov,scaleY:ov,scale:ov,opacity:og,backgroundColor:og,color:og,default:ov},ob=(e,t)=>({to:t,...(rw(t)?oy:ox[e]||ox.default)(t)}),ow=new Set(["brightness","contrast","saturate","opacity"]);function oE(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(nG)||[];if(!r)return e;let i=n.replace(r,""),o=ow.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let oj=/([a-z-]*)\(.*?\)/g,ok=Object.assign(Object.assign({},iR),{getAnimatableNone:e=>{let t=e.match(oj);return t?t.map(oE).join(" "):e}}),o_={...re,color:iO,backgroundColor:iO,outlineColor:iO,fill:iO,stroke:iO,borderColor:iO,borderTopColor:iO,borderRightColor:iO,borderBottomColor:iO,borderLeftColor:iO,filter:ok,WebkitFilter:ok},oS=e=>o_[e];function oO(e,t){var n;let r=oS(e);return r!==ok&&(r=iR),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let oC={current:!1};function oM(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(t7.read(r),e(o-t))};return t8.read(r,!0),()=>t7.read(r)}let oA=!1;function oP(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oT(e){return"number"==typeof e?0:oO("",e)}function oN(e,t){return e[t]||e.default||e}function oR(e,t,n,r={}){return oC.current&&(r={type:!1}),t.start(i=>{let o,a;let s=function(e,t,n,r,i){let o=oN(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=op(e,n);"none"===a&&s&&"string"==typeof n?a=oO(e,n):oP(a)&&"string"==typeof n?a=oT(n):!Array.isArray(n)&&oP(n)&&"string"==typeof a&&(n=oT(a));let l=op(e,a);return ie(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;r=a,a=e,t=(n=nr().delta)?(e-r)*(1e3/n):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oi({...(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,...ob(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=oo(o.duration)),o.repeatDelay&&(a.repeatDelay=oo(o.repeatDelay)),e&&(a.ease=oh(e)?e.map(of):of(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(ie(!oA,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oA=!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=rj(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),l=function(e,t){var n,r;let i=oN(e,t)||{};return null!==(r=null!==(n=i.delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=()=>o=s();return l?a=oM(u,oo(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oD=e=>/^\-?\d*\.?\d+$/.test(e),oL=e=>/^0[^.\s]+$/.test(e);function oF(e,t){-1===e.indexOf(t)&&e.push(t)}function oV(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class oz{constructor(){this.subscriptions=[]}add(e){return oF(this.subscriptions,e),()=>oV(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 oZ{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oz,this.velocityUpdateSubscribers=new oz,this.renderSubscribers=new oz,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nr();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,t8.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=()=>t8.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=oI(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)?e*(1e3/t):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 oB(e){return new oZ(e)}let oH=e=>t=>t.test(e),oU=[n6,n2,n1,n0,n3,n4,{test:e=>"auto"===e,parse:e=>e}],oW=e=>oU.find(oH(e)),oq=[...oU,iO,iR],o$=e=>oq.find(oH(e));function oY(e,t,n){let r=e.getProps();return rb(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 oG(e){return!!(nB(e)&&e.add)}function oK(e,t,n={}){var r;let i=oY(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>oX(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(oQ).forEach((e,r)=>{a.push(oK(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 oX(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&&nI.has(t)&&(o={...o,type:!1,delay:0});let s=oR(t,r,i,o);oG(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={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=rj(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oB(n))}}(e,s)})}function oQ(e,t){return e.sortNodePosition(t)}let oJ=[E$.Animate,E$.InView,E$.Focus,E$.Hover,E$.Tap,E$.Drag,E$.Exit],o0=[...oJ].reverse(),o1=oJ.length;function o2(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let o4={animation:r5(({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)){let i=t.map(t=>oK(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=oK(e,t,n);else{let i="function"==typeof t?oY(e,t,n.custom):t;r=oX(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[E$.Animate]:o2(!0),[E$.InView]:o2(),[E$.Hover]:o2(),[E$.Tap]:o2(),[E$.Drag]:o2(),[E$.Focus]:o2(),[E$.Exit]:o2()},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 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===x&&(k={});let{prevResolvedValues:_={}}=v,S={..._,...k},O=e=>{E=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in S){let t=k[e],n=_[e];h.hasOwnProperty(e)||(t!==n?rw(t)&&rw(n)?!r7(t,n)||w?O(e):v.protectedKeys[e]=!0:void 0!==t?O(e):f.add(e):void 0!==t&&f.has(e)?O(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=k,v.isActive&&(h={...h,...k}),r&&e.blockInitialAnimation&&(E=!1),E&&!b&&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)),nk(t)&&(0,b.useEffect)(()=>t.subscribe(e),[t])}),exit:r5(e=>{let{custom:t,visualElement:n}=e,[r,i]=r8(),o=(0,b.useContext)(ns);(0,b.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(E$.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},o3=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),o5=e=>o3(e)&&e.hasOwnProperty("z"),o6=(e,t)=>Math.abs(e-t);function o8(e,t){if(iD(e)&&iD(t))return o6(e,t);if(o3(e)&&o3(t)){let n=o6(e.x,t.x),r=o6(e.y,t.y),i=o5(e)&&o5(t)?o6(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}class o7{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=at(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=o8(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nr();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=o9(t,this.transformPagePoint),rA(e)&&0===e.buttons){this.handlePointerUp(e,t);return}t8.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=at(o9(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},rP(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=rN(e),i=o9(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=nr();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,at(i,this.history)),this.removeListeners=rX(rZ(window,"pointermove",this.handlePointerMove),rZ(window,"pointerup",this.handlePointerUp),rZ(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),t7.update(this.updatePoint)}}function o9(e,t){return t?{point:t(e.point)}:e}function ae(e,t){return{x:e.x-t.x,y:e.y-t.y}}function at({point:e},t){return{point:e,delta:ae(e,an(t)),offset:ae(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=an(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>oo(.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 an(e){return e[e.length-1]}function ar(e){return e.max-e.min}function ai(e,t=0,n=.01){return o8(e,t)({translate:0,scale:1,origin:0,originPoint:0}),am=()=>({x:ap(),y:ap()}),av=()=>({min:0,max:0}),ag=()=>({x:av(),y:av()});function ay(e){return[e("x"),e("y")]}function ax({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ab(e){return void 0===e||1===e}function aw({scale:e,scaleX:t,scaleY:n}){return!ab(e)||!ab(t)||!ab(n)}function aE(e){return aw(e)||aj(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aj(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function ak(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function a_(e,t=0,n=1,r,i){e.min=ak(e.min,t,n,r,i),e.max=ak(e.max,t,n,r,i)}function aS(e,{x:t,y:n}){a_(e.x,t.translate,t.scale,t.originPoint),a_(e.y,n.translate,n.scale,n.originPoint)}function aO(e,t){e.min=e.min+t,e.max=e.max+t}function aC(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=id(e.min,e.max,o);a_(e,t[n],t[r],a,t.scale)}let aM=["x","scaleX","originX"],aA=["y","scaleY","originY"];function aP(e,t){aC(e.x,t,aM),aC(e.y,t,aA)}function aT(e,t){return ax(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 aN=new WeakMap;class aR{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=ag(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new o7(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(rN(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=rq(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),ay(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(n1.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=ar(i);r=e*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(E$.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(E$.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aD(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?id(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&&nE(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ac(e.x,n,i),y:ac(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:af(e,"left","right"),y:af(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ay(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||!nE(t))return!1;let r=t.current;it(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=aT(e,n),{scroll:i}=t;return i&&(aO(r.x,i.x),aO(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:ad((e=i.layout.actual).x,o.x),y:ad(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=ax(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ay(a=>{var l;if(!aD(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)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oR(e,n,0,t)}stopAnimation(){ay(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||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){ay(t=>{let{drag:n}=this.getProps();if(!aD(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]-id(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nE(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};ay(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=ar(e),i=ar(t);return i>r?n=ic(t.min,t.max-r,e.min):r>i&&(n=ic(e.min,e.max-i,t.min)),ir(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(),ay(e=>{if(!aD(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(id(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aN.set(this.visualElement,this);let t=this.visualElement.current,n=rZ(t,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();nE(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();let a=rC(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ay(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(),n(),o(),null==s||s()}}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 aD(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let aL={pan:r5(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=e||t||n||r,a=(0,b.useRef)(null),{transformPagePoint:s}=(0,b.useContext)(nx),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,b.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),rB(i,"pointerdown",o&&function(e){a.current=new o7(e,l,{transformPagePoint:s})}),np(()=>a.current&&a.current.end())}),drag:r5(function(e){let{dragControls:t,visualElement:n}=e,r=nl(()=>new aR(n));(0,b.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,b.useEffect)(()=>r.addListeners(),[r])})};function aF(e){return"string"==typeof e&&e.startsWith("var(--")}let aV=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function az(e,t,n=1){it(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=aV.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():aF(i)?az(i,t,n+1):i}let aI=new Set(["width","height","top","left","right","bottom","x","y"]),aZ=e=>aI.has(e),aB=e=>Object.keys(e).some(aZ),aH=(e,t)=>{e.set(t,!1),e.set(t)},aU=e=>e===n6||e===n2;(EH=EY||(EY={})).width="width",EH.height="height",EH.left="left",EH.right="right",EH.top="top",EH.bottom="bottom";let aW=(e,t)=>parseFloat(e.split(", ")[t]),aq=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return aW(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?aW(t[1],e):0}},a$=new Set(["x","y","z"]),aY=nz.filter(e=>!a$.has(e)),aG={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:aq(4,13),y:aq(5,14)},aK=(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]=aG[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);aH(r,s[n]),e[n]=aG[n](l,o)}),e},aX=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(aZ),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=oW(c),f=t[i];if(rw(f)){let e=f.length,t=null===f[0]?1:0;d=oW(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],aH(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=aK(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),ni&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},aQ=(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(!aF(t))return;let n=az(t,r);n&&e.set(n)}),t){let e=t[i];if(!aF(e))continue;let o=az(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,aB(i)?aX(e,i,n,o):{target:i,transitionEnd:o}},aJ={current:null},a0={current:!1},a1=Object.keys(nA),a2=a1.length,a4=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class a3{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=()=>t8.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=nS(t),this.isVariantNode=nO(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]&&nB(t)&&(t.set(o[e],!1),oG(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&nB(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)),a0.current||function(){if(a0.current=!0,ni){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>aJ.current=e.matches;e.addListener(t),t()}else aJ.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||aJ.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(),t7.update(this.notifyUpdate),t7.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&&t8.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"!==tX&&n&&t&&it(!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):ag()}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=oB(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=rb(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||nB(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 oz),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let a5=["initial",...oJ],a6=a5.length;class a8 extends a3{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;let n=t[e]||t.default||t;return n.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;snF(e)?new a9(t,{enableHardwareAcceleration:!1}):new a7(t,{enableHardwareAcceleration:!0});function st(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sn={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!n2.test(e))return e;e=parseFloat(e)}let n=st(e,t.target.x),r=st(e,t.target.y);return`${n}% ${r}%`}},sr="_$css",si={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(aV,e=>(o.push(e),sr)));let a=iR.parse(e);if(a.length>5)return r;let s=iR.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=id(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(sr,()=>{let t=o[e];return e++,t})}return f}};class so extends b.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(nV,sa),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()})),nP.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()||t8.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 sa={borderRadius:{...sn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sn,borderTopRightRadius:sn,borderBottomLeftRadius:sn,borderBottomRightRadius:sn,boxShadow:si},ss=["TopLeft","TopRight","BottomLeft","BottomRight"],sl=ss.length,su=e=>"string"==typeof e?parseFloat(e):e,sc=e=>"number"==typeof e||n2.test(e);function sd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sf=sp(0,.5,iJ),sh=sp(.5,.95,iY);function sp(e,t,n){return r=>rt?1:n(ic(e,t,r))}function sm(e,t){e.min=t.min,e.max=t.max}function sv(e,t){sm(e.x,t.x),sm(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 sy(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(n1.test(t)){t=parseFloat(t);let e=id(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=id(o.min,o.max,r);e===o&&(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,o,a)}let sx=["x","scaleX","originX"],sb=["y","scaleY","originY"];function sw(e,t,n,r){sy(e.x,t,sx,null==n?void 0:n.x,null==r?void 0:r.x),sy(e.y,t,sb,null==n?void 0:n.y,null==r?void 0:r.y)}function sE(e){return 0===e.translate&&1===e.scale}function sj(e){return sE(e.x)&&sE(e.y)}function sk(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 s_(e){return ar(e.x)/ar(e.y)}class sS{constructor(){this.members=[]}add(e){oF(this.members,e),e.scheduleRender()}remove(e){if(oV(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 sO(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 sC=(e,t)=>e.depth-t.depth;class sM{constructor(){this.children=[],this.isDirty=!1}add(e){oF(this.children,e),this.isDirty=!0}remove(e){oV(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sC),this.isDirty=!1,this.children.forEach(e)}}let sA=["","X","Y","Z"];function sP({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(sV),this.nodes.forEach(sz)},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=oM(r,250),nP.hasAnimatedSinceResize&&(nP.hasAnimatedSinceResize=!1,this.nodes.forEach(sF))})}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:sW,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sk(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={...oN(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sF(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,t7.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(sI))}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));sY(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(sU));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;sB(a.x,e.x,f),sB(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)&&(au(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,sH(r.x,d.x,s.x,f),sH(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=id(0,null!==(a=n.opacity)&&void 0!==a?a:1,sf(r)),e.opacityExit=id(null!==(s=t.opacity)&&void 0!==s?s:1,0,sh(r))):o&&(e.opacity=id(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{nP.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=nB(e)?e:oB(e);return oR("",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&&sG(this.options.animationType,this.layout.actual,r.actual)){n=this.target||ag();let t=ar(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=ar(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sv(t,n),aP(t,i),aa(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new sS);let o=this.sharedNodes.get(e);o.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(sD),this.root.sharedNodes.clear()}}}function sT(e){e.updateLayout()}function sN(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?ay(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=ar(n);n.min=t[e].min,n.max=n.min+r}):sG(r,i.layout,t)&&ay(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=ar(t[e]);n.max=n.min+r});let o=am();aa(o,t,i.layout);let a=am();i.isShared?aa(a,e.applyTransform(n,!0),i.measured):aa(a,t,i.layout);let s=!sj(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=ag();au(n,i.layout,e.layout);let o=ag();au(o,t,r.actual),sk(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 sR(e){e.clearSnapshot()}function sD(e){e.clearMeasurements()}function sL(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sF(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function sV(e){e.resolveTargetDelta()}function sz(e){e.calcProjection()}function sI(e){e.resetRotation()}function sZ(e){e.removeLeadSnapshot()}function sB(e,t,n){e.translate=id(t.translate,0,n),e.scale=id(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sH(e,t,n,r){e.min=id(t.min,n.min,r),e.max=id(t.max,n.max,r)}function sU(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sW={duration:.45,ease:[.4,0,.1,1]};function sq(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,i=r.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s$(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function sY(e){s$(e.x),s$(e.y)}function sG(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return o8(e,t)<=n}(s_(t),s_(n),.2)}let sK=sP({attachResizeListener:(e,t)=>rC(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sX={current:void 0},sQ=sP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sX.current){let e=new sK(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),sX.current=e}return sX.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),sJ={...o4,...r6,...aL,measureLayout:function(e){let[t,n]=r8(),r=(0,b.useContext)(nh);return b.createElement(so,{...e,layoutGroup:r,switchLayoutGroup:(0,b.useContext)(nR),isPresent:t,safeToRemove:n})}},s0=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?nA.projectionNodeConstructor=e[t]:nA[t].Component=e[t]}(e);let a=(0,b.forwardRef)(function(a,s){var l;let u={...(0,b.useContext)(nx),...a,layoutId:function({layoutId:e}){let t=(0,b.useContext)(nh).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(nS(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nj(t)?t:void 0,animate:nj(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,b.useContext)(nb));return(0,b.useMemo)(()=>({initial:t,animate:n}),[nC(t),nC(n)])}(a),h=c?void 0:nl(()=>{if(nP.hasEverUpdated)return nT++}),p=i(a,c);if(!c&&ni){f.visualElement=function(e,t,n,r){let i=(0,b.useContext)(nb).visualElement,o=(0,b.useContext)(nw),a=(0,b.useContext)(ns),s=(0,b.useContext)(nx).reducedMotion,l=(0,b.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 no(()=>{u&&u.render()}),(0,b.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),no(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,b.useContext)(nw).strict,i=(0,b.useContext)(nR);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||nA.projectionNodeConstructor,i))}return b.createElement(nN,{visualElement:f.visualElement,props:u},d,b.createElement(nb.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,b.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):nE(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[nD]=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){let o=nF(e)?rS:rO;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=nF(t)?rh:ri,l=s(n,o,a),u=function(e,t,n){let r={};for(let i in e)(rs(i)||!0===n&&ra(i)||!t&&!ra(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c={...u,...l,ref:i};return r&&(c["data-projection-id"]=r),(0,b.createElement)(t,c)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,sJ,se,sQ));function s1(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,b.useState)(!1),o=(0,b.useMemo)(()=>n?t:r,[n,r,t]),a=(0,b.useCallback)(e=>{n?n(e):i(e)},[n]);return{open:o,onOpenChange:a}}var s2=n(35957),s4=n.n(s2),s3=n(276),s5=n.n(s3);let s6=(0,ea.cx)(s4().variable,s5().variable),s8={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 s7(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=s1({open:i,onOpenChange:o});return(0,x.jsxs)(tH,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,x.jsx)(tN,{asChild:!0,children:t}),(0,x.jsx)(ny,{children:n&&u?(0,x.jsx)(tU,{forceMount:!0,children:(0,x.jsx)(tV,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,x.jsx)(s0.div,{variants:s8,initial:"init",animate:"show",exit:"exit",className:(0,ea.cx)(s6,"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,x.jsx)("div",{className:(0,ea.cx)("py-1 px-2","max-w-xs","overflow-hidden",tY()),children:(0,x.jsx)(t$,{size:"12",children:n})})})})}):null})]})}let s9=(0,ea.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"}}),le=b.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,x.jsx)(s7,{content:u,align:c,side:d,children:(0,x.jsx)("button",{ref:t,type:h,disabled:a,className:s9({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,x.jsx)("button",{ref:t,disabled:a,type:h,className:s9({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lt=n(41775);(0,ea.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let ln=(0,ea.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lr=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{...r,className:ln({className:n}),ref:t})});var li=n(86029);let lo="Avatar",[la,ls]=(0,j.b)(lo),[ll,lu]=la(lo),lc=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,b.useState)("idle");return(0,b.createElement)(ll,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,b.createElement)(M.WV.span,(0,E.Z)({},r,{ref:t})))}),ld=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=lu("AvatarImage",n),s=function(e){let[t,n]=(0,b.useState)("idle");return(0,b.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,li.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,A.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,b.createElement)(M.WV.img,(0,E.Z)({},o,{ref:t,src:r})):null}),lf=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=lu("AvatarFallback",n),[a,s]=(0,b.useState)(void 0===r);return(0,b.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,b.createElement)(M.WV.span,(0,E.Z)({},i,{ref:t})):null}),lh=(0,ea.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"}}),lp=(0,ea.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lm=b.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,x.jsx)("div",{className:(0,ea.cx)("relative h-fit w-fit",c),children:(0,x.jsxs)(lc,{...d,ref:t,className:lh({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,x.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,x.jsx)(ld,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,x.jsx)(lf,{className:lp({size:o}),children:i})]})})}),lv=(0,ea.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{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"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}}),lg=b.forwardRef((e,t)=>{let{variant:n,interactive:r,rounded:i,className:o,...a}=e;return(0,x.jsx)("div",{...a,className:lv({variant:n,interactive:r,rounded:i,className:o}),ref:t})}),ly=b.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,x.jsx)("pre",{children:(0,x.jsx)("code",{className:(0,ea.cx)(tW({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})})}),lx=(0,ea.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"}}),lb=b.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,x.jsx)("code",{...i,className:lx({color:n,className:r}),ref:t})}),lw=(0,ea.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"]),lE=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:lw({className:n}),...r})});(0,ea.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,ea.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"}}),lk=b.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,x.jsx)("div",{ref:t,...o,className:lj({size:i,pad:r,className:n})})});var l_=n(72331);let lS=(0,b.createContext)(void 0);function lO(e){let t=(0,b.useContext)(lS);return e||t||"ltr"}let lC="ScrollArea",[lM,lA]=(0,j.b)(lC),[lP,lT]=lM(lC),lN=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,b.useState)(null),[u,c]=(0,b.useState)(null),[d,f]=(0,b.useState)(null),[h,p]=(0,b.useState)(null),[m,v]=(0,b.useState)(null),[g,y]=(0,b.useState)(0),[x,w]=(0,b.useState)(0),[j,_]=(0,b.useState)(!1),[S,O]=(0,b.useState)(!1),C=(0,k.e)(t,e=>l(e)),A=lO(i);return(0,b.createElement)(lP,{scope:n,type:r,dir:A,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:j,onScrollbarXEnabledChange:_,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:S,onScrollbarYEnabledChange:O,onCornerWidthChange:y,onCornerHeightChange:w},(0,b.createElement)(M.WV.div,(0,E.Z)({dir:A},a,{ref:C,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})))}),lR=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=lT("ScrollAreaViewport",n),a=(0,b.useRef)(null),s=(0,k.e)(t,a,o.onViewportChange);return(0,b.createElement)(b.Fragment,null,(0,b.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,b.createElement)(M.WV.div,(0,E.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,b.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),lD="ScrollAreaScrollbar",lL=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lT(lD,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,b.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,b.createElement)(lF,(0,E.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,b.createElement)(lV,(0,E.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,b.createElement)(lz,(0,E.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,b.createElement)(lI,(0,E.Z)({},r,{ref:t})):null}),lF=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lT(lD,e.__scopeScrollArea),[o,a]=(0,b.useState)(!1);return(0,b.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,b.createElement)(P.z,{present:n||o},(0,b.createElement)(lz,(0,E.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),lV=(0,b.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=lT(lD,e.__scopeScrollArea),a="horizontal"===e.orientation,s=l3(()=>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,b.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,b.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,b.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t],i=n!==r;i&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,b.createElement)(P.z,{present:r||"hidden"!==l},(0,b.createElement)(lI,(0,E.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,O.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,O.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),lz=(0,b.forwardRef)((e,t)=>{let n=lT(lD,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,b.useState)(!1),s="horizontal"===e.orientation,l=l3(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=lT(lD,e.__scopeScrollArea),o=(0,b.useRef)(null),a=(0,b.useRef)(0),[s,l]=(0,b.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=lJ(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=l0(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport,u=l2([a,s],"ltr"===r?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===n?(0,b.createElement)(lZ,(0,E.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=l1(e,s,i.dir);o.current.style.transform=`translate3d(${t}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,b.createElement)(lB,(0,E.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=l1(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),lZ=(0,b.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lT(lD,e.__scopeScrollArea),[a,s]=(0,b.useState)(),l=(0,b.useRef)(null),u=(0,k.e)(t,l,o.onScrollbarXChange);return(0,b.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,b.createElement)(lW,(0,E.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":l0(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:lQ(a.paddingLeft),paddingEnd:lQ(a.paddingRight)}})}}))}),lB=(0,b.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lT(lD,e.__scopeScrollArea),[a,s]=(0,b.useState)(),l=(0,b.useRef)(null),u=(0,k.e)(t,l,o.onScrollbarYChange);return(0,b.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,b.createElement)(lW,(0,E.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":l0(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:lQ(a.paddingTop),paddingEnd:lQ(a.paddingBottom)}})}}))}),[lH,lU]=lM(lD),lW=(0,b.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=lT(lD,n),[p,m]=(0,b.useState)(null),v=(0,k.e)(t,e=>m(e)),g=(0,b.useRef)(null),y=(0,b.useRef)(""),x=h.viewport,w=r.content-r.viewport,j=(0,li.W)(c),_=(0,li.W)(l),S=l3(d,10);function C(e){if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return(0,b.useEffect)(()=>{let e=e=>{let t=e.target,n=null==p?void 0:p.contains(t);n&&j(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[x,p,w,j]),(0,b.useEffect)(_,[r,_]),l5(p,S),l5(h.content,S),(0,b.createElement)(lH,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,li.W)(o),onThumbPointerUp:(0,li.W)(a),onThumbPositionChange:_,onThumbPointerDown:(0,li.W)(s)},(0,b.createElement)(M.WV.div,(0,E.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,O.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C(e)}}),onPointerMove:(0,O.M)(e.onPointerMove,C),onPointerUp:(0,O.M)(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),lq="ScrollAreaThumb",l$=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lU(lq,e.__scopeScrollArea);return(0,b.createElement)(P.z,{present:n||i.hasThumb},(0,b.createElement)(lY,(0,E.Z)({ref:t},r)))}),lY=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=lT(lq,n),a=lU(lq,n),{onThumbPositionChange:s}=a,l=(0,k.e)(t,e=>a.onThumbChange(e)),u=(0,b.useRef)(),c=l3(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,b.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=l4(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,b.createElement)(M.WV.div,(0,E.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,O.M)(e.onPointerDownCapture,e=>{let t=e.target,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;a.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,O.M)(e.onPointerUp,a.onThumbPointerUp)}))}),lG="ScrollAreaCorner",lK=(0,b.forwardRef)((e,t)=>{let n=lT(lG,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY),i="scroll"!==n.type&&r;return i?(0,b.createElement)(lX,(0,E.Z)({},e,{ref:t})):null}),lX=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=lT(lG,n),[o,a]=(0,b.useState)(0),[s,l]=(0,b.useState)(0);return l5(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),l5(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,b.createElement)(M.WV.div,(0,E.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 lQ(e){return e?parseInt(e,10):0}function lJ(e,t){let n=e/t;return isNaN(n)?0:n}function l0(e){let t=lJ(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function l1(e,t,n="ltr"){let r=l0(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===n?[0,a]:[-1*a,0],l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,s),u=l2([0,a],[0,o-r]);return u(l)}function l2(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 l4=(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 l3(e,t){let n=(0,li.W)(e),r=(0,b.useRef)(0);return(0,b.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,b.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function l5(e,t){let n=(0,li.W)(t);(0,A.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 l6=b.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,x.jsxs)(lN,{className:(0,ea.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,x.jsx)(lR,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,x.jsx)(lL,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,x.jsx)(l$,{className:(0,ea.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,x.jsx)(lL,{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,x.jsx)(l$,{className:(0,ea.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,x.jsx)(lK,{className:"bg-black/70"})]})}),l8=(0,ea.j)([s6,"z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),l7={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},l9=b.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}=s1({open:i,onOpenChange:o});return(0,x.jsxs)(l_.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,x.jsx)(l_.xz,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:v?(0,x.jsx)(l_.h_,{forceMount:!0,children:(0,x.jsx)(l_.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,x.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,x.jsx)(l_.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,x.jsx)(s0.div,{variants:l7,initial:"init",animate:"show",exit:"exit",className:l8(u),children:(0,x.jsx)(un,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function ue(e){let{className:t}=e;return(0,x.jsx)(l_.x8,{asChild:!0,type:"button",children:(0,x.jsx)("div",{className:(0,ea.cx)("appearance-none",t),children:(0,x.jsx)(le,{size:"small",variant:"ghost",type:"button",children:(0,x.jsx)(lt.QN4,{})})})})}let ut=(0,ea.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[tY()],none:""}},defaultVariants:{variant:"default"}}),un=b.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,b.useState)(0),r=(0,b.useRef)(null);return(0,b.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,b.useState)(!1);return(0,b.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,x.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:ut(s),children:[i&&(0,x.jsx)(l_.Dx,{className:ur({showSeparator:h}),children:i}),(0,x.jsx)(l6,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,x.jsxs)("div",{ref:d,className:(0,ea.cx)("p-4",u),children:[o&&(0,x.jsx)(l_.dk,{className:ui(),children:o}),n]})}),a&&(0,x.jsx)(uo,{separator:h,children:a}),(0,x.jsx)(ue,{className:l||"absolute top-3.5 right-2"})]})}),ur=(0,ea.j)(["pt-4 pb-2 px-4 w-full",tW({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),ui=(0,ea.j)([tW({color:"subtle",size:"14"}),"py-2"]);function uo(e){let{children:t,separator:n=!0}=e;return(0,x.jsx)("div",{className:(0,ea.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var ua=n(55070),us=n(77334);let ul="rovingFocusGroup.onEntryFocus",uu={bubbles:!1,cancelable:!0},uc="RovingFocusGroup",[ud,uf,uh]=S(uc),[up,um]=(0,j.b)(uc,[uh]),[uv,ug]=up(uc),uy=(0,b.forwardRef)((e,t)=>(0,b.createElement)(ud.Provider,{scope:e.__scopeRovingFocusGroup},(0,b.createElement)(ud.Slot,{scope:e.__scopeRovingFocusGroup},(0,b.createElement)(ux,(0,E.Z)({},e,{ref:t}))))),ux=(0,b.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,b.useRef)(null),f=(0,k.e)(t,d),h=lO(o),[p=null,m]=(0,C.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,b.useState)(!1),y=(0,li.W)(u),x=uf(n),w=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ul,y),()=>e.removeEventListener(ul,y)},[y]),(0,b.createElement)(uv,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,b.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,b.useCallback)(()=>g(!0),[])},(0,b.createElement)(M.WV.div,(0,E.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,O.M)(e.onMouseDown,()=>{w.current=!0}),onFocus:(0,O.M)(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ul,uu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===p),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);uE(i)}}w.current=!1}),onBlur:(0,O.M)(e.onBlur,()=>g(!1))})))}),ub=(0,b.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,T.M)(),s=ug("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=uf(n);return(0,b.createElement)(ud.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,b.createElement)(M.WV.span,(0,E.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,O.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,O.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,O.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 uw[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>uE(o))}})})))}),uw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uE(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uj=n(49732),uk=n(88965);let u_=["Enter"," "],uS=["ArrowUp","PageDown","End"],uO=["ArrowDown","PageUp","Home",...uS],uC={ltr:[...u_,"ArrowRight"],rtl:[...u_,"ArrowLeft"]},uM={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uA="Menu",[uP,uT,uN]=S(uA),[uR,uD]=(0,j.b)(uA,[uN,ti,um]),uL=ti(),uF=um(),[uV,uz]=uR(uA),[uI,uZ]=uR(uA),uB=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=uL(n);return(0,b.createElement)(ts,(0,E.Z)({},i,r,{ref:t}))}),uH="MenuPortal",[uU,uW]=uR(uH,{forceMount:void 0}),uq="MenuContent",[u$,uY]=uR(uq),uG=(0,b.forwardRef)((e,t)=>{let n=uW(uq,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uz(uq,e.__scopeMenu),a=uZ(uq,e.__scopeMenu);return(0,b.createElement)(uP.Provider,{scope:e.__scopeMenu},(0,b.createElement)(P.z,{present:r||o.open},(0,b.createElement)(uP.Slot,{scope:e.__scopeMenu},a.modal?(0,b.createElement)(uK,(0,E.Z)({},i,{ref:t})):(0,b.createElement)(uX,(0,E.Z)({},i,{ref:t})))))}),uK=(0,b.forwardRef)((e,t)=>{let n=uz(uq,e.__scopeMenu),r=(0,b.useRef)(null),i=(0,k.e)(t,r);return(0,b.useEffect)(()=>{let e=r.current;if(e)return(0,uj.R)(e)},[]),(0,b.createElement)(uQ,(0,E.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,O.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),uX=(0,b.forwardRef)((e,t)=>{let n=uz(uq,e.__scopeMenu);return(0,b.createElement)(uQ,(0,E.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),uQ=(0,b.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=uz(uq,n),v=uZ(uq,n),g=uL(n),y=uF(n),x=uT(n),[w,j]=(0,b.useState)(null),S=(0,b.useRef)(null),C=(0,k.e)(t,S,m.onContentChange),M=(0,b.useRef)(0),A=(0,b.useRef)(""),P=(0,b.useRef)(0),T=(0,b.useRef)(null),N=(0,b.useRef)("right"),R=(0,b.useRef)(0),D=h?uk.Z:b.Fragment,L=h?{as:_.g7,allowPinchZoom:!0}:void 0,F=e=>{var t,n;let r=A.current+e,i=x().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=i.map(e=>e.textValue),l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==n));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(s,r,a),u=null===(n=i.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){A.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};(0,b.useEffect)(()=>()=>window.clearTimeout(M.current),[]),(0,ua.EW)();let V=(0,b.useCallback)(e=>{var t,n;let r=N.current===(null===(t=T.current)||void 0===t?void 0:t.side);return r&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return 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;c&&(i=!i)}return i}(n,t)}(e,null===(n=T.current)||void 0===n?void 0:n.area)},[]);return(0,b.createElement)(u$,{scope:n,searchRef:A,onItemEnter:(0,b.useCallback)(e=>{V(e)&&e.preventDefault()},[V]),onItemLeave:(0,b.useCallback)(e=>{var t;V(e)||(null===(t=S.current)||void 0===t||t.focus(),j(null))},[V]),onTriggerLeave:(0,b.useCallback)(e=>{V(e)&&e.preventDefault()},[V]),pointerGraceTimerRef:P,onPointerGraceIntentChange:(0,b.useCallback)(e=>{T.current=e},[])},(0,b.createElement)(D,L,(0,b.createElement)(us.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,O.M)(o,e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,b.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,b.createElement)(uy,(0,E.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:j,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,b.createElement)(th,(0,E.Z)({role:"menu","aria-orientation":"vertical","data-state":cr(m.open),dir:v.dir},g,p,{ref:C,style:{outline:"none",...p.style},onKeyDown:(0,O.M)(p.onKeyDown,e=>{let t=e.target,n=t.closest('[role="menu"]')===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&i&&F(e.key));let o=S.current;if(e.target!==o||!uO.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);uS.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,O.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),A.current="")}),onPointerMove:(0,O.M)(e.onPointerMove,co(e=>{let t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>R.current?"right":"left";N.current=t,R.current=e.clientX}}))})))))))}),uJ=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.createElement)(M.WV.div,(0,E.Z)({role:"group"},r,{ref:t}))}),u0=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.createElement)(M.WV.div,(0,E.Z)({},r,{ref:t}))}),u1="MenuItem",u2="menu.itemSelect",u4=(0,b.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,b.useRef)(null),a=uZ(u1,e.__scopeMenu),s=uY(u1,e.__scopeMenu),l=(0,k.e)(t,o),u=(0,b.useRef)(!1);return(0,b.createElement)(u3,(0,E.Z)({},i,{ref:l,disabled:n,onClick:(0,O.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(u2,{bubbles:!0,cancelable:!0});e.addEventListener(u2,e=>null==r?void 0:r(e),{once:!0}),(0,M.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,O.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,O.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&u_.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),u3=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=uY(u1,n),s=uF(n),l=(0,b.useRef)(null),u=(0,k.e)(t,l),[c,d]=(0,b.useState)(!1),[f,h]=(0,b.useState)("");return(0,b.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,b.createElement)(uP.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,b.createElement)(ub,(0,E.Z)({asChild:!0},s,{focusable:!r}),(0,b.createElement)(M.WV.div,(0,E.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,O.M)(e.onPointerMove,co(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:(0,O.M)(e.onPointerLeave,co(e=>a.onItemLeave(e))),onFocus:(0,O.M)(e.onFocus,()=>d(!0)),onBlur:(0,O.M)(e.onBlur,()=>d(!1))}))))}),[u5,u6]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,b.createElement)(u7,{scope:e.__scopeMenu,checked:n},(0,b.createElement)(u4,(0,E.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":ci(n),onSelect:(0,O.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},uR("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),u8=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,li.W)(r);return(0,b.createElement)(u5,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,b.createElement)(uJ,(0,E.Z)({},i,{ref:t})))},"MenuItemIndicator"),[u7,u9]=uR(u8,{checked:!1}),[ce,ct]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=u9(u8,n);return(0,b.createElement)(P.z,{present:r||o.checked},(0,b.createElement)(M.WV.span,(0,E.Z)({},i,{ref:t,"data-state":ci(o.checked)})))},uR("MenuSub")),cn="MenuSubTrigger";function cr(e){return e?"open":"closed"}function ci(e){return e?"checked":"unchecked"}function co(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=uz(cn,e.__scopeMenu),r=uZ(cn,e.__scopeMenu),i=ct(cn,e.__scopeMenu),o=uY(cn,e.__scopeMenu),a=(0,b.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,b.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,b.useEffect)(()=>c,[c]),(0,b.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,b.createElement)(uB,(0,E.Z)({asChild:!0},u),(0,b.createElement)(u3,(0,E.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cr(n.open)},e,{ref:(0,k.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,O.M)(e.onPointerMove,co(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,O.M)(e.onPointerLeave,co(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,O.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&uC[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=uW(uq,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uz(uq,e.__scopeMenu),a=uZ(uq,e.__scopeMenu),s=ct("MenuSubContent",e.__scopeMenu),l=(0,b.useRef)(null),u=(0,k.e)(t,l);return(0,b.createElement)(uP.Provider,{scope:e.__scopeMenu},(0,b.createElement)(P.z,{present:r||o.open},(0,b.createElement)(uP.Slot,{scope:e.__scopeMenu},(0,b.createElement)(uQ,(0,E.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,O.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,O.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,O.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uM[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 ca=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=uL(t),[l,u]=(0,b.useState)(null),c=(0,b.useRef)(!1),d=(0,li.W)(o),f=lO(i);return(0,b.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,b.createElement)(tb,s,(0,b.createElement)(uV,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,b.createElement)(uI,{scope:t,onClose:(0,b.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cs=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=uz(uH,t);return(0,b.createElement)(uU,{scope:t,forceMount:n},(0,b.createElement)(P.z,{present:n||o.open},(0,b.createElement)(tw.h,{asChild:!0,container:i},r)))},cl="DropdownMenu",[cu,cc]=(0,j.b)(cl,[uD]),cd=uD(),[cf,ch]=cu(cl),cp=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=ch("DropdownMenuTrigger",n),a=cd(n);return(0,b.createElement)(uB,(0,E.Z)({asChild:!0},a),(0,b.createElement)(M.WV.button,(0,E.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,k.F)(t,o.triggerRef),onPointerDown:(0,O.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,O.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cm=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ch("DropdownMenuContent",n),o=cd(n),a=(0,b.useRef)(!1);return(0,b.createElement)(uG,(0,E.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,O.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,O.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)"}}))}),cv=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cd(n);return(0,b.createElement)(u0,(0,E.Z)({},i,r,{ref:t}))}),cg=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cd(n);return(0,b.createElement)(u4,(0,E.Z)({},i,r,{ref:t}))}),cy=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=cd(t),u=(0,b.useRef)(null),[c=!1,d]=(0,C.T)({prop:i,defaultProp:o,onChange:a});return(0,b.createElement)(cf,{scope:t,triggerId:(0,T.M)(),triggerRef:u,contentId:(0,T.M)(),open:c,onOpenChange:d,onOpenToggle:(0,b.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,b.createElement)(ca,(0,E.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cx=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cd(t);return(0,b.createElement)(cs,(0,E.Z)({},r,n))},cb="horizontal",cw=["horizontal","vertical"],cE=(0,b.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cb,...i}=e,o=cj(r)?r:cb;return(0,b.createElement)(M.WV.div,(0,E.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function cj(e){return cw.includes(e)}cE.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: + `),()=>{document.head.removeChild(l)}},[t]),b.createElement(nu,{isPresent:t,childRef:r,sizeRef:i},b.cloneElement(e,{ref:r}))}let nd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=nl(nf),l=(0,b.useId)(),u=(0,b.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,b.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),b.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=b.createElement(nc,{isPresent:n},e)),b.createElement(ns.Provider,{value:u},e)};function nf(){return new Map}let nh=(0,b.createContext)({});function np(e){return(0,b.useEffect)(()=>()=>e(),[])}let nm=new Set;function nv(e,t,n){e||nm.has(t)||(console.warn(t),n&&console.warn(n),nm.add(t))}let ng=e=>e.key||"",ny=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nv(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=na(),[t,n]=(0,b.useState)(0),r=(0,b.useCallback)(()=>{e.current&&n(t+1)},[t]),i=(0,b.useCallback)(()=>t8.postRender(r),[r]);return[i,t]}(),l=(0,b.useContext)(nh).forceRender;l&&(s=l);let u=na(),c=function(e){let t=[];return b.Children.forEach(e,e=>{(0,b.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,b.useRef)(d),p=(0,b.useRef)(new Map).current,m=(0,b.useRef)(!0);if(no(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=ng(e);t.set(n,e)})}(c,p),h.current=d}),np(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return b.createElement(b.Fragment,null,d.map(e=>b.createElement(nd,{key:ng(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(ng),g=c.map(ng),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,b.createElement(nd,{key:ng(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:b.createElement(nd,{key:ng(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==tK&&"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.'),b.createElement(b.Fragment,null,f.size?d:d.map(e=>(0,b.cloneElement)(e)))},nx=(0,b.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nb=(0,b.createContext)({}),nw=(0,b.createContext)({strict:!1});function nE(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nj(e){return"string"==typeof e||Array.isArray(e)}function nk(e){return"object"==typeof e&&"function"==typeof e.start}let nS=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function n_(e){return nk(e.animate)||nS.some(t=>nj(e[t]))}function nO(e){return!!(n_(e)||e.variants)}function nC(e){return Array.isArray(e)?e.join(" "):e}let nM=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nA={measureLayout:nM(["layout","layoutId","drag"]),animation:nM(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nM(["exit"]),drag:nM(["drag","dragControls"]),focus:nM(["whileFocus"]),hover:nM(["whileHover","onHoverStart","onHoverEnd"]),tap:nM(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nM(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nM(["whileInView","onViewportEnter","onViewportLeave"])},nT={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nP=1;class nN extends b.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let nR=(0,b.createContext)({}),nD=Symbol.for("motionComponentSymbol"),nL=["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 nF(e){if("string"!=typeof e||e.includes("-"));else if(nL.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let nV={},nz=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nI=new Set(nz);function nZ(e,{layout:t,layoutId:n}){return nI.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!nV[e]||"opacity"===e)}let nB=e=>!!(null==e?void 0:e.getVelocity),nH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nU=(e,t)=>nz.indexOf(e)-nz.indexOf(t);function nW(e){return e.startsWith("--")}let nq=(e,t)=>t&&"number"==typeof e?t.transform(e):e,n$=(e,t)=>n=>Math.max(Math.min(n,t),e),nY=e=>e%1?Number(e.toFixed(5)):e,nG=/(-)?([\d]*\.?[\d])+/g,nX=/(#[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,nK=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function nQ(e){return"string"==typeof e}let nJ=e=>({test:t=>nQ(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n0=nJ("deg"),n1=nJ("%"),n2=nJ("px"),n4=nJ("vh"),n3=nJ("vw"),n5=Object.assign(Object.assign({},n1),{parse:e=>n1.parse(e)/100,transform:e=>n1.transform(100*e)}),n6={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},n8=Object.assign(Object.assign({},n6),{transform:n$(0,1)}),n7=Object.assign(Object.assign({},n6),{default:1}),n9={...n6,transform:Math.round},re={borderWidth:n2,borderTopWidth:n2,borderRightWidth:n2,borderBottomWidth:n2,borderLeftWidth:n2,borderRadius:n2,radius:n2,borderTopLeftRadius:n2,borderTopRightRadius:n2,borderBottomRightRadius:n2,borderBottomLeftRadius:n2,width:n2,maxWidth:n2,height:n2,maxHeight:n2,size:n2,top:n2,right:n2,bottom:n2,left:n2,padding:n2,paddingTop:n2,paddingRight:n2,paddingBottom:n2,paddingLeft:n2,margin:n2,marginTop:n2,marginRight:n2,marginBottom:n2,marginLeft:n2,rotate:n0,rotateX:n0,rotateY:n0,rotateZ:n0,scale:n7,scaleX:n7,scaleY:n7,scaleZ:n7,skew:n0,skewX:n0,skewY:n0,distance:n2,translateX:n2,translateY:n2,translateZ:n2,x:n2,y:n2,z:n2,perspective:n2,transformPerspective:n2,opacity:n8,originX:n5,originY:n5,originZ:n2,zIndex:n9,fillOpacity:n8,strokeOpacity:n8,numOctaves:n9};function rt(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(nW(e)){o[e]=n;continue}let r=re[e],f=nq(n,r);if(nI.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(nU),t))a+=`${nH[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 rn=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rr(e,t,n){for(let r in t)nB(t[r])||nZ(r,n)||(e[r]=t[r])}function ri(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rr(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,b.useMemo)(()=>{let r=rn();return rt(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}let ro=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 ra(e){return ro.has(e)}let rs=e=>!ra(e);try{(EL=require("@emotion/is-prop-valid").default)&&(rs=e=>e.startsWith("on")?!ra(e):EL(e))}catch(e){}function rl(e,t,n){return"string"==typeof e?e:n2.transform(t+n*e)}let ru={offset:"stroke-dashoffset",array:"stroke-dasharray"},rc={offset:"strokeDashoffset",array:"strokeDasharray"};function rd(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rt(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=rl(t,e.x,e.width),i=rl(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?ru:rc;e[o.offset]=n2.transform(-r);let a=n2.transform(t),s=n2.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let rf=()=>({...rn(),attrs:{}});function rh(e,t){let n=(0,b.useMemo)(()=>{let n=rf();return rd(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rr(t,e.style,e),n.style={...t,...n.style}}return n}let rp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rm(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 rv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function rg(e,t,n,r){for(let n in rm(e,t,void 0,r),t.attrs)e.setAttribute(rv.has(n)?n:rp(n),t.attrs[n])}function ry(e){let{style:t}=e,n={};for(let r in t)(nB(t[r])||nZ(r,e))&&(n[r]=t[r]);return n}function rx(e){let t=ry(e);for(let n in e)if(nB(e[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function rb(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 rw=e=>Array.isArray(e),rE=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rj=e=>rw(e)?e[e.length-1]||0:e;function rk(e){let t=nB(e)?e.get():e;return rE(t)?t.toValue():t}let rS=e=>(t,n)=>{let r=(0,b.useContext)(nb),i=(0,b.useContext)(ns),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]=rk(o[e]);let{initial:a,animate:s}=e,l=n_(e),u=nO(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;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!nk(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let n=rb(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]})}return i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():nl(o)},r_={useVisualState:rS({scrapeMotionValuesFromProps:rx,createRenderState:rf,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}}rd(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),rg(t,n)}})},rO={useVisualState:rS({scrapeMotionValuesFromProps:ry,createRenderState:rn})};function rC(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rM(e,t,n,r){(0,b.useEffect)(()=>{let i=e.current;if(n&&i)return rC(i,t,n,r)},[e,t,n,r])}function rA(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function rT(e){let t=!!e.touches;return t}(EF=EB||(EB={})).Animate="animate",EF.Hover="whileHover",EF.Tap="whileTap",EF.Drag="whileDrag",EF.Focus="whileFocus",EF.InView="whileInView",EF.Exit="exit";let rP={pageX:0,pageY:0};function rN(e,t="page"){return{point:rT(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0],r=n||rP;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let rR=(e,t=!1)=>{let n=t=>e(t,rN(t));return t?e=>{let t=e instanceof MouseEvent,r=!t||t&&0===e.button;r&&n(e)}:n},rD=()=>ni&&null===window.onpointerdown,rL=()=>ni&&null===window.ontouchstart,rF=()=>ni&&null===window.onmousedown,rV={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rz={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function rI(e){if(rD());else if(rL())return rz[e];else if(rF())return rV[e];return e}function rZ(e,t,n,r){return rC(e,rI(t),rR(n,"pointerdown"===t),r)}function rB(e,t,n,r){return rM(e,rI(t),n&&rR(n,"pointerdown"===t),r)}function rH(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rU=rH("dragHorizontal"),rW=rH("dragVertical");function rq(e){let t=!1;if("y"===e)t=rW();else if("x"===e)t=rU();else{let e=rU(),n=rW();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function r$(){let e=rq(!0);return!e||(e(),!1)}function rY(e,t,n){return(r,i)=>{!(!rA(r)||r$())&&(e.animationState&&e.animationState.setActive(EB.Hover,t),n&&n(r,i))}}let rG=(e,t)=>!!t&&(e===t||rG(e,t.parentElement)),rX=(e,t)=>n=>t(e(n)),rK=(...e)=>e.reduce(rX),rQ=new WeakMap,rJ=new WeakMap,r0=e=>{let t=rQ.get(e.target);t&&t(e)},r1=e=>{e.forEach(r0)},r2={some:0,all:1};function r4(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,b.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:r2[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;rJ.has(n)||rJ.set(n,{});let r=rJ.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(r1,{root:e,...t})),r[i]}(t);return rQ.set(e,n),r.observe(e),()=>{rQ.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(EB.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])}function r3(e,t,n,{fallback:r=!0}){(0,b.useEffect)(()=>{e&&r&&("production"!==tK&&nv(!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(EB.InView,!0)}))},[e])}let r5=e=>t=>(e(t),null),r6={inView:r5(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,b.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?r3:r4;s(a,o.current,e,i)}),tap:r5(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,b.useRef)(!1),s=(0,b.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(EB.Tap,!1),!r$()}function d(t,r){c()&&(rG(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=rK(rZ(window,"pointerup",d,l),rZ(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(EB.Tap,!0),t&&t(e,n))}rB(i,"pointerdown",o?h:void 0,l),np(u)}),focus:r5(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;rM(t,"focus",e?()=>{n&&n.setActive(EB.Focus,!0)}:void 0),rM(t,"blur",e?()=>{n&&n.setActive(EB.Focus,!1)}:void 0)}),hover:r5(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){rB(r,"pointerenter",e||n?rY(r,!0,e):void 0,{passive:!e}),rB(r,"pointerleave",t||n?rY(r,!1,t):void 0,{passive:!t})})};function r8(){let e=(0,b.useContext)(ns);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,b.useId)();return(0,b.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function r7(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 ie=function(){},it=function(){};let ir=(e,t,n)=>Math.min(Math.max(n,e),t);function ii(e,t){return e*Math.sqrt(1-t*t)}let io=["duration","bounce"],ia=["stiffness","damping","mass"];function is(e,t){return t.some(t=>void 0!==e[t])}function il(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=r9(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(!is(e,ia)&&is(e,io)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;ie(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ir(.05,1,a),e=ir(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e,o=ii(t,a),s=Math.exp(-i);return .001-(r-n)/o*s},o=t=>{let r=t*a,o=r*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ii(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*n+n-s)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},o=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,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=iu,p=iu;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=ii(a,o);h=i=>{let s=Math.exp(-o*a*i);return n-s*((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(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}il.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iu=e=>0,ic=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},id=(e,t,n)=>-n*e+n*t+e,ih=(e,t)=>n=>!!(nQ(n)&&nK.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ip=(e,t,n)=>r=>{if(!nQ(r))return r;let[i,o,a,s]=r.match(nG);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},im=n$(0,255),iv=Object.assign(Object.assign({},n6),{transform:e=>Math.round(im(e))}),ig={test:ih("rgb","red"),parse:ip("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iv.transform(e)+", "+iv.transform(t)+", "+iv.transform(n)+", "+nY(n8.transform(r))+")"},iy={test:ih("#"),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},ix={test:ih("hsl","hue"),parse:ip("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+n1.transform(nY(t))+", "+n1.transform(nY(n))+", "+nY(n8.transform(r))+")"};function ib(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 iw({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=ib(s,r,e+1/3),o=ib(s,r,e),a=ib(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 iE=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ij=[iy,ig,ix],ik=e=>ij.find(t=>t.test(e)),iS=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,i_=(e,t)=>{let n=ik(e),r=ik(t);it(!!n,iS(e)),it(!!r,iS(t));let i=n.parse(e),o=r.parse(t);n===ix&&(i=iw(i),n=ig),r===ix&&(o=iw(o),r=ig);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iE(i[t],o[t],e));return a.alpha=id(i.alpha,o.alpha,e),n.transform(a)}},iO={test:e=>ig.test(e)||iy.test(e)||ix.test(e),parse:e=>ig.test(e)?ig.parse(e):ix.test(e)?ix.parse(e):iy.parse(e),transform:e=>nQ(e)?e:e.hasOwnProperty("red")?ig.transform(e):ix.transform(e)},iC="${c}",iM="${n}";function iA(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(nX);r&&(n=r.length,e=e.replace(nX,iC),t.push(...r.map(iO.parse)));let i=e.match(nG);return i&&(e=e.replace(nG,iM),t.push(...i.map(n6.parse))),{values:t,numColors:n,tokenised:e}}function iT(e){return iA(e).values}function iP(e){let{values:t,numColors:n,tokenised:r}=iA(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,iR={test:function(e){var t,n,r,i;return isNaN(e)&&nQ(e)&&(null!==(n=null===(t=e.match(nG))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(nX))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:iT,createTransformer:iP,getAnimatableNone:function(e){let t=iT(e),n=iP(e);return n(t.map(iN))}},iD=e=>"number"==typeof e;function iL(e,t){return iD(e)?n=>id(e,t,n):iO.test(e)?i_(e,t):iI(e,t)}let iF=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>iL(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]=iL(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function iz(e){let t=iR.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=iR.createTransformer(t),r=iz(e),i=iz(t),o=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return o?rK(iF(r.parsed,i.parsed),n):(ie(!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}`)},iZ=(e,t)=>n=>id(e,t,n);function iB(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;it(o===t.length,"Both input and output ranges must be the same length"),it(!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])?iZ:"string"==typeof r?iO.test(r)?i_:iI:Array.isArray(r)?iF:"object"==typeof r?iV:void 0),a=e.length-1;for(let n=0;nn(ic(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=ic(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(ir(e[0],e[o-1],t)):s}let iH=e=>t=>1-e(1-t),iU=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iW=e=>t=>t*t*((e+1)*t-e),iq=4/11,i$=8/11,iY=e=>e,iG=e=>Math.pow(e,2),iX=iH(iG),iK=iU(iG),iQ=e=>1-Math.sin(Math.acos(e)),iJ=iH(iQ),i0=iU(iJ),i1=iW(1.525),i2=iH(i1),i4=iU(i1),i3=(e=>{let t=iW(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),i5=4356/361,i6=35442/1805,i8=16061/1805,i7=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 iB(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||iK).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 ot={keyframes:oe,spring:il,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 on(e,t,n=0){return e-t-n}let or=e=>{let t=({delta:t})=>e(t);return{start:()=>t8.update(t,!0),stop:()=>t7.update(t)}};function oi(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=or,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=r9(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,x=0,b=g.duration,w=!1,E=!0,j=function(e){if(Array.isArray(e.to))return oe;if(ot[e.type])return ot[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 il;return oe}(g);(null===(i=j.needsInterpolation)||void 0===i?void 0:i.call(j,o,y))&&(r=iB([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===x&&(null!=b||(b=l)),x=o+d:i<=-d)&&(x++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?on(t+-e,t,n):t-(e-t)+n}(l,b,d,E=x%2==0):(l=on(l,b,d),"mirror"===c&&k.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let oo=e=>1e3*e,oa=(e,t)=>1-3*t+3*e,os=(e,t)=>3*t-6*e,ol=e=>3*e,ou=(e,t,n)=>((oa(t,n)*e+os(t,n))*e+ol(t))*e,oc=(e,t,n)=>3*oa(t,n)*e*e+2*os(t,n)*e+ol(t),od={linear:iY,easeIn:iG,easeInOut:iK,easeOut:iX,circIn:iQ,circInOut:i0,circOut:iJ,backIn:i1,backInOut:i4,backOut:i2,anticipate:i3,bounceIn:i9,bounceInOut:e=>e<.5?.5*(1-i7(1-2*e)):.5*i7(2*e-1)+.5,bounceOut:i7},of=e=>{if(Array.isArray(e)){it(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 iY;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=ou(.1*t,e,n);return o=>0===o||1===o?o:ou(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=r+.1*a,l=oc(s,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=oc(t,n,r);if(0===i)break;let o=ou(t,n,r)-e;t-=o/i}return t}(t,s,e,n):0===l?s:function(e,t,n,r,i){let o,a;let s=0;do(o=ou(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?(it(void 0!==od[e],`Invalid easing type '${e}'`),od[e]):e},oh=e=>Array.isArray(e)&&"number"!=typeof e[0],op=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iR.test(t)&&!t.startsWith("url(")),om=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ov=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),og=()=>({type:"keyframes",ease:"linear",duration:.3}),oy=e=>({type:"keyframes",duration:.8,values:e}),ox={x:om,y:om,z:om,rotate:om,rotateX:om,rotateY:om,rotateZ:om,scaleX:ov,scaleY:ov,scale:ov,opacity:og,backgroundColor:og,color:og,default:ov},ob=(e,t)=>({to:t,...(rw(t)?oy:ox[e]||ox.default)(t)}),ow=new Set(["brightness","contrast","saturate","opacity"]);function oE(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(nG)||[];if(!r)return e;let i=n.replace(r,""),o=ow.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let oj=/([a-z-]*)\(.*?\)/g,ok=Object.assign(Object.assign({},iR),{getAnimatableNone:e=>{let t=e.match(oj);return t?t.map(oE).join(" "):e}}),oS={...re,color:iO,backgroundColor:iO,outlineColor:iO,fill:iO,stroke:iO,borderColor:iO,borderTopColor:iO,borderRightColor:iO,borderBottomColor:iO,borderLeftColor:iO,filter:ok,WebkitFilter:ok},o_=e=>oS[e];function oO(e,t){var n;let r=o_(e);return r!==ok&&(r=iR),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let oC={current:!1};function oM(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(t7.read(r),e(o-t))};return t8.read(r,!0),()=>t7.read(r)}let oA=!1;function oT(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oP(e){return"number"==typeof e?0:oO("",e)}function oN(e,t){return e[t]||e.default||e}function oR(e,t,n,r={}){return oC.current&&(r={type:!1}),t.start(i=>{let o,a;let s=function(e,t,n,r,i){let o=oN(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=op(e,n);"none"===a&&s&&"string"==typeof n?a=oO(e,n):oT(a)&&"string"==typeof n?a=oP(n):!Array.isArray(n)&&oT(n)&&"string"==typeof a&&(n=oP(a));let l=op(e,a);return ie(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;r=a,a=e,t=(n=nr().delta)?(e-r)*(1e3/n):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oi({...(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,...ob(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=oo(o.duration)),o.repeatDelay&&(a.repeatDelay=oo(o.repeatDelay)),e&&(a.ease=oh(e)?e.map(of):of(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(ie(!oA,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oA=!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=rj(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),l=function(e,t){var n,r;let i=oN(e,t)||{};return null!==(r=null!==(n=i.delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=()=>o=s();return l?a=oM(u,oo(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oD=e=>/^\-?\d*\.?\d+$/.test(e),oL=e=>/^0[^.\s]+$/.test(e);function oF(e,t){-1===e.indexOf(t)&&e.push(t)}function oV(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class oz{constructor(){this.subscriptions=[]}add(e){return oF(this.subscriptions,e),()=>oV(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 oZ{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oz,this.velocityUpdateSubscribers=new oz,this.renderSubscribers=new oz,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nr();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,t8.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=()=>t8.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=oI(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)?e*(1e3/t):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 oB(e){return new oZ(e)}let oH=e=>t=>t.test(e),oU=[n6,n2,n1,n0,n3,n4,{test:e=>"auto"===e,parse:e=>e}],oW=e=>oU.find(oH(e)),oq=[...oU,iO,iR],o$=e=>oq.find(oH(e));function oY(e,t,n){let r=e.getProps();return rb(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 oG(e){return!!(nB(e)&&e.add)}function oX(e,t,n={}){var r;let i=oY(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>oK(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(oQ).forEach((e,r)=>{a.push(oX(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 oK(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&&nI.has(t)&&(o={...o,type:!1,delay:0});let s=oR(t,r,i,o);oG(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={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=rj(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oB(n))}}(e,s)})}function oQ(e,t){return e.sortNodePosition(t)}let oJ=[EB.Animate,EB.InView,EB.Focus,EB.Hover,EB.Tap,EB.Drag,EB.Exit],o0=[...oJ].reverse(),o1=oJ.length;function o2(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let o4={animation:r5(({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)){let i=t.map(t=>oX(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=oX(e,t,n);else{let i="function"==typeof t?oY(e,t,n.custom):t;r=oK(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[EB.Animate]:o2(!0),[EB.InView]:o2(),[EB.Hover]:o2(),[EB.Tap]:o2(),[EB.Drag]:o2(),[EB.Focus]:o2(),[EB.Exit]:o2()},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 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===x&&(k={});let{prevResolvedValues:S={}}=v,_={...S,...k},O=e=>{E=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in _){let t=k[e],n=S[e];h.hasOwnProperty(e)||(t!==n?rw(t)&&rw(n)?!r7(t,n)||w?O(e):v.protectedKeys[e]=!0:void 0!==t?O(e):f.add(e):void 0!==t&&f.has(e)?O(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=k,v.isActive&&(h={...h,...k}),r&&e.blockInitialAnimation&&(E=!1),E&&!b&&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)),nk(t)&&(0,b.useEffect)(()=>t.subscribe(e),[t])}),exit:r5(e=>{let{custom:t,visualElement:n}=e,[r,i]=r8(),o=(0,b.useContext)(ns);(0,b.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(EB.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},o3=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),o5=e=>o3(e)&&e.hasOwnProperty("z"),o6=(e,t)=>Math.abs(e-t);function o8(e,t){if(iD(e)&&iD(t))return o6(e,t);if(o3(e)&&o3(t)){let n=o6(e.x,t.x),r=o6(e.y,t.y),i=o5(e)&&o5(t)?o6(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}class o7{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=at(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=o8(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nr();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=o9(t,this.transformPagePoint),rA(e)&&0===e.buttons){this.handlePointerUp(e,t);return}t8.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=at(o9(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},rT(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=rN(e),i=o9(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=nr();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,at(i,this.history)),this.removeListeners=rK(rZ(window,"pointermove",this.handlePointerMove),rZ(window,"pointerup",this.handlePointerUp),rZ(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),t7.update(this.updatePoint)}}function o9(e,t){return t?{point:t(e.point)}:e}function ae(e,t){return{x:e.x-t.x,y:e.y-t.y}}function at({point:e},t){return{point:e,delta:ae(e,an(t)),offset:ae(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=an(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>oo(.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 an(e){return e[e.length-1]}function ar(e){return e.max-e.min}function ai(e,t=0,n=.01){return o8(e,t)({translate:0,scale:1,origin:0,originPoint:0}),am=()=>({x:ap(),y:ap()}),av=()=>({min:0,max:0}),ag=()=>({x:av(),y:av()});function ay(e){return[e("x"),e("y")]}function ax({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ab(e){return void 0===e||1===e}function aw({scale:e,scaleX:t,scaleY:n}){return!ab(e)||!ab(t)||!ab(n)}function aE(e){return aw(e)||aj(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aj(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function ak(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function aS(e,t=0,n=1,r,i){e.min=ak(e.min,t,n,r,i),e.max=ak(e.max,t,n,r,i)}function a_(e,{x:t,y:n}){aS(e.x,t.translate,t.scale,t.originPoint),aS(e.y,n.translate,n.scale,n.originPoint)}function aO(e,t){e.min=e.min+t,e.max=e.max+t}function aC(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=id(e.min,e.max,o);aS(e,t[n],t[r],a,t.scale)}let aM=["x","scaleX","originX"],aA=["y","scaleY","originY"];function aT(e,t){aC(e.x,t,aM),aC(e.y,t,aA)}function aP(e,t){return ax(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 aN=new WeakMap;class aR{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=ag(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new o7(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(rN(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=rq(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),ay(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(n1.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=ar(i);r=e*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(EB.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(EB.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aD(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?id(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&&nE(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ac(e.x,n,i),y:ac(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:af(e,"left","right"),y:af(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ay(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||!nE(t))return!1;let r=t.current;it(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=aP(e,n),{scroll:i}=t;return i&&(aO(r.x,i.x),aO(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:ad((e=i.layout.actual).x,o.x),y:ad(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=ax(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ay(a=>{var l;if(!aD(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)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oR(e,n,0,t)}stopAnimation(){ay(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||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){ay(t=>{let{drag:n}=this.getProps();if(!aD(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]-id(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nE(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};ay(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=ar(e),i=ar(t);return i>r?n=ic(t.min,t.max-r,e.min):r>i&&(n=ic(e.min,e.max-i,t.min)),ir(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(),ay(e=>{if(!aD(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(id(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aN.set(this.visualElement,this);let t=this.visualElement.current,n=rZ(t,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();nE(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();let a=rC(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ay(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(),n(),o(),null==s||s()}}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 aD(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let aL={pan:r5(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=e||t||n||r,a=(0,b.useRef)(null),{transformPagePoint:s}=(0,b.useContext)(nx),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,b.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),rB(i,"pointerdown",o&&function(e){a.current=new o7(e,l,{transformPagePoint:s})}),np(()=>a.current&&a.current.end())}),drag:r5(function(e){let{dragControls:t,visualElement:n}=e,r=nl(()=>new aR(n));(0,b.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,b.useEffect)(()=>r.addListeners(),[r])})};function aF(e){return"string"==typeof e&&e.startsWith("var(--")}let aV=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function az(e,t,n=1){it(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=aV.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():aF(i)?az(i,t,n+1):i}let aI=new Set(["width","height","top","left","right","bottom","x","y"]),aZ=e=>aI.has(e),aB=e=>Object.keys(e).some(aZ),aH=(e,t)=>{e.set(t,!1),e.set(t)},aU=e=>e===n6||e===n2;(EV=EH||(EH={})).width="width",EV.height="height",EV.left="left",EV.right="right",EV.top="top",EV.bottom="bottom";let aW=(e,t)=>parseFloat(e.split(", ")[t]),aq=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return aW(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?aW(t[1],e):0}},a$=new Set(["x","y","z"]),aY=nz.filter(e=>!a$.has(e)),aG={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:aq(4,13),y:aq(5,14)},aX=(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]=aG[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);aH(r,s[n]),e[n]=aG[n](l,o)}),e},aK=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(aZ),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=oW(c),f=t[i];if(rw(f)){let e=f.length,t=null===f[0]?1:0;d=oW(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],aH(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=aX(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),ni&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},aQ=(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(!aF(t))return;let n=az(t,r);n&&e.set(n)}),t){let e=t[i];if(!aF(e))continue;let o=az(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,aB(i)?aK(e,i,n,o):{target:i,transitionEnd:o}},aJ={current:null},a0={current:!1},a1=Object.keys(nA),a2=a1.length,a4=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class a3{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=()=>t8.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=n_(t),this.isVariantNode=nO(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]&&nB(t)&&(t.set(o[e],!1),oG(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&nB(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)),a0.current||function(){if(a0.current=!0,ni){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>aJ.current=e.matches;e.addListener(t),t()}else aJ.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||aJ.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(),t7.update(this.notifyUpdate),t7.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&&t8.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"!==tK&&n&&t&&it(!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):ag()}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=oB(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=rb(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||nB(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 oz),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let a5=["initial",...oJ],a6=a5.length;class a8 extends a3{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;let n=t[e]||t.default||t;return n.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;snF(e)?new a9(t,{enableHardwareAcceleration:!1}):new a7(t,{enableHardwareAcceleration:!0});function st(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sn={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!n2.test(e))return e;e=parseFloat(e)}let n=st(e,t.target.x),r=st(e,t.target.y);return`${n}% ${r}%`}},sr="_$css",si={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(aV,e=>(o.push(e),sr)));let a=iR.parse(e);if(a.length>5)return r;let s=iR.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=id(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(sr,()=>{let t=o[e];return e++,t})}return f}};class so extends b.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(nV,sa),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()})),nT.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()||t8.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 sa={borderRadius:{...sn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sn,borderTopRightRadius:sn,borderBottomLeftRadius:sn,borderBottomRightRadius:sn,boxShadow:si},ss=["TopLeft","TopRight","BottomLeft","BottomRight"],sl=ss.length,su=e=>"string"==typeof e?parseFloat(e):e,sc=e=>"number"==typeof e||n2.test(e);function sd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sf=sp(0,.5,iJ),sh=sp(.5,.95,iY);function sp(e,t,n){return r=>rt?1:n(ic(e,t,r))}function sm(e,t){e.min=t.min,e.max=t.max}function sv(e,t){sm(e.x,t.x),sm(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 sy(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(n1.test(t)){t=parseFloat(t);let e=id(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=id(o.min,o.max,r);e===o&&(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,o,a)}let sx=["x","scaleX","originX"],sb=["y","scaleY","originY"];function sw(e,t,n,r){sy(e.x,t,sx,null==n?void 0:n.x,null==r?void 0:r.x),sy(e.y,t,sb,null==n?void 0:n.y,null==r?void 0:r.y)}function sE(e){return 0===e.translate&&1===e.scale}function sj(e){return sE(e.x)&&sE(e.y)}function sk(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 sS(e){return ar(e.x)/ar(e.y)}class s_{constructor(){this.members=[]}add(e){oF(this.members,e),e.scheduleRender()}remove(e){if(oV(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 sO(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 sC=(e,t)=>e.depth-t.depth;class sM{constructor(){this.children=[],this.isDirty=!1}add(e){oF(this.children,e),this.isDirty=!0}remove(e){oV(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sC),this.isDirty=!1,this.children.forEach(e)}}let sA=["","X","Y","Z"];function sT({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(sV),this.nodes.forEach(sz)},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=oM(r,250),nT.hasAnimatedSinceResize&&(nT.hasAnimatedSinceResize=!1,this.nodes.forEach(sF))})}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:sW,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sk(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={...oN(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sF(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,t7.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(sI))}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));sY(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(sU));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;sB(a.x,e.x,f),sB(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)&&(au(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,sH(r.x,d.x,s.x,f),sH(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=id(0,null!==(a=n.opacity)&&void 0!==a?a:1,sf(r)),e.opacityExit=id(null!==(s=t.opacity)&&void 0!==s?s:1,0,sh(r))):o&&(e.opacity=id(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{nT.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=nB(e)?e:oB(e);return oR("",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&&sG(this.options.animationType,this.layout.actual,r.actual)){n=this.target||ag();let t=ar(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=ar(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sv(t,n),aT(t,i),aa(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new s_);let o=this.sharedNodes.get(e);o.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(sD),this.root.sharedNodes.clear()}}}function sP(e){e.updateLayout()}function sN(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?ay(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=ar(n);n.min=t[e].min,n.max=n.min+r}):sG(r,i.layout,t)&&ay(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=ar(t[e]);n.max=n.min+r});let o=am();aa(o,t,i.layout);let a=am();i.isShared?aa(a,e.applyTransform(n,!0),i.measured):aa(a,t,i.layout);let s=!sj(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=ag();au(n,i.layout,e.layout);let o=ag();au(o,t,r.actual),sk(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 sR(e){e.clearSnapshot()}function sD(e){e.clearMeasurements()}function sL(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sF(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function sV(e){e.resolveTargetDelta()}function sz(e){e.calcProjection()}function sI(e){e.resetRotation()}function sZ(e){e.removeLeadSnapshot()}function sB(e,t,n){e.translate=id(t.translate,0,n),e.scale=id(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sH(e,t,n,r){e.min=id(t.min,n.min,r),e.max=id(t.max,n.max,r)}function sU(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sW={duration:.45,ease:[.4,0,.1,1]};function sq(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,i=r.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s$(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function sY(e){s$(e.x),s$(e.y)}function sG(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return o8(e,t)<=n}(sS(t),sS(n),.2)}let sX=sT({attachResizeListener:(e,t)=>rC(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sK={current:void 0},sQ=sT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sK.current){let e=new sX(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),sK.current=e}return sK.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),sJ={...o4,...r6,...aL,measureLayout:function(e){let[t,n]=r8(),r=(0,b.useContext)(nh);return b.createElement(so,{...e,layoutGroup:r,switchLayoutGroup:(0,b.useContext)(nR),isPresent:t,safeToRemove:n})}},s0=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?nA.projectionNodeConstructor=e[t]:nA[t].Component=e[t]}(e);let a=(0,b.forwardRef)(function(a,s){var l;let u={...(0,b.useContext)(nx),...a,layoutId:function({layoutId:e}){let t=(0,b.useContext)(nh).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(n_(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nj(t)?t:void 0,animate:nj(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,b.useContext)(nb));return(0,b.useMemo)(()=>({initial:t,animate:n}),[nC(t),nC(n)])}(a),h=c?void 0:nl(()=>{if(nT.hasEverUpdated)return nP++}),p=i(a,c);if(!c&&ni){f.visualElement=function(e,t,n,r){let i=(0,b.useContext)(nb).visualElement,o=(0,b.useContext)(nw),a=(0,b.useContext)(ns),s=(0,b.useContext)(nx).reducedMotion,l=(0,b.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 no(()=>{u&&u.render()}),(0,b.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),no(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,b.useContext)(nw).strict,i=(0,b.useContext)(nR);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||nA.projectionNodeConstructor,i))}return b.createElement(nN,{visualElement:f.visualElement,props:u},d,b.createElement(nb.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,b.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):nE(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[nD]=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){let o=nF(e)?r_:rO;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=nF(t)?rh:ri,l=s(n,o,a),u=function(e,t,n){let r={};for(let i in e)(rs(i)||!0===n&&ra(i)||!t&&!ra(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c={...u,...l,ref:i};return r&&(c["data-projection-id"]=r),(0,b.createElement)(t,c)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,sJ,se,sQ));function s1(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,b.useState)(!1),o=(0,b.useMemo)(()=>n?t:r,[n,r,t]),a=(0,b.useCallback)(e=>{n?n(e):i(e)},[n]);return{open:o,onOpenChange:a}}let s2={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 s4(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=s1({open:i,onOpenChange:o});return(0,x.jsxs)(tH,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,x.jsx)(tN,{asChild:!0,children:t}),(0,x.jsx)(ny,{children:n&&u?(0,x.jsx)(tU,{forceMount:!0,children:(0,x.jsx)(tV,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,x.jsx)(s0.div,{variants:s2,initial:"init",animate:"show",exit:"exit",className:(0,ea.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,x.jsx)("div",{className:(0,ea.cx)("py-1 px-2","max-w-xs","overflow-hidden",tY()),children:(0,x.jsx)(t$,{size:"12",children:n})})})})}):null})]})}let s3=(0,ea.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"}}),s5=b.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,x.jsx)(s4,{content:u,align:c,side:d,children:(0,x.jsx)("button",{ref:t,type:h,disabled:a,className:s3({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,x.jsx)("button",{ref:t,disabled:a,type:h,className:s3({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var s6=n(41775);(0,ea.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let s8=(0,ea.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),s7=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{...r,className:s8({className:n}),ref:t})});var s9=n(86029);let le="Avatar",[lt,ln]=(0,j.b)(le),[lr,li]=lt(le),lo=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,b.useState)("idle");return(0,b.createElement)(lr,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,b.createElement)(M.WV.span,(0,E.Z)({},r,{ref:t})))}),la=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=li("AvatarImage",n),s=function(e){let[t,n]=(0,b.useState)("idle");return(0,b.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,s9.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,A.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,b.createElement)(M.WV.img,(0,E.Z)({},o,{ref:t,src:r})):null}),ls=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=li("AvatarFallback",n),[a,s]=(0,b.useState)(void 0===r);return(0,b.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,b.createElement)(M.WV.span,(0,E.Z)({},i,{ref:t})):null}),ll=(0,ea.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"}}),lu=(0,ea.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lc=b.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,x.jsx)("div",{className:(0,ea.cx)("relative h-fit w-fit",c),children:(0,x.jsxs)(lo,{...d,ref:t,className:ll({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,x.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,x.jsx)(la,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,x.jsx)(ls,{className:lu({size:o}),children:i})]})})}),ld=(0,ea.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{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"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}}),lf=b.forwardRef((e,t)=>{let{variant:n,interactive:r,rounded:i,className:o,...a}=e;return(0,x.jsx)("div",{...a,className:ld({variant:n,interactive:r,rounded:i,className:o}),ref:t})}),lh=b.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,x.jsx)("pre",{children:(0,x.jsx)("code",{className:(0,ea.cx)(tW({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})})}),lp=(0,ea.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"}}),lm=b.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,x.jsx)("code",{...i,className:lp({color:n,className:r}),ref:t})}),lv=(0,ea.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=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:lv({className:n}),...r})});(0,ea.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 ly=(0,ea.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"}}),lx=b.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,x.jsx)("div",{ref:t,...o,className:ly({size:i,pad:r,className:n})})});var lb=n(72331);let lw=(0,b.createContext)(void 0);function lE(e){let t=(0,b.useContext)(lw);return e||t||"ltr"}let lj="ScrollArea",[lk,lS]=(0,j.b)(lj),[l_,lO]=lk(lj),lC=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,b.useState)(null),[u,c]=(0,b.useState)(null),[d,f]=(0,b.useState)(null),[h,p]=(0,b.useState)(null),[m,v]=(0,b.useState)(null),[g,y]=(0,b.useState)(0),[x,w]=(0,b.useState)(0),[j,S]=(0,b.useState)(!1),[_,O]=(0,b.useState)(!1),C=(0,k.e)(t,e=>l(e)),A=lE(i);return(0,b.createElement)(l_,{scope:n,type:r,dir:A,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:j,onScrollbarXEnabledChange:S,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:_,onScrollbarYEnabledChange:O,onCornerWidthChange:y,onCornerHeightChange:w},(0,b.createElement)(M.WV.div,(0,E.Z)({dir:A},a,{ref:C,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})))}),lM=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=lO("ScrollAreaViewport",n),a=(0,b.useRef)(null),s=(0,k.e)(t,a,o.onViewportChange);return(0,b.createElement)(b.Fragment,null,(0,b.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,b.createElement)(M.WV.div,(0,E.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,b.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),lA="ScrollAreaScrollbar",lT=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lO(lA,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,b.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,b.createElement)(lP,(0,E.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,b.createElement)(lN,(0,E.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,b.createElement)(lR,(0,E.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,b.createElement)(lD,(0,E.Z)({},r,{ref:t})):null}),lP=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lO(lA,e.__scopeScrollArea),[o,a]=(0,b.useState)(!1);return(0,b.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,b.createElement)(T.z,{present:n||o},(0,b.createElement)(lR,(0,E.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),lN=(0,b.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=lO(lA,e.__scopeScrollArea),a="horizontal"===e.orientation,s=lJ(()=>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,b.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,b.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,b.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t],i=n!==r;i&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,b.createElement)(T.z,{present:r||"hidden"!==l},(0,b.createElement)(lD,(0,E.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,O.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,O.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),lR=(0,b.forwardRef)((e,t)=>{let n=lO(lA,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,b.useState)(!1),s="horizontal"===e.orientation,l=lJ(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=lO(lA,e.__scopeScrollArea),o=(0,b.useRef)(null),a=(0,b.useRef)(0),[s,l]=(0,b.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=lY(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=lG(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport,u=lK([a,s],"ltr"===r?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===n?(0,b.createElement)(lL,(0,E.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=lX(e,s,i.dir);o.current.style.transform=`translate3d(${t}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,b.createElement)(lF,(0,E.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=lX(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),lL=(0,b.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lO(lA,e.__scopeScrollArea),[a,s]=(0,b.useState)(),l=(0,b.useRef)(null),u=(0,k.e)(t,l,o.onScrollbarXChange);return(0,b.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,b.createElement)(lI,(0,E.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":lG(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:l$(a.paddingLeft),paddingEnd:l$(a.paddingRight)}})}}))}),lF=(0,b.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lO(lA,e.__scopeScrollArea),[a,s]=(0,b.useState)(),l=(0,b.useRef)(null),u=(0,k.e)(t,l,o.onScrollbarYChange);return(0,b.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,b.createElement)(lI,(0,E.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":lG(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:l$(a.paddingTop),paddingEnd:l$(a.paddingBottom)}})}}))}),[lV,lz]=lk(lA),lI=(0,b.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=lO(lA,n),[p,m]=(0,b.useState)(null),v=(0,k.e)(t,e=>m(e)),g=(0,b.useRef)(null),y=(0,b.useRef)(""),x=h.viewport,w=r.content-r.viewport,j=(0,s9.W)(c),S=(0,s9.W)(l),_=lJ(d,10);function C(e){if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return(0,b.useEffect)(()=>{let e=e=>{let t=e.target,n=null==p?void 0:p.contains(t);n&&j(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[x,p,w,j]),(0,b.useEffect)(S,[r,S]),l0(p,_),l0(h.content,_),(0,b.createElement)(lV,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,s9.W)(o),onThumbPointerUp:(0,s9.W)(a),onThumbPositionChange:S,onThumbPointerDown:(0,s9.W)(s)},(0,b.createElement)(M.WV.div,(0,E.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,O.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C(e)}}),onPointerMove:(0,O.M)(e.onPointerMove,C),onPointerUp:(0,O.M)(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),lZ="ScrollAreaThumb",lB=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lz(lZ,e.__scopeScrollArea);return(0,b.createElement)(T.z,{present:n||i.hasThumb},(0,b.createElement)(lH,(0,E.Z)({ref:t},r)))}),lH=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=lO(lZ,n),a=lz(lZ,n),{onThumbPositionChange:s}=a,l=(0,k.e)(t,e=>a.onThumbChange(e)),u=(0,b.useRef)(),c=lJ(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,b.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=lQ(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,b.createElement)(M.WV.div,(0,E.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,O.M)(e.onPointerDownCapture,e=>{let t=e.target,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;a.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,O.M)(e.onPointerUp,a.onThumbPointerUp)}))}),lU="ScrollAreaCorner",lW=(0,b.forwardRef)((e,t)=>{let n=lO(lU,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY),i="scroll"!==n.type&&r;return i?(0,b.createElement)(lq,(0,E.Z)({},e,{ref:t})):null}),lq=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=lO(lU,n),[o,a]=(0,b.useState)(0),[s,l]=(0,b.useState)(0);return l0(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),l0(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,b.createElement)(M.WV.div,(0,E.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 l$(e){return e?parseInt(e,10):0}function lY(e,t){let n=e/t;return isNaN(n)?0:n}function lG(e){let t=lY(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function lX(e,t,n="ltr"){let r=lG(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===n?[0,a]:[-1*a,0],l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,s),u=lK([0,a],[0,o-r]);return u(l)}function lK(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 lQ=(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 lJ(e,t){let n=(0,s9.W)(e),r=(0,b.useRef)(0);return(0,b.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,b.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function l0(e,t){let n=(0,s9.W)(t);(0,A.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 l1=b.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,x.jsxs)(lC,{className:(0,ea.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,x.jsx)(lM,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,x.jsx)(lT,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,x.jsx)(lB,{className:(0,ea.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,x.jsx)(lT,{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,x.jsx)(lB,{className:(0,ea.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,x.jsx)(lW,{className:"bg-black/70"})]})}),l2=(0,ea.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),l4={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},l3=b.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}=s1({open:i,onOpenChange:o});return(0,x.jsxs)(lb.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,x.jsx)(lb.xz,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:v?(0,x.jsx)(lb.h_,{forceMount:!0,children:(0,x.jsx)(lb.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,x.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,x.jsx)(lb.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,x.jsx)(s0.div,{variants:l4,initial:"init",animate:"show",exit:"exit",className:l2(u),children:(0,x.jsx)(l8,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function l5(e){let{className:t}=e;return(0,x.jsx)(lb.x8,{asChild:!0,type:"button",children:(0,x.jsx)("div",{className:(0,ea.cx)("appearance-none",t),children:(0,x.jsx)(s5,{size:"small",variant:"ghost",type:"button",children:(0,x.jsx)(s6.QN4,{})})})})}let l6=(0,ea.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[tY()],none:""}},defaultVariants:{variant:"default"}}),l8=b.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,b.useState)(0),r=(0,b.useRef)(null);return(0,b.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,b.useState)(!1);return(0,b.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,x.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:l6(s),children:[i&&(0,x.jsx)(lb.Dx,{className:l7({showSeparator:h}),children:i}),(0,x.jsx)(l1,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,x.jsxs)("div",{ref:d,className:(0,ea.cx)("p-4",u),children:[o&&(0,x.jsx)(lb.dk,{className:l9(),children:o}),n]})}),a&&(0,x.jsx)(ue,{separator:h,children:a}),(0,x.jsx)(l5,{className:l||"absolute top-3.5 right-2"})]})}),l7=(0,ea.j)(["pt-4 pb-2 px-4 w-full",tW({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),l9=(0,ea.j)([tW({color:"subtle",size:"14"}),"py-2"]);function ue(e){let{children:t,separator:n=!0}=e;return(0,x.jsx)("div",{className:(0,ea.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var ut=n(55070),un=n(77334);let ur="rovingFocusGroup.onEntryFocus",ui={bubbles:!1,cancelable:!0},uo="RovingFocusGroup",[ua,us,ul]=_(uo),[uu,uc]=(0,j.b)(uo,[ul]),[ud,uf]=uu(uo),uh=(0,b.forwardRef)((e,t)=>(0,b.createElement)(ua.Provider,{scope:e.__scopeRovingFocusGroup},(0,b.createElement)(ua.Slot,{scope:e.__scopeRovingFocusGroup},(0,b.createElement)(up,(0,E.Z)({},e,{ref:t}))))),up=(0,b.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,b.useRef)(null),f=(0,k.e)(t,d),h=lE(o),[p=null,m]=(0,C.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,b.useState)(!1),y=(0,s9.W)(u),x=us(n),w=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ur,y),()=>e.removeEventListener(ur,y)},[y]),(0,b.createElement)(ud,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,b.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,b.useCallback)(()=>g(!0),[])},(0,b.createElement)(M.WV.div,(0,E.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,O.M)(e.onMouseDown,()=>{w.current=!0}),onFocus:(0,O.M)(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ur,ui);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===p),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);ug(i)}}w.current=!1}),onBlur:(0,O.M)(e.onBlur,()=>g(!1))})))}),um=(0,b.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,P.M)(),s=uf("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=us(n);return(0,b.createElement)(ua.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,b.createElement)(M.WV.span,(0,E.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,O.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,O.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,O.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 uv[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>ug(o))}})})))}),uv={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 uy=n(49732),ux=n(88965);let ub=["Enter"," "],uw=["ArrowUp","PageDown","End"],uE=["ArrowDown","PageUp","Home",...uw],uj={ltr:[...ub,"ArrowRight"],rtl:[...ub,"ArrowLeft"]},uk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uS="Menu",[u_,uO,uC]=_(uS),[uM,uA]=(0,j.b)(uS,[uC,ti,uc]),uT=ti(),uP=uc(),[uN,uR]=uM(uS),[uD,uL]=uM(uS),uF=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=uT(n);return(0,b.createElement)(ts,(0,E.Z)({},i,r,{ref:t}))}),uV="MenuPortal",[uz,uI]=uM(uV,{forceMount:void 0}),uZ="MenuContent",[uB,uH]=uM(uZ),uU=(0,b.forwardRef)((e,t)=>{let n=uI(uZ,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uR(uZ,e.__scopeMenu),a=uL(uZ,e.__scopeMenu);return(0,b.createElement)(u_.Provider,{scope:e.__scopeMenu},(0,b.createElement)(T.z,{present:r||o.open},(0,b.createElement)(u_.Slot,{scope:e.__scopeMenu},a.modal?(0,b.createElement)(uW,(0,E.Z)({},i,{ref:t})):(0,b.createElement)(uq,(0,E.Z)({},i,{ref:t})))))}),uW=(0,b.forwardRef)((e,t)=>{let n=uR(uZ,e.__scopeMenu),r=(0,b.useRef)(null),i=(0,k.e)(t,r);return(0,b.useEffect)(()=>{let e=r.current;if(e)return(0,uy.R)(e)},[]),(0,b.createElement)(u$,(0,E.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,O.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),uq=(0,b.forwardRef)((e,t)=>{let n=uR(uZ,e.__scopeMenu);return(0,b.createElement)(u$,(0,E.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),u$=(0,b.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=uR(uZ,n),v=uL(uZ,n),g=uT(n),y=uP(n),x=uO(n),[w,j]=(0,b.useState)(null),_=(0,b.useRef)(null),C=(0,k.e)(t,_,m.onContentChange),M=(0,b.useRef)(0),A=(0,b.useRef)(""),T=(0,b.useRef)(0),P=(0,b.useRef)(null),N=(0,b.useRef)("right"),R=(0,b.useRef)(0),D=h?ux.Z:b.Fragment,L=h?{as:S.g7,allowPinchZoom:!0}:void 0,F=e=>{var t,n;let r=A.current+e,i=x().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=i.map(e=>e.textValue),l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==n));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(s,r,a),u=null===(n=i.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){A.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};(0,b.useEffect)(()=>()=>window.clearTimeout(M.current),[]),(0,ut.EW)();let V=(0,b.useCallback)(e=>{var t,n;let r=N.current===(null===(t=P.current)||void 0===t?void 0:t.side);return r&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return 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;c&&(i=!i)}return i}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)},[]);return(0,b.createElement)(uB,{scope:n,searchRef:A,onItemEnter:(0,b.useCallback)(e=>{V(e)&&e.preventDefault()},[V]),onItemLeave:(0,b.useCallback)(e=>{var t;V(e)||(null===(t=_.current)||void 0===t||t.focus(),j(null))},[V]),onTriggerLeave:(0,b.useCallback)(e=>{V(e)&&e.preventDefault()},[V]),pointerGraceTimerRef:T,onPointerGraceIntentChange:(0,b.useCallback)(e=>{P.current=e},[])},(0,b.createElement)(D,L,(0,b.createElement)(un.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,O.M)(o,e=>{var t;e.preventDefault(),null===(t=_.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,b.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,b.createElement)(uh,(0,E.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:j,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,b.createElement)(th,(0,E.Z)({role:"menu","aria-orientation":"vertical","data-state":u7(m.open),dir:v.dir},g,p,{ref:C,style:{outline:"none",...p.style},onKeyDown:(0,O.M)(p.onKeyDown,e=>{let t=e.target,n=t.closest('[role="menu"]')===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&i&&F(e.key));let o=_.current;if(e.target!==o||!uE.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);uw.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,O.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),A.current="")}),onPointerMove:(0,O.M)(e.onPointerMove,ce(e=>{let t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>R.current?"right":"left";N.current=t,R.current=e.clientX}}))})))))))}),uY=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.createElement)(M.WV.div,(0,E.Z)({role:"group"},r,{ref:t}))}),uG=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.createElement)(M.WV.div,(0,E.Z)({},r,{ref:t}))}),uX="MenuItem",uK="menu.itemSelect",uQ=(0,b.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,b.useRef)(null),a=uL(uX,e.__scopeMenu),s=uH(uX,e.__scopeMenu),l=(0,k.e)(t,o),u=(0,b.useRef)(!1);return(0,b.createElement)(uJ,(0,E.Z)({},i,{ref:l,disabled:n,onClick:(0,O.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(uK,{bubbles:!0,cancelable:!0});e.addEventListener(uK,e=>null==r?void 0:r(e),{once:!0}),(0,M.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,O.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,O.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&ub.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),uJ=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=uH(uX,n),s=uP(n),l=(0,b.useRef)(null),u=(0,k.e)(t,l),[c,d]=(0,b.useState)(!1),[f,h]=(0,b.useState)("");return(0,b.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,b.createElement)(u_.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,b.createElement)(um,(0,E.Z)({asChild:!0},s,{focusable:!r}),(0,b.createElement)(M.WV.div,(0,E.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,O.M)(e.onPointerMove,ce(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:(0,O.M)(e.onPointerLeave,ce(e=>a.onItemLeave(e))),onFocus:(0,O.M)(e.onFocus,()=>d(!0)),onBlur:(0,O.M)(e.onBlur,()=>d(!1))}))))}),[u0,u1]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,b.createElement)(u4,{scope:e.__scopeMenu,checked:n},(0,b.createElement)(uQ,(0,E.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":u9(n),onSelect:(0,O.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},uM("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),u2=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,s9.W)(r);return(0,b.createElement)(u0,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,b.createElement)(uY,(0,E.Z)({},i,{ref:t})))},"MenuItemIndicator"),[u4,u3]=uM(u2,{checked:!1}),[u5,u6]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=u3(u2,n);return(0,b.createElement)(T.z,{present:r||o.checked},(0,b.createElement)(M.WV.span,(0,E.Z)({},i,{ref:t,"data-state":u9(o.checked)})))},uM("MenuSub")),u8="MenuSubTrigger";function u7(e){return e?"open":"closed"}function u9(e){return e?"checked":"unchecked"}function ce(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=uR(u8,e.__scopeMenu),r=uL(u8,e.__scopeMenu),i=u6(u8,e.__scopeMenu),o=uH(u8,e.__scopeMenu),a=(0,b.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,b.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,b.useEffect)(()=>c,[c]),(0,b.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,b.createElement)(uF,(0,E.Z)({asChild:!0},u),(0,b.createElement)(uJ,(0,E.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":u7(n.open)},e,{ref:(0,k.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,O.M)(e.onPointerMove,ce(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,O.M)(e.onPointerLeave,ce(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,O.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&uj[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=uI(uZ,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uR(uZ,e.__scopeMenu),a=uL(uZ,e.__scopeMenu),s=u6("MenuSubContent",e.__scopeMenu),l=(0,b.useRef)(null),u=(0,k.e)(t,l);return(0,b.createElement)(u_.Provider,{scope:e.__scopeMenu},(0,b.createElement)(T.z,{present:r||o.open},(0,b.createElement)(u_.Slot,{scope:e.__scopeMenu},(0,b.createElement)(u$,(0,E.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,O.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,O.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,O.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uk[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 ct=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=uT(t),[l,u]=(0,b.useState)(null),c=(0,b.useRef)(!1),d=(0,s9.W)(o),f=lE(i);return(0,b.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,b.createElement)(tb,s,(0,b.createElement)(uN,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,b.createElement)(uD,{scope:t,onClose:(0,b.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cn=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=uR(uV,t);return(0,b.createElement)(uz,{scope:t,forceMount:n},(0,b.createElement)(T.z,{present:n||o.open},(0,b.createElement)(tw.h,{asChild:!0,container:i},r)))},cr="DropdownMenu",[ci,co]=(0,j.b)(cr,[uA]),ca=uA(),[cs,cl]=ci(cr),cu=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=cl("DropdownMenuTrigger",n),a=ca(n);return(0,b.createElement)(uF,(0,E.Z)({asChild:!0},a),(0,b.createElement)(M.WV.button,(0,E.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,k.F)(t,o.triggerRef),onPointerDown:(0,O.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,O.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cc=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cl("DropdownMenuContent",n),o=ca(n),a=(0,b.useRef)(!1);return(0,b.createElement)(uU,(0,E.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,O.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,O.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)"}}))}),cd=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ca(n);return(0,b.createElement)(uG,(0,E.Z)({},i,r,{ref:t}))}),cf=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ca(n);return(0,b.createElement)(uQ,(0,E.Z)({},i,r,{ref:t}))}),ch=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=ca(t),u=(0,b.useRef)(null),[c=!1,d]=(0,C.T)({prop:i,defaultProp:o,onChange:a});return(0,b.createElement)(cs,{scope:t,triggerId:(0,P.M)(),triggerRef:u,contentId:(0,P.M)(),open:c,onOpenChange:d,onOpenToggle:(0,b.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,b.createElement)(ct,(0,E.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cp=e=>{let{__scopeDropdownMenu:t,...n}=e,r=ca(t);return(0,b.createElement)(cn,(0,E.Z)({},r,n))},cm="horizontal",cv=["horizontal","vertical"],cg=(0,b.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cm,...i}=e,o=cy(r)?r:cm;return(0,b.createElement)(M.WV.div,(0,E.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function cy(e){return cv.includes(e)}cg.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cy(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: - horizontal - vertical -Defaulting to \`${cb}\`.`):null}};let ck=(0,ea.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"}}),c_=b.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...o}=e;return(0,x.jsx)(cE,{ref:t,className:ck({variant:n,color:r,className:i}),...o})}),cS=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ea.cx)(tW({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},cO=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ea.cx)(cS({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,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"])},cC=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return tW({font:n,color:r,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},cM=e=>(0,ea.cx)(["h-px","my-2","mx-1.5",e]),cA=b.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,x.jsx)(c_,{ref:t,className:cM(n),...i})}),cP=b.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,x.jsx)("div",{ref:t,className:(0,ea.cx)(cS({className:n,font:r,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),cT=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:(0,ea.cx)(["ml-auto","pl-5",n]),...r})}),cN=(0,ea.j)([s6,"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"]),cR=e=>(0,ea.cx)(tY(),(0,ea.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),cD={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cL=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=s1({open:s,onOpenChange:l});return(0,x.jsxs)(cy,{open:u,onOpenChange:c,...i,children:[(0,x.jsx)(cp,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:u?(0,x.jsx)(cx,{forceMount:!0,children:(0,x.jsx)(cm,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(s0.div,{variants:cD,initial:"init",animate:"show",exit:"exit",className:cN(),children:(0,x.jsx)("div",{className:cR(a),children:r})})})}):null})]})}),cF=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(cg,{ref:t,className:cO({className:n}),...r})}),cV=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(cv,{ref:t,className:(0,ea.cx)("px-1.5",cC({className:n})),...r})}),cz=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:(0,ea.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var cI=n(39097),cZ=n.n(cI);let cB={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},cH={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"},cU=b.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=cB[n];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,x.jsxs)("div",{className:(0,ea.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,x.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,x.jsxs)(cZ(),{href:"#".concat(e),className:"relative group",children:[(0,x.jsx)(tq,{className:"hidden group-hover:block",children:(0,x.jsx)(lt.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,x.jsx)(tq,{as:u,...l,ref:t,weight:"none",className:(0,ea.cx)("proportional-nums inline-block",cH[n]),children:o})]})]})}return(0,x.jsx)("div",{className:(0,ea.cx)("flex flex-col gap-6 items-start",r),children:(0,x.jsx)(tq,{as:u,...l,ref:t,weight:"none",className:(0,ea.cx)("proportional-nums inline-block",cH[n],r),children:o})})});var cW=n(96577),cq=n.n(cW);let c$=(0,ea.j)(["rounded"]);function cY(e){let{className:t,...n}=e;return(0,x.jsx)(cq(),{className:c$({className:t}),...n})}let[cG,cK]=(0,j.k)("Label",{id:void 0,controlRef:{current:null}}),cX=(0,b.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,o=(0,b.useRef)(null),a=(0,b.useRef)(null),s=(0,k.e)(t,a),l=(0,T.M)(r);return(0,b.useEffect)(()=>{if(n){let e=document.getElementById(n),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),o.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,b.createElement)(cG,{id:l,controlRef:o},(0,b.createElement)(M.WV.span,(0,E.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),!o.current||t.defaultPrevented)return;let r=o.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(o.current.click(),o.current.focus())}})))}),cQ=e=>{let t=cK("LabelConsumer"),{controlRef:n}=t;return(0,b.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},cJ=b.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,x.jsx)(cX,{ref:t,...c,className:cC({font:n,size:r,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),c0=(0,ea.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"}}),c1=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,ea.cx)(tW({scaleSize:r,size:n,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),c0({disabled:u,underline:l}),c)},c2=b.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,b.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,x.jsx)(cZ(),{href:n||"#",ref:t,className:c1({font:r,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),c4={src:"/_next/static/media/logo.0e2362ab.png"};function c3(e){let{size:t=30,className:n}=e;return(0,x.jsx)(cY,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let c5="Popover",[c6,c8]=(0,j.b)(c5,[ti]),c7=ti(),[c9,de]=c6(c5),dt=(0,b.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=de("PopoverTrigger",n),o=c7(n),a=(0,k.e)(t,i.triggerRef),s=(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dd(i.open)},r,{ref:a,onClick:(0,O.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,b.createElement)(ts,(0,E.Z)({asChild:!0},o),s)}),dn="PopoverPortal",[dr,di]=c6(dn,{forceMount:void 0}),da="PopoverContent",ds=(0,b.forwardRef)((e,t)=>{let n=di(da,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=de(da,e.__scopePopover);return(0,b.createElement)(P.z,{present:r||o.open},o.modal?(0,b.createElement)(dl,(0,E.Z)({},i,{ref:t})):(0,b.createElement)(du,(0,E.Z)({},i,{ref:t})))}),dl=(0,b.forwardRef)((e,t)=>{let n=de(da,e.__scopePopover),r=(0,b.useRef)(null),i=(0,k.e)(t,r),o=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=r.current;if(e)return(0,uj.R)(e)},[]),(0,b.createElement)(uk.Z,{as:_.g7,allowPinchZoom:!0},(0,b.createElement)(dc,(0,E.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,O.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,O.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,O.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),du=(0,b.forwardRef)((e,t)=>{let n=de(da,e.__scopePopover),r=(0,b.useRef)(!1);return(0,b.createElement)(dc,(0,E.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,s=null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),dc=(0,b.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=de(da,n),h=c7(n);return(0,ua.EW)(),(0,b.createElement)(us.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,b.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,b.createElement)(th,(0,E.Z)({"data-state":dd(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 dd(e){return e?"open":"closed"}let df=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=c7(t),l=(0,b.useRef)(null),[u,c]=(0,b.useState)(!1),[d=!1,f]=(0,C.T)({prop:r,defaultProp:i,onChange:o});return(0,b.createElement)(tb,s,(0,b.createElement)(c9,{scope:t,contentId:(0,T.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,b.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,b.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,b.useCallback)(()=>c(!1),[]),modal:a},n))},dh=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=de(dn,t);return(0,b.createElement)(dr,{scope:t,forceMount:n},(0,b.createElement)(P.z,{present:n||o.open},(0,b.createElement)(tw.h,{asChild:!0,container:i},r)))},dp=(0,ea.j)([s6,"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"]),dm=(0,ea.cx)(tY(),(0,ea.j)(["py-1","px-1"])()),dv={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dg=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=s1({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(df,{open:a,onOpenChange:s,...i,children:[(0,x.jsx)(dt,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:a?(0,x.jsx)(dh,{forceMount:!0,children:(0,x.jsx)(ds,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(s0.div,{variants:dv,initial:"init",animate:"show",exit:"exit",className:dp(),children:(0,x.jsx)(l6,{className:dm,children:r})})})}):null})]})}),dy="Progress",[dx,db]=(0,j.b)(dy),[dw,dE]=dx(dy),dj=(0,b.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:o=d_,...a}=e,s=dC(i)?i:100,l=dM(r,s)?r:null,u=dO(l)?o(l,s):void 0;return(0,b.createElement)(dw,{scope:n,value:l,max:s},(0,b.createElement)(M.WV.div,(0,E.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":dO(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dS(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});dj.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!dC(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),o=dC(e.max)?e.max:100;return null==r||dM(r,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: +Defaulting to \`${cm}\`.`):null}};let cx=(0,ea.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"}}),cb=b.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...o}=e;return(0,x.jsx)(cg,{ref:t,className:cx({variant:n,color:r,className:i}),...o})}),cw=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ea.cx)(tW({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},cE=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ea.cx)(cw({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,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"])},cj=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return tW({font:n,color:r,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},ck=e=>(0,ea.cx)(["h-px","my-2","mx-1.5",e]),cS=b.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,x.jsx)(cb,{ref:t,className:ck(n),...i})}),c_=b.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,x.jsx)("div",{ref:t,className:(0,ea.cx)(cw({className:n,font:r,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),cO=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:(0,ea.cx)(["ml-auto","pl-5",n]),...r})}),cC=(0,ea.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"]),cM=e=>(0,ea.cx)(tY(),(0,ea.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),cA={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cT=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=s1({open:s,onOpenChange:l});return(0,x.jsxs)(ch,{open:u,onOpenChange:c,...i,children:[(0,x.jsx)(cu,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:u?(0,x.jsx)(cp,{forceMount:!0,children:(0,x.jsx)(cc,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(s0.div,{variants:cA,initial:"init",animate:"show",exit:"exit",className:cC(),children:(0,x.jsx)("div",{className:cM(a),children:r})})})}):null})]})}),cP=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(cf,{ref:t,className:cE({className:n}),...r})}),cN=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(cd,{ref:t,className:(0,ea.cx)("px-1.5",cj({className:n})),...r})}),cR=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:(0,ea.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var cD=n(39097),cL=n.n(cD);let cF={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},cV={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"},cz=b.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=cF[n];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,x.jsxs)("div",{className:(0,ea.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,x.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,x.jsxs)(cL(),{href:"#".concat(e),className:"relative group",children:[(0,x.jsx)(tq,{className:"hidden group-hover:block",children:(0,x.jsx)(s6.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,x.jsx)(tq,{as:u,...l,ref:t,weight:"none",className:(0,ea.cx)("proportional-nums inline-block",cV[n]),children:o})]})]})}return(0,x.jsx)("div",{className:(0,ea.cx)("flex flex-col gap-6 items-start",r),children:(0,x.jsx)(tq,{as:u,...l,ref:t,weight:"none",className:(0,ea.cx)("proportional-nums inline-block",cV[n],r),children:o})})});var cI=n(96577),cZ=n.n(cI);let cB=(0,ea.j)(["rounded"]);function cH(e){let{className:t,...n}=e;return(0,x.jsx)(cZ(),{className:cB({className:t}),...n})}let[cU,cW]=(0,j.k)("Label",{id:void 0,controlRef:{current:null}}),cq=(0,b.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,o=(0,b.useRef)(null),a=(0,b.useRef)(null),s=(0,k.e)(t,a),l=(0,P.M)(r);return(0,b.useEffect)(()=>{if(n){let e=document.getElementById(n),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),o.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,b.createElement)(cU,{id:l,controlRef:o},(0,b.createElement)(M.WV.span,(0,E.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),!o.current||t.defaultPrevented)return;let r=o.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(o.current.click(),o.current.focus())}})))}),c$=e=>{let t=cW("LabelConsumer"),{controlRef:n}=t;return(0,b.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},cY=b.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,x.jsx)(cq,{ref:t,...c,className:cj({font:n,size:r,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),cG=(0,ea.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"}}),cX=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,ea.cx)(tW({scaleSize:r,size:n,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),cG({disabled:u,underline:l}),c)},cK=b.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,b.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,x.jsx)(cL(),{href:n||"#",ref:t,className:cX({font:r,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),cQ={src:"/_next/static/media/logo.0e2362ab.png"};function cJ(e){let{size:t=30,className:n}=e;return(0,x.jsx)(cH,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let c0="Popover",[c1,c2]=(0,j.b)(c0,[ti]),c4=ti(),[c3,c5]=c1(c0),c6=(0,b.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=c5("PopoverTrigger",n),o=c4(n),a=(0,k.e)(t,i.triggerRef),s=(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":da(i.open)},r,{ref:a,onClick:(0,O.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,b.createElement)(ts,(0,E.Z)({asChild:!0},o),s)}),c8="PopoverPortal",[c7,c9]=c1(c8,{forceMount:void 0}),de="PopoverContent",dt=(0,b.forwardRef)((e,t)=>{let n=c9(de,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=c5(de,e.__scopePopover);return(0,b.createElement)(T.z,{present:r||o.open},o.modal?(0,b.createElement)(dn,(0,E.Z)({},i,{ref:t})):(0,b.createElement)(dr,(0,E.Z)({},i,{ref:t})))}),dn=(0,b.forwardRef)((e,t)=>{let n=c5(de,e.__scopePopover),r=(0,b.useRef)(null),i=(0,k.e)(t,r),o=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=r.current;if(e)return(0,uy.R)(e)},[]),(0,b.createElement)(ux.Z,{as:S.g7,allowPinchZoom:!0},(0,b.createElement)(di,(0,E.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,O.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,O.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,O.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dr=(0,b.forwardRef)((e,t)=>{let n=c5(de,e.__scopePopover),r=(0,b.useRef)(!1);return(0,b.createElement)(di,(0,E.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,s=null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),di=(0,b.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=c5(de,n),h=c4(n);return(0,ut.EW)(),(0,b.createElement)(un.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,b.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,b.createElement)(th,(0,E.Z)({"data-state":da(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 da(e){return e?"open":"closed"}let ds=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=c4(t),l=(0,b.useRef)(null),[u,c]=(0,b.useState)(!1),[d=!1,f]=(0,C.T)({prop:r,defaultProp:i,onChange:o});return(0,b.createElement)(tb,s,(0,b.createElement)(c3,{scope:t,contentId:(0,P.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,b.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,b.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,b.useCallback)(()=>c(!1),[]),modal:a},n))},dl=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=c5(c8,t);return(0,b.createElement)(c7,{scope:t,forceMount:n},(0,b.createElement)(T.z,{present:n||o.open},(0,b.createElement)(tw.h,{asChild:!0,container:i},r)))},du=(0,ea.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"]),dc=(0,ea.cx)(tY(),(0,ea.j)(["py-1","px-1"])()),dd={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},df=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=s1({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(ds,{open:a,onOpenChange:s,...i,children:[(0,x.jsx)(c6,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:a?(0,x.jsx)(dl,{forceMount:!0,children:(0,x.jsx)(dt,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(s0.div,{variants:dd,initial:"init",animate:"show",exit:"exit",className:du(),children:(0,x.jsx)(l1,{className:dc,children:r})})})}):null})]})}),dh="Progress",[dp,dm]=(0,j.b)(dh),[dv,dg]=dp(dh),dy=(0,b.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:o=db,...a}=e,s=dj(i)?i:100,l=dk(r,s)?r:null,u=dE(l)?o(l,s):void 0;return(0,b.createElement)(dv,{scope:n,value:l,max:s},(0,b.createElement)(M.WV.div,(0,E.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":dE(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dw(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});dy.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!dj(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),o=dj(e.max)?e.max:100;return null==r||dk(r,o)?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 dk=(0,b.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=dE("ProgressIndicator",r);return(0,b.createElement)(M.WV.div,(0,E.Z)({"data-state":dS(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function d_(e,t){return`${Math.round(e/t*100)}%`}function dS(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dO(e){return"number"==typeof e}function dC(e){return dO(e)&&!isNaN(e)&&e>0}function dM(e,t){return dO(e)&&!isNaN(e)&&e<=t&&e>=0}let dA=(0,ea.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"}}),dP=b.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,x.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,x.jsx)(dj,{...s,ref:t,value:o,max:a,className:dA({variant:r,className:i}),children:(0,x.jsx)(dk,{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,x.jsx)(tq,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function dT(e){let t=(0,b.useRef)({value:e,previous:e});return(0,b.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let dN="Radio",[dR,dD]=(0,j.b)(dN),[dL,dF]=dR(dN),dV=(0,b.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,b.useState)(null),h=(0,k.e)(t,e=>f(e)),p=cQ(d),m=(0,b.useRef)(!1),v=!d||!!d.closest("form");return(0,b.createElement)(dL,{scope:n,checked:o,disabled:s},(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":dZ(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,O.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,b.createElement)(dI,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),dz=(0,b.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=dF("RadioIndicator",n);return(0,b.createElement)(P.z,{present:r||o.checked},(0,b.createElement)(M.WV.span,(0,E.Z)({"data-state":dZ(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),dI=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,b.useRef)(null),a=dT(n),s=tt(t);return(0,b.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,b.createElement)("input",(0,E.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 dZ(e){return e?"checked":"unchecked"}let dB=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dH="RadioGroup",[dU,dW]=(0,j.b)(dH,[um,dD]),dq=um(),d$=dD(),[dY,dG]=dU(dH),dK=(0,b.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=cQ(),p=dq(n),m=lO(u),[v,g]=(0,C.T)({prop:a,defaultProp:o,onChange:d});return(0,b.createElement)(dY,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,b.createElement)(uy,(0,E.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,b.createElement)(M.WV.div,(0,E.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),dX=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=dG("RadioGroupItem",n),a=dq(n),s=d$(n),l=(0,b.useRef)(null),u=(0,k.e)(t,l),c=o.value===i.value,d=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{dB.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,b.createElement)(ub,(0,E.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,b.createElement)(dV,(0,E.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,O.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,O.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),dQ=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=d$(n);return(0,b.createElement)(dz,(0,E.Z)({},i,r,{ref:t}))}),dJ=(0,ea.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"}}),d0=(0,ea.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"}}),d1=b.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(dX,{...o,className:d0({size:n,className:r}),ref:t,children:(0,x.jsx)(dQ,{className:dJ({size:n})})}),(0,x.jsx)(tq,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),d2=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(dK,{...r,className:(0,ea.cx)("flex gap-2",n),ref:t})});(0,ea.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",tW(),"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 d4=(0,ea.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"}}),d3=b.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,x.jsx)("input",{ref:t,className:d4({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** +Defaulting to \`null\`.`)}};let dx=(0,b.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=dg("ProgressIndicator",r);return(0,b.createElement)(M.WV.div,(0,E.Z)({"data-state":dw(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function db(e,t){return`${Math.round(e/t*100)}%`}function dw(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dE(e){return"number"==typeof e}function dj(e){return dE(e)&&!isNaN(e)&&e>0}function dk(e,t){return dE(e)&&!isNaN(e)&&e<=t&&e>=0}let dS=(0,ea.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"}}),d_=b.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,x.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,x.jsx)(dy,{...s,ref:t,value:o,max:a,className:dS({variant:r,className:i}),children:(0,x.jsx)(dx,{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,x.jsx)(tq,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function dO(e){let t=(0,b.useRef)({value:e,previous:e});return(0,b.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let dC="Radio",[dM,dA]=(0,j.b)(dC),[dT,dP]=dM(dC),dN=(0,b.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,b.useState)(null),h=(0,k.e)(t,e=>f(e)),p=c$(d),m=(0,b.useRef)(!1),v=!d||!!d.closest("form");return(0,b.createElement)(dT,{scope:n,checked:o,disabled:s},(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":dL(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,O.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,b.createElement)(dD,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),dR=(0,b.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=dP("RadioIndicator",n);return(0,b.createElement)(T.z,{present:r||o.checked},(0,b.createElement)(M.WV.span,(0,E.Z)({"data-state":dL(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),dD=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,b.useRef)(null),a=dO(n),s=tt(t);return(0,b.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,b.createElement)("input",(0,E.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 dL(e){return e?"checked":"unchecked"}let dF=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dV="RadioGroup",[dz,dI]=(0,j.b)(dV,[uc,dA]),dZ=uc(),dB=dA(),[dH,dU]=dz(dV),dW=(0,b.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=c$(),p=dZ(n),m=lE(u),[v,g]=(0,C.T)({prop:a,defaultProp:o,onChange:d});return(0,b.createElement)(dH,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,b.createElement)(uh,(0,E.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,b.createElement)(M.WV.div,(0,E.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),dq=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=dU("RadioGroupItem",n),a=dZ(n),s=dB(n),l=(0,b.useRef)(null),u=(0,k.e)(t,l),c=o.value===i.value,d=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{dF.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,b.createElement)(um,(0,E.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,b.createElement)(dN,(0,E.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,O.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,O.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),d$=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=dB(n);return(0,b.createElement)(dR,(0,E.Z)({},i,r,{ref:t}))}),dY=(0,ea.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"}}),dG=(0,ea.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"}}),dX=b.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(dq,{...o,className:dG({size:n,className:r}),ref:t,children:(0,x.jsx)(d$,{className:dY({size:n})})}),(0,x.jsx)(tq,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),dK=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(dW,{...r,className:(0,ea.cx)("flex gap-2",n),ref:t})});(0,ea.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",tW(),"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 dQ=(0,ea.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"}}),dJ=b.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,x.jsx)("input",{ref:t,className:dQ({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -44,7 +44,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var d5=function(){return(d5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){if(e.includes(t)){var r=e.split(t),i=r[0],o=r[1];if(o.length>n)return""+i+t+o.slice(0,n)}var a=e.length>n?RegExp("(\\d+)(\\d{"+n+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},fi=function(e,t){var n=t.groupSeparator,r=t.decimalSeparator,i=RegExp("\\d([^"+d8(void 0===n?",":n)+d8(void 0===r?".":r)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},fo=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?d8(a)+"?":"")+"\\d").test(t),c="."!==n?fa(t,n,u):t,d=fs((r?new Intl.NumberFormat(r.locale,r.currency?{style:"currency",currency:r.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=fi(d,d5({},e)),h=t.slice(-1)===n?n:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&n&&(d=d.includes(n)?d.replace(RegExp("(\\d+)("+d8(n)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+n+p+f):""+d+n+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},fa=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(d8(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},fs=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?d6(d6([],e),[n]):[n,u]:"currency"===l?n?e:d6(d6([],e),[u]):"group"===l?s?e:d6(d6([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:d6(d6([],e),[void 0!==i?i:u]):"fraction"===l?d6(d6([],e),[void 0!==o?u.slice(0,o):u]):d6(d6([],e),[u])},[""]).join("")},fl={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},fu=function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,n){return"currency"===t.type?0===n?d5(d5({},e),{currencySymbol:t.value,prefix:t.value}):d5(d5({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?d5(d5({},e),{groupSeparator:t.value}):"decimal"===t.type?d5(d5({},e),{decimalSeparator:t.value}):e},fl)},fc=function(e){return RegExp(/\d/,"gi").test(e)},fd=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.lengtht.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}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(O&&fc(O))throw Error("decimalSeparator cannot be a number");if(C&&fc(C))throw Error("groupSeparator cannot be a number");var L=(0,b.useMemo)(function(){return fu(x)},[x]),F=O||L.decimalSeparator||"",V=C||L.groupSeparator||"";if(F&&V&&F===V&&!1===_)throw Error("decimalSeparator cannot be the same as groupSeparator");var z={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:_,intlConfig:x,prefix:g||L.prefix,suffix:y},I={decimalSeparator:F,groupSeparator:V,allowDecimals:void 0===n||n,decimalsLimit:l||p||2,allowNegativeValue:void 0===r||r,disableAbbreviations:void 0!==S&&S,prefix:g||L.prefix,transformRawValue:R},Z=null!=u?fo(d5(d5({},z),{decimalScale:v,value:String(u)})):null!=f?fo(d5(d5({},z),{decimalScale:v,value:String(f)})):"",B=(0,b.useState)(Z),H=B[0],U=B[1],W=(0,b.useState)(!1),q=W[0],$=W[1],Y=(0,b.useState)(0),G=Y[0],K=Y[1],X=(0,b.useState)(0),Q=X[0],J=X[1],ee=(0,b.useState)(null),et=ee[0],en=ee[1],er=t||(0,b.useRef)(null),ei=function(e,t){$(!0);var n=ff({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:V}),r=n.modifiedValue,i=n.cursorPosition,a=fn(d5({value:r},I));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===F){h&&h(void 0,o,{float:null,formatted:"",value:""}),U(a);return}var s=parseFloat(a.replace(F,".")),l=fo(d5({value:a},z));if(null!=i){var u=i+(l.length-e.length);K(u=u<=0?g?g.length:0:u),J(Q+1)}U(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,b.useEffect)(function(){q&&"-"!==H&&er&&"object"==typeof er&&er.current&&er.current.setSelectionRange(G,G)},[H,G,er,q,Q]);var eo=d5({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),M&&M(e)},onBlur:function(e){var t=e.target.value,n=fn(d5({value:t},I));if("-"===n||!n){U(""),P&&P(e);return}var r=fd(fr(n,F,p),F,void 0!==v?v:p),i=parseFloat(r.replace(F,".")),a=fo(d5(d5({},z),{value:r}));h&&h(r,o,{float:i,formatted:a,value:r}),U(a),P&&P(e)},onFocus:function(e){return A&&A(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(en(t),w&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),K(H.length);var n=parseFloat(null!=f?String(f).replace(F,"."):fn(d5({value:H},I)))||0,r="ArrowUp"===t?n+w:n-w;if(void 0!==E&&rj)return;var i=String(w).includes(".")?Number(String(w).split(".")[1].length):void 0;ei(String(i?r.toFixed(i):r).replace(".",F))}T&&T(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var r=fi(H,{groupSeparator:V,decimalSeparator:F});if(r&&n&&n>H.length-r.length&&er&&"object"==typeof er&&er.current){var i=H.length-r.length;er.current.setSelectionRange(i,i)}}N&&N(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||F&&H===F?H:fo(d5(d5({},z),{decimalScale:q?void 0:v,value:String(f)})),ref:er},D);return s?b.createElement(s,d5({},eo)):b.createElement("input",d5({},eo))});function fp(e){let{units:t,variant:n,size:r="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,b.useState)();return(0,b.useEffect)(()=>{h(navigator.language)},[]),(0,x.jsxs)("div",{className:"relative",children:[(0,x.jsx)(fh,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,className:(0,ea.cx)(d4({variant:n,size:r,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,x.jsx)(tq,{size:"12",weight:"medium",color:"subtle",children:t})})]})}fh.displayName="CurrencyInput";var fm=n(6391),fv=n.n(fm);function fg(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let fy=(0,b.forwardRef)(function(e,t){let{value:n,placeholder:r=new(fv())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,b.useMemo)(()=>new(fv())(n),[n]),[p,m]=(0,b.useState)(""),v=(0,b.useMemo)(()=>fx(p),[p]),g=(0,b.useCallback)(e=>{o&&o((e=fx(e))&&!isNaN(Number(e))?new(fv())(e):void 0)},[o]),y=(0,b.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,b.useEffect)(()=>{if(!h.isEqualTo(v)){let e=fg(h,i);m(e)}},[h]),(0,x.jsx)(fp,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:r.isNaN()?"":fg(r,i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>y(e||"")})});function fx(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var fb=n(2850),fw=n(47025);let fE=new(fv())(0),fj=(0,b.forwardRef)(function(e,t){let{sc:n,placeholder:r=new(fv())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,b.useMemo)(()=>new(fv())(void 0===n?NaN:n),[n]),{settings:g}=(0,fb.Hv)(),y=(0,fw.BW)({config:{swr:{revalidateOnFocus:!1}}}),w=(0,b.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(fv())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||fE):fE},[y.data,g]),[E,j]=(0,b.useState)(),[k,_]=(0,b.useState)(""),[S,O]=(0,b.useState)(""),C=(0,b.useMemo)(()=>fk(k),[k]),M=(0,b.useMemo)(()=>fk(S),[S]),A=(0,b.useCallback)(e=>{a&&a((e=fk(e))&&!isNaN(Number(e))?new(fv())(e):void 0)},[a]),P=(0,b.useCallback)(e=>{let t=fg(e,i);O(t)},[O,i]),T=(0,b.useCallback)(e=>{let t=fg(e,o);return _(t),A(t),t},[_,o,A]),N=(0,b.useCallback)(e=>{_(e),A(e)},[_,A]),R=(0,b.useCallback)(e=>{let t=new(fv())(e).times(w);P(t)},[P,w]),D=(0,b.useCallback)(e=>{let t=new(fv())(e).dividedBy(w);T(t)},[T,w]),[L,F]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{if(!v.isEqualTo(C)){let e=fg(v,o);_(e),"fiat"!==E&&R(e)}L||F(!0)},[v]),(0,b.useEffect)(()=>{L&&R(C)},[w]),(0,b.useEffect)(()=>{"sc"===E&&R(C)},[C]),(0,b.useEffect)(()=>{"fiat"===E&&D(M)},[M]),(0,x.jsxs)("div",{ref:t,className:(0,ea.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,x.jsx)(fp,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:fg(r,o),units:l,value:"NaN"!==k?k:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{j(void 0),h&&h(e)},onFocus:e=>{j("sc"),p&&p(e)},onValueChange:e=>{N(e||"")}}),u&&g.siaCentral&&(0,x.jsx)(fp,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==S?S:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(w?w.times(r).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{j("fiat"),p&&p(e)},onBlur:e=>{j(void 0),h&&h(e)},onValueChange:e=>{O(e||"")}})]})});function fk(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function f_(e){let{children:t}=e;return(0,x.jsx)(s7,{content:t,children:(0,x.jsx)("div",{className:"relative flex items-center inline mx-1",children:(0,x.jsx)(tq,{color:"subtle",children:(0,x.jsx)(lt.RdX,{className:"scale-75"})})})})}function fS(e){let{values:t,options:n,onChange:r}=e;return(0,x.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,x.jsx)(le,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}let fO=(0,ea.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"}}),fC=b.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,x.jsxs)("div",{className:fO({size:n,state:r,className:o}),children:[i,(0,x.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,x.jsx)(lt.Cp0,{className:"pointer-events-none scale-75"})]})}),fM=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("option",{ref:t,...r,className:(0,ea.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),fA=(0,ea.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function fP(e){let{className:t}=e;return(0,x.jsx)("div",{className:fA({className:t})})}let fT=(0,ea.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),fN=b.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,x.jsx)("div",{ref:t,className:fT({size:n,className:r}),...i})}),fR="Switch",[fD,fL]=(0,j.b)(fR),[fF,fV]=fD(fR),fz=(0,b.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,b.useState)(null),p=(0,k.e)(t,e=>h(e)),m=cQ(f),v=(0,b.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,x]=(0,C.T)({prop:o,defaultProp:a,onChange:c});return(0,b.createElement)(fF,{scope:n,checked:y,disabled:l},(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":fB(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,O.M)(e.onClick,e=>{x(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,b.createElement)(fZ,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),fI=(0,b.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=fV("SwitchThumb",n);return(0,b.createElement)(M.WV.span,(0,E.Z)({"data-state":fB(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),fZ=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,b.useRef)(null),a=dT(n),s=tt(t);return(0,b.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,b.createElement)("input",(0,E.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 fB(e){return e?"checked":"unchecked"}let fH=(0,ea.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"}}),fU=(0,ea.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"}}),fW=(0,b.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(fz,{className:fU({size:n,state:r,className:i}),...a,ref:t,children:(0,x.jsx)(fI,{className:fH({size:n})})}),o&&(0,x.jsx)(tq,{color:a.disabled?"subtle":"contrast",children:o})]})}),fq=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(fG);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:b.Children.count(e)>1?b.Children.only(null):(0,b.isValidElement)(e)?e.props.children:null);return(0,b.createElement)(f$,(0,E.Z)({},r,{ref:t}),(0,b.isValidElement)(e)?(0,b.cloneElement)(e,void 0,n):null)}return(0,b.createElement)(f$,(0,E.Z)({},r,{ref:t}),n)});fq.displayName="Slot";let f$=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,b.isValidElement)(n)?(0,b.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?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,k.F)(t,n.ref)}):b.Children.count(n)>1?b.Children.only(null):null});f$.displayName="SlotClone";let fY=({children:e})=>(0,b.createElement)(b.Fragment,null,e);function fG(e){return(0,b.isValidElement)(e)&&e.type===fY}let fK=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,b.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?fq:t;return(0,b.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,b.createElement)(o,(0,E.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),fX=(0,b.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,b.createElement)(fK.svg,(0,E.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,b.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),fQ="Popper",[fJ,f0]=(0,j.b)(fQ),[f1,f2]=fJ(fQ),f4=(0,b.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=f2("PopperAnchor",n),a=(0,b.useRef)(null),s=(0,k.e)(t,a);return(0,b.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,b.createElement)(fK.div,(0,E.Z)({},i,{ref:s}))}),f3="PopperContent",[f5,f6]=fJ(f3),[f8,f7]=fJ(f3,{hasParent:!1,positionUpdateFns:new Set}),f9=(0,b.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:x="partial",hideWhenDetached:w=!1,avoidCollisions:E=!0,onPlaced:j,..._}=e,S=f2(f3,d),[O,C]=(0,b.useState)(null),M=(0,k.e)(t,e=>C(e)),[P,T]=(0,b.useState)(null),N=tt(P),R=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,D=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,L="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(g)?g:[g],V=F.length>0,z={padding:L,boundary:F.filter(hn),altBoundary:V},{reference:I,floating:Z,strategy:B,x:H,y:U,placement:W,middlewareData:q,update:$}=e7({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:e3,middleware:[hr(),eM({mainAxis:h+D,alignmentAxis:m}),E?eP({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?eT():void 0,...z}):void 0,P?e9({element:P,padding:v}):void 0,E?e_({...z}):void 0,{name:"size",options:c={...z,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 ev(e,l),d=el(r),f=eu(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=ey(u.left,0),p=ey(u.right,0),m=ey(u.top,0),v=ey(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:ey(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:ey(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let x=await o.getDimensions(a.floating);return y.width!==x.width||y.height!==x.height?{reset:{rects:!0}}:{}}},hi({arrowWidth:R,arrowHeight:D}),w?eC({strategy:"referenceHidden"}):void 0].filter(ht)});(0,A.b)(()=>{I(S.anchor)},[I,S.anchor]);let Y=null!==H&&null!==U,[G,K]=ho(W),X=(0,li.W)(j);(0,A.b)(()=>{Y&&(null==X||X())},[Y,X]);let Q=null===(i=q.arrow)||void 0===i?void 0:i.x,J=null===(o=q.arrow)||void 0===o?void 0:o.y,ee=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=(0,b.useState)();(0,A.b)(()=>{O&&en(window.getComputedStyle(O).zIndex)},[O]);let{hasParent:er,positionUpdateFns:ei}=f7(f3,d),eo=!er;(0,b.useLayoutEffect)(()=>{if(!eo)return ei.add($),()=>{ei.delete($)}},[eo,ei,$]),(0,A.b)(()=>{eo&&Y&&Array.from(ei).reverse().forEach(e=>requestAnimationFrame(e))},[eo,Y,ei]);let ea={"data-side":G,"data-align":K,..._,ref:M,style:{..._.style,animation:Y?void 0:"none",opacity:null!==(s=q.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,b.createElement)("div",{ref:Z,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:Y?`translate3d(${Math.round(H)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,b.createElement)(f5,{scope:d,placedSide:G,onArrowChange:T,arrowX:Q,arrowY:J,shouldHideArrow:ee},eo?(0,b.createElement)(f8,{scope:d,hasParent:!0,positionUpdateFns:ei},(0,b.createElement)(fK.div,ea)):(0,b.createElement)(fK.div,ea)))}),he={top:"bottom",right:"left",bottom:"top",left:"right"};function ht(e){return void 0!==e}function hn(e){return null!==e}let hr=()=>({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`),{}}}),hi=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]=ho(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="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function ho(e){let[t,n="center"]=e.split("-");return[t,n]}let ha=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,b.useState)(null);return(0,b.createElement)(f1,{scope:t,anchor:r,onAnchorChange:i},n)},hs=(0,b.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?e6.createPortal((0,b.createElement)(fK.div,(0,E.Z)({},i,{ref:t})),r):null}),hl="dismissableLayer.update",hu=(0,b.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hc=(0,b.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,b.useContext)(hu),[f,h]=(0,b.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,b.useState)({}),v=(0,k.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),w=f?g.indexOf(f):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,_=w>=x,S=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,li.W)(e),r=(0,b.useRef)(!1),i=(0,b.useRef)(()=>{});return(0,b.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hf("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));!_||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),C=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,li.W)(e),r=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hf("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,n=[...d.branches].some(e=>e.contains(t));n||(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,li.W)(e);(0,b.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=w===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,b.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),hd(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,b.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hd())},[f,d]),(0,b.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hl,e),()=>document.removeEventListener(hl,e)},[]),(0,b.createElement)(fK.div,(0,E.Z)({},c,{ref:v,style:{pointerEvents:j?_?"auto":"none":void 0,...e.style},onFocusCapture:(0,O.M)(e.onFocusCapture,C.onFocusCapture),onBlurCapture:(0,O.M)(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:(0,O.M)(e.onPointerDownCapture,S.onPointerDownCapture)}))});function hd(){let e=new CustomEvent(hl);document.dispatchEvent(e)}function hf(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,e6.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hh="HoverCard",[hp,hm]=(0,j.b)(hh,[f0]),hv=f0(),[hg,hy]=hp(hh),hx=(0,b.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hy("HoverCardTrigger",n),o=hv(n);return(0,b.createElement)(f4,(0,E.Z)({asChild:!0},o),(0,b.createElement)(fK.a,(0,E.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,O.M)(e.onPointerEnter,hS(i.onOpen)),onPointerLeave:(0,O.M)(e.onPointerLeave,hS(i.onClose)),onFocus:(0,O.M)(e.onFocus,i.onOpen),onBlur:(0,O.M)(e.onBlur,i.onClose),onTouchStart:(0,O.M)(e.onTouchStart,e=>e.preventDefault())})))}),hb="HoverCardPortal",[hw,hE]=hp(hb,{forceMount:void 0}),hj="HoverCardContent",hk=(0,b.forwardRef)((e,t)=>{let n=hE(hj,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hy(hj,e.__scopeHoverCard);return(0,b.createElement)(P.z,{present:r||o.open},(0,b.createElement)(h_,(0,E.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,O.M)(e.onPointerEnter,hS(o.onOpen)),onPointerLeave:(0,O.M)(e.onPointerLeave,hS(o.onClose)),ref:t})))}),h_=(0,b.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hy(hj,n),c=hv(n),d=(0,b.useRef)(null),f=(0,k.e)(t,d),[h,p]=(0,b.useState)(!1);return(0,b.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,b.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(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,b.useEffect)(()=>{if(d.current){let e=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);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,b.createElement)(hc,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,O.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,b.createElement)(f9,(0,E.Z)({},c,l,{onPointerDown:(0,O.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 hS(e){return t=>"touch"===t.pointerType?void 0:e()}let hO=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hv(t),u=(0,b.useRef)(0),c=(0,b.useRef)(0),d=(0,b.useRef)(!1),f=(0,b.useRef)(!1),[h=!1,p]=(0,C.T)({prop:r,defaultProp:i,onChange:o}),m=(0,b.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,b.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,b.useCallback)(()=>p(!1),[p]);return(0,b.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,b.createElement)(hg,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,b.createElement)(ha,l,n))},hC=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hy(hb,t);return(0,b.createElement)(hw,{scope:t,forceMount:n},(0,b.createElement)(P.z,{present:n||o.open},(0,b.createElement)(hs,{asChild:!0,container:i},r)))},hM=(0,ea.j)([s6,"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"]),hA=(0,ea.cx)(tY(),"max-w-sm","py-0.5","px-1"),hP={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},hT=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=s1({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(hO,{open:l,onOpenChange:u,...i,children:[n&&(0,x.jsx)(hx,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:l?(0,x.jsx)(hC,{forceMount:!0,children:(0,x.jsx)(hk,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,x.jsx)(s0.div,{variants:hP,initial:"init",animate:"show",exit:"exit",className:hM(),children:(0,x.jsx)("div",{className:(0,ea.cx)(hA,a),children:r})})})}):null})]})});function hN(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,b.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,b.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,b.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,b.useMemo)(()=>a,Object.values(a));return(0,b.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,b.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),o=i[`__scope${r}`];return{...t,...o}},{});return(0,b.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function hR(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 hD(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function hL(...e){return(0,b.useCallback)(hD(...e),e)}let hF=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(hI);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:b.Children.count(e)>1?b.Children.only(null):(0,b.isValidElement)(e)?e.props.children:null);return(0,b.createElement)(hV,(0,E.Z)({},r,{ref:t}),(0,b.isValidElement)(e)?(0,b.cloneElement)(e,void 0,n):null)}return(0,b.createElement)(hV,(0,E.Z)({},r,{ref:t}),n)});hF.displayName="Slot";let hV=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,b.isValidElement)(n)?(0,b.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?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?hD(t,n.ref):n.ref}):b.Children.count(n)>1?b.Children.only(null):null});hV.displayName="SlotClone";let hz=({children:e})=>(0,b.createElement)(b.Fragment,null,e);function hI(e){return(0,b.isValidElement)(e)&&e.type===hz}let hZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,b.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hF:t;return(0,b.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,b.createElement)(o,(0,E.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function hB(e){let t=(0,b.useRef)(e);return(0,b.useEffect)(()=>{t.current=e}),(0,b.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let hH=(null==globalThis?void 0:globalThis.document)?b.useLayoutEffect:()=>{},hU=e=>{let{present:t,children:n}=e,r=function(e){var t;let[n,r]=(0,b.useState)(),i=(0,b.useRef)({}),o=(0,b.useRef)(e),a=(0,b.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,b.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},s));return(0,b.useEffect)(()=>{let e=hW(i.current);a.current="mounted"===l?e:"none"},[l]),hH(()=>{let t=i.current,n=o.current,r=n!==e;if(r){let r=a.current,i=hW(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]),hH(()=>{if(n){let e=e=>{let t=hW(i.current),r=t.includes(e.animationName);e.target===n&&r&&(0,e6.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=hW(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,b.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):b.Children.only(n),o=hL(r.ref,i.ref),a="function"==typeof n;return a||r.isPresent?(0,b.cloneElement)(i,{ref:o}):null};function hW(e){return(null==e?void 0:e.animationName)||"none"}hU.displayName="Presence";let hq=w["useId".toString()]||(()=>void 0),h$=0;function hY(e){let t=e+"CollectionProvider",[n,r]=hN(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=b.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=hL(t,i.collectionRef);return b.createElement(hF,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=b.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=b.useRef(null),s=hL(t,a),c=o(l,n);return b.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),b.createElement(hF,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=b.useRef(null),o=b.useRef(new Map).current;return b.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=b.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}let hG="dismissableLayer.update",hK=(0,b.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hX=(0,b.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,b.useContext)(hK),[f,h]=(0,b.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,b.useState)({}),v=hL(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),w=f?g.indexOf(f):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,k=w>=x,_=function(e,t=null==globalThis?void 0:globalThis.document){let n=hB(e),r=(0,b.useRef)(!1),i=(0,b.useRef)(()=>{});return(0,b.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hJ("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));!k||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),S=function(e,t=null==globalThis?void 0:globalThis.document){let n=hB(e),r=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hJ("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,n=[...d.branches].some(e=>e.contains(t));n||(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=hB(e);(0,b.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=w===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,b.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),hQ(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,b.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hQ())},[f,d]),(0,b.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hG,e),()=>document.removeEventListener(hG,e)},[]),(0,b.createElement)(hZ.div,(0,E.Z)({},c,{ref:v,style:{pointerEvents:j?k?"auto":"none":void 0,...e.style},onFocusCapture:hR(e.onFocusCapture,S.onFocusCapture),onBlurCapture:hR(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:hR(e.onPointerDownCapture,_.onPointerDownCapture)}))});function hQ(){let e=new CustomEvent(hG);document.dispatchEvent(e)}function hJ(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,e6.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,b.createElement)(hZ.span,(0,E.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 h0="NavigationMenu",[h1,h2,h4]=hY(h0),[h3,h5,h6]=hY(h0),[h8,h7]=hN(h0,[h4,h6]),[h9,pe]=h8(h0),[pt,pn]=h8(h0),[pr,pi]=h8("NavigationMenuItem"),po=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pe("NavigationMenuIndicator",n),o=h2(n),[a,s]=(0,b.useState)(null),[l,u]=(0,b.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,b.useEffect)(()=>{var e;let t=o(),n=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;n&&s(n)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pd(a,f),pd(i.indicatorTrack,f),l?(0,b.createElement)(hZ.div,(0,E.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"),pa=((e,t)=>{let n=pe(po,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return hH(()=>{r(e.value,{ref:t,...e})},[e,t,r]),hH(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),ps=(0,b.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=pe(po,n),d=(0,b.useRef)(null),f=hL(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=h2(n),v=(0,b.useRef)(null),{onItemDismiss:g}=c;(0,b.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(pa,t),()=>e.removeEventListener(pa,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,b.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let n=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=r===c.value,a=i===t.indexOf(r);if(!o&&!a)return v.current;let s=(()=>{if(n!==i){if(o&&-1!==i)return n>i?"from-end":"from-start";if(a&&-1!==n)return n>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,r]);return(0,b.createElement)(pl,{asChild:!0},(0,b.createElement)(hX,(0,E.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pa,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:hR(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:hR(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:hR(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,n="Tab"===e.key&&!t;if(n){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),n=document.activeElement,i=t.findIndex(e=>e===n),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(pc(s))e.preventDefault();else{var r;null===(r=o.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:hR(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pl=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=pe("NavigationMenuViewport",n),a=hL(t,o.onViewportChange),s=pn(po,e.__scopeNavigationMenu),[l,u]=(0,b.useState)(null),[c,d]=(0,b.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 pd(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,b.createElement)(hZ.div,(0,E.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:hR(e.onPointerEnter,o.onContentEnter),onPointerLeave:hR(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,b.createElement)(hU,{key:e,present:n||i},(0,b.createElement)(ps,(0,E.Z)({},r,{ref:hD(t,e=>{i&&e&&d(e)})})))}))},(0,b.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pe("FocusGroup",n);return(0,b.createElement)(h3.Provider,{scope:n},(0,b.createElement)(h3.Slot,{scope:n},(0,b.createElement)(hZ.div,(0,E.Z)({dir:i.dir},r,{ref:t}))))})),pu=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=h5(n),o=pe("FocusGroupItem",n);return(0,b.createElement)(h3.ItemSlot,{scope:n},(0,b.createElement)(hZ.button,(0,E.Z)({},r,{ref:t,onKeyDown:hR(e.onKeyDown,e=>{let t=["Home","End",...pu].includes(e.key);if(t){let t=i().map(e=>e.ref.current),n="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([n,"ArrowUp","End"].includes(e.key)&&t.reverse(),pu.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>pc(t)),e.preventDefault()}})})))};function pc(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pd(e,t){let n=hB(t);hH(()=>{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 pf=n(38617);let ph=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(dX,{...r,ref:t,className:(0,ea.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 pp(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,pf.F)();return(0,x.jsxs)(dK,{value:i,tabIndex:r,className:(0,ea.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,x.jsx)(ph,{value:"system",children:(0,x.jsx)(s7,{className:n,sideOffset:16,content:"System",children:(0,x.jsx)(lt.$Iz,{})})}),(0,x.jsx)(ph,{value:"light",children:(0,x.jsx)(s7,{className:n,sideOffset:16,content:"Light",children:(0,x.jsx)(lt.JaG,{})})}),(0,x.jsx)(ph,{value:"dark",children:(0,x.jsx)(s7,{className:n,sideOffset:16,content:"Dark",children:(0,x.jsx)(lt.osk,{})})})]})}var pm=n(14582),pv=n(63739),pg=n(13980),py=n.n(pg),px=n(72779),pb=n.n(px),pw=n(47440),pE=n(59309),pj=n(19067),pk=n(71220),p_=n(28142);function pS(e){return"bandwidth"in e?e.bandwidth():0}var pO=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function pC(){return(pC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pO),g=null!=m?m:(0,pk.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+pS(r)/2,x=g.map(function(e,t){var n,o=(null!=(n=(0,p_.Z)(r(e)))?n:0)+y;return{index:t,from:new pj.Z({x:0,y:o}),to:new pj.Z({x:i,y:o})}});return b.createElement(pE.Z,{className:pb()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:x}):x.map(function(e){var t=e.from,n=e.to,r=e.index;return b.createElement(pw.default,pC({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}pM.propTypes={tickValues:py().array,width:py().number.isRequired};var pA=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function pP(){return(pP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pA),g=null!=p?p:(0,pk.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+pS(r)/2,x=g.map(function(e,t){var n,o=(null!=(n=(0,p_.Z)(r(e)))?n:0)+y;return{index:t,from:new pj.Z({x:o,y:0}),to:new pj.Z({x:o,y:i})}});return b.createElement(pE.Z,{className:pb()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:x}):x.map(function(e){var t=e.from,n=e.to,r=e.index;return b.createElement(pw.default,pP({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}pT.propTypes={tickValues:py().array,height:py().number.isRequired};var pN=n(64183),pR=n(8597);function pD(e){var t=e.id,n=e.width,r=e.height,i=e.children;return b.createElement("defs",null,b.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}pD.propTypes={id:py().string.isRequired,width:py().number.isRequired,height:py().number.isRequired,children:py().node.isRequired};var pL={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function pF(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 b.createElement(pD,{id:t,width:n,height:r},!!h&&b.createElement("rect",{className:pb()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return b.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:pb()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case pL.horizontal:return"M 0,"+t/2+" l "+t+",0";case pL.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 pL.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 pL.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}pF.propTypes={id:py().string.isRequired,width:py().number.isRequired,height:py().number.isRequired,className:py().string,background:py().string,stroke:py().string,strokeWidth:py().oneOfType([py().number,py().string]),strokeDasharray:py().oneOfType([py().string,py().number]),strokeLinecap:py().oneOf(["square","butt","round","inherit"]),shapeRendering:py().oneOfType([py().string,py().number]),orientation:py().array};var pV=["tooltipOpen"];function pz(){return(pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pI);return b.createElement("div",pZ({ref:t,className:pb()("visx-tooltip",n),style:pZ({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function pU(){return(pU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pG),g=!1,y=!1;if(u&&l){var x=void 0===r?0:r,w=void 0===f?0:f;if(l.width){var E=x+o+u.width-l.width,j=u.width-x-o;g=E>0&&E>j}else{var k=x+o+u.width-window.innerWidth,_=u.width-x-o;g=k>0&&k>_}if(l.height){var S=w+s+u.height-l.height,O=u.height-w-s;y=S>0&&S>O}else y=w+s+u.height>window.innerHeight;x=g?x-u.width-o:x+o,w=y?w-u.height-s:w+s,t="translate("+(x=Math.round(x))+"px, "+(w=Math.round(w))+"px)"}return b.createElement(pH,pK({ref:m,style:pK({left:0,top:0,transform:t},!p&&d)},v),b.createElement(pY,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},n))}pX.propTypes={nodeRef:py().oneOfType([py().string,py().func,py().object])};var pQ=((EU=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=b.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,pW(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:e6.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():pq,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():pq}},n.render=function(){return b.createElement(pX,pU({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(b.PureComponent)).displayName="withBoundingRects("+(pX.displayName||"")+")",EU),pJ=n(99985);function p0(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 p9({},t,{isBrushing:!0,extent:p9({},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=p9({},e,{isBrushing:!1,start:p9({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:p9({},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,me(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 b.createElement(pJ.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 b.createElement("g",null,h&&b.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:mt}),b.createElement("rect",p9({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}(b.Component);function mr(){return(mr=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 mr({},e,{isBrushing:!0,extent:mr({},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 mr({},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=mr({},c);r&&r(c),n.updateBrush(function(t){return mr({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?p2(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 mr({},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=mr({},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=mr({},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,mi(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,x=i.renderBrushHandle,w=this.state.brushingType,E=this.handles(),j=this.corners(),k=this.getBrushWidth(),_=this.getBrushHeight(),S=new Set(p);return b.createElement(pE.Z,{className:"visx-brush",top:o,left:a},b.createElement(pJ.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===w:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return b.createElement(pm.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,md),g=o,y=s,x=a,w=l;return void 0!==m&&!m||g||y||x||w||(g="0",y="0",x="0",w="1"),b.createElement("defs",null,b.createElement("linearGradient",mf({id:n,x1:g,y1:x,x2:y,y2:w,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&b.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&b.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}function mp(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function mm(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function mv(){return 0}function mg(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}mh.propTypes={id:py().string.isRequired,from:py().string,to:py().string,x1:py().oneOfType([py().string,py().number]),x2:py().oneOfType([py().string,py().number]),y1:py().oneOfType([py().string,py().number]),y2:py().oneOfType([py().string,py().number]),fromOffset:py().oneOfType([py().string,py().number]),fromOpacity:py().oneOfType([py().string,py().number]),toOffset:py().oneOfType([py().string,py().number]),toOpacity:py().oneOfType([py().string,py().number]),rotate:py().oneOfType([py().string,py().number]),transform:py().string,children:py().node,vertical:py().bool};var mx=n(12436),mb=n.n(mx),mw=n(55746),mE=n(45742),mj=n(27266),mk=["id","markerWidth","markerHeight","markerUnits","children"];function m_(){return(m_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mk);return b.createElement("defs",null,b.createElement("marker",m_({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}mS.propTypes={id:py().string.isRequired,size:py().number,markerWidth:py().oneOfType([py().string,py().number]),markerHeight:py().oneOfType([py().string,py().number]),markerUnits:py().string,refX:py().oneOfType([py().string,py().number]),refY:py().oneOfType([py().string,py().number]),strokeWidth:py().number,children:py().node.isRequired};var mO=["id","size","strokeWidth"];function mC(){return(mC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mO),s=2*r+o,l=s/2;return b.createElement(mS,mC({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),b.createElement("circle",{r:r,cx:l,cy:l}))}var mA=n(64170),mP={top:"top",left:"left",bottom:"bottom"};function mT(){return(mT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mI),k=null!=g?g:"tickFormat"in v?v.tickFormat():mF.Z,_=h===mP.left,S=h===mP.top,O=S||h===mP.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}(v),M=_||S?-1:1,A=v.range(),P=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:mz({start:0,end:0},t)),T=mV({x:Number(A[0])+.5-P.start,y:0},O),N=mV({x:Number(A[A.length-1])+.5+P.end,y:0},O),R=(null!=w?w:(0,pk.Z)(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),D=R.map(function(e){var t=e.value,n=e.index,r=(0,p_.Z)(C(t));return{value:t,index:n,from:mV({x:r,y:0},O),to:mV({x:r,y:x*M},O),formattedValue:k(t,n,R)}});return b.createElement(pE.Z,{className:pb()("visx-axis",i),top:void 0===E?0:E,left:void 0===u?0:u},r(mZ({},j,{axisFromPoint:T,axisToPoint:N,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:O,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:k,tickLength:x,tickPosition:C,tickSign:M,ticks:D})))}var mH=["axisClassName","labelOffset","tickLabelProps","tickLength"];function mU(){return(mU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mH);return b.createElement(mB,mU({axisClassName:pb()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:mP.bottom,tickLabelProps:void 0===r?mW:r,tickLength:void 0===i?8:i},o))}var m$=["axisClassName","labelOffset","tickLabelProps","tickLength"];function mY(){return(mY=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m$);return b.createElement(mB,mY({axisClassName:pb()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:mP.left,tickLabelProps:void 0===r?mG:r,tickLength:void 0===i?8:i},o))}let mX=e=>new Date((null==e?void 0:e.timestamp)||0),mQ=e=>(null==e?void 0:e.value)||0,mJ="var(--colors-hiContrast)",m0={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:mJ},m1={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:mJ};function m2(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,x.jsxs)(pE.Z,{left:d||o.left,top:c||o.top,children:[(0,x.jsx)(mM,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,x.jsx)(mh,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,x.jsx)(mw.Z,{data:t,x:e=>a(mX(e))||0,y:e=>s(mQ(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?mE.ZP:mj.Z}),!l&&(0,x.jsx)(mq,{top:i,scale:a,numTicks:r>520?10:5,stroke:mJ,tickStroke:mJ,tickLabelProps:()=>m0}),!u&&(0,x.jsx)(mK,{scale:s,numTicks:5,stroke:mJ,tickStroke:mJ,tickLabelProps:()=>m1}),h]})}var m4=n(6692);let m3={inherit:m4.inherit,current:m4.current,transparent:m4.transparent,black:m4.black,white:m4.white,slate:m4.slate,zinc:m4.zinc,neutral:m4.neutral,stone:m4.stone,red:m4.red,orange:m4.orange,amber:m4.amber,yellow:m4.yellow,lime:m4.lime,green:m4.green,emerald:m4.emerald,teal:m4.teal,cyan:m4.cyan,sky:m4.sky,blue:m4.blue,indigo:m4.indigo,violet:m4.violet,purple:m4.purple,fuchsia:m4.fuchsia,pink:m4.pink,rose:m4.rose,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 m5=n(96206);let m6={top:10,bottom:15,left:10,right:10},m8="brush_pattern",m7="brush_gradient",m9=mb()(e=>e(),15),ve=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(imp(e(t),n),r=(t,n)=>e(t)-n):(t=e===mp||e===mm?e:mv,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===EW&&(EW={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===Eq&&(Eq=function(e,t){return b.createElement("div",t,e)});var vt=n(70390),vn=n(3440),vr=n.n(vn);function vi(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:w,renderTooltipGlyph:E,renderLineSeries:j,sharedTooltip:k,showHorizontalCrosshair:_,showTooltip:S,showVerticalCrosshair:O,snapTooltipToDatum:C,stackOffset:M,margin:A,theme:P,xAxisOrientation:T,yAxisOrientation:N,AreaSeries:R,AreaStack:D,Axis:L,BarGroup:F,BarSeries:V,BarStack:z,Grid:I,LineSeries:Z,Tooltip:B,XYChart:H}=e;return(0,x.jsxs)(H,{theme:P.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:A,captureEvents:!0,children:[(0,x.jsx)("g",{children:(0,x.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,x.jsx)(mh,{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,x.jsxs)(b.Fragment,{children:[(0,x.jsx)(pF,{id:"pattern-".concat(vo(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,x.jsx)(mh,{id:"gradient-".concat(vo(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,x.jsx)(I,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),y&&(0,x.jsx)(z,{offset:M,children:c.map(e=>(0,x.jsx)(V,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>va(t,e,l)},e))}),g&&(0,x.jsx)(F,{children:c.map(e=>(0,x.jsx)(V,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>va(t,e,l)},e))}),m&&(0,x.jsx)(x.Fragment,{children:c.map(e=>(0,x.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:va(t,e,l),fill:va(t,e,l),curve:a},e))}),v&&(0,x.jsx)(D,{curve:a,offset:M,renderLine:"wiggle"!==M,children:c.map(e=>(0,x.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:va(t,e,l),fill:va(t,e,l)},e))}),j&&(0,x.jsx)(x.Fragment,{children:c.map(e=>{var t,n;return(0,x.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:a},e)})}),(0,x.jsx)(L,{orientation:T,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,m5.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:P.labels.color,fontFamily:P.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,x.jsx)(L,{label:null==M?"SC":"expand"===M?"Fraction of total":"",orientation:N,numTicks:p,tickLength:0,rangePadding:0,animationTrajectory:o,tickFormat:()=>""},"temp-axis-".concat(o)),S&&(0,x.jsx)(B,{showHorizontalCrosshair:_,showVerticalCrosshair:O,snapTooltipToDatumX:C,snapTooltipToDatumY:C,showDatumGlyph:C&&!g,showSeriesGlyphs:k&&!g,renderGlyph:w?E: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=k?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,m5.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=vr()(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,x.jsxs)("div",{className:(0,ea.cx)(s6,"flex flex-col gap-2 py-1"),children:[(0,x.jsx)(tq,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,x.jsx)(c_,{color:"panel",className:"w-full"}),(0,x.jsx)("div",{className:(0,ea.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;return(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,x.jsx)(tq,{weight:"semibold",children:t}),(0,x.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,s;let{key:u}=e,c=o&&i.y[u](o);return(0,x.jsxs)(b.Fragment,{children:[(0,x.jsx)(tq,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[u])||void 0===t?void 0:t.color},className:(0,ea.cx)(a===u?"underline":""),children:(null===(s=l.data)||void 0===s?void 0:null===(r=s[u])||void 0===r?void 0:r.label)||u}),(0,x.jsx)(tq,{size:"12",style:{textAlign:"end"},className:(0,ea.cx)(a===u?"underline":""),children:null==c||Number.isNaN(c)?"–":l.format(c)})]},u)}),n.length>1&&f&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tq,{className:"pt-2",children:"total"}),(0,x.jsx)(tq,{size:"12",weight:"bold",className:"pt-2 text-end",children:l.format(r)})]})]})]},t)})})]})}})]})}function vo(e,t){return"".concat(e,"-").concat(t)}function va(e,t,n){var r;let i=vo(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 vs=n(24037),vl=n(86707);function vu(e){var t=e.top,n=e.left,r=e.className,i=e.children;return b.createElement(pE.Z,{className:pb()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}vu.propTypes={top:py().number,left:py().number,className:py().string,children:py().node};var vc=["children","className","top","left","size"];function vd(){return(vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vc),s=(0,vs.Z)();return(s.type(vl.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?b.createElement(b.Fragment,null,t({path:s})):b.createElement(vu,{top:r,left:i},b.createElement("path",vd({className:pb()("visx-glyph-star",n),d:s()||""},a)))}vf.propTypes={children:py().func,className:py().string,top:py().number,left:py().number,size:py().oneOfType([py().number,py().func])};var vh=["top","left","className"];function vp(){return(vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vh);return b.createElement(vu,{top:void 0===t?0:t,left:void 0===n?0:n},b.createElement("circle",vp({className:pb()("visx-glyph-dot",r)},i)))}vm.propTypes={className:py().string,top:py().number,left:py().number,r:py().number,cx:py().number,cy:py().number};var vv=n(9135),vg=["children","className","top","left","size"];function vy(){return(vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vg),s=(0,vs.Z)();return(s.type(vv.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?b.createElement(b.Fragment,null,t({path:s})):b.createElement(vu,{top:r,left:i},b.createElement("path",vy({className:pb()("visx-glyph-cross",n),d:s()||""},a)))}vx.propTypes={children:py().func,className:py().string,top:py().number,left:py().number,size:py().oneOfType([py().number,py().func])};var vb=n(46385),vw=n(20651),vE={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"]},vj=vE.gray,vk=vj[7],v_=[vE.cyan[9],vE.cyan[3],vE.yellow[5],vE.red[4],vE.grape[8],vE.grape[5],vE.pink[9]];function vS(){return(vS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)vP(e,n,{get:t[n],enumerable:!0})})(vT,{assign:()=>ge,colors:()=>v8,createStringInterpolator:()=>EG,skipAnimation:()=>v7,to:()=>EK,willAdvance:()=>v9});var vN=vG(),vR=e=>vW(e,vN),vD=vG();vR.write=e=>vW(e,vD);var vL=vG();vR.onStart=e=>vW(e,vL);var vF=vG();vR.onFrame=e=>vW(e,vF);var vV=vG();vR.onFinish=e=>vW(e,vV);var vz=[];vR.setTimeout=(e,t)=>{let n=vR.now()+t,r=()=>{let e=vz.findIndex(e=>e.cancel==r);~e&&vz.splice(e,1),vH-=~e?1:0},i={time:n,handler:e,cancel:r};return vz.splice(vI(n),0,i),vH+=1,vq(),i};var vI=e=>~(~vz.findIndex(t=>t.time>e)||~vz.length);vR.cancel=e=>{vL.delete(e),vF.delete(e),vV.delete(e),vN.delete(e),vD.delete(e)},vR.sync=e=>{vU=!0,vR.batchedUpdates(e),vU=!1},vR.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,vR.onStart(n)}return r.handler=e,r.cancel=()=>{vL.delete(n),t=null},r};var vZ="undefined"!=typeof window?window.requestAnimationFrame:()=>{};vR.use=e=>vZ=e,vR.now="undefined"!=typeof performance?()=>performance.now():Date.now,vR.batchedUpdates=e=>e(),vR.catch=console.error,vR.frameLoop="always",vR.advance=()=>{"demand"!==vR.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):vY()};var vB=-1,vH=0,vU=!1;function vW(e,t){vU?(t.delete(e),e(0)):(t.add(e),vq())}function vq(){vB<0&&(vB=0,"demand"!==vR.frameLoop&&vZ(v$))}function v$(){~vB&&(vZ(v$),vR.batchedUpdates(vY))}function vY(){let e=vB;vB=vR.now();let t=vI(vB);if(t&&(vK(vz.splice(0,t),e=>e.handler()),vH-=t),!vH){vB=-1;return}vL.flush(),vN.flush(e?Math.min(64,vB-e):16.667),vF.flush(),vD.flush(),vV.flush()}function vG(){let e=new Set,t=e;return{add(n){vH+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(vH-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,vH-=t.size,vK(t,t=>t(n)&&e.add(t)),vH+=e.size,t=e)}}}function vK(e,t){e.forEach(e=>{try{t(e)}catch(e){vR.catch(e)}})}function vX(){}var vQ=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),vJ={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 v0(e,t){if(vJ.arr(e)){if(!vJ.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function v2(e,t,n){if(vJ.arr(e)){for(let r=0;rvJ.und(e)?[]:vJ.arr(e)?e:[e];function v3(e,t){if(e.size){let n=Array.from(e);e.clear(),v1(n,t)}}var v5=(e,...t)=>v3(e,e=>e(...t)),v6=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),v8=null,v7=!1,v9=vX,ge=e=>{e.to&&(EK=e.to),e.now&&(vR.now=e.now),void 0!==e.colors&&(v8=e.colors),null!=e.skipAnimation&&(v7=e.skipAnimation),e.createStringInterpolator&&(EG=e.createStringInterpolator),e.requestAnimationFrame&&vR.use(e.requestAnimationFrame),e.batchedUpdates&&(vR.batchedUpdates=e.batchedUpdates),e.willAdvance&&(v9=e.willAdvance),e.frameLoop&&(vR.frameLoop=e.frameLoop)},gt=new Set,gn=[],gr=[],gi=0,go={get idle(){return!gt.size&&!gn.length},start(e){gi>e.priority?(gt.add(e),vR.onStart(ga)):(gs(e),vR(gu))},advance:gu,sort(e){if(gi)vR.onFrame(()=>go.sort(e));else{let t=gn.indexOf(e);~t&&(gn.splice(t,1),gl(e))}},clear(){gn=[],gt.clear()}};function ga(){gt.forEach(gs),gt.clear(),vR(gu)}function gs(e){gn.includes(e)||gl(e)}function gl(e){gn.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(gn,t=>t.priority>e.priority),0,e)}function gu(e){let t=gr;for(let n=0;n0}var gc="[-+]?\\d*\\.?\\d+",gd=gc+"%";function gf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var gh=RegExp("rgb"+gf(gc,gc,gc)),gp=RegExp("rgba"+gf(gc,gc,gc,gc)),gm=RegExp("hsl"+gf(gc,gd,gd)),gv=RegExp("hsla"+gf(gc,gd,gd,gc)),gg=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gy=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gx=/^#([0-9a-fA-F]{6})$/,gb=/^#([0-9a-fA-F]{8})$/;function gw(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 gE(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=gw(i,r,e+1/3),a=gw(i,r,e),s=gw(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function gj(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function gk(e){let t=parseFloat(e);return(t%360+360)%360/360}function g_(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function gS(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function gO(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gx.exec(e))?parseInt(t[1]+"ff",16)>>>0:v8&&void 0!==v8[e]?v8[e]:(t=gh.exec(e))?(gj(t[1])<<24|gj(t[2])<<16|gj(t[3])<<8|255)>>>0:(t=gp.exec(e))?(gj(t[1])<<24|gj(t[2])<<16|gj(t[3])<<8|g_(t[4]))>>>0:(t=gg.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=gb.exec(e))?parseInt(t[1],16)>>>0:(t=gy.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gm.exec(e))?(255|gE(gk(t[1]),gS(t[2]),gS(t[3])))>>>0:(t=gv.exec(e))?(gE(gk(t[1]),gS(t[2]),gS(t[3]))|g_(t[4]))>>>0:null;if(null===n)return e;n=n||0;let r=(4278190080&n)>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var gC=(e,t,n)=>{if(vJ.fun(e))return e;if(vJ.arr(e))return gC({range:e,output:t,extrapolate:n});if(vJ.str(e.output[0]))return EG(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)}},gM=Symbol.for("FluidValue.get"),gA=Symbol.for("FluidValue.observers"),gP=e=>!!(e&&e[gM]),gT=e=>e&&e[gM]?e[gM]():e,gN=e=>e[gA]||null;function gR(e,t){let n=e[gA];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var gD=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");gL(this,e)}},gL=(e,t)=>gz(e,gM,t);function gF(e,t){if(e[gM]){let n=e[gA];n||gz(e,gA,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function gV(e,t){let n=e[gA];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[gA]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var gz=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),gI=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,gZ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,gB=RegExp(`(${gI.source})(%|[a-z]+)`,"i"),gH=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,gU=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,gW=e=>{let[t,n]=gq(e);if(!t||v6())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&&gU.test(n))return gW(n);else if(n)return n;return e},gq=e=>{let t=gU.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},g$=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,gY=e=>{EX||(EX=v8?RegExp(`(${Object.keys(v8).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>gT(e).replace(gU,gW).replace(gZ,gO).replace(EX,gO)),n=t.map(e=>e.match(gI).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]})),i=r.map(t=>gC({...e,output:t}));return e=>{let n=!gB.test(t[0])&&t.find(e=>gB.test(e))?.replace(gI,""),r=0;return t[0].replace(gI,()=>`${i[r++](e)}${n||""}`).replace(gH,g$)}},gG="react-spring: ",gK=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${gG}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},gX=gK(console.warn),gQ=gK(console.warn);function gJ(e){return vJ.str(e)&&("#"==e[0]||/\d/.test(e)||!v6()&&gU.test(e)||e in(v8||{}))}var g0=v6()?b.useEffect:b.useLayoutEffect,g1=()=>{let e=(0,b.useRef)(!1);return g0(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function g2(){let e=(0,b.useState)()[1],t=g1();return()=>{t.current&&e(Math.random())}}var g4=e=>(0,b.useEffect)(e,g3),g3=[];function g5(e){let t=(0,b.useRef)();return(0,b.useEffect)(()=>{t.current=e}),t.current}var g6=Symbol.for("Animated:node"),g8=e=>!!e&&e[g6]===e,g7=e=>e&&e[g6],g9=(e,t)=>vQ(e,g6,t),ye=e=>e&&e[g6]&&e[g6].getPayload(),yt=class{constructor(){g9(this,this)}getPayload(){return this.payload||[]}},yn=class extends yt{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,vJ.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yn(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return vJ.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,vJ.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},yr=class extends yn{constructor(e){super(0),this._string=null,this._toString=gC({output:[e,e]})}static create(e){return new yr(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(vJ.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=gC({output:[this.getValue(),e]})),this._value=0,super.reset()}},yi={dependencies:null},yo=class extends yt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return v2(this.source,(n,r)=>{g8(n)?t[r]=n.getValue(e):gP(n)?t[r]=gT(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&v1(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return v2(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yi.dependencies&&gP(e)&&yi.dependencies.add(e);let t=ye(e);t&&v1(t,e=>this.add(e))}},ya=class extends yo{constructor(e){super(e)}static create(e){return new ya(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(ys)),!0)}};function ys(e){let t=gJ(e)?yr:yn;return t.create(e)}function yl(e){let t=g7(e);return t?t.constructor:vJ.arr(e)?ya:gJ(e)?yr:yn}var yu=(e,t)=>{let n=!vJ.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,b.forwardRef)((r,i)=>{let o=(0,b.useRef)(null),a=n&&(0,b.useCallback)(e=>{o.current=(i&&(vJ.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return yi.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yo(e),yi.dependencies=null,[e,n]}(r,t),u=g2(),c=()=>{let e=o.current;if(n&&!e)return;let r=!!e&&t.applyAnimatedValues(e,s.getValue(!0));!1===r&&u()},d=new yc(c,l),f=(0,b.useRef)();g0(()=>(f.current=d,v1(l,e=>gF(e,d)),()=>{f.current&&(v1(f.current.deps,e=>gV(e,f.current)),vR.cancel(f.current.update))})),(0,b.useEffect)(c,[]),g4(()=>()=>{let e=f.current;v1(e.deps,t=>gV(t,e))});let h=t.getComponentProps(s.getValue());return b.createElement(e,{...h,ref:a})})},yc=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&vR.write(this.update)}},yd=Symbol.for("AnimatedComponent"),yf=e=>vJ.str(e)?e:e&&vJ.str(e.displayName)?e.displayName:vJ.fun(e)&&e.name||null;function yh(e,...t){return vJ.fun(e)?e(...t):e}var yp=(e,t)=>!0===e||!!(t&&e&&(vJ.fun(e)?e(t):v4(e).includes(t))),ym=(e,t)=>vJ.obj(e)?t&&e[t]:e,yv=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,yg=e=>e,yy=(e,t=yg)=>{let n=yx;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);vJ.und(n)||(r[i]=n)}return r},yx=["config","onProps","onStart","onChange","onPause","onResume","onRest"],yb={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 yw(e){let t=function(e){let t={},n=0;if(v2(e,(e,r)=>{!yb[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return v2(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function yE(e){return e=gT(e),vJ.arr(e)?e.map(yE):gJ(e)?vT.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yj(e){for(let t in e)return!0;return!1}function yk(e){return vJ.fun(e)||vJ.arr(e)&&vJ.obj(e[0])}function y_(e,t){e.ref?.delete(e),t?.delete(e)}function yS(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var yO={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},yC=class{constructor(){this.velocity=0,Object.assign(this,yO)}};function yM(e,t){if(vJ.und(t.decay)){let n=!vJ.und(t.tension)||!vJ.und(t.friction);!n&&vJ.und(t.frequency)&&vJ.und(t.damping)&&vJ.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var yA=[],yP=class{constructor(){this.changed=!1,this.values=yA,this.toValues=null,this.fromValues=yA,this.config=new yC,this.immediate=!1}};function yT(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=yp(n.cancel??r?.cancel,t);if(c)h();else{vJ.und(n.pause)||(i.paused=yp(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||yp(e,t)),l=yh(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-vR.now()}function f(){l>0&&!vT.skipAnimation?(i.delayed=!0,u=vR.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 yN=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?yL(e.get()):t.every(e=>e.noop)?yR(e.get()):yD(e.get(),t.every(e=>e.finished)),yR=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),yD=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),yL=e=>({value:e,cancelled:!0,finished:!1});function yF(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=yy(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)&&yL(r)||i!==n.asyncId&&yD(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new yz,a=new yI;return(async()=>{if(vT.skipAnimation)throw yV(n),a.result=yD(r,!1),c(a),a;p(o);let s=vJ.obj(e)?{...e}:{...t,to:e};s.parentId=i,v2(f,(e,t)=>{vJ.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(vT.skipAnimation)return yV(n),yD(r,!1);try{let t;t=vJ.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=yD(r.get(),!0,!1)}catch(e){if(e instanceof yz)d=e.result;else if(e instanceof yI)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 vJ.fun(a)&&vR.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function yV(e,t){v3(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var yz=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.")}},yI=class extends Error{constructor(){super("SkipAnimationSignal")}},yZ=e=>e instanceof yH,yB=1,yH=class extends gD{constructor(){super(...arguments),this.id=yB++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=g7(this);return e&&e.getValue()}to(...e){return vT.to(this,e)}interpolate(...e){return gX(`${gG}The "interpolate" function is deprecated in v9 (use "to" instead)`),vT.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){gR(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||go.sort(this),gR(this,{type:"priority",parent:this,priority:e})}},yU=Symbol.for("SpringPhase"),yW=e=>(1&e[yU])>0,yq=e=>(2&e[yU])>0,y$=e=>(4&e[yU])>0,yY=(e,t)=>t?e[yU]|=3:e[yU]&=-3,yG=(e,t)=>t?e[yU]|=4:e[yU]&=-5,yK=class extends yH{constructor(e,t){if(super(),this.animation=new yP,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,!vJ.und(e)||!vJ.und(t)){let n=vJ.obj(e)?{...e}:{...t,from:e};vJ.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(yq(this)||this._state.asyncTo)||y$(this)}get goal(){return gT(this.animation.to)}get velocity(){let e=g7(this);return e instanceof yn?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return yW(this)}get isAnimating(){return yq(this)}get isPaused(){return y$(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=ye(r.to);!a&&gP(r.to)&&(i=v4(gT(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==yr?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=vJ.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(vJ.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=!vJ.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),n=-(.001*o.friction)*t,i=(e+n)/o.mass;t+=1*i,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=g7(this),l=s.getValue();if(t){let e=gT(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 vR.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(yq(this)){let{to:e,config:t}=this.animation;vR.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){let t=this.queue||(this.queue=[]);return t.push(e),this}start(e,t){let n;return vJ.und(e)?(n=this.queue||[],this.queue=[]):n=[vJ.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>{let t=this._update(e);return t})).then(e=>yN(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),yV(this._state,e&&this._lastCallId),vR.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=vJ.obj(n)?n[t]:n)||yk(n))&&(n=void 0),null==(r=vJ.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return yW(this)||(e.reverse&&([n,r]=[r,n]),r=gT(r),vJ.und(r)?g7(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yy(e,(e,t)=>/^on/.test(t)?ym(e,n):e)),y2(this,e,"onProps"),y4(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 yT(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{y$(this)||(yG(this,!0),v5(o.pauseQueue),y4(this,"onPause",yD(this,yX(this,this.animation.to)),this))},resume:()=>{y$(this)&&(yG(this,!1),yq(this)&&this._resume(),v5(o.resumeQueue),y4(this,"onResume",yD(this,yX(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=yQ(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(yL(this));let r=!vJ.und(e.to),i=!vJ.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(yL(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||vJ.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!v0(d,u);f&&(s.from=d),d=gT(d);let h=!v0(c,l);h&&this._focus(c);let p=yk(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&&(yM(n={...n},t),t={...n,...t}),yM(e,t),Object.assign(e,t),yO)null==e[r]&&(e[r]=yO[r]);let{frequency:r,damping:i}=e,{mass:o}=e;vJ.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,yh(t.config,o),t.config!==a.config?yh(a.config,o):void 0);let y=g7(this);if(!y||vJ.und(c))return n(yD(this,!0));let x=vJ.und(t.reset)?i&&!t.default:!vJ.und(d)&&yp(t.reset,o),b=x?d:this.get(),w=yE(c),E=vJ.num(w)||vJ.arr(w)||gJ(w),j=!p&&(!E||yp(a.immediate||t.immediate,o));if(h){let e=yl(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,_=gP(c),S=!1;if(!_){let e=x||!yW(this)&&f;(h||e)&&(_=!(S=v0(yE(b),w))),(v0(s.immediate,j)||j)&&v0(m.decay,v)&&v0(m.velocity,g)||(_=!0)}if(S&&yq(this)&&(s.changed&&!x?_=!0:_||this._stop(l)),!p&&((_||gP(l))&&(s.values=y.getPayload(),s.toValues=gP(c)?null:k==yr?[1]:v4(w)),s.immediate==j||(s.immediate=j,j||x||this._set(l)),_)){let{onRest:e}=s;v1(y1,e=>y2(this,t,e));let r=yD(this,yX(this,l));v5(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&vR.batchedUpdates(()=>{s.changed=!x,e?.(r,this),x?yh(a.onRest,r):s.onStart?.(r,this)})}x&&this._set(b),p?n(yF(t.to,t,this._state,this)):_?this._start():yq(this)&&!h?this._pendingCalls.add(n):n(yR(b))}_focus(e){let t=this.animation;e!==t.to&&(gN(this)&&this._detach(),t.to=e,gN(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;gP(t)&&(gF(t,this),yZ(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;gP(e)&&gV(e,this)}_set(e,t=!0){let n=gT(e);if(!vJ.und(n)){let e=g7(this);if(!e||!v0(n,e.getValue())){let r=yl(n);e&&e.constructor==r?e.setValue(n):g9(this,r.create(n)),e&&vR.batchedUpdates(()=>{this._onChange(n,t)})}}return g7(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,y4(this,"onStart",yD(this,yX(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yh(this.animation.onChange,e,this)),yh(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;g7(this).reset(gT(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),yq(this)||(yY(this,!0),y$(this)||this._resume())}_resume(){vT.skipAnimation?this.finish():go.start(this)}_stop(e,t){if(yq(this)){yY(this,!1);let n=this.animation;v1(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),gR(this,{type:"idle",parent:this});let r=t?yL(this.get()):yD(this.get(),yX(this,e??n.to));v5(this._pendingCalls,r),n.changed&&(n.changed=!1,y4(this,"onRest",r,this))}}};function yX(e,t){let n=yE(t),r=yE(e.get());return v0(r,n)}function yQ(e,t=e.loop,n=e.to){let r=yh(t);if(r){let i=!0!==r&&yw(r),o=(i||e).reverse,a=!i||i.reset;return yJ({...e,loop:t,default:!1,pause:void 0,to:!o||yk(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function yJ(e){let{to:t,from:n}=e=yw(e),r=new Set;return vJ.obj(t)&&y0(t,r),vJ.obj(n)&&y0(n,r),e.keys=r.size?Array.from(r):null,e}function y0(e,t){v2(e,(e,n)=>null!=e&&t.add(n))}var y1=["onStart","onRest","onChange","onPause","onResume"];function y2(e,t,n){e.animation[n]=t[n]!==yv(t,n)?ym(t[n],e.key):void 0}function y4(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var y3=["onStart","onChange","onRest"],y5=1,y6=class{constructor(e,t){this.id=y5++,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];vJ.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(yJ(e)),this}start(e){let{queue:t}=this;return(e?t=v4(e).map(yJ):this.queue=[],this._flush)?this._flush(this,t):(xr(this,t),y8(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;v1(v4(t),t=>n[t].stop(!!e))}else yV(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(vJ.und(e))this.start({pause:!0});else{let t=this.springs;v1(v4(e),e=>t[e].pause())}return this}resume(e){if(vJ.und(e))this.start({pause:!1});else{let t=this.springs;v1(v4(e),e=>t[e].resume())}return this}each(e){v2(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,v3(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&&v3(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,v3(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)}vR.onFrame(this._onFrame)}};function y8(e,t){return Promise.all(t.map(t=>y7(e,t))).then(t=>yN(e,t))}async function y7(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=vJ.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=vJ.arr(i)||vJ.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):v1(y3,n=>{let r=t[n];if(vJ.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,v5(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===yv(t,"cancel");(c||h&&d.asyncId)&&f.push(yT(++e._lastAsyncId,{props:t,state:d,actions:{pause:vX,resume:vX,start(t,n){h?(yV(d,e._lastAsyncId),n(yL(e))):(t.onRest=s,n(yF(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=yN(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=yQ(t,a,i);if(n)return xr(e,[n]),y7(e,n,!0)}return l&&vR.batchedUpdates(()=>l(p,e,e.item)),p}function y9(e,t){let n={...e.springs};return t&&v1(v4(t),e=>{vJ.und(e.keys)&&(e=yJ(e)),vJ.obj(e.to)||(e={...e,to:void 0}),xn(n,e,e=>xt(e))}),xe(e,n),n}function xe(e,t){v2(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,gF(t,e))})}function xt(e,t){let n=new yK;return n.key=e,t&&gF(n,t),n}function xn(e,t,n){t.keys&&v1(t.keys,r=>{let i=e[r]||(e[r]=n(r));i._prepareNode(t)})}function xr(e,t){v1(t,t=>{xn(e.springs,t,t=>xt(t,e))})}var xi=({children:e,...t})=>{let n=(0,b.useContext)(xo),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,b.useState)(()=>({inputs:t,result:e()})),r=(0,b.useRef)(),i=r.current,o=i;if(o){let n=!!(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}=xo;return b.createElement(o,{value:t},e)},xo=(Object.assign(xi,b.createContext({})),xi.Provider._context=xi,xi.Consumer._context=xi,xi);xi.Provider=xo.Provider,xi.Consumer=xo.Consumer;var xa=()=>{let e=[],t=function(t){gQ(`${gG}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 v1(e,(e,i)=>{if(vJ.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 v1(e,e=>e.pause(...arguments)),this},t.resume=function(){return v1(e,e=>e.resume(...arguments)),this},t.set=function(t){v1(e,(e,n)=>{let r=vJ.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return v1(e,(e,r)=>{if(vJ.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 v1(e,e=>e.stop(...arguments)),this},t.update=function(t){return v1(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return vJ.fun(e)?e(n,t):e};return t._getProps=n,t};function xs(e,t){let n=vJ.fun(e),[[r],i]=function(e,t,n){let r=vJ.fun(t)&&t;r&&!n&&(n=[]);let i=(0,b.useMemo)(()=>r||3==arguments.length?xa():void 0,[]),o=(0,b.useRef)(0),a=g2(),s=(0,b.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=y9(e,t),r=o.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t]);return r?y8(e,t):new Promise(r=>{xe(e,n),s.queue.push(()=>{r(y8(e,t))}),a()})}}),[]),l=(0,b.useRef)([...s.ctrls]),u=[],c=g5(e)||0;function d(e,n){for(let i=e;i{v1(l.current.slice(e,c),e=>{y_(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,b.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>y9(e,u[t])),h=(0,b.useContext)(xi),p=g5(h),m=h!==p&&yj(h);g0(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],v1(e,e=>e())),v1(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(yS(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),g4(()=>()=>{v1(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 xl(e,t,n){let r=vJ.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,b.useMemo)(()=>r||3==arguments.length?xa():void 0,[]),h=v4(e),p=[],m=(0,b.useRef)(null),v=i?null:m.current;g0(()=>{m.current=p}),g4(()=>(v1(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{v1(m.current,e=>{e.expired&&clearTimeout(e.expirationId),y_(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):xu++})}return vJ.und(n)?e:vJ.fun(n)?e.map(n):v4(n)}(h,r?r():t,v),y=i&&m.current||[];g0(()=>v1(y,({ctrl:e,item:t,key:n})=>{y_(e,f),yh(u,t,n)}));let x=[];if(v&&v1(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=x[t]=g.indexOf(e.key))&&(p[t]=e)}),v1(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new y6},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;v1(x,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}vJ.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let w=-a,E=g2(),j=yy(t),k=new Map,_=(0,b.useRef)(new Map),S=(0,b.useRef)(!1);v1(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=yh(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=yh(i,e.item,n),!(i=vJ.obj(i)?yw(i):{to:i}).config){let t=d||j.config;i.config=yh(t,e.item,n,o)}w+=a;let y={...j,delay:p+w,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&vJ.und(y.from)){let i=r?r():t,o=vJ.und(i.initial)||v?i.from:i.initial;y.from=yh(o,e.item,n)}let{onResolve:x}=y;y.onResolve=e=>{yh(x,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=yh(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(E,r));return}}}e&&t.some(e=>e.expired)&&(_.current.delete(n),l&&(S.current=!0),E())}}};let b=y9(e.ctrl,y);"leave"===o&&l?_.current.set(e,{phase:o,springs:b,payload:y}):k.set(e,{phase:o,springs:b,payload:y})});let O=(0,b.useContext)(xi),C=g5(O),M=O!==C&&yj(O);g0(()=>{M&&v1(p,e=>{e.ctrl.start({default:O})})},[O]),v1(k,(e,t)=>{if(_.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),g0(()=>{v1(_.current.size?_.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),M&&"enter"==e&&r.start({default:O}),t&&(yS(r,t.ref),(r.ref||f)&&!S.current?r.update(t):(r.start(t),S.current&&(S.current=!1)))})},i?void 0:n);let A=e=>b.createElement(b.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?b.createElement(i.type,{...i.props,key:vJ.str(t.key)||vJ.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[A,f]:A}var xu=1,xc=class extends yH{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=gC(...t);let n=this._get(),r=yl(n);g9(this,r.create(n))}advance(e){let t=this._get(),n=this.get();v0(t,n)||(g7(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xf(this._active)&&xh(this)}_get(){let e=vJ.arr(this.source)?this.source.map(gT):v4(gT(this.source));return this.calc(...e)}_start(){this.idle&&!xf(this._active)&&(this.idle=!1,v1(ye(this),e=>{e.done=!1}),vT.skipAnimation?(vR.batchedUpdates(()=>this.advance()),xh(this)):go.start(this))}_attach(){let e=1;v1(v4(this.source),t=>{gP(t)&&gF(t,this),yZ(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){v1(v4(this.source),e=>{gP(e)&&gV(e,this)}),this._active.clear(),xh(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=v4(this.source).reduce((e,t)=>Math.max(e,(yZ(t)?t.priority:0)+1),0))}};function xd(e){return!1!==e.idle}function xf(e){return!e.size||Array.from(e).every(xd)}function xh(e){e.idle||(e.idle=!0,v1(ye(e),e=>{e.done=!0}),gR(e,{type:"idle",parent:e}))}var xp=(e,...t)=>new xc(e,t);vT.assign({createStringInterpolator:gY,to:(e,t)=>new xc(e,t)}),go.advance;var xm=/^--/,xv={},xg={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},xy=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xx=["Webkit","Ms","Moz","O"];xg=Object.keys(xg).reduce((e,t)=>(xx.forEach(n=>e[xy(n,t)]=e[t]),e),xg);var xb=/^(matrix|translate|scale|rotate|skew)/,xw=/^(translate)/,xE=/^(rotate|skew)/,xj=(e,t)=>vJ.num(e)&&0!==e?e+t:e,xk=(e,t)=>vJ.arr(e)?e.every(e=>xk(e,t)):vJ.num(e)?e===t:parseFloat(e)===t,x_=class extends yo{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=>xj(e,"px")).join(",")})`,xk(e,0)])),v2(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(xb.test(t)){if(delete r[t],vJ.und(e))return;let n=xw.test(t)?"px":xE.test(t)?"deg":"";i.push(v4(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${xj(i,n)})`,xk(i,0)]:e=>[`${t}(${e.map(e=>xj(e,n)).join(",")})`,xk(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new xS(i,o)),super(r)}},xS=class extends gD{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 v1(this.inputs,(n,r)=>{let i=gT(n[0]),[o,a]=this.transforms[r](vJ.arr(i)?i:n.map(gT));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&v1(this.inputs,e=>v1(e,e=>gP(e)&&gF(e,this)))}observerRemoved(e){0==e&&v1(this.inputs,e=>v1(e,e=>gP(e)&&gV(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),gR(this,e)}};vT.assign({batchedUpdates:e6.unstable_batchedUpdates,createStringInterpolator:gY,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 xO=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new yo(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=yf(e)||"Anonymous";return(e=vJ.str(e)?o[e]||(o[e]=yu(e,i)):e[yd]||(e[yd]=yu(e,i))).displayName=`Animated(${t})`,e};return v2(e,(t,n)=>{vJ.arr(e)&&(n=yf(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:xv[t]||(xv[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||xm.test(t)||xg.hasOwnProperty(t)&&xg[t]?(""+d).trim():d+"px";xm.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 x_(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,xC=n(23442),xM=(0,b.createContext)({});function xA(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,b.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return b.createElement(xM.Provider,{value:a},o)}function xP(){return(xP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xF),p=(0,b.useContext)(xR)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,x=p.yScale,w=p.dataRegistry,E=(0,b.useMemo)(function(){return y?xD(y):0},[y]),j=(0,b.useMemo)(function(){return x?xD(x):0},[x]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==a?null:null==w?void 0:w.get(a),_=s||(null==k?void 0:k.xAccessor),S=l||(null==k?void 0:k.yAccessor);if(!y||!x||!v||!m||!_||!S||!g)return null;var O=(null!=(t=(0,p_.Z)(y(_(o))))?t:NaN)+E/2,C=(null!=(n=(0,p_.Z)(x(S(o))))?n:NaN)+j/2,M=O+c+16>g.left+v?-c:c,A=C+f+16>g.top+m?-f:f;return xL(O)&&xL(C)?b.createElement(r,xV({width:v,height:m},h,{x:O,y:C,dx:M,dy:A}),i):null}xz.propTypes={dataKey:py().string,xAccessor:py().func,yAccessor:py().func};var xI=["x","y","AnnotationComponent"],xZ=["editable"];function xB(){return(xB=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function xU(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=xH(e,xI),s=(0,b.useRef)({x:n,y:i}),l=xs({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,b.useEffect)(function(){s.current={x:n,y:i}},[n,i]),b.createElement(xO.g,{transform:xp([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},b.createElement(o,xB({x:n,y:i},a)))}function xW(e){var t=e.editable,n=xH(e,xZ),r=(0,b.useCallback)(function(e){return b.createElement(xU,xB({AnnotationComponent:t?xN:xA},e))},[t]);return b.createElement(xz,xB({AnnotationComponent:r},n))}xW.propTypes={editable:py().bool};var xq=n(12766),x$=n(54073),xY=n.n(x$),xG=["d","stroke","fill"];function xK(){return(xK=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xG),o=(0,b.useRef)(t),a=(0,b.useCallback)(xY()(function(e){o.current=e},50),[]),s=(0,xq.interpolatePath)(o.current,t);a(t);var l=xs({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=xs({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return b.createElement(xO.path,xK({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var xQ=n(12935),xJ=n(12151);function x0(){return(x0=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function bt(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)=>be(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 bn=bt(be);bn.right;let br=bn.left;function bi(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=bt(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=br(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,bv),O=(0,b.useContext)(xR),C=O.colorScale,M=O.theme,A=O.horizontal,P=(0,b.useMemo)(function(){return w?x2(E,w):void 0},[E,w]),T=(0,b.useMemo)(function(){return x2(E,x)},[E,x]),N=(0,b.useMemo)(function(){return k?x2(_,k):void 0},[_,k]),R=(0,b.useMemo)(function(){return x2(_,j)},[_,j]),D=(0,b.useCallback)(function(e){return xL(E(x(e)))&&xL(_(j(e)))},[E,x,_,j]),L=null!=(t=null!=(n=null==C?void 0:C(l))?n:null==M?void 0:null==(r=M.colors)?void 0:r[0])?t:"#222",F="AREASERIES_EVENT_SOURCE-"+l,V=bd({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:F,allowedSources:[x3,F]}),z=(0,b.useMemo)(function(){var e=x4(A?E:_);return A?{x0:null!=P?P:e,x1:T,y:R}:{x:T,y0:null!=N?N:e,y1:R}},[E,_,A,T,R,P,N]),I=!!(d||c),Z=(0,b.useCallback)(function(e){var t=e.glyphs;return I?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},bm(bg({},e,{color:"transparent",onFocus:V.onFocus,onBlur:V.onBlur})))}):null},[I,V.onFocus,V.onBlur]);return b.createElement(b.Fragment,null,b.createElement(xQ.Z,bg({},z,S,{curve:a,defined:D}),function(e){var t=e.path;return b.createElement(o,bg({className:"visx-area",stroke:"transparent",fill:L,strokeLinecap:"round"},S,{d:t(s)||""},V))}),y&&b.createElement(xJ.Z,bg({x:T,y:R,defined:D,curve:a},u),function(e){var t=e.path;return b.createElement(o,bg({className:"visx-line",fill:"transparent",stroke:L,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),I&&b.createElement(bh,{dataKey:l,data:s,xAccessor:x,yAccessor:j,xScale:E,yScale:_,renderGlyphs:Z}))}by.propTypes={renderLine:py().bool};var bx=x1(by);function bb(){return(bb=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 bO(e,t){return e[t]}function bC(e){let t=[];return t.key=e,t}Array.prototype.slice;var bM=n(74322),bA=n(58543);function bP(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,b.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=bk([]),t=bS,n=b_,r=bO;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),bC),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(bP(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(bP(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 bF(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?ba:bo)(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,bj.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,bj.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,bj.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,bj.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var bV=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function bz(){return(bz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,bV)),u=bz({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==j?void 0:null==(i=j.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:C,data:e,areaProps:u,lineProps:s}})},[O,C,g,S,j]),A=(0,b.useCallback)(function(e){var t,n,r=null==(t=S.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?bF(e,r,x):null},[S,x]),P="AREASTACK_EVENT_SOURCE-"+_.join("-"),T=bd({dataKey:_,enableEvents:void 0===o||o,findNearestDatum:A,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:P,allowedSources:[x3,P]}),N=!!(l||s),R=(0,b.useCallback)(function(e){var t=e.glyphs;return N?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},bm(bz({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[N,T.onFocus,T.onBlur]);return!_.some(function(e){return null==y.get(e)})&&w&&E&&g?b.createElement("g",{className:"visx-area-stack"},M.map(function(e){return b.createElement(xQ.Z,bz({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return b.createElement(n,bz({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,T))})}),m&&M.map(function(e){return b.createElement(bE.Z,bz({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 b.createElement(n,bz({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),N&&M.map(function(e,t){var n=M[M.length-t-1];return b.createElement(bh,{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:bI,yScale:bI,renderGlyphs:R})})):null}function bB(){return(bB=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bW),c=(0,b.useContext)(xR),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,b.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]),x=u.tickLabelProps,w=(0,b.useMemo)(function(){return x||y?function(e,t,n){return bq({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==x?void 0:x(e,t,n))}:void 0},[x,y,g,p]),E="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?b.createElement(l,bq({top:E,left:j,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:w,scale:k})):null}function bY(){return(bY=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return bX({},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,x=l.x>=g&&l.x<=y;return bX({},u,{distanceY:0,distanceX:x?0:Math.abs(l.x-(g+y)/2)})}(e,k,v)},[k,v]),S="BARGROUP_EVENT_SOURCE-"+j.join("-")+"}",O=bd({dataKey:j,enableEvents:void 0===f||f,findNearestDatum:_,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:S,allowedSources:[x3,S]}),C=(0,b.useMemo)(function(){return x?x4(x):0},[x]),M=(0,b.useMemo)(function(){return w?x4(w):0},[w]),A=j.map(function(e){return m.get(e)});if(A.some(function(e){return null==e})||!x||!w||!p)return null;var P=xD(k),T=A.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=x(n(e)))?t:NaN)-C:(null!=(i=w(r(e)))?i:NaN)-M},s=v?function(e){var t;return null!=(t=w(r(e)))?t:NaN}:function(e){var t;return null!=(t=x(n(e)))?t:NaN},l=null!=(t=k(o))?t:0,u=v?function(e){return C+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return M+Math.min(0,a(e))},d=v?function(e){return Math.abs(a(e))}:function(){return P},f=v?function(){return P}:function(e){return Math.abs(a(e))},h=E.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(!xL(r))return null;var i=c(e);if(!xL(i))return null;var a=d(e);if(!xL(a))return null;var s=f(e);return xL(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 b.createElement("g",{className:"visx-bar-group"},T.map(function(e){return e&&b.createElement(o,bQ({horizontal:v,xScale:x,yScale:w},e,O,{key:e.key}))}))}bJ.propTypes={children:py().node.isRequired,padding:py().number,sortBars:py().func};var b0=n(10897),b1=function(e){return!!(null==e?void 0:e.includes("url("))},b2=function(e){return b1(e)?"rgba(0,0,0,0.1)":e},b4=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],b3=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function b5(){return(b5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function b8(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:b2(e.fill),opacity:1}}function b7(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=b6(e,b4);return b.createElement(b.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 b.createElement(b0.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 b.createElement(xX,b5({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function b9(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,b6(e,b3)),u=xl(i,b5({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,b.useMemo)(function(){var e=x4(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:b2(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:b8,update:b8,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return b.createElement(b.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:b.createElement(xO.rect,b5({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:b1(t.fill)?t.fill:s,opacity:u},l))}))}function we(e){return null==e.radius?b.createElement(b9,e):b.createElement(b7,b5({},e,{radius:e.radius}))}function wt(){return(wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wr),E=(0,b.useContext)(xR),j=E.colorScale,k=E.horizontal,_=E.theme,S=E.innerWidth,O=E.innerHeight,C=(0,b.useMemo)(function(){return x2(g,v)},[g,v]),M=(0,b.useMemo)(function(){return x2(x,y)},[x,y]),A=xD(k?x:g)||(k?void 0===O?0:O:void 0===S?0:S)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),P=(0,b.useMemo)(function(){return g?x4(g):0},[g]),T=(0,b.useMemo)(function(){return x?x4(x):0},[x]),N=null!=(t=null!=(n=null==j?void 0:j(l))?n:null==_?void 0:null==(r=_.colors)?void 0:r[0])?t:"#222",R=(0,b.useMemo)(function(){var e=k?0:-A/2,t=k?-A/2:0;return s.map(function(n,r){var i,o=C(n)+e;if(!xL(o))return null;var s=M(n)+t;if(!xL(s))return null;var l=k?o-P:s-T;return xL(l)?{key:""+r,x:k?P+Math.min(0,l):o,y:k?s:T+Math.min(0,l),width:k?Math.abs(l):A,height:k?A:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:N}:null}).filter(function(e){return e})},[A,N,a,s,C,M,k,P,T]),D="BARSERIES_EVENT_SOURCE-"+l,L=bd({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:D,allowedSources:[x3,D]});return b.createElement("g",{className:"vx-bar-series"},b.createElement(i,wi({bars:R,horizontal:k,xScale:g,yScale:x},L,w)))}wo.propTypes={barPadding:py().number,colorAccessor:py().func};var wa=x1(wo),ws=["colorAccessor"];function wl(){return(wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ws);return b.createElement(wa,wl({},n,{colorAccessor:t,BarsComponent:we}))}var wc=n(15590);function wd(){return(wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wg),i=(0,b.useCallback)(function(e){return b.createElement(wv,wy({},e,{renderGlyph:n}))},[n]);return b.createElement(bp,wy({},r,{renderGlyphs:i}))}var wb=n(93353),ww=n(63962),wE=["rows","columns","GridRowsComponent","GridColumnsComponent"];function wj(){return(wj=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wE),l=(0,b.useContext)(xR),u=l.theme,c=l.xScale,d=l.yScale,f=l.margin,h=l.innerWidth,p=l.innerHeight,m=null==u?void 0:u.gridStyles;return b.createElement(b.Fragment,null,n&&d&&null!=h&&b.createElement(o,wj({left:null==f?void 0:f.left,lineStyle:m,width:h,scale:d},s)),i&&c&&null!=p&&b.createElement(a,wj({top:null==f?void 0:f.top,lineStyle:m,height:p,scale:c},s)))}wk.propTypes={rows:py().bool,columns:py().bool};var w_=["animationTrajectory"];function wS(){return(wS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w_),r=(0,b.useMemo)(function(){return function(e){return b.createElement(wb.Z,wS({},e,{animationTrajectory:t}))}},[t]),i=(0,b.useMemo)(function(){return function(e){return b.createElement(ww.Z,wS({},e,{animationTrajectory:t}))}},[t]);return b.createElement(wk,wS({GridRowsComponent:r,GridColumnsComponent:i},n))}var wC=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function wM(){return(wM=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wC),j=(0,b.useContext)(xR),k=j.colorScale,_=j.theme,S=(0,b.useMemo)(function(){return x2(v,m)},[v,m]),O=(0,b.useMemo)(function(){return x2(y,g)},[y,g]),C=(0,b.useCallback)(function(e){return xL(v(m(e)))&&xL(y(g(e)))},[v,m,y,g]),M=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==_?void 0:null==(r=_.colors)?void 0:r[0])?t:"#222",A="LINESERIES_EVENT_SOURCE-"+s,P=bd({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:A,allowedSources:[x3,A]}),T=!!(u||l),N=(0,b.useCallback)(function(e){var t=e.glyphs;return T?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},bm(wM({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[T,P.onFocus,P.onBlur]);return b.createElement(b.Fragment,null,b.createElement(xJ.Z,wM({x:S,y:O,defined:C,curve:o},E),function(e){var t,n=e.path;return b.createElement(w,wM({stroke:null!=(t=null==i?void 0:i(s))?t:M,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},E,{d:n(a)||""},P))}),T&&b.createElement(bh,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:N}))}wA.propTypes={colorAccessor:py().func};var wP=x1(wA);function wT(){return(wT=Object.assign?Object.assign.bind():function(e){for(var t=1;twL.every(n=>e[n]===t[n]);function wV(e,t){return(wV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var wz=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,wV(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)?e6.createPortal(this.props.children,this.node):null},t}(b.PureComponent);wz.propTypes={zIndex:py().oneOfType([py().number,py().string])};var wI=["detectBounds","zIndex"],wZ=["left","top","detectBounds","zIndex"];function wB(){return(wB=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var wU=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],wW=["x","y"];function wq(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 w$(){return(w$=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,b.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&&!wF(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?wD()(e,d):e,c?wD()(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,b.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,b.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,b.useEffect)(()=>{v(),g()},[r,m,p]),(0,b.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]}(wH(ei,wI)))[0],ec=el[1],ed=el[2],ef=(0,b.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=wH(e,wZ),a=null==i?es:i,s=(null==r?ea:r)?pQ:pH,l=(void 0===t?0:t)+(ec.left||0)+window.scrollX,u=(void 0===n?0:n)+(ec.top||0)+window.scrollY;return b.createElement(wz,{zIndex:a},b.createElement(s,wB({left:l,top:u},o)))}},[ea,es,ec.left,ec.top]),{containerRef:eu,containerBounds:ec,forceRefreshBounds:ed,TooltipInPortal:ef}),L=D.containerRef,F=D.TooltipInPortal,V=D.forceRefreshBounds,z=(0,b.useCallback)(function(e){var t;L(null!=(t=null==e?void 0:e.parentElement)?t:null)},[L]),I=null!=R&&R.tooltipOpen?o(w$({},R,{colorScale:S})):null,Z=(null==R?void 0:R.tooltipOpen)&&null!=I,B=(0,b.useRef)(!1);(0,b.useEffect)(function(){Z&&!B.current&&V(),B.current=Z},[Z,V]);var H=null==R?void 0:R.tooltipLeft,U=null==R?void 0:R.tooltipTop,W=P?xD(P):0,q=T?xD(T):0,$=(0,b.useCallback)(function(e,t){var n,r,i=null==N?void 0:N.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:P&&o?null!=(n=Number(P(o(t)))+W/2)?n:0:void 0,top:T&&a?null!=(r=Number(T(a(t)))+q/2)?r:0:void 0}},[N,W,q,P,T]),Y=null==R?void 0:null==(eh=R.tooltipData)?void 0:eh.nearestDatum,G=null!=(ep=null==Y?void 0:Y.key)?ep:"";if(Z&&Y&&(y||w)){var K=$(G,Y.datum),X=K.left,Q=K.top;H=y&&xL(X)?X:H,U=w&&xL(Q)?Q:U}var J=[];if(Z&&(void 0!==c&&c||p)){var ee=Number(null!=(eS=null==i?void 0:i.radius)?eS:4);if(p)Object.values(null!=(eO=null==R?void 0:null==(eC=R.tooltipData)?void 0:eC.datumByKey)?eO:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==S?void 0:S(o))?n:null==O?void 0:null==(r=O.htmlLabel)?void 0:r.color)?t:"#222",u=$(o,a),c=u.left,d=u.top;xL(c)&&xL(d)&&J.push({key:o,color:l,datum:a,index:s,size:ee,x:c,y:d,glyphStyle:i,isNearestDatum:!!Y&&Y.key===o})});else if(Y){var et=$(G,Y.datum),en=et.left,er=et.top;if(xL(en)&&xL(er)){var ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,eE,ej,ek,e_,eS,eO,eC,eM,eA,eP,eT,eN,eR,eD=null!=(eM=null!=(eA=null!=(eP=null!=(eT=G&&(null==S?void 0:S(G)))?eT:null)?eP:null==O?void 0:null==(eN=O.gridStyles)?void 0:eN.stroke)?eA:null==O?void 0:null==(eR=O.htmlLabel)?void 0:eR.color)?eM:"#222";J.push({key:G,color:eD,datum:Y.datum,index:Y.index,size:ee,x:en,y:er,glyphStyle:i,isNearestDatum:!0})}}}return b.createElement(b.Fragment,null,b.createElement("svg",{ref:z,style:wG}),Z&&b.createElement(b.Fragment,null,v&&b.createElement(F,{className:"visx-crosshair visx-crosshair-vertical",left:H,top:null==A?void 0:A.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:wY},b.createElement("svg",{width:"1",height:C,overflow:"visible"},b.createElement("line",w$({x1:0,x2:0,y1:0,y2:C,strokeWidth:1.5,stroke:null!=(em=null!=(ev=null==O?void 0:null==(eg=O.gridStyles)?void 0:eg.stroke)?ev:null==O?void 0:null==(ey=O.htmlLabel)?void 0:ey.color)?em:"#222"},E)))),f&&b.createElement(F,{className:"visx-crosshair visx-crosshair-horizontal",left:null==A?void 0:A.left,top:U,offsetLeft:0,offsetTop:0,detectBounds:!1,style:wY},b.createElement("svg",{width:M,height:"1",overflow:"visible"},b.createElement("line",w$({x1:0,x2:M,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(ex=null!=(eb=null==O?void 0:null==(ew=O.gridStyles)?void 0:ew.stroke)?eb:null==O?void 0:null==(eE=O.htmlLabel)?void 0:eE.color)?ex:"#222"},r)))),J.map(function(e,t){var n=e.x,r=e.y,i=wq(e,wW);return b.createElement(F,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:wY},b.createElement("svg",{overflow:"visible"},s(w$({x:0,y:0},i))))}),b.createElement(F,w$({left:H,top:U,style:w$({},pB,{background:null!=(ej=null==O?void 0:O.backgroundColor)?ej:"white",boxShadow:"0 1px 2px "+(null!=O&&null!=(ek=O.htmlLabel)&&ek.color?(null==O?void 0:null==(e_=O.htmlLabel)?void 0:e_.color)+"55":"#22222255")},null==O?void 0:O.htmlLabel)},k),I)))}function wJ(e){var t=(0,b.useContext)(x5);return null!=t&&t.tooltipOpen?b.createElement(wQ,e):null}function w0(e){var t=e.children,n=(0,b.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 b.createElement(x6.Provider,{value:n},t)}function w1(){return(w1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,pV);return pz({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,b.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,b.useRef)(null),g=(0,b.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(xL(o)?o:1/0,2)+Math.pow(xL(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&xL(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&&o>0&&y({width:m,height:o,margin:l})},[y,m,o,l]);var E=x7({source:x3});return(bc({dataKey:"nearest"===(void 0===h?"nearest":h)?bu:bl,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,allowedSources:Eo}),y)?null==m||null==o?b.createElement(vt.Z,null,function(t){return b.createElement(Ea,Er({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==x?b.createElement(w2,null,b.createElement(Ea,e)):null==w?b.createElement(w0,null,b.createElement(Ea,e)):m>0&&o>0?b.createElement("svg",{width:m,height:o,"aria-label":void 0===t?"XYChart":t},i,r&&b.createElement("rect",Er({x:l.left,y:l.top,width:m-l.left-l.right,height:o-l.top-l.bottom,fill:"transparent"},E))):null:v&&g?b.createElement(En,{xScale:v,yScale:g,theme:p,initialDimensions:{width:m,height:o,margin:l},horizontal:a},b.createElement(Ea,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function Es(e){return b.createElement(bx,e)}function El(e){return b.createElement(bZ,e)}function Eu(){return(Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Em(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=Ep(e,Ed),u=!!(l.onFocus||l.onBlur);return b.createElement(b.Fragment,null,t.map(function(e){var t=e.key,c=Ep(e,Ef);return null==n?b.createElement("rect",Eh({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):b.createElement(b0.Z,Eh({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 Ev(){return(Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ey);return b.createElement(wa,Ex({},n,{colorAccessor:t,BarsComponent:Em}))};function Ew(){return(Ew=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,x.jsx)(d1,{value:"line",children:"Line"}),(0,x.jsx)(d1,{disabled:f||h,value:"areastack",children:"Area Stack"}),(0,x.jsx)(d1,{disabled:f||h,value:"barstack",children:"Bar Stack"}),(0,x.jsx)(d1,{disabled:f,value:"area",children:"Area"}),(0,x.jsx)(d1,{disabled:f,value:"bargroup",children:"Bar Group"})]})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{weight:"semibold",children:"Stack series offset"}),(0,x.jsxs)(d2,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,x.jsxs)(d1,{disabled:!s,value:"none",children:["Auto",(0,x.jsx)(f_,{children:"zero-baseline"})]}),(0,x.jsxs)(d1,{disabled:!s,value:"expand",children:["Expand",(0,x.jsx)(f_,{children:"values sum to 1"})]}),(0,x.jsxs)(d1,{disabled:!s,value:"wiggle",children:["Wiggle",(0,x.jsx)(f_,{children:"stream graph"})]})]})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{weight:"semibold",children:"Curve shape"}),(0,x.jsxs)(d2,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,x.jsx)(d1,{disabled:!a,value:"linear",children:"Linear"}),(0,x.jsx)(d1,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,x.jsx)(d1,{disabled:!a,value:"step",children:"Step"})]})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{weight:"semibold",children:"Axes"}),(0,x.jsx)("div",{className:"flex flex-col gap-6",children:(0,x.jsxs)(d2,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,x.jsx)(d1,{value:"bottom",children:"Bottom"}),(0,x.jsx)(d1,{value:"top",children:"Top"})]})})]})]})})}let ED=(0,b.forwardRef)((e,t)=>{let{className:n}=e;return(0,x.jsxs)("div",{ref:t,className:(0,ea.cx)("flex gap-1 items-center",n),children:[(0,x.jsx)(EL,{}),(0,x.jsx)(EL,{}),(0,x.jsx)(EL,{})]})});function EL(){return(0,x.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 EF(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,chartType:l="areastack",curveType:u="linear",stackOffset:c="none",variant:d="panel",allowConfiguration:f=!0}=e,h=function(e,t,n,r,i,o){let a=(0,b.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return[...t,{...e,timestamp:e.timestamp+ET(1)}]},[t]),s=(0,b.useMemo)(()=>{if(a.length<2)return 0;let e=[a[0].timestamp,a[a.length-1].timestamp],t=new Date().getTime();return t>e[0]&&t"dark"===c?vA:vM,[c]),[f,h]=(0,b.useState)("center"),[p,m]=(0,b.useState)([!1,!1]),[v,g]=p,[y,w]=(0,b.useState)("bottom"),[E,j]=(0,b.useState)("right"),[k,_]=(0,b.useState)(!0),[S,O]=(0,b.useState)(!0),[C,M]=(0,b.useState)(!1),[A,P]=(0,b.useState)(!0),[T,N]=(0,b.useState)(!0),[R,D]=(0,b.useState)(r),[L,F]=(0,b.useState)(i),[V,z]=(0,b.useState)(o),I=d.xyChartTheme.gridStyles.stroke,[Z,B]=(0,b.useState)(!1),[H,U]=(0,b.useState)("star"),W=(0,b.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"===H?(0,x.jsx)(vf,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):"circle"===H?(0,x.jsx)(vm,{left:t,top:n,stroke:I,fill:i,r:r,...u}):"cross"===H?(0,x.jsx)(vx,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):(0,x.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[H,I]),q=(0,b.useMemo)(()=>Object.keys(EM()(t[0],"timestamp")),[t]),$=(0,b.useMemo)(()=>n.enabledGraph||q,[q,n]),Y=(0,b.useMemo)(()=>n.enabledTip||q,[q,n]),G=(0,b.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]),K=["line","area","areastack"].includes(R),X=["barstack","areastack"].includes(R),Q=(0,b.useMemo)(()=>({x:{type:"band",paddingInner:K?1:.3},y:{type:"linear"}}),[K]),J=(0,b.useMemo)(()=>"cardinal"===L&&vb.ZP||"step"===L&&mE.ZP||vw.Z,[L]),ee=(0,b.useMemo)(()=>({top:30,bottom:"top"===y?0:20,left:0,right:0}),[y]);return{id:e,accessors:G,animationTrajectory:f,config:n,scales:Q,data:a,curve:J,chartData:t,numTicks:4,isLine:K,isStack:X,todayOffset:s,initialChartType:r,chartType:R,curveType:L,keys:q,enabledGraph:$,enabledTip:Y,renderBarGroup:"bargroup"===R,renderBarStack:"barstack"===R,enableTooltipGlyph:Z,renderTooltipGlyph:W,renderAreaSeries:"area"===R,renderAreaStack:"areastack"===R,renderLineSeries:"line"===R,sharedTooltip:T,showGridColumns:g,showGridRows:v,showHorizontalCrosshair:C,showTooltip:k,showVerticalCrosshair:S,snapTooltipToDatum:!X&&A,stackOffset:V,theme:d,margin:ee,xAxisOrientation:y,yAxisOrientation:E,setUseAnimatedComponents:u,setAnimationTrajectory:h,setGridProps:m,setXAxisOrientation:w,setYAxisOrientation:j,setShowTooltip:_,setShowVerticalCrosshair:O,setShowHorizontalCrosshair:M,setSnapTooltipToDatum:P,setSharedTooltip:N,setChartType:D,setCurveType:F,setStackOffset:z,setEnableTooltipGlyph:B,setTooltipGlyphComponent:U,...l?{Annotation:xW,AreaSeries:bw,AreaStack:bH,Axis:bG,BarGroup:wn,BarSeries:wu,BarStack:wp,GlyphSeries:wx,Grid:wO,LineSeries:wN,Tooltip:wJ,XYChart:Ea}:{AreaSeries:Es,AreaStack:El,Axis:Ec,BarGroup:Eg,BarSeries:Eb,BarStack:EE,Grid:ES,LineSeries:EO,Tooltip:wJ,XYChart:Ea}}}(t,r,i,l,u,c),p=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===d&&f&&(0,x.jsx)(ER,{...h})]}),(0,x.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,x.jsx)(vt.Z,{children:e=>{let{width:t,height:n}=e;return a?(0,x.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,x.jsx)(ED,{className:"scale-150"})}):(0,x.jsx)(vi,{...h,width:t,height:n})}})]});return"panel"===d?(0,x.jsx)(tG,{className:"relative p-px",style:{height:n},children:p}):(0,x.jsx)("div",{className:"relative p-px",style:{height:n},children:p})}/*! ***************************************************************************** +***************************************************************************** */var d0=function(){return(d0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){if(e.includes(t)){var r=e.split(t),i=r[0],o=r[1];if(o.length>n)return""+i+t+o.slice(0,n)}var a=e.length>n?RegExp("(\\d+)(\\d{"+n+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},d9=function(e,t){var n=t.groupSeparator,r=t.decimalSeparator,i=RegExp("\\d([^"+d2(void 0===n?",":n)+d2(void 0===r?".":r)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},fe=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?d2(a)+"?":"")+"\\d").test(t),c="."!==n?ft(t,n,u):t,d=fn((r?new Intl.NumberFormat(r.locale,r.currency?{style:"currency",currency:r.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=d9(d,d0({},e)),h=t.slice(-1)===n?n:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&n&&(d=d.includes(n)?d.replace(RegExp("(\\d+)("+d2(n)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+n+p+f):""+d+n+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},ft=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(d2(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},fn=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?d1(d1([],e),[n]):[n,u]:"currency"===l?n?e:d1(d1([],e),[u]):"group"===l?s?e:d1(d1([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:d1(d1([],e),[void 0!==i?i:u]):"fraction"===l?d1(d1([],e),[void 0!==o?u.slice(0,o):u]):d1(d1([],e),[u])},[""]).join("")},fr={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},fi=function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,n){return"currency"===t.type?0===n?d0(d0({},e),{currencySymbol:t.value,prefix:t.value}):d0(d0({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?d0(d0({},e),{groupSeparator:t.value}):"decimal"===t.type?d0(d0({},e),{decimalSeparator:t.value}):e},fr)},fo=function(e){return RegExp(/\d/,"gi").test(e)},fa=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.lengtht.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}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(O&&fo(O))throw Error("decimalSeparator cannot be a number");if(C&&fo(C))throw Error("groupSeparator cannot be a number");var L=(0,b.useMemo)(function(){return fi(x)},[x]),F=O||L.decimalSeparator||"",V=C||L.groupSeparator||"";if(F&&V&&F===V&&!1===S)throw Error("decimalSeparator cannot be the same as groupSeparator");var z={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:S,intlConfig:x,prefix:g||L.prefix,suffix:y},I={decimalSeparator:F,groupSeparator:V,allowDecimals:void 0===n||n,decimalsLimit:l||p||2,allowNegativeValue:void 0===r||r,disableAbbreviations:void 0!==_&&_,prefix:g||L.prefix,transformRawValue:R},Z=null!=u?fe(d0(d0({},z),{decimalScale:v,value:String(u)})):null!=f?fe(d0(d0({},z),{decimalScale:v,value:String(f)})):"",B=(0,b.useState)(Z),H=B[0],U=B[1],W=(0,b.useState)(!1),q=W[0],$=W[1],Y=(0,b.useState)(0),G=Y[0],X=Y[1],K=(0,b.useState)(0),Q=K[0],J=K[1],ee=(0,b.useState)(null),et=ee[0],en=ee[1],er=t||(0,b.useRef)(null),ei=function(e,t){$(!0);var n=fs({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:V}),r=n.modifiedValue,i=n.cursorPosition,a=d8(d0({value:r},I));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===F){h&&h(void 0,o,{float:null,formatted:"",value:""}),U(a);return}var s=parseFloat(a.replace(F,".")),l=fe(d0({value:a},z));if(null!=i){var u=i+(l.length-e.length);X(u=u<=0?g?g.length:0:u),J(Q+1)}U(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,b.useEffect)(function(){q&&"-"!==H&&er&&"object"==typeof er&&er.current&&er.current.setSelectionRange(G,G)},[H,G,er,q,Q]);var eo=d0({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),M&&M(e)},onBlur:function(e){var t=e.target.value,n=d8(d0({value:t},I));if("-"===n||!n){U(""),T&&T(e);return}var r=fa(d7(n,F,p),F,void 0!==v?v:p),i=parseFloat(r.replace(F,".")),a=fe(d0(d0({},z),{value:r}));h&&h(r,o,{float:i,formatted:a,value:r}),U(a),T&&T(e)},onFocus:function(e){return A&&A(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(en(t),w&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),X(H.length);var n=parseFloat(null!=f?String(f).replace(F,"."):d8(d0({value:H},I)))||0,r="ArrowUp"===t?n+w:n-w;if(void 0!==E&&rj)return;var i=String(w).includes(".")?Number(String(w).split(".")[1].length):void 0;ei(String(i?r.toFixed(i):r).replace(".",F))}P&&P(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var r=d9(H,{groupSeparator:V,decimalSeparator:F});if(r&&n&&n>H.length-r.length&&er&&"object"==typeof er&&er.current){var i=H.length-r.length;er.current.setSelectionRange(i,i)}}N&&N(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||F&&H===F?H:fe(d0(d0({},z),{decimalScale:q?void 0:v,value:String(f)})),ref:er},D);return s?b.createElement(s,d0({},eo)):b.createElement("input",d0({},eo))});function fu(e){let{units:t,variant:n,size:r="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,b.useState)();return(0,b.useEffect)(()=>{h(navigator.language)},[]),(0,x.jsxs)("div",{className:"relative",children:[(0,x.jsx)(fl,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,className:(0,ea.cx)(dQ({variant:n,size:r,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,x.jsx)(tq,{size:"12",weight:"medium",color:"subtle",children:t})})]})}fl.displayName="CurrencyInput";var fc=n(6391),fd=n.n(fc);function ff(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let fh=(0,b.forwardRef)(function(e,t){let{value:n,placeholder:r=new(fd())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,b.useMemo)(()=>new(fd())(n),[n]),[p,m]=(0,b.useState)(""),v=(0,b.useMemo)(()=>fp(p),[p]),g=(0,b.useCallback)(e=>{o&&o((e=fp(e))&&!isNaN(Number(e))?new(fd())(e):void 0)},[o]),y=(0,b.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,b.useEffect)(()=>{if(!h.isEqualTo(v)){let e=ff(h,i);m(e)}},[h]),(0,x.jsx)(fu,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:r.isNaN()?"":ff(r,i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>y(e||"")})});function fp(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var fm=n(2850),fv=n(47025);let fg=new(fd())(0),fy=(0,b.forwardRef)(function(e,t){let{sc:n,placeholder:r=new(fd())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,b.useMemo)(()=>new(fd())(void 0===n?NaN:n),[n]),{settings:g}=(0,fm.Hv)(),y=(0,fv.BW)({config:{swr:{revalidateOnFocus:!1}}}),w=(0,b.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(fd())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||fg):fg},[y.data,g]),[E,j]=(0,b.useState)(),[k,S]=(0,b.useState)(""),[_,O]=(0,b.useState)(""),C=(0,b.useMemo)(()=>fx(k),[k]),M=(0,b.useMemo)(()=>fx(_),[_]),A=(0,b.useCallback)(e=>{a&&a((e=fx(e))&&!isNaN(Number(e))?new(fd())(e):void 0)},[a]),T=(0,b.useCallback)(e=>{let t=ff(e,i);O(t)},[O,i]),P=(0,b.useCallback)(e=>{let t=ff(e,o);return S(t),A(t),t},[S,o,A]),N=(0,b.useCallback)(e=>{S(e),A(e)},[S,A]),R=(0,b.useCallback)(e=>{let t=new(fd())(e).times(w);T(t)},[T,w]),D=(0,b.useCallback)(e=>{let t=new(fd())(e).dividedBy(w);P(t)},[P,w]),[L,F]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{if(!v.isEqualTo(C)){let e=ff(v,o);S(e),"fiat"!==E&&R(e)}L||F(!0)},[v]),(0,b.useEffect)(()=>{L&&R(C)},[w]),(0,b.useEffect)(()=>{"sc"===E&&R(C)},[C]),(0,b.useEffect)(()=>{"fiat"===E&&D(M)},[M]),(0,x.jsxs)("div",{ref:t,className:(0,ea.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,x.jsx)(fu,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:ff(r,o),units:l,value:"NaN"!==k?k:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{j(void 0),h&&h(e)},onFocus:e=>{j("sc"),p&&p(e)},onValueChange:e=>{N(e||"")}}),u&&g.siaCentral&&(0,x.jsx)(fu,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==_?_:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(w?w.times(r).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{j("fiat"),p&&p(e)},onBlur:e=>{j(void 0),h&&h(e)},onValueChange:e=>{O(e||"")}})]})});function fx(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function fb(e){let{children:t}=e;return(0,x.jsx)(s4,{content:t,children:(0,x.jsx)("div",{className:"relative flex items-center inline mx-1",children:(0,x.jsx)(tq,{color:"subtle",children:(0,x.jsx)(s6.RdX,{className:"scale-75"})})})})}function fw(e){let{values:t,options:n,onChange:r}=e;return(0,x.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,x.jsx)(s5,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}let fE=(0,ea.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"}}),fj=b.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,x.jsxs)("div",{className:fE({size:n,state:r,className:o}),children:[i,(0,x.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,x.jsx)(s6.Cp0,{className:"pointer-events-none scale-75"})]})}),fk=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("option",{ref:t,...r,className:(0,ea.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),fS=(0,ea.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function f_(e){let{className:t}=e;return(0,x.jsx)("div",{className:fS({className:t})})}let fO=(0,ea.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),fC=b.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,x.jsx)("div",{ref:t,className:fO({size:n,className:r}),...i})}),fM="Switch",[fA,fT]=(0,j.b)(fM),[fP,fN]=fA(fM),fR=(0,b.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,b.useState)(null),p=(0,k.e)(t,e=>h(e)),m=c$(f),v=(0,b.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,x]=(0,C.T)({prop:o,defaultProp:a,onChange:c});return(0,b.createElement)(fP,{scope:n,checked:y,disabled:l},(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":fF(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,O.M)(e.onClick,e=>{x(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,b.createElement)(fL,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),fD=(0,b.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=fN("SwitchThumb",n);return(0,b.createElement)(M.WV.span,(0,E.Z)({"data-state":fF(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),fL=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,b.useRef)(null),a=dO(n),s=tt(t);return(0,b.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,b.createElement)("input",(0,E.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 fF(e){return e?"checked":"unchecked"}let fV=(0,ea.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"}}),fz=(0,ea.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"}}),fI=(0,b.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(fR,{className:fz({size:n,state:r,className:i}),...a,ref:t,children:(0,x.jsx)(fD,{className:fV({size:n})})}),o&&(0,x.jsx)(tq,{color:a.disabled?"subtle":"contrast",children:o})]})}),fZ=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(fU);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:b.Children.count(e)>1?b.Children.only(null):(0,b.isValidElement)(e)?e.props.children:null);return(0,b.createElement)(fB,(0,E.Z)({},r,{ref:t}),(0,b.isValidElement)(e)?(0,b.cloneElement)(e,void 0,n):null)}return(0,b.createElement)(fB,(0,E.Z)({},r,{ref:t}),n)});fZ.displayName="Slot";let fB=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,b.isValidElement)(n)?(0,b.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?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,k.F)(t,n.ref)}):b.Children.count(n)>1?b.Children.only(null):null});fB.displayName="SlotClone";let fH=({children:e})=>(0,b.createElement)(b.Fragment,null,e);function fU(e){return(0,b.isValidElement)(e)&&e.type===fH}let fW=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,b.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?fZ:t;return(0,b.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,b.createElement)(o,(0,E.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),fq=(0,b.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,b.createElement)(fW.svg,(0,E.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,b.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),f$="Popper",[fY,fG]=(0,j.b)(f$),[fX,fK]=fY(f$),fQ=(0,b.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=fK("PopperAnchor",n),a=(0,b.useRef)(null),s=(0,k.e)(t,a);return(0,b.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,b.createElement)(fW.div,(0,E.Z)({},i,{ref:s}))}),fJ="PopperContent",[f0,f1]=fY(fJ),[f2,f4]=fY(fJ,{hasParent:!1,positionUpdateFns:new Set}),f3=(0,b.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:x="partial",hideWhenDetached:w=!1,avoidCollisions:E=!0,onPlaced:j,...S}=e,_=fK(fJ,d),[O,C]=(0,b.useState)(null),M=(0,k.e)(t,e=>C(e)),[T,P]=(0,b.useState)(null),N=tt(T),R=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,D=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,L="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(g)?g:[g],V=F.length>0,z={padding:L,boundary:F.filter(f8),altBoundary:V},{reference:I,floating:Z,strategy:B,x:H,y:U,placement:W,middlewareData:q,update:$}=e7({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:e3,middleware:[f7(),eM({mainAxis:h+D,alignmentAxis:m}),E?eT({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?eP():void 0,...z}):void 0,T?e9({element:T,padding:v}):void 0,E?eS({...z}):void 0,{name:"size",options:c={...z,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 ev(e,l),d=el(r),f=eu(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=ey(u.left,0),p=ey(u.right,0),m=ey(u.top,0),v=ey(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:ey(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:ey(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let x=await o.getDimensions(a.floating);return y.width!==x.width||y.height!==x.height?{reset:{rects:!0}}:{}}},f9({arrowWidth:R,arrowHeight:D}),w?eC({strategy:"referenceHidden"}):void 0].filter(f6)});(0,A.b)(()=>{I(_.anchor)},[I,_.anchor]);let Y=null!==H&&null!==U,[G,X]=he(W),K=(0,s9.W)(j);(0,A.b)(()=>{Y&&(null==K||K())},[Y,K]);let Q=null===(i=q.arrow)||void 0===i?void 0:i.x,J=null===(o=q.arrow)||void 0===o?void 0:o.y,ee=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=(0,b.useState)();(0,A.b)(()=>{O&&en(window.getComputedStyle(O).zIndex)},[O]);let{hasParent:er,positionUpdateFns:ei}=f4(fJ,d),eo=!er;(0,b.useLayoutEffect)(()=>{if(!eo)return ei.add($),()=>{ei.delete($)}},[eo,ei,$]),(0,A.b)(()=>{eo&&Y&&Array.from(ei).reverse().forEach(e=>requestAnimationFrame(e))},[eo,Y,ei]);let ea={"data-side":G,"data-align":X,...S,ref:M,style:{...S.style,animation:Y?void 0:"none",opacity:null!==(s=q.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,b.createElement)("div",{ref:Z,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:Y?`translate3d(${Math.round(H)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,b.createElement)(f0,{scope:d,placedSide:G,onArrowChange:P,arrowX:Q,arrowY:J,shouldHideArrow:ee},eo?(0,b.createElement)(f2,{scope:d,hasParent:!0,positionUpdateFns:ei},(0,b.createElement)(fW.div,ea)):(0,b.createElement)(fW.div,ea)))}),f5={top:"bottom",right:"left",bottom:"top",left:"right"};function f6(e){return void 0!==e}function f8(e){return null!==e}let f7=()=>({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`),{}}}),f9=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]=he(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="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function he(e){let[t,n="center"]=e.split("-");return[t,n]}let ht=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,b.useState)(null);return(0,b.createElement)(fX,{scope:t,anchor:r,onAnchorChange:i},n)},hn=(0,b.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?e6.createPortal((0,b.createElement)(fW.div,(0,E.Z)({},i,{ref:t})),r):null}),hr="dismissableLayer.update",hi=(0,b.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ho=(0,b.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,b.useContext)(hi),[f,h]=(0,b.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,b.useState)({}),v=(0,k.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),w=f?g.indexOf(f):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,S=w>=x,_=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,s9.W)(e),r=(0,b.useRef)(!1),i=(0,b.useRef)(()=>{});return(0,b.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hs("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));!S||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),C=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,s9.W)(e),r=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hs("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,n=[...d.branches].some(e=>e.contains(t));n||(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,s9.W)(e);(0,b.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=w===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,b.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),ha(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,b.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),ha())},[f,d]),(0,b.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hr,e),()=>document.removeEventListener(hr,e)},[]),(0,b.createElement)(fW.div,(0,E.Z)({},c,{ref:v,style:{pointerEvents:j?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,O.M)(e.onFocusCapture,C.onFocusCapture),onBlurCapture:(0,O.M)(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:(0,O.M)(e.onPointerDownCapture,_.onPointerDownCapture)}))});function ha(){let e=new CustomEvent(hr);document.dispatchEvent(e)}function hs(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,e6.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hl="HoverCard",[hu,hc]=(0,j.b)(hl,[fG]),hd=fG(),[hf,hh]=hu(hl),hp=(0,b.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hh("HoverCardTrigger",n),o=hd(n);return(0,b.createElement)(fQ,(0,E.Z)({asChild:!0},o),(0,b.createElement)(fW.a,(0,E.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,O.M)(e.onPointerEnter,hw(i.onOpen)),onPointerLeave:(0,O.M)(e.onPointerLeave,hw(i.onClose)),onFocus:(0,O.M)(e.onFocus,i.onOpen),onBlur:(0,O.M)(e.onBlur,i.onClose),onTouchStart:(0,O.M)(e.onTouchStart,e=>e.preventDefault())})))}),hm="HoverCardPortal",[hv,hg]=hu(hm,{forceMount:void 0}),hy="HoverCardContent",hx=(0,b.forwardRef)((e,t)=>{let n=hg(hy,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hh(hy,e.__scopeHoverCard);return(0,b.createElement)(T.z,{present:r||o.open},(0,b.createElement)(hb,(0,E.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,O.M)(e.onPointerEnter,hw(o.onOpen)),onPointerLeave:(0,O.M)(e.onPointerLeave,hw(o.onClose)),ref:t})))}),hb=(0,b.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hh(hy,n),c=hd(n),d=(0,b.useRef)(null),f=(0,k.e)(t,d),[h,p]=(0,b.useState)(!1);return(0,b.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,b.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(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,b.useEffect)(()=>{if(d.current){let e=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);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,b.createElement)(ho,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,O.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,b.createElement)(f3,(0,E.Z)({},c,l,{onPointerDown:(0,O.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 hw(e){return t=>"touch"===t.pointerType?void 0:e()}let hE=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hd(t),u=(0,b.useRef)(0),c=(0,b.useRef)(0),d=(0,b.useRef)(!1),f=(0,b.useRef)(!1),[h=!1,p]=(0,C.T)({prop:r,defaultProp:i,onChange:o}),m=(0,b.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,b.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,b.useCallback)(()=>p(!1),[p]);return(0,b.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,b.createElement)(hf,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,b.createElement)(ht,l,n))},hj=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hh(hm,t);return(0,b.createElement)(hv,{scope:t,forceMount:n},(0,b.createElement)(T.z,{present:n||o.open},(0,b.createElement)(hn,{asChild:!0,container:i},r)))},hk=(0,ea.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"]),hS=(0,ea.cx)(tY(),"max-w-sm","py-0.5","px-1"),h_={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},hO=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=s1({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(hE,{open:l,onOpenChange:u,...i,children:[n&&(0,x.jsx)(hp,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:l?(0,x.jsx)(hj,{forceMount:!0,children:(0,x.jsx)(hx,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,x.jsx)(s0.div,{variants:h_,initial:"init",animate:"show",exit:"exit",className:hk(),children:(0,x.jsx)("div",{className:(0,ea.cx)(hS,a),children:r})})})}):null})]})});function hC(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,b.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,b.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,b.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,b.useMemo)(()=>a,Object.values(a));return(0,b.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,b.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),o=i[`__scope${r}`];return{...t,...o}},{});return(0,b.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function hM(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 hA(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function hT(...e){return(0,b.useCallback)(hA(...e),e)}let hP=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(hD);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:b.Children.count(e)>1?b.Children.only(null):(0,b.isValidElement)(e)?e.props.children:null);return(0,b.createElement)(hN,(0,E.Z)({},r,{ref:t}),(0,b.isValidElement)(e)?(0,b.cloneElement)(e,void 0,n):null)}return(0,b.createElement)(hN,(0,E.Z)({},r,{ref:t}),n)});hP.displayName="Slot";let hN=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,b.isValidElement)(n)?(0,b.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?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?hA(t,n.ref):n.ref}):b.Children.count(n)>1?b.Children.only(null):null});hN.displayName="SlotClone";let hR=({children:e})=>(0,b.createElement)(b.Fragment,null,e);function hD(e){return(0,b.isValidElement)(e)&&e.type===hR}let hL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,b.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hP:t;return(0,b.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,b.createElement)(o,(0,E.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function hF(e){let t=(0,b.useRef)(e);return(0,b.useEffect)(()=>{t.current=e}),(0,b.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let hV=(null==globalThis?void 0:globalThis.document)?b.useLayoutEffect:()=>{},hz=e=>{let{present:t,children:n}=e,r=function(e){var t;let[n,r]=(0,b.useState)(),i=(0,b.useRef)({}),o=(0,b.useRef)(e),a=(0,b.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,b.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},s));return(0,b.useEffect)(()=>{let e=hI(i.current);a.current="mounted"===l?e:"none"},[l]),hV(()=>{let t=i.current,n=o.current,r=n!==e;if(r){let r=a.current,i=hI(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]),hV(()=>{if(n){let e=e=>{let t=hI(i.current),r=t.includes(e.animationName);e.target===n&&r&&(0,e6.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=hI(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,b.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):b.Children.only(n),o=hT(r.ref,i.ref),a="function"==typeof n;return a||r.isPresent?(0,b.cloneElement)(i,{ref:o}):null};function hI(e){return(null==e?void 0:e.animationName)||"none"}hz.displayName="Presence";let hZ=w["useId".toString()]||(()=>void 0),hB=0;function hH(e){let t=e+"CollectionProvider",[n,r]=hC(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=b.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=hT(t,i.collectionRef);return b.createElement(hP,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=b.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=b.useRef(null),s=hT(t,a),c=o(l,n);return b.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),b.createElement(hP,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=b.useRef(null),o=b.useRef(new Map).current;return b.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=b.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}let hU="dismissableLayer.update",hW=(0,b.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hq=(0,b.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,b.useContext)(hW),[f,h]=(0,b.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,b.useState)({}),v=hT(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),w=f?g.indexOf(f):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,k=w>=x,S=function(e,t=null==globalThis?void 0:globalThis.document){let n=hF(e),r=(0,b.useRef)(!1),i=(0,b.useRef)(()=>{});return(0,b.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hY("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));!k||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),_=function(e,t=null==globalThis?void 0:globalThis.document){let n=hF(e),r=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hY("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,n=[...d.branches].some(e=>e.contains(t));n||(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=hF(e);(0,b.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=w===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,b.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),h$(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,b.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),h$())},[f,d]),(0,b.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hU,e),()=>document.removeEventListener(hU,e)},[]),(0,b.createElement)(hL.div,(0,E.Z)({},c,{ref:v,style:{pointerEvents:j?k?"auto":"none":void 0,...e.style},onFocusCapture:hM(e.onFocusCapture,_.onFocusCapture),onBlurCapture:hM(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:hM(e.onPointerDownCapture,S.onPointerDownCapture)}))});function h$(){let e=new CustomEvent(hU);document.dispatchEvent(e)}function hY(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,e6.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,b.createElement)(hL.span,(0,E.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 hG="NavigationMenu",[hX,hK,hQ]=hH(hG),[hJ,h0,h1]=hH(hG),[h2,h4]=hC(hG,[hQ,h1]),[h3,h5]=h2(hG),[h6,h8]=h2(hG),[h7,h9]=h2("NavigationMenuItem"),pe=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=h5("NavigationMenuIndicator",n),o=hK(n),[a,s]=(0,b.useState)(null),[l,u]=(0,b.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,b.useEffect)(()=>{var e;let t=o(),n=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;n&&s(n)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pa(a,f),pa(i.indicatorTrack,f),l?(0,b.createElement)(hL.div,(0,E.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"),pt=((e,t)=>{let n=h5(pe,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return hV(()=>{r(e.value,{ref:t,...e})},[e,t,r]),hV(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),pn=(0,b.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=h5(pe,n),d=(0,b.useRef)(null),f=hT(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=hK(n),v=(0,b.useRef)(null),{onItemDismiss:g}=c;(0,b.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(pt,t),()=>e.removeEventListener(pt,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,b.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let n=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=r===c.value,a=i===t.indexOf(r);if(!o&&!a)return v.current;let s=(()=>{if(n!==i){if(o&&-1!==i)return n>i?"from-end":"from-start";if(a&&-1!==n)return n>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,r]);return(0,b.createElement)(pr,{asChild:!0},(0,b.createElement)(hq,(0,E.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pt,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:hM(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:hM(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:hM(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,n="Tab"===e.key&&!t;if(n){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),n=document.activeElement,i=t.findIndex(e=>e===n),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(po(s))e.preventDefault();else{var r;null===(r=o.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:hM(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pr=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=h5("NavigationMenuViewport",n),a=hT(t,o.onViewportChange),s=h8(pe,e.__scopeNavigationMenu),[l,u]=(0,b.useState)(null),[c,d]=(0,b.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 pa(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,b.createElement)(hL.div,(0,E.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:hM(e.onPointerEnter,o.onContentEnter),onPointerLeave:hM(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,b.createElement)(hz,{key:e,present:n||i},(0,b.createElement)(pn,(0,E.Z)({},r,{ref:hA(t,e=>{i&&e&&d(e)})})))}))},(0,b.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=h5("FocusGroup",n);return(0,b.createElement)(hJ.Provider,{scope:n},(0,b.createElement)(hJ.Slot,{scope:n},(0,b.createElement)(hL.div,(0,E.Z)({dir:i.dir},r,{ref:t}))))})),pi=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=h0(n),o=h5("FocusGroupItem",n);return(0,b.createElement)(hJ.ItemSlot,{scope:n},(0,b.createElement)(hL.button,(0,E.Z)({},r,{ref:t,onKeyDown:hM(e.onKeyDown,e=>{let t=["Home","End",...pi].includes(e.key);if(t){let t=i().map(e=>e.ref.current),n="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([n,"ArrowUp","End"].includes(e.key)&&t.reverse(),pi.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>po(t)),e.preventDefault()}})})))};function po(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pa(e,t){let n=hF(t);hV(()=>{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 ps=n(38617);let pl=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(dq,{...r,ref:t,className:(0,ea.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 pu(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,ps.F)();return(0,x.jsxs)(dW,{value:i,tabIndex:r,className:(0,ea.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,x.jsx)(pl,{value:"system",children:(0,x.jsx)(s4,{className:n,sideOffset:16,content:"System",children:(0,x.jsx)(s6.$Iz,{})})}),(0,x.jsx)(pl,{value:"light",children:(0,x.jsx)(s4,{className:n,sideOffset:16,content:"Light",children:(0,x.jsx)(s6.JaG,{})})}),(0,x.jsx)(pl,{value:"dark",children:(0,x.jsx)(s4,{className:n,sideOffset:16,content:"Dark",children:(0,x.jsx)(s6.osk,{})})})]})}var pc=n(14582),pd=n(63739),pf=n(13980),ph=n.n(pf),pp=n(72779),pm=n.n(pp),pv=n(47440),pg=n(59309),py=n(19067),px=n(71220),pb=n(28142);function pw(e){return"bandwidth"in e?e.bandwidth():0}var pE=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function pj(){return(pj=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pE),g=null!=m?m:(0,px.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+pw(r)/2,x=g.map(function(e,t){var n,o=(null!=(n=(0,pb.Z)(r(e)))?n:0)+y;return{index:t,from:new py.Z({x:0,y:o}),to:new py.Z({x:i,y:o})}});return b.createElement(pg.Z,{className:pm()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:x}):x.map(function(e){var t=e.from,n=e.to,r=e.index;return b.createElement(pv.default,pj({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}pk.propTypes={tickValues:ph().array,width:ph().number.isRequired};var pS=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function p_(){return(p_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pS),g=null!=p?p:(0,px.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+pw(r)/2,x=g.map(function(e,t){var n,o=(null!=(n=(0,pb.Z)(r(e)))?n:0)+y;return{index:t,from:new py.Z({x:o,y:0}),to:new py.Z({x:o,y:i})}});return b.createElement(pg.Z,{className:pm()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:x}):x.map(function(e){var t=e.from,n=e.to,r=e.index;return b.createElement(pv.default,p_({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}pO.propTypes={tickValues:ph().array,height:ph().number.isRequired};var pC=n(64183),pM=n(8597);function pA(e){var t=e.id,n=e.width,r=e.height,i=e.children;return b.createElement("defs",null,b.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}pA.propTypes={id:ph().string.isRequired,width:ph().number.isRequired,height:ph().number.isRequired,children:ph().node.isRequired};var pT={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function pP(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 b.createElement(pA,{id:t,width:n,height:r},!!h&&b.createElement("rect",{className:pm()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return b.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:pm()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case pT.horizontal:return"M 0,"+t/2+" l "+t+",0";case pT.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 pT.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 pT.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}pP.propTypes={id:ph().string.isRequired,width:ph().number.isRequired,height:ph().number.isRequired,className:ph().string,background:ph().string,stroke:ph().string,strokeWidth:ph().oneOfType([ph().number,ph().string]),strokeDasharray:ph().oneOfType([ph().string,ph().number]),strokeLinecap:ph().oneOf(["square","butt","round","inherit"]),shapeRendering:ph().oneOfType([ph().string,ph().number]),orientation:ph().array};var pN=["tooltipOpen"];function pR(){return(pR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pD);return b.createElement("div",pL({ref:t,className:pm()("visx-tooltip",n),style:pL({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function pz(){return(pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pU),g=!1,y=!1;if(u&&l){var x=void 0===r?0:r,w=void 0===f?0:f;if(l.width){var E=x+o+u.width-l.width,j=u.width-x-o;g=E>0&&E>j}else{var k=x+o+u.width-window.innerWidth,S=u.width-x-o;g=k>0&&k>S}if(l.height){var _=w+s+u.height-l.height,O=u.height-w-s;y=_>0&&_>O}else y=w+s+u.height>window.innerHeight;x=g?x-u.width-o:x+o,w=y?w-u.height-s:w+s,t="translate("+(x=Math.round(x))+"px, "+(w=Math.round(w))+"px)"}return b.createElement(pV,pW({ref:m,style:pW({left:0,top:0,transform:t},!p&&d)},v),b.createElement(pH,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},n))}pq.propTypes={nodeRef:ph().oneOfType([ph().string,ph().func,ph().object])};var p$=((Ez=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=b.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,pI(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:e6.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():pZ,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():pZ}},n.render=function(){return b.createElement(pq,pz({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(b.PureComponent)).displayName="withBoundingRects("+(pq.displayName||"")+")",Ez),pY=n(99985);function pG(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 p3({},t,{isBrushing:!0,extent:p3({},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=p3({},e,{isBrushing:!1,start:p3({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:p3({},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,p5(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 b.createElement(pY.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 b.createElement("g",null,h&&b.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:p6}),b.createElement("rect",p3({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}(b.Component);function p7(){return(p7=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 p7({},e,{isBrushing:!0,extent:p7({},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 p7({},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=p7({},c);r&&r(c),n.updateBrush(function(t){return p7({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?pK(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 p7({},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=p7({},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=p7({},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,p9(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,x=i.renderBrushHandle,w=this.state.brushingType,E=this.handles(),j=this.corners(),k=this.getBrushWidth(),S=this.getBrushHeight(),_=new Set(p);return b.createElement(pg.Z,{className:"visx-brush",top:o,left:a},b.createElement(pY.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===w:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return b.createElement(pc.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,ma),g=o,y=s,x=a,w=l;return void 0!==m&&!m||g||y||x||w||(g="0",y="0",x="0",w="1"),b.createElement("defs",null,b.createElement("linearGradient",ms({id:n,x1:g,y1:x,x2:y,y2:w,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&b.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&b.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}function mu(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function mc(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function md(){return 0}function mf(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}ml.propTypes={id:ph().string.isRequired,from:ph().string,to:ph().string,x1:ph().oneOfType([ph().string,ph().number]),x2:ph().oneOfType([ph().string,ph().number]),y1:ph().oneOfType([ph().string,ph().number]),y2:ph().oneOfType([ph().string,ph().number]),fromOffset:ph().oneOfType([ph().string,ph().number]),fromOpacity:ph().oneOfType([ph().string,ph().number]),toOffset:ph().oneOfType([ph().string,ph().number]),toOpacity:ph().oneOfType([ph().string,ph().number]),rotate:ph().oneOfType([ph().string,ph().number]),transform:ph().string,children:ph().node,vertical:ph().bool};var mp=n(12436),mm=n.n(mp),mv=n(55746),mg=n(45742),my=n(27266),mx=["id","markerWidth","markerHeight","markerUnits","children"];function mb(){return(mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mx);return b.createElement("defs",null,b.createElement("marker",mb({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}mw.propTypes={id:ph().string.isRequired,size:ph().number,markerWidth:ph().oneOfType([ph().string,ph().number]),markerHeight:ph().oneOfType([ph().string,ph().number]),markerUnits:ph().string,refX:ph().oneOfType([ph().string,ph().number]),refY:ph().oneOfType([ph().string,ph().number]),strokeWidth:ph().number,children:ph().node.isRequired};var mE=["id","size","strokeWidth"];function mj(){return(mj=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mE),s=2*r+o,l=s/2;return b.createElement(mw,mj({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),b.createElement("circle",{r:r,cx:l,cy:l}))}var mS=n(64170),m_={top:"top",left:"left",bottom:"bottom"};function mO(){return(mO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mD),k=null!=g?g:"tickFormat"in v?v.tickFormat():mP.Z,S=h===m_.left,_=h===m_.top,O=_||h===m_.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}(v),M=S||_?-1:1,A=v.range(),T=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:mR({start:0,end:0},t)),P=mN({x:Number(A[0])+.5-T.start,y:0},O),N=mN({x:Number(A[A.length-1])+.5+T.end,y:0},O),R=(null!=w?w:(0,px.Z)(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),D=R.map(function(e){var t=e.value,n=e.index,r=(0,pb.Z)(C(t));return{value:t,index:n,from:mN({x:r,y:0},O),to:mN({x:r,y:x*M},O),formattedValue:k(t,n,R)}});return b.createElement(pg.Z,{className:pm()("visx-axis",i),top:void 0===E?0:E,left:void 0===u?0:u},r(mL({},j,{axisFromPoint:P,axisToPoint:N,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:O,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:k,tickLength:x,tickPosition:C,tickSign:M,ticks:D})))}var mV=["axisClassName","labelOffset","tickLabelProps","tickLength"];function mz(){return(mz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mV);return b.createElement(mF,mz({axisClassName:pm()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:m_.bottom,tickLabelProps:void 0===r?mI:r,tickLength:void 0===i?8:i},o))}var mB=["axisClassName","labelOffset","tickLabelProps","tickLength"];function mH(){return(mH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mB);return b.createElement(mF,mH({axisClassName:pm()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:m_.left,tickLabelProps:void 0===r?mU:r,tickLength:void 0===i?8:i},o))}let mq=e=>new Date((null==e?void 0:e.timestamp)||0),m$=e=>(null==e?void 0:e.value)||0,mY="var(--colors-hiContrast)",mG={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:mY},mX={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:mY};function mK(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,x.jsxs)(pg.Z,{left:d||o.left,top:c||o.top,children:[(0,x.jsx)(mk,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,x.jsx)(ml,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,x.jsx)(mv.Z,{data:t,x:e=>a(mq(e))||0,y:e=>s(m$(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?mg.ZP:my.Z}),!l&&(0,x.jsx)(mZ,{top:i,scale:a,numTicks:r>520?10:5,stroke:mY,tickStroke:mY,tickLabelProps:()=>mG}),!u&&(0,x.jsx)(mW,{scale:s,numTicks:5,stroke:mY,tickStroke:mY,tickLabelProps:()=>mX}),h]})}var mQ=n(6692);let mJ={inherit:mQ.inherit,current:mQ.current,transparent:mQ.transparent,black:mQ.black,white:mQ.white,slate:mQ.slate,zinc:mQ.zinc,neutral:mQ.neutral,stone:mQ.stone,red:mQ.red,orange:mQ.orange,amber:mQ.amber,yellow:mQ.yellow,lime:mQ.lime,green:mQ.green,emerald:mQ.emerald,teal:mQ.teal,cyan:mQ.cyan,sky:mQ.sky,blue:mQ.blue,indigo:mQ.indigo,violet:mQ.violet,purple:mQ.purple,fuchsia:mQ.fuchsia,pink:mQ.pink,rose:mQ.rose,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 m0=n(96206);let m1={top:10,bottom:15,left:10,right:10},m2="brush_pattern",m4="brush_gradient",m3=mm()(e=>e(),15),m5=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(imu(e(t),n),r=(t,n)=>e(t)-n):(t=e===mu||e===mc?e:md,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===EI&&(EI={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===EZ&&(EZ=function(e,t){return b.createElement("div",t,e)});var m6=n(70390),m8=n(3440),m7=n.n(m8);function m9(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:w,renderTooltipGlyph:E,renderLineSeries:j,sharedTooltip:k,showHorizontalCrosshair:S,showTooltip:_,showVerticalCrosshair:O,snapTooltipToDatum:C,stackOffset:M,margin:A,theme:T,xAxisOrientation:P,yAxisOrientation:N,AreaSeries:R,AreaStack:D,Axis:L,BarGroup:F,BarSeries:V,BarStack:z,Grid:I,LineSeries:Z,Tooltip:B,XYChart:H}=e;return(0,x.jsxs)(H,{theme:T.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:A,captureEvents:!0,children:[(0,x.jsx)("g",{children:(0,x.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,x.jsx)(ml,{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,x.jsxs)(b.Fragment,{children:[(0,x.jsx)(pP,{id:"pattern-".concat(ve(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,x.jsx)(ml,{id:"gradient-".concat(ve(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,x.jsx)(I,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),y&&(0,x.jsx)(z,{offset:l.stackOffset,children:c.map(e=>(0,x.jsx)(V,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vt(t,e,l)},e))}),g&&(0,x.jsx)(F,{children:c.map(e=>(0,x.jsx)(V,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vt(t,e,l)},e))}),m&&(0,x.jsx)(x.Fragment,{children:c.map(e=>(0,x.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vt(t,e,l),fill:vt(t,e,l),curve:a},e))}),v&&(0,x.jsx)(D,{curve:a,offset:l.stackOffset,renderLine:"wiggle"!==M,children:c.map(e=>(0,x.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vt(t,e,l),fill:vt(t,e,l)},e))}),j&&(0,x.jsx)(x.Fragment,{children:c.map(e=>{var t,n;return(0,x.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:a},e)})}),(0,x.jsx)(L,{orientation:P,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,m0.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:T.labels.color,fontFamily:T.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,x.jsx)(L,{label:null==M?"SC":"expand"===M?"Fraction of total":"",orientation:N,numTicks:p,tickLength:12,animationTrajectory:o,tickFormat:l.formatTickY,tickTransform:"translate(-300px, 0)",tickLabelProps:e=>({...e,fill:T.labels.color,fontFamily:T.labels.fontFamily,fontWeight:"500",fontSize:"8"})},"temp-axis-".concat(o)),_&&(0,x.jsx)(B,{showHorizontalCrosshair:S,showVerticalCrosshair:O,snapTooltipToDatumX:C,snapTooltipToDatumY:C,showDatumGlyph:C&&!g,showSeriesGlyphs:k&&!g,renderGlyph:w?E: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=k?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,m0.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=m7()(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,x.jsxs)("div",{className:(0,ea.cx)("flex flex-col gap-2 py-1"),children:[(0,x.jsx)(tq,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,x.jsx)(cb,{color:"panel",className:"w-full"}),(0,x.jsx)("div",{className:(0,ea.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,x.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,x.jsx)(tq,{weight:"semibold",children:t}),(0,x.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,x.jsxs)(b.Fragment,{children:[(0,x.jsx)(tq,{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,ea.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,x.jsx)(tq,{size:"12",style:{textAlign:"end"},className:(0,ea.cx)(a===c?"underline":""),children:null==d||Number.isNaN(d)?"–":s?(0,x.jsx)(s,{value:d}):l.format?l.format(d):d})]},c)}),n.length>1&&f&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tq,{className:"pt-2",children:"total"}),(0,x.jsx)(tq,{size:"12",weight:"bold",className:"pt-2 text-end",children:s?(0,x.jsx)(s,{value:r}):l.format?l.format(r):r})]})]})]},t)})})]})}})]})}function ve(e,t){return"".concat(e,"-").concat(t)}function vt(e,t,n){var r;let i=ve(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 vn=n(24037),vr=n(86707);function vi(e){var t=e.top,n=e.left,r=e.className,i=e.children;return b.createElement(pg.Z,{className:pm()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}vi.propTypes={top:ph().number,left:ph().number,className:ph().string,children:ph().node};var vo=["children","className","top","left","size"];function va(){return(va=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vo),s=(0,vn.Z)();return(s.type(vr.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?b.createElement(b.Fragment,null,t({path:s})):b.createElement(vi,{top:r,left:i},b.createElement("path",va({className:pm()("visx-glyph-star",n),d:s()||""},a)))}vs.propTypes={children:ph().func,className:ph().string,top:ph().number,left:ph().number,size:ph().oneOfType([ph().number,ph().func])};var vl=["top","left","className"];function vu(){return(vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vl);return b.createElement(vi,{top:void 0===t?0:t,left:void 0===n?0:n},b.createElement("circle",vu({className:pm()("visx-glyph-dot",r)},i)))}vc.propTypes={className:ph().string,top:ph().number,left:ph().number,r:ph().number,cx:ph().number,cy:ph().number};var vd=n(9135),vf=["children","className","top","left","size"];function vh(){return(vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vf),s=(0,vn.Z)();return(s.type(vd.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?b.createElement(b.Fragment,null,t({path:s})):b.createElement(vi,{top:r,left:i},b.createElement("path",vh({className:pm()("visx-glyph-cross",n),d:s()||""},a)))}vp.propTypes={children:ph().func,className:ph().string,top:ph().number,left:ph().number,size:ph().oneOfType([ph().number,ph().func])};var vm=n(46385),vv=n(20651),vg={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"]},vy=vg.gray,vx=vy[7],vb=[vg.cyan[9],vg.cyan[3],vg.yellow[5],vg.red[4],vg.grape[8],vg.grape[5],vg.pink[9]];function vw(){return(vw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)v_(e,n,{get:t[n],enumerable:!0})})(vO,{assign:()=>v5,colors:()=>v2,createStringInterpolator:()=>EU,skipAnimation:()=>v4,to:()=>EW,willAdvance:()=>v3});var vC=vU(),vM=e=>vI(e,vC),vA=vU();vM.write=e=>vI(e,vA);var vT=vU();vM.onStart=e=>vI(e,vT);var vP=vU();vM.onFrame=e=>vI(e,vP);var vN=vU();vM.onFinish=e=>vI(e,vN);var vR=[];vM.setTimeout=(e,t)=>{let n=vM.now()+t,r=()=>{let e=vR.findIndex(e=>e.cancel==r);~e&&vR.splice(e,1),vV-=~e?1:0},i={time:n,handler:e,cancel:r};return vR.splice(vD(n),0,i),vV+=1,vZ(),i};var vD=e=>~(~vR.findIndex(t=>t.time>e)||~vR.length);vM.cancel=e=>{vT.delete(e),vP.delete(e),vN.delete(e),vC.delete(e),vA.delete(e)},vM.sync=e=>{vz=!0,vM.batchedUpdates(e),vz=!1},vM.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,vM.onStart(n)}return r.handler=e,r.cancel=()=>{vT.delete(n),t=null},r};var vL="undefined"!=typeof window?window.requestAnimationFrame:()=>{};vM.use=e=>vL=e,vM.now="undefined"!=typeof performance?()=>performance.now():Date.now,vM.batchedUpdates=e=>e(),vM.catch=console.error,vM.frameLoop="always",vM.advance=()=>{"demand"!==vM.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):vH()};var vF=-1,vV=0,vz=!1;function vI(e,t){vz?(t.delete(e),e(0)):(t.add(e),vZ())}function vZ(){vF<0&&(vF=0,"demand"!==vM.frameLoop&&vL(vB))}function vB(){~vF&&(vL(vB),vM.batchedUpdates(vH))}function vH(){let e=vF;vF=vM.now();let t=vD(vF);if(t&&(vW(vR.splice(0,t),e=>e.handler()),vV-=t),!vV){vF=-1;return}vT.flush(),vC.flush(e?Math.min(64,vF-e):16.667),vP.flush(),vA.flush(),vN.flush()}function vU(){let e=new Set,t=e;return{add(n){vV+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(vV-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,vV-=t.size,vW(t,t=>t(n)&&e.add(t)),vV+=e.size,t=e)}}}function vW(e,t){e.forEach(e=>{try{t(e)}catch(e){vM.catch(e)}})}function vq(){}var v$=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),vY={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 vG(e,t){if(vY.arr(e)){if(!vY.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function vK(e,t,n){if(vY.arr(e)){for(let r=0;rvY.und(e)?[]:vY.arr(e)?e:[e];function vJ(e,t){if(e.size){let n=Array.from(e);e.clear(),vX(n,t)}}var v0=(e,...t)=>vJ(e,e=>e(...t)),v1=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),v2=null,v4=!1,v3=vq,v5=e=>{e.to&&(EW=e.to),e.now&&(vM.now=e.now),void 0!==e.colors&&(v2=e.colors),null!=e.skipAnimation&&(v4=e.skipAnimation),e.createStringInterpolator&&(EU=e.createStringInterpolator),e.requestAnimationFrame&&vM.use(e.requestAnimationFrame),e.batchedUpdates&&(vM.batchedUpdates=e.batchedUpdates),e.willAdvance&&(v3=e.willAdvance),e.frameLoop&&(vM.frameLoop=e.frameLoop)},v6=new Set,v8=[],v7=[],v9=0,ge={get idle(){return!v6.size&&!v8.length},start(e){v9>e.priority?(v6.add(e),vM.onStart(gt)):(gn(e),vM(gi))},advance:gi,sort(e){if(v9)vM.onFrame(()=>ge.sort(e));else{let t=v8.indexOf(e);~t&&(v8.splice(t,1),gr(e))}},clear(){v8=[],v6.clear()}};function gt(){v6.forEach(gn),v6.clear(),vM(gi)}function gn(e){v8.includes(e)||gr(e)}function gr(e){v8.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(v8,t=>t.priority>e.priority),0,e)}function gi(e){let t=v7;for(let n=0;n0}var go="[-+]?\\d*\\.?\\d+",ga=go+"%";function gs(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var gl=RegExp("rgb"+gs(go,go,go)),gu=RegExp("rgba"+gs(go,go,go,go)),gc=RegExp("hsl"+gs(go,ga,ga)),gd=RegExp("hsla"+gs(go,ga,ga,go)),gf=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gh=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gp=/^#([0-9a-fA-F]{6})$/,gm=/^#([0-9a-fA-F]{8})$/;function gv(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 gg(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=gv(i,r,e+1/3),a=gv(i,r,e),s=gv(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function gy(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function gx(e){let t=parseFloat(e);return(t%360+360)%360/360}function gb(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function gw(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function gE(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gp.exec(e))?parseInt(t[1]+"ff",16)>>>0:v2&&void 0!==v2[e]?v2[e]:(t=gl.exec(e))?(gy(t[1])<<24|gy(t[2])<<16|gy(t[3])<<8|255)>>>0:(t=gu.exec(e))?(gy(t[1])<<24|gy(t[2])<<16|gy(t[3])<<8|gb(t[4]))>>>0:(t=gf.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=gm.exec(e))?parseInt(t[1],16)>>>0:(t=gh.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gc.exec(e))?(255|gg(gx(t[1]),gw(t[2]),gw(t[3])))>>>0:(t=gd.exec(e))?(gg(gx(t[1]),gw(t[2]),gw(t[3]))|gb(t[4]))>>>0:null;if(null===n)return e;n=n||0;let r=(4278190080&n)>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var gj=(e,t,n)=>{if(vY.fun(e))return e;if(vY.arr(e))return gj({range:e,output:t,extrapolate:n});if(vY.str(e.output[0]))return EU(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)}},gk=Symbol.for("FluidValue.get"),gS=Symbol.for("FluidValue.observers"),g_=e=>!!(e&&e[gk]),gO=e=>e&&e[gk]?e[gk]():e,gC=e=>e[gS]||null;function gM(e,t){let n=e[gS];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var gA=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");gT(this,e)}},gT=(e,t)=>gR(e,gk,t);function gP(e,t){if(e[gk]){let n=e[gS];n||gR(e,gS,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function gN(e,t){let n=e[gS];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[gS]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var gR=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),gD=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,gL=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,gF=RegExp(`(${gD.source})(%|[a-z]+)`,"i"),gV=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,gz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,gI=e=>{let[t,n]=gZ(e);if(!t||v1())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&&gz.test(n))return gI(n);else if(n)return n;return e},gZ=e=>{let t=gz.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},gB=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,gH=e=>{Eq||(Eq=v2?RegExp(`(${Object.keys(v2).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>gO(e).replace(gz,gI).replace(gL,gE).replace(Eq,gE)),n=t.map(e=>e.match(gD).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]})),i=r.map(t=>gj({...e,output:t}));return e=>{let n=!gF.test(t[0])&&t.find(e=>gF.test(e))?.replace(gD,""),r=0;return t[0].replace(gD,()=>`${i[r++](e)}${n||""}`).replace(gV,gB)}},gU="react-spring: ",gW=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${gU}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},gq=gW(console.warn),g$=gW(console.warn);function gY(e){return vY.str(e)&&("#"==e[0]||/\d/.test(e)||!v1()&&gz.test(e)||e in(v2||{}))}var gG=v1()?b.useEffect:b.useLayoutEffect,gX=()=>{let e=(0,b.useRef)(!1);return gG(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function gK(){let e=(0,b.useState)()[1],t=gX();return()=>{t.current&&e(Math.random())}}var gQ=e=>(0,b.useEffect)(e,gJ),gJ=[];function g0(e){let t=(0,b.useRef)();return(0,b.useEffect)(()=>{t.current=e}),t.current}var g1=Symbol.for("Animated:node"),g2=e=>!!e&&e[g1]===e,g4=e=>e&&e[g1],g3=(e,t)=>v$(e,g1,t),g5=e=>e&&e[g1]&&e[g1].getPayload(),g6=class{constructor(){g3(this,this)}getPayload(){return this.payload||[]}},g8=class extends g6{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,vY.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new g8(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return vY.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,vY.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},g7=class extends g8{constructor(e){super(0),this._string=null,this._toString=gj({output:[e,e]})}static create(e){return new g7(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(vY.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=gj({output:[this.getValue(),e]})),this._value=0,super.reset()}},g9={dependencies:null},ye=class extends g6{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return vK(this.source,(n,r)=>{g2(n)?t[r]=n.getValue(e):g_(n)?t[r]=gO(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&vX(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return vK(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){g9.dependencies&&g_(e)&&g9.dependencies.add(e);let t=g5(e);t&&vX(t,e=>this.add(e))}},yt=class extends ye{constructor(e){super(e)}static create(e){return new yt(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(yn)),!0)}};function yn(e){let t=gY(e)?g7:g8;return t.create(e)}function yr(e){let t=g4(e);return t?t.constructor:vY.arr(e)?yt:gY(e)?g7:g8}var yi=(e,t)=>{let n=!vY.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,b.forwardRef)((r,i)=>{let o=(0,b.useRef)(null),a=n&&(0,b.useCallback)(e=>{o.current=(i&&(vY.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return g9.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new ye(e),g9.dependencies=null,[e,n]}(r,t),u=gK(),c=()=>{let e=o.current;if(n&&!e)return;let r=!!e&&t.applyAnimatedValues(e,s.getValue(!0));!1===r&&u()},d=new yo(c,l),f=(0,b.useRef)();gG(()=>(f.current=d,vX(l,e=>gP(e,d)),()=>{f.current&&(vX(f.current.deps,e=>gN(e,f.current)),vM.cancel(f.current.update))})),(0,b.useEffect)(c,[]),gQ(()=>()=>{let e=f.current;vX(e.deps,t=>gN(t,e))});let h=t.getComponentProps(s.getValue());return b.createElement(e,{...h,ref:a})})},yo=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&vM.write(this.update)}},ya=Symbol.for("AnimatedComponent"),ys=e=>vY.str(e)?e:e&&vY.str(e.displayName)?e.displayName:vY.fun(e)&&e.name||null;function yl(e,...t){return vY.fun(e)?e(...t):e}var yu=(e,t)=>!0===e||!!(t&&e&&(vY.fun(e)?e(t):vQ(e).includes(t))),yc=(e,t)=>vY.obj(e)?t&&e[t]:e,yd=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,yf=e=>e,yh=(e,t=yf)=>{let n=yp;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);vY.und(n)||(r[i]=n)}return r},yp=["config","onProps","onStart","onChange","onPause","onResume","onRest"],ym={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 yv(e){let t=function(e){let t={},n=0;if(vK(e,(e,r)=>{!ym[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return vK(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function yg(e){return e=gO(e),vY.arr(e)?e.map(yg):gY(e)?vO.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yy(e){for(let t in e)return!0;return!1}function yx(e){return vY.fun(e)||vY.arr(e)&&vY.obj(e[0])}function yb(e,t){e.ref?.delete(e),t?.delete(e)}function yw(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var yE={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},yj=class{constructor(){this.velocity=0,Object.assign(this,yE)}};function yk(e,t){if(vY.und(t.decay)){let n=!vY.und(t.tension)||!vY.und(t.friction);!n&&vY.und(t.frequency)&&vY.und(t.damping)&&vY.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var yS=[],y_=class{constructor(){this.changed=!1,this.values=yS,this.toValues=null,this.fromValues=yS,this.config=new yj,this.immediate=!1}};function yO(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=yu(n.cancel??r?.cancel,t);if(c)h();else{vY.und(n.pause)||(i.paused=yu(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||yu(e,t)),l=yl(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-vM.now()}function f(){l>0&&!vO.skipAnimation?(i.delayed=!0,u=vM.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 yC=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?yT(e.get()):t.every(e=>e.noop)?yM(e.get()):yA(e.get(),t.every(e=>e.finished)),yM=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),yA=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),yT=e=>({value:e,cancelled:!0,finished:!1});function yP(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=yh(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)&&yT(r)||i!==n.asyncId&&yA(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new yR,a=new yD;return(async()=>{if(vO.skipAnimation)throw yN(n),a.result=yA(r,!1),c(a),a;p(o);let s=vY.obj(e)?{...e}:{...t,to:e};s.parentId=i,vK(f,(e,t)=>{vY.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(vO.skipAnimation)return yN(n),yA(r,!1);try{let t;t=vY.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=yA(r.get(),!0,!1)}catch(e){if(e instanceof yR)d=e.result;else if(e instanceof yD)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 vY.fun(a)&&vM.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function yN(e,t){vJ(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var yR=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.")}},yD=class extends Error{constructor(){super("SkipAnimationSignal")}},yL=e=>e instanceof yV,yF=1,yV=class extends gA{constructor(){super(...arguments),this.id=yF++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=g4(this);return e&&e.getValue()}to(...e){return vO.to(this,e)}interpolate(...e){return gq(`${gU}The "interpolate" function is deprecated in v9 (use "to" instead)`),vO.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){gM(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ge.sort(this),gM(this,{type:"priority",parent:this,priority:e})}},yz=Symbol.for("SpringPhase"),yI=e=>(1&e[yz])>0,yZ=e=>(2&e[yz])>0,yB=e=>(4&e[yz])>0,yH=(e,t)=>t?e[yz]|=3:e[yz]&=-3,yU=(e,t)=>t?e[yz]|=4:e[yz]&=-5,yW=class extends yV{constructor(e,t){if(super(),this.animation=new y_,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,!vY.und(e)||!vY.und(t)){let n=vY.obj(e)?{...e}:{...t,from:e};vY.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(yZ(this)||this._state.asyncTo)||yB(this)}get goal(){return gO(this.animation.to)}get velocity(){let e=g4(this);return e instanceof g8?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return yI(this)}get isAnimating(){return yZ(this)}get isPaused(){return yB(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=g5(r.to);!a&&g_(r.to)&&(i=vQ(gO(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==g7?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=vY.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(vY.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=!vY.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),n=-(.001*o.friction)*t,i=(e+n)/o.mass;t+=1*i,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=g4(this),l=s.getValue();if(t){let e=gO(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 vM.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(yZ(this)){let{to:e,config:t}=this.animation;vM.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){let t=this.queue||(this.queue=[]);return t.push(e),this}start(e,t){let n;return vY.und(e)?(n=this.queue||[],this.queue=[]):n=[vY.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>{let t=this._update(e);return t})).then(e=>yC(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),yN(this._state,e&&this._lastCallId),vM.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=vY.obj(n)?n[t]:n)||yx(n))&&(n=void 0),null==(r=vY.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return yI(this)||(e.reverse&&([n,r]=[r,n]),r=gO(r),vY.und(r)?g4(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yh(e,(e,t)=>/^on/.test(t)?yc(e,n):e)),yK(this,e,"onProps"),yQ(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 yO(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{yB(this)||(yU(this,!0),v0(o.pauseQueue),yQ(this,"onPause",yA(this,yq(this,this.animation.to)),this))},resume:()=>{yB(this)&&(yU(this,!1),yZ(this)&&this._resume(),v0(o.resumeQueue),yQ(this,"onResume",yA(this,yq(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=y$(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(yT(this));let r=!vY.und(e.to),i=!vY.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(yT(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||vY.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!vG(d,u);f&&(s.from=d),d=gO(d);let h=!vG(c,l);h&&this._focus(c);let p=yx(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&&(yk(n={...n},t),t={...n,...t}),yk(e,t),Object.assign(e,t),yE)null==e[r]&&(e[r]=yE[r]);let{frequency:r,damping:i}=e,{mass:o}=e;vY.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,yl(t.config,o),t.config!==a.config?yl(a.config,o):void 0);let y=g4(this);if(!y||vY.und(c))return n(yA(this,!0));let x=vY.und(t.reset)?i&&!t.default:!vY.und(d)&&yu(t.reset,o),b=x?d:this.get(),w=yg(c),E=vY.num(w)||vY.arr(w)||gY(w),j=!p&&(!E||yu(a.immediate||t.immediate,o));if(h){let e=yr(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=g_(c),_=!1;if(!S){let e=x||!yI(this)&&f;(h||e)&&(S=!(_=vG(yg(b),w))),(vG(s.immediate,j)||j)&&vG(m.decay,v)&&vG(m.velocity,g)||(S=!0)}if(_&&yZ(this)&&(s.changed&&!x?S=!0:S||this._stop(l)),!p&&((S||g_(l))&&(s.values=y.getPayload(),s.toValues=g_(c)?null:k==g7?[1]:vQ(w)),s.immediate==j||(s.immediate=j,j||x||this._set(l)),S)){let{onRest:e}=s;vX(yX,e=>yK(this,t,e));let r=yA(this,yq(this,l));v0(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&vM.batchedUpdates(()=>{s.changed=!x,e?.(r,this),x?yl(a.onRest,r):s.onStart?.(r,this)})}x&&this._set(b),p?n(yP(t.to,t,this._state,this)):S?this._start():yZ(this)&&!h?this._pendingCalls.add(n):n(yM(b))}_focus(e){let t=this.animation;e!==t.to&&(gC(this)&&this._detach(),t.to=e,gC(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;g_(t)&&(gP(t,this),yL(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;g_(e)&&gN(e,this)}_set(e,t=!0){let n=gO(e);if(!vY.und(n)){let e=g4(this);if(!e||!vG(n,e.getValue())){let r=yr(n);e&&e.constructor==r?e.setValue(n):g3(this,r.create(n)),e&&vM.batchedUpdates(()=>{this._onChange(n,t)})}}return g4(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,yQ(this,"onStart",yA(this,yq(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yl(this.animation.onChange,e,this)),yl(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;g4(this).reset(gO(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),yZ(this)||(yH(this,!0),yB(this)||this._resume())}_resume(){vO.skipAnimation?this.finish():ge.start(this)}_stop(e,t){if(yZ(this)){yH(this,!1);let n=this.animation;vX(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),gM(this,{type:"idle",parent:this});let r=t?yT(this.get()):yA(this.get(),yq(this,e??n.to));v0(this._pendingCalls,r),n.changed&&(n.changed=!1,yQ(this,"onRest",r,this))}}};function yq(e,t){let n=yg(t),r=yg(e.get());return vG(r,n)}function y$(e,t=e.loop,n=e.to){let r=yl(t);if(r){let i=!0!==r&&yv(r),o=(i||e).reverse,a=!i||i.reset;return yY({...e,loop:t,default:!1,pause:void 0,to:!o||yx(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function yY(e){let{to:t,from:n}=e=yv(e),r=new Set;return vY.obj(t)&&yG(t,r),vY.obj(n)&&yG(n,r),e.keys=r.size?Array.from(r):null,e}function yG(e,t){vK(e,(e,n)=>null!=e&&t.add(n))}var yX=["onStart","onRest","onChange","onPause","onResume"];function yK(e,t,n){e.animation[n]=t[n]!==yd(t,n)?yc(t[n],e.key):void 0}function yQ(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var yJ=["onStart","onChange","onRest"],y0=1,y1=class{constructor(e,t){this.id=y0++,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];vY.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(yY(e)),this}start(e){let{queue:t}=this;return(e?t=vQ(e).map(yY):this.queue=[],this._flush)?this._flush(this,t):(y7(this,t),y2(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;vX(vQ(t),t=>n[t].stop(!!e))}else yN(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(vY.und(e))this.start({pause:!0});else{let t=this.springs;vX(vQ(e),e=>t[e].pause())}return this}resume(e){if(vY.und(e))this.start({pause:!1});else{let t=this.springs;vX(vQ(e),e=>t[e].resume())}return this}each(e){vK(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,vJ(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&&vJ(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,vJ(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)}vM.onFrame(this._onFrame)}};function y2(e,t){return Promise.all(t.map(t=>y4(e,t))).then(t=>yC(e,t))}async function y4(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=vY.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=vY.arr(i)||vY.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):vX(yJ,n=>{let r=t[n];if(vY.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,v0(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===yd(t,"cancel");(c||h&&d.asyncId)&&f.push(yO(++e._lastAsyncId,{props:t,state:d,actions:{pause:vq,resume:vq,start(t,n){h?(yN(d,e._lastAsyncId),n(yT(e))):(t.onRest=s,n(yP(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=yC(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=y$(t,a,i);if(n)return y7(e,[n]),y4(e,n,!0)}return l&&vM.batchedUpdates(()=>l(p,e,e.item)),p}function y3(e,t){let n={...e.springs};return t&&vX(vQ(t),e=>{vY.und(e.keys)&&(e=yY(e)),vY.obj(e.to)||(e={...e,to:void 0}),y8(n,e,e=>y6(e))}),y5(e,n),n}function y5(e,t){vK(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,gP(t,e))})}function y6(e,t){let n=new yW;return n.key=e,t&&gP(n,t),n}function y8(e,t,n){t.keys&&vX(t.keys,r=>{let i=e[r]||(e[r]=n(r));i._prepareNode(t)})}function y7(e,t){vX(t,t=>{y8(e.springs,t,t=>y6(t,e))})}var y9=({children:e,...t})=>{let n=(0,b.useContext)(xe),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,b.useState)(()=>({inputs:t,result:e()})),r=(0,b.useRef)(),i=r.current,o=i;if(o){let n=!!(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}=xe;return b.createElement(o,{value:t},e)},xe=(Object.assign(y9,b.createContext({})),y9.Provider._context=y9,y9.Consumer._context=y9,y9);y9.Provider=xe.Provider,y9.Consumer=xe.Consumer;var xt=()=>{let e=[],t=function(t){g$(`${gU}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 vX(e,(e,i)=>{if(vY.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 vX(e,e=>e.pause(...arguments)),this},t.resume=function(){return vX(e,e=>e.resume(...arguments)),this},t.set=function(t){vX(e,(e,n)=>{let r=vY.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return vX(e,(e,r)=>{if(vY.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 vX(e,e=>e.stop(...arguments)),this},t.update=function(t){return vX(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return vY.fun(e)?e(n,t):e};return t._getProps=n,t};function xn(e,t){let n=vY.fun(e),[[r],i]=function(e,t,n){let r=vY.fun(t)&&t;r&&!n&&(n=[]);let i=(0,b.useMemo)(()=>r||3==arguments.length?xt():void 0,[]),o=(0,b.useRef)(0),a=gK(),s=(0,b.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=y3(e,t),r=o.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t]);return r?y2(e,t):new Promise(r=>{y5(e,n),s.queue.push(()=>{r(y2(e,t))}),a()})}}),[]),l=(0,b.useRef)([...s.ctrls]),u=[],c=g0(e)||0;function d(e,n){for(let i=e;i{vX(l.current.slice(e,c),e=>{yb(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,b.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>y3(e,u[t])),h=(0,b.useContext)(y9),p=g0(h),m=h!==p&&yy(h);gG(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],vX(e,e=>e())),vX(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(yw(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),gQ(()=>()=>{vX(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 xr(e,t,n){let r=vY.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,b.useMemo)(()=>r||3==arguments.length?xt():void 0,[]),h=vQ(e),p=[],m=(0,b.useRef)(null),v=i?null:m.current;gG(()=>{m.current=p}),gQ(()=>(vX(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{vX(m.current,e=>{e.expired&&clearTimeout(e.expirationId),yb(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):xi++})}return vY.und(n)?e:vY.fun(n)?e.map(n):vQ(n)}(h,r?r():t,v),y=i&&m.current||[];gG(()=>vX(y,({ctrl:e,item:t,key:n})=>{yb(e,f),yl(u,t,n)}));let x=[];if(v&&vX(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=x[t]=g.indexOf(e.key))&&(p[t]=e)}),vX(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new y1},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;vX(x,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}vY.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let w=-a,E=gK(),j=yh(t),k=new Map,S=(0,b.useRef)(new Map),_=(0,b.useRef)(!1);vX(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=yl(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=yl(i,e.item,n),!(i=vY.obj(i)?yv(i):{to:i}).config){let t=d||j.config;i.config=yl(t,e.item,n,o)}w+=a;let y={...j,delay:p+w,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&vY.und(y.from)){let i=r?r():t,o=vY.und(i.initial)||v?i.from:i.initial;y.from=yl(o,e.item,n)}let{onResolve:x}=y;y.onResolve=e=>{yl(x,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=yl(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(E,r));return}}}e&&t.some(e=>e.expired)&&(S.current.delete(n),l&&(_.current=!0),E())}}};let b=y3(e.ctrl,y);"leave"===o&&l?S.current.set(e,{phase:o,springs:b,payload:y}):k.set(e,{phase:o,springs:b,payload:y})});let O=(0,b.useContext)(y9),C=g0(O),M=O!==C&&yy(O);gG(()=>{M&&vX(p,e=>{e.ctrl.start({default:O})})},[O]),vX(k,(e,t)=>{if(S.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),gG(()=>{vX(S.current.size?S.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),M&&"enter"==e&&r.start({default:O}),t&&(yw(r,t.ref),(r.ref||f)&&!_.current?r.update(t):(r.start(t),_.current&&(_.current=!1)))})},i?void 0:n);let A=e=>b.createElement(b.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?b.createElement(i.type,{...i.props,key:vY.str(t.key)||vY.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[A,f]:A}var xi=1,xo=class extends yV{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=gj(...t);let n=this._get(),r=yr(n);g3(this,r.create(n))}advance(e){let t=this._get(),n=this.get();vG(t,n)||(g4(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xs(this._active)&&xl(this)}_get(){let e=vY.arr(this.source)?this.source.map(gO):vQ(gO(this.source));return this.calc(...e)}_start(){this.idle&&!xs(this._active)&&(this.idle=!1,vX(g5(this),e=>{e.done=!1}),vO.skipAnimation?(vM.batchedUpdates(()=>this.advance()),xl(this)):ge.start(this))}_attach(){let e=1;vX(vQ(this.source),t=>{g_(t)&&gP(t,this),yL(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){vX(vQ(this.source),e=>{g_(e)&&gN(e,this)}),this._active.clear(),xl(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=vQ(this.source).reduce((e,t)=>Math.max(e,(yL(t)?t.priority:0)+1),0))}};function xa(e){return!1!==e.idle}function xs(e){return!e.size||Array.from(e).every(xa)}function xl(e){e.idle||(e.idle=!0,vX(g5(e),e=>{e.done=!0}),gM(e,{type:"idle",parent:e}))}var xu=(e,...t)=>new xo(e,t);vO.assign({createStringInterpolator:gH,to:(e,t)=>new xo(e,t)}),ge.advance;var xc=/^--/,xd={},xf={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},xh=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xp=["Webkit","Ms","Moz","O"];xf=Object.keys(xf).reduce((e,t)=>(xp.forEach(n=>e[xh(n,t)]=e[t]),e),xf);var xm=/^(matrix|translate|scale|rotate|skew)/,xv=/^(translate)/,xg=/^(rotate|skew)/,xy=(e,t)=>vY.num(e)&&0!==e?e+t:e,xx=(e,t)=>vY.arr(e)?e.every(e=>xx(e,t)):vY.num(e)?e===t:parseFloat(e)===t,xb=class extends ye{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=>xy(e,"px")).join(",")})`,xx(e,0)])),vK(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(xm.test(t)){if(delete r[t],vY.und(e))return;let n=xv.test(t)?"px":xg.test(t)?"deg":"";i.push(vQ(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${xy(i,n)})`,xx(i,0)]:e=>[`${t}(${e.map(e=>xy(e,n)).join(",")})`,xx(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new xw(i,o)),super(r)}},xw=class extends gA{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 vX(this.inputs,(n,r)=>{let i=gO(n[0]),[o,a]=this.transforms[r](vY.arr(i)?i:n.map(gO));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&vX(this.inputs,e=>vX(e,e=>g_(e)&&gP(e,this)))}observerRemoved(e){0==e&&vX(this.inputs,e=>vX(e,e=>g_(e)&&gN(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),gM(this,e)}};vO.assign({batchedUpdates:e6.unstable_batchedUpdates,createStringInterpolator:gH,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 xE=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new ye(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=ys(e)||"Anonymous";return(e=vY.str(e)?o[e]||(o[e]=yi(e,i)):e[ya]||(e[ya]=yi(e,i))).displayName=`Animated(${t})`,e};return vK(e,(t,n)=>{vY.arr(e)&&(n=ys(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:xd[t]||(xd[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||xc.test(t)||xf.hasOwnProperty(t)&&xf[t]?(""+d).trim():d+"px";xc.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 xb(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,xj=n(23442),xk=(0,b.createContext)({});function xS(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,b.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return b.createElement(xk.Provider,{value:a},o)}function x_(){return(x_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xP),p=(0,b.useContext)(xM)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,x=p.yScale,w=p.dataRegistry,E=(0,b.useMemo)(function(){return y?xA(y):0},[y]),j=(0,b.useMemo)(function(){return x?xA(x):0},[x]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==a?null:null==w?void 0:w.get(a),S=s||(null==k?void 0:k.xAccessor),_=l||(null==k?void 0:k.yAccessor);if(!y||!x||!v||!m||!S||!_||!g)return null;var O=(null!=(t=(0,pb.Z)(y(S(o))))?t:NaN)+E/2,C=(null!=(n=(0,pb.Z)(x(_(o))))?n:NaN)+j/2,M=O+c+16>g.left+v?-c:c,A=C+f+16>g.top+m?-f:f;return xT(O)&&xT(C)?b.createElement(r,xN({width:v,height:m},h,{x:O,y:C,dx:M,dy:A}),i):null}xR.propTypes={dataKey:ph().string,xAccessor:ph().func,yAccessor:ph().func};var xD=["x","y","AnnotationComponent"],xL=["editable"];function xF(){return(xF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function xz(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=xV(e,xD),s=(0,b.useRef)({x:n,y:i}),l=xn({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,b.useEffect)(function(){s.current={x:n,y:i}},[n,i]),b.createElement(xE.g,{transform:xu([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},b.createElement(o,xF({x:n,y:i},a)))}function xI(e){var t=e.editable,n=xV(e,xL),r=(0,b.useCallback)(function(e){return b.createElement(xz,xF({AnnotationComponent:t?xC:xS},e))},[t]);return b.createElement(xR,xF({AnnotationComponent:r},n))}xI.propTypes={editable:ph().bool};var xZ=n(12766),xB=n(54073),xH=n.n(xB),xU=["d","stroke","fill"];function xW(){return(xW=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xU),o=(0,b.useRef)(t),a=(0,b.useCallback)(xH()(function(e){o.current=e},50),[]),s=(0,xZ.interpolatePath)(o.current,t);a(t);var l=xn({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=xn({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return b.createElement(xE.path,xW({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var x$=n(12935),xY=n(12151);function xG(){return(xG=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function x6(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)=>x5(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 x8=x6(x5);x8.right;let x7=x8.left;function x9(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=x6(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=x7(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,bd),O=(0,b.useContext)(xM),C=O.colorScale,M=O.theme,A=O.horizontal,T=(0,b.useMemo)(function(){return w?xK(E,w):void 0},[E,w]),P=(0,b.useMemo)(function(){return xK(E,x)},[E,x]),N=(0,b.useMemo)(function(){return k?xK(S,k):void 0},[S,k]),R=(0,b.useMemo)(function(){return xK(S,j)},[S,j]),D=(0,b.useCallback)(function(e){return xT(E(x(e)))&&xT(S(j(e)))},[E,x,S,j]),L=null!=(t=null!=(n=null==C?void 0:C(l))?n:null==M?void 0:null==(r=M.colors)?void 0:r[0])?t:"#222",F="AREASERIES_EVENT_SOURCE-"+l,V=ba({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:F,allowedSources:[xJ,F]}),z=(0,b.useMemo)(function(){var e=xQ(A?E:S);return A?{x0:null!=T?T:e,x1:P,y:R}:{x:P,y0:null!=N?N:e,y1:R}},[E,S,A,P,R,T,N]),I=!!(d||c),Z=(0,b.useCallback)(function(e){var t=e.glyphs;return I?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},bc(bf({},e,{color:"transparent",onFocus:V.onFocus,onBlur:V.onBlur})))}):null},[I,V.onFocus,V.onBlur]);return b.createElement(b.Fragment,null,b.createElement(x$.Z,bf({},z,_,{curve:a,defined:D}),function(e){var t=e.path;return b.createElement(o,bf({className:"visx-area",stroke:"transparent",fill:L,strokeLinecap:"round"},_,{d:t(s)||""},V))}),y&&b.createElement(xY.Z,bf({x:P,y:R,defined:D,curve:a},u),function(e){var t=e.path;return b.createElement(o,bf({className:"visx-line",fill:"transparent",stroke:L,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),I&&b.createElement(bl,{dataKey:l,data:s,xAccessor:x,yAccessor:j,xScale:E,yScale:S,renderGlyphs:Z}))}bh.propTypes={renderLine:ph().bool};var bp=xX(bh);function bm(){return(bm=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 bE(e,t){return e[t]}function bj(e){let t=[];return t.key=e,t}Array.prototype.slice;var bk=n(74322),bS=n(58543);function b_(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,b.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=bx([]),t=bw,n=bb,r=bE;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),bj),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(b_(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(b_(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 bP(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?bt:be)(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,by.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,by.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,by.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,by.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var bN=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function bR(){return(bR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,bN)),u=bR({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==j?void 0:null==(i=j.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:C,data:e,areaProps:u,lineProps:s}})},[O,C,g,_,j]),A=(0,b.useCallback)(function(e){var t,n,r=null==(t=_.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?bP(e,r,x):null},[_,x]),T="AREASTACK_EVENT_SOURCE-"+S.join("-"),P=ba({dataKey:S,enableEvents:void 0===o||o,findNearestDatum:A,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:T,allowedSources:[xJ,T]}),N=!!(l||s),R=(0,b.useCallback)(function(e){var t=e.glyphs;return N?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},bc(bR({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[N,P.onFocus,P.onBlur]);return!S.some(function(e){return null==y.get(e)})&&w&&E&&g?b.createElement("g",{className:"visx-area-stack"},M.map(function(e){return b.createElement(x$.Z,bR({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return b.createElement(n,bR({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,P))})}),m&&M.map(function(e){return b.createElement(bg.Z,bR({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 b.createElement(n,bR({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),N&&M.map(function(e,t){var n=M[M.length-t-1];return b.createElement(bl,{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:bD,yScale:bD,renderGlyphs:R})})):null}function bF(){return(bF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bI),c=(0,b.useContext)(xM),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,b.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]),x=u.tickLabelProps,w=(0,b.useMemo)(function(){return x||y?function(e,t,n){return bZ({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==x?void 0:x(e,t,n))}:void 0},[x,y,g,p]),E="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?b.createElement(l,bZ({top:E,left:j,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:w,scale:k})):null}function bH(){return(bH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return bq({},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,x=l.x>=g&&l.x<=y;return bq({},u,{distanceY:0,distanceX:x?0:Math.abs(l.x-(g+y)/2)})}(e,k,v)},[k,v]),_="BARGROUP_EVENT_SOURCE-"+j.join("-")+"}",O=ba({dataKey:j,enableEvents:void 0===f||f,findNearestDatum:S,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:_,allowedSources:[xJ,_]}),C=(0,b.useMemo)(function(){return x?xQ(x):0},[x]),M=(0,b.useMemo)(function(){return w?xQ(w):0},[w]),A=j.map(function(e){return m.get(e)});if(A.some(function(e){return null==e})||!x||!w||!p)return null;var T=xA(k),P=A.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=x(n(e)))?t:NaN)-C:(null!=(i=w(r(e)))?i:NaN)-M},s=v?function(e){var t;return null!=(t=w(r(e)))?t:NaN}:function(e){var t;return null!=(t=x(n(e)))?t:NaN},l=null!=(t=k(o))?t:0,u=v?function(e){return C+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return M+Math.min(0,a(e))},d=v?function(e){return Math.abs(a(e))}:function(){return T},f=v?function(){return T}:function(e){return Math.abs(a(e))},h=E.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(!xT(r))return null;var i=c(e);if(!xT(i))return null;var a=d(e);if(!xT(a))return null;var s=f(e);return xT(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 b.createElement("g",{className:"visx-bar-group"},P.map(function(e){return e&&b.createElement(o,b$({horizontal:v,xScale:x,yScale:w},e,O,{key:e.key}))}))}bY.propTypes={children:ph().node.isRequired,padding:ph().number,sortBars:ph().func};var bG=n(10897),bX=function(e){return!!(null==e?void 0:e.includes("url("))},bK=function(e){return bX(e)?"rgba(0,0,0,0.1)":e},bQ=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],bJ=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function b0(){return(b0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function b2(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:bK(e.fill),opacity:1}}function b4(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=b1(e,bQ);return b.createElement(b.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 b.createElement(bG.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 b.createElement(xq,b0({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function b3(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,b1(e,bJ)),u=xr(i,b0({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,b.useMemo)(function(){var e=xQ(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:bK(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:b2,update:b2,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return b.createElement(b.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:b.createElement(xE.rect,b0({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:bX(t.fill)?t.fill:s,opacity:u},l))}))}function b5(e){return null==e.radius?b.createElement(b3,e):b.createElement(b4,b0({},e,{radius:e.radius}))}function b6(){return(b6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,b7),E=(0,b.useContext)(xM),j=E.colorScale,k=E.horizontal,S=E.theme,_=E.innerWidth,O=E.innerHeight,C=(0,b.useMemo)(function(){return xK(g,v)},[g,v]),M=(0,b.useMemo)(function(){return xK(x,y)},[x,y]),A=xA(k?x:g)||(k?void 0===O?0:O:void 0===_?0:_)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),T=(0,b.useMemo)(function(){return g?xQ(g):0},[g]),P=(0,b.useMemo)(function(){return x?xQ(x):0},[x]),N=null!=(t=null!=(n=null==j?void 0:j(l))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",R=(0,b.useMemo)(function(){var e=k?0:-A/2,t=k?-A/2:0;return s.map(function(n,r){var i,o=C(n)+e;if(!xT(o))return null;var s=M(n)+t;if(!xT(s))return null;var l=k?o-T:s-P;return xT(l)?{key:""+r,x:k?T+Math.min(0,l):o,y:k?s:P+Math.min(0,l),width:k?Math.abs(l):A,height:k?A:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:N}:null}).filter(function(e){return e})},[A,N,a,s,C,M,k,T,P]),D="BARSERIES_EVENT_SOURCE-"+l,L=ba({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:D,allowedSources:[xJ,D]});return b.createElement("g",{className:"vx-bar-series"},b.createElement(i,b9({bars:R,horizontal:k,xScale:g,yScale:x},L,w)))}we.propTypes={barPadding:ph().number,colorAccessor:ph().func};var wt=xX(we),wn=["colorAccessor"];function wr(){return(wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wn);return b.createElement(wt,wr({},n,{colorAccessor:t,BarsComponent:b5}))}var wo=n(15590);function wa(){return(wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wf),i=(0,b.useCallback)(function(e){return b.createElement(wd,wh({},e,{renderGlyph:n}))},[n]);return b.createElement(bu,wh({},r,{renderGlyphs:i}))}var wm=n(93353),wv=n(63962),wg=["rows","columns","GridRowsComponent","GridColumnsComponent"];function wy(){return(wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wg),l=(0,b.useContext)(xM),u=l.theme,c=l.xScale,d=l.yScale,f=l.margin,h=l.innerWidth,p=l.innerHeight,m=null==u?void 0:u.gridStyles;return b.createElement(b.Fragment,null,n&&d&&null!=h&&b.createElement(o,wy({left:null==f?void 0:f.left,lineStyle:m,width:h,scale:d},s)),i&&c&&null!=p&&b.createElement(a,wy({top:null==f?void 0:f.top,lineStyle:m,height:p,scale:c},s)))}wx.propTypes={rows:ph().bool,columns:ph().bool};var wb=["animationTrajectory"];function ww(){return(ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wb),r=(0,b.useMemo)(function(){return function(e){return b.createElement(wm.Z,ww({},e,{animationTrajectory:t}))}},[t]),i=(0,b.useMemo)(function(){return function(e){return b.createElement(wv.Z,ww({},e,{animationTrajectory:t}))}},[t]);return b.createElement(wx,ww({GridRowsComponent:r,GridColumnsComponent:i},n))}var wj=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function wk(){return(wk=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wj),j=(0,b.useContext)(xM),k=j.colorScale,S=j.theme,_=(0,b.useMemo)(function(){return xK(v,m)},[v,m]),O=(0,b.useMemo)(function(){return xK(y,g)},[y,g]),C=(0,b.useCallback)(function(e){return xT(v(m(e)))&&xT(y(g(e)))},[v,m,y,g]),M=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",A="LINESERIES_EVENT_SOURCE-"+s,T=ba({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:A,allowedSources:[xJ,A]}),P=!!(u||l),N=(0,b.useCallback)(function(e){var t=e.glyphs;return P?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},bc(wk({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[P,T.onFocus,T.onBlur]);return b.createElement(b.Fragment,null,b.createElement(xY.Z,wk({x:_,y:O,defined:C,curve:o},E),function(e){var t,n=e.path;return b.createElement(w,wk({stroke:null!=(t=null==i?void 0:i(s))?t:M,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},E,{d:n(a)||""},T))}),P&&b.createElement(bl,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:N}))}wS.propTypes={colorAccessor:ph().func};var w_=xX(wS);function wO(){return(wO=Object.assign?Object.assign.bind():function(e){for(var t=1;twT.every(n=>e[n]===t[n]);function wN(e,t){return(wN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var wR=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,wN(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)?e6.createPortal(this.props.children,this.node):null},t}(b.PureComponent);wR.propTypes={zIndex:ph().oneOfType([ph().number,ph().string])};var wD=["detectBounds","zIndex"],wL=["left","top","detectBounds","zIndex"];function wF(){return(wF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var wz=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],wI=["x","y"];function wZ(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 wB(){return(wB=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,b.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&&!wP(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?wA()(e,d):e,c?wA()(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,b.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,b.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,b.useEffect)(()=>{v(),g()},[r,m,p]),(0,b.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]}(wV(ei,wD)))[0],ec=el[1],ed=el[2],ef=(0,b.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=wV(e,wL),a=null==i?es:i,s=(null==r?ea:r)?p$:pV,l=(void 0===t?0:t)+(ec.left||0)+window.scrollX,u=(void 0===n?0:n)+(ec.top||0)+window.scrollY;return b.createElement(wR,{zIndex:a},b.createElement(s,wF({left:l,top:u},o)))}},[ea,es,ec.left,ec.top]),{containerRef:eu,containerBounds:ec,forceRefreshBounds:ed,TooltipInPortal:ef}),L=D.containerRef,F=D.TooltipInPortal,V=D.forceRefreshBounds,z=(0,b.useCallback)(function(e){var t;L(null!=(t=null==e?void 0:e.parentElement)?t:null)},[L]),I=null!=R&&R.tooltipOpen?o(wB({},R,{colorScale:_})):null,Z=(null==R?void 0:R.tooltipOpen)&&null!=I,B=(0,b.useRef)(!1);(0,b.useEffect)(function(){Z&&!B.current&&V(),B.current=Z},[Z,V]);var H=null==R?void 0:R.tooltipLeft,U=null==R?void 0:R.tooltipTop,W=T?xA(T):0,q=P?xA(P):0,$=(0,b.useCallback)(function(e,t){var n,r,i=null==N?void 0:N.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:T&&o?null!=(n=Number(T(o(t)))+W/2)?n:0:void 0,top:P&&a?null!=(r=Number(P(a(t)))+q/2)?r:0:void 0}},[N,W,q,T,P]),Y=null==R?void 0:null==(eh=R.tooltipData)?void 0:eh.nearestDatum,G=null!=(ep=null==Y?void 0:Y.key)?ep:"";if(Z&&Y&&(y||w)){var X=$(G,Y.datum),K=X.left,Q=X.top;H=y&&xT(K)?K:H,U=w&&xT(Q)?Q:U}var J=[];if(Z&&(void 0!==c&&c||p)){var ee=Number(null!=(e_=null==i?void 0:i.radius)?e_:4);if(p)Object.values(null!=(eO=null==R?void 0:null==(eC=R.tooltipData)?void 0:eC.datumByKey)?eO:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==_?void 0:_(o))?n:null==O?void 0:null==(r=O.htmlLabel)?void 0:r.color)?t:"#222",u=$(o,a),c=u.left,d=u.top;xT(c)&&xT(d)&&J.push({key:o,color:l,datum:a,index:s,size:ee,x:c,y:d,glyphStyle:i,isNearestDatum:!!Y&&Y.key===o})});else if(Y){var et=$(G,Y.datum),en=et.left,er=et.top;if(xT(en)&&xT(er)){var ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,eE,ej,ek,eS,e_,eO,eC,eM,eA,eT,eP,eN,eR,eD=null!=(eM=null!=(eA=null!=(eT=null!=(eP=G&&(null==_?void 0:_(G)))?eP:null)?eT:null==O?void 0:null==(eN=O.gridStyles)?void 0:eN.stroke)?eA:null==O?void 0:null==(eR=O.htmlLabel)?void 0:eR.color)?eM:"#222";J.push({key:G,color:eD,datum:Y.datum,index:Y.index,size:ee,x:en,y:er,glyphStyle:i,isNearestDatum:!0})}}}return b.createElement(b.Fragment,null,b.createElement("svg",{ref:z,style:wU}),Z&&b.createElement(b.Fragment,null,v&&b.createElement(F,{className:"visx-crosshair visx-crosshair-vertical",left:H,top:null==A?void 0:A.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:wH},b.createElement("svg",{width:"1",height:C,overflow:"visible"},b.createElement("line",wB({x1:0,x2:0,y1:0,y2:C,strokeWidth:1.5,stroke:null!=(em=null!=(ev=null==O?void 0:null==(eg=O.gridStyles)?void 0:eg.stroke)?ev:null==O?void 0:null==(ey=O.htmlLabel)?void 0:ey.color)?em:"#222"},E)))),f&&b.createElement(F,{className:"visx-crosshair visx-crosshair-horizontal",left:null==A?void 0:A.left,top:U,offsetLeft:0,offsetTop:0,detectBounds:!1,style:wH},b.createElement("svg",{width:M,height:"1",overflow:"visible"},b.createElement("line",wB({x1:0,x2:M,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(ex=null!=(eb=null==O?void 0:null==(ew=O.gridStyles)?void 0:ew.stroke)?eb:null==O?void 0:null==(eE=O.htmlLabel)?void 0:eE.color)?ex:"#222"},r)))),J.map(function(e,t){var n=e.x,r=e.y,i=wZ(e,wI);return b.createElement(F,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:wH},b.createElement("svg",{overflow:"visible"},s(wB({x:0,y:0},i))))}),b.createElement(F,wB({left:H,top:U,style:wB({},pF,{background:null!=(ej=null==O?void 0:O.backgroundColor)?ej:"white",boxShadow:"0 1px 2px "+(null!=O&&null!=(ek=O.htmlLabel)&&ek.color?(null==O?void 0:null==(eS=O.htmlLabel)?void 0:eS.color)+"55":"#22222255")},null==O?void 0:O.htmlLabel)},k),I)))}function wY(e){var t=(0,b.useContext)(x0);return null!=t&&t.tooltipOpen?b.createElement(w$,e):null}function wG(e){var t=e.children,n=(0,b.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 b.createElement(x1.Provider,{value:n},t)}function wX(){return(wX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,pN);return pR({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,b.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,b.useRef)(null),g=(0,b.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(xT(o)?o:1/0,2)+Math.pow(xT(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&xT(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&&o>0&&y({width:m,height:o,margin:l})},[y,m,o,l]);var E=x4({source:xJ});return(bo({dataKey:"nearest"===(void 0===h?"nearest":h)?bi:br,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,allowedSources:Ee}),y)?null==m||null==o?b.createElement(m6.Z,null,function(t){return b.createElement(Et,w7({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==x?b.createElement(wK,null,b.createElement(Et,e)):null==w?b.createElement(wG,null,b.createElement(Et,e)):m>0&&o>0?b.createElement("svg",{width:m,height:o,"aria-label":void 0===t?"XYChart":t},i,r&&b.createElement("rect",w7({x:l.left,y:l.top,width:m-l.left-l.right,height:o-l.top-l.bottom,fill:"transparent"},E))):null:v&&g?b.createElement(w8,{xScale:v,yScale:g,theme:p,initialDimensions:{width:m,height:o,margin:l},horizontal:a},b.createElement(Et,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function En(e){return b.createElement(bp,e)}function Er(e){return b.createElement(bL,e)}function Ei(){return(Ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Ec(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=Eu(e,Ea),u=!!(l.onFocus||l.onBlur);return b.createElement(b.Fragment,null,t.map(function(e){var t=e.key,c=Eu(e,Es);return null==n?b.createElement("rect",El({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):b.createElement(bG.Z,El({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 Ed(){return(Ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Eh);return b.createElement(wt,Ep({},n,{colorAccessor:t,BarsComponent:Ec}))};function Ev(){return(Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,x.jsx)(dX,{value:"line",children:"Line"}),(0,x.jsx)(dX,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,x.jsx)(dX,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,x.jsx)(dX,{disabled:p,value:"area",children:"Area"}),(0,x.jsx)(dX,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{weight:"semibold",children:"Stack series offset"}),(0,x.jsxs)(dK,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,x.jsxs)(dX,{disabled:!s,value:"none",children:["None",(0,x.jsx)(fb,{children:"zero-baseline"})]}),(0,x.jsxs)(dX,{disabled:!s,value:"diverging",children:["Diverging",(0,x.jsx)(fb,{children:"non zero-baseline"})]}),(0,x.jsxs)(dX,{disabled:!s,value:"expand",children:["Expand",(0,x.jsx)(fb,{children:"values sum to 1"})]}),(0,x.jsxs)(dX,{disabled:!s,value:"wiggle",children:["Wiggle",(0,x.jsx)(fb,{children:"stream graph"})]})]})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{weight:"semibold",children:"Curve shape"}),(0,x.jsxs)(dK,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,x.jsx)(dX,{disabled:!a,value:"linear",children:"Linear"}),(0,x.jsx)(dX,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,x.jsx)(dX,{disabled:!a,value:"step",children:"Step"})]})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{weight:"semibold",children:"Axes"}),(0,x.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,x.jsxs)(dK,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,x.jsx)(dX,{value:"bottom",children:"Bottom"}),(0,x.jsx)(dX,{value:"top",children:"Top"})]}),(0,x.jsxs)(dK,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,x.jsx)(dX,{value:"left",children:"Left"}),(0,x.jsx)(dX,{value:"right",children:"Right"})]})]})]})]})})}let EA=(0,b.forwardRef)((e,t)=>{let{className:n}=e;return(0,x.jsxs)("div",{ref:t,className:(0,ea.cx)("flex gap-1 items-center",n),children:[(0,x.jsx)(ET,{}),(0,x.jsx)(ET,{}),(0,x.jsx)(ET,{})]})});function ET(){return(0,x.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 EP(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,variant:l="panel",allowConfiguration:u=!0}=e,c=function(e,t,n){let r=(0,b.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return[...t,{...e,timestamp:e.timestamp+EO(1)}]},[t]),i=(0,b.useMemo)(()=>{if(r.length<2)return 0;let e=[r[0].timestamp,r[r.length-1].timestamp],t=new Date().getTime();return t>e[0]&&t"dark"===s?vS:vk,[s]),[u,c]=(0,b.useState)("center"),[d,f]=(0,b.useState)([!1,!1]),[h,p]=d,[m,v]=(0,b.useState)("bottom"),[g,y]=(0,b.useState)("right"),[w,E]=(0,b.useState)(!0),[j,k]=(0,b.useState)(!0),[S,_]=(0,b.useState)(!1),[O,C]=(0,b.useState)(!0),[M,A]=(0,b.useState)(!0),T=n.chartType||"areastack",P=n.curveType||"linear",N=n.stackOffset||"none",[R,D]=(0,b.useState)(T),[L,F]=(0,b.useState)(P),[V,z]=(0,b.useState)(N),I=l.xyChartTheme.gridStyles.stroke,[Z,B]=(0,b.useState)(!1),[H,U]=(0,b.useState)("star"),W=(0,b.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"===H?(0,x.jsx)(vs,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):"circle"===H?(0,x.jsx)(vc,{left:t,top:n,stroke:I,fill:i,r:r,...u}):"cross"===H?(0,x.jsx)(vp,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):(0,x.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[H,I]),q=(0,b.useMemo)(()=>Object.keys(Ek()(t[0],"timestamp")),[t]),$=(0,b.useMemo)(()=>n.enabledGraph||q,[q,n]),Y=(0,b.useMemo)(()=>n.enabledTip||q,[q,n]),G=(0,b.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]),X=["line","area","areastack"].includes(R),K=["barstack","areastack"].includes(R),Q=(0,b.useMemo)(()=>({x:{type:"band",paddingInner:X?1:.3},y:{type:"linear"}}),[X]),J=(0,b.useMemo)(()=>"cardinal"===L&&vm.ZP||"step"===L&&mg.ZP||vv.Z,[L]),ee=(0,b.useMemo)(()=>({top:30,bottom:"top"===m?0:20,right:"right"===g?60:0,left:"left"===g?60:0}),[m,g]);return{id:e,accessors:G,animationTrajectory:u,config:n,scales:Q,data:r,curve:J,chartData:t,numTicks:4,isLine:X,isStack:K,todayOffset:i,initialChartType:T,initialCurveType:P,initialStackOffset:N,chartType:R,curveType:L,keys:q,enabledGraph:$,enabledTip:Y,renderBarGroup:"bargroup"===R,renderBarStack:"barstack"===R,enableTooltipGlyph:Z,renderTooltipGlyph:W,renderAreaSeries:"area"===R,renderAreaStack:"areastack"===R,renderLineSeries:"line"===R,sharedTooltip:M,showGridColumns:p,showGridRows:h,showHorizontalCrosshair:S,showTooltip:w,showVerticalCrosshair:j,snapTooltipToDatum:!K&&O,stackOffset:V,theme:l,margin:ee,xAxisOrientation:m,yAxisOrientation:g,setUseAnimatedComponents:a,setAnimationTrajectory:c,setGridProps:f,setXAxisOrientation:v,setYAxisOrientation:y,setShowTooltip:E,setShowVerticalCrosshair:k,setShowHorizontalCrosshair:_,setSnapTooltipToDatum:C,setSharedTooltip:A,setChartType:D,setCurveType:F,setStackOffset:z,setEnableTooltipGlyph:B,setTooltipGlyphComponent:U,...o?{Annotation:xI,AreaSeries:bv,AreaStack:bV,Axis:bU,BarGroup:b8,BarSeries:wi,BarStack:wu,GlyphSeries:wp,Grid:wE,LineSeries:wC,Tooltip:wY,XYChart:Et}:{AreaSeries:En,AreaStack:Er,Axis:Eo,BarGroup:Ef,BarSeries:Em,BarStack:Eg,Grid:Ew,LineSeries:EE,Tooltip:wY,XYChart:Et}}}(t,r,i),d=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===l&&u&&(0,x.jsx)(EM,{...c})]}),(0,x.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,x.jsx)(m6.Z,{children:e=>{let{width:t,height:n}=e;return a?(0,x.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,x.jsx)(EA,{className:"scale-150"})}):(0,x.jsx)(m9,{...c,width:t,height:n})}})]});return"panel"===l?(0,x.jsx)(tG,{className:"relative p-px",style:{height:n},children:d}):(0,x.jsx)("div",{className:"relative p-px",style:{height:n},children:d})}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -57,7 +57,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function EV(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())})}function Ez(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||jr,jo=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ja=/\/\*[^]*?\*\/|\s\s+|\n/g,js=(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]?js(a,o):o+"{"+js(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=js(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+=js.p?js.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},jl={},ju=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+ju(e[n]);return t}return e},jc=(e,t,n,r,i)=>{var o;let a=ju(e),s=jl[a]||(jl[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!jl[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=jo.exec(e.replace(ja,""));)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);jl[s]=js(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=jl[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},jd=(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?"":js(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function jf(e){let t=this||{},n=e.call?e(t.p):e;return jc(n.unshift?n.raw?jd(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,ji(t.target),t.g,t.o,t.k)}jf.bind({g:1});let jh,jp,jm,jv=jf.bind({k:1});function jg(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:jp&&jp()},s),n.o=/ *go\d+/.test(l),s.className=jf.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),jm&&u[0]&&jm(s),jh(u,s)}return t?t(i):i}}function jy(){return(jy=Object.assign||function(e){for(var t=1;t-1&&jO.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return jy({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||jA[t.type],style:jy({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return jy({},n,{toasts:i})},jT=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),jy({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)||jw()}));return jM({type:y.UPSERT_TOAST,toast:i}),i.id}},jN=function(e,t){return jT("blank")(e,t)};jN.error=jT("error"),jN.success=jT("success"),jN.loading=jT("loading"),jN.custom=jT("custom"),jN.dismiss=function(e){jM({type:y.DISMISS_TOAST,toastId:e})},jN.remove=function(e){return jM({type:y.REMOVE_TOAST,toastId:e})},jN.promise=function(e,t,n){var r=jN.loading(t.loading,jy({},n,null==n?void 0:n.loading));return e.then(function(e){return jN.success(jb(t.success,e),jy({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){jN.error(jb(t.error,e),jy({id:r},n,null==n?void 0:n.error))}),e};var jR=function(e){var t=jP(e),n=t.toasts,r=t.pausedAt;(0,b.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&&jN.dismiss(t.id);return}return setTimeout(function(){return jN.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,b.useMemo)(function(){return{startPause:function(){jM({type:y.START_PAUSE,time:Date.now()})},endPause:function(){r&&jM({type:y.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return jM({type:y.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return ki=function(){return e},e}c=b.createElement,js.p=void 0,jh=c,jp=void 0,jm=void 0;var ko=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return jy({left:0,right:0,display:"flex",position:"absolute",transition:jE()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},ka=jf(ki()),ks=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=jR(i),c=u.toasts,d=u.handlers;return(0,b.createElement)("div",{style:jy({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=ko(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,b.createElement)("div",{ref:l,className:e.visible?ka:"",key:e.id,style:s},"custom"===e.type?jb(e.message,e):a?a(e):(0,b.createElement)(kr,{toast:e,position:i}))}))};let kl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jN((0,x.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),kd(t))},ku=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jN.success((0,x.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),kd(t))},kc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jN.error((0,x.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),kd(t))};function kd(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,ea.cx)(s6,tY(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(lt.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(lt.Jsc,{className:"w-5 text-red-600"})})},...t}}function kf(){return(0,x.jsx)(ks,{toastOptions:kd()})}let kh=(e,t)=>{let n=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";kl(n),function(e){EV(this,void 0,void 0,function(){return Ez(this,function(t){var n;if(E3)return EI("Using `navigator.clipboard.writeText()`."),[2,E3(e)];if(!function(e){return EV(this,void 0,void 0,function(){var t;return Ez(this,function(n){var r,i,o,a,s,l,u,c;if(t="text/plain"in e,"undefined"==typeof ClipboardEvent&&void 0!==E6.clipboardData&&void 0!==E6.clipboardData.setData){if(!t)throw Error("No `text/plain` value was specified.");if(r=e["text/plain"],E6.clipboardData.setData("Text",r))return[2,!0];throw Error("Copying failed, possibly because the user rejected it.")}return E9(e)?(EI("regular execCopy worked"),[2,!0]):navigator.userAgent.indexOf("Edge")>-1?(EI('UA "Edge" => assuming success'),[2,!0]):je(document.body,e)?(EI("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=je(i,e),document.body.removeChild(i),o)?(EI("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],EI("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(EI("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),jt(u),c=document.execCommand("copy"),jn(),document.body.removeChild(s),c)?(EI("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((n={})["text/plain"]=e,n)))throw Error("writeText() failed");return[2]})})}(e)};function kp(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function km(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^key:/,"")}function kv(e,t,n){return t?"".concat(e," ").concat(kp(t,n)):"".concat(e)}function kg(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 ky={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",ip:"IP"},kx={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 kb(e){return e?ky[e]:void 0}function kw(e){return e?kx[e]:void 0}function kE(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d}=e,f=i||kb(r),h=a||("ip"===r?20:12),p=km(t),m=n||p,v="".concat(null==m?void 0:m.slice(0,h)).concat(((null==m?void 0:m.length)||0)>h?"...":"");return(0,x.jsxs)("div",{className:(0,ea.cx)("flex items-center",d),children:[o?(0,x.jsx)(c2,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}):(0,x.jsx)(tq,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}),(0,x.jsx)("div",{className:"ml-1 flex items-center",children:(0,x.jsx)(le,{variant:"ghost",size:"none",onClick:e=>{e.stopPropagation(),kh(p,f)},children:(0,x.jsx)(tq,{color:c,children:(0,x.jsx)(lt.olJ,{className:"10"===s?"scale-75":"scale-90"})})})})]})}function kj(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,m5.yF)(String(t),{units:"SF"});return(0,x.jsx)(s7,{content:(i?"".concat(i," "):"")+a,children:(0,x.jsxs)(tq,{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 kk(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",fixed:a=3,dynamicUnits:s=!0,hastingUnits:l=!0,extendedSuffix:u,showTooltip:c=!0}=e,d=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",f="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast",h=(0,x.jsxs)(tq,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:f,children:["change"===o?"".concat(d).concat((0,m5.Vz)(t.absoluteValue(),{fixed:a,dynamicUnits:s})):(0,m5.Vz)(t,{fixed:a,dynamicUnits:s,hastingUnits:l}),(0,x.jsx)(tq,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:u?"".concat(u):""})]});return c?(0,x.jsx)(s7,{content:(i?"".concat(i," "):"")+(0,m5.Vz)(t,{fixed:16,dynamicUnits:!1}),children:h}):h}function k_(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,x.jsx)(s7,{content:(i?"".concat(i," "):"")+s(t),children:(0,x.jsx)(tq,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var kS=n(61258),kO=n.n(kS);function kC(e){let{skeletonCount:t=10}=e;return(0,x.jsx)(x.Fragment,{children:kO()(t,e=>(0,x.jsxs)("div",{className:(0,ea.cx)("relative flex gap-4 p-3.5",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,x.jsx)(fP,{className:"w-[60px] h-[50px]"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,x.jsx)(fP,{className:"w-[90%] h-[20px]"}),(0,x.jsx)(fP,{className:"w-[140px] h-[14px]"})]})]},e))})}var kM=n(66700),kA=n(19785);function kP(e,t){(0,kA.Z)(2,arguments);var n=(0,kM.Z)(e),r=(0,kM.Z)(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var kT={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},kN={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 kR(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 kD={date:kR({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:kR({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:kR({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function kF(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 kV(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:kD,formatRelative:function(e,t,n,r){return kL[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:kF({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:kF({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:kF({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:kF({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:kF({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:(d={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(d.matchPattern);if(!n)return null;var r=n[0],i=e.match(d.parsePattern);if(!i)return null;var o=d.valueCallback?d.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:kV({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:kV({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:kV({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:kV({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:kV({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 kI(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 kZ=n(23779),kB=n.n(kZ);function kH(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,x.jsx)(lm,{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,x.jsx)(c2,{href:i,underline:"none",children:s}),u=l||s;return t?(0,x.jsx)(s7,{content:n||kb(t),children:(0,x.jsx)("div",{className:"",children:u})}):u}function kU(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,x.jsxs)("div",{className:(0,ea.cx)("flex gap-4 p-4",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,x.jsx)(kH,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function kW(e){let t=e.sc,n=e.sf,r=e.hash&&(0,x.jsx)(kE,{value:e.hash,type:e.type,label:e.label,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&kw(e.txType)||kb(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?kB()(i):i;return(0,x.jsx)(kU,{...e,children:(0,x.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,x.jsx)(tq,{color:"subtle",weight:"semibold",children:(0,x.jsx)(c2,{href:e.blockHref,underline:"none",children:(0,m5.yF)(e.height)})}),(0,x.jsx)(tq,{weight:"medium",children:o||r})]}),(0,x.jsx)("div",{className:"flex-1"}),!!t&&(0,x.jsx)(kk,{variant:e.scVariant,value:t}),!!n&&(0,x.jsx)(kj,{variant:e.sfVariant,value:n})]}),(0,x.jsxs)("div",{className:"flex justify-between w-full",children:[(0,x.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tq,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,x.jsx)(tq,{color:"verySubtle",children:(0,x.jsx)(lt.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,x.jsx)(tq,{color:"subtle",children:function(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,kA.Z)(2,arguments);var a=o.locale||kz;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=kP(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,kM.Z)(t),r=(0,kM.Z)(e)):(n=(0,kM.Z)(e),r=(0,kM.Z)(t));var u=function(e,t,n){(0,kA.Z)(2,arguments);var r,i=function(e,t){return(0,kA.Z)(2,arguments),(0,kM.Z)(e).getTime()-(0,kM.Z)(t).getTime()}(e,t)/1e3;return((r=null==n?void 0:n.roundingMethod)?kT[r]:kT.trunc)(i)}(r,n),c=Math.round((u-(kI(r)-kI(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){var d=Math.round(c/60);return a.formatDistance("aboutXHours",d,l)}if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200){var f=Math.round(c/1440);return a.formatDistance("xDays",f,l)}if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){(0,kA.Z)(2,arguments);var n,r=(0,kM.Z)(e),i=(0,kM.Z)(t),o=kP(r,i),a=Math.abs(function(e,t){(0,kA.Z)(2,arguments);var n=(0,kM.Z)(e),r=(0,kM.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=kP(r,i)===-o;(function(e){(0,kA.Z)(1,arguments);var t=(0,kM.Z)(e);return(function(e){(0,kA.Z)(1,arguments);var t=(0,kM.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,kA.Z)(1,arguments);var t=(0,kM.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,kM.Z)(e))&&1===a&&1===kP(e,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}(r,n))<12){var h=Math.round(c/43200);return a.formatDistance("xMonths",h,l)}var p=i%12,m=Math.floor(i/12);return p<3?a.formatDistance("aboutXYears",m,l):p<9?a.formatDistance("overXYears",m,l):a.formatDistance("almostXYears",m+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function kq(e){let{title:t,actions:n,entities:r,emptyState:i,emptyMessage:o,skeletonCount:a=10,children:s}=e;return(0,x.jsx)(tG,{children:(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||n)&&(0,x.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,x.jsx)(cU,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,x.jsx)("div",{className:"flex-1"}),n]}),(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(null==r?void 0:r.length)===0&&(i||(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center justify-center h-[84px]",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,x.jsx)(tq,{size:"18",color:"subtle",children:o||"No results"})})),s||(null==r?void 0:r.map((e,t)=>(0,x.jsx)(kW,{...e},e.hash||e.label||t)))||(0,x.jsx)(kC,{skeletonCount:a})]})]})})}function k$(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,x.jsx)(tq,{color:"subtle",size:"12",className:"h-6",children:d});return(0,x.jsx)(tG,{children:(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,x.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,x.jsx)(tq,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?kB()(t):t}),i]}),(0,x.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,x.jsx)(fP,{className:"h-12 w-[150px]"}):(0,x.jsxs)(x.Fragment,{children:[void 0!==u&&(0,x.jsx)(kk,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,x.jsx)(kj,{scaleSize:h,variant:"value",value:c}),n&&(r?(0,x.jsx)(kE,{scaleSize:h,label:kb(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,x.jsx)(tq,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,x.jsx)(kE,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,x.jsx)(tq,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,x.jsx)("div",{className:"mt-1",children:p?(0,x.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,x.jsx)(fP,{className:"h-4 w-[100px]"})}):f?(0,x.jsx)(s7,{content:f,children:v}):v}):null]})]})})})}function kY(e){let{title:t,actions:n,name:r}=e;return(0,x.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,x.jsx)(cJ,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function kG(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,x.jsx)(tq,{size:"14",color:"red",children:o}):null}function kK(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,x.jsxs)("div",{className:(0,ea.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,x.jsx)(kY,{name:i,title:n,actions:r}),(0,x.jsx)(kG,{form:t,name:i})]}):null}function kX(e){let{children:t,...n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(kK,{...n}),t]})}function kQ(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(le,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,x.jsx)(ED,{}):i})})}function kJ(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,x.jsx)(k3,{formik:t,title:n,name:r,children:"number"===g?(0,x.jsx)(k1,{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,x.jsx)(k2,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,x.jsx)(k0,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function k0(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,x.jsx)(d3,{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 k1(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,x.jsx)(fy,{id:n,units:r,name:n,placeholder:new(fv())(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 k2(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,x.jsx)(fj,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fv())(t.values[n]),placeholder:new(fv())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function k4(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,x.jsxs)("div",{className:(0,ea.cx)("flex justify-between items-center gap-4",s),children:[i?(0,x.jsx)(cJ,{htmlFor:o,children:i}):(0,x.jsx)("div",{}),l&&(0,x.jsx)(tq,{size:"14",color:"red",children:u})]})}function k3(e){let{children:t,...n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(k4,{...n}),t]})}function k5(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,x.jsxs)(x.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,x.jsx)(tq,{color:"red",children:n.status.error}),(0,x.jsx)(le,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,x.jsx)(ED,{}):a})]})}function k6(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==n?void 0:n.length)||(m="skeleton"),(null==n?void 0:n.length)&&(m="currentData");let v=(0,b.useCallback)((e,n,r)=>(0,ea.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]),g=(0,b.useCallback)((e,t)=>(0,ea.cx)("flex items-center",t),[]);return(0,x.jsxs)(tG,{children:[(0,x.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,x.jsx)("thead",{className:(0,ea.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,x.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,x.jsx)("th",{className:(0,ea.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,x.jsx)("div",{className:(0,ea.cx)("overflow-hidden","py-3"),children:(0,x.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,ea.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,x.jsx)(s7,{content:u,children:(0,x.jsxs)(tq,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,x.jsx)("div",{children:r}):null,(0,x.jsx)(tq,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,x.jsx)(tq,{color:"contrast",children:"asc"===o?(0,x.jsx)(lt.kqg,{className:"scale-75"}):(0,x.jsx)(lt.EMN,{className:"scale-75"})}),f&&!h&&(0,x.jsx)(tq,{color:"verySubtle",children:(0,x.jsx)(lt.kqg,{className:"scale-75"})})]})})},n)})})}),(0,x.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,x.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:n,summary:r,contentClassName:i,cellClassName:o}=e;return(0,x.jsx)("td",{className:v(t,o,!1),children:(0,x.jsx)("div",{className:g(t,i),children:r&&r()})},n)})}),"currentData"===m&&(null==n?void 0:n.map(e=>(0,x.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,ea.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,n)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,x.jsx)("td",{className:(0,ea.cx)(v(n,s,!1),h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,x.jsx)("div",{className:(0,ea.cx)(g(n,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,x.jsx)(o,{data:e,context:r})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&kO()(c).map(e=>(0,x.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,x.jsx)("td",{className:v(t,i,!1),children:(0,x.jsx)("div",{className:(0,ea.cx)(g(t,r),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===m&&f]})}var k8=n(5632);function k7(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,k8.useRouter)();return(0,x.jsxs)(lE,{children:[(0,x.jsx)(le,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,x.jsx)("div",{className:"flex scale-[0.65]",children:(0,x.jsx)(lt.XJM,{})})}),(0,x.jsx)(le,{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,x.jsx)(lt.bdU,{})}),(0,x.jsx)(le,{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,x.jsx)(ED,{className:"px-2"}):"No results"}),(0,x.jsx)(le,{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,x.jsx)(lt.VUy,{})}),(0,x.jsx)(le,{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,x.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,x.jsx)(lt.RRj,{})})})]})}function k9(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.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,x.jsx)(tq,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,x.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,x.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:n}),(0,x.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,x.jsx)("div",{className:"flex items-center gap-2 px-6 py-3 h-10 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let _e=("string"==typeof(f={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:f}:f).src;function _t(e){let{children:t}=e;return(0,x.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,x.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(_e,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var _n=n(97729),_r=n.n(_n);function _i(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,x.jsxs)(_r(),{children:[(0,x.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,x.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,x.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,x.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,x.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,x.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,x.jsx)("title",{children:i})]})}function _o(e){let{appName:t,title:n,children:r}=e;return(0,x.jsxs)("div",{className:"h-screen",children:[(0,x.jsx)(_i,{appName:t,title:n}),r]})}function _a(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,x.jsxs)(_o,{appName:t,title:n,children:[(0,x.jsx)(_t,{}),(0,x.jsx)("div",{className:"flex h-full",children:(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(k9,{nav:i,actions:o}),(0,x.jsx)("div",{className:"flex-1",children:(0,x.jsx)(lk,{className:"h-full",children:r})})]})})]})}function _s(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,x.jsx)(s7,{side:"right",content:(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"spendable"}),(0,x.jsx)(tq,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{variant:"value",value:t.spendable})})]}),(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"confirmed"}),(0,x.jsx)(tq,{color:"subtle",children:"All confirmed outputs."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{variant:"value",value:t.confirmed})})]}),(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"unconfirmed"}),(0,x.jsx)(tq,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{variant:"value",value:t.unconfirmed})})]})]}),children:(0,x.jsx)(tq,{size:"12",weight:"medium",children:(0,m5.Vz)(t.spendable.plus(t.unconfirmed),{fixed:0})})}):(0,x.jsx)(s7,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,x.jsx)(tq,{size:"12",weight:"medium",children:(0,m5.Vz)(t.spendable.plus(t.unconfirmed),{fixed:0})})}):null}var _l=n(82876);function _u(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,_l.usePathname)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,x.jsx)(c2,{href:r,className:"no-underline",children:(0,x.jsx)(s7,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(le,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,x.jsx)(s7,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(le,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function _c(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,x.jsx)(_u,{title:"Wallet",route:r.wallet.view,children:(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,x.jsx)(lt.oaN,{}),n&&t&&(0,x.jsx)(_s,{isSynced:n,balanceSc:t})]})})}function _d(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,x.jsx)(tG,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,x.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,x.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,x.jsx)(c3,{size:30})}),(0,x.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,x.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,x.jsx)("div",{className:"flex-1"}),(0,x.jsx)(c_,{className:"w-full"}),i&&(0,x.jsx)(_c,{routes:t,isSynced:r,walletBalanceSc:o}),(0,x.jsx)(_u,{title:"Blockchain node",route:t.node.index,children:(0,x.jsx)(lt.kBK,{})}),(0,x.jsx)(_u,{title:"App preferences",onClick:()=>s(),children:(0,x.jsx)(lt.UG6,{})}),(0,x.jsx)(_u,{title:"Lock app",onClick:a,children:(0,x.jsx)(lt.mBM,{})})]})]})})}var _f=Object.create,_h=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,_m=Object.getOwnPropertyNames,_v=Object.getPrototypeOf,_g=Object.prototype.hasOwnProperty,_y=(v=null!=(m=(h=(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={})},()=>(p||h((p={exports:{}}).exports,p),p.exports))())?_f(_v(m)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of _m(t))_g.call(e,n)||void 0===n||_h(e,n,{get:()=>t[n],enumerable:!(r=_p(t,n))||r.enumerable});return e})(m&&m.__esModule?v:_h(v,"default",{value:m,enumerable:!0}),m)),_x=e=>void 0!==e.method&&"call"===e.method,_b=e=>null===e.error&&"number"==typeof e.id;g=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(_x(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(_b(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,_y.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,_y.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,_y.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,_y.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=g(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var _w=(typeof window>"u"?"undefined":typeof window)=="object",_E={setTimeout:_w?setTimeout.bind(window):setTimeout,clearTimeout:_w?clearTimeout.bind(window):clearTimeout,setInterval:_w?setInterval.bind(window):setInterval,clearInterval:_w?clearInterval.bind(window):clearInterval},_j={},_k=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,_j[e]=_j[e]||[],_j[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),_E.setTimeout(()=>{window.localStorage.removeItem(n)},500),_j[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=_j[this.name].indexOf(this);_j[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)}},__=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:_k;function _S(){return Math.random().toString(36).substring(2)}var _O=class{options;channel;token=_S();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=>_E.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{_E.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=_E.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=>_E.clearInterval(e))}catch{}}}},_C=class{channel;options;elector;token=_S();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new __(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new _O(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()}},_M=_w?document:null,_A=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function _P(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function _N(e){let{route:t}=e,n=(0,fb.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function _R(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:w,settings:E}=(0,fb.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=_N({route:n}),{settings:a}=(0,fb.Hv)(),s=(0,k8.useRouter)();(0,b.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:w,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e,i=(0,b.useCallback)(()=>{n()},[n]);!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=_M,events:i=_A,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:x=!1,name:w="idle-timer",syncTimers:E=0,leaderElection:j=!1,disabled:k=!1}={}){let _=(0,b.useRef)(_T()),S=(0,b.useRef)(_T()),O=(0,b.useRef)(null),C=(0,b.useRef)(null),M=(0,b.useRef)(0),A=(0,b.useRef)(0),P=(0,b.useRef)(0),T=(0,b.useRef)(0),N=(0,b.useRef)(!1),R=(0,b.useRef)(!1),D=(0,b.useRef)(!1),L=(0,b.useRef)(!0),F=(0,b.useRef)(!1),V=(0,b.useRef)(null),z=(0,b.useRef)(null),I=(0,b.useRef)(e),Z=(0,b.useRef)(0);(0,b.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?(I.current=e-n,Z.current=n):(I.current=e,Z.current=t),!L.current){if(g||k)return;N.current&&(K.current(null,eP),z.current&&z.current.active()),ed()}},[e,t,n,g,k]);let B=(0,b.useRef)(y);(0,b.useEffect)(()=>{B.current=y},[y]);let H=(0,b.useRef)(a),U=(0,b.useRef)(r),W=(0,b.useRef)([...new Set([...i,...a]).values()]),q=(0,b.useRef)(k);(0,b.useEffect)(()=>{q.current=k,!L.current&&(k?ep():g||ed())},[k]);let $=(0,b.useRef)(s);(0,b.useEffect)(()=>{$.current=s},[s]);let Y=(0,b.useRef)(l);(0,b.useEffect)(()=>{Y.current=l},[l]);let G=(0,b.useRef)(u);(0,b.useEffect)(()=>{G.current=u},[u]);let K=(0,b.useRef)(c);(0,b.useEffect)(()=>{K.current=c},[c]);let X=(0,b.useRef)(d);(0,b.useEffect)(()=>{X.current=d},[d]);let Q=(0,b.useRef)(f);(0,b.useEffect)(()=>{Q.current=f},[f]);let J=(0,b.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?_P(e,p):e},[p,h]),ee=(0,b.useRef)();(0,b.useEffect)(()=>{x&&E&&(ee.current=_P(()=>{z.current.active()},E))},[x,E]);let et=()=>{null!==V.current&&(_E.clearTimeout(V.current),V.current=null)},en=(e,t=!0)=>{et(),V.current=_E.setTimeout(ea,e||I.current),t&&(C.current=_T())},er=e=>{R.current||N.current||(Y.current(e,eP),$.current({type:"active",prompted:!0},eP)),T.current=0,P.current=_T(),R.current=!0,en(Z.current,!1)},ei=()=>{et(),N.current||(G.current(null,eP),$.current({type:"idle"},eP)),N.current=!0,O.current=_T(),B.current?ec():R.current&&(P.current=0,R.current=!1)},eo=e=>{et(),(N.current||R.current)&&(K.current(e,eP),$.current({type:"active",prompted:!1},eP)),R.current=!1,P.current=0,N.current=!1,M.current+=_T()-O.current,A.current+=_T()-O.current,eu(),en()},ea=e=>{if(!N.current){J.cancel&&J.cancel();let t=_T()-C.current;if(!(I.current+Z.current0&&!R.current){z.current?z.current.prompt():er(e);return}z.current?z.current.idle():ei();return}z.current?z.current.active():eo(e)},es=e=>{if(v||C.current||(C.current=_T(),K.current(null,eP)),J(e,eP),R.current)return;if(et(),!N.current&&H.current.includes(e.type)){ea(e);return}let t=_T()-C.current;if(N.current&&!y||!N.current&&t>=I.current){ea(e);return}D.current=!1,T.current=0,P.current=0,en(),x&&E&&ee.current()},el=(0,b.useRef)(es);(0,b.useEffect)(()=>{let e=F.current;e&&ec(),m>0?el.current=_P(es,m):el.current=es,e&&eu()},[m,p,h,X,x,E]);let eu=()=>{_w&&U.current&&(F.current||(W.current.forEach(e=>{U.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),F.current=!0))},ec=(e=!1)=>{_w&&U.current&&(F.current||e)&&(W.current.forEach(e=>{U.current.removeEventListener(e,el.current,{capture:!0})}),F.current=!1)},ed=(0,b.useCallback)(e=>!q.current&&(et(),eu(),N.current=!1,R.current=!1,D.current=!1,T.current=0,P.current=0,z.current&&!e&&z.current.start(),en(),!0),[V,N,q,I,z]),ef=(0,b.useCallback)(e=>!q.current&&(et(),eu(),S.current=_T(),M.current+=_T()-O.current,A.current+=_T()-O.current,M.current=0,N.current=!1,R.current=!1,D.current=!1,T.current=0,P.current=0,z.current&&!e&&z.current.reset(),g||en(),!0),[V,N,I,g,q,z]),eh=(0,b.useCallback)(e=>!q.current&&(et(),eu(),(N.current||R.current)&&eo(),N.current=!1,R.current=!1,D.current=!1,T.current=0,P.current=0,S.current=_T(),z.current&&!e&&z.current.activate(),en(),!0),[V,N,R,q,I,z]),ep=(0,b.useCallback)((e=!1)=>!q.current&&!D.current&&(T.current=eE(),D.current=!0,ec(),et(),z.current&&!e&&z.current.pause(),!0),[V,q,z]),em=(0,b.useCallback)((e=!1)=>!q.current&&!!D.current&&(D.current=!1,R.current||eu(),N.current||en(T.current),P.current&&(P.current=_T()),z.current&&!e&&z.current.resume(),!0),[V,I,q,T,z]),ev=(0,b.useCallback)((e,t)=>(z.current?(t&&Q.current(e,eP),z.current.message(e)):t&&Q.current(e,eP),!0),[f]),eg=(0,b.useCallback)(()=>N.current,[N]),ey=(0,b.useCallback)(()=>R.current,[R]),ex=(0,b.useCallback)(()=>z.current?z.current.isLeader:null,[z]),eb=(0,b.useCallback)(()=>z.current?z.current.isLastActive:null,[z]),ew=(0,b.useCallback)(()=>z.current?z.current.token:null,[z]),eE=(0,b.useCallback)(()=>{if(D.current)return T.current;let e=Math.floor((T.current?T.current:Z.current+I.current)-(C.current?_T()-C.current:0));return e<0?0:Math.abs(e)},[I,Z,R,T,C]),ej=(0,b.useCallback)(()=>Math.round(_T()-S.current),[S]),ek=(0,b.useCallback)(()=>Math.round(_T()-_.current),[_]),e_=(0,b.useCallback)(()=>O.current?new Date(O.current):null,[O]),eS=(0,b.useCallback)(()=>C.current?new Date(C.current):null,[C]),eO=(0,b.useCallback)(()=>N.current?Math.round(_T()-O.current+M.current):Math.round(M.current),[O,M]),eC=(0,b.useCallback)(()=>N.current?Math.round(_T()-O.current+A.current):Math.round(A.current),[O,A]),eM=(0,b.useCallback)(()=>{let e=Math.round(ej()-eO());return e>=0?e:0},[O,M]),eA=(0,b.useCallback)(()=>{let e=Math.round(ek()-eC());return e>=0?e:0},[O,M]);(0,b.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(_E.setTimeout=o.setTimeout,_E.clearTimeout=o.clearTimeout,_E.setInterval=o.setInterval,_E.clearInterval=o.clearInterval);let e=()=>{z.current&&z.current.close(),J.cancel&&J.cancel(),et(),ec(!0)};return _w&&window.addEventListener("beforeunload",e),()=>{_w&&window.removeEventListener("beforeunload",e),z.current&&z.current.close(),J.cancel&&J.cancel(),et(),ec(!0)}},[]),(0,b.useEffect)(()=>{z.current&&z.current.close(),x?z.current=new _C({channelName:w,leaderElection:j,onPrompt:()=>{er()},onIdle:()=>{ei()},onActive:()=>{eo()},onMessage:e=>{Q.current(e,eP)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):z.current=null},[x,w,j,Y,G,K,Q,ed,ef,ep,em]),(0,b.useEffect)(()=>{L.current||(et(),ec(!0)),g||k||(v?ed():eu())},[g,v,k,L]),(0,b.useEffect)(()=>{if(!L.current){let e=[...new Set([...i,...a]).values()];ec(),W.current=e,U.current=r,H.current=a,g||k||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(a),L,k,g,v]),(0,b.useEffect)(()=>{L.current&&(L.current=!1)},[L]);let eP={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:ex,isLastActiveTab:eb,getTabId:ew,getRemainingTime:eE,getElapsedTime:ej,getTotalElapsedTime:ek,getLastIdleTime:e_,getLastActiveTime:eS,getIdleTime:eO,getTotalIdleTime:eC,getActiveTime:eM,getTotalActiveTime:eA,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,Y.current=e},setOnIdle:e=>{u=e,G.current=e},setOnActive:e=>{c=e,K.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,Q.current=e}}}({disabled:!t,onIdle:i,timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!E.autoLock,lockTimeout:E.autoLockTimeout,lock:w}),(0,x.jsxs)(_o,{appName:t,title:n,children:[(0,x.jsx)(_t,{}),(0,x.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,x.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,x.jsx)(_d,{routes:v,profile:i,openSettings:y,lock:w,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,x.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,x.jsx)(k9,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,x.jsx)(l6,{className:"z-0",children:(0,x.jsx)(lk,{size:o,pad:!1,children:(0,x.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,x.jsx)(lk,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function _D(e,t,n,r){let[i,o]=(0,b.useState)();return(0,b.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,b.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function _L(e){let{filtered:t}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.Hb6,{className:"scale-[200%]"})}),(0,x.jsx)(tq,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,b.createContext)(null).Consumer;let _F=[];function _V(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=_D(o.data,o.isValidating,o.error,_F),[u,c]=(0,b.useState)(),d=(0,b.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,b.useCallback)(e=>{let t=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});return t},[a]);return(0,x.jsx)(l9,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsxs)(cU,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,x.jsxs)("div",{className:"flex gap-1",children:[(0,x.jsx)(le,{variant:"info"===u?"accent":"gray",onClick:()=>"info"===u?c(void 0):c("info"),children:"info"}),(0,x.jsx)(le,{variant:"warning"===u?"accent":"gray",onClick:()=>"warning"===u?c(void 0):c("warning"),children:"warning"}),(0,x.jsx)(le,{variant:"error"===u?"accent":"gray",onClick:()=>"error"===u?c(void 0):c("error"),children:"error"}),(0,x.jsx)(le,{variant:"critical"===u?"accent":"gray",onClick:()=>"critical"===u?c(void 0):c("critical"),children:"critical"}),(0,x.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,x.jsxs)(le,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,x.jsx)(lt.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,x.jsxs)("div",{className:(0,ea.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,x.jsx)(_L,{filtered:!1}),"error"===l&&(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center justify-center h-[100px]",_Z()),children:(0,x.jsx)(tq,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,x.jsx)(_I,{}),!l&&(0,x.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,x.jsxs)("div",{className:(0,ea.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,x.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,x.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,x.jsxs)(tq,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,x.jsx)(le,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,x.jsx)(lt.NlZ,{})})]}),(0,x.jsxs)("div",{className:"flex justify-between w-full",children:[(0,x.jsx)(tq,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,x.jsx)(tq,{color:"contrast",ellipsis:!0,children:(0,m5.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)||_z;return(0,x.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,x.jsx)(_L,{filtered:!!u})})]})})}function _z(e){let{label:t,value:n}=e;return(0,x.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,x.jsx)(tq,{color:"subtle",children:t}),(0,x.jsx)(tq,{color:"contrast",ellipsis:!0,children:String(n)})]})}function _I(){return(0,x.jsx)(x.Fragment,{children:kO()(10,e=>(0,x.jsx)("div",{className:(0,ea.cx)("relative flex gap-4 p-3.5",_Z()),children:(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,x.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,x.jsx)(fP,{className:"w-[160px] h-[20px]"}),(0,x.jsx)(fP,{className:"w-[160px] h-[20px]"})]}),(0,x.jsx)(fP,{className:"w-[100px] h-[20px]"}),(0,x.jsx)(fP,{className:"w-full h-[120px]"})]})},e))})}function _Z(){return(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var _B=n(89644),_H=n.n(_B),_U=n(63955),_W=n(45861),_q=n.n(_W);function _$(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,b.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,b.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 _Y(e){return(0,b.useCallback)(t=>{kc(_q()(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", "))},[e])}function _G(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}=_$({name:t,form:n,field:u}),p=(0,x.jsx)(d3,{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,x.jsx)(kX,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var _K=n(829),_X=n.n(_K);async function _Q(e){let{api:t,route:n,password:r}=e;try{return await _H().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 _J(e){let{appName:t,route:n,routes:r}=e,i=(0,k8.useRouter)(),{settings:o,setSettings:a}=(0,fb.Hv)(),{allowCustomApi:s}=o,l=(0,b.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,_U.cI)({mode:"onBlur",defaultValues:l});(0,b.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,b.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await _Q({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=_Y(d),h=u.formState.errors.api||u.formState.errors.password,p=_X()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,x.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,x.jsx)(tG,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(tq,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsx)(cL,{trigger:(0,x.jsx)(le,{icon:"hover",variant:"ghost",children:(0,x.jsx)(lt.shL,{})}),children:(0,x.jsx)(cF,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,x.jsx)(c_,{className:"w-full mt-2 mb-3"}),(0,x.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,x.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,x.jsxs)(lE,{children:[(0,x.jsx)(_G,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,x.jsx)(cL,{trigger:(0,x.jsx)(le,{type:"button",children:(0,x.jsx)(lt.wGX,{})}),children:p.map(e=>(0,x.jsx)(cF,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,x.jsx)(_G,{name:"password",form:u,fields:d,group:!1}),h&&(0,x.jsx)(tq,{size:"14",color:"red",children:h.message}),(0,x.jsx)(kQ,{size:"small",form:u,children:"Unlock"})]})})]})})})}var _0=n(63397),_1=n(24511);let _2={address:"",siacoin:void 0,includeFee:!1},_4=_1.Ry().shape({address:_1.Z_().required("Required"),siacoin:_1.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fv())(e||0).isZero())});function _3(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,x.jsx)(kE,{value:t,type:"address"})]}),(0,x.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kk,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,x.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kk,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,x.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kk,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,x.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,x.jsx)(kE,{value:i,type:"transaction"})]})]})}function _5(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,x.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,x.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,x.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,x.jsxs)("div",{className:(0,ea.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,x.jsx)(tq,{color:l?"contrast":"verySubtle",className:(0,ea.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,x.jsx)("div",{className:(0,ea.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,x.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 _6(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(_3,{address:t,siacoin:n,fee:r,transactionId:i}),(0,x.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.Z$8,{})}),(0,x.jsx)(tq,{children:"Transaction successfully broadcasted."})]})]})}let _8=(0,m5.qN)(.00393),_7={address:"",siacoin:new(fv())(0),includeFee:!1};function _9(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,b.useState)("setup"),[l,u]=(0,b.useState)(),[c,d]=(0,b.useState)(_7),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,_0.TA)({initialValues:_2,validationSchema:_4,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,m5.qN)(e.siacoin).minus(n):(0,m5.qN)(e.siacoin);if(t){if(t.isLessThan((0,m5.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,m5.qN)(i.values.siacoin||0),a=(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(kJ,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,x.jsx)(kJ,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,x.jsxs)("div",{className:"flex items-center",children:[(0,x.jsx)(fW,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,x.jsx)(f_,{children:"Include or exclude the network fee from the above transaction value."}),(0,x.jsx)("div",{className:"flex flex-1"})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,x.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",children:"Network fee"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kk,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,x.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",children:"Total"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kk,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:_8,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,_0.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})}}),l=(0,x.jsx)("div",{className:"flex flex-col gap-4",children:(0,x.jsx)(_3,{address:o,siacoin:a,fee:r})});return{form:l,formik:s}}({fee:_8,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,b.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,x.jsx)(l9,{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,x.jsx)("div",{className:"flex flex-col gap-1",children:(0,x.jsx)(k5,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(_5,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,x.jsx)(c_,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,x.jsx)(_6,{data:c,fee:_8,transactionId:l})]})})}let Se="[a-fA-F\\d:]",St=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(Se,")|(?<=").concat(Se,")(?=\\s|$))"):"",Sn="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",Sr="[a-fA-F\\d]{1,4}",Si="\n(?:\n(?:".concat(Sr,":){7}(?:").concat(Sr,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(Sr,":){6}(?:").concat(Sn,"|:").concat(Sr,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(Sr,":){5}(?::").concat(Sn,"|(?::").concat(Sr,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(Sr,":){4}(?:(?::").concat(Sr,"){0,1}:").concat(Sn,"|(?::").concat(Sr,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(Sr,":){3}(?:(?::").concat(Sr,"){0,2}:").concat(Sn,"|(?::").concat(Sr,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(Sr,":){2}(?:(?::").concat(Sr,"){0,3}:").concat(Sn,"|(?::").concat(Sr,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(Sr,":){1}(?:(?::").concat(Sr,"){0,4}:").concat(Sn,"|(?::").concat(Sr,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(Sr,"){0,5}:").concat(Sn,"|(?::").concat(Sr,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),So=new RegExp("(?:^".concat(Sn,"$)|(?:^").concat(Si,"$)")),Sa=new RegExp("^".concat(Sn,"$")),Ss=new RegExp("^".concat(Si,"$")),Sl=e=>e&&e.exact?So:RegExp("(?:".concat(St(e)).concat(Sn).concat(St(e),")|(?:").concat(St(e)).concat(Si).concat(St(e),")"),"g");Sl.v4=e=>e&&e.exact?Sa:RegExp("".concat(St(e)).concat(Sn).concat(St(e)),"g"),Sl.v6=e=>e&&e.exact?Ss:RegExp("".concat(St(e)).concat(Si).concat(St(e)),"g");let Su=()=>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"),Sc={port:9981,ip:""},Sd=_1.Ry().shape({port:_1.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:_1.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>Su().test(e||""))});function Sf(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,_0.TA)({initialValues:Sc,validationSchema:Sd,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 kl("Connected to peer"),t.resetForm(),i(!1)}});return(0,x.jsx)(l9,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{size:"14",children:"Connect to a peer by IP address."}),(0,x.jsx)("form",{onSubmit:o.handleSubmit,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(kJ,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,x.jsx)(kJ,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,x.jsx)(k5,{formik:o,size:"medium",children:"Connect"})]})})]})})}function Sh(e){var t;let{id:n,transaction:r,trigger:i,open:o,onOpenChange:a}=e;return(0,x.jsx)(l9,{title:kv((null==r?void 0:r.txType)?kB()(kw(r.txType)):"Transaction",n,16),trigger:i,open:o,onOpenChange:a,contentVariants:{className:"w-[800px]"},children:r?(0,x.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,x.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Inflow"}),(0,x.jsx)(kk,{value:new(fv())((null==r?void 0:r.inflow)||0)})]}),(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Outflow"}),(0,x.jsx)(kk,{value:new(fv())((null==r?void 0:r.outflow)||0).negated()})]}),(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Miner fee"}),(0,x.jsx)(kk,{value:new(fv())((null==r?void 0:null===(t=r.raw.minerFees)||void 0===t?void 0:t.reduce((e,t)=>e.plus(t),new(fv())(0)))||0)})]}),(0,x.jsx)("div",{className:"flex-1"}),(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Timestamp"}),(0,x.jsx)(tq,{children:(0,m5.rN)((null==r?void 0:r.timestamp)||0,{timeStyle:"short"})})]})]}),(0,x.jsx)(ly,{children:JSON.stringify(null==r?void 0:r.raw,null,2)})]}):(0,x.jsx)(tq,{children:"Could not find transaction in wallet"})})}_1.Ry().shape({address:_1.Z_().required("Required"),description:_1.Z_().required("Required"),index:_1.Rx().integer().required("Required")});var Sp=n(38001);function Sm(e){let{title:t,description:n,address:r}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,x.jsx)(cU,{size:"20",font:"mono",children:t}),n&&(0,x.jsx)(tq,{children:n}),(0,x.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,x.jsx)("div",{className:"absolute",children:(0,x.jsx)(Sp.Z,{size:200,value:r})})}),(0,x.jsx)(kE,{type:"address",value:r})]})}function Sv(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,x.jsx)(l9,{title:kv("Address",km(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,x.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,x.jsx)(Sm,{address:t||""}):(0,x.jsx)(tq,{children:"Could not retreive wallet address"})})})}function Sg(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{color:"amber",children:(0,x.jsx)(lt.qdM,{})}),(0,x.jsxs)(tq,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{color:"amber",children:(0,x.jsx)(lt.qdM,{})}),(0,x.jsxs)(tq,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let Sy={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"},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"};function Sx(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,fb.Hv)();return(0,x.jsx)(fC,{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,x.jsx)(fM,{value:t,children:n},t)})})}function Sb(e){let{open:t,onOpenChange:n,securityEl:r}=e,{settings:i,setSettings:o,gpu:a}=(0,fb.Hv)();return(0,x.jsx)(l9,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,x.jsx)("div",{className:"flex flex-col gap-4",children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Display"}),(0,x.jsx)(t$,{size:"14",children:"Configure visual and locale display preferences."}),(0,x.jsx)(lr,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(cU,{size:"20",className:"flex-1",children:"Currency"}),(0,x.jsx)(Sx,{})]}),(0,x.jsx)(t$,{size:"14",children:"Select a currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,x.jsx)(lr,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(cU,{size:"20",className:"flex-1",children:"Theme"}),(0,x.jsx)(pp,{})]}),(0,x.jsx)(t$,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),(0,x.jsx)(lr,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(cU,{size:"20",className:"flex-1",children:"GPU"}),(0,x.jsx)(fW,{disabled:!a.canGpuRender,checked:a.canGpuRender&&a.isGpuEnabled,onCheckedChange:a.setIsGpuEnabled,size:"medium"})]}),(0,x.jsxs)(t$,{size:"14",children:["Enable features that require a GPU."," ",a.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,x.jsx)(c_,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Security"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{size:"14",children:"Configure security preferences."}),(0,x.jsx)(lr,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(cU,{size:"20",className:"flex-1",children:"Lock app"}),(0,x.jsx)(fW,{size:"medium",checked:i.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,x.jsxs)(fC,{disabled:!i.autoLock,value:String(i.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,x.jsx)(fM,{value:EA(5),children:"5 minutes"}),(0,x.jsx)(fM,{value:EA(10),children:"10 minutes"}),(0,x.jsx)(fM,{value:EA(20),children:"20 minutes"}),(0,x.jsx)(fM,{value:EA(30),children:"30 minutes"}),(0,x.jsx)(fM,{value:EA(60),children:"1 hour"})]})]}),(0,x.jsx)(t$,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,x.jsx)(c_,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Privacy"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{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,x.jsx)(lr,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(cU,{size:"20",className:"flex-1",children:"Sia Central"}),(0,x.jsx)(fW,{size:"medium",checked:i.siaCentral,onCheckedChange:e=>o({siaCentral:e})})]}),(0,x.jsx)(t$,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,x.jsx)(c_,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Help"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{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,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)(c2,{href:Sy.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(lt.lq1,{}),"Website"]}),(0,x.jsxs)(c2,{href:Sy.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(lt.RdX,{}),"Docs"]}),(0,x.jsxs)(c2,{href:Sy.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(lt.Sfn,{}),"About"]}),(0,x.jsxs)(c2,{href:Sy.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(lt.b47,{}),"Discord"]})]})]})]})]})})}function Sw(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,x.jsx)(s7,{content:(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"spendable"}),(0,x.jsx)(tq,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{variant:"value",value:t.spendable})})]}),(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"confirmed"}),(0,x.jsx)(tq,{color:"subtle",children:"All confirmed outputs."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{variant:"value",value:t.confirmed})})]}),(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"unconfirmed"}),(0,x.jsx)(tq,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{variant:"value",value:t.unconfirmed})})]})]}),children:(0,x.jsx)(tG,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,x.jsx)(tq,{size:"12",weight:"semibold",children:(0,m5.Vz)(t.spendable.plus(t.unconfirmed))})})}):(0,x.jsx)(s7,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,x.jsxs)(tG,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,x.jsx)(tq,{color:"amber",children:(0,x.jsx)(lt.qdM,{className:""})}),(0,x.jsx)(tq,{size:"12",weight:"semibold",children:(0,m5.Vz)(t.spendable.plus(t.unconfirmed))})]})}):null}function SE(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,x.jsxs)(x.Fragment,{children:[o&&(0,x.jsx)(Sw,{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,x.jsxs)(le,{size:"small",onClick:s,children:[(0,x.jsx)(lt.xHM,{}),"Receive"]}),(0,x.jsxs)(le,{size:"small",variant:"accent",onClick:a,children:[(0,x.jsx)(lt.rW0,{}),"Send"]})]})}function Sj(e,t){if(!e||!e.length)return[];let n=Object.keys(EM()(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 Sk(e,t){return"all"===e?{start:new Date(2022,1,1).getTime(),end:t}:{start:t-ET(Number(e)),end:t}}let S_={"5m":e=>{let t=e+EA(5);return"5m interval from ".concat((0,m5.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m5.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+EA(15);return"15m interval from ".concat((0,m5.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m5.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+EP(1);return"Hour interval from ".concat((0,m5.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m5.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+EP(24);return"Day interval from ".concat((0,m5.rN)(e)," to ").concat((0,m5.rN)(t))},weekly:e=>{let t=e+ET(7);return"Week interval from ".concat((0,m5.rN)(e)," to ").concat((0,m5.rN)(t))},monthly:e=>{let t=e+ET(30);return"Month interval from ".concat((0,m5.rN)(e)," to ").concat((0,m5.rN)(t))},yearly:e=>{let t=e+ET(365);return"Year interval from ".concat((0,m5.rN)(e)," to ").concat((0,m5.rN)(t))},default:e=>"".concat((0,m5.rN)(e))};function SS(e){return S_[e]||S_.default}function SO(e){if(!e||!e.length)return{};let t=Object.keys(EM()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=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,a=t.reduce((t,n)=>t+(n[e]||0),0);return SC({total:a,start:i,end:o,count:t.length})}(n,e)}),{});return{...n,total:function(e,t){let n=SM(e,t[0]),r=SM(e,t[t.length-1]),i=t.reduce((t,n)=>t+SM(e,n),0);return SC({total:i,start:n,end:r,count:t.length})}(t,e)}}function SC(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 SM(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function SA(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,pf.F)(),o=(0,b.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:m3.accent[800]}}:{sc:{label:"siacoin",color:m3.accentdark[800]}},[i]),a=(0,b.useMemo)(()=>{let e=Sj(t,"none"),i=SO(t);return{data:e,stats:i,config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,m5.Vz)(e),formatTimestamp:SS("default"),disableAnimations:!0},chartType:r,isLoading:n}},[t,n,o,r]);return(0,x.jsx)("div",{className:"relative",children:(0,x.jsx)(EF,{id:"balance",height:200,allowConfiguration:!1,data:a.data,config:a.config,chartType:a.chartType})})}function SP(e){let{peers:t,connectPeer:n}=e;return(0,x.jsx)(kq,{title:"Peers",actions:(0,x.jsx)(le,{onClick:n,children:"Connect"}),entities:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function ST(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,x.jsxs)("div",{className:(0,ea.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,x.jsx)("div",{className:"relative top-px",children:(0,x.jsx)(fN,{style:{backgroundColor:o}})}),(0,x.jsx)(tq,{size:t,children:n})]})}var SN=n(92762);let SR={total:"total",average:"average",latest:"latest"};function SD(e){let{category:t,label:n,color:r,sc:i,value:o,extendedSuffix:a,format:s=e=>e.toFixed(2),defaultMode:l,enabledModes:u=["total","average","latest"],isLoading:c,showChange:d=!0}=e,[f,h]=(0,SN.Z)("v0/datum/".concat(t,"/").concat(n),{defaultValue:l});return(0,x.jsx)(k$,{isLoading:c,label:(0,x.jsx)(ST,{label:n,color:r}),actions:(0,x.jsx)(fC,{onChange:e=>h(e.currentTarget.value),defaultValue:f,children:u.map(e=>(0,x.jsx)(fM,{value:e,children:SR[e]},e))}),sc:(null==i?void 0:i[f])!==void 0?new(fv())(i[f]):void 0,extendedSuffix:a,value:(null==o?void 0:o[f])!==void 0&&s?s(o[f]):void 0,comment:i?(0,x.jsxs)("div",{className:"flex items-center gap-4",children:[(0,x.jsx)(kk,{tooltip:"Net change over time range:",value:new(fv())(i.diff)}),d&&void 0!==i.change&&(0,x.jsx)(s7,{content:"Percent change over time range",children:(0,x.jsxs)(tq,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[i.change.toFixed(2),"%"]})})]}):o&&(0,x.jsxs)("div",{className:"flex items-center gap-4",children:[(0,x.jsx)(k_,{tooltip:"Net change over time range:",format:e=>s(e.toNumber()),value:new(fv())(o.diff)}),d&&void 0!==o.change&&(0,x.jsx)(s7,{content:"Percent change over time range",children:(0,x.jsxs)(tq,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[o.change.toFixed(2),"%"]})})]})})}function SL(e){let{children:t,bleed:n}=e;return(0,x.jsx)("div",{className:(0,ea.cx)(n?"-mx-5 overflow-hidden":""),children:(0,x.jsx)(l6,{children:(0,x.jsx)("div",{className:(0,ea.cx)("flex gap-4 py-4",n?"px-5 w-fit":""),children:t})})})}function SF(e){return 4320*e}function SV(e){return e/16666666666666669e-22}function Sz(e){return e/4320}function SI(e,t){return new Date().getTime()+SV(t-e)}function SZ(e){let{children:t,variant:n,align:r}=e;return(0,x.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,x.jsx)(tq,{size:"10",color:"primary"===n?"contrast":"verySubtle",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function SB(e){let{date:t,align:n,variant:r}=e;return t?(0,x.jsx)(SZ,{variant:r,align:n,children:(0,m5.rN)(t)}):null}function SH(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,x.jsx)(SZ,{variant:r,align:n,children:t.toLocaleString()}):null}function SU(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=SV(d),h=SI(n,r.startHeight),p=SI(n,i),m=SI(n,o),v=(p-h)/f,g=(m-h)/f;return(0,x.jsxs)("div",{className:(0,ea.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:SW(v),width:SW(g-v)},children:[(0,x.jsx)("div",{className:(0,ea.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,x.jsx)("div",{className:(0,ea.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,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:SW(1-g)}:{left:SW(v)},children:[(0,x.jsx)(SH,{blockHeight:i,align:"start",variant:"primary"}),(0,x.jsx)(SZ,{variant:"primary",children:t}),(0,x.jsx)(SH,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,x.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:SW(1-g)}:{left:SW(v)},children:[(0,x.jsx)(SB,{date:p,align:"start",variant:"secondary"}),(0,x.jsx)(SB,{date:m,align:"start",variant:"secondary"})]}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:SW(1-g)}:{left:SW(v)},children:[(0,x.jsx)(SB,{date:p,align:"start",variant:"secondary"}),(0,x.jsx)(SB,{date:m,align:"start",variant:"secondary"})]})]})}function SW(e){return"".concat(100*e,"%")}function Sq(e){let{currentHeight:t,eventHeight:n,range:r,label:i,bottomLabel:o,color:a,className:s,unconfirmedPing:l=!0}=e,u=!!n&&n>t,c=n&&!u&&t-n<6,d=r.endHeight-r.startHeight,f=SV(d),h=SI(t,r.startHeight),p=n?SI(t,n):0;return n?(0,x.jsx)("div",{className:(0,ea.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",s),style:{left:"".concat(100*(p?(p-h)/f:0),"%")},children:(0,x.jsxs)("div",{className:(0,ea.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[l&&c&&(0,x.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,x.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,x.jsx)("div",{className:(0,ea.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===a?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===a?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===a?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,x.jsx)(SH,{blockHeight:n,align:"start",variant:"primary"}),(0,x.jsx)(SZ,{variant:"primary",children:i})]}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,x.jsx)(SB,{date:p,align:"start",variant:"secondary"}),o&&(0,x.jsx)(SZ,{variant:"secondary",children:o})]})]})}):null}function S$(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,x.jsx)("div",{className:"group/main relative w-full",children:(0,x.jsx)("div",{className:"relative py-6",children:(0,x.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,x.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,x.jsxs)("div",{className:"group/segments",children:[(0,x.jsx)(SU,{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,x.jsx)(SU,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,x.jsx)(Sq,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,x.jsx)(Sq,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,x.jsx)(Sq,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,x.jsx)(Sq,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var SY=n(17335),SG=n.n(SY);function SK(e){let{label:t,columns:n,enabled:r,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===SG()(n,r).length,s=SG()(n,r).length===n.length;return(0,x.jsxs)(cP,{children:[(0,x.jsx)(cJ,{children:t}),(0,x.jsxs)(cT,{children:[(0,x.jsx)(le,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(n)},children:(0,x.jsx)(lt.xVB,{})}),(0,x.jsx)(le,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,x.jsx)(lt.pHg,{})})]})]})}function SX(e){let{title:t,children:n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,x.jsx)(cU,{anchorLink:!0,size:"24",children:t}),(0,x.jsx)(tG,{className:"p-6",children:(0,x.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function SQ(e){let{title:t,description:n,control:r}=e;return(0,x.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,x.jsx)(cU,{size:"20",children:t}),(0,x.jsx)(t$,{size:"14",children:n})]}),(0,x.jsx)("div",{className:"",children:r})]})}function SJ(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,_U.cI)(),d=(0,b.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,x.jsx)(l9,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,x.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,x.jsx)("div",{className:"flex gap-1 justify-end",children:(0,x.jsx)(kQ,{variant:s,form:c,size:"small",children:l})})]})})})}function S0(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(tq,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsxs)("div",{className:"flex items-center",children:[n?(0,x.jsxs)(le,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,x.jsx)(tq,{color:"subtle",children:n.toLocaleString()}),(0,x.jsx)(lt.RK4,{})]}):null,i&&r?(0,x.jsx)(s7,{content:"Blockchain is synced",children:(0,x.jsx)("div",{className:"relative left-2",children:(0,x.jsxs)(le,{variant:"ghost",state:"waiting",children:[(0,x.jsx)(tq,{color:"subtle",children:i.toLocaleString()}),(0,x.jsx)(tq,{color:"green",children:(0,x.jsx)(lt.Y3p,{})})]})})}):null]})]})}function S1(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,x.jsx)(dP,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,x.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,x.jsx)(tq,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,x.jsx)(tq,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,x.jsx)(tq,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function S2(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,x.jsx)(hT,{rootProps:{openDelay:100},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,x.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,x.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,x.jsxs)(tq,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,x.jsx)(c3,{size:30})]}),children:(0,x.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[300px]",children:[(0,x.jsx)(S0,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,x.jsx)(c_,{className:"w-full mb-0.5"}):(0,x.jsx)(S1,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tq,{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,x.jsx)(c_,{className:"w-full mb-1"})]}),c]})})}function S4(e){let{testnetName:t}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,x.jsx)(tq,{color:"lo",children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsxs)(tq,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function S3(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(s7,{align:"start",side:"bottom",content:i,children:(0,x.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,x.jsx)(tq,{className:"flex relative",children:o||(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(tq,{size:"12",ellipsis:!0,children:r?(0,x.jsx)(c2,{href:r,target:"_blank",children:n}):n})]})}),(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,x.jsx)(kk,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,x.jsx)(k_,{value:a,variant:"value",size:"12",format:e=>"".concat(fg(e,l)," ").concat(u)})})]})}function S5(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}=_$({name:t,field:i,form:n}),y=d||(()=>null),w=(0,b.useMemo)(()=>s?new(fv())(s):a&&"boolean"!=typeof a?new(fv())(a):void 0,[s,a]);return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)(fj,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:w,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),(0,x.jsx)(y,{name:t,form:n,fields:r}),o&&(0,x.jsx)(S3,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,m5.qN)(o),onClick:()=>{m(o,!0)}}),a&&u&&(0,x.jsx)(S3,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,m5.qN)(a),onClick:()=>{m(a,!0)}})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kK,{form:n,name:t})})]})}function S6(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}=_$({form:n,field:i,name:t}),m=(0,b.useMemo)(()=>c?new(fv())(c):s&&"boolean"!=typeof s?new(fv())(s):void 0,[c,s]);return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)(fy,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(fv())(e):void 0;f(t,!0)},onBlur:()=>{f(h,!0)}}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,x.jsx)(S3,{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,x.jsx)(S3,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kK,{form:n,name:t})})]})}function S8(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(s7,{align:"start",side:"bottom",content:r,children:(0,x.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,x.jsx)(tq,{className:"flex relative",children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(tq,{size:"12",children:n?(0,x.jsx)(c2,{href:n,target:"_blank",children:t}):t})]})}),(0,x.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,x.jsx)(tq,{size:"12",children:(0,x.jsx)(lb,{children:i})})})]})}function S7(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}=_$({name:t,form:n,field:o});return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)(d3,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,x.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,x.jsx)(S8,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kK,{form:n,name:t})})]})}function S9(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=_$({name:t,field:i,form:n});return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)("div",{className:"flex justify-end w-full",children:(0,x.jsx)(fW,{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,x.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,x.jsx)(S8,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kK,{form:n,name:t})})]})}function Oe(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}=_$({name:t,form:n,field:i});return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)("div",{className:"flex justify-end w-full",children:(0,x.jsx)(fC,{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,x.jsx)(fM,{value:e.value,children:e.label},e.value))})}),(0,x.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,x.jsx)(S8,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kK,{form:n,name:t})})]})}function Ot(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,x.jsx)(SX,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,x.jsxs)(b.Fragment,{children:[(0,x.jsx)(SQ,{title:a.title,description:a.description,control:"number"===a.type?(0,x.jsx)(S6,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,x.jsx)(S5,{form:r,name:n,fields:i}):"text"===a.type?(0,x.jsx)(S7,{form:r,name:n,fields:i}):"password"===a.type?(0,x.jsx)(S7,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,x.jsx)(S9,{form:r,name:n,fields:i}):"select"===a.type?(0,x.jsx)(Oe,{form:r,name:n,fields:i}):null}),t{let t=void 0!==e?new(fv())(e):void 0;l(t,!0)},onBlur:()=>{l(c,!0)}})})}function Or(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}=_$({name:t,field:s,form:n}),d=(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,x.jsx)(fW,{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,x.jsx)(kX,{title:s.title,name:t,form:n,children:d}):d}var Oi=n(75652),Oo=n.n(Oi);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 Oa=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,b.useState)(!0),l=(0,b.useRef)(!1),u=(0,b.useRef)(0);return(0,b.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,b.createElement)(tO,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,b.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,b.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,b.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function Os(e){let{children:t}=e,[n,r]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{r(!0)},[]),(0,x.jsx)("div",{children:n?t:null})}function Ol(e){let{passwordProtectRequestHooks:t,fallback:n,children:r,lockRoutes:i}=e;return(0,x.jsx)(Os,{children:(0,x.jsx)(fb.kl,{fallback:n,children:(0,x.jsx)(pf.f,{attribute:"class",children:(0,x.jsx)(Oa,{children:(0,x.jsx)(fb.bW,{lockRoutes:i,passwordProtectRequestHooks:t,children:(0,x.jsxs)("div",{id:"root",className:s6,children:[(0,x.jsx)(kf,{}),r]})})})})})})}n(331);var Ou=n(30898),Oc=n.n(Ou);let Od=[];function Of(e,t){let{columns:n,columnsDefaultVisible:r,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:Od,...t},[s,l]=(0,SN.Z)("".concat(e,"/enabledColumns"),{defaultValue:r}),[u,c]=(0,SN.Z)("".concat(e,"/sortField"),{defaultValue:i}),[d,f]=(0,SN.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),h=(0,b.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),p=(0,b.useCallback)(e=>{l(t=>Oo()([...t,...e]))},[l]),m=(0,b.useCallback)(e=>{l(t=>SG()(t,e))},[l]),v=(0,b.useCallback)(()=>{l(r)},[l,r]),g=(0,b.useCallback)(e=>{if(u!==e){c(e),f("asc");return}f(e=>"desc"===e?"asc":"desc")},[u,c,f]),y=(0,b.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),x=(0,b.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]),w=(0,b.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return Oc()(e,x)},[o,x]);return{configurableColumns:y,enabledColumns:x,toggleColumnVisibility:h,toggleSort:g,setSortDirection:f,setSortField:c,sortableColumns:w,sortField:u,setColumnsVisible:p,setColumnsHidden:m,sortDirection:d,resetDefaultColumnVisibility:v}}function Oh(){let e=(0,k8.useRouter)(),[t,n]=(0,b.useState)([]),r=(0,b.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,b.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,b.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,b.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}function Op(e){return new(fv())(e).times(1024).times(1024)}function Om(e){return new(fv())(e).times(1e3).times(1e3).times(1e3).times(1e3)}function Ov(e){return new(fv())(e).div(1e3).div(1e3).div(1e3)}function Og(e){return new(fv())(e).times(1e3).times(1e3).times(1e3)}function Oy(e){return new(fv())(e).div(1e3).div(1e3)}function Ox(e){return new(fv())(e).times(1e3).times(1e3)}function Ob(e){return Op(e).times(4)}function Ow(e){return Ov(Ob(e))}function OE(e){var t;return(t=Og(e),new(fv())(t).div(1024).div(1024)).div(4).integerValue()}function Oj(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)+720,n.startHeight=n.startHeight-720;let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=ET(1);let o=r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{});return{allDatesMap:o,range:n}}new(fv())(0)},2850:function(e,t,n){"use strict";n.d(t,{bW:function(){return F},kl:function(){return $},gw:function(){return o},Tc:function(){return W},du:function(){return q},Hv:function(){return L},iv:function(){return U},Nf:function(){return H},E:function(){return B},mw:function(){return z},q0:function(){return V},Tb:function(){return M},V1:function(){return Z},I7:function(){return I}});var r=n(79381);function i(e,t){return!e||t?null:e}function o(e){return new Promise(t=>setTimeout(t,e))}var a=n(89644),s=n.n(a),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 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=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:o}}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){let n=Object.keys(t);for(let r of n){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}}return e}(t,i)))return null;let o=f(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).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(82876),y=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 b=["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 E="undefined"==typeof window,j=(()=>{if(E)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 k extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let _=[],S=[];function O(e){return null!=e}let C=({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(E)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==j?void 0:j.isIpad),isMobile:l=!!(null==j?void 0:j.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 k("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==j?void 0:j.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 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==j?void 0:j.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=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let n of t)if(e.includes(n))return n})(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 k)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:x}=window,b=u.width*x*u.height*x;for(let e of g){let[t,n]=e,r=t*n,i=Math.abs(b-r);ie===n?t-r:e-n);if(!v.length){let e=b.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,C]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,C);let M=l?e:t,A=0;for(let e=0;e=M[e]&&(A=e);return f(A,"BENCHMARK",y,g,C)});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 A=(0,l.createContext)({}),P=()=>(0,l.useContext)(A);function T(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]),r=(0,l.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,l.useCallback)(()=>{t({})},[t]),o=(0,l.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:n,removeWorkflow:r,resetWorkflows:i,workflows:o}}();return(0,v.jsx)(A.Provider,{value:n,children:t})}let N=[{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}],R={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:N[0],recentApis:{},autoLock:!1,autoLockTimeout:6e5},D=(0,l.createContext)({}),L=()=>(0,l.useContext)(D);function F(e){let{children:t,...n}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:i}=e,o=(0,l.useMemo)(()=>({...R,...i}),[i]),[a,s]=(0,y.Z)("v0/settings",{defaultValue:o});(0,l.useEffect)(()=>{s(e=>({...o,...e}))},[]);let u=(0,l.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=P(),d=(0,l.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,l.useCallback)(e=>{let t=N.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,g.useRouter)(),p=(0,g.usePathname)(),[m,v]=(0,l.useState)({}),x=(0,l.useCallback)((e,t)=>{v(n=>({...n,[e]:t}))},[v]),b=(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,r.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=(0,l.useMemo)(()=>!!u.password,[u]),E=function(){let e=M(),[t,n]=(0,l.useState)(!1),[r,i]=(0,l.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},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 C();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,a]);return(0,l.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:N,gpu:E,lock:b,isUnlocked:w,passwordProtectRequestHooks:t,setOnLockCallback:x}}(n);return(0,v.jsx)(D.Provider,{value:i,children:t})}function V(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0),d=(0,l.useMemo)(()=>i(u?"".concat(u).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!o.password),[u,e,n,a,o]);return(0,r.ZP)(d,async()=>{if(!n.route)throw Error("No route");let t=h(o,n,void 0);if(!u)throw Error("No route");try{let n=await s().post(u,e.payload,t);return n.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 z(e,t){let{setWorkflow:n,removeWorkflow:i}=P(),{mutate:o}=(0,r.kY)(),{settings:a}=L(),l=u(e);return{post:async e=>{let r=d(e);try{let u;let c=h(a,l,r),d=p(a,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(a,d,e,r);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,i=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let i=m(a,n,e,r);return t(i)},n,i)},r,g),i(f),{status:g.status,data:g.data}}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){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0),d=(0,l.useMemo)(()=>i(u?"".concat(u).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!o.password),[u,e,n,a,o]);return(0,r.ZP)(d,async()=>{if(!n.route)throw Error("No route");let t=h(o,n,void 0);if(!u)throw Error("No route");try{let n=await s().put(u,e.payload,t);return n.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 Z(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=P(),l=u(e);return{put:async e=>{let r=d(e);try{let u;let c=h(i,l,r),d=p(i,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(i,d,e,r);o(f,{path:v,payload:u});let g=await s().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=m(i,n,e,r);return t(o)},o,a)},r,g),a(f),{status:g.status,data:g.data}}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,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=P(),l=u(e);return{patch:async e=>{let r=d(e);try{let u;let c=h(i,l,r),d=p(i,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(i,d,e,r);o(f,{path:v,payload:u});let g=await s().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=m(i,n,e,r);return t(o)},o,a)},r,g),a(f),{status:g.status,data:g.data}}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 H(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0);return(0,r.ZP)(i(e.standalone?"".concat(e.standalone,"/").concat(u):u,n.disabled||a&&!o.password),async()=>{if(!n.route)throw Error("No route");let e=h(o,n,void 0);if(!u)throw Error("No route");try{let t=await s().get(u,e);return 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 U(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=P(),l=u(e);return{delete:async e=>{let r=d(e);try{let u=h(i,l,r),c=p(i,l.route,l,r);if(!c)throw Error("No route");let d=m(i,c,e,r);o(c,{path:d});let f=await s().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=m(i,n,e,r);return t(o)},o,a)},r,f),a(c),{status:f.status,data:f.data}}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(){return Math.round((new Date().getTime()-14336e8)/6e5)}function q(){return Math.round((new Date().getTime()-16736e8)/6e5)}function $(e){let{fallback:t,cacheProvider:n,children:i}=e;return(0,v.jsx)(T,{children:(0,v.jsx)(r.J$,{value:{fallback:t||{},provider:n},children:i})})}},27444:function(e,t,n){"use strict";n.d(t,{dk:function(){return o},Z7:function(){return F},Uy:function(){return V},GP:function(){return y},kr:function(){return x},nH:function(){return l},KU:function(){return b},rV:function(){return E},Az:function(){return k},uo:function(){return _},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 O},_3:function(){return N},HU:function(){return M},uq:function(){return P},G:function(){return T},Rz:function(){return A},Fn:function(){return S},Os:function(){return f},a0:function(){return m},cj:function(){return v},Qq:function(){return h}});var r=n(2850),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}}}),t=(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});return t.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 x(e){return(0,r.V1)({...e,route:"/contracts/:id/integrity"})}function b(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 _(e){return(0,r.I7)({...e,payload:{},route:"/settings/ddns/update"})}function S(e){return(0,r.Nf)({...e,route:"/volumes"})}function O(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 P(e){return(0,r.iv)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function T(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 F(e){return(0,r.Nf)({...e,route:L})}function V(e){return(0,r.mw)({...e,route:"/alerts/dismiss"},async e=>{e(e=>e.startsWith(L))})}},41775: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 tL},eHR:function(){return tU},xHM:function(){return tW},IRm:function(){return tq},L6f:function(){return t$},rW0:function(){return tY},osk:function(){return tG},JaG:function(){return tK},wWN:function(){return is},Dkj:function(){return iy},cfm:function(){return tQ},YV2:function(){return t6},EMN:function(){return t8},bdU:function(){return t7},VUy:function(){return t9},Cp0:function(){return ne},kqg:function(){return nt},Mes:function(){return nn},DI$:function(){return ni},NlZ:function(){return nf},Y3p:function(){return np},Z$8:function(){return nh},tEK:function(){return nm},PcV:function(){return ng},QN4:function(){return nv},Jsc:function(){return ny},wEY:function(){return nw},olJ:function(){return nE},KiD:function(){return n_},dDl:function(){return nS},Jrl:function(){return nM},aPl:function(){return nA},kBK:function(){return ip},Bpb:function(){return nT},iG7:function(){return nF},dr6:function(){return nV},d19:function(){return nz},w9S:function(){return nI},VBo:function(){return il},Hb6:function(){return nH},CCF:function(){return nU},Qbr:function(){return nY},L37:function(){return nG},ROc:function(){return iv},UG6:function(){return im},lq1:function(){return nK},zvn:function(){return iu},K2o:function(){return ih},EL$:function(){return nQ},BdP:function(){return n3},dsj:function(){return n5},P5r:function(){return n6},RdX:function(){return n8},U_S:function(){return n7},V8Q:function(){return rn},POp:function(){return rr},kSc:function(){return ri},mBM:function(){return id},Lur:function(){return rl},b47:function(){return ru},Sfn:function(){return rc},W$S:function(){return rv},T85:function(){return rg},Ckx:function(){return ry},dZ8:function(){return rb},EOT:function(){return rx},RK4:function(){return rE},XJM:function(){return rS},RRj:function(){return rO},ka0:function(){return rC},hzZ:function(){return rA},VUg:function(){return rD},owP:function(){return rL},Fs9:function(){return rF},wGX:function(){return rV},Wet:function(){return rB},BB5:function(){return rH},ZEk:function(){return rU},$Iz:function(){return rY},shL:function(){return rG},hiv:function(){return rK},mli:function(){return rQ},lJ7:function(){return ig},ORH:function(){return r0},xVB:function(){return r6},pHg:function(){return r8},I$H:function(){return r9},HCc:function(){return r7},oaN:function(){return ic},qdM:function(){return ie},SmH:function(){return ii},lg1:function(){return io}});var a,s,l,u,c,d,f,h,p,m,v,g,y,x,b,w,E,j,k,_,S,O,C,M,A,P,T,N,R,D,L,F,V,z,I,Z,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,ex,eb,ew,eE,ej,ek,e_,eS,eO,eC,eM,eA,eP,eT,eN,eR,eD,eL,eF,eV,ez,eI,eZ,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,tx,tb,tw,tE=["width","height","viewBox"],tj=["tabindex"],tk={focusable:"false",preserveAspectRatio:"xMidYMid meet"},t_=n(13980),tS=n.n(t_),tO=n(2784);function tC(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 tM(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 tT=["className","children","tabIndex"],tN=["tabindex"],tR=tO.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,tE),l=s.tabindex,u=o(s,tj),c=i(i(i({},tk),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}(tM(tM({},tP(e,tT)),{},{tabindex:a})),l=s.tabindex,u=tP(s,tN);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tO.createElement("svg",u,r)});tR.displayName="Icon",tR.propTypes={"aria-hidden":tS().string,"aria-label":tS().string,"aria-labelledby":tS().string,children:tS().node,className:tS().string,height:tS().oneOfType([tS().number,tS().string]),preserveAspectRatio:tS().string,tabIndex:tS().string,viewBox:tS().string,width:tS().oneOfType([tS().number,tS().string]),xmlns:tS().string},tR.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var tD=["children"],tL=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tD);return tO.createElement(tR,tA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tO.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)}),tF=["children"],tV=["children"],tz=["children"],tI=["children"],tZ=["children"],tB=["children"],tH=["children"],tU=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tF);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tO.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tO.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),tW=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tV);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tO.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)}),tq=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tz);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tO.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)}),t$=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tI);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tO.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)}),tY=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tZ);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tO.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)}),tG=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tB);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tO.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)}),tK=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tH);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=tO.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),m||(m=tO.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),v||(v=tO.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),g||(g=tO.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),y||(y=tO.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),x||(x=tO.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),b||(b=tO.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),w||(w=tO.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),E||(E=tO.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)}),tX=["children"],tQ=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tX);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tO.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)}),tJ=["children"],t0=["children"],t1=["children"],t2=["children"],t4=["children"],t3=["children"],t5=["children"],t6=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tJ);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tO.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)}),t8=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,t0);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tO.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),t7=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,t1);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tO.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),t9=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,t2);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tO.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),ne=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,t4);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tO.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),nt=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,t3);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=tO.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nn=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,t5);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tO.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)}),nr=["children"],ni=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nr);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),P||(P=tO.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"})),T||(T=tO.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)}),no=["children"],na=["children"],ns=["children"],nl=["children"],nu=["children"],nc=["children"],nd=["children"],nf=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,no);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tO.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nh=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,na);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),R||(R=tO.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=tO.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)}),np=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,ns);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),L||(L=tO.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"})),F||(F=tO.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)}),nm=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nl);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=tO.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),z||(z=tO.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)}),nv=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nu);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),I||(I=tO.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)}),ng=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nc);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tO.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)}),ny=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nd);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=tO.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"})),H||(H=tO.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)}),nx=["children"],nb=["children"],nw=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nx);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),U||(U=tO.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"})),W||(W=tO.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nE=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nb);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),q||(q=tO.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"})),$||($=tO.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nj=["children"],nk=["children"],n_=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nj);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tO.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"})),G||(G=tO.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)}),nS=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nk);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),K||(K=tO.createElement("path",{d:"M23 27.18L20.41 24.59 19 26 23 30 30 23 28.59 21.59 23 27.18z"})),X||(X=tO.createElement("circle",{cx:"11",cy:"8",r:"1"})),Q||(Q=tO.createElement("circle",{cx:"11",cy:"16",r:"1"})),J||(J=tO.createElement("circle",{cx:"11",cy:"24",r:"1"})),ee||(ee=tO.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)}),nO=["children"],nC=["children"],nM=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nO);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=tO.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),en||(en=tO.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),nA=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nC);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),er||(er=tO.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ei||(ei=tO.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),nP=["children"],nT=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nP);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eo||(eo=tO.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),nN=["children"],nR=["children"],nD=["children"],nL=["children"],nF=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nN);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ea||(ea=tO.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),n)}),nV=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nR);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tO.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)}),nz=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nD);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),el||(el=tO.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"})),eu||(eu=tO.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ec||(ec=tO.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),nI=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nL);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tO.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)}),nZ=["children"],nB=["children"],nH=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nZ);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ef||(ef=tO.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)}),nU=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nB);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tO.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)}),nW=["children"],nq=["children"],n$=["children"],nY=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nW);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tO.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)}),nG=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nq);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tO.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"})),ev||(ev=tO.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)}),nK=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,n$);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tO.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"})),ey||(ey=tO.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)}),nX=["children"],nQ=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nX);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=tO.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)}),nJ=["children"],n0=["children"],n1=["children"],n2=["children"],n4=["children"],n3=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nJ);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tO.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)}),n5=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,n0);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tO.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)}),n6=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,n1);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=tO.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)}),n8=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,n2);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tO.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"})),ek||(ek=tO.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)}),n7=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,n4);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=tO.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)}),n9=["children"],re=["children"],rt=["children"],rn=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,n9);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eS||(eS=tO.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"})),eO||(eO=tO.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)}),rr=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,re);return tO.createElement(tR,tA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=tO.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"})),eM||(eM=tO.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)}),ri=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rt);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=tO.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)}),ro=["children"],ra=["children"],rs=["children"],rl=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,ro);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tO.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)}),ru=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,ra);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tO.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"})),eN||(eN=tO.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)}),rc=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rs);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=tO.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)}),rd=["children"],rf=["children"],rh=["children"],rp=["children"],rm=["children"],rv=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rd);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tO.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"})),eL||(eL=tO.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)}),rg=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rf);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eF||(eF=tO.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)}),ry=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rh);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eV||(eV=tO.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"})),ez||(ez=tO.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)}),rx=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rp);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=tO.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"})),eZ||(eZ=tO.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)}),rb=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rm);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tO.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"})),eH||(eH=tO.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)}),rw=["children"],rE=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rw);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=tO.createElement("circle",{cx:"21",cy:"26",r:"2"})),eW||(eW=tO.createElement("circle",{cx:"21",cy:"6",r:"2"})),eq||(eq=tO.createElement("circle",{cx:"4",cy:"16",r:"2"})),e$||(e$=tO.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)}),rj=["children"],rk=["children"],r_=["children"],rS=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rj);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tO.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),rO=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rk);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eG||(eG=tO.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),rC=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r_);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=tO.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"})),eX||(eX=tO.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),rM=["children"],rA=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rM);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=tO.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"})),eJ||(eJ=tO.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)}),rP=["children"],rT=["children"],rN=["children"],rR=["children"],rD=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rP);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=tO.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"})),e1||(e1=tO.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)}),rL=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rT);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=tO.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),e4||(e4=tO.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"})),e3||(e3=tO.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)}),rF=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rN);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=tO.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)}),rV=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rR);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=tO.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),e8||(e8=tO.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)}),rz=["children"],rI=["children"],rZ=["children"],rB=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rz);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e7||(e7=tO.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)}),rH=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rI);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tO.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)}),rU=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rZ);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),te||(te=tO.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)}),rW=["children"],rq=["children"],r$=["children"],rY=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rW);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=tO.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)}),rG=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rq);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tO.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"})),tr||(tr=tO.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)}),rK=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r$);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=tO.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)}),rX=["children"],rQ=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rX);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=tO.createElement("path",{d:"M8 15H24V17H8z"})),n)}),rJ=["children"],r0=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rJ);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ta||(ta=tO.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)}),r1=["children"],r2=["children"],r4=["children"],r3=["children"],r5=["children"],r6=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r1);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tO.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=tO.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)}),r8=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r2);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tu||(tu=tO.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=tO.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)}),r7=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r4);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tO.createElement("path",{d:"M22 17H24V19H22z"})),tf||(tf=tO.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)}),r9=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r3);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tO.createElement("path",{d:"M22 17H24V19H22z"})),tp||(tp=tO.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=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r5);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=tO.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"})),tv||(tv=tO.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)}),it=["children"],ir=["children"],ii=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,it);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tO.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"})),ty||(ty=tO.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)}),io=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,ir);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tx||(tx=tO.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"})),tb||(tb=tO.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"})),tw||(tw=tO.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)}),ia=n(52322);function is(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ia.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 il(e){let{size:t=24,className:n}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,ia.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 iu(e){let{size:t=24,className:n}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,ia.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 ic(e){let{size:t=24,className:n}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ia.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 id(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ia.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 ih(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,ia.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 ip(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ia.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 im(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,ia.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 iv(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,ia.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 ig(e){let{size:t=24}=e;return(0,ia.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,ia.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,ia.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,ia.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,ia.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,ia.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function iy(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ia.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"})})}},47025:function(e,t,n){"use strict";n.d(t,{BW:function(){return i}});var r=n(2850);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})}n(98537)},96206:function(e,t,n){"use strict";n.d(t,{vW:function(){return o},rN:function(){return l},yF:function(){return s},Vz:function(){return h},bc:function(){return a},qN:function(){return d},ll:function(){return c}}),n(81395),n(18149);var r=n(6391),i=n.n(r);function o(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)),a=n/Math.pow(1e3,o);return a.toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function a(e){return 0===e?"0ms":(e/=1e6)<1e3?" ".concat(Math.floor(100*e)/100,"ms"):(e/=1e3)<60?"".concat(Math.floor(100*e)/100,"s"):"".concat(Math.floor(e/60*100)/100,"m")}function s(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 l(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let u=new r.BigNumber("10").exponentiatedBy(24);function c(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(u).toFixed(t)):new r.BigNumber(e).dividedBy(u)}function d(e){return new r.BigNumber(new r.BigNumber(e).times(u).toFixed(0))}let f={fixed:3,dynamicUnits:!0,hastingUnits:!1};function h(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:o}={...f,...t},a=new r.BigNumber(1e12),s=new r.BigNumber(1e3),l=new r.BigNumber(e),u=new r.BigNumber(e).abs(),d=l.isNegative()?"-":"";if(!i)return"".concat(d).concat(c(u).toFormat(n)," SC");if(u.dividedBy(a).isLessThan(1))return o?"".concat(d).concat(u," H"):"".concat(d,"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=u.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===h.length-1)return"".concat(d).concat(i.toFormat(n)," ").concat(h[e])}return""}},2271: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)},26252: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)},55046: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 x},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(60587),o=n(58839),a=n(26252),s=n(4424),l=n(44673),u=n(75903),c=n(47067),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),t=(0,r.useMemo)(()=>e?new h(e):null,[e]);return t}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 e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],i=Array.isArray(r),o=i?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===r[2]||"oc"===r[2]);a?n[r[0]]=r[1].split("/"):i&&(n[r[0]]=r[1]),n=e(t,n)}return n}(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 x(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)},47067: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)},75903: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 s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=n(7552),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let r=Error(a);r.digest=a+";"+t+";"+e+";"+n;let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(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)},7552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let r=n(2271),i=(0,r.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)},4424: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)},23116: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}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(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)},25146: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(67858),("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)},80920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(43219),i=n(16794),o=i._(n(2784)),a=r._(n(28316)),s=r._(n(37412)),l=n(31918),u=n(97686),c=n(45802);n(84759);let d=n(54365),f=r._(n(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.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 m(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,onLoad:E,onError:j,...k}=e;return o.default.createElement("img",{...k,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&p(e,f,y,x,b,v))},[n,f,y,x,b,j,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,x,b,v)},onError:e=>{w(!0),"empty"!==f&&b(!0),j&&j(e)}})});function g(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||r||u.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:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,x]=(0,o.useState)(!1),[b,w]=(0,o.useState)(!1),{props:E,meta:j}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:b});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...E,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:x,setShowAltText:w,ref:t}),j.priority?o.default.createElement(g,{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)},13814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(43219),i=r._(n(2784)),o=n(31068),a=n(33134),s=n(39585),l=n(51570),u=n(19868),c=n(54365),d=n(60587),f=n(93629),h=n(25146),p=n(10694),m=n(23116),v=new Set;function g(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:x,prefetch:b=null,passHref:w,replace:E,shallow:j,scroll:k,locale:_,onClick:S,onMouseEnter:O,onTouchStart:C,legacyBehavior:M=!1,...A}=e;n=x,M&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let P=i.default.useContext(c.RouterContext),T=i.default.useContext(d.AppRouterContext),N=null!=P?P:T,R=!P,D=!1!==b,L=null===b?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:F,as:V}=i.default.useMemo(()=>{if(!P){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(P,s,!0);return{href:e,as:v?(0,o.resolveHref)(P,v):t||e}},[P,s,v]),z=i.default.useRef(F),I=i.default.useRef(V);M&&(r=i.default.Children.only(n));let Z=M?r&&"object"==typeof r&&r.ref:t,[B,H,U]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(I.current!==V||z.current!==F)&&(U(),I.current=V,z.current=F),B(e),Z&&("function"==typeof Z?Z(e):"object"==typeof Z&&(Z.current=e))},[V,Z,F,U,B]);i.default.useEffect(()=>{N&&H&&D&&g(N,F,V,{locale:_},{kind:L},R)},[V,F,H,_,D,null==P?void 0:P.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof S||S(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,F,V,E,j,k,_,R,D)},onMouseEnter(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(D||!R)&&g(N,F,V,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(D||!R)&&g(N,F,V,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,l.isAbsoluteUrl)(V))q.href=V;else if(!M||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==_?_:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,h.getDomainLocale)(V,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(V,e,null==P?void 0:P.defaultLocale))}return M?i.default.cloneElement(r,q):i.default.createElement("a",{...A,...q},n)}),b=x;("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)},93629: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(30857),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},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let r=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,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,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});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]);let p=(0,r.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("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)},31256:function(e,t,n){"use strict";var r=n(48834).lW;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Head:function(){return y},NextScript:function(){return x},Html:function(){return b},Main:function(){return w},default:function(){return E}});let i=c(n(2784)),o=n(13150),a=n(95383),s=n(82809),l=c(n(10274)),u=n(15333);function c(e){return e&&e.__esModule?e:{default:e}}let d=new Set;function f(e,t,n){let r=(0,a.getPageFiles)(e,"/_app"),i=n?[]:(0,a.getPageFiles)(e,t);return{sharedFiles:r,pageFiles:i,allFiles:[...new Set([...r,...i])]}}function h(e,t){let{assetPrefix:n,buildManifest:r,assetQueryString:o,disableOptimizedLoading:a,crossOrigin:s}=e;return r.polyfillFiles.filter(e=>e.endsWith(".js")&&!e.endsWith(".module.js")).map(e=>i.default.createElement("script",{key:e,defer:!a,nonce:t.nonce,crossOrigin:t.crossOrigin||s,noModule:!0,src:"".concat(n,"/_next/").concat(e).concat(o)}))}function p(e){let{styles:t}=e;if(!t)return null;let n=Array.isArray(t)?t:[];if(t.props&&Array.isArray(t.props.children)){let e=e=>{var t,n;return null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html};t.props.children.forEach(t=>{Array.isArray(t)?t.forEach(t=>e(t)&&n.push(t)):e(t)&&n.push(t)})}return i.default.createElement("style",{"amp-custom":"",dangerouslySetInnerHTML:{__html:n.map(e=>e.props.dangerouslySetInnerHTML.__html).join("").replace(/\/\*# sourceMappingURL=.*\*\//g,"").replace(/\/\*@ sourceURL=.*?\*\//g,"")}})}function m(e,t,n){let{dynamicImports:r,assetPrefix:o,isDevelopment:a,assetQueryString:s,disableOptimizedLoading:l,crossOrigin:u}=e;return r.map(e=>!e.endsWith(".js")||n.allFiles.includes(e)?null:i.default.createElement("script",{async:!a&&l,defer:!l,key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(s),nonce:t.nonce,crossOrigin:t.crossOrigin||u}))}function v(e,t,n){var r;let{assetPrefix:o,buildManifest:a,isDevelopment:s,assetQueryString:l,disableOptimizedLoading:u,crossOrigin:c}=e,d=n.allFiles.filter(e=>e.endsWith(".js")),f=null==(r=a.lowPriorityFiles)?void 0:r.filter(e=>e.endsWith(".js"));return[...d,...f].map(e=>i.default.createElement("script",{key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(l),nonce:t.nonce,async:!s&&u,defer:!u,crossOrigin:t.crossOrigin||c}))}function g(e,t){let{scriptLoader:n,disableOptimizedLoading:r,crossOrigin:o}=e,a=function(e,t){let{assetPrefix:n,scriptLoader:r,crossOrigin:o,nextScriptWorkers:a}=e;if(!a)return null;try{let{partytownSnippet:e}=require("@builder.io/partytown/integration"),a=Array.isArray(t.children)?t.children:[t.children],s=a.find(e=>{var t,n;return!!e&&!!e.props&&(null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html.length)&&"data-partytown-config"in e.props});return i.default.createElement(i.default.Fragment,null,!s&&i.default.createElement("script",{"data-partytown-config":"",dangerouslySetInnerHTML:{__html:'\n partytown = {\n lib: "'.concat(n,'/_next/static/~partytown/"\n };\n ')}}),i.default.createElement("script",{"data-partytown":"",dangerouslySetInnerHTML:{__html:e()}}),(r.worker||[]).map((e,n)=>{let{strategy:r,src:a,children:s,dangerouslySetInnerHTML:l,...u}=e,c={};if(a)c.src=a;else if(l&&l.__html)c.dangerouslySetInnerHTML={__html:l.__html};else if(s)c.dangerouslySetInnerHTML={__html:"string"==typeof s?s:Array.isArray(s)?s.join(""):""};else throw Error("Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script");return i.default.createElement("script",{...c,...u,type:"text/partytown",key:a||n,nonce:t.nonce,"data-nscript":"worker",crossOrigin:t.crossOrigin||o})}))}catch(e){return(0,l.default)(e)&&"MODULE_NOT_FOUND"!==e.code&&console.warn("Warning: ".concat(e.message)),null}}(e,t),s=(n.beforeInteractive||[]).filter(e=>e.src).map((e,n)=>{var a;let{strategy:s,...l}=e;return i.default.createElement("script",{...l,key:l.src||n,defer:null!==(a=l.defer)&&void 0!==a?a:!r,nonce:t.nonce,"data-nscript":"beforeInteractive",crossOrigin:t.crossOrigin||o})});return i.default.createElement(i.default.Fragment,null,a,s)}class y extends i.default.Component{getCssLinks(e){let{assetPrefix:t,assetQueryString:n,dynamicImports:r,crossOrigin:o,optimizeCss:a,optimizeFonts:s}=this.context,l=e.allFiles.filter(e=>e.endsWith(".css")),u=new Set(e.sharedFiles),c=new Set([]),d=Array.from(new Set(r.filter(e=>e.endsWith(".css"))));if(d.length){let e=new Set(l);d=d.filter(t=>!(e.has(t)||u.has(t))),c=new Set(d),l.push(...d)}let f=[];return l.forEach(e=>{let r=u.has(e);a||f.push(i.default.createElement("link",{key:"".concat(e,"-preload"),nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"style",crossOrigin:this.props.crossOrigin||o}));let s=c.has(e);f.push(i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"stylesheet",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),crossOrigin:this.props.crossOrigin||o,"data-n-g":s?void 0:r?"":void 0,"data-n-p":s?void 0:r?void 0:""}))}),s&&(f=this.makeStylesheetInert(f)),0===f.length?null:f}getPreloadDynamicChunks(){let{dynamicImports:e,assetPrefix:t,assetQueryString:n,crossOrigin:r}=this.context;return e.map(e=>e.endsWith(".js")?i.default.createElement("link",{rel:"preload",key:e,href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"script",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||r}):null).filter(Boolean)}getPreloadMainLinks(e){let{assetPrefix:t,assetQueryString:n,scriptLoader:r,crossOrigin:o}=this.context,a=e.allFiles.filter(e=>e.endsWith(".js"));return[...(r.beforeInteractive||[]).map(e=>i.default.createElement("link",{key:e.src,nonce:this.props.nonce,rel:"preload",href:e.src,as:"script",crossOrigin:this.props.crossOrigin||o})),...a.map(e=>i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"script",crossOrigin:this.props.crossOrigin||o}))]}getBeforeInteractiveInlineScripts(){let{scriptLoader:e}=this.context,{nonce:t,crossOrigin:n}=this.props;return(e.beforeInteractive||[]).filter(e=>!e.src&&(e.dangerouslySetInnerHTML||e.children)).map((e,r)=>{let{strategy:o,children:a,dangerouslySetInnerHTML:s,src:l,...u}=e,c="";return s&&s.__html?c=s.__html:a&&(c="string"==typeof a?a:Array.isArray(a)?a.join(""):""),i.default.createElement("script",{...u,dangerouslySetInnerHTML:{__html:c},key:u.id||r,nonce:t,"data-nscript":"beforeInteractive",crossOrigin:n||void 0})})}getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}makeStylesheetInert(e){return i.default.Children.map(e,e=>{var t,n;if((null==e?void 0:e.type)==="link"&&(null==e?void 0:null==(t=e.props)?void 0:t.href)&&o.OPTIMIZED_FONT_PROVIDERS.some(t=>{var n,r;let{url:i}=t;return null==e?void 0:null==(r=e.props)?void 0:null==(n=r.href)?void 0:n.startsWith(i)})){let t={...e.props||{},"data-href":e.props.href,href:void 0};return i.default.cloneElement(e,t)}if(null==e?void 0:null==(n=e.props)?void 0:n.children){let t={...e.props||{},children:this.makeStylesheetInert(e.props.children)};return i.default.cloneElement(e,t)}return e}).filter(Boolean)}render(){var e,t;let{styles:r,ampPath:o,inAmpMode:a,hybridAmp:s,canonicalBase:l,__NEXT_DATA__:u,dangerousAsPath:c,headTags:d,unstable_runtimeJS:h,unstable_JsPreload:m,disableOptimizedLoading:v,optimizeCss:g,optimizeFonts:y,assetPrefix:x,nextFontManifest:b}=this.context,w=!1===h,E=!1===m||!v;this.context.docComponentsRendered.Head=!0;let{head:j}=this.context,k=[],_=[];j&&(j.forEach(e=>{let t;this.context.strictNextHead&&(t=i.default.createElement("meta",{name:"next-head",content:"1"})),e&&"link"===e.type&&"preload"===e.props.rel&&"style"===e.props.as?(t&&k.push(t),k.push(e)):e&&(t&&("meta"!==e.type||!e.props.charSet)&&_.push(t),_.push(e))}),j=k.concat(_));let S=i.default.Children.toArray(this.props.children).filter(Boolean);y&&!a&&(S=this.makeStylesheetInert(S));let O=!1,C=!1;j=i.default.Children.map(j||[],e=>{if(!e)return e;let{type:t,props:n}=e;if(a){let r="";if("meta"===t&&"viewport"===n.name?r='name="viewport"':"link"===t&&"canonical"===n.rel?C=!0:"script"===t&&(n.src&&-1>n.src.indexOf("ampproject")||n.dangerouslySetInnerHTML&&(!n.type||"text/javascript"===n.type))&&(r="{r+=" ".concat(e,'="').concat(n[e],'"')}),r+="/>"),r)return console.warn('Found conflicting amp tag "'.concat(e.type,'" with conflicting prop ').concat(r," in ").concat(u.page,". https://nextjs.org/docs/messages/conflicting-amp-tag")),null}else"link"===t&&"amphtml"===n.rel&&(O=!0);return e});let M=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,a),A=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return{preconnect:null,preload:null};let r=e.pages["/_app"],o=e.pages[t],a=[...null!=r?r:[],...null!=o?o:[]],s=!!(0===a.length&&(r||o));return{preconnect:s?i.default.createElement("link",{"data-next-font":e.pagesUsingSizeAdjust?"size-adjust":"",rel:"preconnect",href:"/",crossOrigin:"anonymous"}):null,preload:a?a.map(e=>{let t=/\.(woff|woff2|eot|ttf|otf)$/.exec(e)[1];return i.default.createElement("link",{key:e,rel:"preload",href:"".concat(n,"/_next/").concat(encodeURI(e)),as:"font",type:"font/".concat(t),crossOrigin:"anonymous","data-next-font":e.includes("-s")?"size-adjust":""})}):null}}(b,c,x);return i.default.createElement("head",function(e){let{crossOrigin:t,nonce:n,...r}=e;return r}(this.props),this.context.isDevelopment&&i.default.createElement(i.default.Fragment,null,i.default.createElement("style",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0,dangerouslySetInnerHTML:{__html:"body{display:none}"}}),i.default.createElement("noscript",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0},i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{display:block}"}}))),j,this.context.strictNextHead?null:i.default.createElement("meta",{name:"next-head-count",content:i.default.Children.count(j||[]).toString()}),S,y&&i.default.createElement("meta",{name:"next-font-preconnect"}),A.preconnect,A.preload,a&&i.default.createElement(i.default.Fragment,null,i.default.createElement("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"}),!C&&i.default.createElement("link",{rel:"canonical",href:l+n(79505).cleanAmpPath(c)}),i.default.createElement("link",{rel:"preload",as:"script",href:"https://cdn.ampproject.org/v0.js"}),i.default.createElement(p,{styles:r}),i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}"}}),i.default.createElement("noscript",null,i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}"}})),i.default.createElement("script",{async:!0,src:"https://cdn.ampproject.org/v0.js"})),!a&&i.default.createElement(i.default.Fragment,null,!O&&s&&i.default.createElement("link",{rel:"amphtml",href:l+(o||"".concat(c).concat(c.includes("?")?"&":"?","amp=1"))}),this.getBeforeInteractiveInlineScripts(),!g&&this.getCssLinks(M),!g&&i.default.createElement("noscript",{"data-n-css":null!==(e=this.props.nonce)&&void 0!==e?e:""}),!w&&!E&&this.getPreloadDynamicChunks(),!w&&!E&&this.getPreloadMainLinks(M),!v&&!w&&this.getPolyfillScripts(),!v&&!w&&this.getPreNextScripts(),!v&&!w&&this.getDynamicChunks(M),!v&&!w&&this.getScripts(M),g&&this.getCssLinks(M),g&&i.default.createElement("noscript",{"data-n-css":null!==(t=this.props.nonce)&&void 0!==t?t:""}),this.context.isDevelopment&&i.default.createElement("noscript",{id:"__next_css__DO_NOT_USE__"}),r||null),i.default.createElement(i.default.Fragment,{},...d||[]))}}y.contextType=u.HtmlContext;class x extends i.default.Component{getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}static getInlineScriptSource(e){let{__NEXT_DATA__:t,largePageDataBytes:i}=e;try{let o=JSON.stringify(t);if(d.has(t.page))return(0,s.htmlEscapeJsonString)(o);let a=r.from(o).byteLength,l=n(16549).Z;return i&&a>i&&(d.add(t.page),console.warn('Warning: data for page "'.concat(t.page,'"').concat(t.page===e.dangerousAsPath?"":' (path "'.concat(e.dangerousAsPath,'")')," is ").concat(l(a)," which exceeds the threshold of ").concat(l(i),", this amount of data can reduce performance.\nSee more info here: https://nextjs.org/docs/messages/large-page-data"))),(0,s.htmlEscapeJsonString)(o)}catch(e){if((0,l.default)(e)&&-1!==e.message.indexOf("circular structure"))throw Error('Circular structure in "getInitialProps" result of page "'.concat(t.page,'". https://nextjs.org/docs/messages/circular-structure'));throw e}}render(){let{assetPrefix:e,inAmpMode:t,buildManifest:n,unstable_runtimeJS:r,docComponentsRendered:o,assetQueryString:a,disableOptimizedLoading:s,crossOrigin:l}=this.context,u=!1===r;if(o.NextScript=!0,t)return null;let c=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,t);return i.default.createElement(i.default.Fragment,null,!u&&n.devFiles?n.devFiles.map(t=>i.default.createElement("script",{key:t,src:"".concat(e,"/_next/").concat(encodeURI(t)).concat(a),nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l})):null,u?null:i.default.createElement("script",{id:"__NEXT_DATA__",type:"application/json",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l,dangerouslySetInnerHTML:{__html:x.getInlineScriptSource(this.context)}}),s&&!u&&this.getPolyfillScripts(),s&&!u&&this.getPreNextScripts(),s&&!u&&this.getDynamicChunks(c),s&&!u&&this.getScripts(c))}}function b(e){let{inAmpMode:t,docComponentsRendered:n,locale:r,scriptLoader:o,__NEXT_DATA__:a}=(0,u.useHtmlContext)();return n.Html=!0,!function(e,t,n){var r,o,a,s;if(!n.children)return;let l=[],u=Array.isArray(n.children)?n.children:[n.children],c=null==(o=u.find(e=>e.type===y))?void 0:null==(r=o.props)?void 0:r.children,d=null==(s=u.find(e=>"body"===e.type))?void 0:null==(a=s.props)?void 0:a.children,f=[...Array.isArray(c)?c:[c],...Array.isArray(d)?d:[d]];i.default.Children.forEach(f,t=>{var n;if(t&&(null==(n=t.type)?void 0:n.__nextScript)){if("beforeInteractive"===t.props.strategy){e.beforeInteractive=(e.beforeInteractive||[]).concat([{...t.props}]);return}if(["lazyOnload","afterInteractive","worker"].includes(t.props.strategy)){l.push(t.props);return}}}),t.scriptLoader=l}(o,a,e),i.default.createElement("html",{...e,lang:e.lang||r||void 0,amp:t?"":void 0,"data-ampdevmode":void 0})}function w(){let{docComponentsRendered:e}=(0,u.useHtmlContext)();return e.Main=!0,i.default.createElement("next-js-internal-body-render-target",null)}x.contextType=u.HtmlContext;class E extends i.default.Component{static getInitialProps(e){return e.defaultGetInitialProps(e)}render(){return i.default.createElement(b,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(x,null)))}}E[o.NEXT_BUILTIN_DOCUMENT]=function(){return i.default.createElement(b,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(x,null)))}},31918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(84759);let r=n(69933),i=n(97686);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:x=!1,style:b,onLoad:w,onLoadingComplete:E,placeholder:j="empty",blurDataURL:k,fetchPriority:_,layout:S,objectFit:O,objectPosition:C,lazyBoundary:M,lazyRoot:A,...P}=e,{imgConf:T,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=T||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 F=P.loader||D;delete P.loader,delete P.srcSet;let V="__next_img_default"in F;if(V){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=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(S){"fill"===S&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[S];t&&!d&&(d=t)}let z="",I=a(g),Z=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,z=e.src,!x){if(I||Z){if(I&&!Z){let t=I/e.width;Z=Math.round(e.height*t)}else if(!I&&Z){let t=Z/e.height;I=Math.round(e.width*t)}}else I=e.width,Z=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),V&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(_="high");let H=a(v),U=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:C}:{},N?{}:{color:"transparent"},b),W=R||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:I,heightInt:Z,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"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,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:I,quality:H,sizes:d,loader:F}),Y={...P,loading:B?"lazy":p,fetchPriority:_,width:I,height:Z,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},G={unoptimized:f,priority:h,placeholder:j,fill:x};return{props:Y,meta:G}}},15333: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,{HtmlContext:function(){return i},useHtmlContext:function(){return o}});let r=n(2784),i=(0,r.createContext)(void 0);function o(){let e=(0,r.useContext)(i);if(!e)throw Error(" should not be imported outside of pages/_document.\nRead more: https://nextjs.org/docs/messages/no-document-import-in-page");return e}},69933: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}})},81963: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,{default:function(){return u},unstable_getImgProps:function(){return l}});let r=n(43219),i=n(31918),o=n(84759),a=n(80920),s=r._(n(2088)),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},2088: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},72190:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePagePath",{enumerable:!0,get:function(){return a}});let r=n(95523),i=n(17428),o=n(51570);function a(e){let t=/^\/index(\/|$)/.test(e)&&!(0,i.isDynamicRoute)(e)?"/index"+e:"/"===e?"/index":(0,r.ensureLeadingSlash)(e);{let{posix:e}=n(15153),r=e.normalize(t);if(r!==t)throw new o.NormalizeError("Requested and resolved page mismatch: "+t+" "+r)}return t}},44673: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 o},useServerInsertedHTML:function(){return a}});let r=n(16794),i=r._(n(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},276:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},35957:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},15153:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));return(i=n(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){r=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(114);e.exports=i}()},16549:function(e,t){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return i}});let n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=(e,t)=>{let n=e;return"string"==typeof t?n=e.toLocaleString(t):!0===t&&(n=e.toLocaleString()),n};function i(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);if((t=Object.assign({},t)).signed&&0===e)return" 0 B";let i=e<0,o=i?"-":t.signed?"+":"";if(i&&(e=-e),e<1){let n=r(e,t.locale);return o+n+" B"}let a=Math.min(Math.floor(Math.log10(e)/3),n.length-1);e=Number((e/Math.pow(1e3,a)).toPrecision(3));let s=r(e,t.locale),l=n[a];return o+s+" "+l}},95383:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPageFiles",{enumerable:!0,get:function(){return o}});let r=n(7005),i=n(72190);function o(e,t){let n=(0,r.denormalizePagePath)((0,i.normalizePagePath)(t));return e.pages[n]||(console.warn(`Could not find files for ${n} in .next/build-manifest.json`),[])}},82809: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,{ESCAPE_REGEX:function(){return r},htmlEscapeJsonString:function(){return i}});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g;function i(e){return e.replace(r,e=>n[e])}},79505: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,{isBlockedPage:function(){return i},cleanAmpPath:function(){return o},debounce:function(){return a}});let r=n(13150);function i(e){return r.BLOCKED_PAGES.includes(e)}function o(e){return e.match(/\?amp=(y|yes|true|1)/)&&(e=e.replace(/\?amp=(y|yes|true|1)&?/,"?")),e.match(/&=(y|yes|true|1)/)&&(e=e.replace(/&=(y|yes|true|1)/,"")),e=e.replace(/\?$/,"")}function a(e,t,n=1/0){let r,i,o;let a=0,s=0;function l(){let u=Date.now(),c=s+t-u;c<=0||a+n>=u?(r=void 0,e.apply(o,i)):r=setTimeout(l,c)}return function(...e){i=e,o=this,s=Date.now(),void 0===r&&(a=s,r=setTimeout(l,t))}}},331:function(e,t,n){n(31256)},97729:function(e,t,n){e.exports=n(37412)},96577:function(e,t,n){e.exports=n(81963)},39097:function(e,t,n){e.exports=n(13814)},82876:function(e,t,n){e.exports=n(55046)},5632:function(e,t,n){e.exports=n(60222)},24470:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},34406: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)},88965:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r,i,o,a,s,l,u=function(){return(u=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"==typeof SuppressedError&&SuppressedError;var d=n(2784),f="right-scroll-bar-position",h="width-before-scroll-bar",p=(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=u({async:!0,ssr:!1},r),s),m=function(){},v=d.forwardRef(function(e,t){var n,r,i,o=d.useRef(null),a=d.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),s=a[0],l=a[1],f=e.forwardProps,h=e.children,v=e.className,g=e.removeScrollBar,y=e.enabled,x=e.shards,b=e.sideCar,w=e.noIsolation,E=e.inert,j=e.allowPinchZoom,k=e.as,_=void 0===k?"div":k,S=c(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),O=(n=[o,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,d.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=u(u({},S),s);return d.createElement(d.Fragment,null,y&&d.createElement(b,{sideCar:p,removeScrollBar:g,shards:x,noIsolation:w,inert:E,setCallbacks:l,allowPinchZoom:!!j,lockRef:o}),f?d.cloneElement(d.Children.only(h),u(u({},C),{ref:O})):d.createElement(_,u({},C,{className:v,ref:O}),h))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:h,zeroRight:f};var g=function(e){var t=e.sideCar,n=c(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 d.createElement(r,u({},n))};g.isSideCarExport=!0;var y=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)}}},x=function(){var e=y();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=x();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},E=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[E(n),E(r),E(i)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;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])}},_=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(f," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(h," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n right: 0 ").concat(r,";\n }\n \n .").concat(h," .").concat(h," {\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=d.useMemo(function(){return k(i)},[i]);return d.createElement(_,{styles:S(o,!t,i,n?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var M=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",M,M),window.removeEventListener("test",M,M)}catch(e){C=!1}var A=!!C&&{passive:!1},P=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)},N=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),R(e,n)){var r=D(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},R=function(e,t){return"v"===e?P(t):T(t)},D=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},L=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=D(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&R(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},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},I=0,Z=[],B=(p.useMedium(function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),i=d.useState(I++)[0],o=d.useState(function(){return b()})[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;iMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=N(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=N(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 L(h,t,e,"h"===h?l:u,!0)},[]),l=d.useCallback(function(e){if(Z.length&&Z[Z.length-1]===o){var n="deltaY"in e?V(e):F(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(z).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),u=d.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)},[]),c=d.useCallback(function(e){n.current=F(e),r.current=void 0},[]),f=d.useCallback(function(t){u(t.type,V(t),t.target,s(t,e.lockRef.current))},[]),h=d.useCallback(function(t){u(t.type,F(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return Z.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,A),document.addEventListener("touchmove",l,A),document.addEventListener("touchstart",c,A),function(){Z=Z.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,A),document.removeEventListener("touchmove",l,A),document.removeEventListener("touchstart",c,A)}},[]);var p=e.removeScrollBar,m=e.inert;return d.createElement(d.Fragment,null,m?d.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?d.createElement(O,{gapMode:"margin"}):null)}),g),H=d.forwardRef(function(e,t){return d.createElement(v,u({},e,{ref:t,sideCar:B}))});H.classNames=v.classNames;var U=H},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(34406);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";/** +***************************************************************************** */function EN(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())})}function ER(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||E7,je=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,jt=/\/\*[^]*?\*\/|\s\s+|\n/g,jn=(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]?jn(a,o):o+"{"+jn(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=jn(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+=jn.p?jn.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},jr={},ji=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+ji(e[n]);return t}return e},jo=(e,t,n,r,i)=>{var o;let a=ji(e),s=jr[a]||(jr[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!jr[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=je.exec(e.replace(jt,""));)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);jr[s]=jn(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=jr[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},ja=(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?"":jn(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function js(e){let t=this||{},n=e.call?e(t.p):e;return jo(n.unshift?n.raw?ja(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,E9(t.target),t.g,t.o,t.k)}js.bind({g:1});let jl,ju,jc,jd=js.bind({k:1});function jf(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:ju&&ju()},s),n.o=/ *go\d+/.test(l),s.className=js.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),jc&&u[0]&&jc(s),jl(u,s)}return t?t(i):i}}function jh(){return(jh=Object.assign||function(e){for(var t=1;t-1&&jE.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return jh({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||jS[t.type],style:jh({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return jh({},n,{toasts:i})},jO=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),jh({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)||jv()}));return jk({type:y.UPSERT_TOAST,toast:i}),i.id}},jC=function(e,t){return jO("blank")(e,t)};jC.error=jO("error"),jC.success=jO("success"),jC.loading=jO("loading"),jC.custom=jO("custom"),jC.dismiss=function(e){jk({type:y.DISMISS_TOAST,toastId:e})},jC.remove=function(e){return jk({type:y.REMOVE_TOAST,toastId:e})},jC.promise=function(e,t,n){var r=jC.loading(t.loading,jh({},n,null==n?void 0:n.loading));return e.then(function(e){return jC.success(jm(t.success,e),jh({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){jC.error(jm(t.error,e),jh({id:r},n,null==n?void 0:n.error))}),e};var jM=function(e){var t=j_(e),n=t.toasts,r=t.pausedAt;(0,b.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&&jC.dismiss(t.id);return}return setTimeout(function(){return jC.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,b.useMemo)(function(){return{startPause:function(){jk({type:y.START_PAUSE,time:Date.now()})},endPause:function(){r&&jk({type:y.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return jk({type:y.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return j9=function(){return e},e}c=b.createElement,jn.p=void 0,jl=c,ju=void 0,jc=void 0;var ke=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return jh({left:0,right:0,display:"flex",position:"absolute",transition:jg()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},kt=js(j9()),kn=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=jM(i),c=u.toasts,d=u.handlers;return(0,b.createElement)("div",{style:jh({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=ke(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,b.createElement)("div",{ref:l,className:e.visible?kt:"",key:e.id,style:s},"custom"===e.type?jm(e.message,e):a?a(e):(0,b.createElement)(j7,{toast:e,position:i}))}))};let kr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jC((0,x.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),ka(t))},ki=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jC.success((0,x.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),ka(t))},ko=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jC.error((0,x.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),ka(t))};function ka(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,ea.cx)(tY(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(s6.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(s6.Jsc,{className:"w-5 text-red-600"})})},...t}}function ks(){return(0,x.jsx)(kn,{toastOptions:ka()})}let kl=(e,t)=>{let n=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";kr(n),function(e){EN(this,void 0,void 0,function(){return ER(this,function(t){var n;if(EJ)return ED("Using `navigator.clipboard.writeText()`."),[2,EJ(e)];if(!function(e){return EN(this,void 0,void 0,function(){var t;return ER(this,function(n){var r,i,o,a,s,l,u,c;if(t="text/plain"in e,"undefined"==typeof ClipboardEvent&&void 0!==E1.clipboardData&&void 0!==E1.clipboardData.setData){if(!t)throw Error("No `text/plain` value was specified.");if(r=e["text/plain"],E1.clipboardData.setData("Text",r))return[2,!0];throw Error("Copying failed, possibly because the user rejected it.")}return E3(e)?(ED("regular execCopy worked"),[2,!0]):navigator.userAgent.indexOf("Edge")>-1?(ED('UA "Edge" => assuming success'),[2,!0]):E5(document.body,e)?(ED("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=E5(i,e),document.body.removeChild(i),o)?(ED("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],ED("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(ED("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),E6(u),c=document.execCommand("copy"),E8(),document.body.removeChild(s),c)?(ED("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((n={})["text/plain"]=e,n)))throw Error("writeText() failed");return[2]})})}(e)};function ku(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function kc(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^key:/,"")}function kd(e,t,n){return t?"".concat(e," ").concat(ku(t,n)):"".concat(e)}function kf(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 kh={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",ip:"IP"},kp={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 km(e){return e?kh[e]:void 0}function kv(e){return e?kp[e]:void 0}function kg(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d}=e,f=i||km(r),h=a||("ip"===r?20:12),p=kc(t),m=n||p,v="".concat(null==m?void 0:m.slice(0,h)).concat(((null==m?void 0:m.length)||0)>h?"...":"");return(0,x.jsxs)("div",{className:(0,ea.cx)("flex items-center",d),children:[o?(0,x.jsx)(cK,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}):(0,x.jsx)(tq,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}),(0,x.jsx)("div",{className:"ml-1 flex items-center",children:(0,x.jsx)(s5,{variant:"ghost",size:"none",onClick:e=>{e.stopPropagation(),kl(p,f)},children:(0,x.jsx)(tq,{color:c,children:(0,x.jsx)(s6.olJ,{className:"10"===s?"scale-75":"scale-90"})})})})]})}function ky(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,m0.yF)(String(t),{units:"SF"});return(0,x.jsx)(s4,{content:(i?"".concat(i," "):"")+a,children:(0,x.jsxs)(tq,{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 kx(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,x.jsxs)(tq,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:["change"===o?"".concat(f).concat((0,m0.Vz)(t.absoluteValue(),{fixed:s,dynamicUnits:l})):(0,m0.Vz)(t,{fixed:s,dynamicUnits:l,hastingUnits:u}),(0,x.jsx)(tq,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:c?"".concat(c):""})]});return d?(0,x.jsx)(s4,{content:(i?"".concat(i," "):"")+(0,m0.Vz)(t,{fixed:16,dynamicUnits:!1}),children:p}):p}function kb(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,fv.BW)(),{settings:{currency:d}}=(0,fm.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(fd())(c.data.rates.sc[d.id]||1).times(t).div(1e24),m=void 0!==s?s:d.fixed,v=(0,x.jsx)(tq,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:"".concat(f).concat(d.prefix).concat(kw(p.absoluteValue(),m))});return u?(0,x.jsx)(s4,{content:(o?"".concat(o," "):"")+"".concat(f).concat(d.prefix).concat(kw(p.absoluteValue(),l)),children:v}):v}function kw(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 kE(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,fm.Hv)(),v=(0,fv.BW)(),g=(0,b.useMemo)(()=>(0,x.jsx)(kx,{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,b.useMemo)(()=>(0,x.jsx)(kb,{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,x.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[g,y]}):g:"bothPreferFiat"===m?h?(0,x.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[y,g]}):y:g:g}function kj(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,x.jsx)(s4,{content:(i?"".concat(i," "):"")+s(t),children:(0,x.jsx)(tq,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var kk=n(61258),kS=n.n(kk);function k_(e){let{skeletonCount:t=10}=e;return(0,x.jsx)(x.Fragment,{children:kS()(t,e=>(0,x.jsxs)("div",{className:(0,ea.cx)("relative flex gap-4 p-3.5",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,x.jsx)(f_,{className:"w-[60px] h-[50px]"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,x.jsx)(f_,{className:"w-[90%] h-[20px]"}),(0,x.jsx)(f_,{className:"w-[140px] h-[14px]"})]})]},e))})}var kO=n(66700),kC=n(19785);function kM(e,t){(0,kC.Z)(2,arguments);var n=(0,kO.Z)(e),r=(0,kO.Z)(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var kA={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},kT={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 kP(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 kN={date:kP({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:kP({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:kP({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function kD(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 kL(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:kN,formatRelative:function(e,t,n,r){return kR[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:kD({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:kD({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:kD({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:kD({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:kD({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:(d={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(d.matchPattern);if(!n)return null;var r=n[0],i=e.match(d.parsePattern);if(!i)return null;var o=d.valueCallback?d.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:kL({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:kL({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:kL({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:kL({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:kL({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 kV(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 kz=n(23779),kI=n.n(kz);function kZ(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,x.jsx)(lc,{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,x.jsx)(cK,{href:i,underline:"none",children:s}),u=l||s;return t?(0,x.jsx)(s4,{content:n||km(t),children:(0,x.jsx)("div",{className:"",children:u})}):u}function kB(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,x.jsxs)("div",{className:(0,ea.cx)("flex gap-4 p-4",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,x.jsx)(kZ,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function kH(e){let t=e.sc,n=e.sf,r=e.hash&&(0,x.jsx)(kg,{value:e.hash,type:e.type,label:e.label,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&kv(e.txType)||km(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?kI()(i):i;return(0,x.jsx)(kB,{...e,children:(0,x.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,x.jsx)(tq,{color:"subtle",weight:"semibold",children:(0,x.jsx)(cK,{href:e.blockHref,underline:"none",children:(0,m0.yF)(e.height)})}),(0,x.jsx)(tq,{weight:"medium",children:o||r})]}),(0,x.jsx)("div",{className:"flex-1"}),!!t&&(0,x.jsx)(kE,{variant:e.scVariant,value:t}),!!n&&(0,x.jsx)(ky,{variant:e.sfVariant,value:n})]}),(0,x.jsxs)("div",{className:"flex justify-between w-full",children:[(0,x.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tq,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,x.jsx)(tq,{color:"verySubtle",children:(0,x.jsx)(s6.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,x.jsx)(tq,{color:"subtle",children:function(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,kC.Z)(2,arguments);var a=o.locale||kF;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=kM(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,kO.Z)(t),r=(0,kO.Z)(e)):(n=(0,kO.Z)(e),r=(0,kO.Z)(t));var u=function(e,t,n){(0,kC.Z)(2,arguments);var r,i=function(e,t){return(0,kC.Z)(2,arguments),(0,kO.Z)(e).getTime()-(0,kO.Z)(t).getTime()}(e,t)/1e3;return((r=null==n?void 0:n.roundingMethod)?kA[r]:kA.trunc)(i)}(r,n),c=Math.round((u-(kV(r)-kV(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){var d=Math.round(c/60);return a.formatDistance("aboutXHours",d,l)}if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200){var f=Math.round(c/1440);return a.formatDistance("xDays",f,l)}if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){(0,kC.Z)(2,arguments);var n,r=(0,kO.Z)(e),i=(0,kO.Z)(t),o=kM(r,i),a=Math.abs(function(e,t){(0,kC.Z)(2,arguments);var n=(0,kO.Z)(e),r=(0,kO.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=kM(r,i)===-o;(function(e){(0,kC.Z)(1,arguments);var t=(0,kO.Z)(e);return(function(e){(0,kC.Z)(1,arguments);var t=(0,kO.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,kC.Z)(1,arguments);var t=(0,kO.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,kO.Z)(e))&&1===a&&1===kM(e,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}(r,n))<12){var h=Math.round(c/43200);return a.formatDistance("xMonths",h,l)}var p=i%12,m=Math.floor(i/12);return p<3?a.formatDistance("aboutXYears",m,l):p<9?a.formatDistance("overXYears",m,l):a.formatDistance("almostXYears",m+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function kU(e){let{title:t,actions:n,entities:r,emptyState:i,emptyMessage:o,skeletonCount:a=10,children:s}=e;return(0,x.jsx)(tG,{children:(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||n)&&(0,x.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,x.jsx)(cz,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,x.jsx)("div",{className:"flex-1"}),n]}),(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(null==r?void 0:r.length)===0&&(i||(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center justify-center h-[84px]",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,x.jsx)(tq,{size:"18",color:"subtle",children:o||"No results"})})),s||(null==r?void 0:r.map((e,t)=>(0,x.jsx)(kH,{...e},e.hash||e.label||t)))||(0,x.jsx)(k_,{skeletonCount:a})]})]})})}function kW(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,x.jsx)(tq,{color:"subtle",size:"12",className:"h-6",children:d});return(0,x.jsx)(tG,{children:(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,x.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,x.jsx)(tq,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?kI()(t):t}),i]}),(0,x.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,x.jsx)(f_,{className:"h-12 w-[150px]"}):(0,x.jsxs)(x.Fragment,{children:[void 0!==u&&(0,x.jsx)(kE,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,x.jsx)(ky,{scaleSize:h,variant:"value",value:c}),n&&(r?(0,x.jsx)(kg,{scaleSize:h,label:km(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,x.jsx)(tq,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,x.jsx)(kg,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,x.jsx)(tq,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,x.jsx)("div",{className:"mt-1",children:p?(0,x.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,x.jsx)(f_,{className:"h-4 w-[100px]"})}):f?(0,x.jsx)(s4,{content:f,children:v}):v}):null]})]})})})}function kq(e){let{title:t,actions:n,name:r}=e;return(0,x.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,x.jsx)(cY,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function k$(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,x.jsx)(tq,{size:"14",color:"red",children:o}):null}function kY(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,x.jsxs)("div",{className:(0,ea.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,x.jsx)(kq,{name:i,title:n,actions:r}),(0,x.jsx)(k$,{form:t,name:i})]}):null}function kG(e){let{children:t,...n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(kY,{...n}),t]})}function kX(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(s5,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,x.jsx)(EA,{}):i})})}function kK(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,x.jsx)(k2,{formik:t,title:n,name:r,children:"number"===g?(0,x.jsx)(kJ,{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,x.jsx)(k0,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,x.jsx)(kQ,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function kQ(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,x.jsx)(dJ,{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 kJ(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,x.jsx)(fh,{id:n,units:r,name:n,placeholder:new(fd())(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 k0(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,x.jsx)(fy,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fd())(t.values[n]),placeholder:new(fd())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function k1(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,x.jsxs)("div",{className:(0,ea.cx)("flex justify-between items-center gap-4",s),children:[i?(0,x.jsx)(cY,{htmlFor:o,children:i}):(0,x.jsx)("div",{}),l&&(0,x.jsx)(tq,{size:"14",color:"red",children:u})]})}function k2(e){let{children:t,...n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(k1,{...n}),t]})}function k4(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,x.jsxs)(x.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,x.jsx)(tq,{color:"red",children:n.status.error}),(0,x.jsx)(s5,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,x.jsx)(EA,{}):a})]})}function k3(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==n?void 0:n.length)||(m="skeleton"),(null==n?void 0:n.length)&&(m="currentData");let v=(0,b.useCallback)((e,n,r)=>(0,ea.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]),g=(0,b.useCallback)((e,t)=>(0,ea.cx)("flex items-center",t),[]);return(0,x.jsxs)(tG,{children:[(0,x.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,x.jsx)("thead",{className:(0,ea.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,x.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,x.jsx)("th",{className:(0,ea.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,x.jsx)("div",{className:(0,ea.cx)("overflow-hidden","py-3"),children:(0,x.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,ea.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,x.jsx)(s4,{content:u,children:(0,x.jsxs)(tq,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,x.jsx)("div",{children:r}):null,(0,x.jsx)(tq,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,x.jsx)(tq,{color:"contrast",children:"asc"===o?(0,x.jsx)(s6.kqg,{className:"scale-75"}):(0,x.jsx)(s6.EMN,{className:"scale-75"})}),f&&!h&&(0,x.jsx)(tq,{color:"verySubtle",children:(0,x.jsx)(s6.kqg,{className:"scale-75"})})]})})},n)})})}),(0,x.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,x.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:n,summary:r,contentClassName:i,cellClassName:o}=e;return(0,x.jsx)("td",{className:v(t,o,!1),children:(0,x.jsx)("div",{className:g(t,i),children:r&&r()})},n)})}),"currentData"===m&&(null==n?void 0:n.map(e=>(0,x.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,ea.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,n)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,x.jsx)("td",{className:(0,ea.cx)(v(n,s,!1),h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,x.jsx)("div",{className:(0,ea.cx)(g(n,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,x.jsx)(o,{data:e,context:r})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&kS()(c).map(e=>(0,x.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,x.jsx)("td",{className:v(t,i,!1),children:(0,x.jsx)("div",{className:(0,ea.cx)(g(t,r),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===m&&f]})}var k5=n(5632);function k6(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,k5.useRouter)();return(0,x.jsxs)(lg,{children:[(0,x.jsx)(s5,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,x.jsx)("div",{className:"flex scale-[0.65]",children:(0,x.jsx)(s6.XJM,{})})}),(0,x.jsx)(s5,{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,x.jsx)(s6.bdU,{})}),(0,x.jsx)(s5,{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,x.jsx)(EA,{className:"px-2"}):"No results"}),(0,x.jsx)(s5,{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,x.jsx)(s6.VUy,{})}),(0,x.jsx)(s5,{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,x.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,x.jsx)(s6.RRj,{})})})]})}function k8(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.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,x.jsx)(tq,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,x.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,x.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:n}),(0,x.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,x.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 k7=("string"==typeof(f={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:f}:f).src;function k9(e){let{children:t}=e;return(0,x.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,x.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(k7,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var Se=n(97729),St=n.n(Se);function Sn(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,x.jsxs)(St(),{children:[(0,x.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,x.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,x.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,x.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,x.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,x.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,x.jsx)("title",{children:i})]})}function Sr(e){let{appName:t,title:n,children:r}=e;return(0,x.jsxs)("div",{className:"h-screen",children:[(0,x.jsx)(Sn,{appName:t,title:n}),r]})}function Si(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,x.jsxs)(Sr,{appName:t,title:n,children:[(0,x.jsx)(k9,{}),(0,x.jsx)("div",{className:"flex h-full",children:(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(k8,{nav:i,actions:o}),(0,x.jsx)("div",{className:"flex-1",children:(0,x.jsx)(lx,{className:"h-full",children:r})})]})})]})}function So(e){let{side:t,balanceSc:n,children:r}=e;return n?(0,x.jsx)(s4,{side:t,content:(0,x.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"spendable"}),(0,x.jsx)(tq,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kE,{displayBoth:!0,variant:"value",value:n.spendable})})]}),(0,x.jsx)(cb,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"confirmed"}),(0,x.jsx)(tq,{color:"subtle",children:"All confirmed outputs."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kE,{displayBoth:!0,variant:"value",value:n.confirmed})})]}),(0,x.jsx)(cb,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"unconfirmed"}),(0,x.jsx)(tq,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kE,{displayBoth:!0,variant:"value",value:n.unconfirmed})})]})]}),children:(0,x.jsx)("div",{children:r})}):null}function Sa(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;if(!t)return null;let i=(0,x.jsx)(kE,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return n?(0,x.jsx)(So,{side:"right",balanceSc:t,children:i}):(0,x.jsx)(s4,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,x.jsx)("div",{children:i})})}var Ss=n(82876);function Sl(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,Ss.usePathname)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,x.jsx)(cK,{href:r,className:"no-underline",children:(0,x.jsx)(s4,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(s5,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,x.jsx)(s4,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(s5,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function Su(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,x.jsx)(Sl,{title:"Wallet",route:r.wallet.view,children:(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,x.jsx)(s6.oaN,{}),n&&t&&(0,x.jsx)(Sa,{isSynced:n,balanceSc:t})]})})}function Sc(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,x.jsx)(tG,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,x.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,x.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,x.jsx)(cJ,{size:30})}),(0,x.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,x.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,x.jsx)("div",{className:"flex-1"}),(0,x.jsx)(cb,{className:"w-full"}),i&&(0,x.jsx)(Su,{routes:t,isSynced:r,walletBalanceSc:o}),(0,x.jsx)(Sl,{title:"Blockchain node",route:t.node.index,children:(0,x.jsx)(s6.kBK,{})}),(0,x.jsx)(Sl,{title:"App preferences",onClick:()=>s(),children:(0,x.jsx)(s6.UG6,{})}),(0,x.jsx)(Sl,{title:"Lock app",onClick:a,children:(0,x.jsx)(s6.mBM,{})})]})]})})}var Sd=Object.create,Sf=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,Sp=Object.getOwnPropertyNames,Sm=Object.getPrototypeOf,Sv=Object.prototype.hasOwnProperty,Sg=(v=null!=(m=(h=(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={})},()=>(p||h((p={exports:{}}).exports,p),p.exports))())?Sd(Sm(m)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Sp(t))Sv.call(e,n)||void 0===n||Sf(e,n,{get:()=>t[n],enumerable:!(r=Sh(t,n))||r.enumerable});return e})(m&&m.__esModule?v:Sf(v,"default",{value:m,enumerable:!0}),m)),Sy=e=>void 0!==e.method&&"call"===e.method,Sx=e=>null===e.error&&"number"==typeof e.id;g=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(Sy(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(Sx(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,Sg.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,Sg.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,Sg.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,Sg.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=g(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var Sb=(typeof window>"u"?"undefined":typeof window)=="object",Sw={setTimeout:Sb?setTimeout.bind(window):setTimeout,clearTimeout:Sb?clearTimeout.bind(window):clearTimeout,setInterval:Sb?setInterval.bind(window):setInterval,clearInterval:Sb?clearInterval.bind(window):clearInterval},SE={},Sj=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,SE[e]=SE[e]||[],SE[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),Sw.setTimeout(()=>{window.localStorage.removeItem(n)},500),SE[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=SE[this.name].indexOf(this);SE[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)}},Sk=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:Sj;function SS(){return Math.random().toString(36).substring(2)}var S_=class{options;channel;token=SS();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=>Sw.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{Sw.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=Sw.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=>Sw.clearInterval(e))}catch{}}}},SO=class{channel;options;elector;token=SS();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new Sk(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new S_(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()}},SC=Sb?document:null,SM=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function SA(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function SP(e){let{route:t}=e,n=(0,fm.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function SN(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:w,settings:E}=(0,fm.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=SP({route:n}),{settings:a}=(0,fm.Hv)(),s=(0,k5.useRouter)();(0,b.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:w,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e,i=(0,b.useCallback)(()=>{n()},[n]);!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=SC,events:i=SM,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:x=!1,name:w="idle-timer",syncTimers:E=0,leaderElection:j=!1,disabled:k=!1}={}){let S=(0,b.useRef)(ST()),_=(0,b.useRef)(ST()),O=(0,b.useRef)(null),C=(0,b.useRef)(null),M=(0,b.useRef)(0),A=(0,b.useRef)(0),T=(0,b.useRef)(0),P=(0,b.useRef)(0),N=(0,b.useRef)(!1),R=(0,b.useRef)(!1),D=(0,b.useRef)(!1),L=(0,b.useRef)(!0),F=(0,b.useRef)(!1),V=(0,b.useRef)(null),z=(0,b.useRef)(null),I=(0,b.useRef)(e),Z=(0,b.useRef)(0);(0,b.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?(I.current=e-n,Z.current=n):(I.current=e,Z.current=t),!L.current){if(g||k)return;N.current&&(X.current(null,eT),z.current&&z.current.active()),ed()}},[e,t,n,g,k]);let B=(0,b.useRef)(y);(0,b.useEffect)(()=>{B.current=y},[y]);let H=(0,b.useRef)(a),U=(0,b.useRef)(r),W=(0,b.useRef)([...new Set([...i,...a]).values()]),q=(0,b.useRef)(k);(0,b.useEffect)(()=>{q.current=k,!L.current&&(k?ep():g||ed())},[k]);let $=(0,b.useRef)(s);(0,b.useEffect)(()=>{$.current=s},[s]);let Y=(0,b.useRef)(l);(0,b.useEffect)(()=>{Y.current=l},[l]);let G=(0,b.useRef)(u);(0,b.useEffect)(()=>{G.current=u},[u]);let X=(0,b.useRef)(c);(0,b.useEffect)(()=>{X.current=c},[c]);let K=(0,b.useRef)(d);(0,b.useEffect)(()=>{K.current=d},[d]);let Q=(0,b.useRef)(f);(0,b.useEffect)(()=>{Q.current=f},[f]);let J=(0,b.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?SA(e,p):e},[p,h]),ee=(0,b.useRef)();(0,b.useEffect)(()=>{x&&E&&(ee.current=SA(()=>{z.current.active()},E))},[x,E]);let et=()=>{null!==V.current&&(Sw.clearTimeout(V.current),V.current=null)},en=(e,t=!0)=>{et(),V.current=Sw.setTimeout(ea,e||I.current),t&&(C.current=ST())},er=e=>{R.current||N.current||(Y.current(e,eT),$.current({type:"active",prompted:!0},eT)),P.current=0,T.current=ST(),R.current=!0,en(Z.current,!1)},ei=()=>{et(),N.current||(G.current(null,eT),$.current({type:"idle"},eT)),N.current=!0,O.current=ST(),B.current?ec():R.current&&(T.current=0,R.current=!1)},eo=e=>{et(),(N.current||R.current)&&(X.current(e,eT),$.current({type:"active",prompted:!1},eT)),R.current=!1,T.current=0,N.current=!1,M.current+=ST()-O.current,A.current+=ST()-O.current,eu(),en()},ea=e=>{if(!N.current){J.cancel&&J.cancel();let t=ST()-C.current;if(!(I.current+Z.current0&&!R.current){z.current?z.current.prompt():er(e);return}z.current?z.current.idle():ei();return}z.current?z.current.active():eo(e)},es=e=>{if(v||C.current||(C.current=ST(),X.current(null,eT)),J(e,eT),R.current)return;if(et(),!N.current&&H.current.includes(e.type)){ea(e);return}let t=ST()-C.current;if(N.current&&!y||!N.current&&t>=I.current){ea(e);return}D.current=!1,P.current=0,T.current=0,en(),x&&E&&ee.current()},el=(0,b.useRef)(es);(0,b.useEffect)(()=>{let e=F.current;e&&ec(),m>0?el.current=SA(es,m):el.current=es,e&&eu()},[m,p,h,K,x,E]);let eu=()=>{Sb&&U.current&&(F.current||(W.current.forEach(e=>{U.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),F.current=!0))},ec=(e=!1)=>{Sb&&U.current&&(F.current||e)&&(W.current.forEach(e=>{U.current.removeEventListener(e,el.current,{capture:!0})}),F.current=!1)},ed=(0,b.useCallback)(e=>!q.current&&(et(),eu(),N.current=!1,R.current=!1,D.current=!1,P.current=0,T.current=0,z.current&&!e&&z.current.start(),en(),!0),[V,N,q,I,z]),ef=(0,b.useCallback)(e=>!q.current&&(et(),eu(),_.current=ST(),M.current+=ST()-O.current,A.current+=ST()-O.current,M.current=0,N.current=!1,R.current=!1,D.current=!1,P.current=0,T.current=0,z.current&&!e&&z.current.reset(),g||en(),!0),[V,N,I,g,q,z]),eh=(0,b.useCallback)(e=>!q.current&&(et(),eu(),(N.current||R.current)&&eo(),N.current=!1,R.current=!1,D.current=!1,P.current=0,T.current=0,_.current=ST(),z.current&&!e&&z.current.activate(),en(),!0),[V,N,R,q,I,z]),ep=(0,b.useCallback)((e=!1)=>!q.current&&!D.current&&(P.current=eE(),D.current=!0,ec(),et(),z.current&&!e&&z.current.pause(),!0),[V,q,z]),em=(0,b.useCallback)((e=!1)=>!q.current&&!!D.current&&(D.current=!1,R.current||eu(),N.current||en(P.current),T.current&&(T.current=ST()),z.current&&!e&&z.current.resume(),!0),[V,I,q,P,z]),ev=(0,b.useCallback)((e,t)=>(z.current?(t&&Q.current(e,eT),z.current.message(e)):t&&Q.current(e,eT),!0),[f]),eg=(0,b.useCallback)(()=>N.current,[N]),ey=(0,b.useCallback)(()=>R.current,[R]),ex=(0,b.useCallback)(()=>z.current?z.current.isLeader:null,[z]),eb=(0,b.useCallback)(()=>z.current?z.current.isLastActive:null,[z]),ew=(0,b.useCallback)(()=>z.current?z.current.token:null,[z]),eE=(0,b.useCallback)(()=>{if(D.current)return P.current;let e=Math.floor((P.current?P.current:Z.current+I.current)-(C.current?ST()-C.current:0));return e<0?0:Math.abs(e)},[I,Z,R,P,C]),ej=(0,b.useCallback)(()=>Math.round(ST()-_.current),[_]),ek=(0,b.useCallback)(()=>Math.round(ST()-S.current),[S]),eS=(0,b.useCallback)(()=>O.current?new Date(O.current):null,[O]),e_=(0,b.useCallback)(()=>C.current?new Date(C.current):null,[C]),eO=(0,b.useCallback)(()=>N.current?Math.round(ST()-O.current+M.current):Math.round(M.current),[O,M]),eC=(0,b.useCallback)(()=>N.current?Math.round(ST()-O.current+A.current):Math.round(A.current),[O,A]),eM=(0,b.useCallback)(()=>{let e=Math.round(ej()-eO());return e>=0?e:0},[O,M]),eA=(0,b.useCallback)(()=>{let e=Math.round(ek()-eC());return e>=0?e:0},[O,M]);(0,b.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(Sw.setTimeout=o.setTimeout,Sw.clearTimeout=o.clearTimeout,Sw.setInterval=o.setInterval,Sw.clearInterval=o.clearInterval);let e=()=>{z.current&&z.current.close(),J.cancel&&J.cancel(),et(),ec(!0)};return Sb&&window.addEventListener("beforeunload",e),()=>{Sb&&window.removeEventListener("beforeunload",e),z.current&&z.current.close(),J.cancel&&J.cancel(),et(),ec(!0)}},[]),(0,b.useEffect)(()=>{z.current&&z.current.close(),x?z.current=new SO({channelName:w,leaderElection:j,onPrompt:()=>{er()},onIdle:()=>{ei()},onActive:()=>{eo()},onMessage:e=>{Q.current(e,eT)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):z.current=null},[x,w,j,Y,G,X,Q,ed,ef,ep,em]),(0,b.useEffect)(()=>{L.current||(et(),ec(!0)),g||k||(v?ed():eu())},[g,v,k,L]),(0,b.useEffect)(()=>{if(!L.current){let e=[...new Set([...i,...a]).values()];ec(),W.current=e,U.current=r,H.current=a,g||k||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(a),L,k,g,v]),(0,b.useEffect)(()=>{L.current&&(L.current=!1)},[L]);let eT={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:ex,isLastActiveTab:eb,getTabId:ew,getRemainingTime:eE,getElapsedTime:ej,getTotalElapsedTime:ek,getLastIdleTime:eS,getLastActiveTime:e_,getIdleTime:eO,getTotalIdleTime:eC,getActiveTime:eM,getTotalActiveTime:eA,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,Y.current=e},setOnIdle:e=>{u=e,G.current=e},setOnActive:e=>{c=e,X.current=e},setOnAction:e=>{d=e,K.current=e},setOnMessage:e=>{f=e,Q.current=e}}}({disabled:!t,onIdle:i,timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!E.autoLock,lockTimeout:E.autoLockTimeout,lock:w}),(0,x.jsxs)(Sr,{appName:t,title:n,children:[(0,x.jsx)(k9,{}),(0,x.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,x.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,x.jsx)(Sc,{routes:v,profile:i,openSettings:y,lock:w,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,x.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,x.jsx)(k8,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,x.jsx)(l1,{className:"z-0",children:(0,x.jsx)(lx,{size:o,pad:!1,children:(0,x.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,x.jsx)(lx,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function SR(e,t,n,r){let[i,o]=(0,b.useState)();return(0,b.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,b.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function SD(e){let{filtered:t}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.Hb6,{className:"scale-[200%]"})}),(0,x.jsx)(tq,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,b.createContext)(null).Consumer;let SL=[];function SF(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=SR(o.data,o.isValidating,o.error,SL),[u,c]=(0,b.useState)(),d=(0,b.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,b.useCallback)(e=>{let t=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});return t},[a]);return(0,x.jsx)(l3,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsxs)(cz,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,x.jsxs)("div",{className:"flex gap-1",children:[(0,x.jsx)(s5,{variant:"info"===u?"accent":"gray",onClick:()=>"info"===u?c(void 0):c("info"),children:"info"}),(0,x.jsx)(s5,{variant:"warning"===u?"accent":"gray",onClick:()=>"warning"===u?c(void 0):c("warning"),children:"warning"}),(0,x.jsx)(s5,{variant:"error"===u?"accent":"gray",onClick:()=>"error"===u?c(void 0):c("error"),children:"error"}),(0,x.jsx)(s5,{variant:"critical"===u?"accent":"gray",onClick:()=>"critical"===u?c(void 0):c("critical"),children:"critical"}),(0,x.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,x.jsxs)(s5,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,x.jsx)(s6.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,x.jsxs)("div",{className:(0,ea.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,x.jsx)(SD,{filtered:!1}),"error"===l&&(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center justify-center h-[100px]",SI()),children:(0,x.jsx)(tq,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,x.jsx)(Sz,{}),!l&&(0,x.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,x.jsxs)("div",{className:(0,ea.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,x.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,x.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,x.jsxs)(tq,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,x.jsx)(s5,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,x.jsx)(s6.NlZ,{})})]}),(0,x.jsxs)("div",{className:"flex justify-between w-full",children:[(0,x.jsx)(tq,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,x.jsx)(tq,{color:"contrast",ellipsis:!0,children:(0,m0.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)||SV;return(0,x.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,x.jsx)(SD,{filtered:!!u})})]})})}function SV(e){let{label:t,value:n}=e;return(0,x.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,x.jsx)(tq,{color:"subtle",children:t}),(0,x.jsx)(tq,{color:"contrast",ellipsis:!0,children:String(n)})]})}function Sz(){return(0,x.jsx)(x.Fragment,{children:kS()(10,e=>(0,x.jsx)("div",{className:(0,ea.cx)("relative flex gap-4 p-3.5",SI()),children:(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,x.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,x.jsx)(f_,{className:"w-[160px] h-[20px]"}),(0,x.jsx)(f_,{className:"w-[160px] h-[20px]"})]}),(0,x.jsx)(f_,{className:"w-[100px] h-[20px]"}),(0,x.jsx)(f_,{className:"w-full h-[120px]"})]})},e))})}function SI(){return(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var SZ=n(89644),SB=n.n(SZ),SH=n(63955),SU=n(45861),SW=n.n(SU);function Sq(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,b.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,b.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 S$(e){return(0,b.useCallback)(t=>{ko(SW()(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", "))},[e])}function SY(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}=Sq({name:t,form:n,field:u}),p=(0,x.jsx)(dJ,{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,x.jsx)(kG,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var SG=n(829),SX=n.n(SG);async function SK(e){let{api:t,route:n,password:r}=e;try{return await SB().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 SQ(e){let{appName:t,route:n,routes:r}=e,i=(0,k5.useRouter)(),{settings:o,setSettings:a}=(0,fm.Hv)(),{allowCustomApi:s}=o,l=(0,b.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,SH.cI)({mode:"onBlur",defaultValues:l});(0,b.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,b.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await SK({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=S$(d),h=u.formState.errors.api||u.formState.errors.password,p=SX()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,x.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,x.jsx)(tG,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(tq,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsx)(cT,{trigger:(0,x.jsx)(s5,{icon:"hover",variant:"ghost",children:(0,x.jsx)(s6.shL,{})}),children:(0,x.jsx)(cP,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,x.jsx)(cb,{className:"w-full mt-2 mb-3"}),(0,x.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,x.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,x.jsxs)(lg,{children:[(0,x.jsx)(SY,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,x.jsx)(cT,{trigger:(0,x.jsx)(s5,{type:"button",children:(0,x.jsx)(s6.wGX,{})}),children:p.map(e=>(0,x.jsx)(cP,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,x.jsx)(SY,{name:"password",form:u,fields:d,group:!1}),h&&(0,x.jsx)(tq,{size:"14",color:"red",children:h.message}),(0,x.jsx)(kX,{size:"small",form:u,children:"Unlock"})]})})]})})})}var SJ=n(63397),S0=n(24511);let S1={address:"",siacoin:void 0,includeFee:!1},S2=S0.Ry().shape({address:S0.Z_().required("Required"),siacoin:S0.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fd())(e||0).isZero())});function S4(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,x.jsx)(kg,{value:t,type:"address"})]}),(0,x.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kx,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,x.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kx,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,x.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kx,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,x.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,x.jsx)(kg,{value:i,type:"transaction"})]})]})}function S3(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,x.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,x.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,x.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,x.jsxs)("div",{className:(0,ea.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,x.jsx)(tq,{color:l?"contrast":"verySubtle",className:(0,ea.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,x.jsx)("div",{className:(0,ea.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,x.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 S5(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(S4,{address:t,siacoin:n,fee:r,transactionId:i}),(0,x.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.Z$8,{})}),(0,x.jsx)(tq,{children:"Transaction successfully broadcasted."})]})]})}let S6=(0,m0.qN)(.00393),S8={address:"",siacoin:new(fd())(0),includeFee:!1};function S7(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,b.useState)("setup"),[l,u]=(0,b.useState)(),[c,d]=(0,b.useState)(S8),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,SJ.TA)({initialValues:S1,validationSchema:S2,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,m0.qN)(e.siacoin).minus(n):(0,m0.qN)(e.siacoin);if(t){if(t.isLessThan((0,m0.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,m0.qN)(i.values.siacoin||0),a=(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(kK,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,x.jsx)(kK,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,x.jsxs)("div",{className:"flex items-center",children:[(0,x.jsx)(fI,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,x.jsx)(fb,{children:"Include or exclude the network fee from the above transaction value."}),(0,x.jsx)("div",{className:"flex flex-1"})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,x.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",children:"Network fee"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kx,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,x.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",children:"Total"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kx,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:S6,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,SJ.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})}}),l=(0,x.jsx)("div",{className:"flex flex-col gap-4",children:(0,x.jsx)(S4,{address:o,siacoin:a,fee:r})});return{form:l,formik:s}}({fee:S6,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,b.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,x.jsx)(l3,{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,x.jsx)("div",{className:"flex flex-col gap-1",children:(0,x.jsx)(k4,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(S3,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,x.jsx)(cb,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,x.jsx)(S5,{data:c,fee:S6,transactionId:l})]})})}let S9="[a-fA-F\\d:]",_e=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(S9,")|(?<=").concat(S9,")(?=\\s|$))"):"",_t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_n="[a-fA-F\\d]{1,4}",_r="\n(?:\n(?:".concat(_n,":){7}(?:").concat(_n,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(_n,":){6}(?:").concat(_t,"|:").concat(_n,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(_n,":){5}(?::").concat(_t,"|(?::").concat(_n,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(_n,":){4}(?:(?::").concat(_n,"){0,1}:").concat(_t,"|(?::").concat(_n,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(_n,":){3}(?:(?::").concat(_n,"){0,2}:").concat(_t,"|(?::").concat(_n,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(_n,":){2}(?:(?::").concat(_n,"){0,3}:").concat(_t,"|(?::").concat(_n,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(_n,":){1}(?:(?::").concat(_n,"){0,4}:").concat(_t,"|(?::").concat(_n,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(_n,"){0,5}:").concat(_t,"|(?::").concat(_n,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),_i=new RegExp("(?:^".concat(_t,"$)|(?:^").concat(_r,"$)")),_o=new RegExp("^".concat(_t,"$")),_a=new RegExp("^".concat(_r,"$")),_s=e=>e&&e.exact?_i:RegExp("(?:".concat(_e(e)).concat(_t).concat(_e(e),")|(?:").concat(_e(e)).concat(_r).concat(_e(e),")"),"g");_s.v4=e=>e&&e.exact?_o:RegExp("".concat(_e(e)).concat(_t).concat(_e(e)),"g"),_s.v6=e=>e&&e.exact?_a:RegExp("".concat(_e(e)).concat(_r).concat(_e(e)),"g");let _l=()=>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"),_u={port:9981,ip:""},_c=S0.Ry().shape({port:S0.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:S0.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>_l().test(e||""))});function _d(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,SJ.TA)({initialValues:_u,validationSchema:_c,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 kr("Connected to peer"),t.resetForm(),i(!1)}});return(0,x.jsx)(l3,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{size:"14",children:"Connect to a peer by IP address."}),(0,x.jsx)("form",{onSubmit:o.handleSubmit,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(kK,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,x.jsx)(kK,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,x.jsx)(k4,{formik:o,size:"medium",children:"Connect"})]})})]})})}function _f(e){var t;let{id:n,transaction:r,trigger:i,open:o,onOpenChange:a}=e;return(0,x.jsx)(l3,{title:kd((null==r?void 0:r.txType)?kI()(kv(r.txType)):"Transaction",n,16),trigger:i,open:o,onOpenChange:a,contentVariants:{className:"w-[800px]"},children:r?(0,x.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,x.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Inflow"}),(0,x.jsx)(kx,{value:new(fd())((null==r?void 0:r.inflow)||0)})]}),(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Outflow"}),(0,x.jsx)(kx,{value:new(fd())((null==r?void 0:r.outflow)||0).negated()})]}),(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Miner fee"}),(0,x.jsx)(kx,{value:new(fd())((null==r?void 0:null===(t=r.raw.minerFees)||void 0===t?void 0:t.reduce((e,t)=>e.plus(t),new(fd())(0)))||0)})]}),(0,x.jsx)("div",{className:"flex-1"}),(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Timestamp"}),(0,x.jsx)(tq,{children:(0,m0.rN)((null==r?void 0:r.timestamp)||0,{timeStyle:"short"})})]})]}),(0,x.jsx)(lh,{children:JSON.stringify(null==r?void 0:r.raw,null,2)})]}):(0,x.jsx)(tq,{children:"Could not find transaction in wallet"})})}S0.Ry().shape({address:S0.Z_().required("Required"),description:S0.Z_().required("Required"),index:S0.Rx().integer().required("Required")});var _h=n(38001);function _p(e){let{title:t,description:n,address:r}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,x.jsx)(cz,{size:"20",font:"mono",children:t}),n&&(0,x.jsx)(tq,{children:n}),(0,x.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,x.jsx)("div",{className:"absolute",children:(0,x.jsx)(_h.Z,{size:200,value:r})})}),(0,x.jsx)(kg,{type:"address",value:r})]})}function _m(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,x.jsx)(l3,{title:kd("Address",kc(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,x.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,x.jsx)(_p,{address:t||""}):(0,x.jsx)(tq,{children:"Could not retreive wallet address"})})})}function _v(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{color:"amber",children:(0,x.jsx)(s6.qdM,{})}),(0,x.jsxs)(tq,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{color:"amber",children:(0,x.jsx)(s6.qdM,{})}),(0,x.jsxs)(tq,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let _g={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"},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"};function _y(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,fm.Hv)();return(0,x.jsx)(fj,{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,x.jsx)(fk,{value:t,children:n},t)})})}let _x=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function _b(){let{settings:e,setSettings:t}=(0,fm.Hv)();return(0,x.jsx)(fj,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:_x.map(e=>{let{id:t,label:n}=e;return(0,x.jsx)(fk,{value:t,children:n},t)})})}function _w(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:o,setSettings:a,gpu:s}=(0,fm.Hv)();return(0,x.jsx)(l3,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,x.jsx)("div",{className:"flex flex-col gap-4",children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Display"}),(0,x.jsx)(t$,{size:"14",children:"Configure visual and locale display preferences."}),(0,x.jsx)(s7,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(cz,{size:"20",className:"flex-1",children:"Currency display"}),(0,x.jsx)(_b,{})]}),(0,x.jsx)(t$,{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,x.jsx)(s7,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(cz,{size:"20",className:"flex-1",children:"Fiat"}),(0,x.jsx)(_y,{})]}),(0,x.jsx)(t$,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,x.jsx)(s7,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(cz,{size:"20",className:"flex-1",children:"Theme"}),(0,x.jsx)(pu,{})]}),(0,x.jsx)(t$,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,x.jsx)(s7,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(cz,{size:"20",className:"flex-1",children:"GPU"}),(0,x.jsx)(fI,{disabled:!s.canGpuRender,checked:s.canGpuRender&&s.isGpuEnabled,onCheckedChange:s.setIsGpuEnabled,size:"medium"})]}),(0,x.jsxs)(t$,{size:"14",children:["Enable features that require a GPU."," ",s.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,x.jsx)(cb,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Security"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{size:"14",children:"Configure security preferences."}),(0,x.jsx)(s7,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(cz,{size:"20",className:"flex-1",children:"Lock app"}),(0,x.jsx)(fI,{size:"medium",checked:o.autoLock,onCheckedChange:e=>a({autoLock:e})}),(0,x.jsxs)(fj,{disabled:!o.autoLock,value:String(o.autoLockTimeout),onChange:e=>{a({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,x.jsx)(fk,{value:ES(5),children:"5 minutes"}),(0,x.jsx)(fk,{value:ES(10),children:"10 minutes"}),(0,x.jsx)(fk,{value:ES(20),children:"20 minutes"}),(0,x.jsx)(fk,{value:ES(30),children:"30 minutes"}),(0,x.jsx)(fk,{value:ES(60),children:"1 hour"})]})]}),(0,x.jsx)(t$,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,x.jsx)(cb,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Privacy"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{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,x.jsx)(s7,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(cz,{size:"20",className:"flex-1",children:"Sia Central"}),(0,x.jsx)(fI,{size:"medium",checked:o.siaCentral,onCheckedChange:e=>a({siaCentral:e})})]}),(0,x.jsx)(t$,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,x.jsx)(cb,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Help"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{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,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)(cK,{href:_g.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(s6.lq1,{}),"Website"]}),(0,x.jsxs)(cK,{href:_g.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(s6.RdX,{}),"Docs"]}),(0,x.jsxs)(cK,{href:_g.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(s6.Sfn,{}),"About"]}),(0,x.jsxs)(cK,{href:_g.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(s6.b47,{}),"Discord"]})]})]})]})]})})}function _E(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,x.jsx)(So,{side:"bottom",balanceSc:t,children:(0,x.jsx)(tG,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,x.jsx)(kE,{variant:"value",value:t.spendable,size:"12",showTooltip:!1})})}):(0,x.jsx)(s4,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,x.jsxs)(tG,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,x.jsx)(tq,{color:"amber",children:(0,x.jsx)(s6.qdM,{})}),(0,x.jsx)(kE,{variant:"value",value:t.spendable,size:"12",showTooltip:!1})]})}):null}function _j(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,x.jsxs)(x.Fragment,{children:[o&&(0,x.jsx)(_E,{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,x.jsxs)(s5,{size:"small",onClick:s,children:[(0,x.jsx)(s6.xHM,{}),"Receive"]}),(0,x.jsxs)(s5,{size:"small",variant:"accent",onClick:a,children:[(0,x.jsx)(s6.rW0,{}),"Send"]})]})}function _k(e,t){if(!e||!e.length)return[];let n=Object.keys(Ek()(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 _S(e,t){return"all"===e?{start:new Date(2022,1,1).getTime(),end:t}:{start:t-EO(Number(e)),end:t}}let __={"5m":e=>{let t=e+ES(5);return"5m interval from ".concat((0,m0.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m0.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+ES(15);return"15m interval from ".concat((0,m0.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m0.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+E_(1);return"Hour interval from ".concat((0,m0.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m0.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+E_(24);return"Day interval from ".concat((0,m0.rN)(e)," to ").concat((0,m0.rN)(t))},weekly:e=>{let t=e+EO(7);return"Week interval from ".concat((0,m0.rN)(e)," to ").concat((0,m0.rN)(t))},monthly:e=>{let t=e+EO(30);return"Month interval from ".concat((0,m0.rN)(e)," to ").concat((0,m0.rN)(t))},yearly:e=>{let t=e+EO(365);return"Year interval from ".concat((0,m0.rN)(e)," to ").concat((0,m0.rN)(t))},default:e=>"".concat((0,m0.rN)(e))};function _O(e){return __[e]||__.default}function _C(e){if(!e||!e.length)return{};let t=Object.keys(Ek()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=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,a=t.reduce((t,n)=>t+(n[e]||0),0);return _M({total:a,start:i,end:o,count:t.length})}(n,e)}),{});return{...n,total:function(e,t){let n=_A(e,t[0]),r=_A(e,t[t.length-1]),i=t.reduce((t,n)=>t+_A(e,n),0);return _M({total:i,start:n,end:r,count:t.length})}(t,e)}}function _M(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 _A(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function _T(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,ps.F)(),o=(0,b.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:mJ.accent[800]}}:{sc:{label:"siacoin",color:mJ.accentdark[800]}},[i]),a=(0,b.useMemo)(()=>{let e=_k(t,"none"),i=_C(t);return{data:e,stats:i,config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,m0.Vz)(e),formatTimestamp:_O("default"),formatTickY:e=>(0,m0.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}},[t,n,o,r]);return(0,x.jsx)("div",{className:"relative",children:(0,x.jsx)(EP,{id:"balance",height:200,allowConfiguration:!1,data:a.data,config:a.config})})}function _P(e){let{peers:t,connectPeer:n}=e;return(0,x.jsx)(kU,{title:"Peers",actions:(0,x.jsx)(s5,{onClick:n,children:"Connect"}),entities:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function _N(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,x.jsxs)("div",{className:(0,ea.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,x.jsx)("div",{className:"relative top-px",children:(0,x.jsx)(fC,{style:{backgroundColor:o}})}),(0,x.jsx)(tq,{size:t,children:n})]})}var _R=n(92762);let _D={total:"total",average:"average",latest:"latest"};function _L(e){let{category:t,label:n,color:r,sc:i,value:o,extendedSuffix:a,format:s=e=>e.toFixed(2),defaultMode:l,enabledModes:u=["total","average","latest"],isLoading:c,showChange:d=!0}=e,[f,h]=(0,_R.Z)("v0/datum/".concat(t,"/").concat(n),{defaultValue:l});return(0,x.jsx)(kW,{isLoading:c,label:(0,x.jsx)(_N,{label:n,color:r}),actions:(0,x.jsx)(fj,{onChange:e=>h(e.currentTarget.value),defaultValue:f,children:u.map(e=>(0,x.jsx)(fk,{value:e,children:_D[e]},e))}),sc:(null==i?void 0:i[f])!==void 0?new(fd())(i[f]):void 0,extendedSuffix:a,value:(null==o?void 0:o[f])!==void 0&&s?s(o[f]):void 0,comment:i?(0,x.jsxs)("div",{className:"flex items-center gap-4",children:[(0,x.jsx)(kE,{tooltip:"Net change over time range:",fixedTipFiat:10,value:new(fd())(i.diff)}),d&&void 0!==i.change&&(0,x.jsx)(s4,{content:"Percent change over time range",children:(0,x.jsxs)(tq,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[i.change.toFixed(2),"%"]})})]}):o&&(0,x.jsxs)("div",{className:"flex items-center gap-4",children:[(0,x.jsx)(kj,{tooltip:"Net change over time range:",format:e=>s(e.toNumber()),value:new(fd())(o.diff)}),d&&void 0!==o.change&&(0,x.jsx)(s4,{content:"Percent change over time range",children:(0,x.jsxs)(tq,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[o.change.toFixed(2),"%"]})})]})})}function _F(e){let{children:t,bleed:n}=e;return(0,x.jsx)("div",{className:(0,ea.cx)(n?"-mx-5 overflow-hidden":""),children:(0,x.jsx)(l1,{children:(0,x.jsx)("div",{className:(0,ea.cx)("flex gap-4 py-4",n?"px-5 w-fit":""),children:t})})})}function _V(e){return 4320*e}function _z(e){return e/16666666666666669e-22}function _I(e){return e/4320}function _Z(e,t){return new Date().getTime()+_z(t-e)}function _B(e){let{children:t,variant:n,align:r}=e;return(0,x.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,x.jsx)(tq,{size:"10",color:"primary"===n?"contrast":"verySubtle",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function _H(e){let{date:t,align:n,variant:r}=e;return t?(0,x.jsx)(_B,{variant:r,align:n,children:(0,m0.rN)(t)}):null}function _U(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,x.jsx)(_B,{variant:r,align:n,children:t.toLocaleString()}):null}function _W(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=_z(d),h=_Z(n,r.startHeight),p=_Z(n,i),m=_Z(n,o),v=(p-h)/f,g=(m-h)/f;return(0,x.jsxs)("div",{className:(0,ea.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:_q(v),width:_q(g-v)},children:[(0,x.jsx)("div",{className:(0,ea.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,x.jsx)("div",{className:(0,ea.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,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:_q(1-g)}:{left:_q(v)},children:[(0,x.jsx)(_U,{blockHeight:i,align:"start",variant:"primary"}),(0,x.jsx)(_B,{variant:"primary",children:t}),(0,x.jsx)(_U,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,x.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:_q(1-g)}:{left:_q(v)},children:[(0,x.jsx)(_H,{date:p,align:"start",variant:"secondary"}),(0,x.jsx)(_H,{date:m,align:"start",variant:"secondary"})]}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:_q(1-g)}:{left:_q(v)},children:[(0,x.jsx)(_H,{date:p,align:"start",variant:"secondary"}),(0,x.jsx)(_H,{date:m,align:"start",variant:"secondary"})]})]})}function _q(e){return"".concat(100*e,"%")}function _$(e){let{currentHeight:t,eventHeight:n,range:r,label:i,bottomLabel:o,color:a,className:s,unconfirmedPing:l=!0}=e,u=!!n&&n>t,c=n&&!u&&t-n<6,d=r.endHeight-r.startHeight,f=_z(d),h=_Z(t,r.startHeight),p=n?_Z(t,n):0;return n?(0,x.jsx)("div",{className:(0,ea.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",s),style:{left:"".concat(100*(p?(p-h)/f:0),"%")},children:(0,x.jsxs)("div",{className:(0,ea.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[l&&c&&(0,x.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,x.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,x.jsx)("div",{className:(0,ea.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===a?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===a?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===a?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,x.jsx)(_U,{blockHeight:n,align:"start",variant:"primary"}),(0,x.jsx)(_B,{variant:"primary",children:i})]}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,x.jsx)(_H,{date:p,align:"start",variant:"secondary"}),o&&(0,x.jsx)(_B,{variant:"secondary",children:o})]})]})}):null}function _Y(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,x.jsx)("div",{className:"group/main relative w-full",children:(0,x.jsx)("div",{className:"relative py-6",children:(0,x.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,x.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,x.jsxs)("div",{className:"group/segments",children:[(0,x.jsx)(_W,{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,x.jsx)(_W,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,x.jsx)(_$,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,x.jsx)(_$,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,x.jsx)(_$,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,x.jsx)(_$,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var _G=n(17335),_X=n.n(_G);function _K(e){let{label:t,columns:n,enabled:r,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===_X()(n,r).length,s=_X()(n,r).length===n.length;return(0,x.jsxs)(c_,{children:[(0,x.jsx)(cY,{children:t}),(0,x.jsxs)(cO,{children:[(0,x.jsx)(s5,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(n)},children:(0,x.jsx)(s6.xVB,{})}),(0,x.jsx)(s5,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,x.jsx)(s6.pHg,{})})]})]})}function _Q(e){let{title:t,children:n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,x.jsx)(cz,{anchorLink:!0,size:"24",children:t}),(0,x.jsx)(tG,{className:"p-6",children:(0,x.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function _J(e){let{title:t,description:n,control:r}=e;return(0,x.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,x.jsx)(cz,{size:"20",children:t}),(0,x.jsx)(t$,{size:"14",children:n})]}),(0,x.jsx)("div",{className:"",children:r})]})}function _0(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,SH.cI)(),d=(0,b.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,x.jsx)(l3,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,x.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,x.jsx)("div",{className:"flex gap-1 justify-end",children:(0,x.jsx)(kX,{variant:s,form:c,size:"small",children:l})})]})})})}function _1(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(tq,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsxs)("div",{className:"flex items-center",children:[n?(0,x.jsxs)(s5,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,x.jsx)(tq,{color:"subtle",children:n.toLocaleString()}),(0,x.jsx)(s6.RK4,{})]}):null,i&&r?(0,x.jsx)(s4,{content:"Blockchain is synced",children:(0,x.jsx)("div",{className:"relative left-2",children:(0,x.jsxs)(s5,{variant:"ghost",state:"waiting",children:[(0,x.jsx)(tq,{color:"subtle",children:i.toLocaleString()}),(0,x.jsx)(tq,{color:"green",children:(0,x.jsx)(s6.Y3p,{})})]})})}):null]})]})}function _2(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,x.jsx)(d_,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,x.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,x.jsx)(tq,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,x.jsx)(tq,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,x.jsx)(tq,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function _4(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,x.jsx)(hO,{rootProps:{openDelay:100},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,x.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,x.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,x.jsxs)(tq,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,x.jsx)(cJ,{size:30})]}),children:(0,x.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[300px]",children:[(0,x.jsx)(_1,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,x.jsx)(cb,{className:"w-full mb-0.5"}):(0,x.jsx)(_2,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tq,{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,x.jsx)(cb,{className:"w-full mb-1"})]}),c]})})}function _3(e){let{testnetName:t}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,x.jsx)(tq,{color:"lo",children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsxs)(tq,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function _5(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(s4,{align:"start",side:"bottom",content:i,children:(0,x.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,x.jsx)(tq,{className:"flex relative",children:o||(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(tq,{size:"12",ellipsis:!0,children:r?(0,x.jsx)(cK,{href:r,target:"_blank",children:n}):n})]})}),(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,x.jsx)(kx,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,x.jsx)(kj,{value:a,variant:"value",size:"12",format:e=>"".concat(ff(e,l)," ").concat(u)})})]})}function _6(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}=Sq({name:t,field:i,form:n}),y=d||(()=>null),w=(0,b.useMemo)(()=>s?new(fd())(s):a&&"boolean"!=typeof a?new(fd())(a):void 0,[s,a]);return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)(fy,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:w,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),(0,x.jsx)(y,{name:t,form:n,fields:r}),o&&(0,x.jsx)(_5,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,m0.qN)(o),onClick:()=>{m(o,!0)}}),a&&u&&(0,x.jsx)(_5,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,m0.qN)(a),onClick:()=>{m(a,!0)}})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kY,{form:n,name:t})})]})}function _8(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}=Sq({form:n,field:i,name:t}),m=(0,b.useMemo)(()=>c?new(fd())(c):s&&"boolean"!=typeof s?new(fd())(s):void 0,[c,s]);return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)(fh,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(fd())(e):void 0;f(t,!0)},onBlur:()=>{f(h,!0)}}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,x.jsx)(_5,{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,x.jsx)(_5,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kY,{form:n,name:t})})]})}function _7(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(s4,{align:"start",side:"bottom",content:r,children:(0,x.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,x.jsx)(tq,{className:"flex relative",children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(tq,{size:"12",children:n?(0,x.jsx)(cK,{href:n,target:"_blank",children:t}):t})]})}),(0,x.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,x.jsx)(tq,{size:"12",children:(0,x.jsx)(lm,{children:i})})})]})}function _9(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}=Sq({name:t,form:n,field:o});return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)(dJ,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,x.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,x.jsx)(_7,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kY,{form:n,name:t})})]})}function Oe(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=Sq({name:t,field:i,form:n});return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)("div",{className:"flex justify-end w-full",children:(0,x.jsx)(fI,{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,x.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,x.jsx)(_7,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kY,{form:n,name:t})})]})}function Ot(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}=Sq({name:t,form:n,field:i});return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)("div",{className:"flex justify-end w-full",children:(0,x.jsx)(fj,{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,x.jsx)(fk,{value:e.value,children:e.label},e.value))})}),(0,x.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,x.jsx)(_7,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kY,{form:n,name:t})})]})}function On(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,x.jsx)(_Q,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,x.jsxs)(b.Fragment,{children:[(0,x.jsx)(_J,{title:a.title,description:a.description,control:"number"===a.type?(0,x.jsx)(_8,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,x.jsx)(_6,{form:r,name:n,fields:i}):"text"===a.type?(0,x.jsx)(_9,{form:r,name:n,fields:i}):"password"===a.type?(0,x.jsx)(_9,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,x.jsx)(Oe,{form:r,name:n,fields:i}):"select"===a.type?(0,x.jsx)(Ot,{form:r,name:n,fields:i}):null}),t{let t=void 0!==e?new(fd())(e):void 0;l(t,!0)},onBlur:()=>{l(c,!0)}})})}function Oi(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}=Sq({name:t,field:s,form:n}),d=(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,x.jsx)(fI,{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,x.jsx)(kG,{title:s.title,name:t,form:n,children:d}):d}var Oo=n(75652),Oa=n.n(Oo);s6.lg1,s6.eHR,s6.I$H,s6.KiD,s6.P5r,s6.CCF,s6.w9S,s6.EL$,s6.aPl,s6.wEY,s6.EOT,s6.kSc,s6.W$S,s6.lJ7,s6.ORH,s6.ka0,s6.BdP,s6.d19,s6.Mes,s6.VUg,s6.U_S,s6.T85;let Os=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,b.useState)(!0),l=(0,b.useRef)(!1),u=(0,b.useRef)(0);return(0,b.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,b.createElement)(tO,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,b.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,b.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,b.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function Ol(e){let{children:t}=e,[n,r]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{r(!0)},[]),(0,x.jsx)("div",{children:n?t:null})}function Ou(e){let{className:t,passwordProtectRequestHooks:n,fallback:r,children:i,lockRoutes:o}=e;return(0,x.jsx)(Ol,{children:(0,x.jsx)(fm.kl,{fallback:r,children:(0,x.jsx)(ps.f,{attribute:"class",children:(0,x.jsx)(Os,{children:(0,x.jsx)(fm.bW,{lockRoutes:o,passwordProtectRequestHooks:n,children:(0,x.jsxs)("div",{id:"root",className:t,children:[(0,x.jsx)(ks,{}),i]})})})})})})}var Oc=n(30898),Od=n.n(Oc);let Of=[];function Oh(e,t){let{columns:n,columnsDefaultVisible:r,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:Of,...t},[s,l]=(0,_R.Z)("".concat(e,"/enabledColumns"),{defaultValue:r}),[u,c]=(0,_R.Z)("".concat(e,"/sortField"),{defaultValue:i}),[d,f]=(0,_R.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),h=(0,b.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),p=(0,b.useCallback)(e=>{l(t=>Oa()([...t,...e]))},[l]),m=(0,b.useCallback)(e=>{l(t=>_X()(t,e))},[l]),v=(0,b.useCallback)(()=>{l(r)},[l,r]),g=(0,b.useCallback)(e=>{if(u!==e){c(e),f("asc");return}f(e=>"desc"===e?"asc":"desc")},[u,c,f]),y=(0,b.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),x=(0,b.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]),w=(0,b.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return Od()(e,x)},[o,x]);return{configurableColumns:y,enabledColumns:x,toggleColumnVisibility:h,toggleSort:g,setSortDirection:f,setSortField:c,sortableColumns:w,sortField:u,setColumnsVisible:p,setColumnsHidden:m,sortDirection:d,resetDefaultColumnVisibility:v}}function Op(){let e=(0,k5.useRouter)(),[t,n]=(0,b.useState)([]),r=(0,b.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,b.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,b.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,b.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}function Om(e){return new(fd())(e).times(1024).times(1024)}function Ov(e){return new(fd())(e).times(1e3).times(1e3).times(1e3).times(1e3)}function Og(e){return new(fd())(e).div(1e3).div(1e3).div(1e3)}function Oy(e){return new(fd())(e).times(1e3).times(1e3).times(1e3)}function Ox(e){return new(fd())(e).div(1e3).div(1e3)}function Ob(e){return new(fd())(e).times(1e3).times(1e3)}function Ow(e){return Om(e).times(4)}function OE(e){return Og(Ow(e))}function Oj(e){var t;return(t=Oy(e),new(fd())(t).div(1024).div(1024)).div(4).integerValue()}function Ok(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)+720,n.startHeight=n.startHeight-720;let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=EO(1);let o=r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{});return{allDatesMap:o,range:n}}new(fd())(0)},2850:function(e,t,n){"use strict";n.d(t,{bW:function(){return F},kl:function(){return $},gw:function(){return o},Tc:function(){return W},du:function(){return q},Hv:function(){return L},iv:function(){return U},Nf:function(){return H},E:function(){return B},mw:function(){return z},q0:function(){return V},Tb:function(){return M},V1:function(){return Z},I7:function(){return I}});var r=n(79381);function i(e,t){return!e||t?null:e}function o(e){return new Promise(t=>setTimeout(t,e))}var a=n(89644),s=n.n(a),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 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=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:o}}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){let n=Object.keys(t);for(let r of n){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}}return e}(t,i)))return null;let o=f(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).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(82876),y=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 b=["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 E="undefined"==typeof window,j=(()=>{if(E)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 k extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let S=[],_=[];function O(e){return null!=e}let C=({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(E)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==j?void 0:j.isIpad),isMobile:l=!!(null==j?void 0:j.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 k("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==j?void 0:j.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 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==j?void 0:j.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=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let n of t)if(e.includes(n))return n})(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 k)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:x}=window,b=u.width*x*u.height*x;for(let e of g){let[t,n]=e,r=t*n,i=Math.abs(b-r);ie===n?t-r:e-n);if(!v.length){let e=b.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,C]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,C);let M=l?e:t,A=0;for(let e=0;e=M[e]&&(A=e);return f(A,"BENCHMARK",y,g,C)});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 A=(0,l.createContext)({}),T=()=>(0,l.useContext)(A);function P(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]),r=(0,l.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,l.useCallback)(()=>{t({})},[t]),o=(0,l.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:n,removeWorkflow:r,resetWorkflows:i,workflows:o}}();return(0,v.jsx)(A.Provider,{value:n,children:t})}let N=[{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}],R={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:N[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},D=(0,l.createContext)({}),L=()=>(0,l.useContext)(D);function F(e){let{children:t,...n}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:i}=e,o=(0,l.useMemo)(()=>({...R,...i}),[i]),[a,s]=(0,y.Z)("v0/settings",{defaultValue:o});(0,l.useEffect)(()=>{s(e=>({...o,...e}))},[]);let u=(0,l.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=T(),d=(0,l.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,l.useCallback)(e=>{let t=N.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,g.useRouter)(),p=(0,g.usePathname)(),[m,v]=(0,l.useState)({}),x=(0,l.useCallback)((e,t)=>{v(n=>({...n,[e]:t}))},[v]),b=(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,r.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=(0,l.useMemo)(()=>!!u.password,[u]),E=function(){let e=M(),[t,n]=(0,l.useState)(!1),[r,i]=(0,l.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},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 C();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,a]);return(0,l.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:N,gpu:E,lock:b,isUnlocked:w,passwordProtectRequestHooks:t,setOnLockCallback:x}}(n);return(0,v.jsx)(D.Provider,{value:i,children:t})}function V(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0),d=(0,l.useMemo)(()=>i(u?"".concat(u).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!o.password),[u,e,n,a,o]);return(0,r.ZP)(d,async()=>{if(!n.route)throw Error("No route");let t=h(o,n,void 0);if(!u)throw Error("No route");try{let n=await s().post(u,e.payload,t);return n.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 z(e,t){let{setWorkflow:n,removeWorkflow:i}=T(),{mutate:o}=(0,r.kY)(),{settings:a}=L(),l=u(e);return{post:async e=>{let r=d(e);try{let u;let c=h(a,l,r),d=p(a,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(a,d,e,r);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,i=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let i=m(a,n,e,r);return t(i)},n,i)},r,g),i(f),{status:g.status,data:g.data}}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){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0),d=(0,l.useMemo)(()=>i(u?"".concat(u).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!o.password),[u,e,n,a,o]);return(0,r.ZP)(d,async()=>{if(!n.route)throw Error("No route");let t=h(o,n,void 0);if(!u)throw Error("No route");try{let n=await s().put(u,e.payload,t);return n.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 Z(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=T(),l=u(e);return{put:async e=>{let r=d(e);try{let u;let c=h(i,l,r),d=p(i,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(i,d,e,r);o(f,{path:v,payload:u});let g=await s().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=m(i,n,e,r);return t(o)},o,a)},r,g),a(f),{status:g.status,data:g.data}}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,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=T(),l=u(e);return{patch:async e=>{let r=d(e);try{let u;let c=h(i,l,r),d=p(i,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(i,d,e,r);o(f,{path:v,payload:u});let g=await s().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=m(i,n,e,r);return t(o)},o,a)},r,g),a(f),{status:g.status,data:g.data}}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 H(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0);return(0,r.ZP)(i(e.standalone?"".concat(e.standalone,"/").concat(u):u,n.disabled||a&&!o.password),async()=>{if(!n.route)throw Error("No route");let e=h(o,n,void 0);if(!u)throw Error("No route");try{let t=await s().get(u,e);return 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 U(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=T(),l=u(e);return{delete:async e=>{let r=d(e);try{let u=h(i,l,r),c=p(i,l.route,l,r);if(!c)throw Error("No route");let d=m(i,c,e,r);o(c,{path:d});let f=await s().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=m(i,n,e,r);return t(o)},o,a)},r,f),a(c),{status:f.status,data:f.data}}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(){return Math.round((new Date().getTime()-14336e8)/6e5)}function q(){return Math.round((new Date().getTime()-16736e8)/6e5)}function $(e){let{fallback:t,cacheProvider:n,children:i}=e;return(0,v.jsx)(P,{children:(0,v.jsx)(r.J$,{value:{fallback:t||{},provider:n},children:i})})}},27444:function(e,t,n){"use strict";n.d(t,{dk:function(){return o},Z7:function(){return F},Uy:function(){return V},GP:function(){return y},kr:function(){return x},nH:function(){return l},KU:function(){return b},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 O},_3:function(){return N},HU:function(){return M},uq:function(){return T},G:function(){return P},Rz:function(){return A},Fn:function(){return _},Os:function(){return f},a0:function(){return m},cj:function(){return v},Qq:function(){return h}});var r=n(2850),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}}}),t=(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});return t.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 x(e){return(0,r.V1)({...e,route:"/contracts/:id/integrity"})}function b(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 _(e){return(0,r.Nf)({...e,route:"/volumes"})}function O(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 F(e){return(0,r.Nf)({...e,route:L})}function V(e){return(0,r.mw)({...e,route:"/alerts/dismiss"},async e=>{e(e=>e.startsWith(L))})}},41775: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 tL},eHR:function(){return tU},xHM:function(){return tW},IRm:function(){return tq},L6f:function(){return t$},rW0:function(){return tY},osk:function(){return tG},JaG:function(){return tX},wWN:function(){return is},Dkj:function(){return iy},cfm:function(){return tQ},YV2:function(){return t6},EMN:function(){return t8},bdU:function(){return t7},VUy:function(){return t9},Cp0:function(){return ne},kqg:function(){return nt},Mes:function(){return nn},DI$:function(){return ni},NlZ:function(){return nf},Y3p:function(){return np},Z$8:function(){return nh},tEK:function(){return nm},PcV:function(){return ng},QN4:function(){return nv},Jsc:function(){return ny},wEY:function(){return nw},olJ:function(){return nE},KiD:function(){return nS},dDl:function(){return n_},Jrl:function(){return nM},aPl:function(){return nA},kBK:function(){return ip},Bpb:function(){return nP},iG7:function(){return nF},dr6:function(){return nV},d19:function(){return nz},w9S:function(){return nI},VBo:function(){return il},Hb6:function(){return nH},CCF:function(){return nU},Qbr:function(){return nY},L37:function(){return nG},ROc:function(){return iv},UG6:function(){return im},lq1:function(){return nX},zvn:function(){return iu},K2o:function(){return ih},EL$:function(){return nQ},BdP:function(){return n3},dsj:function(){return n5},P5r:function(){return n6},RdX:function(){return n8},U_S:function(){return n7},V8Q:function(){return rn},POp:function(){return rr},kSc:function(){return ri},mBM:function(){return id},Lur:function(){return rl},b47:function(){return ru},Sfn:function(){return rc},W$S:function(){return rv},T85:function(){return rg},Ckx:function(){return ry},dZ8:function(){return rb},EOT:function(){return rx},RK4:function(){return rE},XJM:function(){return r_},RRj:function(){return rO},ka0:function(){return rC},hzZ:function(){return rA},VUg:function(){return rD},owP:function(){return rL},Fs9:function(){return rF},wGX:function(){return rV},Wet:function(){return rB},BB5:function(){return rH},ZEk:function(){return rU},$Iz:function(){return rY},shL:function(){return rG},hiv:function(){return rX},mli:function(){return rQ},lJ7:function(){return ig},ORH:function(){return r0},xVB:function(){return r6},pHg:function(){return r8},I$H:function(){return r9},HCc:function(){return r7},oaN:function(){return ic},qdM:function(){return ie},SmH:function(){return ii},lg1:function(){return io}});var a,s,l,u,c,d,f,h,p,m,v,g,y,x,b,w,E,j,k,S,_,O,C,M,A,T,P,N,R,D,L,F,V,z,I,Z,B,H,U,W,q,$,Y,G,X,K,Q,J,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,eE,ej,ek,eS,e_,eO,eC,eM,eA,eT,eP,eN,eR,eD,eL,eF,eV,ez,eI,eZ,eB,eH,eU,eW,eq,e$,eY,eG,eX,eK,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,tx,tb,tw,tE=["width","height","viewBox"],tj=["tabindex"],tk={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tS=n(13980),t_=n.n(tS),tO=n(2784);function tC(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 tM(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 tP=["className","children","tabIndex"],tN=["tabindex"],tR=tO.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,tE),l=s.tabindex,u=o(s,tj),c=i(i(i({},tk),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}(tM(tM({},tT(e,tP)),{},{tabindex:a})),l=s.tabindex,u=tT(s,tN);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tO.createElement("svg",u,r)});tR.displayName="Icon",tR.propTypes={"aria-hidden":t_().string,"aria-label":t_().string,"aria-labelledby":t_().string,children:t_().node,className:t_().string,height:t_().oneOfType([t_().number,t_().string]),preserveAspectRatio:t_().string,tabIndex:t_().string,viewBox:t_().string,width:t_().oneOfType([t_().number,t_().string]),xmlns:t_().string},tR.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var tD=["children"],tL=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tD);return tO.createElement(tR,tA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tO.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)}),tF=["children"],tV=["children"],tz=["children"],tI=["children"],tZ=["children"],tB=["children"],tH=["children"],tU=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tF);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tO.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tO.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),tW=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tV);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tO.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)}),tq=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tz);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tO.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)}),t$=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tI);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tO.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)}),tY=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tZ);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tO.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)}),tG=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tB);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tO.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)}),tX=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tH);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=tO.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),m||(m=tO.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),v||(v=tO.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),g||(g=tO.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),y||(y=tO.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),x||(x=tO.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),b||(b=tO.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),w||(w=tO.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),E||(E=tO.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)}),tK=["children"],tQ=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tK);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tO.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)}),tJ=["children"],t0=["children"],t1=["children"],t2=["children"],t4=["children"],t3=["children"],t5=["children"],t6=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tJ);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tO.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)}),t8=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,t0);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tO.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),t7=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,t1);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tO.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),t9=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,t2);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tO.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),ne=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,t4);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tO.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),nt=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,t3);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=tO.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nn=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,t5);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tO.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)}),nr=["children"],ni=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nr);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=tO.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=tO.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)}),no=["children"],na=["children"],ns=["children"],nl=["children"],nu=["children"],nc=["children"],nd=["children"],nf=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,no);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tO.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nh=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,na);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),R||(R=tO.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=tO.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)}),np=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,ns);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),L||(L=tO.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"})),F||(F=tO.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)}),nm=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nl);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=tO.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),z||(z=tO.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)}),nv=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nu);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),I||(I=tO.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)}),ng=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nc);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tO.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)}),ny=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nd);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=tO.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"})),H||(H=tO.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)}),nx=["children"],nb=["children"],nw=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nx);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),U||(U=tO.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"})),W||(W=tO.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nE=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nb);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),q||(q=tO.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"})),$||($=tO.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nj=["children"],nk=["children"],nS=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nj);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tO.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"})),G||(G=tO.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)}),n_=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nk);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),X||(X=tO.createElement("path",{d:"M23 27.18L20.41 24.59 19 26 23 30 30 23 28.59 21.59 23 27.18z"})),K||(K=tO.createElement("circle",{cx:"11",cy:"8",r:"1"})),Q||(Q=tO.createElement("circle",{cx:"11",cy:"16",r:"1"})),J||(J=tO.createElement("circle",{cx:"11",cy:"24",r:"1"})),ee||(ee=tO.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)}),nO=["children"],nC=["children"],nM=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nO);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=tO.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),en||(en=tO.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),nA=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nC);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),er||(er=tO.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ei||(ei=tO.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),nT=["children"],nP=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nT);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eo||(eo=tO.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),nN=["children"],nR=["children"],nD=["children"],nL=["children"],nF=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nN);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ea||(ea=tO.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),n)}),nV=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nR);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tO.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)}),nz=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nD);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),el||(el=tO.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"})),eu||(eu=tO.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ec||(ec=tO.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),nI=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nL);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tO.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)}),nZ=["children"],nB=["children"],nH=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nZ);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ef||(ef=tO.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)}),nU=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nB);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tO.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)}),nW=["children"],nq=["children"],n$=["children"],nY=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nW);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tO.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)}),nG=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nq);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tO.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"})),ev||(ev=tO.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)}),nX=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,n$);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tO.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"})),ey||(ey=tO.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)}),nK=["children"],nQ=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nK);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=tO.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)}),nJ=["children"],n0=["children"],n1=["children"],n2=["children"],n4=["children"],n3=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nJ);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tO.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)}),n5=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,n0);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tO.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)}),n6=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,n1);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=tO.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)}),n8=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,n2);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tO.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"})),ek||(ek=tO.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)}),n7=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,n4);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eS||(eS=tO.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)}),n9=["children"],re=["children"],rt=["children"],rn=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,n9);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=tO.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"})),eO||(eO=tO.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)}),rr=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,re);return tO.createElement(tR,tA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=tO.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"})),eM||(eM=tO.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)}),ri=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rt);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=tO.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)}),ro=["children"],ra=["children"],rs=["children"],rl=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,ro);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tO.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)}),ru=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,ra);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tO.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"})),eN||(eN=tO.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)}),rc=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rs);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=tO.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)}),rd=["children"],rf=["children"],rh=["children"],rp=["children"],rm=["children"],rv=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rd);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tO.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"})),eL||(eL=tO.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)}),rg=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rf);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eF||(eF=tO.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)}),ry=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rh);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eV||(eV=tO.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"})),ez||(ez=tO.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)}),rx=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rp);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=tO.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"})),eZ||(eZ=tO.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)}),rb=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rm);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tO.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"})),eH||(eH=tO.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)}),rw=["children"],rE=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rw);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=tO.createElement("circle",{cx:"21",cy:"26",r:"2"})),eW||(eW=tO.createElement("circle",{cx:"21",cy:"6",r:"2"})),eq||(eq=tO.createElement("circle",{cx:"4",cy:"16",r:"2"})),e$||(e$=tO.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)}),rj=["children"],rk=["children"],rS=["children"],r_=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rj);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tO.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),rO=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rk);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eG||(eG=tO.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),rC=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rS);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eX||(eX=tO.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"})),eK||(eK=tO.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),rM=["children"],rA=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rM);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=tO.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"})),eJ||(eJ=tO.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)}),rT=["children"],rP=["children"],rN=["children"],rR=["children"],rD=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rT);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=tO.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"})),e1||(e1=tO.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)}),rL=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rP);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=tO.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),e4||(e4=tO.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"})),e3||(e3=tO.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)}),rF=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rN);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=tO.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)}),rV=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rR);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=tO.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),e8||(e8=tO.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)}),rz=["children"],rI=["children"],rZ=["children"],rB=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rz);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e7||(e7=tO.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)}),rH=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rI);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tO.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)}),rU=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rZ);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),te||(te=tO.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)}),rW=["children"],rq=["children"],r$=["children"],rY=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rW);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=tO.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)}),rG=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rq);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tO.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"})),tr||(tr=tO.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)}),rX=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,r$);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=tO.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)}),rK=["children"],rQ=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rK);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=tO.createElement("path",{d:"M8 15H24V17H8z"})),n)}),rJ=["children"],r0=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rJ);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ta||(ta=tO.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)}),r1=["children"],r2=["children"],r4=["children"],r3=["children"],r5=["children"],r6=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,r1);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tO.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=tO.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)}),r8=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,r2);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tu||(tu=tO.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=tO.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)}),r7=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,r4);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tO.createElement("path",{d:"M22 17H24V19H22z"})),tf||(tf=tO.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)}),r9=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,r3);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tO.createElement("path",{d:"M22 17H24V19H22z"})),tp||(tp=tO.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=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,r5);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=tO.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"})),tv||(tv=tO.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)}),it=["children"],ir=["children"],ii=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,it);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tO.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"})),ty||(ty=tO.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)}),io=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,ir);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tx||(tx=tO.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"})),tb||(tb=tO.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"})),tw||(tw=tO.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)}),ia=n(52322);function is(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ia.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 il(e){let{size:t=24,className:n}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,ia.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 iu(e){let{size:t=24,className:n}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,ia.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 ic(e){let{size:t=24,className:n}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ia.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 id(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ia.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 ih(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,ia.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 ip(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ia.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 im(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,ia.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 iv(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,ia.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 ig(e){let{size:t=24}=e;return(0,ia.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,ia.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,ia.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,ia.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,ia.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,ia.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function iy(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ia.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"})})}},47025:function(e,t,n){"use strict";n.d(t,{BW:function(){return i}});var r=n(2850);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})}n(98537)},96206:function(e,t,n){"use strict";n.d(t,{vW:function(){return o},rN:function(){return l},yF:function(){return s},Vz:function(){return h},bc:function(){return a},qN:function(){return d},ll:function(){return c}}),n(81395),n(18149);var r=n(6391),i=n.n(r);function o(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)),a=n/Math.pow(1e3,o);return a.toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function a(e){return 0===e?"0ms":(e/=1e6)<1e3?" ".concat(Math.floor(100*e)/100,"ms"):(e/=1e3)<60?"".concat(Math.floor(100*e)/100,"s"):"".concat(Math.floor(e/60*100)/100,"m")}function s(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 l(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let u=new r.BigNumber("10").exponentiatedBy(24);function c(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(u).toFixed(t)):new r.BigNumber(e).dividedBy(u)}function d(e){return new r.BigNumber(new r.BigNumber(e).times(u).toFixed(0))}let f={fixed:3,dynamicUnits:!0,hastingUnits:!1};function h(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:o}={...f,...t},a=new r.BigNumber(1e12),s=new r.BigNumber(1e3),l=new r.BigNumber(e),u=new r.BigNumber(e).abs(),d=l.isNegative()?"-":"";if(!i)return"".concat(d).concat(c(u).toFormat(n)," SC");if(u.dividedBy(a).isLessThan(1))return o?"".concat(d).concat(u," H"):"".concat(d,"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=u.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===h.length-1)return"".concat(d).concat(i.toFormat(n)," ").concat(h[e])}return""}},2271: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)},26252: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)},55046: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 x},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(60587),o=n(58839),a=n(26252),s=n(4424),l=n(44673),u=n(75903),c=n(47067),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),t=(0,r.useMemo)(()=>e?new h(e):null,[e]);return t}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 e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],i=Array.isArray(r),o=i?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===r[2]||"oc"===r[2]);a?n[r[0]]=r[1].split("/"):i&&(n[r[0]]=r[1]),n=e(t,n)}return n}(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 x(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)},47067: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)},75903: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 s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=n(7552),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let r=Error(a);r.digest=a+";"+t+";"+e+";"+n;let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(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)},7552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let r=n(2271),i=(0,r.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)},4424: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)},23116: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}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(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)},25146: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(67858),("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)},80920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(43219),i=n(16794),o=i._(n(2784)),a=r._(n(28316)),s=r._(n(37412)),l=n(31918),u=n(97686),c=n(45802);n(84759);let d=n(54365),f=r._(n(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.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 m(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,onLoad:E,onError:j,...k}=e;return o.default.createElement("img",{...k,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&p(e,f,y,x,b,v))},[n,f,y,x,b,j,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,x,b,v)},onError:e=>{w(!0),"empty"!==f&&b(!0),j&&j(e)}})});function g(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||r||u.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:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,x]=(0,o.useState)(!1),[b,w]=(0,o.useState)(!1),{props:E,meta:j}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:b});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...E,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:x,setShowAltText:w,ref:t}),j.priority?o.default.createElement(g,{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)},13814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(43219),i=r._(n(2784)),o=n(31068),a=n(33134),s=n(39585),l=n(51570),u=n(19868),c=n(54365),d=n(60587),f=n(93629),h=n(25146),p=n(10694),m=n(23116),v=new Set;function g(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:x,prefetch:b=null,passHref:w,replace:E,shallow:j,scroll:k,locale:S,onClick:_,onMouseEnter:O,onTouchStart:C,legacyBehavior:M=!1,...A}=e;n=x,M&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let T=i.default.useContext(c.RouterContext),P=i.default.useContext(d.AppRouterContext),N=null!=T?T:P,R=!T,D=!1!==b,L=null===b?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:F,as:V}=i.default.useMemo(()=>{if(!T){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(T,s,!0);return{href:e,as:v?(0,o.resolveHref)(T,v):t||e}},[T,s,v]),z=i.default.useRef(F),I=i.default.useRef(V);M&&(r=i.default.Children.only(n));let Z=M?r&&"object"==typeof r&&r.ref:t,[B,H,U]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(I.current!==V||z.current!==F)&&(U(),I.current=V,z.current=F),B(e),Z&&("function"==typeof Z?Z(e):"object"==typeof Z&&(Z.current=e))},[V,Z,F,U,B]);i.default.useEffect(()=>{N&&H&&D&&g(N,F,V,{locale:S},{kind:L},R)},[V,F,H,S,D,null==T?void 0:T.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof _||_(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,F,V,E,j,k,S,R,D)},onMouseEnter(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(D||!R)&&g(N,F,V,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(D||!R)&&g(N,F,V,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,l.isAbsoluteUrl)(V))q.href=V;else if(!M||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,h.getDomainLocale)(V,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(V,e,null==T?void 0:T.defaultLocale))}return M?i.default.cloneElement(r,q):i.default.createElement("a",{...A,...q},n)}),b=x;("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)},93629: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(30857),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},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let r=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,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,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});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]);let p=(0,r.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("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)},31918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(84759);let r=n(69933),i=n(97686);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:x=!1,style:b,onLoad:w,onLoadingComplete:E,placeholder:j="empty",blurDataURL:k,fetchPriority:S,layout:_,objectFit:O,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 F=T.loader||D;delete T.loader,delete T.srcSet;let V="__next_img_default"in F;if(V){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=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(_){"fill"===_&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[_];t&&!d&&(d=t)}let z="",I=a(g),Z=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,z=e.src,!x){if(I||Z){if(I&&!Z){let t=I/e.width;Z=Math.round(e.height*t)}else if(!I&&Z){let t=Z/e.height;I=Math.round(e.width*t)}}else I=e.width,Z=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),V&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=a(v),U=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:C}:{},N?{}:{color:"transparent"},b),W=R||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:I,heightInt:Z,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"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,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:I,quality:H,sizes:d,loader:F}),Y={...T,loading:B?"lazy":p,fetchPriority:S,width:I,height:Z,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},G={unoptimized:f,priority:h,placeholder:j,fill:x};return{props:Y,meta:G}}},69933: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}})},81963: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,{default:function(){return u},unstable_getImgProps:function(){return l}});let r=n(43219),i=n(31918),o=n(84759),a=n(80920),s=r._(n(2088)),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},2088: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},44673: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 o},useServerInsertedHTML:function(){return a}});let r=n(16794),i=r._(n(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},49854:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},1240:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},97729:function(e,t,n){e.exports=n(37412)},96577:function(e,t,n){e.exports=n(81963)},39097:function(e,t,n){e.exports=n(13814)},82876:function(e,t,n){e.exports=n(55046)},5632:function(e,t,n){e.exports=n(60222)},24470:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},34406: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)},88965:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r,i,o,a,s,l,u=function(){return(u=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"==typeof SuppressedError&&SuppressedError;var d=n(2784),f="right-scroll-bar-position",h="width-before-scroll-bar",p=(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=u({async:!0,ssr:!1},r),s),m=function(){},v=d.forwardRef(function(e,t){var n,r,i,o=d.useRef(null),a=d.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),s=a[0],l=a[1],f=e.forwardProps,h=e.children,v=e.className,g=e.removeScrollBar,y=e.enabled,x=e.shards,b=e.sideCar,w=e.noIsolation,E=e.inert,j=e.allowPinchZoom,k=e.as,S=void 0===k?"div":k,_=c(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),O=(n=[o,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,d.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=u(u({},_),s);return d.createElement(d.Fragment,null,y&&d.createElement(b,{sideCar:p,removeScrollBar:g,shards:x,noIsolation:w,inert:E,setCallbacks:l,allowPinchZoom:!!j,lockRef:o}),f?d.cloneElement(d.Children.only(h),u(u({},C),{ref:O})):d.createElement(S,u({},C,{className:v,ref:O}),h))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:h,zeroRight:f};var g=function(e){var t=e.sideCar,n=c(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 d.createElement(r,u({},n))};g.isSideCarExport=!0;var y=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)}}},x=function(){var e=y();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=x();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},E=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[E(n),E(r),E(i)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;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])}},S=b(),_=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(f," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(h," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n right: 0 ").concat(r,";\n }\n \n .").concat(h," .").concat(h," {\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=d.useMemo(function(){return k(i)},[i]);return d.createElement(S,{styles:_(o,!t,i,n?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var M=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",M,M),window.removeEventListener("test",M,M)}catch(e){C=!1}var A=!!C&&{passive:!1},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},P=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},N=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),R(e,n)){var r=D(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},R=function(e,t){return"v"===e?T(t):P(t)},D=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},L=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=D(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&R(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},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},I=0,Z=[],B=(p.useMedium(function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),i=d.useState(I++)[0],o=d.useState(function(){return b()})[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;iMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=N(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=N(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 L(h,t,e,"h"===h?l:u,!0)},[]),l=d.useCallback(function(e){if(Z.length&&Z[Z.length-1]===o){var n="deltaY"in e?V(e):F(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(z).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),u=d.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)},[]),c=d.useCallback(function(e){n.current=F(e),r.current=void 0},[]),f=d.useCallback(function(t){u(t.type,V(t),t.target,s(t,e.lockRef.current))},[]),h=d.useCallback(function(t){u(t.type,F(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return Z.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,A),document.addEventListener("touchmove",l,A),document.addEventListener("touchstart",c,A),function(){Z=Z.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,A),document.removeEventListener("touchmove",l,A),document.removeEventListener("touchstart",c,A)}},[]);var p=e.removeScrollBar,m=e.inert;return d.createElement(d.Fragment,null,m?d.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?d.createElement(O,{gapMode:"margin"}):null)}),g),H=d.forwardRef(function(e,t){return d.createElement(v,u({},e,{ref:t,sideCar:B}))});H.classNames=v.classNames;var U=H},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(34406);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 * @@ -65,7 +65,7 @@ PERFORMANCE OF THIS SOFTWARE. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */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},o=r.useState,a=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=o({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]),a(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 Y},Ry:function(){return em},Z_:function(){return W}});try{v=Map}catch(e){}try{g=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(v&&t instanceof v)return new Map(Array.from(t.entries()));if(g&&t instanceof g)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=n.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],n,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=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?"["+o.call(e)+"]":"RegExp"===r?a.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,o=`${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&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},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={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:d,string:f,number:h,date:p,object:m,array:{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"},boolean:{isValue:"${path} field must be ${value}"}});var v,g,y=n(93352),x=n.n(y),b=e=>e&&e.__isYupSchema__,w=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!x()(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,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return"function"==typeof a?a(n):n.concat(a.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(!b(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}};function E(e){return null==e?[]:[].concat(e)}function j(){return(j=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 S=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function O(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,u=S(t),c=r.length,d=[];if(a=a||[],!c)return a.length?u(new _(a,o,l)):u(null,o);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 T.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=M()(N({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),n=new _(_.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let x=N({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(x,i,x)).then(e=>{_.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var b;if(r=f.call(x,i,x),"function"==typeof(null==(b=r)?void 0:b.then))throw Error(`Validation test of type: "${x.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}T.prototype.__isYupRef=!0;let D=e=>e.substr(0,e.length-1).substr(1);class L{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(T.isRef(n)?e(n):n),[])}add(e){T.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){T.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new L;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 F(){return(F=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=F({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=F({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r(F({},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=F({},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(F({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=c(e),o=c(r);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". + */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},o=r.useState,a=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=o({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]),a(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 Y},Ry:function(){return em},Z_:function(){return W}});try{v=Map}catch(e){}try{g=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(v&&t instanceof v)return new Map(Array.from(t.entries()));if(g&&t instanceof g)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=n.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],n,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=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?"["+o.call(e)+"]":"RegExp"===r?a.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,o=`${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&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},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={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:d,string:f,number:h,date:p,object:m,array:{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"},boolean:{isValue:"${path} field must be ${value}"}});var v,g,y=n(93352),x=n.n(y),b=e=>e&&e.__isYupSchema__,w=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!x()(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,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return"function"==typeof a?a(n):n.concat(a.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(!b(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}};function E(e){return null==e?[]:[].concat(e)}function j(){return(j=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=>{S.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,S)}}let _=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function O(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,u=_(t),c=r.length,d=[];if(a=a||[],!c)return a.length?u(new S(a,o,l)):u(null,o);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 P.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=M()(N({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),n=new S(S.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let x=N({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(x,i,x)).then(e=>{S.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var b;if(r=f.call(x,i,x),"function"==typeof(null==(b=r)?void 0:b.then))throw Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}S.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}P.prototype.__isYupRef=!0;let D=e=>e.substr(0,e.length-1).substr(1);class L{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(P.isRef(n)?e(n):n),[])}add(e){P.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){P.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new L;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 F(){return(F=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=F({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=F({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r(F({},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=F({},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(F({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=c(e),o=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} -`+(o!==i?`result of cast: ${o}`:""))}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:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,F({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),O({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);O({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(F({},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(F({},t,{value:e}))._validate(e,F({},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=R(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 T(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=R({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=R({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=R({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,r={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)};return r}}for(let e of(V.prototype.__isYupSchema__=!0,["validate","validateSync"]))V.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:o,schema:a}=function(e,t,n,r=n){let i,o,a;return t?((0,A.forEach)(t,(s,l,u)=>{let c=l?D(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: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return a[e](i&&i[o],F({},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 z=e=>null==e;let I=/^((([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,Z=/^((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,B=/^(?:[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,H=e=>z(e)||e===e.trim(),U=({}).toString();function W(){return new q}class q 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===U?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 z(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 z(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 z(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=>z(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(I,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(Z,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(B,{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:H})}lowercase(e=f.lowercase){return this.transform(e=>z(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>z(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toUpperCase()})}}W.prototype=q.prototype;let $=e=>e!=+e;function Y(){return new G}class G 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&&!$(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(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 z(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 z(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=>z(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>z(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=>z(t)?t:Math[e](t))}}Y.prototype=G.prototype;var K=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let X=new Date(""),Q=e=>"[object Date]"===Object.prototype.toString.call(e);function J(){return new ee}class ee 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=K.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||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))?X:new Date(e)})})}_typeCheck(e){return Q(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(T.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 z(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 z(e)||e<=this.resolve(n)}})}}ee.INVALID_DATE=X,J.prototype=ee.prototype,J.INVALID_DATE=X;var et=n(57370),en=n.n(et),er=n(96009),ei=n.n(er),eo=n(19950),ea=n.n(eo),es=n(95159),el=n.n(es);function eu(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 ec(e){return(t,n)=>eu(e,t)-eu(e,n)}function ed(){return(ed=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eh=ec([]);class ep extends V{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eh,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 ef(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,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ed({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let n=i[e],a=x()(r,e);if(n){let i;let o=r[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!_.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!ef(u)){n(r[0]||null,u);return}a=a||u,O({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],ed({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[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=ed({},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=ec(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 o(e,t){let o=(0,A.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(let t in e)if(x()(e,t)){let n=e[t];r.add(t),T.isRef(n)&&n.isSibling?o(n.path,t):b(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return el().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,A.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return x()(i,e)&&(o=ed({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=m.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=m.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ea()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(ei())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function em(e){return new ep(e)}em.prototype=ep.prototype},44868:function(e,t,n){"use strict";var r,i,o=Object.create,a=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||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>x,AnimatedArray:()=>C,AnimatedObject:()=>O,AnimatedString:()=>j,AnimatedValue:()=>w,createHost:()=>z,getAnimated:()=>v,getAnimatedType:()=>P,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(a({},"__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(),x=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},b=n(6901),w=class extends x{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,b.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 b.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,b.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},E=n(6901),j=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,E.createInterpolator)({output:[e,e]})}static create(e){return new j(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(E.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,E.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},k=n(6901),_=n(6901),S={dependencies:null},O=class extends x{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,_.eachProp)(this.source,(n,r)=>{m(n)?t[r]=n.getValue(e):(0,_.hasFluidValue)(n)?t[r]=(0,_.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,_.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,_.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){S.dependencies&&(0,_.hasFluidValue)(e)&&S.dependencies.add(e);let t=y(e);t&&(0,_.each)(t,e=>this.add(e))}},C=class extends O{constructor(e){super(e)}static create(e){return new C(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,k.isAnimatedString)(e)?j:w).create(e)}var A=n(6901);function P(e){let t=v(e);return t?t.constructor:A.is.arr(e)?C:(0,A.isAnimatedString)(e)?j:w}var T=n(6901),N=(i=null!=(r=n(2784))?o(u(r)):{},d(r&&r.__esModule?i:a(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 o;let a;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]=(o=r,a=new Set,S.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new O(o),S.dependencies=null,[o,a]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new F(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})})},F=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},V=Symbol.for("AnimatedComponent"),z=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new O(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=I(e)||"Anonymous";return(e=T.is.str(e)?o[e]||(o[e]=L(e,i)):e[V]||(e[V]=L(e,i))).displayName=`Animated(${t})`,e};return(0,T.eachProp)(e,(t,n)=>{T.is.arr(e)&&(n=I(t)),o[n]=o(t)}),{animated:o}},I=e=>T.is.str(e)?e:e&&T.is.str(e.displayName)?e.displayName:T.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,o=Object.create,a=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||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>Q,Controller:()=>eE,FrameValue:()=>ei,Globals:()=>tl.Globals,Interpolation:()=>tn,Spring:()=>e5,SpringContext:()=>eN,SpringRef:()=>eL,SpringValue:()=>ed,Trail:()=>e8,Transition:()=>e7,config:()=>F,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>k,interpolate:()=>ts,to:()=>ta,update:()=>tu,useChain:()=>A,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eQ,useSpring:()=>eV,useSpringRef:()=>eZ,useSpringValue:()=>eH,useSprings:()=>eF,useTrail:()=>eW,useTransition:()=>eG}),e.exports=d(a({},"__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,x=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,b=e=>e,w=(e,t=b)=>{let n=E;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},E=["config","onProps","onStart","onChange","onPause","onResume","onRest"],j={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 k(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{j[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 _(e){return e=(0,m.getFluidValue)(e),m.is.arr(e)?e.map(_):(0,m.isAnimatedString)(e)?m.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function S(e){for(let t in e)return!0;return!1}function O(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function C(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 A(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let o=e.current;if(o.length){let a=n*t[i];isNaN(a)?a=r:r=a,(0,p.each)(o,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+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 P=n(6901),T=n(2784),N=n(6901),R=n(6901),D=n(25447),L=n(6901),F={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}},V={...F.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},z=class{constructor(){this.velocity=0,Object.assign(this,V)}};function I(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 Z=[],B=class{constructor(){this.changed=!1,this.values=Z,this.toValues=null,this.fromValues=Z,this.config=new z,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,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),o.pause()):(o.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{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var W=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?G(e.get()):t.every(e=>e.noop)?$(e.get()):Y(e.get(),t.every(e=>e.finished)),$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Y=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),G=e=>({value:e,cancelled:!0,finished:!1});function K(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()=>{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)&&G(r)||i!==n.asyncId&&Y(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let o=new Q,a=new J;return(async()=>{if(W.Globals.skipAnimation)throw X(n),a.result=Y(r,!1),d(a),a;h(o);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(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return X(n),Y(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=Y(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=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return W.is.fun(a)&&W.raf.batchedUpdates(()=>{a(m,r,r.item)}),m})():l}function X(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})}},eo=Symbol.for("SpringPhase"),ea=e=>(1&e[eo])>0,es=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,eu=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ec=(e,t)=>t?e[eo]|=4:e[eo]&=-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 ea(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:o}=r,a=(0,D.getPayload)(r.to);!a&&(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:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,o.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(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,r=o.clamp?0:o.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)&&(a=-a*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(o.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),a=((d=n+o.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=a,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=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(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 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()),X(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)||O(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return ea(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 o=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(o.pauseQueue),ey(this,"onPause",Y(this,ef(this,this.animation.to)),this))},resume:()=>{el(this)&&(ec(this,!1),es(this)&&this._resume(),(0,R.flushCalls)(o.resumeQueue),ey(this,"onResume",Y(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(G(this));let r=!R.is.und(e.to),i=!R.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(G(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||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=O(t.to),{config:m}=s,{decay:y,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(I(n={...n},t),t={...n,...t}),I(e,t),Object.assign(e,t),V)null==e[r]&&(e[r]=V[r]);let{frequency:r,damping:i}=e,{mass:o}=e;L.is.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,v(t.config,o),t.config!==a.config?v(a.config,o):void 0);let b=(0,D.getAnimated)(this);if(!b||R.is.und(c))return n(Y(this,!0));let w=R.is.und(t.reset)?i&&!t.default:!R.is.und(d)&&g(t.reset,o),E=w?d:this.get(),j=_(c),k=R.is.num(j)||R.is.arr(j)||(0,R.isAnimatedString)(j),S=!p&&(!k||g(a.immediate||t.immediate,o));if(h){let e=(0,D.getAnimatedType)(c);if(e!==b.constructor){if(S)b=this._set(j);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let C=b.constructor,M=(0,R.hasFluidValue)(c),A=!1;if(!M){let e=w||!ea(this)&&f;(h||e)&&(M=!(A=(0,R.isEqual)(_(E),j))),((0,R.isEqual)(s.immediate,S)||S)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,x)||(M=!0)}if(A&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=b.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:C==D.AnimatedString?[1]:(0,R.toArray)(j)),s.immediate==S||(s.immediate=S,S||w||this._set(l)),M)){let{onRest:e}=s;(0,R.each)(ev,e=>eg(this,t,e));let r=Y(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(a.onRest,r):s.onStart?.(r,this)})}w&&this._set(E),p?n(K(t.to,t,this._state,this)):M?this._start():es(this)&&!h?this._pendingCalls.add(n):n($(E))}_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",Y(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?G(this.get()):Y(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=_(t),r=_(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&&k(r),o=(i||e).reverse,a=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!o||O(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ep(e){let{to:t,from:n}=e=k(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]!==x(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ex=n(6901),eb=["onStart","onChange","onRest"],ew=1,eE=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];ex.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,ex.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),ej(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,ex.each)((0,ex.toArray)(t),t=>n[t].stop(!!e))}else X(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ex.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].pause())}return this}resume(e){if(ex.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].resume())}return this}each(e){(0,ex.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,ex.flush)(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&&(0,ex.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,ex.flush)(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)}ex.raf.onFrame(this._onFrame)}};function ej(e,t){return Promise.all(t.map(t=>ek(e,t))).then(t=>q(e,t))}async function ek(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=ex.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=ex.is.arr(i)||ex.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,ex.each)(eb,n=>{let r=t[n];if(ex.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,ex.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===x(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:ex.noop,resume:ex.noop,start(t,n){h?(X(d,e._lastAsyncId),n(G(e))):(t.onRest=s,n(K(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=eh(t,a,i);if(n)return eM(e,[n]),ek(e,n,!0)}return l&&ex.raf.batchedUpdates(()=>l(p,e,e.item)),p}function e_(e,t){let n={...e.springs};return t&&(0,ex.each)((0,ex.toArray)(t),e=>{ex.is.und(e.keys)&&(e=ep(e)),ex.is.obj(e.to)||(e={...e,to:void 0}),eC(n,e,e=>eO(e))}),eS(e,n),n}function eS(e,t){(0,ex.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ex.addFluidObserver)(t,e))})}function eO(e,t){let n=new ed;return n.key=e,t&&(0,ex.addFluidObserver)(n,t),n}function eC(e,t,n){t.keys&&(0,ex.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,ex.each)(t,t=>{eC(e.springs,t,t=>eO(t,e))})}var eA=f(n(2784)),eP=n(2784),eT=n(6901),eN=({children:e,...t})=>{let n=(0,eP.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eT.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=eR;return eA.createElement(o,{value:t},e)},eR=(Object.assign(eN,eA.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 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(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 eF(e,t,n){let r=N.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,T.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),o=(0,T.useRef)(0),a=(0,N.useForceUpdate)(),s=(0,T.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=e_(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{eS(e,n),s.queue.push(()=>{r(ej(e,t))}),a()}):ej(e,t)}}),[]),l=(0,T.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=>{C(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,T.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>e_(e,u[t])),h=(0,T.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&S(h);(0,N.useIsomorphicLayoutEffect)(()=>{o.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 eV(e,t){let n=P.is.fun(e),[[r],i]=eF(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var ez=n(2784),eI=()=>eL(),eZ=()=>(0,ez.useState)(eI)[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,o,a=eF(e,(e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(a[1].current,(e,t)=>{let n=a[1].current[t+(i?1:-1)];if(M(e,o),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=o??a[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}},a}return a[0]}var eq=f(n(2784)),e$=n(2784),eY=n(6901);function eG(e,t,n){let r=eY.is.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,e$.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),h=(0,eY.toArray)(e),p=[],m=(0,e$.useRef)(null),g=i?null:m.current;(0,eY.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eY.useOnce)(()=>((0,eY.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eY.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),C(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):eK++})}return eY.is.und(n)?e:eY.is.fun(n)?e.map(n):(0,eY.toArray)(n)}(h,r?r():t,g),x=i&&m.current||[];(0,eY.useIsomorphicLayoutEffect)(()=>(0,eY.each)(x,({ctrl:e,item:t,key:n})=>{C(e,f),v(u,t,n)}));let b=[];if(g&&(0,eY.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),x.push(e)):~(t=b[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eY.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new eE},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;(0,eY.each)(b,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eY.is.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let E=-a,j=(0,eY.useForceUpdate)(),_=w(t),O=new Map,A=(0,e$.useRef)(new Map),P=(0,e$.useRef)(!1);(0,eY.each)(p,(e,n)=>{let i=e.key,o=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){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=eY.is.obj(f)?k(f):{to:f}).config){let t=d||_.config;f.config=v(t,e.item,n,h)}E+=a;let x={..._,delay:p+E,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eY.is.und(x.from)){let i=r?r():t,o=eY.is.und(i.initial)||g?i.from:i.initial;x.from=v(o,e.item,n)}let{onResolve:b}=x;x.onResolve=e=>{v(b,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(j,r));return}}}e&&t.some(e=>e.expired)&&(A.current.delete(n),l&&(P.current=!0),j())}};let w=e_(e.ctrl,x);"leave"===h&&l?A.current.set(e,{phase:h,springs:w,payload:x}):O.set(e,{phase:h,springs:w,payload:x})});let T=(0,e$.useContext)(eN),N=(0,eY.usePrev)(T),R=T!==N&&S(T);(0,eY.useIsomorphicLayoutEffect)(()=>{R&&(0,eY.each)(p,e=>{e.ctrl.start({default:T})})},[T]),(0,eY.each)(O,(e,t)=>{if(A.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eY.useIsomorphicLayoutEffect)(()=>{(0,eY.each)(A.current.size?A.current:O,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:T}),t&&(M(r,t.ref),(r.ref||f)&&!P.current?r.update(t):(r.start(t),P.current&&(P.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=O.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eY.is.str(t.key)||eY.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eK=1,eX=n(6901),eQ=({container:e,...t}={})=>{let[n,r]=eV(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eX.useIsomorphicLayoutEffect)(()=>{let t=(0,eX.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,eX.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eJ=n(6901),e0=({container:e,...t})=>{let[n,r]=eV(()=>({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)(),o=e2.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=eV(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),r(!0),o?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]),o?[i,c]:[i,n]}function e5({children:e,...t}){return e(eV(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 eG(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)&&to(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()),to(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(),to(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 to(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 ta=(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,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eP,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eA,clamp:()=>J,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>ex,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eG,each:()=>T,eachProp:()=>N,easings:()=>ej,flush:()=>D,flushCalls:()=>V,frameLoop:()=>Y,getFluidObservers:()=>eC,getFluidValue:()=>eO,hasFluidValue:()=>eS,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>A,isAnimatedString:()=>eQ,isEqual:()=>P,isSSR:()=>z,noop:()=>C,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eT,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tx,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))a.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:()=>I,createStringInterpolator:()=>L,skipAnimation:()=>Z,to:()=>F,willAdvance:()=>B});var c=S(),d=e=>E(e,c),f=S();d.write=e=>E(e,f);var h=S();d.onStart=e=>E(e,h);var p=S();d.onFrame=e=>E(e,p);var m=S();d.onFinish=e=>E(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),b-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),b+=1,j(),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"):_()};var x=-1,b=0,w=!1;function E(e,t){w?(t.delete(e),e(0)):(t.add(e),j())}function j(){x<0&&(x=0,"demand"!==d.frameLoop&&y(k))}function k(){~x&&(y(k),d.batchedUpdates(_))}function _(){let e=x,t=g(x=d.now());if(t&&(O(v.splice(0,t),e=>e.handler()),b-=t),!b){x=-1;return}h.flush(),c.flush(e?Math.min(64,x-e):16.667),p.flush(),f.flush(),m.flush()}function S(){let e=new Set,t=e;return{add(n){b+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(b-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,b-=t.size,O(t,t=>t(n)&&e.add(t)),b+=e.size,t=e)}}}function O(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function C(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),A={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 P(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(A.arr(e)){for(let r=0;rA.und(e)?[]:A.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),T(n,t)}}var L,F,V=(e,...t)=>D(e,e=>e(...t)),z=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),I=null,Z=!1,B=C,H=e=>{e.to&&(F=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(I=e.colors),null!=e.skipAnimation&&(Z=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,Y={get idle(){return!U.size&&!W.length},start(e){$>e.priority?(U.add(e),d.onStart(G)):(K(e),d(Q))},advance:Q,sort(e){if($)d.onFrame(()=>Y.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],U.clear()}};function G(){U.forEach(K),U.clear(),d(Q)}function K(e){W.includes(e)||X(e)}function X(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)),eo=RegExp("rgba"+er(et,et,et,et)),ea=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:I&&void 0!==I[e]?I[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.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=ea.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;return null===n?e:`rgba(${(4278190080&(n=n||0))>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`}var ex=(e,t,n)=>{if(A.fun(e))return e;if(A.arr(e))return ex({range:e,output:t,extrapolate:n});if(A.str(e.output[0]))return L(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)}},eb=2*Math.PI/3,ew=2*Math.PI/4.5,eE=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,ej={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)*eb),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*eb)+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-eE(1-e),easeOutBounce:eE,easeInOutBounce:e=>e<.5?(1-eE(1-2*e))/2:(1+eE(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)}},ek=Symbol.for("FluidValue.get"),e_=Symbol.for("FluidValue.observers"),eS=e=>!!(e&&e[ek]),eO=e=>e&&e[ek]?e[ek]():e,eC=e=>e[e_]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eA(e,t){let n=e[e_];n&&n.forEach(e=>{eM(e,t)})}var eP=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eT(this,e)}},eT=(e,t)=>eL(e,ek,t);function eN(e,t){if(e[ek]){let n=e[e_];n||eL(e,e_,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[e_];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[e_]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eD,eL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eF=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eV=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ez=RegExp(`(${eF.source})(%|[a-z]+)`,"i"),eI=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eZ=/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&&eZ.test(n)?eB(n):n||e},eH=e=>{let t=eZ.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=I?RegExp(`(${Object.keys(I).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eO(e).replace(eZ,eB).replace(eV,ey).replace(eD,ey)),n=t.map(e=>e.match(eF).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=>ex({...e,output:t}));return e=>{let n=!ez.test(t[0])&&t.find(e=>ez.test(e))?.replace(eF,""),i=0;return t[0].replace(eF,()=>`${r[i++](e)}${n||""}`).replace(eI,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)}},eY=e$(console.warn);function eG(){eY(`${eq}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eK=e$(console.warn);function eX(){eK(`${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 A.str(e)&&("#"==e[0]||/\d/.test(e)||!z()&&eZ.test(e)||e in(I||{}))}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)?.())}},to=n(2784);function ta(e){let t=(0,to.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,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}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tx(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tb=n(2784),tw=()=>{let[e,t]=(0,tb.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,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))i.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,n){"use strict";var r,i,o=Object.defineProperty,a=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||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__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),x=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(x.forEach(n=>e[y(n,t)]=e[t]),e),g);var b=n(25447),w=n(6901),E=/^(matrix|translate|scale|rotate|skew)/,j=/^(translate)/,k=/^(rotate|skew)/,_=(e,t)=>w.is.num(e)&&0!==e?e+t:e,S=(e,t)=>w.is.arr(e)?e.every(e=>S(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,O=class extends b.AnimatedObject{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=>_(e,"px")).join(",")})`,S(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(E.test(t)){if(delete r[t],w.is.und(e))return;let n=j.test(t)?"px":k.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${_(i,n)})`,S(i,0)]:e=>[`${t}(${e.map(e=>_(e,n)).join(",")})`,S(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new C(i,o)),super(r)}},C=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]),[o,a]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+o,t=t&&a}),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:o,scrollLeft:a,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!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new O(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 o;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:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.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},[]);return i(e,l,c,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 A},mY:function(){return _}});var r=n(72331),i=n(2784),o=n(40844),a='[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)=>o(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=C(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=C(()=>new Set),p=C(()=>new Map),v=C(()=>new Map),g=C(()=>new Set),y=S(e),{label:x,children:b,value:w,onValueChange:E,filter:j,shouldFilter:k,..._}=e,A=i.useId(),P=i.useId(),R=i.useId(),D=T();O(()=>{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,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)Z(),z(),D(1,I);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(a=(o=y.current).onValueChange)||a.call(o,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),F=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,V(t)),D(2,()=>{z(),L.emit()}))},item:(e,t)=>(o.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{Z(),z(),r.current.value||I(),L.emit()}),()=>{v.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{Z(),I(),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:x||e["aria-label"],listId:A,inputId:R,labelId:P}),[]);function V(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(`${a}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function I(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);L.setState("value",t||void 0)}function Z(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=V(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(a))?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),o=r[i+e];null!=(t=y.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&L.setState("value",o.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(a),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,a):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,a))?void 0:n.querySelector(u);r?L.setState("value",r.getAttribute(d)):q(e)}let Y=()=>W(U().length-1),G=e=>{e.preventDefault(),e.metaKey?Y():e.altKey?$(1):q(1)},K=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:M([n,t]),..._,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=_.onKeyDown)||t.call(_,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&G(e);break;case"ArrowDown":G(e);break;case"p":case"k":e.ctrlKey&&K(e);break;case"ArrowUp":K(e);break;case"Home":e.preventDefault(),W(0);break;case"End":e.preventDefault(),Y();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(c);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:N},x),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:F},b)))}),x=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(g),a=p(),s=S(e);O(()=>a.item(n,o),[]);let l=P(n,r,[e.value,e.children,r]),u=v(),d=A(e=>e.value&&e.value===l.current),f=A(e=>!1===a.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:x,...b}=e;return i.createElement("div",{ref:M([r,t]),...b,"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)}),b=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=i.useId(),s=i.useRef(null),l=i.useRef(null),u=i.useId(),c=p(),d=A(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));O(()=>c.group(a),[]),P(a,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:a},r);return i.createElement("div",{ref:M([s,t]),...o,"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,o=i.useRef(null),a=A(e=>!e.search);return n||a?i.createElement("div",{ref:M([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),E=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v(),s=A(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&a.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:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),j=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),s=p();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.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([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),k=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,container:a,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:o},i.createElement(r.h_,{container:a},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...s}))))}),_=Object.assign(y,{List:j,Item:x,Input:E,Group:b,Separator:w,Dialog:k,Empty:i.forwardRef((e,t)=>{let n=i.useRef(!0),r=A(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,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function S(e){let t=i.useRef(e);return O(()=>{t.current=e}),t}var O=typeof window>"u"?i.useEffect:i.useLayoutEffect;function C(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 A(e){let t=v(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function P(e,t,n){let r=i.useRef(),o=p();return O(()=>{var i;let a=(()=>{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()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(d,a),r.current=a}),r}var T=()=>{let[e,t]=i.useState(),n=C(()=>new Map);return O(()=>{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"}},63955:function(e,t,n){"use strict";n.d(t,{cI:function(){return em}});var r=n(2784),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(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)=>a(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},x={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={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 o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==x.all&&(t._proxyFormState[o]=!r||x.all),n&&(n[o]=!0),e[o])});return i},E=e=>l(e)&&!Object.keys(e).length,j=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return E(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||x.all))},k=e=>Array.isArray(e)?e:[e],_=e=>"string"==typeof e,S=(e,t,n,r,i)=>_(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),O=e=>/^\w*$/.test(e),C=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=O(t)?[t]:C(t),o=i.length,a=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let P=(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)&&P(r,t)}}};var T=e=>({isOnSubmit:!e||e===x.onSubmit,isOnBlur:e===x.onBlur,isOnChange:e===x.onChange,isOnAll:e===x.all,isOnTouch:e===x.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,F=e=>"function"==typeof e,V=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},z=e=>_(e),I=e=>"radio"===e.type,Z=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 Y=e=>l(e)&&!Z(e)?e:{value:e,message:""},G=async(e,t,n,r,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:x,valueAsNumber:w,mount:j,disabled:k}=e._f,S=g(t,x);if(!j||k)return{};let O=u?u[0]:s,C=e=>{r&&O.reportValidity&&(O.setCustomValidity(D(e)?"":e||""),O.reportValidity())},M={},P=I(s),T=i(s),N=(w||L(s))&&v(s.value)&&v(S)||V(s)&&""===s.value||""===S||Array.isArray(S)&&!S.length,R=A.bind(null,x,n,M),B=(e,t,n,r=b.maxLength,i=b.minLength)=>{let o=e?t:n;M[x]={type:e?r:i,message:o,ref:s,...R(e?r:i,o)}};if(o?!Array.isArray(S)||!S.length:c&&(!(P||T)&&(N||a(S))||D(S)&&!S||T&&!U(u).isValid||P&&!q(u).isValid)){let{value:e,message:t}=z(c)?{value:!!c,message:c}:Y(c);if(e&&(M[x]={type:b.required,message:t,ref:O,...R(b.required,t)},!n))return C(t),M}if(!N&&(!a(h)||!a(p))){let e,t;let r=Y(p),i=Y(h);if(a(S)||isNaN(S)){let n=s.valueAsDate||new Date(S),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;_(r.value)&&S&&(e=a?o(S)>o(r.value):l?S>r.value:n>new Date(r.value)),_(i.value)&&S&&(t=a?o(S)r.value),a(i.value)||(t=n+e.value,i=!a(t.value)&&S.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return C(M[x].message),M}if(m&&!N&&_(S)){let{value:e,message:t}=Y(m);if(Z(e)&&!S.match(e)&&(M[x]={type:b.pattern,message:t,ref:s,...R(b.pattern,t)},!n))return C(t),M}if(y){if(F(y)){let e=await y(S,t),r=$(e,O);if(r&&(M[x]={...r,...R(b.validate,r.message)},!n))return C(r.message),M}else if(l(y)){let e={};for(let r in y){if(!E(e)&&!n)break;let i=$(await y[r](S,t),O,r);i&&(e={...i,...R(r,i.message)},C(i.message),n&&(M[x]=e))}if(!E(e)&&(M[x]={ref:O,...e},!n))return M}}return C(!0),M};function K(e,t){let n=Array.isArray(t)?t:O(t)?[t]:C(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=>a(e)||!s(e);function J(e,t){if(Q(e)||Q(t))return e===t;if(o(e)&&o(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(o(n)&&o(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=>I(e)||i(e),en=e=>V(e)&&e.isConnected,er=e=>{for(let t in e)if(F(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])):a(e[n])||(t[n]=!0);return t}var eo=(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],a(n)?{}:n[i],r[i]):r[i]=!J(t[i],n[i]);return r})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>v(e)?e:t?""===e?NaN:e?+e:e:n&&_(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:I(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(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:Z(e)?e.source:l(e)?Z(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||O(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};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&&K(e,t);let ep={mode:x.onSubmit,reValidateMode:x.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:F(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:F(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:F(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)||{},b=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},j={mount:new Set,unMount:new Set,array:new Set,watch:new Set},O=0,C={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},A={values:X(),array:X(),state:X()},z=e.resetOptions&&e.resetOptions.keepDirtyValues,I=T(r.mode),Z=T(r.reValidateMode),B=r.criteriaMode===x.all,H=e=>t=>{clearTimeout(O),O=setTimeout(e,t)},U=async e=>{if(C.isValid||e){let e=r.resolver?E((await ei()).errors):await ev(c,!0);e!==s.isValid&&A.state.next({isValid:e})}},W=e=>C.isValidating&&A.state.next({isValidating:e}),q=(e,t)=>{M(s.errors,e,t),A.state.next({errors:s.errors})},$=(e,t,n,r)=>{let i=g(c,e);if(i){let o=g(b,e,v(n)?g(f,e):n);v(o)||r&&r.defaultChecked||t?M(b,e,t?o:es(i._f)):ex(e,o),w.mount&&U()}},Y=(e,t,n,r,i)=>{let o=!1,a=!1,l={name:e};if(!n||r){C.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let n=J(g(f,e),t);a=g(s.dirtyFields,e),n?K(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||C.dirtyFields&&!n!==a}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,o=o||C.touchedFields&&t!==n)}return o&&i&&A.state.next(l),o?l:{}},er=(t,r,i,o)=>{let a=g(s.errors,t),l=C.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(O),n=null,i?M(s.errors,t,i):K(s.errors,t)),(i?!J(a,i):a)||!E(o)||l){let e={...o,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},A.state.next(e)}W(!1)},ei=async e=>r.resolver(b,r.context,el(e||j.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):K(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=j.array.has(e.name),a=await G(o,b,B,r.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(n.valid=!1,t))break;t||(g(a,e.name)?i?R(s.errors,a,e.name):M(s.errors,e.name,a[e.name]):K(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(b,e,t),!J(ek(),f)),ey=(e,t,n)=>S(e,j,{...w.mount?b:v(t)?f:_(e)?{[e]:t}:t},n,t),ex=(e,t,n={})=>{let r=g(c,e),o=t;if(r){let n=r._f;n&&(n.disabled||M(b,e,ea(t,n)),o=V(n.ref)&&a(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):L(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||A.values.next({name:e,values:{...b}})))}(n.shouldDirty||n.shouldTouch)&&Y(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ej(e)},eb=(e,t,n)=>{for(let r in t){let i=t[r],a=`${e}.${r}`,s=g(c,a);!j.array.has(e)&&Q(i)&&(!s||s._f)||o(i)?ex(a,i,n):eb(a,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),o=j.array.has(e),l=p(n);M(b,e,l),o?(A.array.next({name:e,values:{...b}}),(C.isDirty||C.dirtyFields)&&r.shouldDirty&&A.state.next({name:e,dirtyFields:eo(f,b),isDirty:eg(e,l)})):!i||i._f||a(l)?ex(e,l,r):eb(e,l,r),N(e,j)&&A.state.next({...s}),A.values.next({name:e,values:{...b}}),w.mount||t()},eE=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!r.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,Z,I),m=N(i,j,h);M(b,i,f),h?(a._f.onBlur&&a._f.onBlur(e),n&&n(0)):a._f.onChange&&a._f.onChange(e);let v=Y(i,f,h,!1),x=!E(v)||m;if(h||A.values.next({name:i,type:e.type,values:{...b}}),p)return C.isValid&&U(),x&&A.state.next({name:i,...m?{}:v});if(!h&&m&&A.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=E(e)}else l=(await G(a,b,B,r.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(b,i,f))&&(l?d=!1:C.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&ej(a._f.deps),er(i,d,l,v))}},ej=async(e,t={})=>{let n,i;let o=k(e);if(W(!0),r.resolver){let t=await em(v(e)?e:o);n=E(t),i=e?!o.some(e=>g(t,e)):n}else e?((i=(await Promise.all(o.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 A.state.next({...!_(e)||C.isValid&&n!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&P(c,e=>e&&g(s.errors,e),e?o:j.mount),i},ek=e=>{let t={...f,...w.mount?b:{}};return v(e)?t:_(e)?g(t,e):e.map(e=>g(t,e))},e_=(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)}),eS=(e,t={})=>{for(let n of e?k(e):j.mount)j.mount.delete(n),j.array.delete(n),t.keepValue||(K(c,n),K(b,n)),t.keepError||K(s.errors,n),t.keepDirty||K(s.dirtyFields,n),t.keepTouched||K(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||K(f,n);A.values.next({values:{...b}}),A.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},eO=(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}}),j.mount.add(e),n?i&&M(b,e,t.disabled?void 0:g(b,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:eE,onBlur:eE,ref:i=>{if(i){eO(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...o?{refs:[...a.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(j.array,e)&&w.action)&&j.unMount.add(e)}}},eC=()=>r.shouldFocusError&&P(c,e=>e&&g(s.errors,e),j.mount),eM=(n,r={})=>{let i=n||f,o=p(i),a=n&&!E(n)?o:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||z)for(let e of j.mount)g(s.dirtyFields,e)?M(a,e,g(b,e)):ew(e,g(a,e));else{if(h&&v(n))for(let e of j.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(V(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}b=e.shouldUnregister?r.keepDefaultValues?p(f):{}:o,A.array.next({values:{...a}}),A.values.next({values:{...a}})}j={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!C.isValid||!!r.keepIsValid,w.watch=!!e.shouldUnregister,A.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?eo(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eA=(e,t)=>eM(F(e)?e(b):e,t);return{control:{register:eO,unregister:eS,getFieldState:e_,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of j.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&eS(e)}j.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(o&&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(C.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=n(g(s.touchedFields,e),r.argA,r.argB);i&&M(s.touchedFields,e,t)}C.dirtyFields&&(s.dirtyFields=eo(f,b)),A.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(b,e,t)},_getFieldArray:t=>m(g(w.mount?b:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>F(r.defaultValues)&&r.defaultValues().then(e=>{eA(e,r.resetOptions),A.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:A,_proxyFormState:C,get _fields(){return c},get _formValues(){return b},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return j},set _names(value){j=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:ej,register:eO,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(b);if(A.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);K(s.errors,"root"),E(s.errors)?(A.state.next({errors:{}}),await e(i,n)):(t&&await t({...s.errors},n),eC(),setTimeout(eC)),A.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:E(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>F(e)?A.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:ek,reset:eA,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||K(s.touchedFields,e),t.keepDirty||(K(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(K(s.errors,e),C.isValid&&U()),A.state.next({...s}))},clearErrors:e=>{e&&k(e).forEach(e=>K(s.errors,e)),A.state.next({errors:e?s.errors:{}})},unregister:eS,setError:(e,t,n)=>{let r=(g(c,e,{_f:{}})._f||{}).ref;M(s.errors,e,{...t,ref:r}),A.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:e_}}(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=>{j(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 Z},kY:function(){return Y}});var r,i=n(2784),o=n(43100);let a=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,x=(e,t)=>{let n=a.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]},b=new WeakMap,w=0,E=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=b.get(e))return t;if(t=++w+"~",b.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{let t=()=>{j=!0,e()},n=()=>{j=!1};return k("online",t),k("offline",n),()=>{_("online",t),_("offline",n)}}},O=!i.useId,C=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),A=C?i.useEffect:i.useLayoutEffect,P="undefined"!=typeof navigator&&navigator.connection,T=!C&&P&&(["slow-2g","2g"].includes(P.effectiveType)||P.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)?E(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function F(...e){let[t,n,r,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.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[o]=N(n);if(!o)return;let[l,p]=x(t,o),[g,y,b]=a.get(t),w=g[o],E=()=>d&&(delete b[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return E();let j=r,k=D();y[o]=[k,0];let _=!f(u),S=l(),O=S.data,C=S._c,M=f(C)?O:C;if(_&&p({data:u=h(u)?u(M):u,_c:M}),h(j))try{j=j(M)}catch(e){i=e}if(j&&h(j.then)){if(j=await j.catch(e=>{i=e}),k!==y[o][0]){if(i)throw i;return j}i&&_&&m(i)&&(s=!0,p({data:j=M,_c:c}))}s&&!i&&(h(s)&&(j=s(j,M)),p({data:j,_c:c})),y[o][1]=D();let A=await E();if(p({_c:c}),i){if(v)throw i;return}return s?A:j}}let V=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!a.has(e)){let n=p(S,t),r={},i=F.bind(c,e),o=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(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!C)){let t=n.initFocus(setTimeout.bind(c,V.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,V.bind(c,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[I,Z]=z(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:(e,t)=>E(e)==E(t),isPaused:()=>!1,cache:I,mutate:Z,fallback:{}},{isOnline:()=>j,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:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=p(i,a))}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])||{}],Y=()=>p(B,(0,i.useContext)(U)),G=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=a.get(I),o=i[r];return o?(delete i[r],o):n(...e)});return e(t,i,r)}),K=(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 X={dedupe:!0},Q=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=z(s(a.cache||I),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),A(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"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:b}=n,[w,E,j]=a.get(r),[k,_]=N(e),S=(0,i.useRef)(!1),P=(0,i.useRef)(!1),T=(0,i.useRef)(k),R=(0,i.useRef)(t),V=(0,i.useRef)(n),z=()=>V.current,I=()=>z().isVisible()&&z().isOnline(),[Z,B,H,U]=x(r,k),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[k]: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},Y=(0,i.useMemo)(()=>{let e=!!k&&!!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=Z(),i=U(),o=n(r),a=r===i?o:n(i),s=o;return[()=>{let e=n(Z());return $(e,s)?s:s=e},()=>a]},[r,k]),G=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(k,(t,n)=>{$(n,t)||e()}),[r,k]),Y[0],Y[1]),Q=!S.current,J=w[k]&&w[k].length>0,ee=G.data,et=f(ee)?q:ee,en=G.error,er=(0,i.useRef)(et),ei=b?f(ee)?er.current:ee:et,eo=(!J||!!f(en))&&(Q&&!f(d)?d:!z().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(k&&t&&Q&&eo),es=f(G.isValidating)?ea:G.isValidating,el=f(G.isLoading)?ea:G.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!k||!i||P.current||z().isPaused())return!1;let o=!0,a=e||{},l=!j[k]||!a.dedupe,u=()=>O?!P.current&&k===T.current&&S.current:k===T.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=j[k];e&&e[1]===r&&delete j[k]},v={isValidating:!0};f(Z().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(Z().data)&&setTimeout(()=>{o&&u()&&z().onLoadingSlow(k,n)},n.loadingTimeout),j[k]=[i(_),D()]),[t,r]=j[k],t=await t,l&&setTimeout(m,n.dedupingInterval),!j[k]||j[k][1]!==r)return l&&u()&&z().onDiscarded(k),!1;d.error=c;let e=E[k];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&z().onDiscarded(k),!1;let a=Z().data;d.data=s(a,t)?a:t,l&&u()&&z().onSuccess(t,k,n)}catch(n){m();let e=z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,k,e),(!0===t||h(t)&&t(n))&&I()&&e.onErrorRetry(n,k,e,e=>{let t=w[k];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[k,r]),ec=(0,i.useCallback)((...e)=>F(r,T.current,...e),[]);if(A(()=>{R.current=t,V.current=n,f(ee)||(er.current=ee)}),A(()=>{if(!k)return;let e=eu.bind(c,X),t=0,n=K(k,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();z().revalidateOnFocus&&n>t&&I()&&(t=n+z().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)z().revalidateOnReconnect&&I()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return P.current=!1,T.current=k,S.current=!0,B({_k:_}),eo&&(f(et)||C?e():M(e)),()=>{P.current=!0,n()}},[k]),A(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!Z().error&&(g||z().isVisible())&&(y||z().isOnline())?eu(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,k]),(0,i.useDebugValue)(ei),l&&f(et)&&k){if(!O&&C)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,V.current=n,P.current=!1,f(en)?eu(X):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=Y(),[n,i,o]=$(e),a=H(t,o),s=r,{use:l}=a,u=(l||[]).concat(G);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(86570),t(60222)}),_N_E=e.O()}]); \ No newline at end of file +`+(o!==i?`result of cast: ${o}`:""))}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:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,F({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),O({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);O({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(F({},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(F({},t,{value:e}))._validate(e,F({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(S.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(S.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=R(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 P(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=R({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=R({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=R({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,r={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)};return r}}for(let e of(V.prototype.__isYupSchema__=!0,["validate","validateSync"]))V.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:o,schema:a}=function(e,t,n,r=n){let i,o,a;return t?((0,A.forEach)(t,(s,l,u)=>{let c=l?D(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: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return a[e](i&&i[o],F({},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 z=e=>null==e;let I=/^((([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,Z=/^((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,B=/^(?:[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,H=e=>z(e)||e===e.trim(),U=({}).toString();function W(){return new q}class q 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===U?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 z(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 z(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 z(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=>z(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(I,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(Z,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(B,{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:H})}lowercase(e=f.lowercase){return this.transform(e=>z(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>z(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toUpperCase()})}}W.prototype=q.prototype;let $=e=>e!=+e;function Y(){return new G}class G 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&&!$(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(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 z(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 z(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=>z(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>z(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=>z(t)?t:Math[e](t))}}Y.prototype=G.prototype;var X=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let K=new Date(""),Q=e=>"[object Date]"===Object.prototype.toString.call(e);function J(){return new ee}class ee 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=X.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||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))?K:new Date(e)})})}_typeCheck(e){return Q(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(P.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 z(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 z(e)||e<=this.resolve(n)}})}}ee.INVALID_DATE=K,J.prototype=ee.prototype,J.INVALID_DATE=K;var et=n(57370),en=n.n(et),er=n(96009),ei=n.n(er),eo=n(19950),ea=n.n(eo),es=n(95159),el=n.n(es);function eu(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 ec(e){return(t,n)=>eu(e,t)-eu(e,n)}function ed(){return(ed=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eh=ec([]);class ep extends V{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eh,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 ef(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,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ed({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let n=i[e],a=x()(r,e);if(n){let i;let o=r[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!S.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!ef(u)){n(r[0]||null,u);return}a=a||u,O({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],ed({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[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=ed({},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=ec(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 o(e,t){let o=(0,A.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(let t in e)if(x()(e,t)){let n=e[t];r.add(t),P.isRef(n)&&n.isSibling?o(n.path,t):b(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return el().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,A.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return x()(i,e)&&(o=ed({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=m.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=m.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ea()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(ei())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function em(e){return new ep(e)}em.prototype=ep.prototype},44868:function(e,t,n){"use strict";var r,i,o=Object.create,a=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||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>x,AnimatedArray:()=>C,AnimatedObject:()=>O,AnimatedString:()=>j,AnimatedValue:()=>w,createHost:()=>z,getAnimated:()=>v,getAnimatedType:()=>T,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(a({},"__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(),x=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},b=n(6901),w=class extends x{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,b.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 b.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,b.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},E=n(6901),j=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,E.createInterpolator)({output:[e,e]})}static create(e){return new j(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(E.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,E.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},k=n(6901),S=n(6901),_={dependencies:null},O=class extends x{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){_.dependencies&&(0,S.hasFluidValue)(e)&&_.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},C=class extends O{constructor(e){super(e)}static create(e){return new C(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,k.isAnimatedString)(e)?j:w).create(e)}var A=n(6901);function T(e){let t=v(e);return t?t.constructor:A.is.arr(e)?C:(0,A.isAnimatedString)(e)?j:w}var P=n(6901),N=(i=null!=(r=n(2784))?o(u(r)):{},d(r&&r.__esModule?i:a(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 o;let a;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]=(o=r,a=new Set,_.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new O(o),_.dependencies=null,[o,a]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new F(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})})},F=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},V=Symbol.for("AnimatedComponent"),z=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new O(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=I(e)||"Anonymous";return(e=P.is.str(e)?o[e]||(o[e]=L(e,i)):e[V]||(e[V]=L(e,i))).displayName=`Animated(${t})`,e};return(0,P.eachProp)(e,(t,n)=>{P.is.arr(e)&&(n=I(t)),o[n]=o(t)}),{animated:o}},I=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,o=Object.create,a=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||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>Q,Controller:()=>eE,FrameValue:()=>ei,Globals:()=>tl.Globals,Interpolation:()=>tn,Spring:()=>e5,SpringContext:()=>eN,SpringRef:()=>eL,SpringValue:()=>ed,Trail:()=>e8,Transition:()=>e7,config:()=>F,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>k,interpolate:()=>ts,to:()=>ta,update:()=>tu,useChain:()=>A,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eQ,useSpring:()=>eV,useSpringRef:()=>eZ,useSpringValue:()=>eH,useSprings:()=>eF,useTrail:()=>eW,useTransition:()=>eG}),e.exports=d(a({},"__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,x=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,b=e=>e,w=(e,t=b)=>{let n=E;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},E=["config","onProps","onStart","onChange","onPause","onResume","onRest"],j={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 k(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{j[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 _(e){for(let t in e)return!0;return!1}function O(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function C(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 A(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let o=e.current;if(o.length){let a=n*t[i];isNaN(a)?a=r:r=a,(0,p.each)(o,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+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 T=n(6901),P=n(2784),N=n(6901),R=n(6901),D=n(25447),L=n(6901),F={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}},V={...F.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},z=class{constructor(){this.velocity=0,Object.assign(this,V)}};function I(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 Z=[],B=class{constructor(){this.changed=!1,this.values=Z,this.toValues=null,this.fromValues=Z,this.config=new z,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,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),o.pause()):(o.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{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var W=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?G(e.get()):t.every(e=>e.noop)?$(e.get()):Y(e.get(),t.every(e=>e.finished)),$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Y=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),G=e=>({value:e,cancelled:!0,finished:!1});function X(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()=>{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)&&G(r)||i!==n.asyncId&&Y(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let o=new Q,a=new J;return(async()=>{if(W.Globals.skipAnimation)throw K(n),a.result=Y(r,!1),d(a),a;h(o);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(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return K(n),Y(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=Y(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=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return W.is.fun(a)&&W.raf.batchedUpdates(()=>{a(m,r,r.item)}),m})():l}function K(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})}},eo=Symbol.for("SpringPhase"),ea=e=>(1&e[eo])>0,es=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,eu=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ec=(e,t)=>t?e[eo]|=4:e[eo]&=-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 ea(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:o}=r,a=(0,D.getPayload)(r.to);!a&&(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:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,o.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(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,r=o.clamp?0:o.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)&&(a=-a*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(o.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),a=((d=n+o.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=a,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=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(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 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()),K(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)||O(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return ea(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 o=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(o.pauseQueue),ey(this,"onPause",Y(this,ef(this,this.animation.to)),this))},resume:()=>{el(this)&&(ec(this,!1),es(this)&&this._resume(),(0,R.flushCalls)(o.resumeQueue),ey(this,"onResume",Y(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(G(this));let r=!R.is.und(e.to),i=!R.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(G(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||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=O(t.to),{config:m}=s,{decay:y,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(I(n={...n},t),t={...n,...t}),I(e,t),Object.assign(e,t),V)null==e[r]&&(e[r]=V[r]);let{frequency:r,damping:i}=e,{mass:o}=e;L.is.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,v(t.config,o),t.config!==a.config?v(a.config,o):void 0);let b=(0,D.getAnimated)(this);if(!b||R.is.und(c))return n(Y(this,!0));let w=R.is.und(t.reset)?i&&!t.default:!R.is.und(d)&&g(t.reset,o),E=w?d:this.get(),j=S(c),k=R.is.num(j)||R.is.arr(j)||(0,R.isAnimatedString)(j),_=!p&&(!k||g(a.immediate||t.immediate,o));if(h){let e=(0,D.getAnimatedType)(c);if(e!==b.constructor){if(_)b=this._set(j);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let C=b.constructor,M=(0,R.hasFluidValue)(c),A=!1;if(!M){let e=w||!ea(this)&&f;(h||e)&&(M=!(A=(0,R.isEqual)(S(E),j))),((0,R.isEqual)(s.immediate,_)||_)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,x)||(M=!0)}if(A&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=b.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:C==D.AnimatedString?[1]:(0,R.toArray)(j)),s.immediate==_||(s.immediate=_,_||w||this._set(l)),M)){let{onRest:e}=s;(0,R.each)(ev,e=>eg(this,t,e));let r=Y(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(a.onRest,r):s.onStart?.(r,this)})}w&&this._set(E),p?n(X(t.to,t,this._state,this)):M?this._start():es(this)&&!h?this._pendingCalls.add(n):n($(E))}_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",Y(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?G(this.get()):Y(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&&k(r),o=(i||e).reverse,a=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!o||O(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ep(e){let{to:t,from:n}=e=k(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]!==x(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ex=n(6901),eb=["onStart","onChange","onRest"],ew=1,eE=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];ex.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,ex.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),ej(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,ex.each)((0,ex.toArray)(t),t=>n[t].stop(!!e))}else K(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ex.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].pause())}return this}resume(e){if(ex.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].resume())}return this}each(e){(0,ex.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,ex.flush)(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&&(0,ex.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,ex.flush)(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)}ex.raf.onFrame(this._onFrame)}};function ej(e,t){return Promise.all(t.map(t=>ek(e,t))).then(t=>q(e,t))}async function ek(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=ex.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=ex.is.arr(i)||ex.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,ex.each)(eb,n=>{let r=t[n];if(ex.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,ex.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===x(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:ex.noop,resume:ex.noop,start(t,n){h?(K(d,e._lastAsyncId),n(G(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(a&&p.finished&&!(n&&p.noop)){let n=eh(t,a,i);if(n)return eM(e,[n]),ek(e,n,!0)}return l&&ex.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eS(e,t){let n={...e.springs};return t&&(0,ex.each)((0,ex.toArray)(t),e=>{ex.is.und(e.keys)&&(e=ep(e)),ex.is.obj(e.to)||(e={...e,to:void 0}),eC(n,e,e=>eO(e))}),e_(e,n),n}function e_(e,t){(0,ex.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ex.addFluidObserver)(t,e))})}function eO(e,t){let n=new ed;return n.key=e,t&&(0,ex.addFluidObserver)(n,t),n}function eC(e,t,n){t.keys&&(0,ex.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,ex.each)(t,t=>{eC(e.springs,t,t=>eO(t,e))})}var eA=f(n(2784)),eT=n(2784),eP=n(6901),eN=({children:e,...t})=>{let n=(0,eT.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eP.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=eR;return eA.createElement(o,{value:t},e)},eR=(Object.assign(eN,eA.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 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(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 eF(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,[]),o=(0,P.useRef)(0),a=(0,N.useForceUpdate)(),s=(0,P.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{e_(e,n),s.queue.push(()=>{r(ej(e,t))}),a()}):ej(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=>{C(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&&_(h);(0,N.useIsomorphicLayoutEffect)(()=>{o.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 eV(e,t){let n=T.is.fun(e),[[r],i]=eF(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var ez=n(2784),eI=()=>eL(),eZ=()=>(0,ez.useState)(eI)[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,o,a=eF(e,(e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(a[1].current,(e,t)=>{let n=a[1].current[t+(i?1:-1)];if(M(e,o),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=o??a[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}},a}return a[0]}var eq=f(n(2784)),e$=n(2784),eY=n(6901);function eG(e,t,n){let r=eY.is.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,e$.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),h=(0,eY.toArray)(e),p=[],m=(0,e$.useRef)(null),g=i?null:m.current;(0,eY.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eY.useOnce)(()=>((0,eY.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eY.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),C(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 eY.is.und(n)?e:eY.is.fun(n)?e.map(n):(0,eY.toArray)(n)}(h,r?r():t,g),x=i&&m.current||[];(0,eY.useIsomorphicLayoutEffect)(()=>(0,eY.each)(x,({ctrl:e,item:t,key:n})=>{C(e,f),v(u,t,n)}));let b=[];if(g&&(0,eY.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),x.push(e)):~(t=b[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eY.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new eE},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;(0,eY.each)(b,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eY.is.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let E=-a,j=(0,eY.useForceUpdate)(),S=w(t),O=new Map,A=(0,e$.useRef)(new Map),T=(0,e$.useRef)(!1);(0,eY.each)(p,(e,n)=>{let i=e.key,o=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){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=eY.is.obj(f)?k(f):{to:f}).config){let t=d||S.config;f.config=v(t,e.item,n,h)}E+=a;let x={...S,delay:p+E,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eY.is.und(x.from)){let i=r?r():t,o=eY.is.und(i.initial)||g?i.from:i.initial;x.from=v(o,e.item,n)}let{onResolve:b}=x;x.onResolve=e=>{v(b,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(j,r));return}}}e&&t.some(e=>e.expired)&&(A.current.delete(n),l&&(T.current=!0),j())}};let w=eS(e.ctrl,x);"leave"===h&&l?A.current.set(e,{phase:h,springs:w,payload:x}):O.set(e,{phase:h,springs:w,payload:x})});let P=(0,e$.useContext)(eN),N=(0,eY.usePrev)(P),R=P!==N&&_(P);(0,eY.useIsomorphicLayoutEffect)(()=>{R&&(0,eY.each)(p,e=>{e.ctrl.start({default:P})})},[P]),(0,eY.each)(O,(e,t)=>{if(A.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eY.useIsomorphicLayoutEffect)(()=>{(0,eY.each)(A.current.size?A.current:O,({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)&&!T.current?r.update(t):(r.start(t),T.current&&(T.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=O.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eY.is.str(t.key)||eY.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eX=1,eK=n(6901),eQ=({container:e,...t}={})=>{let[n,r]=eV(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eK.useIsomorphicLayoutEffect)(()=>{let t=(0,eK.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,eK.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eJ=n(6901),e0=({container:e,...t})=>{let[n,r]=eV(()=>({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)(),o=e2.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=eV(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),r(!0),o?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]),o?[i,c]:[i,n]}function e5({children:e,...t}){return e(eV(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 eG(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)&&to(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()),to(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(),to(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 to(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 ta=(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,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eT,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eA,clamp:()=>J,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>ex,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eK,deprecateInterpolate:()=>eG,each:()=>P,eachProp:()=>N,easings:()=>ej,flush:()=>D,flushCalls:()=>V,frameLoop:()=>Y,getFluidObservers:()=>eC,getFluidValue:()=>eO,hasFluidValue:()=>e_,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>A,isAnimatedString:()=>eQ,isEqual:()=>T,isSSR:()=>z,noop:()=>C,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eP,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tx,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))a.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:()=>I,createStringInterpolator:()=>L,skipAnimation:()=>Z,to:()=>F,willAdvance:()=>B});var c=_(),d=e=>E(e,c),f=_();d.write=e=>E(e,f);var h=_();d.onStart=e=>E(e,h);var p=_();d.onFrame=e=>E(e,p);var m=_();d.onFinish=e=>E(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),b-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),b+=1,j(),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 x=-1,b=0,w=!1;function E(e,t){w?(t.delete(e),e(0)):(t.add(e),j())}function j(){x<0&&(x=0,"demand"!==d.frameLoop&&y(k))}function k(){~x&&(y(k),d.batchedUpdates(S))}function S(){let e=x,t=g(x=d.now());if(t&&(O(v.splice(0,t),e=>e.handler()),b-=t),!b){x=-1;return}h.flush(),c.flush(e?Math.min(64,x-e):16.667),p.flush(),f.flush(),m.flush()}function _(){let e=new Set,t=e;return{add(n){b+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(b-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,b-=t.size,O(t,t=>t(n)&&e.add(t)),b+=e.size,t=e)}}}function O(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function C(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),A={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 T(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(A.arr(e)){for(let r=0;rA.und(e)?[]:A.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),P(n,t)}}var L,F,V=(e,...t)=>D(e,e=>e(...t)),z=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),I=null,Z=!1,B=C,H=e=>{e.to&&(F=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(I=e.colors),null!=e.skipAnimation&&(Z=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,Y={get idle(){return!U.size&&!W.length},start(e){$>e.priority?(U.add(e),d.onStart(G)):(X(e),d(Q))},advance:Q,sort(e){if($)d.onFrame(()=>Y.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),K(e))}},clear(){W=[],U.clear()}};function G(){U.forEach(X),U.clear(),d(Q)}function X(e){W.includes(e)||K(e)}function K(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)),eo=RegExp("rgba"+er(et,et,et,et)),ea=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:I&&void 0!==I[e]?I[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.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=ea.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;return null===n?e:`rgba(${(4278190080&(n=n||0))>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`}var ex=(e,t,n)=>{if(A.fun(e))return e;if(A.arr(e))return ex({range:e,output:t,extrapolate:n});if(A.str(e.output[0]))return L(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)}},eb=2*Math.PI/3,ew=2*Math.PI/4.5,eE=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,ej={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)*eb),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*eb)+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-eE(1-e),easeOutBounce:eE,easeInOutBounce:e=>e<.5?(1-eE(1-2*e))/2:(1+eE(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)}},ek=Symbol.for("FluidValue.get"),eS=Symbol.for("FluidValue.observers"),e_=e=>!!(e&&e[ek]),eO=e=>e&&e[ek]?e[ek]():e,eC=e=>e[eS]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eA(e,t){let n=e[eS];n&&n.forEach(e=>{eM(e,t)})}var eT=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eP(this,e)}},eP=(e,t)=>eL(e,ek,t);function eN(e,t){if(e[ek]){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}),eF=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eV=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ez=RegExp(`(${eF.source})(%|[a-z]+)`,"i"),eI=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eZ=/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&&eZ.test(n)?eB(n):n||e},eH=e=>{let t=eZ.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=I?RegExp(`(${Object.keys(I).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eO(e).replace(eZ,eB).replace(eV,ey).replace(eD,ey)),n=t.map(e=>e.match(eF).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=>ex({...e,output:t}));return e=>{let n=!ez.test(t[0])&&t.find(e=>ez.test(e))?.replace(eF,""),i=0;return t[0].replace(eF,()=>`${r[i++](e)}${n||""}`).replace(eI,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)}},eY=e$(console.warn);function eG(){eY(`${eq}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eX=e$(console.warn);function eK(){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 A.str(e)&&("#"==e[0]||/\d/.test(e)||!z()&&eZ.test(e)||e in(I||{}))}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)?.())}},to=n(2784);function ta(e){let t=(0,to.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,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}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tx(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tb=n(2784),tw=()=>{let[e,t]=(0,tb.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,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))i.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,n){"use strict";var r,i,o=Object.defineProperty,a=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||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__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),x=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(x.forEach(n=>e[y(n,t)]=e[t]),e),g);var b=n(25447),w=n(6901),E=/^(matrix|translate|scale|rotate|skew)/,j=/^(translate)/,k=/^(rotate|skew)/,S=(e,t)=>w.is.num(e)&&0!==e?e+t:e,_=(e,t)=>w.is.arr(e)?e.every(e=>_(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,O=class extends b.AnimatedObject{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=>S(e,"px")).join(",")})`,_(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(E.test(t)){if(delete r[t],w.is.und(e))return;let n=j.test(t)?"px":k.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,_(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,_(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new C(i,o)),super(r)}},C=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]),[o,a]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+o,t=t&&a}),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:o,scrollLeft:a,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!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new O(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 o;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:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.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},[]);return i(e,l,c,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 A},mY:function(){return S}});var r=n(72331),i=n(2784),o=n(40844),a='[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)=>o(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=C(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=C(()=>new Set),p=C(()=>new Map),v=C(()=>new Map),g=C(()=>new Set),y=_(e),{label:x,children:b,value:w,onValueChange:E,filter:j,shouldFilter:k,...S}=e,A=i.useId(),T=i.useId(),R=i.useId(),D=P();O(()=>{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,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)Z(),z(),D(1,I);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(a=(o=y.current).onValueChange)||a.call(o,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),F=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,V(t)),D(2,()=>{z(),L.emit()}))},item:(e,t)=>(o.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{Z(),z(),r.current.value||I(),L.emit()}),()=>{v.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{Z(),I(),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:x||e["aria-label"],listId:A,inputId:R,labelId:T}),[]);function V(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(`${a}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function I(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);L.setState("value",t||void 0)}function Z(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=V(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(a))?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),o=r[i+e];null!=(t=y.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&L.setState("value",o.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(a),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,a):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,a))?void 0:n.querySelector(u);r?L.setState("value",r.getAttribute(d)):q(e)}let Y=()=>W(U().length-1),G=e=>{e.preventDefault(),e.metaKey?Y():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&&G(e);break;case"ArrowDown":G(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(),Y();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(c);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:N},x),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:F},b)))}),x=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(g),a=p(),s=_(e);O(()=>a.item(n,o),[]);let l=T(n,r,[e.value,e.children,r]),u=v(),d=A(e=>e.value&&e.value===l.current),f=A(e=>!1===a.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:x,...b}=e;return i.createElement("div",{ref:M([r,t]),...b,"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)}),b=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=i.useId(),s=i.useRef(null),l=i.useRef(null),u=i.useId(),c=p(),d=A(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));O(()=>c.group(a),[]),T(a,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:a},r);return i.createElement("div",{ref:M([s,t]),...o,"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,o=i.useRef(null),a=A(e=>!e.search);return n||a?i.createElement("div",{ref:M([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),E=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v(),s=A(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&a.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:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),j=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),s=p();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.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([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),k=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,container:a,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:o},i.createElement(r.h_,{container:a},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:j,Item:x,Input:E,Group:b,Separator:w,Dialog:k,Empty:i.forwardRef((e,t)=>{let n=i.useRef(!0),r=A(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,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function _(e){let t=i.useRef(e);return O(()=>{t.current=e}),t}var O=typeof window>"u"?i.useEffect:i.useLayoutEffect;function C(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 A(e){let t=v(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function T(e,t,n){let r=i.useRef(),o=p();return O(()=>{var i;let a=(()=>{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()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(d,a),r.current=a}),r}var P=()=>{let[e,t]=i.useState(),n=C(()=>new Map);return O(()=>{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"}},63955:function(e,t,n){"use strict";n.d(t,{cI:function(){return em}});var r=n(2784),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(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)=>a(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},x={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={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 o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==x.all&&(t._proxyFormState[o]=!r||x.all),n&&(n[o]=!0),e[o])});return i},E=e=>l(e)&&!Object.keys(e).length,j=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return E(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||x.all))},k=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,_=(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),O=e=>/^\w*$/.test(e),C=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=O(t)?[t]:C(t),o=i.length,a=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let T=(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)&&T(r,t)}}};var P=e=>({isOnSubmit:!e||e===x.onSubmit,isOnBlur:e===x.onBlur,isOnChange:e===x.onChange,isOnAll:e===x.all,isOnTouch:e===x.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,F=e=>"function"==typeof e,V=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),I=e=>"radio"===e.type,Z=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 Y=e=>l(e)&&!Z(e)?e:{value:e,message:""},G=async(e,t,n,r,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:x,valueAsNumber:w,mount:j,disabled:k}=e._f,_=g(t,x);if(!j||k)return{};let O=u?u[0]:s,C=e=>{r&&O.reportValidity&&(O.setCustomValidity(D(e)?"":e||""),O.reportValidity())},M={},T=I(s),P=i(s),N=(w||L(s))&&v(s.value)&&v(_)||V(s)&&""===s.value||""===_||Array.isArray(_)&&!_.length,R=A.bind(null,x,n,M),B=(e,t,n,r=b.maxLength,i=b.minLength)=>{let o=e?t:n;M[x]={type:e?r:i,message:o,ref:s,...R(e?r:i,o)}};if(o?!Array.isArray(_)||!_.length:c&&(!(T||P)&&(N||a(_))||D(_)&&!_||P&&!U(u).isValid||T&&!q(u).isValid)){let{value:e,message:t}=z(c)?{value:!!c,message:c}:Y(c);if(e&&(M[x]={type:b.required,message:t,ref:O,...R(b.required,t)},!n))return C(t),M}if(!N&&(!a(h)||!a(p))){let e,t;let r=Y(p),i=Y(h);if(a(_)||isNaN(_)){let n=s.valueAsDate||new Date(_),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;S(r.value)&&_&&(e=a?o(_)>o(r.value):l?_>r.value:n>new Date(r.value)),S(i.value)&&_&&(t=a?o(_)r.value),a(i.value)||(t=n+e.value,i=!a(t.value)&&_.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return C(M[x].message),M}if(m&&!N&&S(_)){let{value:e,message:t}=Y(m);if(Z(e)&&!_.match(e)&&(M[x]={type:b.pattern,message:t,ref:s,...R(b.pattern,t)},!n))return C(t),M}if(y){if(F(y)){let e=await y(_,t),r=$(e,O);if(r&&(M[x]={...r,...R(b.validate,r.message)},!n))return C(r.message),M}else if(l(y)){let e={};for(let r in y){if(!E(e)&&!n)break;let i=$(await y[r](_,t),O,r);i&&(e={...i,...R(r,i.message)},C(i.message),n&&(M[x]=e))}if(!E(e)&&(M[x]={ref:O,...e},!n))return M}}return C(!0),M};function X(e,t){let n=Array.isArray(t)?t:O(t)?[t]:C(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=>a(e)||!s(e);function J(e,t){if(Q(e)||Q(t))return e===t;if(o(e)&&o(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(o(n)&&o(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=>I(e)||i(e),en=e=>V(e)&&e.isConnected,er=e=>{for(let t in e)if(F(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])):a(e[n])||(t[n]=!0);return t}var eo=(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],a(n)?{}:n[i],r[i]):r[i]=!J(t[i],n[i]);return r})(e,t,ei(t)),ea=(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:I(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(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:Z(e)?e.source:l(e)?Z(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||O(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};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:x.onSubmit,reValidateMode:x.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:F(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:F(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:F(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)||{},b=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},j={mount:new Set,unMount:new Set,array:new Set,watch:new Set},O=0,C={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},A={values:K(),array:K(),state:K()},z=e.resetOptions&&e.resetOptions.keepDirtyValues,I=P(r.mode),Z=P(r.reValidateMode),B=r.criteriaMode===x.all,H=e=>t=>{clearTimeout(O),O=setTimeout(e,t)},U=async e=>{if(C.isValid||e){let e=r.resolver?E((await ei()).errors):await ev(c,!0);e!==s.isValid&&A.state.next({isValid:e})}},W=e=>C.isValidating&&A.state.next({isValidating:e}),q=(e,t)=>{M(s.errors,e,t),A.state.next({errors:s.errors})},$=(e,t,n,r)=>{let i=g(c,e);if(i){let o=g(b,e,v(n)?g(f,e):n);v(o)||r&&r.defaultChecked||t?M(b,e,t?o:es(i._f)):ex(e,o),w.mount&&U()}},Y=(e,t,n,r,i)=>{let o=!1,a=!1,l={name:e};if(!n||r){C.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let n=J(g(f,e),t);a=g(s.dirtyFields,e),n?X(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||C.dirtyFields&&!n!==a}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,o=o||C.touchedFields&&t!==n)}return o&&i&&A.state.next(l),o?l:{}},er=(t,r,i,o)=>{let a=g(s.errors,t),l=C.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(O),n=null,i?M(s.errors,t,i):X(s.errors,t)),(i?!J(a,i):a)||!E(o)||l){let e={...o,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},A.state.next(e)}W(!1)},ei=async e=>r.resolver(b,r.context,el(e||j.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 o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=j.array.has(e.name),a=await G(o,b,B,r.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(n.valid=!1,t))break;t||(g(a,e.name)?i?R(s.errors,a,e.name):M(s.errors,e.name,a[e.name]):X(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(b,e,t),!J(ek(),f)),ey=(e,t,n)=>_(e,j,{...w.mount?b:v(t)?f:S(e)?{[e]:t}:t},n,t),ex=(e,t,n={})=>{let r=g(c,e),o=t;if(r){let n=r._f;n&&(n.disabled||M(b,e,ea(t,n)),o=V(n.ref)&&a(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):L(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||A.values.next({name:e,values:{...b}})))}(n.shouldDirty||n.shouldTouch)&&Y(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ej(e)},eb=(e,t,n)=>{for(let r in t){let i=t[r],a=`${e}.${r}`,s=g(c,a);!j.array.has(e)&&Q(i)&&(!s||s._f)||o(i)?ex(a,i,n):eb(a,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),o=j.array.has(e),l=p(n);M(b,e,l),o?(A.array.next({name:e,values:{...b}}),(C.isDirty||C.dirtyFields)&&r.shouldDirty&&A.state.next({name:e,dirtyFields:eo(f,b),isDirty:eg(e,l)})):!i||i._f||a(l)?ex(e,l,r):eb(e,l,r),N(e,j)&&A.state.next({...s}),A.values.next({name:e,values:{...b}}),w.mount||t()},eE=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!r.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,Z,I),m=N(i,j,h);M(b,i,f),h?(a._f.onBlur&&a._f.onBlur(e),n&&n(0)):a._f.onChange&&a._f.onChange(e);let v=Y(i,f,h,!1),x=!E(v)||m;if(h||A.values.next({name:i,type:e.type,values:{...b}}),p)return C.isValid&&U(),x&&A.state.next({name:i,...m?{}:v});if(!h&&m&&A.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=E(e)}else l=(await G(a,b,B,r.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(b,i,f))&&(l?d=!1:C.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&ej(a._f.deps),er(i,d,l,v))}},ej=async(e,t={})=>{let n,i;let o=k(e);if(W(!0),r.resolver){let t=await em(v(e)?e:o);n=E(t),i=e?!o.some(e=>g(t,e)):n}else e?((i=(await Promise.all(o.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 A.state.next({...!S(e)||C.isValid&&n!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&T(c,e=>e&&g(s.errors,e),e?o:j.mount),i},ek=e=>{let t={...f,...w.mount?b:{}};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)}),e_=(e,t={})=>{for(let n of e?k(e):j.mount)j.mount.delete(n),j.array.delete(n),t.keepValue||(X(c,n),X(b,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);A.values.next({values:{...b}}),A.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},eO=(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}}),j.mount.add(e),n?i&&M(b,e,t.disabled?void 0:g(b,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:eE,onBlur:eE,ref:i=>{if(i){eO(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...o?{refs:[...a.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(j.array,e)&&w.action)&&j.unMount.add(e)}}},eC=()=>r.shouldFocusError&&T(c,e=>e&&g(s.errors,e),j.mount),eM=(n,r={})=>{let i=n||f,o=p(i),a=n&&!E(n)?o:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||z)for(let e of j.mount)g(s.dirtyFields,e)?M(a,e,g(b,e)):ew(e,g(a,e));else{if(h&&v(n))for(let e of j.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(V(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}b=e.shouldUnregister?r.keepDefaultValues?p(f):{}:o,A.array.next({values:{...a}}),A.values.next({values:{...a}})}j={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!C.isValid||!!r.keepIsValid,w.watch=!!e.shouldUnregister,A.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?eo(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eA=(e,t)=>eM(F(e)?e(b):e,t);return{control:{register:eO,unregister:e_,getFieldState:eS,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of j.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&e_(e)}j.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(o&&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(C.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=n(g(s.touchedFields,e),r.argA,r.argB);i&&M(s.touchedFields,e,t)}C.dirtyFields&&(s.dirtyFields=eo(f,b)),A.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(b,e,t)},_getFieldArray:t=>m(g(w.mount?b:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>F(r.defaultValues)&&r.defaultValues().then(e=>{eA(e,r.resetOptions),A.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:A,_proxyFormState:C,get _fields(){return c},get _formValues(){return b},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return j},set _names(value){j=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:ej,register:eO,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(b);if(A.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"),E(s.errors)?(A.state.next({errors:{}}),await e(i,n)):(t&&await t({...s.errors},n),eC(),setTimeout(eC)),A.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:E(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>F(e)?A.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:ek,reset:eA,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),C.isValid&&U()),A.state.next({...s}))},clearErrors:e=>{e&&k(e).forEach(e=>X(s.errors,e)),A.state.next({errors:e?s.errors:{}})},unregister:e_,setError:(e,t,n)=>{let r=(g(c,e,{_f:{}})._f||{}).ref;M(s.errors,e,{...t,ref:r}),A.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=>{j(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 Z},kY:function(){return Y}});var r,i=n(2784),o=n(43100);let a=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,x=(e,t)=>{let n=a.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]},b=new WeakMap,w=0,E=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=b.get(e))return t;if(t=++w+"~",b.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{j=!0,e()},n=()=>{j=!1};return k("online",t),k("offline",n),()=>{S("online",t),S("offline",n)}}},O=!i.useId,C=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),A=C?i.useEffect:i.useLayoutEffect,T="undefined"!=typeof navigator&&navigator.connection,P=!C&&T&&(["slow-2g","2g"].includes(T.effectiveType)||T.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)?E(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function F(...e){let[t,n,r,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.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[o]=N(n);if(!o)return;let[l,p]=x(t,o),[g,y,b]=a.get(t),w=g[o],E=()=>d&&(delete b[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return E();let j=r,k=D();y[o]=[k,0];let S=!f(u),_=l(),O=_.data,C=_._c,M=f(C)?O:C;if(S&&p({data:u=h(u)?u(M):u,_c:M}),h(j))try{j=j(M)}catch(e){i=e}if(j&&h(j.then)){if(j=await j.catch(e=>{i=e}),k!==y[o][0]){if(i)throw i;return j}i&&S&&m(i)&&(s=!0,p({data:j=M,_c:c}))}s&&!i&&(h(s)&&(j=s(j,M)),p({data:j,_c:c})),y[o][1]=D();let A=await E();if(p({_c:c}),i){if(v)throw i;return}return s?A:j}}let V=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!a.has(e)){let n=p(_,t),r={},i=F.bind(c,e),o=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(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!C)){let t=n.initFocus(setTimeout.bind(c,V.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,V.bind(c,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[I,Z]=z(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(f(o)||!(a>o))&&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)=>E(e)==E(t),isPaused:()=>!1,cache:I,mutate:Z,fallback:{}},{isOnline:()=>j,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:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=p(i,a))}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])||{}],Y=()=>p(B,(0,i.useContext)(U)),G=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=a.get(I),o=i[r];return o?(delete i[r],o):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 K={dedupe:!0},Q=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=z(s(a.cache||I),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),A(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"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:b}=n,[w,E,j]=a.get(r),[k,S]=N(e),_=(0,i.useRef)(!1),T=(0,i.useRef)(!1),P=(0,i.useRef)(k),R=(0,i.useRef)(t),V=(0,i.useRef)(n),z=()=>V.current,I=()=>z().isVisible()&&z().isOnline(),[Z,B,H,U]=x(r,k),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[k]: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},Y=(0,i.useMemo)(()=>{let e=!!k&&!!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=Z(),i=U(),o=n(r),a=r===i?o:n(i),s=o;return[()=>{let e=n(Z());return $(e,s)?s:s=e},()=>a]},[r,k]),G=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(k,(t,n)=>{$(n,t)||e()}),[r,k]),Y[0],Y[1]),Q=!_.current,J=w[k]&&w[k].length>0,ee=G.data,et=f(ee)?q:ee,en=G.error,er=(0,i.useRef)(et),ei=b?f(ee)?er.current:ee:et,eo=(!J||!!f(en))&&(Q&&!f(d)?d:!z().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(k&&t&&Q&&eo),es=f(G.isValidating)?ea:G.isValidating,el=f(G.isLoading)?ea:G.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!k||!i||T.current||z().isPaused())return!1;let o=!0,a=e||{},l=!j[k]||!a.dedupe,u=()=>O?!T.current&&k===P.current&&_.current:k===P.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=j[k];e&&e[1]===r&&delete j[k]},v={isValidating:!0};f(Z().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(Z().data)&&setTimeout(()=>{o&&u()&&z().onLoadingSlow(k,n)},n.loadingTimeout),j[k]=[i(S),D()]),[t,r]=j[k],t=await t,l&&setTimeout(m,n.dedupingInterval),!j[k]||j[k][1]!==r)return l&&u()&&z().onDiscarded(k),!1;d.error=c;let e=E[k];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&z().onDiscarded(k),!1;let a=Z().data;d.data=s(a,t)?a:t,l&&u()&&z().onSuccess(t,k,n)}catch(n){m();let e=z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,k,e),(!0===t||h(t)&&t(n))&&I()&&e.onErrorRetry(n,k,e,e=>{let t=w[k];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[k,r]),ec=(0,i.useCallback)((...e)=>F(r,P.current,...e),[]);if(A(()=>{R.current=t,V.current=n,f(ee)||(er.current=ee)}),A(()=>{if(!k)return;let e=eu.bind(c,K),t=0,n=X(k,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();z().revalidateOnFocus&&n>t&&I()&&(t=n+z().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)z().revalidateOnReconnect&&I()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return T.current=!1,P.current=k,_.current=!0,B({_k:S}),eo&&(f(et)||C?e():M(e)),()=>{T.current=!0,n()}},[k]),A(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!Z().error&&(g||z().isVisible())&&(y||z().isOnline())?eu(K).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,k]),(0,i.useDebugValue)(ei),l&&f(et)&&k){if(!O&&C)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,V.current=n,T.current=!1,f(en)?eu(K):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=Y(),[n,i,o]=$(e),a=H(t,o),s=r,{use:l}=a,u=(l||[]).concat(G);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(86570),t(60222)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/config-b347e9e06b4beab4.js b/hostd/assets/_next/static/chunks/pages/config-a61bd8c57726a644.js similarity index 97% rename from hostd/assets/_next/static/chunks/pages/config-b347e9e06b4beab4.js rename to hostd/assets/_next/static/chunks/pages/config-a61bd8c57726a644.js index 38c34dd30..40e97d0a5 100644 --- a/hostd/assets/_next/static/chunks/pages/config-b347e9e06b4beab4.js +++ b/hostd/assets/_next/static/chunks/pages/config-a61bd8c57726a644.js @@ -1 +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(29575)}])},14134:function(e,n,s){"use strict";s.d(n,{q:function(){return h}});var t=s(52322),i=s(76848),a=s(27444),l=s(6391),r=s.n(l),c=s(71930),o=s(25573);function d(){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(22515);function u(){var e,n,s,l,r,c,d;let{openDialog:u}=(0,x.Rh)(),h=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,o.n)(),j=(0,a.cQ)(),m=null===(e=h.data)||void 0===e?void 0:e.version,g=(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(m):"https://github.com/SiaFoundation/hostd/tree/".concat(m);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=j.data)||void 0===n?void 0:n.length,connectPeer:()=>u("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.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:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(s=f.data)||void 0===s?void 0:s.netAddress,maxLength:50,label:"network address"})})]}),(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:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(l=h.data)||void 0===l?void 0:l.publicKey,maxLength:50,label:"public key"})})]}),(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",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(r=h.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(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",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(c=h.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:g,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=h.data)||void 0===d?void 0:d.version})]})]})}function h(e){let n=(0,a.Os)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,t.jsx)(d,{}),profile:(0,t.jsx)(u,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return d}});var t=s(52322),i=s(76848),a=s(41775),l=s(27444),r=s(82851),c=s(71930),o=s(22515);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,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:c._.home,children:(0,t.jsx)(a.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,t.jsx)(a.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(i.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)(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:()=>s("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},29575:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return p}});var t=s(52322),i=s(76848),a=s(41775),l=s(66724),r=s(71930),c=s(22515),o=s(14134),d=s(27444),x=s(96206),u=s(2784),h=s(6391),f=s.n(h);function v(){let{openConfirmDialog:e}=(0,c.Rh)(),n=(0,d.hV)(),s=(0,d.Az)(),l=(0,u.useCallback)(()=>e({title:"Announce",action:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.cfm,{}),"Announce"]}),variant:"accent",body:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(i.nvN,{size:"14",children:"Confirm to broadcast host announcement."}),n.data&&(0,t.jsxs)(i.nvN,{size:"14",children:["Announcing will cost"," ",(0,x.Vz)(new(f())(n.data).times(1e3)),"."]})]}),onConfirm:async()=>{let e=await s.post({});e.error&&(0,i.OHV)("Error announcing host."),(0,i.OPV)("Successfully broadcast host announcement.")}}),[e,s,n]);return(0,t.jsxs)(i.zxk,{variant:"accent",tip:"Announce host address",onClick:l,children:[(0,t.jsx)(a.cfm,{}),"Announce"]})}var j=s(99957);function m(){let{showAdvanced:e,setShowAdvanced:n}=(0,j.ZR)();return(0,t.jsx)("div",{className:"pl-1",children:(0,t.jsx)(i.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,t.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,t.jsx)(i.rsf,{checked:e,onCheckedChange:e=>n(e)}),(0,t.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function g(){var e;let{openDialog:n}=(0,c.Rh)(),{fields:s,settings:d,dynDNSCheck:x,changeCount:u,revalidateAndResetFormData:h,form:f,onSubmit:g}=(0,j.ZR)();return(0,t.jsx)(o.q,{title:"Configuration",routes:r._,nav:(0,t.jsx)(m,{}),sidenav:(0,t.jsx)(l.N,{}),stats:(null===(e=d.data)||void 0===e?void 0:e.ddns.provider)&&!x.isValidating?x.error?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.xvT,{color:"amber",children:(0,t.jsx)(a.qdM,{})}),(0,t.jsxs)(i.xvT,{size:"14",children:["Error with dynamic DNS configuration:"," ",x.error.message]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.xvT,{color:"green",children:(0,t.jsx)(a.Y3p,{})}),(0,t.jsx)(i.xvT,{children:"Dynamic DNS enabled"})]}):null,actions:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[!!u&&(0,t.jsx)(i.xvT,{size:"12",color:"subtle",children:1===u?"1 change":"".concat(u," changes")}),(0,t.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!u,onClick:h,children:(0,t.jsx)(a.Wet,{})}),(0,t.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!f.formState.isDirty||f.formState.isSubmitting,onClick:g,children:[(0,t.jsx)(a.ZEk,{}),"Save changes"]}),(0,t.jsx)(v,{})]}),openSettings:()=>n("settings"),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-16 max-w-screen-xl",children:[(0,t.jsx)(i.vRO,{title:"Host",category:"host",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Pricing",category:"pricing",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"DNS",category:"DNS",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Bandwidth",category:"bandwidth",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Registry",category:"registry",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Accounts",category:"RHP3",fields:s,form:f})]})})}function p(){return(0,t.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,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return s(29575)}])},14134:function(e,n,s){"use strict";s.d(n,{q:function(){return h}});var t=s(52322),i=s(93463),a=s(27444),l=s(6391),r=s.n(l),c=s(71930),o=s(25573);function d(){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(22515);function u(){var e,n,s,l,r,c,d;let{openDialog:u}=(0,x.Rh)(),h=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,o.n)(),j=(0,a.cQ)(),m=null===(e=h.data)||void 0===e?void 0:e.version,g=(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(m):"https://github.com/SiaFoundation/hostd/tree/".concat(m);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=j.data)||void 0===n?void 0:n.length,connectPeer:()=>u("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.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:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(s=f.data)||void 0===s?void 0:s.netAddress,maxLength:50,label:"network address"})})]}),(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:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(l=h.data)||void 0===l?void 0:l.publicKey,maxLength:50,label:"public key"})})]}),(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",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(r=h.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(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",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(c=h.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:g,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=h.data)||void 0===d?void 0:d.version})]})]})}function h(e){let n=(0,a.Os)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,t.jsx)(d,{}),profile:(0,t.jsx)(u,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return d}});var t=s(52322),i=s(93463),a=s(41775),l=s(27444),r=s(82851),c=s(71930),o=s(22515);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,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:c._.home,children:(0,t.jsx)(a.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,t.jsx)(a.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(i.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)(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:()=>s("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},29575:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return p}});var t=s(52322),i=s(93463),a=s(41775),l=s(66724),r=s(71930),c=s(22515),o=s(14134),d=s(27444),x=s(96206),u=s(2784),h=s(6391),f=s.n(h);function v(){let{openConfirmDialog:e}=(0,c.Rh)(),n=(0,d.hV)(),s=(0,d.Az)(),l=(0,u.useCallback)(()=>e({title:"Announce",action:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.cfm,{}),"Announce"]}),variant:"accent",body:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(i.nvN,{size:"14",children:"Confirm to broadcast host announcement."}),n.data&&(0,t.jsxs)(i.nvN,{size:"14",children:["Announcing will cost"," ",(0,x.Vz)(new(f())(n.data).times(1e3)),"."]})]}),onConfirm:async()=>{let e=await s.post({});e.error&&(0,i.OHV)("Error announcing host."),(0,i.OPV)("Successfully broadcast host announcement.")}}),[e,s,n]);return(0,t.jsxs)(i.zxk,{variant:"accent",tip:"Announce host address",onClick:l,children:[(0,t.jsx)(a.cfm,{}),"Announce"]})}var j=s(99957);function m(){let{showAdvanced:e,setShowAdvanced:n}=(0,j.ZR)();return(0,t.jsx)("div",{className:"pl-1",children:(0,t.jsx)(i.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,t.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,t.jsx)(i.rsf,{checked:e,onCheckedChange:e=>n(e)}),(0,t.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function g(){var e;let{openDialog:n}=(0,c.Rh)(),{fields:s,settings:d,dynDNSCheck:x,changeCount:u,revalidateAndResetFormData:h,form:f,onSubmit:g}=(0,j.ZR)();return(0,t.jsx)(o.q,{title:"Configuration",routes:r._,nav:(0,t.jsx)(m,{}),sidenav:(0,t.jsx)(l.N,{}),stats:(null===(e=d.data)||void 0===e?void 0:e.ddns.provider)&&!x.isValidating?x.error?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.xvT,{color:"amber",children:(0,t.jsx)(a.qdM,{})}),(0,t.jsxs)(i.xvT,{size:"14",children:["Error with dynamic DNS configuration:"," ",x.error.message]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.xvT,{color:"green",children:(0,t.jsx)(a.Y3p,{})}),(0,t.jsx)(i.xvT,{children:"Dynamic DNS enabled"})]}):null,actions:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[!!u&&(0,t.jsx)(i.xvT,{size:"12",color:"subtle",children:1===u?"1 change":"".concat(u," changes")}),(0,t.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!u,onClick:h,children:(0,t.jsx)(a.Wet,{})}),(0,t.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!f.formState.isDirty||f.formState.isSubmitting,onClick:g,children:[(0,t.jsx)(a.ZEk,{}),"Save changes"]}),(0,t.jsx)(v,{})]}),openSettings:()=>n("settings"),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-16 max-w-screen-xl",children:[(0,t.jsx)(i.vRO,{title:"Host",category:"host",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Pricing",category:"pricing",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"DNS",category:"DNS",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Bandwidth",category:"bandwidth",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Registry",category:"registry",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Accounts",category:"RHP3",fields:s,form:f})]})})}function p(){return(0,t.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/hostd/assets/_next/static/chunks/pages/contracts-8745a389d33b43c3.js b/hostd/assets/_next/static/chunks/pages/contracts-5a31114befab9dfd.js similarity index 98% rename from hostd/assets/_next/static/chunks/pages/contracts-8745a389d33b43c3.js rename to hostd/assets/_next/static/chunks/pages/contracts-5a31114befab9dfd.js index dfbe2a6f6..e9d551cf6 100644 --- a/hostd/assets/_next/static/chunks/pages/contracts-8745a389d33b43c3.js +++ b/hostd/assets/_next/static/chunks/pages/contracts-5a31114befab9dfd.js @@ -1 +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(1974)}])},14134:function(e,s,n){"use strict";n.d(s,{q:function(){return h}});var l=n(52322),t=n(76848),a=n(27444),i=n(6391),r=n.n(i),c=n(71930),o=n(25573);function d(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,l.jsx)(t.t6k,{testnetName:e.data.network}):null}var x=n(22515);function u(){var e,s,n,i,r,c,d;let{openDialog:u}=(0,x.Rh)(),h=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,o.n)(),m=(0,a.cQ)(),v=null===(e=h.data)||void 0===e?void 0:e.version,p=(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(v):"https://github.com/SiaFoundation/hostd/tree/".concat(v);return(0,l.jsxs)(t.HfT,{name:"hostd",peerCount:null===(s=m.data)||void 0===s?void 0:s.length,connectPeer:()=>u("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.XxW,{className:"overflow-hidden",size:"14",value:null===(n=j.data)||void 0===n?void 0:n.netAddress,maxLength:50,label:"network address"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.XxW,{className:"overflow-hidden",size:"14",value:null===(i=h.data)||void 0===i?void 0:i.publicKey,maxLength:50,label:"public key"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__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",children:(0,l.jsx)(t.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(r=h.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.xvT,{size:"14",children:null===(c=h.data)||void 0===c?void 0:c.network})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,l.jsx)(t.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=h.data)||void 0===d?void 0:d.version})]})]})}function h(e){let s=(0,a.Os)(),{isSynced:n}=(0,o.n)();return(0,l.jsx)(t.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,l.jsx)(d,{}),profile:(0,l.jsx)(u,{}),isSynced:n,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},66724:function(e,s,n){"use strict";n.d(s,{N:function(){return d}});var l=n(52322),t=n(76848),a=n(41775),i=n(27444),r=n(82851),c=n(71930),o=n(22515);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,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.KJW,{title:"Dashboard",route:c._.home,children:(0,l.jsx)(a.K2o,{})}),(0,l.jsx)(t.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,l.jsx)(a.zvn,{})}),(0,l.jsx)(t.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,l.jsx)(a.VBo,{})}),(0,l.jsx)(t.KJW,{title:"Configuration",route:c._.config.index,children:(0,l.jsx)(a.wWN,{})}),(0,l.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,l.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,l.jsx)(t.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,l.jsx)(t.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,l.jsx)(a.Dkj,{})})]})]})}},1974:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return _}});var l=n(52322),t=n(66724),a=n(71930),i=n(76848),r=n(22515),c=n(92838),o=n(14134),d=n(41775);function x(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(i.xvT,{children:(0,l.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,l.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function u(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(i.xvT,{children:(0,l.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,l.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,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(i.xvT,{children:(0,l.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,l.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var j=n(56860),f=n(3440),m=n.n(f);function v(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,setColumnsVisible:t,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,l.jsxs)(i.J2e,{trigger:(0,l.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,l.jsx)(d.hiv,{}),"View",(0,l.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,l.jsxs)(i.WVB,{children:[(0,l.jsx)(i.__J,{children:"Order by"}),(0,l.jsx)(i.kFS,{children:(0,l.jsx)(i.PhF,{value:r,onChange:e=>{o(e.currentTarget.value)},children:Object.entries(m()(j.Fo,"category")).map(e=>{let[s,n]=e;return(0,l.jsx)("optgroup",{label:s,children:n.map(e=>(0,l.jsx)(i.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,l.jsxs)(i.WVB,{children:[(0,l.jsx)(i.__J,{children:"Direction"}),(0,l.jsx)(i.kFS,{children:(0,l.jsxs)(i.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,l.jsx)(i.Wxm,{value:"desc",children:"descending"},"desc"),(0,l.jsx)(i.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,l.jsx)(i.Clw,{}),(0,l.jsxs)(i.WVB,{children:[(0,l.jsx)(i.__J,{children:"Display properties"}),(0,l.jsx)(i.kFS,{children:(0,l.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),n()},children:(0,l.jsx)(d.Wet,{})})})]}),(0,l.jsx)(i.FzK,{label:"General",columns:f.map(e=>e.value),enabled:h,setColumnsVisible:t,setColumnsHidden:a}),(0,l.jsx)(i.WVB,{children:(0,l.jsx)(i.j4H,{options:f,values:h,onChange:e=>s(e)})}),(0,l.jsx)(i.FzK,{label:"Time",columns:v.map(e=>e.value),enabled:h,setColumnsVisible:t,setColumnsHidden:a}),(0,l.jsx)(i.WVB,{children:(0,l.jsx)(i.j4H,{options:v,values:h,onChange:e=>s(e)})}),(0,l.jsx)(i.FzK,{label:"Usage",columns:p.map(e=>e.value),enabled:h,setColumnsVisible:t,setColumnsHidden:a}),(0,l.jsx)(i.WVB,{children:(0,l.jsx)(i.j4H,{options:p,values:h,onChange:e=>s(e)})})]})}function p(){return(0,l.jsx)("div",{className:"flex gap-2",children:(0,l.jsx)(v,{})})}var g=n(99182),b=n(2784),w=n(3639);function N(){let{filters:e,removeFilter:s,removeLastFilter:n}=(0,c.G)(),[t,a]=(0,b.useState)(!1),[r,o]=(0,b.useState)(""),[x,u]=(0,b.useState)([]),h=x[x.length-1],j=(x.length,(0,b.useRef)(null)),f=(0,b.useRef)(null),m=(0,b.useCallback)(e=>{u(s=>[...s,e])},[u]),v=(0,b.useCallback)(()=>{u([])},[u]);(0,b.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 p=(0,b.useCallback)(()=>{var e;null===(e=f.current)||void 0===e||e.focus()},[f]),N=(0,b.useCallback)(()=>{o(""),v()},[v]);return(0,l.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,l.jsxs)(i.eQh,{children:[(0,l.jsx)(i.zxk,{variant:"active",state:"waiting",children:(0,i.$Gg)(e.label,30)}),(0,l.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,l.jsx)(d.PcV,{})})]},e.id)),(0,l.jsxs)(g.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=f.current)||void 0===s||s.blur()}},children:[(0,l.jsx)(g.mY.Input,{ref:f,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),t&&(0,l.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,l.jsxs)(i.xrM,{children:[h&&(0,l.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,l.jsx)(g.mY.List,{children:(0,l.jsx)(w.F,{currentPage:h,beforeSelect:p,afterSelect:N,pushPage:m})})]})})]})]})}function k(){let{offset:e,limit:s,totalCount:n,pageCount:t,dataState:a}=(0,c.G)();return(0,l.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,l.jsx)(N,{}),(0,l.jsx)(i.uDJ,{offset:e,limit:s,isLoading:"loading"===a,datasetTotal:n,pageTotal:t})]})}function y(){let{openDialog:e}=(0,r.Rh)(),{columns:s,dataset:n,sortField:d,sortDirection:j,sortableColumns:f,toggleSort:m,limit:v,dataState:g,cellContext:b}=(0,c.G)();return(0,l.jsx)(o.q,{title:"Contracts",routes:a._,sidenav:(0,l.jsx)(t.N,{}),openSettings:()=>e("settings"),actions:(0,l.jsx)(p,{}),stats:(0,l.jsx)(k,{}),size:"full",children:(0,l.jsx)("div",{className:"p-6 min-w-fit",children:(0,l.jsx)(i.iA_,{context:b,isLoading:"loading"===g,emptyState:"noneMatchingFilters"===g?(0,l.jsx)(x,{}):"noneYet"===g?(0,l.jsx)(u,{}):"error"===g?(0,l.jsx)(h,{}):null,pageSize:v,data:n,columns:s,sortableColumns:f,sortDirection:j,sortField:d,toggleSort:m})})})}function _(){return(0,l.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 +(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(1974)}])},14134:function(e,s,n){"use strict";n.d(s,{q:function(){return h}});var l=n(52322),t=n(93463),a=n(27444),i=n(6391),r=n.n(i),c=n(71930),o=n(25573);function d(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,l.jsx)(t.t6k,{testnetName:e.data.network}):null}var x=n(22515);function u(){var e,s,n,i,r,c,d;let{openDialog:u}=(0,x.Rh)(),h=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,o.n)(),m=(0,a.cQ)(),v=null===(e=h.data)||void 0===e?void 0:e.version,p=(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(v):"https://github.com/SiaFoundation/hostd/tree/".concat(v);return(0,l.jsxs)(t.HfT,{name:"hostd",peerCount:null===(s=m.data)||void 0===s?void 0:s.length,connectPeer:()=>u("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.XxW,{className:"overflow-hidden",size:"14",value:null===(n=j.data)||void 0===n?void 0:n.netAddress,maxLength:50,label:"network address"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.XxW,{className:"overflow-hidden",size:"14",value:null===(i=h.data)||void 0===i?void 0:i.publicKey,maxLength:50,label:"public key"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__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",children:(0,l.jsx)(t.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(r=h.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.xvT,{size:"14",children:null===(c=h.data)||void 0===c?void 0:c.network})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,l.jsx)(t.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=h.data)||void 0===d?void 0:d.version})]})]})}function h(e){let s=(0,a.Os)(),{isSynced:n}=(0,o.n)();return(0,l.jsx)(t.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,l.jsx)(d,{}),profile:(0,l.jsx)(u,{}),isSynced:n,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},66724:function(e,s,n){"use strict";n.d(s,{N:function(){return d}});var l=n(52322),t=n(93463),a=n(41775),i=n(27444),r=n(82851),c=n(71930),o=n(22515);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,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.KJW,{title:"Dashboard",route:c._.home,children:(0,l.jsx)(a.K2o,{})}),(0,l.jsx)(t.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,l.jsx)(a.zvn,{})}),(0,l.jsx)(t.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,l.jsx)(a.VBo,{})}),(0,l.jsx)(t.KJW,{title:"Configuration",route:c._.config.index,children:(0,l.jsx)(a.wWN,{})}),(0,l.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,l.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,l.jsx)(t.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,l.jsx)(t.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,l.jsx)(a.Dkj,{})})]})]})}},1974:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return _}});var l=n(52322),t=n(66724),a=n(71930),i=n(93463),r=n(22515),c=n(92838),o=n(14134),d=n(41775);function x(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(i.xvT,{children:(0,l.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,l.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function u(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(i.xvT,{children:(0,l.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,l.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,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(i.xvT,{children:(0,l.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,l.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var j=n(56860),f=n(3440),m=n.n(f);function v(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,setColumnsVisible:t,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,l.jsxs)(i.J2e,{trigger:(0,l.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,l.jsx)(d.hiv,{}),"View",(0,l.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,l.jsxs)(i.WVB,{children:[(0,l.jsx)(i.__J,{children:"Order by"}),(0,l.jsx)(i.kFS,{children:(0,l.jsx)(i.PhF,{value:r,onChange:e=>{o(e.currentTarget.value)},children:Object.entries(m()(j.Fo,"category")).map(e=>{let[s,n]=e;return(0,l.jsx)("optgroup",{label:s,children:n.map(e=>(0,l.jsx)(i.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,l.jsxs)(i.WVB,{children:[(0,l.jsx)(i.__J,{children:"Direction"}),(0,l.jsx)(i.kFS,{children:(0,l.jsxs)(i.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,l.jsx)(i.Wxm,{value:"desc",children:"descending"},"desc"),(0,l.jsx)(i.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,l.jsx)(i.Clw,{}),(0,l.jsxs)(i.WVB,{children:[(0,l.jsx)(i.__J,{children:"Display properties"}),(0,l.jsx)(i.kFS,{children:(0,l.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),n()},children:(0,l.jsx)(d.Wet,{})})})]}),(0,l.jsx)(i.FzK,{label:"General",columns:f.map(e=>e.value),enabled:h,setColumnsVisible:t,setColumnsHidden:a}),(0,l.jsx)(i.WVB,{children:(0,l.jsx)(i.j4H,{options:f,values:h,onChange:e=>s(e)})}),(0,l.jsx)(i.FzK,{label:"Time",columns:v.map(e=>e.value),enabled:h,setColumnsVisible:t,setColumnsHidden:a}),(0,l.jsx)(i.WVB,{children:(0,l.jsx)(i.j4H,{options:v,values:h,onChange:e=>s(e)})}),(0,l.jsx)(i.FzK,{label:"Usage",columns:p.map(e=>e.value),enabled:h,setColumnsVisible:t,setColumnsHidden:a}),(0,l.jsx)(i.WVB,{children:(0,l.jsx)(i.j4H,{options:p,values:h,onChange:e=>s(e)})})]})}function p(){return(0,l.jsx)("div",{className:"flex gap-2",children:(0,l.jsx)(v,{})})}var g=n(99182),b=n(2784),w=n(3639);function N(){let{filters:e,removeFilter:s,removeLastFilter:n}=(0,c.G)(),[t,a]=(0,b.useState)(!1),[r,o]=(0,b.useState)(""),[x,u]=(0,b.useState)([]),h=x[x.length-1],j=(x.length,(0,b.useRef)(null)),f=(0,b.useRef)(null),m=(0,b.useCallback)(e=>{u(s=>[...s,e])},[u]),v=(0,b.useCallback)(()=>{u([])},[u]);(0,b.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 p=(0,b.useCallback)(()=>{var e;null===(e=f.current)||void 0===e||e.focus()},[f]),N=(0,b.useCallback)(()=>{o(""),v()},[v]);return(0,l.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,l.jsxs)(i.eQh,{children:[(0,l.jsx)(i.zxk,{variant:"active",state:"waiting",children:(0,i.$Gg)(e.label,30)}),(0,l.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,l.jsx)(d.PcV,{})})]},e.id)),(0,l.jsxs)(g.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=f.current)||void 0===s||s.blur()}},children:[(0,l.jsx)(g.mY.Input,{ref:f,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),t&&(0,l.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,l.jsxs)(i.xrM,{children:[h&&(0,l.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,l.jsx)(g.mY.List,{children:(0,l.jsx)(w.F,{currentPage:h,beforeSelect:p,afterSelect:N,pushPage:m})})]})})]})]})}function k(){let{offset:e,limit:s,totalCount:n,pageCount:t,dataState:a}=(0,c.G)();return(0,l.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,l.jsx)(N,{}),(0,l.jsx)(i.uDJ,{offset:e,limit:s,isLoading:"loading"===a,datasetTotal:n,pageTotal:t})]})}function y(){let{openDialog:e}=(0,r.Rh)(),{columns:s,dataset:n,sortField:d,sortDirection:j,sortableColumns:f,toggleSort:m,limit:v,dataState:g,cellContext:b}=(0,c.G)();return(0,l.jsx)(o.q,{title:"Contracts",routes:a._,sidenav:(0,l.jsx)(t.N,{}),openSettings:()=>e("settings"),actions:(0,l.jsx)(p,{}),stats:(0,l.jsx)(k,{}),size:"full",children:(0,l.jsx)("div",{className:"p-6 min-w-fit",children:(0,l.jsx)(i.iA_,{context:b,isLoading:"loading"===g,emptyState:"noneMatchingFilters"===g?(0,l.jsx)(x,{}):"noneYet"===g?(0,l.jsx)(u,{}):"error"===g?(0,l.jsx)(h,{}):null,pageSize:v,data:n,columns:s,sortableColumns:f,sortDirection:j,sortField:d,toggleSort:m})})})}function _(){return(0,l.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-3cfdba175a7b6ce8.js b/hostd/assets/_next/static/chunks/pages/index-3cfdba175a7b6ce8.js new file mode 100644 index 000000000..0ed4b8857 --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/index-3cfdba175a7b6ce8.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(23659)}])},14134:function(e,a,s){"use strict";s.d(a,{q:function(){return f}});var t=s(52322),o=s(93463),i=s(27444),l=s(6391),n=s.n(l),r=s(71930),d=s(25573);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(22515);function x(){var e,a,s,l,n,r,c;let{openDialog:x}=(0,g.Rh)(),f=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,i.rV)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,d.n)(),v=(0,i.cQ)(),j=null===(e=f.data)||void 0===e?void 0:e.version,b=(null==j?void 0:j.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(j):"https://github.com/SiaFoundation/hostd/tree/".concat(j);return(0,t.jsxs)(o.HfT,{name:"hostd",peerCount:null===(a=v.data)||void 0===a?void 0:a.length,connectPeer:()=>x("connectPeer"),isSynced:h.isSynced,syncPercent:h.syncPercent,nodeBlockHeight:h.nodeBlockHeight,estimatedBlockHeight:h.estimatedBlockHeight,firstTimeSyncing:h.firstTimeSyncing,moreThan100BlocksToSync:h.moreThan100BlocksToSync,children:[(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:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(o.XxW,{className:"overflow-hidden",size:"14",value:null===(s=u.data)||void 0===s?void 0:s.netAddress,maxLength:50,label:"network address"})})]}),(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:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(o.XxW,{className:"overflow-hidden",size:"14",value:null===(l=f.data)||void 0===l?void 0:l.publicKey,maxLength:50,label:"public key"})})]}),(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:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(o.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(n=f.data)||void 0===n?void 0:n.walletAddress,type:"address"})})]}),(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:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(o.xvT,{size:"14",children:null===(r=f.data)||void 0===r?void 0:r.network})})]}),(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:"Version"}),(0,t.jsx)(o.rUS,{size:"14",href:b,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=f.data)||void 0===c?void 0:c.version})]})]})}function f(e){let a=(0,i.Os)(),{isSynced:s}=(0,d.n)();return(0,t.jsx)(o.tU3,{appName:"hostd",connectivityRoute:r.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(x,{}),isSynced:s,walletBalanceSc:a.data&&{spendable:new(n())(a.data.spendable),confirmed:new(n())(a.data.confirmed),unconfirmed:new(n())(a.data.unconfirmed)},...e})}},66724:function(e,a,s){"use strict";s.d(a,{N:function(){return c}});var t=s(52322),o=s(93463),i=s(41775),l=s(27444),n=s(82851),r=s(71930),d=s(22515);function c(){var e,a;let{openDialog:s}=(0,d.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:r._.home,children:(0,t.jsx)(i.K2o,{})}),(0,t.jsx)(o.KJW,{title:"Volumes",route:r._.volumes.index,children:(0,t.jsx)(i.zvn,{})}),(0,t.jsx)(o.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,t.jsx)(i.VBo,{})}),(0,t.jsx)(o.KJW,{title:"Configuration",route:r._.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,{})})]})]})}},23659:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return p}});var t=s(52322),o=s(93463),i=s(41775),l=s(5187);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:"earned revenue",color:e.config.data.earned.color,sc:e.stats.earned,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"potential revenue",color:e.config.data.potential.color,sc:e.stats.potential,defaultMode:"total",isLoading:e.isLoading,showChange:!1}),(0,t.jsx)(o.A06,{category:"revenue",label:"storage",color:e.config.data.storage.color,sc:e.stats.storage,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"registry read",color:e.config.data.registryRead.color,sc:e.stats.registryRead,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"registry write",color:e.config.data.registryWrite.color,sc:e.stats.registryWrite,defaultMode:"total",isLoading:e.isLoading})]}),(0,t.jsx)(o.b0u,{id:"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 r=s(96206);function d(){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"],format:r.vW}),(0,t.jsx)(o.A06,{category:"storage",label:"registry",color:e.config.data.registryEntries.color,value:e.stats.registryEntries,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],format:r.vW})]}),(0,t.jsx)(o.b0u,{id:"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,format: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,format: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,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"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(94977);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:"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(14134),u=s(71930),h=s(66724),v=s(22515),j=s(14817);function b(){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"],format:r.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"],format:r.yF}),(0,t.jsx)(o.A06,{category:"operations",label:"registry reads",color:e.config.data.registryReads.color,value:e.stats.registryReads,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:r.yF}),(0,t.jsx)(o.A06,{category:"operations",label:"registry writes",color:e.config.data.registryWrites.color,value:e.stats.registryWrites,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:r.yF})]}),(0,t.jsx)(o.b0u,{id:"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 m(){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,format:r.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,format:r.vW})]}),(0,t.jsx)(o.b0u,{id:"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 y(){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:"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,r.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,r.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=>{let a=e.currentTarget.value;g(a)},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)(y,{}),(0,t.jsx)(d,{}),(0,t.jsx)(m,{}),(0,t.jsx)(b,{}),(0,t.jsx)(c,{}),(0,t.jsx)(x,{})]})})}function p(){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-e7b77d077e51306b.js b/hostd/assets/_next/static/chunks/pages/index-e7b77d077e51306b.js deleted file mode 100644 index 93fea7a43..000000000 --- a/hostd/assets/_next/static/chunks/pages/index-e7b77d077e51306b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(23659)}])},14134:function(e,a,t){"use strict";t.d(a,{q:function(){return f}});var s=t(52322),o=t(76848),i=t(27444),l=t(6391),n=t.n(l),r=t(71930),d=t(25573);function c(){let e=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(o.t6k,{testnetName:e.data.network}):null}var g=t(22515);function x(){var e,a,t,l,n,r,c;let{openDialog:x}=(0,g.Rh)(),f=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,i.rV)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,d.n)(),v=(0,i.cQ)(),j=null===(e=f.data)||void 0===e?void 0:e.version,b=(null==j?void 0:j.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(j):"https://github.com/SiaFoundation/hostd/tree/".concat(j);return(0,s.jsxs)(o.HfT,{name:"hostd",peerCount:null===(a=v.data)||void 0===a?void 0:a.length,connectPeer:()=>x("connectPeer"),isSynced:h.isSynced,syncPercent:h.syncPercent,nodeBlockHeight:h.nodeBlockHeight,estimatedBlockHeight:h.estimatedBlockHeight,firstTimeSyncing:h.firstTimeSyncing,moreThan100BlocksToSync:h.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__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",children:(0,s.jsx)(o.XxW,{className:"overflow-hidden",size:"14",value:null===(t=u.data)||void 0===t?void 0:t.netAddress,maxLength:50,label:"network address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__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",children:(0,s.jsx)(o.XxW,{className:"overflow-hidden",size:"14",value:null===(l=f.data)||void 0===l?void 0:l.publicKey,maxLength:50,label:"public key"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__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",children:(0,s.jsx)(o.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(n=f.data)||void 0===n?void 0:n.walletAddress,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__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)(o.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)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(o.rUS,{size:"14",href:b,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=f.data)||void 0===c?void 0:c.version})]})]})}function f(e){let a=(0,i.Os)(),{isSynced:t}=(0,d.n)();return(0,s.jsx)(o.tU3,{appName:"hostd",connectivityRoute:r.h,banner:(0,s.jsx)(c,{}),profile:(0,s.jsx)(x,{}),isSynced:t,walletBalanceSc:a.data&&{spendable:new(n())(a.data.spendable),confirmed:new(n())(a.data.confirmed),unconfirmed:new(n())(a.data.unconfirmed)},...e})}},66724:function(e,a,t){"use strict";t.d(a,{N:function(){return c}});var s=t(52322),o=t(76848),i=t(41775),l=t(27444),n=t(82851),r=t(71930),d=t(22515);function c(){var e,a;let{openDialog:t}=(0,d.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.KJW,{title:"Dashboard",route:r._.home,children:(0,s.jsx)(i.K2o,{})}),(0,s.jsx)(o.KJW,{title:"Volumes",route:r._.volumes.index,children:(0,s.jsx)(i.zvn,{})}),(0,s.jsx)(o.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,s.jsx)(i.VBo,{})}),(0,s.jsx)(o.KJW,{title:"Configuration",route:r._.config.index,children:(0,s.jsx)(i.wWN,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&g&&(0,s.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,s.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,s.jsx)(o.KJW,{title:"Alerts",onClick:()=>t("alerts"),children:(0,s.jsx)(i.Dkj,{})})]})]})}},23659:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return L}});var s=t(52322),o=t(76848),i=t(41775),l=t(5187);function n(){let{revenue:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Revenue"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"revenue",label:"earned revenue",color:e.config.data.earned.color,sc:e.stats.earned,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"potential revenue",color:e.config.data.potential.color,sc:e.stats.potential,defaultMode:"total",isLoading:e.isLoading,showChange:!1}),(0,s.jsx)(o.A06,{category:"revenue",label:"storage",color:e.config.data.storage.color,sc:e.stats.storage,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"registry read",color:e.config.data.registryRead.color,sc:e.stats.registryRead,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"registry write",color:e.config.data.registryWrite.color,sc:e.stats.registryWrite,defaultMode:"total",isLoading:e.isLoading})]}),(0,s.jsx)(o.b0u,{id:"revenue",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Revenue"})})})]})}var r=t(96206);function d(){let{storage:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,s.jsx)(o.X6q,{children:"Storage"}),(0,s.jsxs)(o.Vy9,{children:[(0,s.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"],format:r.vW}),(0,s.jsx)(o.A06,{category:"storage",label:"registry",color:e.config.data.registryEntries.color,value:e.stats.registryEntries,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],format:r.vW})]}),(0,s.jsx)(o.b0u,{id:"storage",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Storage"})})})]})}function c(){let{contracts:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Contracts"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"contracts",label:"Active contracts",color:e.config.data.active.color,value:e.stats.active,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"contracts",label:"Successful contracts",color:e.config.data.successful.color,value:e.stats.successful,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"contracts",label:"Failed contracts",color:e.config.data.failed.color,value:e.stats.failed,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"contracts",actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Contracts"})}),data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,height:300})]})}var g=t(94977);function x(){let{pricing:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Pricing"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.jsx)(o.b0u,{id:"pricing",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Pricing"})})})]})}var f=t(14134),u=t(71930),h=t(66724),v=t(22515),j=t(14817);function b(){let{operations:e}=(0,l.B)();return(0,s.jsx)("div",{className:"flex gap-3",children:(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,s.jsx)(o.X6q,{children:"Operations"}),(0,s.jsxs)(o.Vy9,{children:[(0,s.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"],format:r.yF}),(0,s.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"],format:r.yF}),(0,s.jsx)(o.A06,{category:"operations",label:"registry reads",color:e.config.data.registryReads.color,value:e.stats.registryReads,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:r.yF}),(0,s.jsx)(o.A06,{category:"operations",label:"registry writes",color:e.config.data.registryWrites.color,value:e.stats.registryWrites,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:r.yF})]}),(0,s.jsx)(o.b0u,{id:"operations",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Operations"})})})]})})}function y(){let{bandwidth:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,s.jsx)(o.X6q,{children:"Bandwidth"}),(0,s.jsxs)(o.Vy9,{children:[(0,s.jsx)(o.A06,{category:"bandwidth",label:"ingress",color:e.config.data.ingress.color,value:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading,format:r.vW}),(0,s.jsx)(o.A06,{category:"bandwidth",label:"egress",color:e.config.data.egress.color,value:e.stats.egress,defaultMode:"total",isLoading:e.isLoading,format:r.vW})]}),(0,s.jsx)(o.b0u,{id:"bandwidth",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Bandwidth"})})})]})}function m(){let{collateral:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Collateral"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.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,s.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,s.jsx)(o.b0u,{id:"collateral",actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Collateral"})}),data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,height:300})]})}function p(){let{openDialog:e}=(0,v.Rh)(),{timeRange:a,dataTimeSpan:t,setDataTimeSpan:g,dataInterval:p}=(0,l.B)();return(0,s.jsx)(f.q,{title:"Overview",routes:u._,sidenav:(0,s.jsx)(h.N,{}),openSettings:()=>e("settings"),nav:(0,s.jsx)("div",{className:"flex gap-2 flex-1",children:(0,s.jsxs)(o.eQh,{children:[(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",children:(0,r.rN)(a.start,{dateStyle:"long"})})}),(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",color:"subtle",children:"to"})}),(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",children:(0,r.rN)(a.end,{dateStyle:"long"})})})]})}),size:"full",actions:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.ua7,{side:"bottom",content:"Data interval: ".concat(p),children:(0,s.jsx)("div",{children:(0,s.jsxs)(o.zxk,{variant:"ghost",state:"waiting",children:[(0,s.jsx)(i.BB5,{}),p]})})}),(0,s.jsx)(o.ua7,{content:"Data time range",side:"bottom",children:(0,s.jsx)("div",{children:(0,s.jsx)(o.PhF,{value:String(t),onChange:e=>{let a=e.currentTarget.value;g(a)},icon:(0,s.jsx)(o.xvT,{className:"pl-1 pr-2",children:(0,s.jsx)(i.YV2,{})}),children:j.lv.map(e=>(0,s.jsx)(o.Wxm,{value:e.value,children:e.label},e.value))})})})]}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-14",children:[(0,s.jsx)(n,{}),(0,s.jsx)(m,{}),(0,s.jsx)(d,{}),(0,s.jsx)(y,{}),(0,s.jsx)(b,{}),(0,s.jsx)(c,{}),(0,s.jsx)(x,{})]})})}function L(){return(0,s.jsx)(p,{})}}},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/login-7b3bb221a6795fa1.js b/hostd/assets/_next/static/chunks/pages/login-f420da0d9047933c.js similarity index 88% rename from hostd/assets/_next/static/chunks/pages/login-7b3bb221a6795fa1.js rename to hostd/assets/_next/static/chunks/pages/login-f420da0d9047933c.js index 9eebf66c2..80edcab1e 100644 --- a/hostd/assets/_next/static/chunks/pages/login-7b3bb221a6795fa1.js +++ b/hostd/assets/_next/static/chunks/pages/login-f420da0d9047933c.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(76309)}])},76309:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return c}});var r=t(52322),e=t(76848),o=t(71930);function i(n){return(0,r.jsx)(e.juT,{appName:"hostd",...n})}function s(){return(0,r.jsx)(i,{children:(0,r.jsx)(e.zXq,{appName:"hostd",route:o.h,routes:o._})})}function c(){return(0,r.jsx)(s,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(76309)}])},76309:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return c}});var r=t(52322),e=t(93463),o=t(71930);function i(n){return(0,r.jsx)(e.juT,{appName:"hostd",...n})}function s(){return(0,r.jsx)(i,{children:(0,r.jsx)(e.zXq,{appName:"hostd",route:o.h,routes:o._})})}function c(){return(0,r.jsx)(s,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/node-a334faf802742481.js b/hostd/assets/_next/static/chunks/pages/node-a011852efbd055ff.js similarity index 96% rename from hostd/assets/_next/static/chunks/pages/node-a334faf802742481.js rename to hostd/assets/_next/static/chunks/pages/node-a011852efbd055ff.js index 21b1b4ca1..458d59f62 100644 --- a/hostd/assets/_next/static/chunks/pages/node-a334faf802742481.js +++ b/hostd/assets/_next/static/chunks/pages/node-a011852efbd055ff.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{34498:function(e,n,t){var s=t(23813),i=t(86152);e.exports=function(e,n,t,l){return null==e?[]:(i(n)||(n=null==n?[]:[n]),i(t=l?void 0:t)||(t=null==t?[]:[t]),s(e,n,t))}},27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(61936)}])},14134:function(e,n,t){"use strict";t.d(n,{q:function(){return h}});var s=t(52322),i=t(76848),l=t(27444),a=t(6391),o=t.n(a),d=t(71930),r=t(25573);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(22515);function x(){var e,n,t,a,o,d,c;let{openDialog:x}=(0,u.Rh)(),h=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.n)(),j=(0,l.cQ)(),m=null===(e=h.data)||void 0===e?void 0:e.version,p=(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(m):"https://github.com/SiaFoundation/hostd/tree/".concat(m);return(0,s.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=j.data)||void 0===n?void 0:n.length,connectPeer:()=>x("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.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:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(t=v.data)||void 0===t?void 0:t.netAddress,maxLength:50,label:"network address"})})]}),(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:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(a=h.data)||void 0===a?void 0:a.publicKey,maxLength:50,label:"public key"})})]}),(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",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(o=h.data)||void 0===o?void 0:o.walletAddress,type:"address"})})]}),(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",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(d=h.data)||void 0===d?void 0:d.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:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(e){let n=(0,l.Os)(),{isSynced:t}=(0,r.n)();return(0,s.jsx)(i.tU3,{appName:"hostd",connectivityRoute:d.h,banner:(0,s.jsx)(c,{}),profile:(0,s.jsx)(x,{}),isSynced:t,walletBalanceSc:n.data&&{spendable:new(o())(n.data.spendable),confirmed:new(o())(n.data.confirmed),unconfirmed:new(o())(n.data.unconfirmed)},...e})}},66724:function(e,n,t){"use strict";t.d(n,{N:function(){return c}});var s=t(52322),i=t(76848),l=t(41775),a=t(27444),o=t(82851),d=t(71930),r=t(22515);function c(){var e,n;let{openDialog:t}=(0,r.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,o.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,o.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,{})})]})]})}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return f}});var s=t(52322),i=t(76848),l=t(27444),a=t(71930),o=t(22515),d=t(66724),r=t(14134),c=t(2784),u=t(34498),x=t.n(u),h=t(25573);function v(){var e;let n=(0,l.cQ)(),t=(0,h.n)(),{openDialog:u}=(0,o.Rh)(),v=(0,c.useMemo)(()=>n.data?x()(n.data,["address"]).map(e=>e.address):null,[n.data]);return(0,s.jsx)(r.q,{routes:a._,sidenav:(0,s.jsx)(d.N,{}),openSettings:()=>u("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:v,connectPeer:()=>u("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 +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{34498:function(e,n,t){var s=t(23813),i=t(86152);e.exports=function(e,n,t,l){return null==e?[]:(i(n)||(n=null==n?[]:[n]),i(t=l?void 0:t)||(t=null==t?[]:[t]),s(e,n,t))}},27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(61936)}])},14134:function(e,n,t){"use strict";t.d(n,{q:function(){return h}});var s=t(52322),i=t(93463),l=t(27444),a=t(6391),o=t.n(a),d=t(71930),r=t(25573);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(22515);function x(){var e,n,t,a,o,d,c;let{openDialog:x}=(0,u.Rh)(),h=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.n)(),j=(0,l.cQ)(),m=null===(e=h.data)||void 0===e?void 0:e.version,p=(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(m):"https://github.com/SiaFoundation/hostd/tree/".concat(m);return(0,s.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=j.data)||void 0===n?void 0:n.length,connectPeer:()=>x("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.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:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(t=v.data)||void 0===t?void 0:t.netAddress,maxLength:50,label:"network address"})})]}),(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:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(a=h.data)||void 0===a?void 0:a.publicKey,maxLength:50,label:"public key"})})]}),(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",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(o=h.data)||void 0===o?void 0:o.walletAddress,type:"address"})})]}),(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",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(d=h.data)||void 0===d?void 0:d.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:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(e){let n=(0,l.Os)(),{isSynced:t}=(0,r.n)();return(0,s.jsx)(i.tU3,{appName:"hostd",connectivityRoute:d.h,banner:(0,s.jsx)(c,{}),profile:(0,s.jsx)(x,{}),isSynced:t,walletBalanceSc:n.data&&{spendable:new(o())(n.data.spendable),confirmed:new(o())(n.data.confirmed),unconfirmed:new(o())(n.data.unconfirmed)},...e})}},66724:function(e,n,t){"use strict";t.d(n,{N:function(){return c}});var s=t(52322),i=t(93463),l=t(41775),a=t(27444),o=t(82851),d=t(71930),r=t(22515);function c(){var e,n;let{openDialog:t}=(0,r.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,o.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,o.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,{})})]})]})}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return f}});var s=t(52322),i=t(93463),l=t(27444),a=t(71930),o=t(22515),d=t(66724),r=t(14134),c=t(2784),u=t(34498),x=t.n(u),h=t(25573);function v(){var e;let n=(0,l.cQ)(),t=(0,h.n)(),{openDialog:u}=(0,o.Rh)(),v=(0,c.useMemo)(()=>n.data?x()(n.data,["address"]).map(e=>e.address):null,[n.data]);return(0,s.jsx)(r.q,{routes:a._,sidenav:(0,s.jsx)(d.N,{}),openSettings:()=>u("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:v,connectPeer:()=>u("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-b3be04e94991e699.js b/hostd/assets/_next/static/chunks/pages/volumes-a26bc5a5ce83307a.js similarity index 97% rename from hostd/assets/_next/static/chunks/pages/volumes-b3be04e94991e699.js rename to hostd/assets/_next/static/chunks/pages/volumes-a26bc5a5ce83307a.js index ad345b78a..b25c15fcd 100644 --- a/hostd/assets/_next/static/chunks/pages/volumes-b3be04e94991e699.js +++ b/hostd/assets/_next/static/chunks/pages/volumes-a26bc5a5ce83307a.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[144],{13252:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/volumes",function(){return s(89516)}])},14134:function(e,n,s){"use strict";s.d(n,{q:function(){return h}});var t=s(52322),i=s(76848),l=s(27444),a=s(6391),o=s.n(a),r=s(71930),d=s(25573);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=s(22515);function u(){var e,n,s,a,o,r,c;let{openDialog:u}=(0,x.Rh)(),h=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,d.n)(),m=(0,l.cQ)(),f=null===(e=h.data)||void 0===e?void 0:e.version,p=(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(f):"https://github.com/SiaFoundation/hostd/tree/".concat(f);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=m.data)||void 0===n?void 0:n.length,connectPeer:()=>u("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.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:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(s=v.data)||void 0===s?void 0:s.netAddress,maxLength:50,label:"network address"})})]}),(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:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(a=h.data)||void 0===a?void 0:a.publicKey,maxLength:50,label:"public key"})})]}),(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",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(o=h.data)||void 0===o?void 0:o.walletAddress,type:"address"})})]}),(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",children:(0,t.jsx)(i.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)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.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(e){let n=(0,l.Os)(),{isSynced:s}=(0,d.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:r.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(u,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(o())(n.data.spendable),confirmed:new(o())(n.data.confirmed),unconfirmed:new(o())(n.data.unconfirmed)},...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return c}});var t=s(52322),i=s(76848),l=s(41775),a=s(27444),o=s(82851),r=s(71930),d=s(22515);function c(){var e,n;let{openDialog:s}=(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===(n=c.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)(l.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:r._.volumes.index,children:(0,t.jsx)(l.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,t.jsx)(l.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:r._.config.index,children:(0,t.jsx)(l.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,o.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,o.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)(l.Dkj,{})})]})]})}},89516:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return j}});var t=s(52322),i=s(76848),l=s(41775),a=s(96206),o=s(14134),r=s(22515),d=s(66724),c=s(71930),x=s(78743);function u(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:a,setColumnsHidden:o,enabledColumns:r}=(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(),s()},children:(0,t.jsx)(l.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:d.map(e=>e.value),enabled:r,setColumnsVisible:a,setColumnsHidden:o}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:d,values:r,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Operations",columns:c.map(e=>e.value),enabled:r,setColumnsVisible:a,setColumnsHidden:o}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:c,values:r,onChange:e=>n(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,r.Rh)(),{dataset:n,isLoading:s,columns:v}=(0,x.F)(),j=null==n?void 0:n.reduce((e,n)=>e+n.totalBytes,0),m=null==n?void 0:n.reduce((e,n)=>e+n.usedBytes,0),f=j-m;return(0,t.jsx)(o.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)(m)," used")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(f)," free")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(j)," total")})]}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{isLoading:s,pageSize:20,data:n,columns:v,emptyState:(0,t.jsx)(h,{})})})})}function j(){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 +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[144],{13252:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/volumes",function(){return s(89516)}])},14134:function(e,n,s){"use strict";s.d(n,{q:function(){return h}});var t=s(52322),i=s(93463),l=s(27444),a=s(6391),o=s.n(a),r=s(71930),d=s(25573);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=s(22515);function u(){var e,n,s,a,o,r,c;let{openDialog:u}=(0,x.Rh)(),h=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,d.n)(),m=(0,l.cQ)(),f=null===(e=h.data)||void 0===e?void 0:e.version,p=(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(f):"https://github.com/SiaFoundation/hostd/tree/".concat(f);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=m.data)||void 0===n?void 0:n.length,connectPeer:()=>u("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.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:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(s=v.data)||void 0===s?void 0:s.netAddress,maxLength:50,label:"network address"})})]}),(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:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(a=h.data)||void 0===a?void 0:a.publicKey,maxLength:50,label:"public key"})})]}),(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",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(o=h.data)||void 0===o?void 0:o.walletAddress,type:"address"})})]}),(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",children:(0,t.jsx)(i.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)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.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(e){let n=(0,l.Os)(),{isSynced:s}=(0,d.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:r.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(u,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(o())(n.data.spendable),confirmed:new(o())(n.data.confirmed),unconfirmed:new(o())(n.data.unconfirmed)},...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return c}});var t=s(52322),i=s(93463),l=s(41775),a=s(27444),o=s(82851),r=s(71930),d=s(22515);function c(){var e,n;let{openDialog:s}=(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===(n=c.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)(l.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:r._.volumes.index,children:(0,t.jsx)(l.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,t.jsx)(l.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:r._.config.index,children:(0,t.jsx)(l.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,o.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,o.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)(l.Dkj,{})})]})]})}},89516:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return j}});var t=s(52322),i=s(93463),l=s(41775),a=s(96206),o=s(14134),r=s(22515),d=s(66724),c=s(71930),x=s(78743);function u(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:a,setColumnsHidden:o,enabledColumns:r}=(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(),s()},children:(0,t.jsx)(l.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:d.map(e=>e.value),enabled:r,setColumnsVisible:a,setColumnsHidden:o}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:d,values:r,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Operations",columns:c.map(e=>e.value),enabled:r,setColumnsVisible:a,setColumnsHidden:o}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:c,values:r,onChange:e=>n(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,r.Rh)(),{dataset:n,isLoading:s,columns:v}=(0,x.F)(),j=null==n?void 0:n.reduce((e,n)=>e+n.totalBytes,0),m=null==n?void 0:n.reduce((e,n)=>e+n.usedBytes,0),f=j-m;return(0,t.jsx)(o.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)(m)," used")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(f)," free")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(j)," total")})]}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{isLoading:s,pageSize:20,data:n,columns:v,emptyState:(0,t.jsx)(h,{})})})})}function j(){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-1f360997513d57eb.js b/hostd/assets/_next/static/chunks/pages/wallet-15154b36148627d8.js similarity index 97% rename from hostd/assets/_next/static/chunks/pages/wallet-1f360997513d57eb.js rename to hostd/assets/_next/static/chunks/pages/wallet-15154b36148627d8.js index 70da36e76..244c92644 100644 --- a/hostd/assets/_next/static/chunks/pages/wallet-1f360997513d57eb.js +++ b/hostd/assets/_next/static/chunks/pages/wallet-15154b36148627d8.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(21990)}])},14134:function(e,n,t){"use strict";t.d(n,{q:function(){return m}});var s=t(52322),i=t(76848),a=t(27444),l=t(6391),r=t.n(l),c=t(71930),d=t(25573);function o(){let e=(0,a.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(22515);function x(){var e,n,t,l,r,c,o;let{openDialog:x}=(0,u.Rh)(),m=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,d.n)(),v=(0,a.cQ)(),p=null===(e=m.data)||void 0===e?void 0:e.version,j=(null==p?void 0:p.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(p):"https://github.com/SiaFoundation/hostd/tree/".concat(p);return(0,s.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=v.data)||void 0===n?void 0:n.length,connectPeer:()=>x("connectPeer"),isSynced:h.isSynced,syncPercent:h.syncPercent,nodeBlockHeight:h.nodeBlockHeight,estimatedBlockHeight:h.estimatedBlockHeight,firstTimeSyncing:h.firstTimeSyncing,moreThan100BlocksToSync:h.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:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(t=f.data)||void 0===t?void 0:t.netAddress,maxLength:50,label:"network address"})})]}),(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:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(l=m.data)||void 0===l?void 0:l.publicKey,maxLength:50,label:"public key"})})]}),(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",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(r=m.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(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",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-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:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=m.data)||void 0===o?void 0:o.version})]})]})}function m(e){let n=(0,a.Os)(),{isSynced:t}=(0,d.n)();return(0,s.jsx)(i.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,s.jsx)(o,{}),profile:(0,s.jsx)(x,{}),isSynced:t,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},66724:function(e,n,t){"use strict";t.d(n,{N:function(){return o}});var s=t(52322),i=t(76848),a=t(41775),l=t(27444),r=t(82851),c=t(71930),d=t(22515);function o(){var e,n;let{openDialog:t}=(0,d.Rh)(),o=(0,l.Z7)(),u=!(null===(e=o.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=o.data)||void 0===n?void 0:n.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Dashboard",route:c._.home,children:(0,s.jsx)(a.K2o,{})}),(0,s.jsx)(i.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,s.jsx)(a.zvn,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,s.jsx)(a.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)(a.Dkj,{})})]})]})}},21990:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var s=t(52322),i=t(76848),a=t(27444),l=t(2784),r=t(22515),c=t(71930),d=t(6391),o=t.n(d),u=t(66724),x=t(14134),m=t(25573),f=t(41775);function h(){let{openDialog:e}=(0,r.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:"hostd"})," wallet address to get started."]}),(0,s.jsx)(i.zxk,{variant:"accent",onClick:()=>e("addressDetails"),children:"View address"})]})]})}function v(){let e=(0,a.Qq)({params:{limit:50,offset:0}}),n=(0,a.a0)(),{openDialog:t}=(0,r.Rh)(),d=(0,a.Os)(),f=(0,l.useMemo)(()=>[...(n.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.transaction,e.source),hash:e.ID,timestamp:new Date(e.timestamp).getTime(),sc:new(o())(e.inflow).minus(e.outflow),unconfirmed:!0})),...(e.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.transaction,e.source),hash:e.ID,timestamp:new Date(e.timestamp).getTime(),onClick:()=>t("transactionDetails",e.ID),sc:new(o())(e.inflow).minus(e.outflow)})).sort((e,n)=>e.timestamp{let e=new Date().getTime(),n=(0,i.NrH)(30);return new Date(e-n).toISOString()},[]),p=(0,a.KU)({params:{interval:"daily",start:v}}),j=(0,l.useMemo)(()=>(p.data||[]).map(e=>({sc:Number(e.balance),timestamp:new Date(e.timestamp).getTime()})).sort((e,n)=>e.timestamp>=n.timestamp?1:-1),[p.data]),{isSynced:w,isWalletSynced:g,syncPercent:y,walletScanPercent:N}=(0,m.n)();return(0,s.jsx)(x.q,{routes:c._,sidenav:(0,s.jsx)(u.N,{}),openSettings:()=>t("settings"),title:"Wallet",actions:(0,s.jsx)(i.QUh,{isSynced:w,isWalletSynced:g,syncPercent:y,walletScanPercent:N,balanceSc:d.data?{spendable:new(o())(d.data.spendable),unconfirmed:new(o())(d.data.unconfirmed),confirmed:new(o())(d.data.confirmed)}:void 0,receiveSiacoin:()=>t("addressDetails"),sendSiacoin:()=>t("sendSiacoin")}),stats:(0,s.jsx)(i.DmW,{isSynced:w,isWalletSynced:g,syncPercent:y,walletScanPercent:N}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==j?void 0:j.length)&&j.find(e=>e.sc)?(0,s.jsx)(i.Z58,{balances:j,isLoading:p.isValidating}):null,(0,s.jsx)(i.XOF,{title:"Transactions",entities:f.slice(0,100),emptyState:(0,s.jsx)(h,{})})]})})}function p(){return(0,s.jsx)(v,{})}}},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(21990)}])},14134:function(e,n,t){"use strict";t.d(n,{q:function(){return m}});var s=t(52322),i=t(93463),a=t(27444),l=t(6391),r=t.n(l),c=t(71930),d=t(25573);function o(){let e=(0,a.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(22515);function x(){var e,n,t,l,r,c,o;let{openDialog:x}=(0,u.Rh)(),m=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,d.n)(),v=(0,a.cQ)(),p=null===(e=m.data)||void 0===e?void 0:e.version,j=(null==p?void 0:p.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(p):"https://github.com/SiaFoundation/hostd/tree/".concat(p);return(0,s.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=v.data)||void 0===n?void 0:n.length,connectPeer:()=>x("connectPeer"),isSynced:h.isSynced,syncPercent:h.syncPercent,nodeBlockHeight:h.nodeBlockHeight,estimatedBlockHeight:h.estimatedBlockHeight,firstTimeSyncing:h.firstTimeSyncing,moreThan100BlocksToSync:h.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:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(t=f.data)||void 0===t?void 0:t.netAddress,maxLength:50,label:"network address"})})]}),(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:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(l=m.data)||void 0===l?void 0:l.publicKey,maxLength:50,label:"public key"})})]}),(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",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(r=m.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(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",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-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:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=m.data)||void 0===o?void 0:o.version})]})]})}function m(e){let n=(0,a.Os)(),{isSynced:t}=(0,d.n)();return(0,s.jsx)(i.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,s.jsx)(o,{}),profile:(0,s.jsx)(x,{}),isSynced:t,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},66724:function(e,n,t){"use strict";t.d(n,{N:function(){return o}});var s=t(52322),i=t(93463),a=t(41775),l=t(27444),r=t(82851),c=t(71930),d=t(22515);function o(){var e,n;let{openDialog:t}=(0,d.Rh)(),o=(0,l.Z7)(),u=!(null===(e=o.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=o.data)||void 0===n?void 0:n.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Dashboard",route:c._.home,children:(0,s.jsx)(a.K2o,{})}),(0,s.jsx)(i.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,s.jsx)(a.zvn,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,s.jsx)(a.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)(a.Dkj,{})})]})]})}},21990:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var s=t(52322),i=t(93463),a=t(27444),l=t(2784),r=t(22515),c=t(71930),d=t(6391),o=t.n(d),u=t(66724),x=t(14134),m=t(25573),f=t(41775);function h(){let{openDialog:e}=(0,r.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:"hostd"})," wallet address to get started."]}),(0,s.jsx)(i.zxk,{variant:"accent",onClick:()=>e("addressDetails"),children:"View address"})]})]})}function v(){let e=(0,a.Qq)({params:{limit:50,offset:0}}),n=(0,a.a0)(),{openDialog:t}=(0,r.Rh)(),d=(0,a.Os)(),f=(0,l.useMemo)(()=>[...(n.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.transaction,e.source),hash:e.ID,timestamp:new Date(e.timestamp).getTime(),sc:new(o())(e.inflow).minus(e.outflow),unconfirmed:!0})),...(e.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.transaction,e.source),hash:e.ID,timestamp:new Date(e.timestamp).getTime(),onClick:()=>t("transactionDetails",e.ID),sc:new(o())(e.inflow).minus(e.outflow)})).sort((e,n)=>e.timestamp{let e=new Date().getTime(),n=(0,i.NrH)(30);return new Date(e-n).toISOString()},[]),p=(0,a.KU)({params:{interval:"daily",start:v}}),j=(0,l.useMemo)(()=>(p.data||[]).map(e=>({sc:Number(e.balance),timestamp:new Date(e.timestamp).getTime()})).sort((e,n)=>e.timestamp>=n.timestamp?1:-1),[p.data]),{isSynced:w,isWalletSynced:g,syncPercent:y,walletScanPercent:N}=(0,m.n)();return(0,s.jsx)(x.q,{routes:c._,sidenav:(0,s.jsx)(u.N,{}),openSettings:()=>t("settings"),title:"Wallet",actions:(0,s.jsx)(i.QUh,{isSynced:w,isWalletSynced:g,syncPercent:y,walletScanPercent:N,balanceSc:d.data?{spendable:new(o())(d.data.spendable),unconfirmed:new(o())(d.data.unconfirmed),confirmed:new(o())(d.data.confirmed)}:void 0,receiveSiacoin:()=>t("addressDetails"),sendSiacoin:()=>t("sendSiacoin")}),stats:(0,s.jsx)(i.DmW,{isSynced:w,isWalletSynced:g,syncPercent:y,walletScanPercent:N}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==j?void 0:j.length)&&j.find(e=>e.sc)?(0,s.jsx)(i.Z58,{balances:j,isLoading:p.isValidating}):null,(0,s.jsx)(i.XOF,{title:"Transactions",entities:f.slice(0,100),emptyState:(0,s.jsx)(h,{})})]})})}function p(){return(0,s.jsx)(v,{})}}},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/tMrlZDCVeYRE1-tAX-OHN/_buildManifest.js b/hostd/assets/_next/static/tMrlZDCVeYRE1-tAX-OHN/_buildManifest.js new file mode 100644 index 000000000..1820307ad --- /dev/null +++ b/hostd/assets/_next/static/tMrlZDCVeYRE1-tAX-OHN/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-3cfdba175a7b6ce8.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/config":["static/chunks/pages/config-a61bd8c57726a644.js"],"/contracts":["static/chunks/pages/contracts-5a31114befab9dfd.js"],"/login":["static/chunks/pages/login-f420da0d9047933c.js"],"/node":["static/chunks/pages/node-a011852efbd055ff.js"],"/volumes":["static/chunks/pages/volumes-a26bc5a5ce83307a.js"],"/wallet":["static/chunks/pages/wallet-15154b36148627d8.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/9ig4hKTnhTzQ5_BietKPm/_ssgManifest.js b/hostd/assets/_next/static/tMrlZDCVeYRE1-tAX-OHN/_ssgManifest.js similarity index 100% rename from hostd/assets/_next/static/9ig4hKTnhTzQ5_BietKPm/_ssgManifest.js rename to hostd/assets/_next/static/tMrlZDCVeYRE1-tAX-OHN/_ssgManifest.js diff --git a/hostd/assets/config.html b/hostd/assets/config.html index 5f473f0e3..cc86fd934 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 4e7042077..b6d428900 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 0a74281e4..af4dc87dc 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 cfdd8f387..3fd337474 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 ab7a463a6..1960afde9 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 7861dc60c..119dde2b5 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 790e155ef..56389c0ad 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 b369084be..0e5b365b5 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/WTpqk9ZGZYNrJj2zs07eq/_buildManifest.js b/renterd/assets/_next/static/WTpqk9ZGZYNrJj2zs07eq/_buildManifest.js new file mode 100644 index 000000000..65f2ae87f --- /dev/null +++ b/renterd/assets/_next/static/WTpqk9ZGZYNrJj2zs07eq/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-88b300204afd094a.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/config":["static/chunks/pages/config-1a85e4eebd84bf7c.js"],"/contracts":["static/chunks/pages/contracts-e30e4c4643441459.js"],"/files/[[...path]]":["static/chunks/pages/files/[[...path]]-9d28410a8a4c4ed3.js"],"/hosts":["static/chunks/pages/hosts-0b6a40a5bfd20432.js"],"/login":["static/chunks/pages/login-99787818c5091202.js"],"/node":["static/chunks/pages/node-2a0997c03afe8499.js"],"/wallet":["static/chunks/pages/wallet-ed29d4152bca43e1.js"],sortedPages:["/","/_app","/_error","/config","/contracts","/files/[[...path]]","/hosts","/login","/node","/wallet"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/renterd/assets/_next/static/pUK19bnAeEqrmnyAmSqxv/_ssgManifest.js b/renterd/assets/_next/static/WTpqk9ZGZYNrJj2zs07eq/_ssgManifest.js similarity index 100% rename from renterd/assets/_next/static/pUK19bnAeEqrmnyAmSqxv/_ssgManifest.js rename to renterd/assets/_next/static/WTpqk9ZGZYNrJj2zs07eq/_ssgManifest.js diff --git a/renterd/assets/_next/static/chunks/pages/_app-77122054dfcd6459.js b/renterd/assets/_next/static/chunks/pages/_app-c52cb305ab206dcf.js similarity index 51% rename from renterd/assets/_next/static/chunks/pages/_app-77122054dfcd6459.js rename to renterd/assets/_next/static/chunks/pages/_app-c52cb305ab206dcf.js index f92d0d730..eab48675c 100644 --- a/renterd/assets/_next/static/chunks/pages/_app-77122054dfcd6459.js +++ b/renterd/assets/_next/static/chunks/pages/_app-c52cb305ab206dcf.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{44711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizeObserver:function(){return q},ResizeObserverEntry:function(){return _},ResizeObserverSize:function(){return c}});var r,i,o,a=[],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,o=e.offsetHeight;return!(i||o||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/,x=/^tb|vertical/,b=/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)},E=u({devicePixelContentBoxSize:j(),borderBoxSize:j(),contentBoxSize:j(),contentRect:new d(0,0,0,0)}),k=function(e,t){if(void 0===t&&(t=!1),g.has(e)&&!t)return g.get(e);if(h(e))return g.set(e,E),E;var n=getComputedStyle(e),r=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===n.boxSizing,o=x.test(n.writingMode||""),a=!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),k=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),_=r?0:w(n.borderLeftWidth),C=m+c,O=l+p,M=_+k,T=v+S,A=s?e.offsetHeight-T-e.clientHeight:0,P=a?e.offsetWidth-M-e.clientWidth:0,N=r?r.width:w(n.width)-(i?C+M:0)-P,R=r?r.height:w(n.height)-(i?O+T:0)-A,D=N+C+P+M,L=R+O+A+T,F=u({devicePixelContentBoxSize:j(Math.round(N*devicePixelRatio),Math.round(R*devicePixelRatio),o),borderBoxSize:j(D,L,o),contentBoxSize:j(N,R,o),contentRect:new d(m,l,N,R)});return g.set(e,F),F},S=function(e,t,n){var r=k(e,n),o=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return o;default:return a}},_=function(e){var t=k(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},C=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=[];a.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new _(t.target),i=C(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);a.some(function(e){return e.activeTargets.length>0});)M(e=O());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},A=[],P=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return A.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}A.push(e),o()},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"],F=function(e){return void 0===e&&(e=0),Date.now()+e},z=!1,V=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),!z){z=!0;var n=F(e);N(function(){var r=!1;try{r=T()}finally{if(z=!1,e=n-F(),!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}()),I=function(e){!R&&e>0&&V.start(),(R+=e)||V.stop()},Z=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&&a.push(r),r.observationTargets.push(new Z(t,n&&n.box)),I(1),V.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=U(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&a.splice(a.indexOf(n),1),n.observationTargets.splice(r,1),I(-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 o}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return o},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,o=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(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 o=(0,r.createContext)(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,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][a])||o,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),o=i[`__scope${r}`];return{...t,...o}},{});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 G},xz:function(){return U}});var r=n(7896),i=n(2784),o=n(41816),a=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 x="Dialog",[b,w]=(0,s.b)(x),[j,E]=b(x),k=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=E("DialogTrigger",n),u=(0,a.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":I(l.open)},s,{ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)}))}),S="DialogPortal",[_,C]=b(S,{forceMount:void 0}),O="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=C(O,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=E(O,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:o||s.open},(0,i.createElement)(T,(0,r.Z)({},a,{ref:t}))):null}),T=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=E(O,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":I(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),A="DialogContent",P=(0,i.forwardRef)((e,t)=>{let n=C(A,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=E(A,e.__scopeDialog);return(0,i.createElement)(h.z,{present:o||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},a,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},a,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=E(A,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,a.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,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=E(A,e.__scopeDialog),o=(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||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0);let a=t.target,s=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);s&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=E(A,n),h=(0,i.useRef)(null),p=(0,a.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,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":I(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=E(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:a.titleId},o,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=E("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:a.descriptionId},o,{ref:t}))}),V=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,s=E("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))}))});function I(e){return e?"open":"closed"}let[Z,B]=(0,s.k)("DialogTitleWarning",{contentName:A,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:o,onChange:a});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=k,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=E(S,t);return(0,i.createElement)(_,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||a.open},(0,i.createElement)(f.h,{asChild:!0,container:o},e))))},q=M,$=P,K=F,Y=z,G=V},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),o=n(2784),a=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...x}=e,b=(0,o.useContext)(d),[w,j]=(0,o.useState)(null),[,E]=(0,o.useState)({}),k=(0,l.e)(t,e=>j(e)),S=Array.from(b.layers),[_]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),C=S.indexOf(_),O=w?S.indexOf(w):-1,M=b.layersWithOutsidePointerEventsDisabled.size>0,T=O>=C,A=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.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=[...b.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,o.useRef)(!1);return(0,o.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,n=[...b.branches].some(e=>e.contains(t));n||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=O===b.layers.size-1;t&&(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,o.useEffect)(()=>{if(w)return n&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(w)),b.layers.add(w),h(),()=>{n&&1===b.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,b]),(0,o.useEffect)(()=>()=>{w&&(b.layers.delete(w),b.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,b]),(0,o.useEffect)(()=>{let e=()=>E({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},x,{ref:k,style:{pointerEvents:M?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,a.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,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,o):i.dispatchEvent(o)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(2784);let i=0;function o(){(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:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),o=n(2784),a=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[x,b]=(0,o.useState)(null),w=(0,l.W)(f),j=(0,l.W)(g),E=(0,o.useRef)(null),k=(0,a.e)(t,e=>b(e)),S=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(S.paused||!x)return;let t=e.target;x.contains(t)?E.current=t:m(E.current,{select:!0})}function t(e){S.paused||!x||x.contains(e.relatedTarget)||m(E.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,x,S.paused]),(0,o.useEffect)(()=>{if(x){v.add(S);let e=document.activeElement,t=x.contains(e);if(!t){let t=new CustomEvent(u,d);x.addEventListener(u,w),x.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(x).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(x))}return()=>{x.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);x.addEventListener(c,j),x.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),x.removeEventListener(c,j),v.remove(S)},0)}}},[x,w,j,S]);let _=(0,o.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,o]=function(e){let t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t),a=r&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,o.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:k,onKeyDown:_}))});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),o=n(64680);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.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),o=n(28316),a=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?o.createPortal((0,i.createElement)(a.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),o=n(26215),a=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t;let[n,o]=(0,r.useState)(),s=(0,r.useRef)({}),u=(0,r.useRef)(e),c=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[f,h]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},d));return(0,r.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,n=u.current,r=n!==e;if(r){let r=c.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"),u.current=e}},[e,h]),(0,a.b)(()=>{if(n){let e=e=>{let t=l(s.current),r=t.includes(e.animationName);e.target===n&&r&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===n&&(c.current=l(s.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,o.e)(s.ref,u.ref),d="function"==typeof n;return d||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),o=n(28316),a=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:o,...s}=e,l=o?a.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,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7896),i=n(2784),o=n(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.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)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)});a.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],o=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,o.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 o}});var r=n(2784),i=n(86029);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n),c=(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[l,c]}},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,x=void 0!==y&&y,b=e.left,w=e.numTicks,j=void 0===w?10:w,E=e.orientation,k=void 0===E?d.default.bottom:E,S=e.rangePadding,_=void 0===S?0:S,C=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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=O?O:(0,u.default)(C),D=k===d.default.left,L=k===d.default.top,F=L||k===d.default.bottom,z=(0,l.default)(C),V=D||L?-1:1,I=C.range(),Z=(0,f.default)(_),B=(0,c.default)({x:Number(I[0])+.5-Z.start,y:0},F),H=(0,c.default)({x:Number(I[I.length-1])+.5+Z.end,y:0},F),U=(null!=A?A:(0,a.getTicks)(C,j)).filter(function(e){return!x||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,a.coerceNumber)(z(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},F),to:(0,c.default)({x:r,y:T*V},F),formattedValue:R(t,n,U)}});return r.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===P?0:P,left:void 0===b?0:b},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:x,horizontal:F,numTicks:j,orientation:k,rangePadding:_,scale:C,tickFormat:R,tickLength:T,tickPosition:z,tickSign:V,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),o=n(71602),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:a.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)),o=l(n(81401)),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:a.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)),o=l(n(81401)),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:a.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)),o=l(n(81401)),a=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=a()).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!=(o=n.xMin)?o:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=o(n(30968)),i=o(n(98929));function o(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(),o=0;o<=i;o+=n){var a=e.getPointAtLength(o).matrixTransform(t);r.push(a)}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],o=(0,r.useRef)(null),a=(0,r.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){o.current&&(o.current(n),o.current=null)},[n]),[n,a]};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 o}});var r=n(49833),i=n(44321);function o(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 o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);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}:o({},a)}(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 o(e){return!!e&&"createSVGPoint"in e}function a(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 a},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return o},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)),o=f(n(72779)),a=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),_=null!=E?E:(0,u.getTicks)(r,void 0===b?10:b),C=(null!=j?j:0)+(0,c.default)(r)/2,O=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+C;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,o.default)("visx-columns",x),top:void 0===t?0:t,left:void 0===n?0:n},k?k({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.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)),o=f(n(72779)),a=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),_=null!=k?k:(0,u.getTicks)(r,void 0===w?10:w),C=(null!=E?E:0)+(0,c.default)(r)/2,O=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+C;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,o.default)("visx-rows",x),top:void 0===t?0:t,left:void 0===n?0:n},b?b({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.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),o=n(2784),a=n(72779),s=n.n(a),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 o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}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 o},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 o(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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(o.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 o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),o=l(n(65154)),a=["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,a);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(o.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)),o=s(n(55727)),a=["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,o.useTransition)(n,u({},(0,a.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,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(o.animated.line,u({key:h,x1:r,x2:a,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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a);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(o.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)),o=s(n(55727)),a=["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,o.useRef)(null),y=(0,o.useRef)(0),x=(0,o.useState)({width:0,height:0,top:0,left:0}),b=x[0],w=x[1],j=(0,o.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,o.useEffect)(function(){var e=new a.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;y.current=window.requestAnimationFrame(function(){j({width:i,height:o,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]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},b,{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),o=n(70590),a=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,o.Z)(e);case"sqrt":return(0,a.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 b.Z},getTicks:function(){return _.Z},inferScaleType:function(){return k},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return O.Z},scaleLinear:function(){return o.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 x.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return C.Z},updateScale:function(){return j}});var r=n(26587),i=n(71646),o=n(8597),a=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.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),x=n(50630),b=n(2663),w=s.Z.apply(void 0,s.a),j=function(e,t){return w(e.copy(),t)},E=n(40668);function k(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,E.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var S=n(28142),_=n(71220),C=n(51519),O=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return _},Z:function(){return O}});var r=n(88751),i=n(87286),o=n(43780),a=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.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),x=n(94758),b=n(97631),w=n(2908),j=n(40668),E={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},k={day:v.Z,hour:g.Z,minute:y.Z,month:x.Z,second:h.Z,week:b.Ox,year:w.Z},S=n(74672),_=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],C={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?k[n]:E[n]);else{var i=n.interval,o=n.step,a=(r?k[i]:E[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0||(i[n]=e[n]);return i}(e,s),y=(0,a.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:o()("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),_=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),C=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:x,sortValues:b}),O=C(void 0===s?[]:s);return j?r.createElement(r.Fragment,null,j({arcs:O,path:_,pie:C})):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:o()("visx-pie-arc",t),d:_(e)||"",fill:null==k||"string"==typeof k?k:k(e)},S)),null==l?void 0:l(_.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),m=(0,a.aJ)({angle:n,radius:i,defined:s,curve:l});return f?r.createElement(r.Fragment,null,f({path:m})):r.createElement("path",g({ref:d,className:o()("visx-line-radial",t),d:m(c)||"",fill:void 0===h?"transparent":h},p))}var x=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x),y=(0,a.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===h?function(){return!0}:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:y})):r.createElement("path",b({ref:v,className:o()("visx-area",p),d:y(f)||""},g))}var j=n(55746),E=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,E),S=(0,a.kn)({keys:s,value:g,order:y,offset:x}),_=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),C=S(l);return w?r.createElement(r.Fragment,null,w({stacks:C,path:_,stack:S})):r.createElement(c.Z,{top:n,left:i},C.map(function(e,n){return r.createElement("path",k({className:o()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:_(e)||"",fill:null==b?void 0:b(e.key,n)},j))}))}var _=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,_);return r.createElement(S,C({className:t,top:n,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},b),x||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",C({className:o()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},b))})})}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:o()("visx-bar-group",n),top:i,left:a},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),x=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(x)):r.createElement(c.Z,{className:o()("visx-bar-group-horizontal",n),top:i,left:a},x.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 z=n(98926);function V(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function I(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function Z(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,z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),x&&j.offset((0,$.ZP)(x));var E=j(t),k=A(h),S=E.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),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-k/2);return{bar:t,key:n,index:r,height:i,width:k,x:a||0,y:o||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(S)):r.createElement(c.Z,{className:o()("visx-bar-stack",n),top:i,left:a},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 X=["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,X),j=(0,z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),x&&j.offset((0,$.ZP)(x));var E=j(t),k=A(p),S=E.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),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:k,width:i,x:o||0,y:a||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(S)):r.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:a},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?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["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,ea),h=s||el({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:a,className:o()("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?Z:c,target:void 0===d?B:d,angle:void 0===l?V:l,radius:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:a,className:o()("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?Z:d,target:void 0===f?B:f,x:void 0===u?I: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",ev({ref:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var ex=["className","children","data","innerRef","path","percent","x","y","source","target"];function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ex),p=s||ew({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eb({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var eE=["className","children","data","innerRef","path","percent","x","y","source","target"];function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eE),p=s||eS({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ek({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eC=["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,eC),h=s||eM({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eO({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},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=a||eN({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eP({ref:n,className:o()("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=a||eF({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var eV=["className","innerRef","data","path","percent","x","y","source","target","children"];function eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eV),p=a||eZ({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I: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",eI({ref:n,className:o()("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=a||eW({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?I:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:o()("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 eG(e){var t=e.className,n=e.innerRef,i=e.data,a=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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=a||eY({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eK({ref:n,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["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,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eQ:i,rotate:void 0===a?0:a}).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:o()("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:o()("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+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[k+1];)k+=1;c[k].push(_)}}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),o=n.n(i),a=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),j=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===v?function(){return!0}:v,curve:y});return(null==f?j.y0(h.range()[0]):(0,a.Z)(j.y0,f),c&&!d&&(0,a.Z)(j.y1,c),d&&!c&&(0,a.Z)(j.y1,d),b)?r.createElement(r.Fragment,null,b({path:j})):r.createElement("path",u({ref:x,className:o()("visx-area-closed",g),d:j(m)||""},w))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["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,a);return r.createElement("rect",s({ref:n,className:o()("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),o=n.n(i),a=["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,a),V=(n=(t={x:k,y:S,width:_,height:C,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!==F&&F}).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,x=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,b=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+x+" h"+(g-b)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-b)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(b-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(b-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:V})):r.createElement("path",s({ref:E,className:o()("visx-bar-rounded",j),d:V},z))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["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,a),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("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),o=n.n(i),a=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),g=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",l({ref:p,className:o()("visx-linepath",f),d:g(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))}},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(12235),o=n(79767),a=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,o=t.cornerRadius,a=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!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),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,o=t.x1,a=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),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),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,a=t.curve,s=(0,o.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),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,o=t.curve,a=(0,s.Z)();return n&&(0,u.Z)(a.angle,n),r&&(0,u.Z)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),n&&(0,u.Z)(o.value,n),r&&o.order((0,c.ZP)(r)),i&&o.offset((0,d.ZP)(i)),o}},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),o=n(90541),a=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:a.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),o=n(12197),a=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:a.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=void 0===h?[]:h,m=e.defined,v=e.className,g=e.curve,y=e.innerRef,x=function(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}(e,a),b=(0,o.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===m?function(){return!0}:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:b})):r.default.createElement("path",l({ref:y,className:(0,i.default)("visx-area",v),d:b(p)||""},x))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["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,o),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=a(n(2784)),i=a(n(72779)),o=["from","to","fill","className","innerRef"];function a(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,a),g=(0,o.line)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",l({ref:p,className:(0,i.default)("visx-linepath",f),d:g(s)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["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,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,x=g.startDy,b=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",a({ref:c,transform:b},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?x: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),o=n.n(i),a=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,x=function(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}(e,s),b=x.x,w=void 0===b?0:b,j=x.y,E=void 0===j?0:j,k=!u(w)||!u(E),S=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),_=S.wordsWithWidth,C=S.spaceWidth,O=(0,r.useMemo)(function(){return k?[]:f||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+C0){var t=O[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=E-n*E;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+E+")"),e.length>0?e.join(" "):""},[k,w,E,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 o.Z}});var r=n(64170),i=n(75715),o=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);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",o),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,o={},a=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];o[n]||(o[n]=new WeakMap);var l=o[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"),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}}},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(),o=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===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),o=n(92233),a=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 x=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var j=s(e.baseURL,e.url);function E(){if(x){var r="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:r,config:e,request:x}),x=null}}if(x.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=E:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(E)},x.onabort=function(){x&&(n(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,x,x)),x=null},x.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,x)),x=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(j))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in x&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),g&&"json"!==g&&(x.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){x&&(n(!e||e&&e.type?new f:e),x.abort(),x=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}x.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),o=n(62215),a=n(92937),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(10663));s.Axios=o,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, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.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?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},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 o(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,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"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,o(e))});return}}e(n,l)}}),n.pop()}else t.append(a,o(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(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),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,n){"use strict";var r,i,o=n(73644),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.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]"===a.call(e)}var x=l("URLSearchParams");function b(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)a[o=r[i]]||(t[o]=e[o],a[o]=!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 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){if(e===t)return[l,u];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},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,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;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,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)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 o,a=/^-?(?:\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,o=e[0]+"";ru^n?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^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,o++);o>A?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return E(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&F)return B(h=new z(e),_+h.e+1,C);if(f=String(e),u="number"==typeof e){if(0*e!=0)return E(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,z.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),o=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return E(h,String(e),u,t)}u=!1,(o=(f=j(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=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&&z.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>A)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new z(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=o||o<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function I(e,t){for(var n,r=1,i=new z(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((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(r=r||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?c/d[i-a]: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==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),r)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];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 z.clone=e,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=z.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),_=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),C=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);F="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:_,ROUNDING_MODE:C,EXPONENTIAL_AT:[O,M],RANGE:[T,A],CRYPTO:P,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},z.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!z.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===o||-1===o)&&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===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},z.maximum=z.max=function(){return I(arguments,k.lt)},z.minimum=z.min=function(){return I(arguments,k.gt)},z.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,o,a,c=0,f=[],h=new z(S);if(null==e?e=_:m(e,0,1e9),o=s(e/14),P){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw P=!1,Error(u+"crypto unavailable")}if(!P)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),z.sum=function(){for(var e=1,t=arguments,n=new z(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=_,x=C;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new z(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,a?(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=o,p=(f=w(f,m,g,x,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=x<4?(null!=v||d)&&(0==x||x==(f.s<0?3:2)):v>c||v==c&&(4==x||d||6==x&&1&p[l-1]||x==(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,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}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,o,a,s){var u,c,d,h,p,m,v,g,y,x,b,w,j,E,k,S,_,C=r.s==i.s?1:-1,O=r.c,M=i.c;if(!O||!O[0]||!M||!M[0])return new z(r.s&&i.s&&(O?!M||O[0]!=M[0]:M)?O&&0==O[0]||!M?0*C:C/0:NaN);for(y=(g=new z(C)).c=[],C=o+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),C=C/14|0),d=0;M[d]==(O[d]||0);d++);if(M[d]>(O[d]||0)&&c--,C<0)y.push(1),h=!0;else{for(E=O.length,S=M.length,d=0,C+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),O=e(O,p,s),S=M.length,E=O.length),j=S,b=(x=O.slice(0,S)).length;b=s/2&&k++;do{if(p=0,(u=t(M,x,S,b))<0){if(w=x[0],S!=b&&(w=w*s+(x[1]||0)),(p=l(w/k))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,b=x.length;1==t(m,x,v,b);)p--,n(m,St(M,x,S,b);)p++,n(x,S=10;C/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,E=function(e,t,n,a){var s,l=n?t:t.replace(b,"");if(x.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,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new z(l,s);if(z.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},k.absoluteValue=k.abs=function(){var e=new z(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return p(this,new z(e,t))},k.decimalPlaces=k.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=C:m(t,0,8),B(new z(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},k.dividedBy=k.div=function(e,t){return w(this,new z(e,t),_,C)},k.dividedToIntegerBy=k.idiv=function(e,t){return w(this,new z(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var n,r,i,o,a,c,d,f,h,p=this;if((e=new z(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new z(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 z(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 z(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 o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new z(d?1/o:o);R&&(o=s(R/14+2))}for(c?(n=new z(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new z(S);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):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),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):o?B(h,R,C,a):h)},k.integerValue=function(e){var t=new z(this);return null==e?e=C:m(e,0,8),B(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===p(this,new z(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return p(this,new z(e,t))>0},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=p(this,new z(e,t)))||0===t},k.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return 0>p(this,new z(e,t))},k.isLessThanOrEqualTo=k.lte=function(e,t){return -1===(t=p(this,new z(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new z(e,t)).s,!a||!t)return new z(NaN);if(a!=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 z(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new z(u[0]?this:3==C?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[o]+n)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=n}return n?++r:m.splice(0,1),Z(e,m,r)},k.negated=function(){var e=new z(this);return e.s=-e.s||null,e},k.plus=function(e,t){var n,r=this.s;if(t=(e=new z(e,t)).s,!r||!t)return new z(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new z(r/0);if(!a[0]||!s[0])return s[0]?e:new z(a[0]?this:0*r)}if(i=f(i),o=f(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),Z(e,a,o)},k.precision=k.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=C:m(t,0,8),B(new z(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},k.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,l=_+4,u=new z("0.5");if(1!==a||!o||!o[0])return new z(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,n=new z(t)):n=new z(a+""),n.c[0]){for((a=(s=n.e)+l)<3&&(a=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(n.c)).slice(0,a)){if(n.e0&&p>0){for(i=p%a||a,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||"")},k.toFraction=function(e){var t,n,r,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new z(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 z(this);for(t=new z(S),c=n=new z(S),r=l=new z(S),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=A,A=1/0,s=new z(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,o*=2,p=1>w(c,r,o,C).minus(this).abs().comparedTo(w(l,n,o,C).minus(this).abs())?[c,r]:[l,n],A=a,p},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),V(this,e,t,2)},k.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&&F?t=y(h((n=B(new z(n),_+i+1,C)).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},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=t&&z.set(t),z}()).default=o.BigNumber=o,void 0!==(r=(function(){return o}).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 o(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(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),o(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]=a(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]^a(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,o){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));let a=p(n,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,o){let a=g(e,t,n,i,o);return r.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=o(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=o(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}let a=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]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,o;u[n]=(r=e.b)[o=4*n]^r[o+1]<<8^r[o+2]<<16^r[o+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(a),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){let n=new TextEncoder;t=n.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 o=0;oe?t.activeTargets.push(n):t.skippedTargets.push(n))})})},T=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=O());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},A=[],P=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return A.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}A.push(e),o()},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"],F=function(e){return void 0===e&&(e=0),Date.now()+e},z=!1,V=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),!z){z=!0;var n=F(e);N(function(){var r=!1;try{r=T()}finally{if(z=!1,e=n-F(),!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}()),Z=function(e){!R&&e>0&&V.start(),(R+=e)||V.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&&a.push(r),r.observationTargets.push(new I(t,n&&n.box)),Z(1),V.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=U(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&a.splice(a.indexOf(n),1),n.observationTargets.splice(r,1),Z(-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 o}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return o},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,o=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(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 o=(0,r.createContext)(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,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][a])||o,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),o=i[`__scope${r}`];return{...t,...o}},{});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 G},xz:function(){return U}});var r=n(7896),i=n(2784),o=n(41816),a=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 x="Dialog",[b,w]=(0,s.b)(x),[j,E]=b(x),k=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=E("DialogTrigger",n),u=(0,a.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":Z(l.open)},s,{ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)}))}),S="DialogPortal",[_,C]=b(S,{forceMount:void 0}),O="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=C(O,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=E(O,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:o||s.open},(0,i.createElement)(T,(0,r.Z)({},a,{ref:t}))):null}),T=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=E(O,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":Z(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),A="DialogContent",P=(0,i.forwardRef)((e,t)=>{let n=C(A,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=E(A,e.__scopeDialog);return(0,i.createElement)(h.z,{present:o||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},a,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},a,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=E(A,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,a.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,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=E(A,e.__scopeDialog),o=(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||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0);let a=t.target,s=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);s&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=E(A,n),h=(0,i.useRef)(null),p=(0,a.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,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":Z(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=E(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:a.titleId},o,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=E("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:a.descriptionId},o,{ref:t}))}),V=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,s=E("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))}))});function Z(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:o,onOpenChange:a,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:o,onChange:a});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=k,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=E(S,t);return(0,i.createElement)(_,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||a.open},(0,i.createElement)(f.h,{asChild:!0,container:o},e))))},q=M,$=P,K=F,Y=z,G=V},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),o=n(2784),a=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...x}=e,b=(0,o.useContext)(d),[w,j]=(0,o.useState)(null),[,E]=(0,o.useState)({}),k=(0,l.e)(t,e=>j(e)),S=Array.from(b.layers),[_]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),C=S.indexOf(_),O=w?S.indexOf(w):-1,M=b.layersWithOutsidePointerEventsDisabled.size>0,T=O>=C,A=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.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=[...b.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,o.useRef)(!1);return(0,o.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,n=[...b.branches].some(e=>e.contains(t));n||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=O===b.layers.size-1;t&&(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,o.useEffect)(()=>{if(w)return n&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(w)),b.layers.add(w),h(),()=>{n&&1===b.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,b]),(0,o.useEffect)(()=>()=>{w&&(b.layers.delete(w),b.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,b]),(0,o.useEffect)(()=>{let e=()=>E({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},x,{ref:k,style:{pointerEvents:M?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,a.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,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,o):i.dispatchEvent(o)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(2784);let i=0;function o(){(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:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),o=n(2784),a=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[x,b]=(0,o.useState)(null),w=(0,l.W)(f),j=(0,l.W)(g),E=(0,o.useRef)(null),k=(0,a.e)(t,e=>b(e)),S=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(S.paused||!x)return;let t=e.target;x.contains(t)?E.current=t:m(E.current,{select:!0})}function t(e){S.paused||!x||x.contains(e.relatedTarget)||m(E.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,x,S.paused]),(0,o.useEffect)(()=>{if(x){v.add(S);let e=document.activeElement,t=x.contains(e);if(!t){let t=new CustomEvent(u,d);x.addEventListener(u,w),x.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(x).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(x))}return()=>{x.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);x.addEventListener(c,j),x.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),x.removeEventListener(c,j),v.remove(S)},0)}}},[x,w,j,S]);let _=(0,o.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,o]=function(e){let t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t),a=r&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,o.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:k,onKeyDown:_}))});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),o=n(64680);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.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),o=n(28316),a=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?o.createPortal((0,i.createElement)(a.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),o=n(26215),a=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t;let[n,o]=(0,r.useState)(),s=(0,r.useRef)({}),u=(0,r.useRef)(e),c=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[f,h]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},d));return(0,r.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,n=u.current,r=n!==e;if(r){let r=c.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"),u.current=e}},[e,h]),(0,a.b)(()=>{if(n){let e=e=>{let t=l(s.current),r=t.includes(e.animationName);e.target===n&&r&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===n&&(c.current=l(s.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,o.e)(s.ref,u.ref),d="function"==typeof n;return d||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),o=n(28316),a=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:o,...s}=e,l=o?a.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,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7896),i=n(2784),o=n(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.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)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)});a.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],o=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,o.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 o}});var r=n(2784),i=n(86029);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n),c=(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[l,c]}},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,x=void 0!==y&&y,b=e.left,w=e.numTicks,j=void 0===w?10:w,E=e.orientation,k=void 0===E?d.default.bottom:E,S=e.rangePadding,_=void 0===S?0:S,C=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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=O?O:(0,u.default)(C),D=k===d.default.left,L=k===d.default.top,F=L||k===d.default.bottom,z=(0,l.default)(C),V=D||L?-1:1,Z=C.range(),I=(0,f.default)(_),B=(0,c.default)({x:Number(Z[0])+.5-I.start,y:0},F),H=(0,c.default)({x:Number(Z[Z.length-1])+.5+I.end,y:0},F),U=(null!=A?A:(0,a.getTicks)(C,j)).filter(function(e){return!x||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,a.coerceNumber)(z(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},F),to:(0,c.default)({x:r,y:T*V},F),formattedValue:R(t,n,U)}});return r.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===P?0:P,left:void 0===b?0:b},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:x,horizontal:F,numTicks:j,orientation:k,rangePadding:_,scale:C,tickFormat:R,tickLength:T,tickPosition:z,tickSign:V,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),o=n(71602),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:a.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)),o=l(n(81401)),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:a.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)),o=l(n(81401)),a=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(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:a.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)),o=l(n(81401)),a=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=a()).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!=(o=n.xMin)?o:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=o(n(30968)),i=o(n(98929));function o(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(),o=0;o<=i;o+=n){var a=e.getPointAtLength(o).matrixTransform(t);r.push(a)}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],o=(0,r.useRef)(null),a=(0,r.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){o.current&&(o.current(n),o.current=null)},[n]),[n,a]};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 o}});var r=n(49833),i=n(44321);function o(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 o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);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}:o({},a)}(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 o(e){return!!e&&"createSVGPoint"in e}function a(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 a},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return o},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)),o=f(n(72779)),a=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),_=null!=E?E:(0,u.getTicks)(r,void 0===b?10:b),C=(null!=j?j:0)+(0,c.default)(r)/2,O=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+C;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,o.default)("visx-columns",x),top:void 0===t?0:t,left:void 0===n?0:n},k?k({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.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)),o=f(n(72779)),a=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),_=null!=k?k:(0,u.getTicks)(r,void 0===w?10:w),C=(null!=E?E:0)+(0,c.default)(r)/2,O=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+C;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,o.default)("visx-rows",x),top:void 0===t?0:t,left:void 0===n?0:n},b?b({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.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),o=n(2784),a=n(72779),s=n.n(a),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 o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}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 o},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 o(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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(o.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 o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),o=l(n(65154)),a=["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,a);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(o.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)),o=s(n(55727)),a=["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,o.useTransition)(n,u({},(0,a.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,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(o.animated.line,u({key:h,x1:r,x2:a,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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a);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(o.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)),o=s(n(55727)),a=["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,o.useRef)(null),y=(0,o.useRef)(0),x=(0,o.useState)({width:0,height:0,top:0,left:0}),b=x[0],w=x[1],j=(0,o.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,o.useEffect)(function(){var e=new a.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;y.current=window.requestAnimationFrame(function(){j({width:i,height:o,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]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},b,{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),o=n(70590),a=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,o.Z)(e);case"sqrt":return(0,a.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 b.Z},getTicks:function(){return _.Z},inferScaleType:function(){return k},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return O.Z},scaleLinear:function(){return o.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 x.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return C.Z},updateScale:function(){return j}});var r=n(26587),i=n(71646),o=n(8597),a=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.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),x=n(50630),b=n(2663),w=s.Z.apply(void 0,s.a),j=function(e,t){return w(e.copy(),t)},E=n(40668);function k(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,E.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var S=n(28142),_=n(71220),C=n(51519),O=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return _},Z:function(){return O}});var r=n(88751),i=n(87286),o=n(43780),a=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.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),x=n(94758),b=n(97631),w=n(2908),j=n(40668),E={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},k={day:v.Z,hour:g.Z,minute:y.Z,month:x.Z,second:h.Z,week:b.Ox,year:w.Z},S=n(74672),_=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],C={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?k[n]:E[n]);else{var i=n.interval,o=n.step,a=(r?k[i]:E[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0||(i[n]=e[n]);return i}(e,s),y=(0,a.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:o()("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),_=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),C=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:x,sortValues:b}),O=C(void 0===s?[]:s);return j?r.createElement(r.Fragment,null,j({arcs:O,path:_,pie:C})):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:o()("visx-pie-arc",t),d:_(e)||"",fill:null==k||"string"==typeof k?k:k(e)},S)),null==l?void 0:l(_.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),m=(0,a.aJ)({angle:n,radius:i,defined:s,curve:l});return f?r.createElement(r.Fragment,null,f({path:m})):r.createElement("path",g({ref:d,className:o()("visx-line-radial",t),d:m(c)||"",fill:void 0===h?"transparent":h},p))}var x=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x),y=(0,a.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===h?function(){return!0}:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:y})):r.createElement("path",b({ref:v,className:o()("visx-area",p),d:y(f)||""},g))}var j=n(55746),E=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,E),S=(0,a.kn)({keys:s,value:g,order:y,offset:x}),_=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),C=S(l);return w?r.createElement(r.Fragment,null,w({stacks:C,path:_,stack:S})):r.createElement(c.Z,{top:n,left:i},C.map(function(e,n){return r.createElement("path",k({className:o()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:_(e)||"",fill:null==b?void 0:b(e.key,n)},j))}))}var _=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,_);return r.createElement(S,C({className:t,top:n,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},b),x||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",C({className:o()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},b))})})}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:o()("visx-bar-group",n),top:i,left:a},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),x=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(x)):r.createElement(c.Z,{className:o()("visx-bar-group-horizontal",n),top:i,left:a},x.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 z=n(98926);function V(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function Z(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,z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),x&&j.offset((0,$.ZP)(x));var E=j(t),k=A(h),S=E.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),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-k/2);return{bar:t,key:n,index:r,height:i,width:k,x:a||0,y:o||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(S)):r.createElement(c.Z,{className:o()("visx-bar-stack",n),top:i,left:a},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 X=["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,X),j=(0,z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),x&&j.offset((0,$.ZP)(x));var E=j(t),k=A(p),S=E.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),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:k,width:i,x:o||0,y:a||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(S)):r.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:a},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?Z:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["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,ea),h=s||el({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",es({ref:a,className:o()("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?V:l,radius:void 0===u?Z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:a,className:o()("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?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",ev({ref:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var ex=["className","children","data","innerRef","path","percent","x","y","source","target"];function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ex),p=s||ew({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",eb({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var eE=["className","children","data","innerRef","path","percent","x","y","source","target"];function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eE),p=s||eS({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",ek({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eC=["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,eC),h=s||eM({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",eO({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},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=a||eN({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?Z:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eP({ref:n,className:o()("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=a||eF({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?Z:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var eV=["className","innerRef","data","path","percent","x","y","source","target","children"];function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eV),p=a||eI({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",eZ({ref:n,className:o()("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=a||eW({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",eU({ref:n,className:o()("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 eG(e){var t=e.className,n=e.innerRef,i=e.data,a=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={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=a||eY({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?Z:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eK({ref:n,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["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,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eJ:i,rotate:void 0===a?0:a}).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:o()("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:o()("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+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[k+1];)k+=1;c[k].push(_)}}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),o=n.n(i),a=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),j=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===v?function(){return!0}:v,curve:y});return(null==f?j.y0(h.range()[0]):(0,a.Z)(j.y0,f),c&&!d&&(0,a.Z)(j.y1,c),d&&!c&&(0,a.Z)(j.y1,d),b)?r.createElement(r.Fragment,null,b({path:j})):r.createElement("path",u({ref:x,className:o()("visx-area-closed",g),d:j(m)||""},w))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["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,a);return r.createElement("rect",s({ref:n,className:o()("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),o=n.n(i),a=["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,a),V=(n=(t={x:k,y:S,width:_,height:C,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!==F&&F}).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,x=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,b=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+x+" h"+(g-b)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-b)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(b-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(b-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:V})):r.createElement("path",s({ref:E,className:o()("visx-bar-rounded",j),d:V},z))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["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,a),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("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),o=n.n(i),a=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),g=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",l({ref:p,className:o()("visx-linepath",f),d:g(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))}},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(12235),o=n(79767),a=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,o=t.cornerRadius,a=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!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),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,o=t.x1,a=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),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),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,a=t.curve,s=(0,o.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),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,o=t.curve,a=(0,s.Z)();return n&&(0,u.Z)(a.angle,n),r&&(0,u.Z)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),n&&(0,u.Z)(o.value,n),r&&o.order((0,c.ZP)(r)),i&&o.offset((0,d.ZP)(i)),o}},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),o=n(90541),a=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:a.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),o=n(12197),a=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:a.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=void 0===h?[]:h,m=e.defined,v=e.className,g=e.curve,y=e.innerRef,x=function(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}(e,a),b=(0,o.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===m?function(){return!0}:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:b})):r.default.createElement("path",l({ref:y,className:(0,i.default)("visx-area",v),d:b(p)||""},x))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["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,o),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=a(n(2784)),i=a(n(72779)),o=["from","to","fill","className","innerRef"];function a(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,a),g=(0,o.line)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",l({ref:p,className:(0,i.default)("visx-linepath",f),d:g(s)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["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,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,x=g.startDy,b=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",a({ref:c,transform:b},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?x: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),o=n.n(i),a=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,x=function(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}(e,s),b=x.x,w=void 0===b?0:b,j=x.y,E=void 0===j?0:j,k=!u(w)||!u(E),S=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),_=S.wordsWithWidth,C=S.spaceWidth,O=(0,r.useMemo)(function(){return k?[]:f||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+C0){var t=O[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=E-n*E;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+E+")"),e.length>0?e.join(" "):""},[k,w,E,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 o.Z}});var r=n(64170),i=n(75715),o=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);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",o),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,o={},a=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];o[n]||(o[n]=new WeakMap);var l=o[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"),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}}},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(),o=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===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),o=n(92233),a=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 x=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var j=s(e.baseURL,e.url);function E(){if(x){var r="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:r,config:e,request:x}),x=null}}if(x.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=E:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(E)},x.onabort=function(){x&&(n(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,x,x)),x=null},x.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,x)),x=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(j))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in x&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),g&&"json"!==g&&(x.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){x&&(n(!e||e&&e.type?new f:e),x.abort(),x=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}x.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),o=n(62215),a=n(92937),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(10663));s.Axios=o,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, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.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?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},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 o(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,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"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,o(e))});return}}e(n,l)}}),n.pop()}else t.append(a,o(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(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),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,n){"use strict";var r,i,o=n(73644),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.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]"===a.call(e)}var x=l("URLSearchParams");function b(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)a[o=r[i]]||(t[o]=e[o],a[o]=!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 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){if(e===t)return[l,u];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},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,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;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,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)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 o,a=/^-?(?:\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,o=e[0]+"";ru^n?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^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,o++);o>A?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return E(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&F)return B(h=new z(e),_+h.e+1,C);if(f=String(e),u="number"==typeof e){if(0*e!=0)return E(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,z.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),o=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return E(h,String(e),u,t)}u=!1,(o=(f=j(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=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&&z.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>A)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new z(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=o||o<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function Z(e,t){for(var n,r=1,i=new z(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((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(r=r||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?c/d[i-a]: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==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),r)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];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 z.clone=e,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=z.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),_=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),C=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);F="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:_,ROUNDING_MODE:C,EXPONENTIAL_AT:[O,M],RANGE:[T,A],CRYPTO:P,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},z.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!z.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===o||-1===o)&&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===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},z.maximum=z.max=function(){return Z(arguments,k.lt)},z.minimum=z.min=function(){return Z(arguments,k.gt)},z.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,o,a,c=0,f=[],h=new z(S);if(null==e?e=_:m(e,0,1e9),o=s(e/14),P){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw P=!1,Error(u+"crypto unavailable")}if(!P)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),z.sum=function(){for(var e=1,t=arguments,n=new z(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=_,x=C;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new z(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,a?(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=o,p=(f=w(f,m,g,x,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=x<4?(null!=v||d)&&(0==x||x==(f.s<0?3:2)):v>c||v==c&&(4==x||d||6==x&&1&p[l-1]||x==(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,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}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,o,a,s){var u,c,d,h,p,m,v,g,y,x,b,w,j,E,k,S,_,C=r.s==i.s?1:-1,O=r.c,M=i.c;if(!O||!O[0]||!M||!M[0])return new z(r.s&&i.s&&(O?!M||O[0]!=M[0]:M)?O&&0==O[0]||!M?0*C:C/0:NaN);for(y=(g=new z(C)).c=[],C=o+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),C=C/14|0),d=0;M[d]==(O[d]||0);d++);if(M[d]>(O[d]||0)&&c--,C<0)y.push(1),h=!0;else{for(E=O.length,S=M.length,d=0,C+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),O=e(O,p,s),S=M.length,E=O.length),j=S,b=(x=O.slice(0,S)).length;b=s/2&&k++;do{if(p=0,(u=t(M,x,S,b))<0){if(w=x[0],S!=b&&(w=w*s+(x[1]||0)),(p=l(w/k))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,b=x.length;1==t(m,x,v,b);)p--,n(m,St(M,x,S,b);)p++,n(x,S=10;C/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,E=function(e,t,n,a){var s,l=n?t:t.replace(b,"");if(x.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,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new z(l,s);if(z.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},k.absoluteValue=k.abs=function(){var e=new z(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return p(this,new z(e,t))},k.decimalPlaces=k.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=C:m(t,0,8),B(new z(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},k.dividedBy=k.div=function(e,t){return w(this,new z(e,t),_,C)},k.dividedToIntegerBy=k.idiv=function(e,t){return w(this,new z(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var n,r,i,o,a,c,d,f,h,p=this;if((e=new z(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new z(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 z(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 z(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 o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new z(d?1/o:o);R&&(o=s(R/14+2))}for(c?(n=new z(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new z(S);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):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),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):o?B(h,R,C,a):h)},k.integerValue=function(e){var t=new z(this);return null==e?e=C:m(e,0,8),B(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===p(this,new z(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return p(this,new z(e,t))>0},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=p(this,new z(e,t)))||0===t},k.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return 0>p(this,new z(e,t))},k.isLessThanOrEqualTo=k.lte=function(e,t){return -1===(t=p(this,new z(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new z(e,t)).s,!a||!t)return new z(NaN);if(a!=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 z(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new z(u[0]?this:3==C?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[o]+n)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=n}return n?++r:m.splice(0,1),I(e,m,r)},k.negated=function(){var e=new z(this);return e.s=-e.s||null,e},k.plus=function(e,t){var n,r=this.s;if(t=(e=new z(e,t)).s,!r||!t)return new z(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new z(r/0);if(!a[0]||!s[0])return s[0]?e:new z(a[0]?this:0*r)}if(i=f(i),o=f(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),I(e,a,o)},k.precision=k.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=C:m(t,0,8),B(new z(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},k.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,l=_+4,u=new z("0.5");if(1!==a||!o||!o[0])return new z(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,n=new z(t)):n=new z(a+""),n.c[0]){for((a=(s=n.e)+l)<3&&(a=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(n.c)).slice(0,a)){if(n.e0&&p>0){for(i=p%a||a,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||"")},k.toFraction=function(e){var t,n,r,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new z(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 z(this);for(t=new z(S),c=n=new z(S),r=l=new z(S),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=A,A=1/0,s=new z(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,o*=2,p=1>w(c,r,o,C).minus(this).abs().comparedTo(w(l,n,o,C).minus(this).abs())?[c,r]:[l,n],A=a,p},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),V(this,e,t,2)},k.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&&F?t=y(h((n=B(new z(n),_+i+1,C)).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},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=t&&z.set(t),z}()).default=o.BigNumber=o,void 0!==(r=(function(){return o}).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 o(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(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),o(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]=a(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]^a(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,o){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));let a=p(n,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,o){let a=g(e,t,n,i,o);return r.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=o(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=o(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}let a=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]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,o;u[n]=(r=e.b)[o=4*n]^r[o+1]<<8^r[o+2]<<16^r[o+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(a),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){let n=new TextEncoder;t=n.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 o=0;o @@ -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,o,a,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&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(r,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.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 k},Il:function(){return i},J5:function(){return a},SU:function(){return E},Ss:function(){return S},Ym:function(){return A},ZP:function(){return b},xV:function(){return o}});var r=n(40948);function i(){}var o=.7,a=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 x(){return this.rgb().formatRgb()}function b(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 E(e){return(e instanceof i||(e=b(e)),e)?(e=e.rgb(),new S(e.r,e.g,e.b,e.opacity)):new S}function k(e,t,n,r){return 1==arguments.length?E(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 _(){return"#"+O(this.r)+O(this.g)+O(this.b)}function C(){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=b(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,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(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,b,{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:x,toString:x}),(0,r.Z)(S,k,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,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:_,formatHex:_,formatRgb:C,toString:C})),(0,r.Z)(P,A,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,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),o=n(10810),a=4/29,s=6/29,l=3*(6/29)*(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 x(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=s:(t=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.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+a}function p(e){return e>s?e*e*e:l*(e-a)}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],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-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"];o=(i=function(e){var t,n,i,o=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,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=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 x(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,x=e.comma,b=e.precision,w=e.trim,j=e.type;"n"===j?(x=!0,j="g"):d[j]||(void 0===b&&(b=12),w=!0,j="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var E="$"===s?a:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",k="$"===s?u:/[%p]/.test(j)?v:"",S=d[j],_=/[defgprs%]/.test(j);function C(e){var a,s,l,u=E,d=k;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),b),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?")":""),_){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}x&&!f&&(e=o(e,1/0));var C=u.length+e.length+d.length,O=C>1)+u+e+d+O.slice(C);break;default:e=O+u+e+d}return m(e)}return b=void 0===b?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),C.toString=function(){return e+""},C}return{format:x,formatPrefix:function(e,t){var n=x(((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),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=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 o({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 o(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=o.prototype,o.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 o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(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 a=/[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?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var a=l(r,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),n.concat(a)}return n.concat(function(e,n,r){var i,a=[];if("L"===n.type||"Q"===n.type||"C"===n.type)a=a.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),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,r):a.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(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),o=n(10810),a=-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=(a*r+-1.7884503806*t-3.5172982438*n)/(a+-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)*o.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)*o.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(-.29227*r+-.90649*a)),255*(t+n*(1.97294*r)),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),o=(0,u.ZP)(t.s,r.s),a=(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=o(e),t.l=a(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 a}});var r=n(20966),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(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=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(68847),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(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=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(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 x.Z},interpolateTransformCss:function(){return k},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return O},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,o,a,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),x=n(76060),b=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(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=o.skewX)!==(c=a.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,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=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=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=r-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),x=y/g,b=y/v;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+b*l)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);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),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*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=a},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[o],t)?r=o+1:i=o}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,o){null==r&&(r=0),null==o&&(o=e.length);let a=i(e,n,r,o-1);return a>r&&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}}}var o=n(81048);let a=i(r.Z),s=a.right;a.left,i(o.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 o=n(1169);function a(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=o.Z){for(;i>r;){if(i-r>600){let o=i-r+1,a=n-r+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(r,Math.floor(n-a*u/o+c)),f=Math.min(i,Math.floor(n+(o-a)*u/o+c));e(t,n,d,f,s)}let o=t[n],l=r,u=i;for(a(t,r,n),s(t[i],o)>0&&a(t,r,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[r],o)?a(t,r,u):a(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,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var r,i,o,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++lt&&--r,o=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function E(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function k(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 _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function C(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 F(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function z(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function V(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 I(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Z(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 x(e.getDate(),t,2)}function U(e,t){return x(e.getHours(),t,2)}function W(e,t){return x(e.getHours()%12||12,t,2)}function q(e,t){return x(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return x(e.getMilliseconds(),t,3)}function K(e,t){return $(e,t)+"000"}function Y(e,t){return x(e.getMonth()+1,t,2)}function G(e,t){return x(e.getMinutes(),t,2)}function X(e,t){return x(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function Q(e,t){return x(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),x(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 x(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return x(e.getFullYear()%100,t,2)}function eo(e,t){return x((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return x(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return x((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,"+"))+x(t/60|0,"0",2)+x(t%60,"0",2)}function eu(e,t){return x(e.getUTCDate(),t,2)}function ec(e,t){return x(e.getUTCHours(),t,2)}function ed(e,t){return x(e.getUTCHours()%12||12,t,2)}function ef(e,t){return x(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return x(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return x(e.getUTCMonth()+1,t,2)}function ev(e,t){return x(e.getUTCMinutes(),t,2)}function eg(e,t){return x(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function ex(e,t){return x(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function eb(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=eb(e),x(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function ej(e){return e.getUTCDay()}function eE(e,t){return x(a.l6.count((0,d.Z)(e)-1,e),t,2)}function ek(e,t){return x(e.getUTCFullYear()%100,t,2)}function eS(e,t){return x((e=eb(e)).getUTCFullYear()%100,t,2)}function e_(e,t){return x(e.getUTCFullYear()%1e4,t,4)}function eC(e,t){var n=e.getUTCDay();return x((e=n>=4||0===n?(0,a.hB)(e):a.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,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=j(i),x=w(o),b=j(o),ee=w(c),eb=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 o[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:eo,G:es,H:U,I:W,j:q,L:$,m:Y,M:G,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eT,s:eA,S:X,u:J,U:Q,V:et,w:en,W:er,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eF={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[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:eC,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:ex,V:ew,w:ej,W:eE,x:null,X:null,y:ek,Y:e_,Z:eO,"%":eM},ez={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=eb.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=x.exec(t.slice(n));return r?(e.w=b.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 eZ(e,t,n,r)},d:N,e:N,f:V,g:M,G:O,H:D,I:D,j:R,L:z,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:Z,s:B,S:F,u:k,U:S,V:_,w:E,W:C,x:function(e,t,r){return eZ(e,n,t,r)},X:function(e,t,n){return eZ(e,r,t,n)},y:M,Y:O,Z:T,"%":I};function eV(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(r):(0,a.l6)(r),r=s.Z.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eZ(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=ez[(i=t.charAt(a++))in m?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return eL.x=eV(n,eL),eL.X=eV(r,eL),eL.c=eV(t,eL),eF.x=eV(n,eF),eF.X=eV(r,eF),eF.c=eV(t,eF),{format:function(e){var t=eV(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=eI(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=eV(e+="",eF);return t.toString=function(){return e},t},utcParse:function(e){var t=eI(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,o=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},x:function(){return a}});var r=n(22274),i=n(34130);function o(){var e,t,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=a().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,x}function x(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return x.invert=function(n){return g(t((h||(h=r(m,p.map(e),o.Z)))(n)))},x.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},x.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},x.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},x.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},x.interpolate=function(e){return arguments.length?(v=e,y()):v},x.unknown=function(e){return arguments.length?(n=e,x):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())},x.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,a.Q)(O()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.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())},x.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,o.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,o.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.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)(b()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(b()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.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,k.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,_.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},x.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return E},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(b());return t.copy=function(){return w(t,e()).constant(t.constant())},x.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),o=n(5497),a=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),x=n(22274);function b(){var e,t,n,r,i,o=0,a=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?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},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(o),t=i(a),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)(b());return e.copy=function(){return w(e,j()).exponent(e.exponent())},x.O.apply(e,arguments)}function E(){return j.apply(null,arguments).exponent(.5)}var k=n(98038),S=n(1169),_=n(33907),C=n(87475);function O(){var e,t,n,r,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}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,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),o=n(10070),a=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,a=e(l,u),s=a.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),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.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],a]:[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,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),o=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,a.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,o.Q)(c)}}});var r=n(70552),i=n(22274),o=n(93963),a=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())},o.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),o=n(22274);function a(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(a(1),s(t));return n.constant=function(n){return arguments.length?e(a(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],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,r.ZP)(n,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((n=Array.from(e)).length,o.length-1),s):n.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(n.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.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(o).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),o=n(21032),a=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,o.Z)(d,f))||(u.precision=c),(0,a.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,a.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),o=n(50690),a=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,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),x=u(":%S"),b=u("%I:%M"),w=u("%I %p"),j=u("%a %d"),E=u("%b %d"),k=u("%B"),S=u("%Y");function _(e){return(l(e)A*A+P*P&&(S=C,_=O),{cx:S,cy:_,x01:-d,y01:-f,x11:S*(i/j-1),y11:_*(i/j-1)}}function f(){var e=a,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var x,b,w=u,j=c,E=u,k=c,S=g,_=g,C=m.apply(this,arguments)/2,O=C>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),T=M,A=M;if(O>o.Ho){var P=(0,o.ZR)(O/s*(0,o.O$)(C)),N=(0,o.ZR)(O/l*(0,o.O$)(C));(S-=2*P)>o.Ho?(P*=y?1:-1,E+=P,k-=P):(S=0,E=k=(u+c)/2),(_-=2*N)>o.Ho?(N*=y?1:-1,w+=N,j-=N):(_=0,w=j=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(k),F=s*(0,o.O$)(k);if(M>o.Ho){var z,V=l*(0,o.mC)(j),I=l*(0,o.O$)(j),Z=s*(0,o.mC)(E),B=s*(0,o.O$)(E);if(go.Ho?A>o.Ho?(x=d(Z,B,R,D,l,A,y),b=d(V,I,L,F,l,A,y),v.moveTo(x.cx+x.x01,x.cy+x.y01),Ao.Ho&&S>o.Ho?T>o.Ho?(x=d(L,F,V,I,s,-T,y),b=d(R,D,Z,B,s,-T,y),v.lineTo(x.cx+x.x01,x.cy+x.y01),T=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.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,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*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 o(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),a.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:o(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,o(this,i(this,n=r(this,e,t)),n);break;default:o(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(a.prototype)).point=function(e,t){a.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,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},j:function(){return r}});var r=o(n(20651).Z);function i(e){this._curve=e}function o(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 o(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),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 E},curveBasisClosed:function(){return S},curveBasisOpen:function(){return C},curveBundle:function(){return M},curveCardinal:function(){return T.ZP},curveCardinalClosed:function(){return P},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return z},curveCatmullRomClosed:function(){return I},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 G.ZP},curveStepAfter:function(){return G.cD},curveStepBefore:function(){return G.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return X.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 eo.Z},stackOrderInsideOut:function(){return ea.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 x.Z},symbols:function(){return f.u}});var r=n(38764),i=n(12235),o=n(79767),a=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,o=e.lineY0,a=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)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},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),x=n(60598);function b(){}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 E(e){return new j(e)}function k(e){this._context=e}function S(e){return new k(e)}function _(e){this._context=e}function C(e){return new _(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}},k.prototype={areaStart:b,areaEnd:b,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}},_.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],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+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:b,areaEnd:b,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,o=e._x2,a=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);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}F.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 z=function e(t){function n(e){return t?new F(e,t):new T.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function V(e,t){this._context=e,this._alpha=t}V.prototype={areaStart:b,areaEnd:b,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 I=function e(t){function n(e){return t?new V(e,t):new A(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: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 Z(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:b,areaEnd:b,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),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[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,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=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,o,a=0,s=e[0].length;a1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o0){for(var n,i=0,o=e[t[0]],a=o.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(o);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function o(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 o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(a.BZ),u=(0,r.Z)(0);function c(r){var i,o,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/h,u.apply(this,arguments)),b=x*(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*b)/p:0;i0?f*c:0)+b,v[o]={data:r[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:x};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),o=n(90541),a=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,n=o.Z,l=s;function u(r){var i,o,a=e.apply(this,arguments),s=r.length,u=a.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=o;var a=o.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,u=365*a},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(22179),i=n(1514),o=(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=o;var a=o.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 a.Z},timeMinutes:function(){return a.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 o.Z},timeSeconds:function(){return o.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 o.Z},utcSeconds:function(){return o.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),o=n(52546),a=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,o,a){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 a;do a.push(o=new Date(+e)),n(e,i),t(e);while(o=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););}})},o&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(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 o}});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 o=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(22179),i=n(1514),o=(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=o;var a=o.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 a}});var r=n(22179),i=n(1514),o=(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=o;var a=o.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return _},jK:function(){return S},jo:function(){return k},WG:function(){return E}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>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)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{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}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===o)return l.Z.every(Math.max(a(t,n,r),1));let[u,d]=c[i/c[o-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 o=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return x},Ld:function(){return v},OM:function(){return a},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 o(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 a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,x=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});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 o=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}})},29193:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(66700),i=n(19785);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t),a=n.getTime()-o.getTime();return a<0?-1:a>0?1:a}var a={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=o(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 o,s=function(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}(e,t)/1e3;return((o=null==n?void 0:n.roundingMethod)?a[o]:a.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){var g=Math.round(v/60);return f.formatDistance("aboutXHours",g,p)}if(v<2520)return f.formatDistance("xDays",1,p);if(v<43200){var y=Math.round(v/1440);return f.formatDistance("xDays",y,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,a=(0,r.Z)(e),s=(0,r.Z)(t),l=o(a,s),u=Math.abs(function(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}(a,s));if(u<1)n=0;else{1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-l*u);var c=o(a,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===o(e,s)&&(c=!1),n=l*(u-Number(c))}return 0===n?0:n}(u,n))<12){var x=Math.round(v/43200);return f.formatDistance("xMonths",x,p)}var b=c%12,w=Math.floor(c/12);return b<3?f.formatDistance("aboutXYears",w,p):b<9?f.formatDistance("overXYears",w,p):f.formatDistance("almostXYears",w+1,p)}},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 o(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 a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({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:o({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 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 u(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:a,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],o=e.match(r.parsePattern);if(!o)return null;var a=r.valueCallback?r.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,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}}},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(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},9156:function(e,t,n){"use strict";n.d(t,{TA:function(){return t3}});var r,i,o,a=n(2784),s=n(78435),l=n.n(s),u=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==c},c="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function d(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h(Array.isArray(e)?[]:{},e,t):e}function f(e,t,n){return e.concat(t).map(function(e){return d(e,n)})}function h(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||u;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?d(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=d(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=h(e[n],t[n],r):i[n]=d(t[n],r)}),i)}h.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return h(e,n,t)},{})};var p=h,m=n(98147),v=function(e,t){return function(n){return e(t(n))}},g=v(Object.getPrototypeOf,Object),y=n(43391),x=Object.prototype,b=Function.prototype.toString,w=x.hasOwnProperty,j=b.call(Object),E=function(e){if(!(0,y.Z)(e)||"[object Object]"!=(0,m.Z)(e))return!1;var t=g(e);if(null===t)return!0;var n=w.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&b.call(n)==j},k=function(e,t){return e===t||e!=e&&t!=t},S=function(e,t){for(var n=e.length;n--;)if(k(e[n][0],t))return n;return -1},_=Array.prototype.splice;function C(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},C.prototype.set=function(e,t){var n=this.__data__,r=S(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var O=n(93122),M=function(e){if(!(0,O.Z)(e))return!1;var t=(0,m.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},T=n(93221),A=T.Z["__core-js_shared__"],P=(r=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",N=Function.prototype.toString,R=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""},D=/^\[object .+?Constructor\]$/,L=Object.prototype,F=Function.prototype.toString,z=L.hasOwnProperty,V=RegExp("^"+F.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=function(e,t){var n,r=null==e?void 0:e[t];return(n=r,(0,O.Z)(n)&&(!P||!(P in n))&&(M(n)?V:D).test(R(n)))?r:void 0},Z=I(T.Z,"Map"),B=I(Object,"create"),H=Object.prototype.hasOwnProperty,U=Object.prototype.hasOwnProperty;function W(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},ev={};ev["[object Float32Array]"]=ev["[object Float64Array]"]=ev["[object Int8Array]"]=ev["[object Int16Array]"]=ev["[object Int32Array]"]=ev["[object Uint8Array]"]=ev["[object Uint8ClampedArray]"]=ev["[object Uint16Array]"]=ev["[object Uint32Array]"]=!0,ev["[object Arguments]"]=ev["[object Array]"]=ev["[object ArrayBuffer]"]=ev["[object Boolean]"]=ev["[object DataView]"]=ev["[object Date]"]=ev["[object Error]"]=ev["[object Function]"]=ev["[object Map]"]=ev["[object Number]"]=ev["[object Object]"]=ev["[object RegExp]"]=ev["[object Set]"]=ev["[object String]"]=ev["[object WeakMap]"]=!1;var eg=function(e){return function(t){return e(t)}},ey=n(92168),ex="object"==typeof exports&&exports&&!exports.nodeType&&exports,eb=ex&&"object"==typeof module&&module&&!module.nodeType&&module,ew=eb&&eb.exports===ex&&ey.Z.process,ej=function(){try{var e=eb&&eb.require&&eb.require("util").types;if(e)return e;return ew&&ew.binding&&ew.binding("util")}catch(e){}}(),eE=ej&&ej.isTypedArray,ek=eE?eg(eE):function(e){return(0,y.Z)(e)&&em(e.length)&&!!ev[(0,m.Z)(e)]},eS=Object.prototype.hasOwnProperty,e_=function(e,t){var n=el(e),r=!n&&es(e),i=!n&&!r&&ef(e),o=!n&&!r&&!i&&ek(e),a=n||r||i||o,s=a?en(e.length,String):[],l=s.length;for(var u in e)(t||eS.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ep(u,l)))&&s.push(u);return s},eC=Object.prototype,eO=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eC)},eM=v(Object.keys,Object),eT=Object.prototype.hasOwnProperty,eA=function(e){if(!eO(e))return eM(e);var t=[];for(var n in Object(e))eT.call(e,n)&&"constructor"!=n&&t.push(n);return t},eP=function(e){return null!=e&&em(e.length)&&!M(e)},eN=function(e){return eP(e)?e_(e):eA(e)},eR=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eD=Object.prototype.hasOwnProperty,eL=function(e){if(!(0,O.Z)(e))return eR(e);var t=eO(e),n=[];for(var r in e)"constructor"==r&&(t||!eD.call(e,r))||n.push(r);return n},eF=function(e){return eP(e)?e_(e,!0):eL(e)},ez="object"==typeof exports&&exports&&!exports.nodeType&&exports,eV=ez&&"object"==typeof module&&module&&!module.nodeType&&module,eI=eV&&eV.exports===ez?T.Z.Buffer:void 0,eZ=eI?eI.allocUnsafe:void 0,eB=function(e,t){if(t)return e.slice();var n=e.length,r=eZ?eZ(n):new e.constructor(n);return e.copy(r),r},eH=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0||(i[n]=e[n]);return i}function tq(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var t$=function(e){return Array.isArray(e)&&0===e.length},tK=function(e){return"function"==typeof e},tY=function(e){return null!==e&&"object"==typeof e},tG=function(e){return"[object String]"===Object.prototype.toString.call(e)},tX=function(e){return tY(e)&&tK(e.then)};function tJ(e,t,n,r){void 0===r&&(r=0);for(var i=tB(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var t0=(0,a.createContext)(void 0);function t1(e,t){switch(t.type){case"SET_VALUES":return tU({},e,{values:t.payload});case"SET_TOUCHED":return tU({},e,{touched:t.payload});case"SET_ERRORS":if(l()(e.errors,t.payload))return e;return tU({},e,{errors:t.payload});case"SET_STATUS":return tU({},e,{status:t.payload});case"SET_ISSUBMITTING":return tU({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tU({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tU({},e,{values:tQ(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tU({},e,{touched:tQ(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tU({},e,{errors:tQ(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tU({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tU({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;tJ(t,a.path)||(t=tQ(t,a.path,a.message))}}return t}(n)):t(n)})})},[m.validationSchema]),O=(0,a.useCallback)(function(e,t){return new Promise(function(n){return n(w.current[e].validate(t))})},[]),M=(0,a.useCallback)(function(e){var t=Object.keys(w.current).filter(function(e){return tK(w.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return O(t,tJ(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=tQ(e,t[r],n)),e},{})})},[O]),T=(0,a.useCallback)(function(e){return Promise.all([M(e),m.validationSchema?C(e):{},m.validate?_(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return p.all([t,n,r],{arrayMerge:t5})})},[m.validate,m.validationSchema,M,_,C]),A=t8(function(e){return void 0===e&&(e=k.values),S({type:"SET_ISVALIDATING",payload:!0}),T(e).then(function(e){return b.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e})});(0,a.useEffect)(function(){s&&!0===b.current&&l()(v.current,m.initialValues)&&A(v.current)},[s,A]);var P=(0,a.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:g.current?g.current:m.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:m.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:m.initialStatus;v.current=t,g.current=n,y.current=r,x.current=i;var o=function(){S({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(m.onReset){var a=m.onReset(k.values,X);tX(a)?a.then(o):o()}else o()},[m.initialErrors,m.initialStatus,m.initialTouched]);(0,a.useEffect)(function(){!0===b.current&&!l()(v.current,m.initialValues)&&(d&&(v.current=m.initialValues,P()),s&&A(v.current))},[d,m.initialValues,P,s,A]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(g.current,m.initialErrors)&&(g.current=m.initialErrors||t2,S({type:"SET_ERRORS",payload:m.initialErrors||t2}))},[d,m.initialErrors]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(y.current,m.initialTouched)&&(y.current=m.initialTouched||t4,S({type:"SET_TOUCHED",payload:m.initialTouched||t4}))},[d,m.initialTouched]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(x.current,m.initialStatus)&&(x.current=m.initialStatus,S({type:"SET_STATUS",payload:m.initialStatus}))},[d,m.initialStatus,m.initialTouched]);var N=t8(function(e){if(w.current[e]&&tK(w.current[e].validate)){var t=tJ(k.values,e),n=w.current[e].validate(t);return tX(n)?(S({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),C(k.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),R=(0,a.useCallback)(function(e,t){var n=t.validate;w.current[e]={validate:n}},[]),D=(0,a.useCallback)(function(e){delete w.current[e]},[]),L=t8(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?A(k.values):Promise.resolve()}),F=(0,a.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),z=t8(function(e,t){var r=tK(e)?e(k.values):e;return S({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()}),V=(0,a.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),I=t8(function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(tQ(k.values,e,t)):Promise.resolve()}),Z=(0,a.useCallback)(function(e,t){var n,r=t,i=e;if(!tG(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(tJ(k.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&I(r,i)},[I,k.values]),B=t8(function(e){if(tG(e))return function(t){return Z(t,e)};Z(e)}),H=t8(function(e,t,n){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?A(k.values):Promise.resolve()}),U=(0,a.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,H(t||r||i,!0)},[H]),W=t8(function(e){if(tG(e))return function(t){return U(t,e)};U(e)}),q=(0,a.useCallback)(function(e){tK(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),$=(0,a.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),K=(0,a.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),Y=t8(function(){return S({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=J(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return b.current&&S({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(S({type:"SUBMIT_FAILURE"}),n))throw e})}),G=t8(function(e){e&&e.preventDefault&&tK(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tK(e.stopPropagation)&&e.stopPropagation(),Y().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),X={resetForm:P,validateForm:A,validateField:N,setErrors:F,setFieldError:V,setFieldTouched:H,setFieldValue:I,setStatus:$,setSubmitting:K,setTouched:L,setValues:z,setFormikState:q,submitForm:Y},J=t8(function(){return f(k.values,X)}),Q=t8(function(e){e&&e.preventDefault&&tK(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tK(e.stopPropagation)&&e.stopPropagation(),P()}),ee=(0,a.useCallback)(function(e){return{value:tJ(k.values,e),error:tJ(k.errors,e),touched:!!tJ(k.touched,e),initialValue:tJ(v.current,e),initialTouched:!!tJ(y.current,e),initialError:tJ(g.current,e)}},[k.errors,k.touched,k.values]),et=(0,a.useCallback)(function(e){return{setValue:function(t,n){return I(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return V(e,t)}}},[I,H,V]),en=(0,a.useCallback)(function(e){var t=tY(e),n=t?e.name:e,r=tJ(k.values,n),i={name:n,value:r,onChange:B,onBlur:W};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[W,B,k.values]),er=(0,a.useMemo)(function(){return!l()(v.current,k.values)},[v.current,k.values]),ei=(0,a.useMemo)(function(){return void 0!==u?er?k.errors&&0===Object.keys(k.errors).length:!1!==u&&tK(u)?u(m):u:k.errors&&0===Object.keys(k.errors).length},[u,er,k.errors,m]);return tU({},k,{initialValues:v.current,initialErrors:g.current,initialTouched:y.current,initialStatus:x.current,handleBlur:W,handleChange:B,handleReset:Q,handleSubmit:G,resetForm:P,setErrors:F,setFormikState:q,setFieldTouched:H,setFieldValue:I,setFieldError:V,setStatus:$,setSubmitting:K,setTouched:L,setValues:z,submitForm:Y,validateForm:A,validateField:N,isValid:ei,dirty:er,unregisterField:D,registerField:R,getFieldProps:en,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:n,validateOnMount:s})}function t5(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?p(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=p(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var t6="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function t8(e){var t=(0,a.useRef)(e);return t6(function(){t.current=e}),(0,a.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(tU({},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,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=tQ(n.values,o,e(tJ(n.values,o))),l=r?i(tJ(n.errors,o)):void 0,u=t?a(tJ(n.touched,o)):void 0;return t$(l)&&(l=void 0),t$(u)&&(u=void 0),tU({},n,{values:s,errors:r?tQ(n.errors,o,l):n.errors,touched:t?tQ(n.touched,o,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nn(t),[tO(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 t9(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 t7(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 ne(n,e,t)},function(t){return ne(t,e,null)},function(t){return ne(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 nt(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(tq(n)),n.pop=n.pop.bind(tq(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&&!l()(tJ(e.formik.values,e.name),tJ(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?nn(n):[];return t||(t=r[e]),tK(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,r=t.render,i=t.children,o=t.name,s=tW(t.formik,["validate","validationSchema"]),l=tU({},e,{form:s,name:o});return n?(0,a.createElement)(n,l):r?r(l):i?"function"==typeof i?i(l):0===a.Children.count(i)?null:a.Children.only(i):null},t})(a.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},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;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 a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v=0;)(u=e(r,i,o,a,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&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(r,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.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 k},Il:function(){return i},J5:function(){return a},SU:function(){return E},Ss:function(){return S},Ym:function(){return A},ZP:function(){return b},xV:function(){return o}});var r=n(40948);function i(){}var o=.7,a=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 x(){return this.rgb().formatRgb()}function b(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 E(e){return(e instanceof i||(e=b(e)),e)?(e=e.rgb(),new S(e.r,e.g,e.b,e.opacity)):new S}function k(e,t,n,r){return 1==arguments.length?E(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 _(){return"#"+O(this.r)+O(this.g)+O(this.b)}function C(){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=b(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,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(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,b,{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:x,toString:x}),(0,r.Z)(S,k,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,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:_,formatHex:_,formatRgb:C,toString:C})),(0,r.Z)(P,A,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,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),o=n(10810),a=4/29,s=6/29,l=3*(6/29)*(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 x(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=s:(t=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.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+a}function p(e){return e>s?e*e*e:l*(e-a)}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],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-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"];o=(i=function(e){var t,n,i,o=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,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=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 x(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,x=e.comma,b=e.precision,w=e.trim,j=e.type;"n"===j?(x=!0,j="g"):d[j]||(void 0===b&&(b=12),w=!0,j="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var E="$"===s?a:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",k="$"===s?u:/[%p]/.test(j)?v:"",S=d[j],_=/[defgprs%]/.test(j);function C(e){var a,s,l,u=E,d=k;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),b),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?")":""),_){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}x&&!f&&(e=o(e,1/0));var C=u.length+e.length+d.length,O=C>1)+u+e+d+O.slice(C);break;default:e=O+u+e+d}return m(e)}return b=void 0===b?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),C.toString=function(){return e+""},C}return{format:x,formatPrefix:function(e,t){var n=x(((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),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=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 o({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 o(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=o.prototype,o.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 o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(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 a=/[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?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var a=l(r,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),n.concat(a)}return n.concat(function(e,n,r){var i,a=[];if("L"===n.type||"Q"===n.type||"C"===n.type)a=a.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),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,r):a.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(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),o=n(10810),a=-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=(a*r+-1.7884503806*t-3.5172982438*n)/(a+-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)*o.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)*o.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(-.29227*r+-.90649*a)),255*(t+n*(1.97294*r)),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),o=(0,u.ZP)(t.s,r.s),a=(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=o(e),t.l=a(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 a}});var r=n(20966),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(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=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(68847),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(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=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(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 x.Z},interpolateTransformCss:function(){return k},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return O},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,o,a,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),x=n(76060),b=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(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=o.skewX)!==(c=a.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,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=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=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=r-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),x=y/g,b=y/v;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+b*l)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);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),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*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=a},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[o],t)?r=o+1:i=o}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,o){null==r&&(r=0),null==o&&(o=e.length);let a=i(e,n,r,o-1);return a>r&&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}}}var o=n(81048);let a=i(r.Z),s=a.right;a.left,i(o.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 o=n(1169);function a(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=o.Z){for(;i>r;){if(i-r>600){let o=i-r+1,a=n-r+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(r,Math.floor(n-a*u/o+c)),f=Math.min(i,Math.floor(n+(o-a)*u/o+c));e(t,n,d,f,s)}let o=t[n],l=r,u=i;for(a(t,r,n),s(t[i],o)>0&&a(t,r,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[r],o)?a(t,r,u):a(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,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var r,i,o,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++lt&&--r,o=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function E(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function k(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 _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function C(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 F(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function z(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function V(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 Z(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 x(e.getDate(),t,2)}function U(e,t){return x(e.getHours(),t,2)}function W(e,t){return x(e.getHours()%12||12,t,2)}function q(e,t){return x(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return x(e.getMilliseconds(),t,3)}function K(e,t){return $(e,t)+"000"}function Y(e,t){return x(e.getMonth()+1,t,2)}function G(e,t){return x(e.getMinutes(),t,2)}function X(e,t){return x(e.getSeconds(),t,2)}function Q(e){var t=e.getDay();return 0===t?7:t}function J(e,t){return x(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),x(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 x(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return x(e.getFullYear()%100,t,2)}function eo(e,t){return x((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return x(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return x((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,"+"))+x(t/60|0,"0",2)+x(t%60,"0",2)}function eu(e,t){return x(e.getUTCDate(),t,2)}function ec(e,t){return x(e.getUTCHours(),t,2)}function ed(e,t){return x(e.getUTCHours()%12||12,t,2)}function ef(e,t){return x(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return x(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return x(e.getUTCMonth()+1,t,2)}function ev(e,t){return x(e.getUTCMinutes(),t,2)}function eg(e,t){return x(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function ex(e,t){return x(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function eb(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=eb(e),x(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function ej(e){return e.getUTCDay()}function eE(e,t){return x(a.l6.count((0,d.Z)(e)-1,e),t,2)}function ek(e,t){return x(e.getUTCFullYear()%100,t,2)}function eS(e,t){return x((e=eb(e)).getUTCFullYear()%100,t,2)}function e_(e,t){return x(e.getUTCFullYear()%1e4,t,4)}function eC(e,t){var n=e.getUTCDay();return x((e=n>=4||0===n?(0,a.hB)(e):a.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,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=j(i),x=w(o),b=j(o),ee=w(c),eb=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 o[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:eo,G:es,H:U,I:W,j:q,L:$,m:Y,M:G,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eT,s:eA,S:X,u:Q,U:J,V:et,w:en,W:er,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eF={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[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:eC,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:ex,V:ew,w:ej,W:eE,x:null,X:null,y:ek,Y:e_,Z:eO,"%":eM},ez={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=eb.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=x.exec(t.slice(n));return r?(e.w=b.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:V,g:M,G:O,H:D,I:D,j:R,L:z,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:F,u:k,U:S,V:_,w:E,W:C,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,"%":Z};function eV(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(r):(0,a.l6)(r),r=s.Z.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eI(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=ez[(i=t.charAt(a++))in m?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return eL.x=eV(n,eL),eL.X=eV(r,eL),eL.c=eV(t,eL),eF.x=eV(n,eF),eF.X=eV(r,eF),eF.c=eV(t,eF),{format:function(e){var t=eV(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=eZ(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=eV(e+="",eF);return t.toString=function(){return e},t},utcParse:function(e){var t=eZ(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,o=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},x:function(){return a}});var r=n(22274),i=n(34130);function o(){var e,t,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=a().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,x}function x(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return x.invert=function(n){return g(t((h||(h=r(m,p.map(e),o.Z)))(n)))},x.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},x.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},x.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},x.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},x.interpolate=function(e){return arguments.length?(v=e,y()):v},x.unknown=function(e){return arguments.length?(n=e,x):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())},x.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,a.Q)(O()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.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())},x.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,o.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,o.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.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)(b()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(b()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.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,k.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,_.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},x.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return E},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(b());return t.copy=function(){return w(t,e()).constant(t.constant())},x.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),o=n(5497),a=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),x=n(22274);function b(){var e,t,n,r,i,o=0,a=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?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},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(o),t=i(a),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)(b());return e.copy=function(){return w(e,j()).exponent(e.exponent())},x.O.apply(e,arguments)}function E(){return j.apply(null,arguments).exponent(.5)}var k=n(98038),S=n(1169),_=n(33907),C=n(87475);function O(){var e,t,n,r,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}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,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),o=n(10070),a=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,a=e(l,u),s=a.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),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.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],a]:[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,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),o=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,a.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,o.Q)(c)}}});var r=n(70552),i=n(22274),o=n(93963),a=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())},o.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),o=n(22274);function a(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(a(1),s(t));return n.constant=function(n){return arguments.length?e(a(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],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,r.ZP)(n,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((n=Array.from(e)).length,o.length-1),s):n.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(n.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.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(o).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),o=n(21032),a=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,o.Z)(d,f))||(u.precision=c),(0,a.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,a.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),o=n(50690),a=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,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),x=u(":%S"),b=u("%I:%M"),w=u("%I %p"),j=u("%a %d"),E=u("%b %d"),k=u("%B"),S=u("%Y");function _(e){return(l(e)A*A+P*P&&(S=C,_=O),{cx:S,cy:_,x01:-d,y01:-f,x11:S*(i/j-1),y11:_*(i/j-1)}}function f(){var e=a,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var x,b,w=u,j=c,E=u,k=c,S=g,_=g,C=m.apply(this,arguments)/2,O=C>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),T=M,A=M;if(O>o.Ho){var P=(0,o.ZR)(O/s*(0,o.O$)(C)),N=(0,o.ZR)(O/l*(0,o.O$)(C));(S-=2*P)>o.Ho?(P*=y?1:-1,E+=P,k-=P):(S=0,E=k=(u+c)/2),(_-=2*N)>o.Ho?(N*=y?1:-1,w+=N,j-=N):(_=0,w=j=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(k),F=s*(0,o.O$)(k);if(M>o.Ho){var z,V=l*(0,o.mC)(j),Z=l*(0,o.O$)(j),I=s*(0,o.mC)(E),B=s*(0,o.O$)(E);if(go.Ho?A>o.Ho?(x=d(I,B,R,D,l,A,y),b=d(V,Z,L,F,l,A,y),v.moveTo(x.cx+x.x01,x.cy+x.y01),Ao.Ho&&S>o.Ho?T>o.Ho?(x=d(L,F,V,Z,s,-T,y),b=d(R,D,I,B,s,-T,y),v.lineTo(x.cx+x.x01,x.cy+x.y01),T=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.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,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*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 o(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),a.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:o(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,o(this,i(this,n=r(this,e,t)),n);break;default:o(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(a.prototype)).point=function(e,t){a.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,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},j:function(){return r}});var r=o(n(20651).Z);function i(e){this._curve=e}function o(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 o(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),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 E},curveBasisClosed:function(){return S},curveBasisOpen:function(){return C},curveBundle:function(){return M},curveCardinal:function(){return T.ZP},curveCardinalClosed:function(){return P},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return z},curveCatmullRomClosed:function(){return Z},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 G.ZP},curveStepAfter:function(){return G.cD},curveStepBefore:function(){return G.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return X.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 eo.Z},stackOrderInsideOut:function(){return ea.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 x.Z},symbols:function(){return f.u}});var r=n(38764),i=n(12235),o=n(79767),a=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,o=e.lineY0,a=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)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},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),x=n(60598);function b(){}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 E(e){return new j(e)}function k(e){this._context=e}function S(e){return new k(e)}function _(e){this._context=e}function C(e){return new _(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}},k.prototype={areaStart:b,areaEnd:b,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}},_.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],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+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:b,areaEnd:b,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,o=e._x2,a=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);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}F.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 z=function e(t){function n(e){return t?new F(e,t):new T.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function V(e,t){this._context=e,this._alpha=t}V.prototype={areaStart:b,areaEnd:b,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 Z=function e(t){function n(e){return t?new V(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:b,areaEnd:b,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),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[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,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=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,o,a=0,s=e[0].length;a1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o0){for(var n,i=0,o=e[t[0]],a=o.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(o);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function o(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 o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(a.BZ),u=(0,r.Z)(0);function c(r){var i,o,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/h,u.apply(this,arguments)),b=x*(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*b)/p:0;i0?f*c:0)+b,v[o]={data:r[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:x};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),o=n(90541),a=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,n=o.Z,l=s;function u(r){var i,o,a=e.apply(this,arguments),s=r.length,u=a.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=o;var a=o.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,u=365*a},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(22179),i=n(1514),o=(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=o;var a=o.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 a.Z},timeMinutes:function(){return a.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 o.Z},timeSeconds:function(){return o.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 o.Z},utcSeconds:function(){return o.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),o=n(52546),a=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,o,a){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 a;do a.push(o=new Date(+e)),n(e,i),t(e);while(o=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););}})},o&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(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 o}});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 o=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(22179),i=n(1514),o=(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=o;var a=o.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 a}});var r=n(22179),i=n(1514),o=(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=o;var a=o.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return _},jK:function(){return S},jo:function(){return k},WG:function(){return E}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>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)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{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}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===o)return l.Z.every(Math.max(a(t,n,r),1));let[u,d]=c[i/c[o-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 o=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return x},Ld:function(){return v},OM:function(){return a},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 o(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 a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,x=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});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 o=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}})},29193:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(66700),i=n(19785);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t),a=n.getTime()-o.getTime();return a<0?-1:a>0?1:a}var a={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=o(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 o,s=function(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}(e,t)/1e3;return((o=null==n?void 0:n.roundingMethod)?a[o]:a.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){var g=Math.round(v/60);return f.formatDistance("aboutXHours",g,p)}if(v<2520)return f.formatDistance("xDays",1,p);if(v<43200){var y=Math.round(v/1440);return f.formatDistance("xDays",y,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,a=(0,r.Z)(e),s=(0,r.Z)(t),l=o(a,s),u=Math.abs(function(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}(a,s));if(u<1)n=0;else{1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-l*u);var c=o(a,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===o(e,s)&&(c=!1),n=l*(u-Number(c))}return 0===n?0:n}(u,n))<12){var x=Math.round(v/43200);return f.formatDistance("xMonths",x,p)}var b=c%12,w=Math.floor(c/12);return b<3?f.formatDistance("aboutXYears",w,p):b<9?f.formatDistance("overXYears",w,p):f.formatDistance("almostXYears",w+1,p)}},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 o(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 a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({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:o({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 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 u(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:a,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],o=e.match(r.parsePattern);if(!o)return null;var a=r.valueCallback?r.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,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}}},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(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},9156:function(e,t,n){"use strict";n.d(t,{TA:function(){return t3}});var r,i,o,a=n(2784),s=n(78435),l=n.n(s),u=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==c},c="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function d(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h(Array.isArray(e)?[]:{},e,t):e}function f(e,t,n){return e.concat(t).map(function(e){return d(e,n)})}function h(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||u;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?d(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=d(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=h(e[n],t[n],r):i[n]=d(t[n],r)}),i)}h.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return h(e,n,t)},{})};var p=h,m=n(98147),v=function(e,t){return function(n){return e(t(n))}},g=v(Object.getPrototypeOf,Object),y=n(43391),x=Object.prototype,b=Function.prototype.toString,w=x.hasOwnProperty,j=b.call(Object),E=function(e){if(!(0,y.Z)(e)||"[object Object]"!=(0,m.Z)(e))return!1;var t=g(e);if(null===t)return!0;var n=w.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&b.call(n)==j},k=function(e,t){return e===t||e!=e&&t!=t},S=function(e,t){for(var n=e.length;n--;)if(k(e[n][0],t))return n;return -1},_=Array.prototype.splice;function C(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},C.prototype.set=function(e,t){var n=this.__data__,r=S(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var O=n(93122),M=function(e){if(!(0,O.Z)(e))return!1;var t=(0,m.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},T=n(93221),A=T.Z["__core-js_shared__"],P=(r=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",N=Function.prototype.toString,R=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""},D=/^\[object .+?Constructor\]$/,L=Object.prototype,F=Function.prototype.toString,z=L.hasOwnProperty,V=RegExp("^"+F.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=function(e,t){var n,r=null==e?void 0:e[t];return(n=r,(0,O.Z)(n)&&(!P||!(P in n))&&(M(n)?V:D).test(R(n)))?r:void 0},I=Z(T.Z,"Map"),B=Z(Object,"create"),H=Object.prototype.hasOwnProperty,U=Object.prototype.hasOwnProperty;function W(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},ev={};ev["[object Float32Array]"]=ev["[object Float64Array]"]=ev["[object Int8Array]"]=ev["[object Int16Array]"]=ev["[object Int32Array]"]=ev["[object Uint8Array]"]=ev["[object Uint8ClampedArray]"]=ev["[object Uint16Array]"]=ev["[object Uint32Array]"]=!0,ev["[object Arguments]"]=ev["[object Array]"]=ev["[object ArrayBuffer]"]=ev["[object Boolean]"]=ev["[object DataView]"]=ev["[object Date]"]=ev["[object Error]"]=ev["[object Function]"]=ev["[object Map]"]=ev["[object Number]"]=ev["[object Object]"]=ev["[object RegExp]"]=ev["[object Set]"]=ev["[object String]"]=ev["[object WeakMap]"]=!1;var eg=function(e){return function(t){return e(t)}},ey=n(92168),ex="object"==typeof exports&&exports&&!exports.nodeType&&exports,eb=ex&&"object"==typeof module&&module&&!module.nodeType&&module,ew=eb&&eb.exports===ex&&ey.Z.process,ej=function(){try{var e=eb&&eb.require&&eb.require("util").types;if(e)return e;return ew&&ew.binding&&ew.binding("util")}catch(e){}}(),eE=ej&&ej.isTypedArray,ek=eE?eg(eE):function(e){return(0,y.Z)(e)&&em(e.length)&&!!ev[(0,m.Z)(e)]},eS=Object.prototype.hasOwnProperty,e_=function(e,t){var n=el(e),r=!n&&es(e),i=!n&&!r&&ef(e),o=!n&&!r&&!i&&ek(e),a=n||r||i||o,s=a?en(e.length,String):[],l=s.length;for(var u in e)(t||eS.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ep(u,l)))&&s.push(u);return s},eC=Object.prototype,eO=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eC)},eM=v(Object.keys,Object),eT=Object.prototype.hasOwnProperty,eA=function(e){if(!eO(e))return eM(e);var t=[];for(var n in Object(e))eT.call(e,n)&&"constructor"!=n&&t.push(n);return t},eP=function(e){return null!=e&&em(e.length)&&!M(e)},eN=function(e){return eP(e)?e_(e):eA(e)},eR=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eD=Object.prototype.hasOwnProperty,eL=function(e){if(!(0,O.Z)(e))return eR(e);var t=eO(e),n=[];for(var r in e)"constructor"==r&&(t||!eD.call(e,r))||n.push(r);return n},eF=function(e){return eP(e)?e_(e,!0):eL(e)},ez="object"==typeof exports&&exports&&!exports.nodeType&&exports,eV=ez&&"object"==typeof module&&module&&!module.nodeType&&module,eZ=eV&&eV.exports===ez?T.Z.Buffer:void 0,eI=eZ?eZ.allocUnsafe:void 0,eB=function(e,t){if(t)return e.slice();var n=e.length,r=eI?eI(n):new e.constructor(n);return e.copy(r),r},eH=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0||(i[n]=e[n]);return i}function tq(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var t$=function(e){return Array.isArray(e)&&0===e.length},tK=function(e){return"function"==typeof e},tY=function(e){return null!==e&&"object"==typeof e},tG=function(e){return"[object String]"===Object.prototype.toString.call(e)},tX=function(e){return tY(e)&&tK(e.then)};function tQ(e,t,n,r){void 0===r&&(r=0);for(var i=tB(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var t0=(0,a.createContext)(void 0);function t1(e,t){switch(t.type){case"SET_VALUES":return tU({},e,{values:t.payload});case"SET_TOUCHED":return tU({},e,{touched:t.payload});case"SET_ERRORS":if(l()(e.errors,t.payload))return e;return tU({},e,{errors:t.payload});case"SET_STATUS":return tU({},e,{status:t.payload});case"SET_ISSUBMITTING":return tU({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tU({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tU({},e,{values:tJ(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tU({},e,{touched:tJ(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tU({},e,{errors:tJ(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tU({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tU({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;tQ(t,a.path)||(t=tJ(t,a.path,a.message))}}return t}(n)):t(n)})})},[m.validationSchema]),O=(0,a.useCallback)(function(e,t){return new Promise(function(n){return n(w.current[e].validate(t))})},[]),M=(0,a.useCallback)(function(e){var t=Object.keys(w.current).filter(function(e){return tK(w.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return O(t,tQ(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=tJ(e,t[r],n)),e},{})})},[O]),T=(0,a.useCallback)(function(e){return Promise.all([M(e),m.validationSchema?C(e):{},m.validate?_(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return p.all([t,n,r],{arrayMerge:t5})})},[m.validate,m.validationSchema,M,_,C]),A=t8(function(e){return void 0===e&&(e=k.values),S({type:"SET_ISVALIDATING",payload:!0}),T(e).then(function(e){return b.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e})});(0,a.useEffect)(function(){s&&!0===b.current&&l()(v.current,m.initialValues)&&A(v.current)},[s,A]);var P=(0,a.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:g.current?g.current:m.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:m.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:m.initialStatus;v.current=t,g.current=n,y.current=r,x.current=i;var o=function(){S({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(m.onReset){var a=m.onReset(k.values,X);tX(a)?a.then(o):o()}else o()},[m.initialErrors,m.initialStatus,m.initialTouched]);(0,a.useEffect)(function(){!0===b.current&&!l()(v.current,m.initialValues)&&(d&&(v.current=m.initialValues,P()),s&&A(v.current))},[d,m.initialValues,P,s,A]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(g.current,m.initialErrors)&&(g.current=m.initialErrors||t2,S({type:"SET_ERRORS",payload:m.initialErrors||t2}))},[d,m.initialErrors]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(y.current,m.initialTouched)&&(y.current=m.initialTouched||t4,S({type:"SET_TOUCHED",payload:m.initialTouched||t4}))},[d,m.initialTouched]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(x.current,m.initialStatus)&&(x.current=m.initialStatus,S({type:"SET_STATUS",payload:m.initialStatus}))},[d,m.initialStatus,m.initialTouched]);var N=t8(function(e){if(w.current[e]&&tK(w.current[e].validate)){var t=tQ(k.values,e),n=w.current[e].validate(t);return tX(n)?(S({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),C(k.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),R=(0,a.useCallback)(function(e,t){var n=t.validate;w.current[e]={validate:n}},[]),D=(0,a.useCallback)(function(e){delete w.current[e]},[]),L=t8(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?A(k.values):Promise.resolve()}),F=(0,a.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),z=t8(function(e,t){var r=tK(e)?e(k.values):e;return S({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()}),V=(0,a.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),Z=t8(function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(tJ(k.values,e,t)):Promise.resolve()}),I=(0,a.useCallback)(function(e,t){var n,r=t,i=e;if(!tG(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(tQ(k.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&Z(r,i)},[Z,k.values]),B=t8(function(e){if(tG(e))return function(t){return I(t,e)};I(e)}),H=t8(function(e,t,n){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?A(k.values):Promise.resolve()}),U=(0,a.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,H(t||r||i,!0)},[H]),W=t8(function(e){if(tG(e))return function(t){return U(t,e)};U(e)}),q=(0,a.useCallback)(function(e){tK(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),$=(0,a.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),K=(0,a.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),Y=t8(function(){return S({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=Q(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return b.current&&S({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(S({type:"SUBMIT_FAILURE"}),n))throw e})}),G=t8(function(e){e&&e.preventDefault&&tK(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tK(e.stopPropagation)&&e.stopPropagation(),Y().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),X={resetForm:P,validateForm:A,validateField:N,setErrors:F,setFieldError:V,setFieldTouched:H,setFieldValue:Z,setStatus:$,setSubmitting:K,setTouched:L,setValues:z,setFormikState:q,submitForm:Y},Q=t8(function(){return f(k.values,X)}),J=t8(function(e){e&&e.preventDefault&&tK(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tK(e.stopPropagation)&&e.stopPropagation(),P()}),ee=(0,a.useCallback)(function(e){return{value:tQ(k.values,e),error:tQ(k.errors,e),touched:!!tQ(k.touched,e),initialValue:tQ(v.current,e),initialTouched:!!tQ(y.current,e),initialError:tQ(g.current,e)}},[k.errors,k.touched,k.values]),et=(0,a.useCallback)(function(e){return{setValue:function(t,n){return Z(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return V(e,t)}}},[Z,H,V]),en=(0,a.useCallback)(function(e){var t=tY(e),n=t?e.name:e,r=tQ(k.values,n),i={name:n,value:r,onChange:B,onBlur:W};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[W,B,k.values]),er=(0,a.useMemo)(function(){return!l()(v.current,k.values)},[v.current,k.values]),ei=(0,a.useMemo)(function(){return void 0!==u?er?k.errors&&0===Object.keys(k.errors).length:!1!==u&&tK(u)?u(m):u:k.errors&&0===Object.keys(k.errors).length},[u,er,k.errors,m]);return tU({},k,{initialValues:v.current,initialErrors:g.current,initialTouched:y.current,initialStatus:x.current,handleBlur:W,handleChange:B,handleReset:J,handleSubmit:G,resetForm:P,setErrors:F,setFormikState:q,setFieldTouched:H,setFieldValue:Z,setFieldError:V,setStatus:$,setSubmitting:K,setTouched:L,setValues:z,submitForm:Y,validateForm:A,validateField:N,isValid:ei,dirty:er,unregisterField:D,registerField:R,getFieldProps:en,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:n,validateOnMount:s})}function t5(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?p(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=p(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var t6="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function t8(e){var t=(0,a.useRef)(e);return t6(function(){t.current=e}),(0,a.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(tU({},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,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=tJ(n.values,o,e(tQ(n.values,o))),l=r?i(tQ(n.errors,o)):void 0,u=t?a(tQ(n.touched,o)):void 0;return t$(l)&&(l=void 0),t$(u)&&(u=void 0),tU({},n,{values:s,errors:r?tJ(n.errors,o,l):n.errors,touched:t?tJ(n.touched,o,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nn(t),[tO(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 t9(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 t7(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 ne(n,e,t)},function(t){return ne(t,e,null)},function(t){return ne(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 nt(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(tq(n)),n.pop=n.pop.bind(tq(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&&!l()(tQ(e.formik.values,e.name),tQ(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?nn(n):[];return t||(t=r[e]),tK(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,r=t.render,i=t.children,o=t.name,s=tW(t.formik,["validate","validationSchema"]),l=tU({},e,{form:s,name:o});return n?(0,a.createElement)(n,l):r?r(l):i?"function"==typeof i?i(l):0===a.Children.count(i)?null:a.Children.only(i):null},t})(a.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},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;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 a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v */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:(h?-1:1)*(1/0);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();++t-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));t:for(;++c0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:function(e,t,n){var r=n(17297),i=n(33812);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var y=-1,x=p[0];t:for(;++yi?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=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new r}else p=t?[]:h;t:for(;++u=i?e:r(e,t,n)}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))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)}},79493: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},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},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))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},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}},66024:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r=t||n<0||v&&r>=c}function b(){var e,n,r,o=i();if(x(o))return w(o);f=setTimeout(b,(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 j(){var e,n=i(),r=x(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,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),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),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,"")}},17335:function(e,t,n){var r=n(85246),i=n(62034),o=n(36060),a=n(93746),s=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,n){e.exports=n(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},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}},3440:function(e,t,n){var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},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}},30898:function(e,t,n){var r=n(50343),i=n(88390),o=n(36060),a=n(5642),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},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)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&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},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},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}},4714:function(e,t,n){var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},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}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(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}},43679:function(e,t,n){var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},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)}},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},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},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},65680:function(e,t,n){var r=n(2229),i=n(17606),o=n(23059);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(29097),c=n(76939),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},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},829:function(e,t,n){var r=n(62034),i=n(23813),o=n(36060),a=n(82406),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,n){var r=n(36473),i=n(89419),o=n(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=r(s,t);++n"+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:x})=>{let[b,w]=(0,r.useState)(()=>p(l,c)),[j,E]=(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()},[]),_=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),C=(0,r.useCallback)(t=>{let r=v(t);E(r),"system"===b&&n&&!e&&S("system")},[b,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(C),C(e),()=>e.removeListener(C)},[C]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&_(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[_]),(0,r.useEffect)(()=>{S(null!=e?e:b)},[e,b]);let O=(0,r.useMemo)(()=>({theme:b,setTheme:_,forcedTheme:e,resolvedTheme:"system"===b?j:b,themes:n?[...u,"system"]:u,systemTheme:n?j:void 0}),[b,_,e,j,n,u]);return r.createElement(s.Provider,{value:O},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:x}),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")},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(48201)}])},4941: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(80446),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)},82459:function(e,t,n){"use strict";n.d(t,{F:function(){return g}});var r=n(52322),i=n(80446),o=n(88242),a=n(9969),s=n(71930),l=n(5632),u=n(13242),c=n(19513),d=n(33571),f=n(98358),h=n(31781),p=n(24801),m=n(86450),v=n(2784);function g(e){var t,n;let{id:g,address:y,publicKey:x,contentProps:b,buttonProps:w}=e,j=(0,l.useRouter)(),{setFilter:E,resetFilters:k}=(0,c.l)(),{setFilter:S,resetFilters:_}=(0,u.G)(),C=(0,a.uf)(),O=(0,a.s2)(),M=(0,f.l)(),T=(0,d.I)(),A=function(){let{openConfirmDialog:e}=(0,m.Rh)(),t=(0,a.IK)();return(0,v.useCallback)(n=>e({title:"Delete contract",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.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)("Error deleting contract."),(0,i.OPV)("Successfully deleted contract.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...w,children:(0,r.jsx)(o.iG7,{})}),contentProps:{align:"start",...b,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:["Contract ",x.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{k(),E({id:"addressContains",value:y,label:"Address contains ".concat(y)}),j.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{_(),S((0,h.e)(y)),j.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{_(),S((0,p.V)(x)),j.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(null===(t=C.data)||void 0===t?void 0:t.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{onSelect:()=>M([],[y]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove host address from blocklist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>M([y],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add host address to blocklist"]}),(null===(n=O.data)||void 0===n?void 0:n.find(e=>e===x))?(0,r.jsxs)(i.Xiv,{onSelect:()=>T([],[x]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove host public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>T([x],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add host public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>A(g),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.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)(o.olJ,{})}),"Contract ID"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(x,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(y,"host address"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host address"]})]})}},93216:function(e,t,n){"use strict";n.d(t,{F:function(){return M}});var r=n(52322),i=n(80446),o=n(4941);let a={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)(o.WD,{currentPage:t,commandPage:a,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(),n=t-(0,i.NrH)(1);return e.startTime>=n}},{id:"formationDate",value:"week",label:"formed in the last week",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(1);return e.startTime>=n}},{id:"formationDate",value:"twoWeeks",label:"formed in the last two weeks",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(2);return e.startTime>=n}},{id:"formationDate",value:"month",label:"formed in the last month",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(1);return e.startTime>=n}},{id:"formationDate",value:"twoMonths",label:"formed in the last two months",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(2);return e.startTime>=n}},{id:"formationDate",value:"year",label:"formed in the last year",fn:e=>{let t=new Date().getTime(),n=t-(0,i.ivg)(1);return e.startTime>=n}}];function d(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(o.fu,{currentPage:t,commandPage:u,children:c.map(e=>(0,r.jsx)(o.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(),n=t-(0,i.NrH)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"week",label:"renewed in the last week",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"twoWeeks",label:"renewed in the last two weeks",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(2);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"month",label:"renewed in the last month",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"twoMonths",label:"renewed in the last two months",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(2);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"year",label:"renewed in the last year",fn:e=>{let t=new Date().getTime(),n=t-(0,i.ivg)(1);return e.isRenewed&&e.startTime>=n}}];function p(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(o.fu,{currentPage:t,commandPage:f,children:h.map(e=>(0,r.jsx)(o.WD,{currentPage:t,commandPage:f,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}var m=n(86450),v=n(31781);let g={namespace:"contracts/filterAddress",label:"Contracts filter by address"};function y(e){let{select:t,currentPage:n}=e,{openDialog:i}=(0,m.Rh)(),a=(0,v.e)("");return(0,r.jsx)(o.fu,{currentPage:n,commandPage:g,children:(0,r.jsx)(o.WD,{currentPage:n,commandPage:g,onSelect:()=>{t(),i("contractsFilterAddress")},children:a.label})})}function x(e){let{select:t,currentPage:n,parentPage:i,commandPage:a}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(o.Ul,{currentPage:n,parentPage:i,commandPage:a,onSelect:()=>{t(),s("contractsFilterAddress")},children:g.label})}var b=n(24801);let w={namespace:"contracts/filterPublicKey",label:"Contracts filter by public key"};function j(e){let{select:t,currentPage:n}=e,i=(0,b.V)(""),{openDialog:a}=(0,m.Rh)();return(0,r.jsx)(o.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(o.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),a("contractsFilterPublicKey")},children:i.label})})}function E(e){let{select:t,currentPage:n,parentPage:i,commandPage:a}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(o.Ul,{currentPage:n,parentPage:i,commandPage:a,onSelect:()=>{t(),s("contractsFilterPublicKey")},children:w.label})}function k(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)(l,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n}),(0,r.jsx)(p,{currentPage:t,select:n})]})}let S={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{currentPage:t,parentPage:n,commandPage:S,select:s}),(0,r.jsx)(E,{currentPage:t,parentPage:n,commandPage:S,select:s}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(u)},children:u.label}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(a)},children:a.label}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(f)},children:f.label})]})}var C=n(13242),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,C.G)(),l=(0,O.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(k,{currentPage:t,select:l})]})}},31781:function(e,t,n){"use strict";n.d(t,{e:function(){return u},p:function(){return f}});var r=n(52322),i=n(80446),o=n(13242),a=n(9156),s=n(24511),l=n(86450);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,o.G)(),p=(0,a.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"})]})})})}},24801:function(e,t,n){"use strict";n.d(t,{C:function(){return f},V:function(){return u}});var r=n(52322),i=n(80446),o=n(13242),a=n(9156),s=n(24511),l=n(86450);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,o.G)(),p=(0,a.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"})]})})})}},4370:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(13242),i=n(34658);function o(){var e;let t=(0,i.w)(),{datasetConfirmedCount:n,isLoading:o}=(0,r.G)(),a=t.data&&!o&&n{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:["Host ",g.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w({id:"addressContains",value:v,label:"Address contains ".concat((0,i.$Gg)(v,20))}),b.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w((0,m.K)(g)),b.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{k(),E((0,h.e)(v)),b.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{k(),E((0,p.V)(g)),b.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>M.post({payload:{hostKey:g,hostIP:v,timeout:(0,i.XBW)(30)}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o._Eq,{})}),"Rescan host"]}),(null===(t=S.data)||void 0===t?void 0:t.find(e=>e===v))?(0,r.jsxs)(i.Xiv,{onSelect:()=>C([],[v]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove address from blocklist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>C([v],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add address to blocklist"]}),(null===(n=_.data)||void 0===n?void 0:n.find(e=>e===g))?(0,r.jsxs)(i.Xiv,{onSelect:()=>O([],[g]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>O([g],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add public key to allowlist"]})]})}},34444:function(e,t,n){"use strict";n.d(t,{T:function(){return j},N:function(){return w}});var r=n(52322),i=n(2784),o=n(80446),a=n(96206),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.xf5)(1)).times((0,o.S5V)(1)).div(1e24).times((null==n?void 0:n.usd)||1).toFixed(2),"/TB"):"".concat((0,a.Vz)(new(l())(t.settings.storageprice).times((0,o.xf5)(1)).times((0,o.S5V)(1)),{fixed:0}),"/TB"),i="".concat((0,a.vW)(t.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).toNumber())," utilized"),s="".concat((0,a.vW)(t.settings.remainingstorage)," / ").concat((0,a.vW)(t.settings.totalstorage)," available");return"".concat((0,o.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}),o=(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",o),h(()=>{o()},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]),[t,n]},d=function(e,t,n,r){let o=(0,i.useRef)(t);h(()=>{o.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 a=e=>o.current(e);return i.addEventListener(e,a,r),()=>{i.removeEventListener(e,a,r)}},[e,n,r])};let f="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;var h=f,p=n(2850),m=n(25237),v=n.n(m);let g=v()(()=>Promise.all([n.e(546),n.e(508),n.e(167),n.e(764),n.e(17)]).then(n.bind(n,45017)),{loadableGenerated:{webpack:()=>[45017]},ssr:!1}),y=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(g,{...e,forwardRef:t})});var x=n(10917),b=n(47025);let w={moveToLocation:(e,t)=>null};function j(e){let{activeHost:t,hosts:n,onMount:o,onHostClick:a,onHostHover:s}=e,d=(0,b.BW)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,i.useRef)(null),h=(0,i.useRef)(w),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)(()=>{h.current.moveToLocation=m},[m]),(0,p.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)(()=>{o&&o(h.current)},[]);let[v,{height:g,width:j}]=c(),E=(0,i.useMemo)(()=>n||[],[n]);return(0,r.jsx)("div",{ref:v,className:"w-full h-full",children:(0,r.jsx)(y,{ref:f,width:j,height:g,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:E,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,x.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==a||a(e.publicKey,e.location))},pointsMerge:!1})})}},18006:function(e,t,n){"use strict";n.d(t,{L:function(){return M}});var r=n(52322),i=n(4941),o=n(86450),a=n(2320);let s={namespace:"hosts/filterAddress",label:"Hosts filter by address"};function l(e){let{select:t,currentPage:n}=e,{openDialog:l}=(0,o.Rh)(),u=(0,a.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:a,commandPage:l}=e,{openDialog:u}=(0,o.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:a,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 x=n(91641),b=n(54155);let w={namespace:"hosts/filterPublicKey",label:"Hosts filter by public key"};function j(e){let{select:t,currentPage:n}=e,{openDialog:a}=(0,o.Rh)(),s=(0,b.K)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),a("hostsFilterPublicKey")},children:s.label})})}function E(e){let{select:t,currentPage:n,parentPage:a,commandPage:s}=e,{openDialog:l}=(0,o.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:a,commandPage:s,onSelect:()=>{t(),l("hostsFilterPublicKey")},children:w.label})}function k(e){let{currentPage:t,select:n}=e,{autopilot:i}=(0,x.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 _(e){let{currentPage:t,parentPage:n,pushPage:o,select:a}=e,{autopilot:s}=(0,x.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===s.status&&(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(v)},children:v.label}),(0,r.jsx)(E,{currentPage:t,parentPage:n,commandPage:S,select:a}),(0,r.jsx)(u,{currentPage:t,parentPage:n,commandPage:S,select:a}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(h)},children:h.label}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(c)},children:c.label})]})}var C=n(19513),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,C.l)(),l=(0,O.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(k,{currentPage:t,pushPage:i,select:l})]})}},2320:function(e,t,n){"use strict";n.d(t,{g:function(){return f},q:function(){return u}});var r=n(52322),i=n(80446),o=n(19513),a=n(9156),s=n(24511),l=n(86450);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,o.l)(),p=(0,a.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"})]})})})}},54155:function(e,t,n){"use strict";n.d(t,{K:function(){return u},a:function(){return f}});var r=n(52322),i=n(80446),o=n(19513),a=n(9156),s=n(24511),l=n(86450);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,o.l)(),p=(0,a.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"})]})})})}},71930:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(9969);let i={home:"/",files:{index:"/files"},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"},node:{index:"/node"},login:"/login"},o=r.HI},91641:function(e,t,n){"use strict";n.d(t,{w:function(){return u},q:function(){return l}});var r=n(52322),i=n(2784),o=n(80446),a=n(9969);let s=(0,i.createContext)({}),l=()=>(0,i.useContext)(s);function u(e){let{children:t}=e,n=function(){let e=function(){let e=(0,a.YX)({config:{swr:{dedupingInterval:(0,o.XBW)(5),revalidateOnFocus:!1,refreshInterval:e=>e?(0,o.XBW)(60):(0,o.XBW)(1)}}}),[t,n]=(0,i.useState)("init");return(0,i.useEffect)(()=>{if(e.isLoading)n("init");else if(e.isValidating)return;else if(e.error)n("off");else if(e.data){let t="object"==typeof e.data;n(t?"on":"off")}},[e]),{status:t,state:e}}();return{autopilot:e}}();return(0,r.jsx)(s.Provider,{value:n,children:t})}},17286:function(e,t,n){"use strict";n.d(t,{iV:function(){return V},ZR:function(){return z}});var r=n(52322),i=n(2784),o=n(80446),a=n(6391),s=n.n(a),l=n(9969),u=n(96206);let c={autopilotContractSet:"",amountHosts:void 0,allowanceMonth:void 0,periodWeeks:void 0,renewWindowWeeks:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,storageTB:void 0,allowRedundantIPs:!1,maxDowntimeHours:void 0,minRecentScanFailures:void 0,defragThreshold:void 0},d={defaultContractSet:""},f={uploadPackingEnabled:!0},h={includeRedundancyMaxStoragePrice:!0,includeRedundancyMaxUploadPrice:!0},p={maxRpcPriceMillion:void 0,maxStoragePriceTBMonth:void 0,maxContractPrice:void 0,maxDownloadPriceTB:void 0,maxUploadPriceTB:void 0,minMaxCollateral:void 0,hostBlockHeightLeeway:void 0,minPriceTableValidityMinutes:void 0,minAccountExpiryDays:void 0,minMaxEphemeralAccountBalance:void 0},m={minShards:void 0,totalShards:void 0},v={...c,...d,...f,...p,...m,...h},g={...c,downloadTBMonth:new(s())(1),uploadTBMonth:new(s())(1),periodWeeks:new(s())(6),renewWindowWeeks:new(s())(2),amountHosts:new(s())(50),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(s())(336),minRecentScanFailures:new(s())(10),defragThreshold:new(s())(1e3)},y={...d,defaultContractSet:"autopilot"};({...f});let x={...p};function b(e){let{isAutopilotEnabled:t,showAdvanced:n,redundancyMultiplier:i,includeRedundancyMaxStoragePrice:a,includeRedundancyMaxUploadPrice:l,storageAverage:u,uploadAverage:c,downloadAverage:d,contractAverage:f}=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||!n,validation:t&&n?{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||!n,validation:t&&n?{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||!n,validation:t&&n?{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:g.periodWeeks,suggestionTip:"Typically ".concat(g.periodWeeks," weeks."),hidden:!t||!n,validation:t&&n?{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:g.renewWindowWeeks,suggestionTip:"Typically ".concat(g.renewWindowWeeks," weeks."),hidden:!t||!n,validation:t&&n?{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:g.amountHosts,suggestionTip:"Typically ".concat(g.amountHosts," hosts."),hidden:!t||!n,validation:t&&n?{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:g.autopilotContractSet,suggestion:g.autopilotContractSet,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default contract set is"," ",(0,r.jsx)(o.EKh,{children:g.autopilotContractSet}),"."]}),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},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:g.allowRedundantIPs,suggestionTip:"Defaults to ".concat(g.allowRedundantIPs?"on":"off","."),hidden:!t||!n,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:g.maxDowntimeHours,suggestionTip:"Defaults to ".concat(g.maxDowntimeHours.toNumber().toLocaleString()," which is ").concat((0,o.y70)(new(s())((0,o.XAn)(g.maxDowntimeHours.toNumber())),1)," days."),hidden:!t||!n,validation:t&&n?{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:g.minRecentScanFailures,suggestionTip:"Defaults to ".concat(g.minRecentScanFailures.toNumber(),"."),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},defragThreshold:{type:"number",category:"wallet",title:"Defrag threshold",description:(0,r.jsx)(r.Fragment,{children:"The threshold after which autopilot will defrag wallet outputs."}),units:"outputs",suggestion:g.defragThreshold,suggestionTip:"Defaults to 1,000.",hidden:!t||!n,validation:t&&n?{required:"required"}:{}},defaultContractSet:{category:"contractset",type:"text",title:"Default contract set",placeholder:y.defaultContractSet,suggestion:y.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:!n,validation:n?{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:!n,validation:{}},maxStoragePriceTBMonth:{category:"gouging",type:"siacoin",title:"Max storage price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to store 1 TB per month."}),units:"SC/TB/month",average:u,averageTip:w(a,i),after:function(e){let{form:t,fields:n}=e;return(0,r.jsx)(o.ua7,{align:"start",side:"bottom",content:j(a,i),children:(0,r.jsx)("div",{children:(0,r.jsx)(o.QBj,{size:"small",form:t,fields:n,name:"includeRedundancyMaxStoragePrice",group:!1,children:(0,r.jsxs)(o.xvT,{size:"12",weight:"medium",children:["Including ",i.toFixed(1),"x redundancy"]})})})})},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 to upload 1 TB."}),units:"SC/TB/month",average:c,averageTip:w(l,i),after:function(e){let{form:t,fields:n}=e;return(0,r.jsx)(o.ua7,{align:"start",side:"bottom",content:j(l,i),children:(0,r.jsx)("div",{children:(0,r.jsx)(o.QBj,{size:"small",form:t,fields:n,name:"includeRedundancyMaxUploadPrice",group:!1,children:(0,r.jsxs)(o.xvT,{size:"12",weight:"medium",children:["Including ",i.toFixed(1),"x redundancy"]})})})})},decimalsLimitSc:6,hidden:!n,validation:n?{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/month",average:d,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,hidden:!n,validation:n?{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:f,decimalsLimitSc:6,tipsDecimalsLimitSc:3,hidden:!n,validation:n?{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:!n,validation:n?{required:"required"}:{}},minMaxCollateral:{category:"gouging",type:"siacoin",title:"Min max collateral",description:(0,r.jsx)(r.Fragment,{children:"The min value for max collateral in the host's price settings."}),decimalsLimitSc:6,hidden:!n,validation:n?{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:x.hostBlockHeightLeeway,suggestionTip:"The recommended value is 6 blocks.",hidden:!n,validation:n?{required:"required",validate:{min:e=>new(s())(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:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gte((0,o.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:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gte((0,o.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:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gte(1)||"must be at least 1 SC"}}:{}},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."}),units:"shards",hidden:!n,validation:n?{required:"required",validate:{min:e=>new(s())(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."}),units:"shards",hidden:!n,validation:n?{required:"required",validate:{gteMinShards:(e,t)=>new(s())(e).gte(t.minShards)||"must be at least equal to min shards",max:e=>new(s())(e).lt(256)||"must be less than 256"}}:{}},includeRedundancyMaxStoragePrice:{type:"boolean",title:"Include redundancy",validation:{}},includeRedundancyMaxUploadPrice:{type:"boolean",title:"Include redundancy",validation:{}}}}function w(e,t){return e?"The average price is adjusted for ".concat(t.toFixed(1),"x redundancy. Averages provided by Sia Central."):"The average price is not adjusted for redundancy. Averages provided by Sia Central."}function j(e,t){return e?(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)(o.xvT,{color:"subtle",children:["Specified max price includes the cost of"," ",t.toFixed(1),"x redundancy."]}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["Redundancy is calculated from the ratio of data shards:"," ",(0,r.jsx)(o.EKh,{children:"min shards / total shards"}),"."]})]}):"Specified max price does not include redundancy."}({...m});let E=e=>Object.fromEntries(Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n&&""!==n}));function k(e,t){let n=e.defaultContractSet||(null==t?void 0:t.default)||y.defaultContractSet;return{...t,default:n}}function S(e,t){let n=new(s())(1),r=e&&t&&!e.isZero()&&!t.isZero()&&t.gte(e);return r&&(n=t.div(e)),n}function _(e,t,n){let r=S(e,t);return n?r:new(s())(1)}function C(e,t){let n=(0,o.mvJ)(t.toNumber());return e.times(n).div((0,o.S5V)(1))}function O(e,t){let n=e.div(t);return n.times((0,o.S5V)(1))}var M=n(63955),T=n(92762),A=n(80489),P=n(2850);let N="v0-config-display-options";var R=n(34658),D=n(47025),L=n(91641);let F=(0,i.createContext)({}),z=()=>(0,i.useContext)(F);function V(e){let{children:t}=e,n=function(){var e,t,n;let a=(0,L.q)(),f="on"===a.autopilot.status,p=(0,l.e$)({disabled:!f,standalone:"configFormAutopilot",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}}),m=(0,A.a)({standalone:"configFormContractSet",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}}),y=(e={standalone:"configFormConfigApp",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...e,params:{key:N}})),x=(t={standalone:"configFormGouging",config:{swr:{refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...t,params:{key:"gouging"}})),w=(0,R.w)({standalone:"configFormRedundancy",config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),j=(n={standalone:"configFormUploadPacking",config:{swr:{refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...n,params:{key:"uploadpacking"}})),F=(0,l.KJ)(),z=(0,D.BF)({config:{swr:{revalidateOnFocus:!1}}}),[V,I]=(0,T.Z)("v0/config/showAdvanced",{defaultValue:!1}),{shouldSyncDefaultContractSet:Z,setShouldSyncDefaultContractSet:B,syncDefaultContractSet:H}=function(){let[e,t]=(0,T.Z)("v0/autopilot/syncDefaultContractSet",{defaultValue:!0}),n=(0,A.a)({config:{swr:{errorRetryCount:0}}}),a=(0,l.KJ)(),s=(0,i.useCallback)(async t=>{let i=n.data||{default:""};try{e&&t!==i.default&&(await a.put({params:{key:"contractset"},payload:k({defaultContractSet:t},n.data)}),n.mutate(),(0,o.OPV)((0,r.jsxs)(o.xvT,{children:["Default contract set has been updated to:"," ",(0,r.jsx)(o.EKh,{children:t}),"."]})))}catch(e){(0,o.OHV)(e.message),console.log(e)}},[n.data,a,e]);return{shouldSyncDefaultContractSet:e,setShouldSyncDefaultContractSet:t,syncDefaultContractSet:s}}(),U=(0,l.oe)(),W=(0,M.cI)({mode:"all",defaultValues:v}),q=(0,i.useCallback)((e,t,n,r,i,a)=>{let l=function(e,t,n,r,i,a){let l=a?{includeRedundancyMaxStoragePrice:a.includeRedundancyMaxStoragePrice,includeRedundancyMaxUploadPrice:a.includeRedundancyMaxUploadPrice}:h,f={minShards:new(s())(i.minShards),totalShards:new(s())(i.totalShards)};return{...function(e){if(!e)return c;let t=e.contracts.set,n=(0,u.ll)(O(new(s())(e.contracts.allowance),e.contracts.period),6),r=new(s())(e.contracts.amount),i=new(s())((0,o.x5w)(e.contracts.period)),a=new(s())((0,o.x5w)(e.contracts.renewWindow)),l=new(s())((0,o.y70)(O((0,o.JWi)(e.contracts.download),e.contracts.period),2)),d=new(s())((0,o.y70)(O((0,o.JWi)(e.contracts.upload),e.contracts.period),2)),f=(0,o.JWi)(new(s())(e.contracts.storage));return{autopilotContractSet:t,allowanceMonth:n,amountHosts:r,periodWeeks:i,renewWindowWeeks:a,downloadTBMonth:l,uploadTBMonth:d,storageTB:f,allowRedundantIPs:e.hosts.allowRedundantIPs,maxDowntimeHours:new(s())(e.hosts.maxDowntimeHours),minRecentScanFailures:new(s())(e.hosts.minRecentScanFailures),defragThreshold:new(s())(e.wallet.defragThreshold)}}(e),...t?{defaultContractSet:t.default}:d,uploadPackingEnabled:n.enabled,maxStoragePriceTBMonth:(0,u.ll)(new(s())(r.maxStoragePrice).times((0,o.S5V)(1)).times((0,o.xf5)(1)).times(_(f.minShards,f.totalShards,l.includeRedundancyMaxStoragePrice)),6),maxUploadPriceTB:(0,u.ll)(new(s())(r.maxUploadPrice).times(_(f.minShards,f.totalShards,l.includeRedundancyMaxUploadPrice)),6),maxDownloadPriceTB:(0,u.ll)(r.maxDownloadPrice,6),maxContractPrice:(0,u.ll)(r.maxContractPrice,6),maxRpcPriceMillion:(0,u.ll)(r.maxRPCPrice,6).times(1e6),minMaxCollateral:(0,u.ll)(r.minMaxCollateral,6),hostBlockHeightLeeway:new(s())(r.hostBlockHeightLeeway),minPriceTableValidityMinutes:new(s())((0,o.AEA)(r.minPriceTableValidity)),minAccountExpiryDays:new(s())((0,o.okB)(r.minAccountExpiry)),minMaxEphemeralAccountBalance:(0,u.ll)(r.minMaxEphemeralAccountBalance,6),...f,...l}}(e,t,n,r,i,a);return W.reset(l),l},[W]),$=(0,i.useMemo)(()=>[p.data,p.error,m.data,m.error,j.data,x.data,w.data,y.data,y.error],[p.data,p.error,m.data,m.error,j.data,x.data,w.data,y.data,y.error]),K=(0,i.useCallback)(()=>(!f||p.data||p.error)&&x.data&&w.data&&j.data&&(m.data||m.error)&&(y.data||y.error)?q(p.data,m.data,j.data,x.data,w.data,y.data):null,[f,q,p.data,p.error,m.data,m.error,j.data,x.data,w.data,y.data,y.error]),[Y,G]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if("init"!==a.autopilot.status&&!Y){let e=K();e&&G(!0)}},[Y,a.autopilot.status,K]);let X=(0,i.useCallback)(async()=>{let e=f?await p.mutate():void 0,t=await m.mutate(),n=await x.mutate(),r=await w.mutate(),i=await j.mutate(),a=await y.mutate();n&&r?q(e,t,i,n,r,a):(0,o.OHV)("Error fetching settings.")},[f,p,m,x,j,w,y,q]),J=W.watch("maxStoragePriceTBMonth"),Q=W.watch("maxDownloadPriceTB"),ee=W.watch("maxUploadPriceTB"),et=W.watch("storageTB"),en=W.watch("downloadTBMonth"),er=W.watch("uploadTBMonth"),ei=W.watch("minShards"),eo=W.watch("totalShards"),ea=W.watch("includeRedundancyMaxStoragePrice"),es=W.watch("includeRedundancyMaxUploadPrice"),el=(0,i.useMemo)(()=>S(ei,eo),[ei,eo]),eu=(0,i.useMemo)(()=>z.data?b({isAutopilotEnabled:f,showAdvanced:V,redundancyMultiplier:el,includeRedundancyMaxStoragePrice:ea,includeRedundancyMaxUploadPrice:es,storageAverage:(0,u.ll)(z.data.settings.storage_price).times((0,o.S5V)(1)).times((0,o.xf5)(1)).times(_(ei,eo,ea)),uploadAverage:(0,u.ll)(z.data.settings.upload_price).times((0,o.xf5)(1)).times(_(ei,eo,es)),downloadAverage:(0,u.ll)(z.data.settings.download_price).times((0,o.xf5)(1)),contractAverage:(0,u.ll)(z.data.settings.contract_price)}):b({isAutopilotEnabled:f,showAdvanced:V,redundancyMultiplier:el,includeRedundancyMaxStoragePrice:ea,includeRedundancyMaxUploadPrice:es}),[f,V,z.data,el,ei,eo,ea,es]),ec=(0,i.useMemo)(()=>!!f&&(null==J?void 0:J.gt(0))&&(null==et?void 0:et.gt(0))&&(null==Q?void 0:Q.gt(0))&&(null==ee?void 0:ee.gt(0)),[f,J,et,Q,ee]),ed=(0,i.useMemo)(()=>{if(!ec)return new(s())(0);let e=(null==en?void 0:en.gt(0))?en:1,t=(null==er?void 0:er.gt(0))?er:1,n=ea?J.times(et):J.times(el).times(et),r=Q.times(e),i=es?ee.times(t):ee.times(el).times(t),o=n.plus(r).plus(i);return o},[ec,ea,es,el,J,et,Q,en,ee,er]),ef=(0,i.useMemo)(()=>{if(!ec)return new(s())(0);let e=ed.div(et);return e},[ec,ed,et]),eh=(0,l.Bl)(),ep=(0,P.Tu)(),em=(0,i.useCallback)(async e=>{if(x.data&&w.data)try{let t={};f&&!V&&(t.allowanceMonth=ed);let n={...e,...t},r=f&&!p.data,i=f?await U.put({payload:function(e,t){let n={...g,...E(e)};return{...t,contracts:{...null==t?void 0:t.contracts,set:n.autopilotContractSet,amount:Math.round(n.amountHosts.toNumber()),allowance:(0,u.qN)(C(n.allowanceMonth,n.periodWeeks)).toString(),period:Math.round((0,o.mvJ)(n.periodWeeks.toNumber())),renewWindow:Math.round((0,o.mvJ)(n.renewWindowWeeks.toNumber())),download:Number(C((0,o.xf5)(n.downloadTBMonth),n.periodWeeks).toFixed(0)),upload:Number(C((0,o.xf5)(n.uploadTBMonth),n.periodWeeks).toFixed(0)),storage:(0,o.xf5)(n.storageTB).toNumber()},hosts:{...null==t?void 0:t.hosts,maxDowntimeHours:n.maxDowntimeHours.toNumber(),minRecentScanFailures:n.minRecentScanFailures.toNumber(),allowRedundantIPs:n.allowRedundantIPs,scoreOverrides:(null==t?void 0:t.hosts.scoreOverrides)||null},wallet:{...null==t?void 0:t.wallet,defragThreshold:n.defragThreshold.toNumber()}}}(n,p.data)}):void 0,[a,s,c,d,h]=await Promise.all([F.put({params:{key:"contractset"},payload:k(n,m.data)}),F.put({params:{key:"uploadpacking"},payload:{...j.data,enabled:n.uploadPackingEnabled}}),F.put({params:{key:"gouging"},payload:{...x.data,maxRPCPrice:(0,u.qN)(n.maxRpcPriceMillion.div(1e6)).toString(),maxStoragePrice:(0,u.qN)(n.maxStoragePriceTBMonth.div((0,o.S5V)(1)).div((0,o.xf5)(1)).div(_(n.minShards,n.totalShards,n.includeRedundancyMaxStoragePrice))).toString(),maxUploadPrice:(0,u.qN)(n.maxUploadPriceTB.div(_(n.minShards,n.totalShards,n.includeRedundancyMaxUploadPrice))).toString(),maxDownloadPrice:(0,u.qN)(n.maxDownloadPriceTB).toString(),maxContractPrice:(0,u.qN)(n.maxContractPrice).toString(),minMaxCollateral:(0,u.qN)(n.minMaxCollateral).toString(),hostBlockHeightLeeway:Math.round(n.hostBlockHeightLeeway.toNumber()),minPriceTableValidity:Math.round((0,o.ort)(n.minPriceTableValidityMinutes.toNumber())),minAccountExpiry:Math.round((0,o.k9c)(n.minAccountExpiryDays.toNumber())),minMaxEphemeralAccountBalance:(0,u.qN)(n.minMaxEphemeralAccountBalance).toString()}}),F.put({params:{key:"redundancy"},payload:{...w.data,minShards:n.minShards.toNumber(),totalShards:n.totalShards.toNumber()}}),F.put({params:{key:N},payload:{...y.data,includeRedundancyMaxStoragePrice:n.includeRedundancyMaxStoragePrice,includeRedundancyMaxUploadPrice:n.includeRedundancyMaxUploadPrice}})]);if(null==i?void 0:i.error)throw Error(i.error);if(a.error)throw Error(a.error);if(s.error)throw Error(s.error);if(c.error)throw Error(c.error);if(d.error)throw Error(d.error);if(h.error)throw Error(h.error);if(f&&(H(n.autopilotContractSet),eh.post({payload:{forceScan:!0}})),(0,o.OPV)("Configuration has been saved."),r){let e=async()=>{await (0,P.gw)(5e3),ep(e=>e.startsWith(l.pz)),await (0,P.gw)(5e3),ep(e=>e.startsWith(l.pz))};e()}await X()}catch(e){(0,o.OHV)(e.message),console.log(e)}},[ed,V,f,p,U,X,H,ep,F,m,j,w,x,y,eh]),ev=(0,o.WsO)(eu),eg=(0,i.useMemo)(()=>W.handleSubmit(em,ev),[W,em,ev]),ey=(0,i.useCallback)(()=>{let e=W.getValues(),t=K();if(t)for(let[n,r]of(W.reset(t),Object.entries(e)))W.setValue(n,r,{shouldDirty:!0})},[W,K]),{isUnlocked:ex}=(0,P.Hv)();(0,i.useEffect)(()=>{ex&&"init"!==a.autopilot.status&&X()},[ex,a.autopilot.status]),(0,i.useEffect)(()=>{W.formState.isSubmitting||ey()},[W,V,$]);let eb=Object.entries(W.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length;return{onSubmit:eg,revalidateAndResetFormData:X,form:W,fields:eu,changeCount:eb,canEstimate:ec,estimatedSpendingPerMonth:ed,estimatedSpendingPerTB:ef,redundancyMultiplier:el,storageTB:et,shouldSyncDefaultContractSet:Z,setShouldSyncDefaultContractSet:B,showAdvanced:V,setShowAdvanced:I}}();return(0,r.jsx)(F.Provider,{value:n,children:t})}},13242:function(e,t,n){"use strict";n.d(t,{x:function(){return x},G:function(){return y}});var r=n(52322),i=n(80446),o=n(5632),a=n(9969),s=n(2784),l=n(6391),u=n.n(l),c=n(56860),d=n(88242),f=n(96206),h=n(82459);let p=[{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,address:n,publicKey:i})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{id:t,isRenewed:n,renewedFrom: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),label:"contract ID"}),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",value:(0,i.I13)(o),label:"contract ID"})]})})]})}},{id:"hostIp",label:"host address",category:"general",render:e=>{let{data:{hostIp:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,type:"ip",label:"host address"})}},{id:"hostKey",label:"host public key",category:"general",render:e=>{let{data:{hostKey:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,label:"host public key"})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:{contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:o,proofWindowHeightEnd:a,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:o,proofWindowHeightEnd:a,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.YKL,{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.YKL,{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.YKL,{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.YKL,{size:"12",value:t.negated()})}}];var m=n(47025),v=n(25573);let g=(0,s.createContext)({}),y=()=>(0,s.useContext)(g);function x(e){let{children:t}=e,n=function(){let e=(0,o.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,a.GP)({config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),l=(0,m.JL)(),d=(0,s.useMemo)(()=>{var e;return(null===(e=l.data)||void 0===e?void 0:e.hosts)||[]},[l.data]),f=(0,v.n)(),h=f.isSynced?f.nodeBlockHeight:f.estimatedBlockHeight,g=(0,s.useMemo)(()=>{var e;if(!r.data)return null;let t=(null===(e=r.data)||void 0===e?void 0:e.map(e=>{var t;let n="fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,r=(0,i.jrD)(h,e.startHeight),o=e.windowStart,a=(0,i.jrD)(h,o);return{id:e.id,contractId:e.id,hostIp:e.hostIP,hostKey:e.hostKey,location:null===(t=d.find(t=>t.public_key===e.hostKey))||void 0===t?void 0:t.location,timeline:r,startTime:r,endTime:a,contractHeightStart:e.startHeight,contractHeightEnd:o,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)}}))||[];return t},[r.data,d,h]),{filters:y,setFilter:x,removeFilter:b,removeLastFilter:w,resetFilters:j}=(0,i.Wdu)(),{configurableColumns:E,enabledColumns:k,sortableColumns:S,toggleColumnVisibility:_,setColumnsVisible:C,setColumnsHidden:O,toggleSort:M,setSortDirection:T,setSortField:A,sortField:P,sortDirection:N,resetDefaultColumnVisibility:R}=(0,i.oy6)("renterd/v0/contracts",{columns:p,columnsDefaultVisible:c.gd,sortOptions:c.Fo,defaultSortField:c.nw}),D=(0,i._4u)({dataset:g,filters:y,sortField:P,sortDirection:N}),L=(0,s.useMemo)(()=>D?D.slice(n,n+t):null,[D,n,t]),{range:F}=(0,s.useMemo)(()=>(0,i.EJC)(h,L||[]),[h,L]),z=(0,s.useMemo)(()=>p.filter(e=>e.fixed||k.includes(e.id)),[k]),V=(0,i.c2j)(D,r.isValidating,r.error,y),I=(0,s.useMemo)(()=>g?g.filter(e=>e.contractHeightStart{a(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,o.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:o}=eT(),{setTheme:s}=(0,m.F)(),{settings:l,setSettings:u,lock:c,currencyOptions:f,setCurrency:h}=(0,a.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}),o()},children:(l.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(d.o4,{currentPage:t,commandPage:v,onSelect:()=>{c(),o()},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"),o()},children:"Set theme to system preference"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("light"),o()},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),o()},children:"Set currency to ".concat(i)},n)})]})}let y={namespace:"node",label:"Blockchain node"};function x(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=eT(),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:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),a()},children:"View peers"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),a()},children:"View transaction pool"})]})}var b=n(17286),w=n(91641);let j={namespace:"configuration",label:"Configuration"};function E(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,c.useRouter)(),{showAdvanced:a}=(0,b.ZR)(),{closeDialog:l}=eT(),{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:()=>{o.push(s._.config.index),l()},children:"Open configuration"}),"on"===u.status&&(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.storage),l()},children:"Configure storage"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.pricing),l()},children:"Configure pricing"}),a&&(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:()=>{o.push(s._.config.hosts),l()},children:"Configure hosts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.wallet),l()},children:"Configure wallet"})]}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.contracts),l()},children:"Configure contracts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.uploads),l()},children:"Configure uploads"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.redundancy),l()},children:"Configure redundancy"})]})]})}var k=n(93216);let S={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,l=(0,c.useRouter)(),{closeDialog:u}=eT();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)(k.F,{parentPage:S,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}var C=n(13242),O=n(18006);let M={namespace:"hosts",label:"Hosts"};function T(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,l=(0,c.useRouter)(),{closeDialog:u,openDialog:f}=eT();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(M)},children:M.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:M,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:M,onSelect:()=>{l.push(s._.hosts.index),u()},children:"View hosts"})}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:M,onSelect:()=>{f("hostsManageAllowBlock")},children:"Manage filter lists: allowlist + blocklist"}),(0,r.jsx)(O.L,{parentPage:M,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}var A=n(91652),P=n(48528),N=n(88242);function R(e){let{debouncedSearch: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.jsxs)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:[(0,r.jsx)(N.e1T,{}),(0,r.jsx)(N.JCW,{}),(0,r.jsx)(N.c_L,{})]}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No files match the query.":"Type a query to get started."})]})}let D={namespace:"files/search",label:"File search",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",empty:R};function L(e){let{debouncedSearch:t,search:n,currentPage:i,beforeSelect:a,afterSelect:s}=e,{activeBucket:l,setActiveDirectory:u}=(0,P.Y)(),c=(null==i?void 0:i.namespace)===D.namespace,h=(0,f.Iy)({disabled:!c,params:{bucket:l||"default",key:t,skip:0,limit:10},config:{swr:{keepPreviousData:!0}}});return c&&h.data?(0,r.jsx)(d.fu,{currentPage:i,commandPage:D,children:h.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=F(e),o=F(t),a=i.toLowerCase().indexOf(o.toLowerCase()),s=a+o.length-1,l=0,u=0,c=i.split("/"),d=c.map(e=>{if(l>=r)return u+=e.length,F(e);let t=u,n=u+e.length+1;return ta?(u+=e.length,F(e)):!e.includes(o)&&e.length>3?(u+=e.length,l+=e.length+1,"..."):(u+=e.length,F(e))});return d.reverse().join("/")}(t,n,0),{startIndex:c,endIndex:f}=function(e,t){let n=F(e),r=F(t),i=n.toLowerCase().indexOf(r.toLowerCase()),o=i+r.length;return{endIndex:e.length-i,startIndex:e.length-o}}(l,n);return(0,r.jsx)(d.WD,{commandPage:D,currentPage:i,onSelect:()=>{a(),u(()=>(0,A.gD)(t)),s()},value:t,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,A.IQ)(t)?(0,r.jsx)(N.ROc,{size:16}):(0,r.jsx)(N.c_L,{})}),(0,r.jsxs)(o.xvT,{className:"flex items-center",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(0,c)}),(0,r.jsx)(o.xvT,{color:"accent",ellipsis:!0,children:l.slice(c,f)}),(0,r.jsx)(o.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(f)})]})]})},t)})}):null}function F(e){return e.split("").reverse().join("")}let z={namespace:"files",label:"Files"};function V(e){let{search:t,debouncedSearch:n,currentPage:i,parentPage:o,pushPage:a,beforeSelect:l,afterSelect:u}=e,f=(0,c.useRouter)(),{closeDialog:h}=eT();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:i,parentPage:o,commandPage:o,onSelect:()=>{a(z)},children:z.label}),(0,r.jsxs)(d.fu,{currentPage:i,commandPage:z,children:[(0,r.jsx)(d.WD,{currentPage:i,commandPage:z,onSelect:()=>{f.pathname.startsWith(s._.files.index)||f.push(s._.files.index),h(),u()},children:"View files"}),(0,r.jsx)(d.WD,{currentPage:i,commandPage:z,onSelect:()=>{a(D),u()},children:"Search files"})]}),(0,r.jsx)(L,{debouncedSearch:n,search:t,currentPage:i,beforeSelect:l,afterSelect:u})]})}var I=n(19513);function Z(e,t){return e===t}function B(e){return"function"==typeof e?function(){return e}:e}function H(e,t,n){var r,o,a=n&&n.equalityFn||Z,s=(o=(r=(0,i.useState)(B(e)))[1],[r[0],(0,i.useCallback)(function(e){return o(B(e))},[])]),l=s[0],u=s[1],c=function(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)},x=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)}},b=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(x,t),p?e(o.current):c.current;if(v)return n(x,t),e(o.current)}return s.current||n(x,t),c.current};return b.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},b.isPending=function(){return!!s.current},b.flush=function(){return s.current?y(Date.now()):c.current},b},[p,v,t,g,m,h])}((0,i.useCallback)(function(e){return u(e)},[u]),t,n),d=(0,i.useRef)(e);return a(d.current,e)||(c(e),d.current=e),[l,c]}function U(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)(N.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."})]})}function W(e){let{panel:t}=e,{resetFilters:n}=(0,C.G)(),{resetFilters:a}=(0,I.l)(),{closeDialog:d}=eT(),f=(0,c.useRouter)(),[h,m]=(0,i.useState)(""),[v]=H(h,500),[y,b]=(0,i.useState)([]),w=y[y.length-1],j=0===y.length,k=(0,i.useCallback)(e=>{b(t=>[...t,e])},[b]),S=(0,i.useCallback)(()=>{d()},[d]),O=(0,i.useCallback)(()=>{m("")},[m]),M=(null==w?void 0:w.empty)||U;return(0,r.jsxs)(u.mY,{label:"Command Menu",loop:!0,className:(0,l.cx)(t&&(0,o.z$)()),onKeyDown:e=>{(y.length>0&&"Escape"===e.key||"Backspace"===e.key&&!h)&&(e.preventDefault(),b(e=>e.slice(0,-1)))},children:[w&&(0,r.jsx)(o.__J,{className:"px-2",children:w.label}),(0,r.jsx)(u.mY.Input,{value:h,onValueChange:m,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==w?void 0:w.prompt)||(j?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(M,{search:h,debouncedSearch:v})}),(0,r.jsx)(g,{currentPage:w,pushPage:k}),(0,r.jsx)(V,{debouncedSearch:v,search:h,currentPage:w,pushPage:k,beforeSelect:()=>{S()},afterSelect:()=>{O()}}),(0,r.jsx)(p,{currentPage:w,pushPage:k}),(0,r.jsx)(_,{currentPage:w,pushPage:k,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(s._.contracts.index)||f.push(s._.contracts.index),O()}}),(0,r.jsx)(T,{currentPage:w,pushPage:k,beforeSelect:()=>{S(),a()},afterSelect:()=>{f.pathname.startsWith(s._.hosts.index)||f.push(s._.hosts.index),O()}}),(0,r.jsx)(E,{currentPage:w,pushPage:k}),(0,r.jsx)(x,{currentPage:w,pushPage:k})]})]})}function q(e){let{open:t,onOpenChange:n,setOpen:l}=e,{isUnlocked:u}=(0,a.Hv)(),{isConnected:c}=(0,o.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)(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)(W,{})})})}var $=n(9156),K=n(24511);let Y={name:""},G=K.Ry().shape({name:K.Z_().required("Required")});function X(e){let{trigger:t,open:n,onOpenChange:i}=e,{activeDirectoryPath:a}=(0,P.Y)(),s=(0,f.ZM)(),l=(0,$.TA)({initialValues:Y,validationSchema:G,onSubmit:async(e,t)=>{let n=await s.put({params:(0,A.W0)(a+e.name+"/"),payload:null});n.error?(0,o.OHV)(n.error):((0,o.RFt)("Directory created."),t.resetForm(),i(!1))}});return(0,r.jsx)(o.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)(o.cB7,{formik:l,title:"Name",name:"name",placeholder:"photos, backups, etc",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(o.IKw,{formik:l,size:"medium",children:"Create"})]})})})})}var J=n(33571);let Q={publicKey:""},ee=K.Ry().shape({publicKey:K.Z_().required("Required")});function et(){var e;let t=(0,f.s2)({config:{swr:{refreshInterval:6e4}}}),n=(0,J.I)(),a=(0,$.TA)({initialValues:Q,validationSchema:ee,onSubmit:async(e,t)=>{let r=await n([e.publicKey],[]);r?t.resetForm():t.setStatus({error:"Error updating allowlist"})}});(0,i.useEffect)(()=>{a.setStatus(void 0)},[a.values]);let s=a.values.publicKey,l=(null===(e=t.data)||void 0===e?void 0:e.filter(e=>!a.values.publicKey||e.includes(a.values.publicKey)))||[];return(0,r.jsxs)("form",{onSubmit:a.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(o.S$c,{title:"Public key",name:"publicKey",formik:a,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.KZS,{name:"publicKey",formik:a,placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(o.IKw,{formik:a,size:"small",variant:"amber",withStatusError:!1,children:"Allow public key"})]})}),(0,r.jsxs)(o.s_4,{className:"p-2 flex gap-2 items-center",children:[(0,r.jsx)(o.xvT,{children:(0,r.jsx)(N.qdM,{})}),(0,r.jsxs)(o.nvN,{size:"12",children:[(0,r.jsx)(o.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)(o.xrM,{children:(0,r.jsx)("div",{className:"p-2",children:(0,r.jsx)(o.hmz,{options:l.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,o.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)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.Hb6,{})}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["No existing entries match ",a.values.publicKey,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.TtX,{})}),(0,r.jsx)(o.xvT,{color:"subtle",children:"The allowlist is empty."})]})})]})}var en=n(98358);let er={address:""},ei=["45.148.30.56","51.158.108.244","siacentral.ddnsfree.com","siacentral.mooo.com"],eo=K.Ry().shape({address:K.Z_().required("Required").test("address","Invalid hostname or IP address",e=>(0,o.Ztc)().test(e||""))});function ea(){let e=(0,f.uf)({config:{swr:{refreshInterval:6e4}}}),t=(0,en.l)(),n=(0,$.TA)({initialValues:er,validationSchema:eo,onSubmit:async(e,n)=>{let r=await t([e.address],[]);r?n.resetForm():n.setStatus({error:"Error updating blocklist"})}});(0,i.useEffect)(()=>{n.setStatus(void 0)},[n.values]);let a=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,C.G)(),u=(0,i.useMemo)(()=>ei.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)(o.S$c,{title:"Address",name:"address",formik:n,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.KZS,{name:"address",formik:n,placeholder:"eg: 51.258.128.144 or spam.ddnsfree.com",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(o.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)(o.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)(o.xvT,{size:"12",color:"subtle",children:"Suggestions:"}),u.map((e,t)=>{let{address:i,contractCount:a}=e;return(0,r.jsxs)(o.xvT,{size:"12",underline:"hover",className:"cursor-pointer",onClick:()=>n.setFieldValue("address",i),children:[i,!!a&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(o.ua7,{content:"".concat(a," active contracts"),children:(0,r.jsxs)(o.xvT,{color:"red",children:["(",a,")"]})})]}),t!==u.length-1&&(0,r.jsx)(o.xvT,{children:","})]},i)})]}),(0,r.jsx)(o.Z0O,{className:"my-2"})]}),s.length?(0,r.jsx)(o.hmz,{options:s.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,o.vQq)(e,"blocked address"),onRemove:e=>t([],[e])}):a?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.Hb6,{})}),(0,r.jsxs)(o.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)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.TtX,{})}),(0,r.jsx)(o.xvT,{color:"subtle",children:"The blocklist is empty."})]})]})})})]})}function es(e){let{trigger:t,open:n,onOpenChange:i}=e;return(0,r.jsx)(o.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)(o.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)(o.mQc,{defaultValue:"blocklist",children:[(0,r.jsxs)(o.drW,{"aria-label":"blocklist and allowlist tabs",children:[(0,r.jsx)(o.SPt,{value:"blocklist",children:"Block"}),(0,r.jsx)(o.SPt,{value:"allowlist",children:"Allow"})]}),(0,r.jsx)(o.nUL,{value:"blocklist",children:(0,r.jsx)(ea,{})}),(0,r.jsx)(o.nUL,{value:"allowlist",children:(0,r.jsx)(et,{})})]})]})})}var el=n(2320),eu=n(31781),ec=n(24801);function ed(e){let{panel:t}=e,{resetFilters:n}=(0,C.G)(),{closeDialog:a}=eT(),d=(0,c.useRouter)(),[f,h]=(0,i.useState)(""),[p]=H(f,500),m=(0,i.useCallback)(()=>{a()},[a]);return(0,r.jsxs)(u.mY,{label:"Files search",shouldFilter:!1,className:(0,l.cx)(t&&(0,o.z$)()),children:[(0,r.jsx)(o.__J,{className:"px-2",children:"File search"}),(0,r.jsx)(u.mY.Input,{value:f,onValueChange:h,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:D.prompt}),(0,r.jsx)(o.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)(R,{search:f,debouncedSearch:p})}),(0,r.jsx)(L,{debouncedSearch:p,search:f,currentPage:D,beforeSelect:()=>{m(),n()},afterSelect:()=>{d.pathname.startsWith(s._.files.index)||d.push(s._.files.index)}})]})})]})}function ef(e){let{open:t,onOpenChange:n}=e;return(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)(ed,{})})}var eh=n(6391),ep=n.n(eh);function em(){let{dialog:e,openDialog:t,closeDialog:n}=eT(),a=(0,f.Tu)(),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 o=await u.post({payload:[i.data]});return o.error?(c.post({payload:i.data}),{error:o.error}):{}},[s,l,u,c]);return(0,r.jsx)(o.weF,{balance:a.data?new(ep())(a.data.spendable):void 0,send:d,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}function ev(){let{id:e,dialog:t,openDialog:n,closeDialog:a}=eT(),s=(0,f.Qq)({params:{},config:{swr:{revalidateOnFocus:!1,refreshInterval:6e4}},disabled:"transactionDetails"!==t}),l=(0,i.useMemo)(()=>{var t;let n=null===(t=s.data)||void 0===t?void 0:t.find(t=>t.id===e);return n?{txType:(0,o.leQ)(n.raw),inflow:n.inflow,outflow:n.outflow,timestamp:n.timestamp,raw:n.raw}:null},[s,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):a()})}var eg=n(82459);function ey(e){let{id:t,contentProps:n,buttonProps:i}=e,a=(0,f.cq)({params:{id:t}});return a.data?(0,r.jsx)(eg.F,{id:t,address:a.data.hostIP,publicKey:a.data.hostKey,contentProps:n,buttonProps:i}):(0,r.jsx)(o.zxk,{variant:"ghost",icon:"hover",state:"waiting",...i,children:(0,r.jsx)(N.iG7,{})})}var ex=n(848);function eb(e){let{open:t,onOpenChange:n}=e,a=(0,f.Z7)(),s=(0,f.Uy)(),l=(0,i.useCallback)(async e=>{let t=await s.post({payload:[e]});t.error?(0,o.OHV)("Error dismissing alert."):(0,o.OPV)("Alert has been dismissed.")},[s]),u=(0,i.useCallback)(async(e,t)=>{if(!a.data)return;let n=await s.post({payload:e});n.error?(0,o.OHV)(t?"Error dismissing all ".concat(t," alerts."):"Error dismissing all alerts."):(0,o.OPV)(t?"All ".concat(t," alerts have been dismissed."):"All alerts have been dismissed.")},[s,a.data]);return(0,r.jsx)(o.hcY,{open:t,onOpenChange:e=>{n(e)},alerts:a,dataFieldOrder:ew,dataFields:ej,dismissMany:u,dismissOne:l})}let ew=["hint","error","origin","hostKey","contractID","accountID","slabKey","additions","removals"],ej={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)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(o.PF9,{value:t,menu:(0,r.jsx)(ey,{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)(o.xvT,{color:"subtle",ellipsis:!0,children:"account ID"}),(0,r.jsx)(o.XxW,{value:t,label:"account ID"})]})}},hostKey:{render:function(e){let{value:t}=e,n=(0,f.$)({params:{hostKey:t}});return n.data?(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"host key"}),(0,r.jsx)(o.PF9,{value:t,menu:(0,r.jsx)(ex.G,{publicKey:n.data.publicKey,address:n.data.netAddress,contentProps:{align:"end"},buttonProps:{size:"none"}})})]}):null}},slabKey:{render:function(e){let{value:t}=e,{setActiveDirectory:n}=(0,P.Y)(),{closeDialog:i}=eT(),a=(0,f.og)({params:{key:t}});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"key"}),(0,r.jsx)(o.XxW,{value:t})]}),a.data&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mt-2 mb-2",children:a.data.map(e=>(0,r.jsx)(o.rUS,{color:"accent",underline:"hover",size:"12",noWrap:!0,onClick:()=>{n(()=>(0,A.gD)(e.name)),i()},children:e.name},e.name))})})]})}},additions:{render:function(e){let{value:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"additions"})}),t&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-wrap gap-2 mb-2",children:t.map(e=>(0,r.jsx)("div",{children:(0,r.jsx)(o.XxW,{value:e,label:"contract ID"})},e))})})]})}},removals:{render:function(e){let{value:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"removals"})}),t&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mb-2",children:Object.entries(t).map(e=>{let[t,n]=e;return(0,r.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,r.jsx)(o.XxW,{value:t,label:"contract ID"}),(0,r.jsx)(o.ua7,{content:n,children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:n})})]},t)})})})]})}},error:{render:e=>{let{value:t}=e;return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:(0,r.jsx)(o.UQy,{type:"single",children:(0,r.jsxs)(o.Qdk,{value:"error",variant:"ghost",children:[(0,r.jsx)(o.o48,{children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"})}),(0,r.jsx)(o.vF,{children:(0,r.jsx)(o.xvT,{color:"contrast",children:t})})]})})})}},hint:{render:e=>{let{value:t}=e;return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"contrast",children:t})})}},allowance:{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:"allowance"}),(0,r.jsx)(o.YKL,{variant:"value",value:new(ep())(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)(o.xvT,{color:"subtle",ellipsis:!0,children:"balance"}),(0,r.jsx)(o.YKL,{variant:"value",value:new(ep())(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)(o.xvT,{color:"subtle",ellipsis:!0,children:"address"}),(0,r.jsx)(o.XxW,{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)(o.xvT,{color:"subtle",ellipsis:!0,children:"account"}),(0,r.jsx)(o.XxW,{value:t})]})}}};var eE=n(54155),ek=n(63955);let eS={name:""};function e_(e){let{trigger:t,open:n,onOpenChange:a}=e,{id:s,closeDialog:l}=eT(),u=(0,f.sg)(),c=(0,ek.cI)({mode:"all",defaultValues:eS}),d=(0,i.useCallback)(async e=>{let t=await u.delete({params:{name:e.name}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("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,o.WsO)(h);return(0,r.jsx)(o.VqE,{title:"Delete Bucket",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eS),a(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)(o.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)(o.EKh,{color:"gray",children:s})}),(0,r.jsx)(o.yEL,{name:"name",form:c,fields:h,autoComplete:"off"}),(0,r.jsx)(o.ZqQ,{variant:"red",form:c,children:"Delete"})]})})}let eC={name:""};function eO(e){let{trigger:t,open:n,onOpenChange:a}=e,{closeDialog:s}=eT(),l=(0,f.oV)(),u=(0,ek.cI)({mode:"all",defaultValues:eC}),c=(0,i.useCallback)(async e=>{let t=await l.post({payload:{name:e.name}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("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,o.WsO)(d);return(0,r.jsx)(o.VqE,{title:"Create Bucket",trigger:t,open:n,onOpenChange:e=>{e||u.reset(eC),a(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)(o.nvN,{size:"14",children:"A bucket is an isolated collection of files."}),(0,r.jsx)(o.yEL,{name:"name",form:u,fields:d,autoComplete:"off"}),(0,r.jsx)(o.ZqQ,{form:u,children:"Create bucket"})]})})}let eM=(0,i.createContext)({}),eT=()=>(0,i.useContext)(eM);function eA(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)(eM.Provider,{value:n,children:t})}function eP(){var e;let{dialog:t,openDialog:n,onOpenChange:i,closeDialog:a,confirm:s,openConfirmDialog:l}=eT(),u=(0,f.Wl)(),c=(0,f.Tu)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(q,{open:"cmdk"===t,onOpenChange:i,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:i}),(0,r.jsx)(em,{}),(0,r.jsx)(o.YNn,{address:null===(e=c.data)||void 0===e?void 0:e.address,isValidating:c.isValidating,open:"addressDetails"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ev,{}),(0,r.jsx)(o.D_D,{open:"connectPeer"===t,connect:e=>u.post({payload:e}),onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eO,{open:"filesCreateBucket"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(e_,{open:"filesDeleteBucket"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(X,{open:"filesCreateDirectory"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ef,{open:"filesSearch"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(es,{open:"hostsManageAllowBlock"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(el.g,{open:"hostsFilterAddress"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eE.a,{open:"hostsFilterPublicKey"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eu.p,{open:"contractsFilterAddress"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ec.C,{open:"contractsFilterPublicKey"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eb,{open:"alerts"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(o.QHy,{open:"confirm"===t,params:s,onOpenChange:e=>e?l(s):a()})]})}},48528:function(e,t,n){"use strict";n.d(t,{Z:function(){return L},Y:function(){return D}});var r=n(52322),i=n(80446),o=n(5632),a=n(2784),s=n(88242),l=n(96206),u=n(86450),c=n(9969),d=n(91652);function f(e){let{path:t}=e,n=(0,c.wy)({params:(0,d.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)(s.olJ,{})}),"Copy metadata"]})}function h(e){let{path:t}=e,{downloadFiles:n,getFileUrl:o}=D(),l=function(){let{openConfirmDialog:e}=(0,u.Rh)(),t=(0,c.xw)();return(0,a.useCallback)(n=>e({title:"Delete file",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.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,d.W0)(n)});e.error&&(0,i.OHV)("Error deleting file."),(0,i.OPV)("Successfully deleted file.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.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)(s.vzB,{})}),"Download file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>l(t),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete file"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(o(t,!1),"file URL")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy URL"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.E5z)(o(t,!0),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(i.xvT,{children:"Copied authenticated file URL to clipboard."}),(0,r.jsxs)(i.xvT,{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)("div",{className:"!flex-none w-5",children:(0,r.jsx)(s.qdM,{className:"w-5 text-amber-600"})}),duration:1e4,className:"!max-w-[1200px]"})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy authenticated URL"]}),(0,r.jsx)(f,{path:t})]})}function p(e){let{path:t,size:n}=e,o=function(){let{openConfirmDialog:e}=(0,u.Rh)(),t=(0,c.xw)();return(0,a.useCallback)((n,o)=>e({title:"Delete directory",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.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,l.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,d.W0)(n),batch:!0}});e.error&&(0,i.OHV)("Error deleting directory."),(0,i.OPV)("Successfully deleted directory.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.ROc,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{o(t,n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete directory"]})]})}var m=n(6391),v=n.n(m),g=n(82439),y=n(82851),x=n(829),b=n.n(x);function w(e){var t,n,o;let{path:a,isUploading:s,type:l,health:u,size:f}=e,h="directory"===l,p=(0,c.wy)({disabled:s||h,params:(0,d.W0)(a),config:{swr:{dedupingInterval:5e3}}}),{displayHealth:m,label:v}=(0,g.B)({health:u,size:f,isDirectory:h});if(p.isValidating)return(0,r.jsx)(j,{displayHealth:m,label:v,children:(0,r.jsx)("div",{className:"flex justify-center my-2",children:(0,r.jsx)(i.xgg,{})})});if(!(null===(t=p.data)||void 0===t?void 0:t.object))return(0,r.jsx)(j,{displayHealth:m,label:v,children:(0,r.jsx)(i.xvT,{size:"12",children:"Error fetching slab metadata."})});let y=b()(p.data.object.slabs.map(e=>({...e.slab,contractSetShards:function(e){let{totalShards:t,minShards:n,health:r}=e,i=Math.ceil(r*(t-n)),o=i+n;return o<=0?0:o>t?t:o}({totalShards:e.slab.shards.length,minShards:e.slab.minShards,health:e.slab.health})})),"contractSetShards"),{partialSlab:x}=p.data.object;return(0,r.jsx)(j,{className:y.length>15?"h-[300px]":"",displayHealth:m,label:v,minShards:x?x.minShards:null===(n=y[0])||void 0===n?void 0:n.minShards,totalShards:x?x.totalShards:null===(o=y[0])||void 0===o?void 0:o.shards.length,children:x?(0,r.jsx)(i.xvT,{size:"12",color:"verySubtle",className:"flex items-center justify-center my-2",font:"mono",children:"partial slab"}):y.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.jsxs)(i.xvT,{size:"12",className:"flex items-center",children:[e.contractSetShards,"/",e.shards.length]})]},e.key))})}function j(e){let{className:t,displayHealth:n,label:o,children:a,minShards:s,totalShards:l}=e;return(0,r.jsxs)("div",{className:(0,y.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:o}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*n).toFixed(0),"%"]})]}),s&&l?(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:[s," of ",l]})]}):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:a})})})]})}function E(e){let{name:t,isUploading:n,type:o,health:a,size:s}=e,l="directory"===o,{displayHealth:u,label:c,color:d,icon:f}=(0,g.B)({health:a,size:s,isDirectory:l});return l?".."===t?null:(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsx)(i.xvT,{color:d,className:"flex cursor-pointer",children:f}),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:c}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*u).toFixed(0),"%"]})]})})}):n?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsx)(i.xvT,{color:d,className:"flex cursor-pointer",children:f}),children:(0,r.jsx)(w,{...e})})}function k(e){let{name:t}=e,{openDialog:n}=(0,u.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.fi8,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{disabled:"default"===t,onSelect:()=>{n("filesDeleteBucket",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete bucket"]})]})}n(65680);let S=[{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:a,size:l}}=e,{setActiveDirectory:u}=D();return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(s.c_L,{})}):".."===o?(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",onClick:e=>{e.stopPropagation(),u(e=>e.slice(0,-1))},children:(0,r.jsx)(s.ROc,{size:16})}):"bucket"===n?(0,r.jsx)(k,{name:o}):"directory"===n?(0,r.jsx)(p,{path:a,size:l}):(0,r.jsx)(h,{path:a})}},{id:"name",label:"name",category:"general",contentClassName:"max-w-[600px]",render:function(e){let{data:{name:t,type:n}}=e,{setActiveDirectory:o}=D();return"bucket"===n?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(()=>[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:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:o,isUploading:a}}=e;return"bucket"===t?null:a?(0,r.jsx)(i.xgg,{}):".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(v())(o),variant:"value",color:"subtle",format:e=>(0,l.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e;return"bucket"===t.type?null:(0,r.jsx)(E,{...t})}}];var _=n(81471),C=n(12436),O=n.n(C),M=n(2850),T=n(28460),A=n.n(T),P=n(79381),N=n(13242);let R=(0,a.createContext)({}),D=()=>(0,a.useContext)(R);function L(e){let{children:t}=e,n=function(){let e=(0,o.useRouter)(),t=(0,a.useMemo)(()=>(e.query.path||[]).map(decodeURIComponent),[e.query.path]),n=(0,a.useMemo)(()=>t[0],[t]),r=(0,a.useMemo)(()=>(0,d.rd)(t)+"/",[t]),s=(0,a.useCallback)(n=>{let r=n(t);e.push("/files/"+r.map(encodeURIComponent).join("/"))},[e,t]),{uploadFiles:l,uploadsList:u,uploadCancel:f}=function(e){let{activeDirectoryPath:t}=e,n=(0,c.ZM)(),[r,o]=(0,a.useState)({}),s=(0,a.useCallback)(e=>{o(t=>({...t,[e.path]:{id:e.path,path:e.path,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!0,controller:e.controller,type:"file"}}))},[o]),l=(0,a.useCallback)(e=>{o(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[o]),u=(0,a.useCallback)(e=>{o(t=>(delete t[e],{...t}))},[o]),f=(0,a.useCallback)(e=>{e.controller.abort()},[]),h=async e=>{e.forEach(async e=>{let o=e.name,a=(0,d.pC)(t,o),c=(0,d.ru)(a);if(r[a]){(0,i.OHV)("Already uploading file: ".concat(a));return}let f=new AbortController,h=O()(e=>l({path:a,loaded:e.loaded,size:e.total}),2e3);s({path:a,name:o,bucket:c,loaded:0,size:1,controller:f});let p=await n.put({params:(0,d.W0)(a),payload:e,config:{axios:{onUploadProgress:h,signal:f.signal}}});p.error?("canceled"===p.error?(0,i.RFt)("File upload canceled."):(0,i.OHV)(p.error),u(a)):(u(a),(0,i.OPV)("Upload complete: ".concat(o)))})},p=(0,a.useMemo)(()=>Object.entries(r).map(e=>e[1]),[r]);return{uploadFiles:h,uploadsList:p,uploadCancel:f}}({activeDirectoryPath:r}),{downloadFiles:h,downloadsList:p,getFileUrl:m,downloadCancel:v}=function(){let e=(0,c.p$)(),[t,n]=(0,a.useState)({}),r=(0,a.useCallback)(e=>{n(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"}}))},[n]),o=(0,a.useCallback)(e=>{n(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[n]),s=(0,a.useCallback)(e=>{n(t=>(delete t[e],{...t}))},[n]),l=(0,a.useCallback)(e=>{e.controller.abort()},[]),u=async n=>{n.forEach(async n=>{let a=!1,l=(0,d.ru)(n),u=(0,d.vt)(n);if(t[n]){(0,i.OHV)("Already downloading file: ".concat(n));return}let c=new AbortController,f=O()(e=>{a||o({path:n,loaded:e.loaded,size:e.total})},2e3);r({path:n,name:u,bucket:l,loaded:0,size:1,controller:c});let h=await e.get(u,{params:(0,d.W0)(n),config:{axios:{onDownloadProgress:f,signal:c.signal}}});a=!0,h.error&&("canceled"===h.error?(0,i.RFt)("File download canceled."):(0,i.OHV)(h.error)),s(n)})},f=(0,a.useMemo)(()=>Object.entries(t).map(e=>e[1]),[t]),{settings:h}=(0,M.Hv)(),p=(0,a.useCallback)((e,t)=>{let{bucket:n,key:r}=(0,d.W0)(e),i="/worker/objects/".concat(r,"?bucket=").concat(n),o=h.api||location.origin,a=o.startsWith("https")?"https":"http",s=o.replace("https://","").replace("http://","");return t?"".concat(a,"://:").concat(h.password,"@").concat(s,"/api").concat(i):"".concat(a,"://").concat(s,"/api").concat(i)},[h]);return{downloadFiles:u,downloadsList:f,getFileUrl:p,downloadCancel:l}}(),{limit:g,offset:y,response:x,dataset:w}=function(e){let{activeDirectoryPath:t,uploadsList:n}=e,r=(0,c.B$)(),a=(0,o.useRouter)(),s=Number(a.query.limit||50),l=Number(a.query.offset||0),u=(0,d.ru)(t),f=(0,c.Jv)({disabled:!u,params:{...(0,d.W0)(t),offset:l,limit:s},config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),{dataset:h}=(0,N.G)(),p=(0,P.ZP)(f.isValidating||r.isValidating?null:[f.data,n,h,r.data,u,t],()=>{var e,i;let o={};u?f.data&&(null===(i=f.data.entries)||void 0===i||i.forEach(e=>{let{name:t,size:n,health:r}=e,i=(0,d.M7)(u,t);o[i]={id:i,path:i,bucket:u,size:n,health:r,name:(0,d.vt)(t),type:(0,d.IQ)(t)?"directory":"file"}}),n.filter(e=>{let{path:n,name:r}=e;return n===(0,d.pC)(t,r)}).forEach(e=>{o[e.path]=e})):null===(e=r.data)||void 0===e||e.forEach(e=>{let{name:t}=e,n=(0,d.wv)(t,"");o[t]={id:n,path:n,bucket:t,size:0,health:0,name:t,type:"bucket"}});let a=b()(A()(o).map(e=>e[1]),"path");return a},{keepPreviousData:!0});return{limit:s,offset:l,response:f,dataset:p.data}}({activeDirectoryPath:r,uploadsList:u}),{configurableColumns:j,enabledColumns:E,sortableColumns:k,toggleColumnVisibility:C,setColumnsVisible:T,setColumnsHidden:R,toggleSort:D,setSortDirection:L,setSortField:F,sortField:z,sortDirection:V,resetDefaultColumnVisibility:I}=(0,i.oy6)("renterd/v0/objects",{columns:S,columnsDefaultVisible:_.gd,sortOptions:_.Fo,defaultSortField:_.nw}),{filters:Z,setFilter:B,removeFilter:H,removeLastFilter:U,resetFilters:W}=(0,i.Wdu)(),q=(0,i._4u)({dataset:w,filters:Z,sortField:z,sortDirection:V}),$=(null==q?void 0:q.length)||0,K=(0,a.useMemo)(()=>q?t.length>0&&q.length>0?[{id:"..",name:"..",path:"..",type:"directory"},...q]:q:null,[q]),Y=(0,a.useMemo)(()=>S.filter(e=>e.fixed||E.includes(e.id)),[E]),G=(0,i.c2j)(q,x.isValidating,x.error,Z),X=0===t.length,J=1===t.length,Q=t.length>0;return{isViewingBuckets:X,isViewingABucket:Q,isViewingRootOfABucket:J,activeBucket:n,activeDirectory:t,setActiveDirectory:s,activeDirectoryPath:r,dataState:G,limit:g,offset:y,datasetPage:K,pageCount:$,datasetCount:(null==q?void 0:q.length)||0,columns:Y,uploadFiles:l,uploadsList:u,uploadCancel:f,downloadFiles:h,downloadsList:p,downloadCancel:v,configurableColumns:j,enabledColumns:E,sortableColumns:k,toggleColumnVisibility:C,setColumnsVisible:T,setColumnsHidden:R,toggleSort:D,setSortDirection:L,setSortField:F,sortField:z,filters:Z,setFilter:B,removeFilter:H,removeLastFilter:U,resetFilters:W,sortDirection:V,resetDefaultColumnVisibility:I,getFileUrl:m}}();return(0,r.jsx)(R.Provider,{value:n,children:t})}},91652:function(e,t,n){"use strict";function r(e,t){let n=t.startsWith("/")?t.slice(1):t;return e+n}function i(e,t){let n=r(e,t);return n.endsWith("/")?n:n+"/"}function o(e,t){return"".concat(e).concat(t)}function a(e){return e.split("/")[0]}function s(e){return{bucket:a(e),key:(function(e){let t=e.split("/").slice(1).join("/");return"/".concat(t)})(e).slice(1).split("/").map(encodeURIComponent).join("/")}}function l(e){let t=e.split("/");return e.endsWith("/")?"".concat(t[t.length-2],"/"):t[t.length-1]}function u(e){return e.endsWith("/")}function c(e){return u(e)?e.slice(0,-1).split("/"):e.split("/").slice(0,-1)}function d(e){return e.join("/")}n.d(t,{IQ:function(){return u},M7:function(){return o},W0:function(){return s},gD:function(){return c},pC:function(){return r},rd:function(){return d},ru:function(){return a},vt:function(){return l},wv:function(){return i}})},81471:function(e,t,n){"use strict";n.d(t,{Fo:function(){return o},gd:function(){return r},nw:function(){return i}});let r=["type","name","size","health"],i="name",o=[{id:"name",label:"name",category:"general"}]},19513:function(e,t,n){"use strict";n.d(t,{x:function(){return el},l:function(){return es}});var r,i,o=n(52322),a=n(80446),s=n(9969),l=n(2784);let u=["allow","netAddress","publicKey","lastScan","lastAnnouncement","totalScans","uptime","hasContract","ap_usable","ap_scoreOverall"];var c=n(5632),d=n(88242),f=n(96206),h=n(19785),p=n(66700),m=n(88811);function v(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)}function g(e,t){return(0,h.Z)(2,arguments),function(e,t){(0,h.Z)(2,arguments);var n=(0,p.Z)(e).getTime(),r=v(t);return new Date(n+r)}(e,-v(t))}function y(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function x(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=y(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=y(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function b(e,t){(0,h.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:v(i),a=null==n.weekStartsOn?o:v(n.weekStartsOn);if(!(a>=0&&a<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=(0,p.Z)(e),l=s.getUTCDay();return s.setUTCDate(s.getUTCDate()-((l=1&&l<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(r+1,0,l),u.setUTCHours(0,0,0,0);var c=b(u,t),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var f=b(d,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function j(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return j("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):j(n+1,2)},d:function(e,t){return j(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 j(e.getUTCHours()%12||12,t.length)},H:function(e,t){return j(e.getUTCHours(),t.length)},m:function(e,t){return j(e.getUTCMinutes(),t.length)},s:function(e,t){return j(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return j(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}},k={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function S(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+j(o,2)}function _(e,t){return e%60==0?(e>0?"-":"+")+j(Math.abs(e)/60,2):C(e,t)}function C(e,t){var n=e>0?"-":"+",r=Math.abs(e);return n+j(Math.floor(r/60),2)+(t||"")+j(r%60,2)}var O={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(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return E.y(e,t)},Y:function(e,t,n,r){var i=w(e,r),o=i>0?i:1-i;return"YY"===t?j(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):j(o,t.length)},R:function(e,t){return j(x(e),t.length)},u:function(e,t){return j(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 j(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 j(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 E.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 j(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,r){var i=function(e,t){(0,h.Z)(1,arguments);var n=(0,p.Z)(e);return Math.round((b(n,t).getTime()-(function(e,t){(0,h.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:v(i),a=null==n.firstWeekContainsDate?o:v(n.firstWeekContainsDate),s=w(e,t),l=new Date(0);return l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0),b(l,t)})(n,t).getTime())/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):j(i,t.length)},I:function(e,t,n){var r=function(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e);return Math.round((y(t).getTime()-(function(e){(0,h.Z)(1,arguments);var t=x(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),y(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):j(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):E.d(e,t)},D:function(e,t,n){var r=function(e){(0,h.Z)(1,arguments);var t=(0,p.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(r,{unit:"dayOfYear"}):j(r,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(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return j(o,2);case"eo":return n.ordinalNumber(o,{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(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return j(o,t.length);case"co":return n.ordinalNumber(o,{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 j(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?k.noon:0===i?k.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?k.evening:i>=12?k.afternoon:i>=4?k.morning:k.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 E.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):E.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):j(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):j(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):E.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):E.s(e,t)},S:function(e,t){return E.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 _(i);case"XXXX":case"XX":return C(i);default:return C(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return _(i);case"xxxx":case"xx":return C(i);default:return C(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S(i,":");default:return"GMT"+C(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S(i,":");default:return"GMT"+C(i,":")}},t:function(e,t,n,r){return j(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return j((r._originalDate||e).getTime(),t.length)}};function M(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 T(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 A={p:T,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return M(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}}",M(i,t)).replace("{{time}}",T(o,t))}},P=n(1645),N=["D","DD"],R=["YY","YYYY"];function D(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 L=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,F=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,z=/^'([^]*?)'?$/,V=/''/g,I=/[a-zA-Z]/;function Z(e,t,n){(0,h.Z)(2,arguments);var r=String(t),i=n||{},o=i.locale||m.Z,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:v(a),l=null==i.firstWeekContainsDate?s:v(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,c=null==u?0:v(u),d=null==i.weekStartsOn?c:v(i.weekStartsOn);if(!(d>=0&&d<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw RangeError("locale must contain localize property");if(!o.formatLong)throw RangeError("locale must contain formatLong property");var f=(0,p.Z)(e);if(!function(e){return(0,h.Z)(1,arguments),(!!function(e){return(0,h.Z)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,p.Z)(e)))}(f))throw RangeError("Invalid time value");var y=(0,P.Z)(f),x=g(f,y),b={firstWeekContainsDate:l,weekStartsOn:d,locale:o,_originalDate:f};return r.match(F).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,A[t])(e,o.formatLong,b):e}).join("").match(L).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(z)[1].replace(V,"'");var a=O[r];if(a)return i.useAdditionalWeekYearTokens||-1===R.indexOf(n)||D(n,t,e),i.useAdditionalDayOfYearTokens||-1===N.indexOf(n)||D(n,t,e),a(x,n,o.localize,b);if(r.match(I))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}var B=n(29193);function H(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e);return t.setHours(0,0,0,0),t}var U=n(848),W=n(2850),q=n(6391),$=n.n(q);let K=[{id:"actions",label:"",fixed:!0,category:"general",cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,o.jsx)(U.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=(0,s.s2)({config:{swr:{dedupingInterval:5e3}}}),i=!!(null===(t=r.data)||void 0===t?void 0:t.length);return(0,o.jsx)(a.ua7,{side:"right",content:(i?"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,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:n.isBlocked?"red":"green",children:n.isBlocked?(0,o.jsx)(d.SmH,{}):(0,o.jsx)(d.DI$,{})})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(a.xvT,{size:"10",color:n.isOnBlocklist?"red":"verySubtle",noWrap:!0,children:"Blocklist"}),(0,o.jsx)(a.xvT,{size:"10",color:i?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,o.jsx)(a.ua7,{side:"right",content:t.usable?"Host is usable":"Host is not usable",children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t.usable?"green":"red",children:t.usable?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.SmH,{})})}),(0,o.jsx)("div",{className:"flex flex-col",children:t.unusableReasons.map(e=>(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:e},e))})]})}):(0,o.jsx)(a.ua7,{side:"right",content:"Autopilot is not configured",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:"subtle",children:(0,o.jsx)(d.I98,{})})})})}},{id:"ap_gouging",label:"gouging",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.ua7,{side:"right",content:t.gouging?"Host is price gouging":"Host is not price gouging",children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t.gouging?"red":"subtle",children:t.gouging?(0,o.jsx)(d.SmH,{}):(0,o.jsx)(d.I98,{})})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[Object.entries(t.gougingBreakdown.v2).filter(e=>{let[t,n]=e;return n&&"string"==typeof n}).map(e=>{let[t,n]=e;return(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:n},"v2"+t)}),Object.entries(t.gougingBreakdown.v3).filter(e=>{let[t,n]=e;return n&&"string"==typeof n}).map(e=>{let[t,n]=e;return(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:n},"v3"+t)})]})]})}):(0,o.jsx)(a.ua7,{side:"right",content:"Autopilot is not configured",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:"subtle",children:(0,o.jsx)(d.I98,{})})})})}},{id:"lastScan",label:"last scan",category:"general",render:function(e){let{data:t}=e,{workflows:n}=(0,W.D)(),r=n.find(e=>{var n;return e.path.startsWith(s.RF)&&(null===(n=e.payload)||void 0===n?void 0:n.hostKey)===t.publicKey});if(r)return(0,o.jsx)(a.xgg,{});let i=(0,B.Z)(new Date(t.lastScan),new Date,{addSuffix:!0}),l="",u=null,c="subtle";return t.lastScan||(l="host has not been scanned",u=(0,o.jsx)(d.I98,{}),c="subtle"),t.lastScan&&!t.lastScanSuccess&&(l="host scan failed ".concat(i),u=(0,o.jsx)(d.SmH,{}),c="red"),t.lastScan&&t.lastScanSuccess&&(l="host scan succeeded ".concat(i),u=(0,o.jsx)(d.DI$,{}),c="green"),(0,o.jsx)(a.ua7,{side:"right",content:l,children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:c,children:u})}),t.lastScan&&(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(a.xvT,{size:"12",noWrap:!0,children:i}),(0,o.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children: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,o.jsx)(a.ua7,{side:"right",content:n?"Host has active contract":"Host does not have an active contract",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:n?"green":"subtle",children:n?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.I98,{})})})})}},{id:"netAddress",label:"address",category:"general",render:e=>{let{data:t}=e;return(0,o.jsx)(a.XxW,{value:t.netAddress,type:"ip",size:"12",label:"host address"})}},{id:"publicKey",label:"public key",category:"general",render:e=>{let{data:t}=e;return(0,o.jsx)(a.XxW,{value:t.publicKey,size:"12",label:"host public key"})}},{id:"lastAnnouncement",label:"last announcement",category:"general",render:e=>{let{data:t}=e;return(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsxs)(a.xvT,{size:"12",noWrap:!0,children:[(0,B.Z)(new Date,new Date(t.lastAnnouncement))," ago"]}),(0,o.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:function(e,t,n){(0,h.Z)(2,arguments);var r=(0,p.Z)(e),i=(0,p.Z)(t),o={},a=o.locale,s=void 0===a?m.Z:a,l=o.weekStartsOn,u=void 0===l?0:l;if(!s.localize)throw RangeError("locale must contain localize property");if(!s.formatLong)throw RangeError("locale must contain formatLong property");if(!s.formatRelative)throw RangeError("locale must contain formatRelative property");var c=function(e,t){(0,h.Z)(2,arguments);var n=H(e),r=H(t);return Math.round((n.getTime()-(0,P.Z)(n)-(r.getTime()-(0,P.Z)(r)))/864e5)}(r,i);if(isNaN(c))throw RangeError("Invalid time value");var d=g(r,(0,P.Z)(r)),f=g(i,(0,P.Z)(i));return Z(r,s.formatRelative(c<-6?"other":c<-1?"lastWeek":c<0?"yesterday":c<1?"today":c<2?"tomorrow":c<7?"nextWeek":"other",d,f,{locale:s,weekStartsOn:u}),{locale:s,weekStartsOn:u})}(new Date(t.lastAnnouncement),new Date)})]})}},{id:"totalScans",label:"total scans",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.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,o.jsx)(a.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,o.jsx)(a.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,o.jsx)(a.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,o.jsx)(a.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,o.jsx)(a.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,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.score,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.age,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.collateral,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.interactions,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.prices,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.storageRemaining,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.uptime,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.version,variant:"value",format:e=>n.isAutopilotConfigured?"-":e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"hpt_accountbalancecost",label:"account balance cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","accountbalancecost")},{id:"hpt_collateralcost",label:"collateral cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","collateralcost")},{id:"hpt_contractprice",label:"contract price",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","contractprice")},{id:"hpt_downloadbandwidthcost",label:"download bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","downloadbandwidthcost")},{id:"hpt_dropsectorsbasecost",label:"drop sectors base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","dropsectorsbasecost")},{id:"hpt_dropsectorsunitcost",label:"drop sectors unit cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","dropsectorsunitcost")},{id:"hpt_expiry",label:"expiry",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","dropsectorsunitcost")},{id:"hpt_fundaccountcost",label:"fund account cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","fundaccountcost")},{id:"hpt_hassectorbasecost",label:"has sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","hassectorbasecost")},{id:"hpt_hostblockheight",label:"host block height",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","hostblockheight")},{id:"hpt_initbasecost",label:"init base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","initbasecost")},{id:"hpt_latestrevisioncost",label:"latest revision cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","latestrevisioncost")},{id:"hpt_maxcollateral",label:"max collateral",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","maxcollateral")},{id:"hpt_maxduration",label:"max duration",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","maxduration")},{id:"hpt_memorytimecost",label:"memory time cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","memorytimecost")},{id:"hpt_readbasecost",label:"read base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","readbasecost")},{id:"hpt_readlengthcost",label:"read length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","readlengthcost")},{id:"hpt_registryentriesleft",label:"registry entries left",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","registryentriesleft")},{id:"hpt_registryentriestotal",label:"registry entries total",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","registryentriestotal")},{id:"hpt_renewcontractcost",label:"renew contract cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","renewcontractcost")},{id:"hpt_revisionbasecost",label:"revision base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","renewcontractcost")},{id:"hpt_subscriptionmemorycost",label:"subscription memory cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","subscriptionmemorycost")},{id:"hpt_subscriptionnotificationcost",label:"subscription notification cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","subscriptionnotificationcost")},{id:"hpt_swapsectorcost",label:"swap sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","swapsectorcost")},{id:"hpt_txnfeemaxrecommended",label:"txn fee max recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","txnfeemaxrecommended")},{id:"hpt_txnfeeminrecommended",label:"txn fee min recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","txnfeeminrecommended")},{id:"hpt_uid",label:"UID",category:"priceTable",contentClassName:"w-[120px] justify-end",render:X("priceTable","uid")},{id:"hpt_updatepricetablecost",label:"update price table cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","updatepricetablecost")},{id:"hpt_uploadbandwidthcost",label:"upload bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","uploadbandwidthcost")},{id:"hpt_validity",label:"validity",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","validity")},{id:"hpt_windowsize",label:"window size",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","windowsize")},{id:"hpt_writebasecost",label:"write base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writebasecost")},{id:"hpt_writelengthcost",label:"write length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writelengthcost")},{id:"hpt_writestorecost",label:"write store cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("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,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t[r][i]?"green":"red",children:t[r][i]?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.SmH,{})})}):null})},{id:"hs_baserpcprice",label:"base RPC price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","baserpcprice")},{id:"hs_collateral",label:"collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","collateral")},{id:"hs_contractprice",label:"contract price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","contractprice")},{id:"hs_downloadbandwidthprice",label:"download bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","downloadbandwidthprice")},{id:"hs_ephemeralaccountexpiry",label:"ephemeral account expiry",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","ephemeralaccountexpiry")},{id:"hs_maxcollateral",label:"max collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","maxcollateral")},{id:"hs_maxdownloadbatchsize",label:"max download batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","maxdownloadbatchsize")},{id:"hs_maxduration",label:"max duration",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","maxduration")},{id:"hs_maxephemeralaccountbalance",label:"max ephemeral account balance",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","maxephemeralaccountbalance")},{id:"hs_maxrevisebatchsize",label:"max revise batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","maxrevisebatchsize")},{id:"hs_netaddress",label:"net address",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","netaddress")},{id:"hs_remainingstorage",label:"remaining storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","remainingstorage")},{id:"hs_revisionnumber",label:"revision number",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","revisionnumber")},{id:"hs_sectoraccessprice",label:"sector access price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","sectoraccessprice")},{id:"hs_sectorsize",label:"sector size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","sectorsize")},{id:"hs_siamuxport",label:"siamux port",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","siamuxport")},{id:"hs_storageprice",label:"storage price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","storageprice")},{id:"hs_totalstorage",label:"total storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","totalstorage")},{id:"hs_unlockhash",label:"unlock hash",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","unlockhash")},{id:"hs_uploadbandwidthprice",label:"upload bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","uploadbandwidthprice")},{id:"hs_version",label:"verison",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","version")},{id:"hs_windowsize",label:"window size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","windowsize")}].map(e=>({...e,..."autopilot"===e.category?{icon:(0,o.jsx)(d.n6M,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"autopilot: ".concat(e.label)}:"hostSettings"===e.category?{icon:(0,o.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,o.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 Y(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.YKL,{size:"12",value:new($())(r[e][t]||0),variant:"value"}):null}}function G(e,t,n){return function(r){let{data:i}=r;return i[e]?(0,o.jsx)(a.m2c,{size:"12",value:new($())(i[e][t]||0),variant:"value",format:e=>(0,f.yF)(e,{abbreviated:n})}):null}}function X(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.XxW,{value:r[e][t],size:"12"}):null}}function J(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.xvT,{size:"12",weight:"semibold",ellipsis:!0,children:(0,f.vW)(r[e][t])}):null}}var Q=n(13242);function ee(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($())(e.interactions.Uptime||0),downtime:new($())(e.interactions.Downtime||0),successfulInteractions:new($())(e.interactions.SuccessfulInteractions||0),totalInteractions:new($())(e.interactions.SuccessfulInteractions+e.interactions.FailedInteractions||0),failedInteractions:new($())(e.interactions.FailedInteractions||0),totalScans:new($())(e.interactions.TotalScans||0),activeContractsCount:new($())((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 et(e){let{host:t,allowlist:n,blocklist:r,isAllowlistActive:i}=e,o=!!(null==n?void 0:n.find(e=>e===t.publicKey)),a=!!(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:o,isOnBlocklist:a,isBlocked:a||!(!i||o)}}function en(e){return{score:new($())((null==e?void 0:e.score)||0),scoreBreakdown:{age:new($())((null==e?void 0:e.scoreBreakdown.age)||0),collateral:new($())((null==e?void 0:e.scoreBreakdown.collateral)||0),interactions:new($())((null==e?void 0:e.scoreBreakdown.interactions)||0),prices:new($())((null==e?void 0:e.scoreBreakdown.prices)||0),storageRemaining:new($())((null==e?void 0:e.scoreBreakdown.storageRemaining)||0),uptime:new($())((null==e?void 0:e.scoreBreakdown.uptime)||0),version:new($())((null==e?void 0:e.scoreBreakdown.version)||0)},gougingBreakdown:(null==e?void 0:e.gougingBreakdown)||{v2:{},v3:{}},gouging:null==e?void 0:e.gouging,unusableReasons:(null==e?void 0:e.unusableReasons)||[],usable:null==e?void 0:e.usable}}var er=n(91641),ei=n(34444),eo=n(47025);let ea=(0,l.createContext)({}),es=()=>(0,l.useContext)(ea);function el(e){let{children:t}=e,n=function(){var e,t,n,r,i,o,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:g,setFilter:y,removeFilter:x,removeLastFilter:b,resetFilters:w}=(0,a.Uu5)(),{dataset:j}=(0,Q.G)(),{autopilot:E}=(0,er.q)(),k=(0,l.useMemo)(()=>{let e=[];g.find(e=>"hasActiveContracts"===e.id)&&j&&(e=j.map(e=>e.hostKey));let t=g.find(e=>"publicKeyEquals"===e.id);return t&&e.push(null==t?void 0:t.value),e.length?e:void 0},[g,j]),S=(0,s.S0)({disabled:g.find(e=>"hasActiveContracts"===e.id)&&!j||"on"!==E.status,payload:{limit:m,offset:v,usabilityMode:(null===(e=g.find(e=>"usabilityMode"===e.id))||void 0===e?void 0:e.value)||"all",filterMode:(null===(t=g.find(e=>"filterMode"===e.id))||void 0===t?void 0:t.value)||"all",addressContains:null===(n=g.find(e=>"addressContains"===e.id))||void 0===n?void 0:n.value,keyIn:k},config:{swr:{errorRetryInterval:2e4,refreshInterval:(0,a.sWj)(1)}}}),_=(0,s.FV)({disabled:"off"!==E.status,payload:{limit:m,offset:v,filterMode:(null===(r=g.find(e=>"filterMode"===e.id))||void 0===r?void 0:r.value)||"all",addressContains:null===(i=g.find(e=>"addressContains"===e.id))||void 0===i?void 0:i.value,keyIn:g.find(e=>"hasActiveContracts"===e.id)&&j?j.map(e=>e.hostKey):void 0},config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),C=(0,s.s2)(),O=(0,s.uf)(),M=!!(null===(o=C.data)||void 0===o?void 0:o.length),{settings:T}=(0,W.Hv)(),A=(0,eo.JL)({disabled:!T.siaCentral,config:{swr:{revalidateOnFocus:!1}}});(0,l.useEffect)(()=>{T.siaCentral||p("list")},[T.siaCentral]);let P=(0,l.useMemo)(()=>{var e;return(null===(e=A.data)||void 0===e?void 0:e.hosts)||[]},[A.data]),N=(0,l.useRef)(ei.N),R=(0,l.useCallback)(e=>{N.current=e},[N]),[D,L]=(0,l.useState)(),F=(0,l.useCallback)(e=>{let t=document.getElementById(e),n=document.getElementById("scroll-hosts");t&&n&&n.scroll({top:t.offsetTop-50,behavior:"smooth"})},[]),z=(0,l.useCallback)((e,t)=>{if(D===e){L(void 0);return}L(e),t&&N.current.moveToLocation(t),F(e)},[L,N,D,F]),V=(0,l.useCallback)((e,t)=>{if(D===e){L(void 0);return}L(e),t?N.current.moveToLocation(t):(0,a.OHV)("Geographic location is unknown for host ".concat((0,a.$Gg)(e,20))),F(e)},[L,N,D,F]),I=(0,l.useCallback)((e,t)=>null,[]),Z=function(e){let{autopilotStatus:t,regularResponse:n,autopilotResponse:r,allContracts:i,allowlist:o,blocklist:a,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),...ee(e,i),...et({host:e,allowlist:o.data,blocklist:a.data,isAllowlistActive:s}),...en(),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),...ee(e.host,i),...et({host:e.host,allowlist:o.data,blocklist:a.data,isAllowlistActive:s}),...en(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,o.data,a.data,s,u])}({autopilotStatus:E.status,autopilotResponse:S,regularResponse:_,allContracts:j,allowlist:C,blocklist:O,isAllowlistActive:M,geoHosts:P,onHostSelect:V}),B=(0,l.useMemo)(()=>"off"===E.status?["autopilot"]:[],[E.status]),{configurableColumns:H,enabledColumns:U,toggleColumnVisibility:q,setColumnsVisible:$,setColumnsHidden:Y,toggleSort:G,setSortDirection:X,setSortField:J,sortField:ea,sortDirection:es,resetDefaultColumnVisibility:el}=(0,a.oy6)("renterd/v0/hosts",{columns:K,columnsDefaultVisible:u,disabledCategories:B}),eu=(0,l.useMemo)(()=>K.filter(e=>U.includes(e.id)),[U]),ec="on"===E.status?S.isValidating:_.isValidating,ed="on"===E.status?S.error:_.error,ef=(0,a.c2j)(Z,ec,ed,g),eh=null===(d=E.state.data)||void 0===d?void 0:d.configured,ep=(0,l.useMemo)(()=>({isAutopilotConfigured:eh}),[eh]),em=(0,l.useMemo)(()=>null==Z?void 0:Z.filter(e=>e.location),[Z]),ev=(0,l.useMemo)(()=>null==Z?void 0:Z.find(e=>e.publicKey===D),[Z,D]);return{setCmd:R,viewMode:h,activeHost:ev,onHostMapHover:I,onHostMapClick:z,setViewMode:p,hostsWithLocation:em,error:ed,dataState:ef,offset:v,limit:m,pageCount:(null==Z?void 0:Z.length)||0,columns:eu,dataset:Z,tableContext:ep,configurableColumns:H,enabledColumns:U,toggleColumnVisibility:q,setColumnsVisible:$,setColumnsHidden:Y,toggleSort:G,setSortDirection:X,setSortField:J,sortField:ea,sortDirection:es,resetDefaultColumnVisibility:el,filters:g,setFilter:y,removeFilter:x,removeLastFilter:b,resetFilters:w}}();return(0,o.jsx)(ea.Provider,{value:n,children:t})}},10917:function(e,t,n){"use strict";n.d(t,{Kg:function(){return o},jY:function(){return i}});var r=n(80446);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 o(e){return e.activeContractsCount.gt(0)&&!e.usable?{status:"activeAndUnusable",...i.activeAndUnusable}:e.activeContractsCount.gt(0)?{status:"activeAndUsable",...i.activeAndUsable}:{status:"potentialHost",...i.potentialHost}}},33571:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(80446),i=n(9969),o=n(2784);function a(){let e=(0,i.ni)();return(0,o.useCallback)((t,n)=>{let i=async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)(i.error),!1):(t.length&&(0,r.RFt)("".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to allowlist")),n.length&&(0,r.RFt)("".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from allowlist")),!0)};return i()},[e])}},98358:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(80446),i=n(9969),o=n(2784);function a(){let e=(0,i.Os)();return(0,o.useCallback)((t,n)=>{let i=async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)(i.error),!1):(t.length&&(0,r.RFt)("".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to blocklist")),n.length&&(0,r.RFt)("".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from blocklist")),!0)};return i()},[e])}},80489:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(9969);function i(e){return(0,r.yu)({...e,params:{key:"contractset"}})}},82439:function(e,t,n){"use strict";n.d(t,{B:function(){return a},V:function(){return o}});var r=n(52322),i=n(88242);let o={excellent:1,good:.5,poor:0};function a(e){let{health:t,size:n,isDirectory:a}=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}}},34658:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r=n(9969);function i(e){return(0,r.yu)({...e,params:{key:"redundancy"}})}},25573:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(80446),i=n(2850),o=n(9969);function a(){var e,t,n,a;let{isUnlocked:s}=(0,i.Hv)(),l=(0,o.DQ)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?(0,r.XBW)(60):(0,r.XBW)(10)}}}),u=(0,o.nH)(),c=l.data?null===(e=l.data)||void 0===e?void 0:e.blockHeight:0,d=(0,o.Tu)({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===(a=d.data)||void 0===a?void 0:a.scanHeight)>=c-1,nodeBlockHeight:c,estimatedBlockHeight:u,syncPercent:f,walletScanPercent:h,moreThan100BlocksToSync:!!c&&!!u&&u-c>100,firstTimeSyncing:!!c&&!!u&&u-c>5e4}}},48201:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var r=n(52322);n(37832);var i=n(80446),o=n(86450),a=n(48528),s=n(13242),l=n(19513),u=n(2784),c=n(91641),d=n(17286),f=n(88242),h=n(25573),p=n(71930),m=n(4370),v=n(9969),g=n(6391),y=n.n(g),x=n(96206),b=n(2850),w=n(92762);function j(){var e,t;let{isUnlocked:n}=(0,b.Hv)(),a=(0,c.q)(),{openDialog:s}=(0,o.Rh)(),l=(0,v.Tu)(),u=(0,v.e$)({config:{swr:{errorRetryInterval:1e4}}}),[d,g]=(0,w.Z)("v0/renterd/onboarding/maximized",{defaultValue:!0}),j=(0,h.n)(),k=(0,m.F)();if(!n||"on"!==a.autopilot.status)return null;let S=new(y())(l.data?l.data.confirmed+l.data.unconfirmed:0),_=new(y())((null===(e=u.data)||void 0===e?void 0:e.contracts.allowance)||0),C=null===(t=a.autopilot.state.data)||void 0===t?void 0:t.configured,O=j.isSynced,M=S.gt(0),T=!k.active,A=[C,O,M,T],P=A.length,N=A.filter(e=>e).length;return P===N?null:d?(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:()=>g(!1),children:(0,r.jsx)(f.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)(E,{title:(0,r.jsx)(i.rUS,{href:p._.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:C?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:p._.config.index,children:(0,r.jsx)(f.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.Fs9,{})})]})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.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)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[j.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.hzZ,{})})]})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.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,x.Vz)(_)," siacoin to cover the required allowance.").concat(j.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:M?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!j.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(j.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[j.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:p._.wallet.view,onClick:()=>s("addressDetails"),children:(0,r.jsx)(f.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.Fs9,{})})]})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.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)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[k.count,"/",k.required]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.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:()=>g(!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 E(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})})]})})}function k(e){return void 0!==e.loaded?e.loaded/e.size:1}function S(){let{isUnlocked:e}=(0,b.Hv)(),{uploadsList:t,uploadCancel:n,downloadsList:o,downloadCancel:s}=(0,a.Y)(),[l,c]=(0,u.useState)(!0),d=t.length,h=o.length;return e&&(0!==d||0!==h)?l?(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.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[d>0?(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 uploads (",d,")"]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(f.mli,{})})]}),t.map(e=>{let t=k(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:e.path}),(0,r.jsx)(i.zxk,{tip:"Cancel file upload",variant:"ghost",size:"none",onClick:()=>n(e),children:(0,r.jsx)(f.PcV,{})})]}),(0,r.jsx)(i.kod,{variant:"accent",value:e.loaded,max:e.size,className:1===t?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"Processing":"Uploading"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*t).toFixed(0),"%"]})]})]},e.path)})]}):null,h>0?(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===d?(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(f.mli,{})}):null]}),o.map(e=>{let t=k(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:e.path}),(0,r.jsx)(i.zxk,{tip:"Cancel file download",variant:"ghost",size:"none",onClick:()=>s(e),children:(0,r.jsx)(f.PcV,{})})]}),(0,r.jsx)(i.kod,{variant:"accent",value:e.loaded,max:e.size,className:1===t?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"Processing":"Downloading"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*t).toFixed(0),"%"]})]})]},e.path)})]}):null]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsxs)(i.zxk,{onClick:()=>c(!0),className:"flex gap-3",children:[(0,r.jsx)(i.xgg,{}),d?(0,r.jsxs)(i.xvT,{className:"flex gap-1",children:[d,(0,r.jsx)(f.R$6,{className:"opacity-50 scale-75 relative top-px"})]}):null,h?(0,r.jsxs)(i.xvT,{className:"flex gap-1",children:[h&&h,(0,r.jsx)(f.vzB,{className:"opacity-50 scale-75"})]}):null]})}):null}function _(e){let{children:t}=e;return(0,r.jsx)(c.w,{children:(0,r.jsx)(d.iV,{children:(0,r.jsx)(o.Tu,{children:(0,r.jsx)(s.x,{children:(0,r.jsx)(l.x,{children:(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(j,{}),(0,r.jsx)(S,{}),(0,r.jsx)(o.xQ,{}),t]})})})})})})}function C(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:p._,children:(0,r.jsx)(_,{children:(0,r.jsx)(t,{...n})})})}},80446:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{UQy:function(){return ld},vF:function(){return lm},Qdk:function(){return lp},o48:function(){return lf},hcY:function(){return _a},tU3:function(){return _n},zXq:function(){return _w},juT:function(){return Sz},Z58:function(){return _3},WVB:function(){return cH},zxk:function(){return lu},EKh:function(){return lP},vRO:function(){return C_},QHy:function(){return Cp},TaT:function(){return Cl},eQh:function(){return lR},HfT:function(){return Cg},wEc:function(){return _6},ncR:function(){return Sp},VqE:function(){return ud},h_2:function(){return cK},Xiv:function(){return cY},Juw:function(){return cG},KpP:function(){return cX},fhJ:function(){return pq},XOF:function(){return Sh},S$c:function(){return SS},QBj:function(){return CC},yEL:function(){return _g},cB7:function(){return Sb},ZqQ:function(){return Sx},IKw:function(){return S_},KZS:function(){return Sw},zsw:function(){return h7},__J:function(){return dt},rUS:function(){return di},Qjf:function(){return da},xgg:function(){return Eu},TRl:function(){return dl},kFS:function(){return cU},FzK:function(){return Cd},Clw:function(){return cB},PD$:function(){return CP},Wxm:function(){return f5},uDJ:function(){return SM},wFK:function(){return ST},s_4:function(){return t3},nvN:function(){return t2},u5Q:function(){return _5},j4H:function(){return f1},hmz:function(){return f2},J2e:function(){return dT},kod:function(){return dU},xrM:function(){return ul},PhF:function(){return f3},Z0O:function(){return cF},DLL:function(){return _J},KJW:function(){return SZ},rsf:function(){return hd},D_D:function(){return _U},xf5:function(){return CU},iA_:function(){return SC},mQc:function(){return fy},nUL:function(){return fw},drW:function(){return fx},SPt:function(){return fb},t6k:function(){return Cy},xvT:function(){return t1},ua7:function(){return ls},mPE:function(){return _W},XxW:function(){return k9},PF9:function(){return Se},m2c:function(){return Sr},YKL:function(){return Sn},QUh:function(){return _0},weF:function(){return _A},YNn:function(){return _K},DmW:function(){return _Y},jrD:function(){return Ct},x5w:function(){return Ce},JWi:function(){return CH},O9T:function(){return vk},vQq:function(){return kQ},E5z:function(){return k0},HLH:function(){return C$},NrH:function(){return j8},k9c:function(){return Er},EJC:function(){return CW},leQ:function(){return k3},Ztc:function(){return _Z},XAn:function(){return Ei},Vkc:function(){return cV},sWj:function(){return j6},ort:function(){return Eo},xLV:function(){return j9},S5V:function(){return _7},okB:function(){return En},AEA:function(){return Et},z$:function(){return t4},XBW:function(){return Es},GXN:function(){return Ea},I13:function(){return k2},cEb:function(){return fj},y70:function(){return fq},OHV:function(){return kG},OPV:function(){return kY},RFt:function(){return k$},$Gg:function(){return k1},_4u:function(){return CV},Wdu:function(){return Cz},Y97:function(){return _t},c2j:function(){return _r},WsO:function(){return _v},Uu5:function(){return CI},fb0:function(){return CB},oy6:function(){return CF},BL0:function(){return j7},mvJ:function(){return _8},ivg:function(){return Ee}});var s,l,u,c,d,f,h,p,m,v,g,y=n(52322),x=n(2784),b=n.t(x,2),w=n(7896),j=n(34540),E=n(26215),k=n(99575);function S(e){let t=e+"CollectionProvider",[n,r]=(0,j.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,E.e)(t,i.collectionRef);return x.createElement(k.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=x.useRef(null),s=(0,E.e)(t,a),c=o(l,n);return x.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),x.createElement(k.g7,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=x.useRef(null),o=x.useRef(new Map).current;return x.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}var _=n(41816),C=n(73597),O=n(72130),M=n(64680),T=n(28245),A=n(26074);let P="Collapsible",[N,R]=(0,j.b)(P),[D,L]=N(P),F=(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,C.T)({prop:r,defaultProp:i,onChange:a});return(0,x.createElement)(D,{scope:n,disabled:o,contentId:(0,A.M)(),open:l,onOpenToggle:(0,x.useCallback)(()=>u(e=>!e),[u])},(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":B(l),"data-disabled":o?"":void 0},s,{ref:t})))}),z=(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=L("CollapsibleTrigger",n);return(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":B(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},r,{ref:t,onClick:(0,_.M)(e.onClick,i.onOpenToggle)}))}),V="CollapsibleContent",I=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=L(V,e.__scopeCollapsible);return(0,x.createElement)(T.z,{present:n||i.open},({present:e})=>(0,x.createElement)(Z,(0,w.Z)({},r,{ref:t,present:e})))}),Z=(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=L(V,n),[s,l]=(0,x.useState)(r),u=(0,x.useRef)(null),c=(0,E.e)(t,u),d=(0,x.useRef)(0),f=d.current,h=(0,x.useRef)(0),p=h.current,m=a.open||s,v=(0,x.useRef)(m),g=(0,x.useRef)();return(0,x.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,M.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,x.createElement)(O.WV.div,(0,w.Z)({"data-state":B(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 B(e){return e?"open":"closed"}let H="Accordion",U=["Home","End","ArrowDown","ArrowUp"],[W,q,$]=S(H),[K,Y]=(0,j.b)(H,[$,R]),G=R(),X=x.forwardRef((e,t)=>{let{type:n,...r}=e;return x.createElement(W.Provider,{scope:e.__scopeAccordion},"multiple"===n?x.createElement(er,(0,w.Z)({},r,{ref:t})):x.createElement(en,(0,w.Z)({},r,{ref:t})))});X.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[J,Q]=K(H),[ee,et]=K(H,{collapsible:!1}),en=x.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,C.T)({prop:n,defaultProp:r,onChange:i});return x.createElement(J,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:x.useCallback(()=>o&&l(""),[o,l])},x.createElement(ee,{scope:e.__scopeAccordion,collapsible:o},x.createElement(ea,(0,w.Z)({},a,{ref:t}))))}),er=x.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,C.T)({prop:n,defaultProp:r,onChange:i}),l=x.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=x.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return x.createElement(J,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},x.createElement(ee,{scope:e.__scopeAccordion,collapsible:!0},x.createElement(ea,(0,w.Z)({},o,{ref:t}))))}),[ei,eo]=K(H),ea=x.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=x.useRef(null),a=(0,E.e)(o,t),s=q(n),l=(0,_.M)(e.onKeyDown,e=>{var t;if(!U.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)}let l=a%o;null===(t=r[l].ref.current)||void 0===t||t.focus()});return x.createElement(ei,{scope:n,disabled:r},x.createElement(W.Slot,{scope:n},x.createElement(O.WV.div,(0,w.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),es="AccordionItem",[el,eu]=K(es),ec=x.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,o=eo(es,n),a=Q(es,n),s=G(n),l=(0,A.M)(),u=r&&a.value.includes(r)||!1,c=o.disabled||e.disabled;return x.createElement(el,{scope:n,open:u,disabled:c,triggerId:l},x.createElement(F,(0,w.Z)({"data-state":u?"open":"closed"},s,i,{ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})))}),ed=x.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu("AccordionHeader",n);return x.createElement(O.WV.h3,(0,w.Z)({"data-state":i.open?"open":"closed","data-disabled":i.disabled?"":void 0},r,{ref:t}))}),ef="AccordionTrigger",eh=x.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu(ef,n),o=et(ef,n),a=G(n);return x.createElement(W.ItemSlot,{scope:n},x.createElement(z,(0,w.Z)({"aria-disabled":i.open&&!o.collapsible||void 0,id:i.triggerId},a,r,{ref:t})))}),ep=x.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu("AccordionContent",n),o=G(n);return x.createElement(I,(0,w.Z)({role:"region","aria-labelledby":i.triggerId},o,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});var em=n(82851),ev=n(83317);function eg(e){return e.split("-")[0]}function ey(e){return e.split("-")[1]}function ex(e){return["top","bottom"].includes(eg(e))?"x":"y"}function eb(e){return"y"===e?"height":"width"}function ew(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=ex(t),u=eb(l),c=i[u]/2-o[u]/2,d="x"===l;switch(eg(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(ey(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: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}=ew(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=eE(r),c={x:i,y:o},d=ex(a),f=ey(a),h=eb(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],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),b=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0;0===b&&(b=s.floating[h]);let w=u[m],j=b-p[h]-u[v],E=b/2-p[h]/2+(g/2-y/2),k=eC(w,e_(E,j)),S=("start"===f?u[m]:u[v])>0&&E!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?EeM[e])}let eA={start:"end",end:"start"};function eP(e){return e.replace(/start|end/g,e=>eA[e])}let eN=["top","right","bottom","left"];eN.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eR=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=eg(a),x=p||(y!==u&&v?function(e){let t=eT(e);return[eP(e),t,eP(t)]}(u):[eT(u)]),b=[u,...x],w=await eS(t,g),j=[],E=(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=ey(e),i=ex(e),o=eb(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=eT(a)),{main:a,cross:eT(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));j.push(w[e],w[t])}if(E=[...E,{placement:a,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=b[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(o=E.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 eD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eL(e){return eN.some(t=>e[t]>=0)}let eF=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=eD(await eS(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eL(t)}}}case"escaped":{let t=eD(await eS(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:eL(t)}}}default:return{}}}}},ez=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=eg(n),s=ey(n),l="x"===ex(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 eV(e){return"x"===e?"y":"x"}let eI=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 eS(t,l),d=ex(eg(i)),f=eV(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=eC(h+c["y"===d?"top":"left"],e_(h,h-c[e]))}a&&(p=eC(p+c["y"===f?"top":"left"],e_(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eZ=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=ex(i),f=eV(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,x,b;let e="y"===d?"width":"height",t=["top","left"].includes(eg(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!=(x=null==(b=a.offset)?void 0:b[f])?x:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function eB(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eH(e){if(null==e)return window;if(!eB(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eU(e){return eH(e).getComputedStyle(e)}function eW(e){return eB(e)?"":e?(e.nodeName||"").toLowerCase():""}function eq(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function e$(e){return e instanceof eH(e).HTMLElement}function eK(e){return e instanceof eH(e).Element}function eY(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eH(e).ShadowRoot||e instanceof ShadowRoot)}function eG(e){let{overflow:t,overflowX:n,overflowY:r}=eU(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function eX(e){let t=/firefox/i.test(eq()),n=eU(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 eJ(){return!/^((?!chrome|android).)*safari/i.test(eq())}let eQ=Math.min,e0=Math.max,e1=Math.round;function e2(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&&e$(e)&&(l=e.offsetWidth>0&&e1(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&e1(s.height)/e.offsetHeight||1);let c=eK(e)?eH(e):window,d=!eJ()&&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 e4(e){return((e instanceof eH(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function e3(e){return eK(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function e5(e){return e2(e4(e)).left+e3(e).scrollLeft}function e6(e){return"html"===eW(e)?e:e.assignedSlot||e.parentNode||(eY(e)?e.host:null)||e4(e)}function e8(e){return e$(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function e7(e){let t=eH(e),n=e8(e);for(;n&&["table","td","th"].includes(eW(n))&&"static"===getComputedStyle(n).position;)n=e8(n);return n&&("html"===eW(n)||"body"===eW(n)&&"static"===getComputedStyle(n).position&&!eX(n))?t:n||function(e){let t=e6(e);for(eY(t)&&(t=t.host);e$(t)&&!["html","body"].includes(eW(t));){if(eX(t))return t;t=t.parentNode}return null}(e)||t}function e9(e){if(e$(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e2(e);return{width:t.width,height:t.height}}function te(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=e6(t);return["html","body","#document"].includes(eW(n))?t.ownerDocument.body:e$(n)&&eG(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=eH(r),a=i?[o].concat(o.visualViewport||[],eG(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(te(a))}function tt(e,t,n){return"viewport"===t?ek(function(e,t){let n=eH(e),r=e4(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=eJ();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):eK(t)?function(e,t){let n=e2(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):ek(function(e){var t;let n=e4(e),r=e3(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=e0(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=e0(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+e5(e),l=-r.scrollTop;return"rtl"===eU(i||n).direction&&(s+=e0(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(e4(e)))}let tn={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=te(e),n=["absolute","fixed"].includes(eU(e).position)&&e$(e)?e7(e):e;return eK(n)?t.filter(e=>eK(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&eY(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==eW(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=tt(t,n,i);return e.top=e0(r.top,e.top),e.right=eQ(r.right,e.right),e.bottom=eQ(r.bottom,e.bottom),e.left=e0(r.left,e.left),e},tt(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=e$(n),o=e4(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==eW(n)||eG(o))&&(a=e3(n)),e$(n))){let e=e2(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:eK,getDimensions:e9,getOffsetParent:e7,getDocumentElement:e4,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=e$(t),i=e4(t),o=e2(e,r&&function(e){let t=e2(e);return e1(t.width)!==e.offsetWidth||e1(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==eW(t)||eG(i))&&(a=e3(t)),e$(t)){let e=e2(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=e5(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,e7(n),r),floating:{...e9(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eU(e).direction};function tr(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?[...eK(e)?te(e):[],...te(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}),eK(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e2(e):null;return s&&function t(){let r=e2(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 ti=(e,t,n)=>ej(e,t,{platform:tn,...n});var to=n(28316),ta="undefined"!=typeof document?x.useLayoutEffect:x.useEffect;function ts(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=x.useRef(null),a=x.useRef(null),s=function(e){let t=x.useRef(e);return ta(()=>{t.current=e}),t}(i),l=x.useRef(null),[u,c]=x.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=x.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=x.useCallback(()=>{o.current&&a.current&&ti(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&to.flushSync(()=>{c(e)})})},[d,n,r]);ta(()=>{p.current&&h()},[h]);let p=x.useRef(!1);ta(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=x.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=x.useCallback(e=>{o.current=e,m()},[m]),g=x.useCallback(e=>{a.current=e,m()},[m]),y=x.useMemo(()=>({reference:o,floating:a}),[]);return x.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tl=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 eO({element:t.current,padding:n}).fn(e)}else if(t)return eO({element:t,padding:n}).fn(e);return{}}}},tu=(0,x.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,x.createElement)(O.WV.svg,(0,w.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,x.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tc(e){let[t,n]=(0,x.useState)(void 0);return(0,M.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 td="Popper",[tf,th]=(0,j.b)(td),[tp,tm]=tf(td),tv=(0,x.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=tm("PopperAnchor",n),a=(0,x.useRef)(null),s=(0,E.e)(t,a);return(0,x.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,x.createElement)(O.WV.div,(0,w.Z)({},i,{ref:s}))}),tg="PopperContent",[ty,tx]=tf(tg),[tb,tw]=tf(tg,{hasParent:!1,positionUpdateFns:new Set}),tj=(0,x.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:w=!0,...j}=e,k=tm(tg,c),[S,_]=(0,x.useState)(null),C=(0,E.e)(t,e=>_(e)),[T,A]=(0,x.useState)(null),P=tc(T),N=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,R=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,D="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},L=Array.isArray(v)?v:[v],F=L.length>0,z={padding:D,boundary:L.filter(t_),altBoundary:F},{reference:V,floating:I,strategy:Z,x:B,y:H,placement:U,middlewareData:W,update:q}=ts({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tr,middleware:[ez({mainAxis:f+R,alignmentAxis:p}),w?eI({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eZ():void 0,...z}):void 0,T?tl({element:T,padding:m}):void 0,w?eR({...z}):void 0,tC({arrowWidth:N,arrowHeight:R}),b?eF({strategy:"referenceHidden"}):void 0].filter(tS)});(0,M.b)(()=>{V(k.anchor)},[V,k.anchor]);let $=null!==B&&null!==H,[K,Y]=tO(U),G=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(o=W.arrow)||void 0===o?void 0:o.y,J=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[Q,ee]=(0,x.useState)();(0,M.b)(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:et,positionUpdateFns:en}=tw(tg,c),er=!et;(0,x.useLayoutEffect)(()=>{if(!er)return en.add(q),()=>{en.delete(q)}},[er,en,q]),(0,x.useLayoutEffect)(()=>{er&&$&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,$,en]);let ei={"data-side":K,"data-align":Y,...j,ref:C,style:{...j.style,animation:$?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,x.createElement)("div",{ref:I,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:$?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,x.createElement)(ty,{scope:c,placedSide:K,onArrowChange:A,arrowX:G,arrowY:X,shouldHideArrow:J},er?(0,x.createElement)(tb,{scope:c,hasParent:!0,positionUpdateFns:en},(0,x.createElement)(O.WV.div,ei)):(0,x.createElement)(O.WV.div,ei)))}),tE={top:"bottom",right:"left",bottom:"top",left:"right"},tk=(0,x.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tx("PopperArrow",n),o=tE[i.placedSide];return(0,x.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,x.createElement)(tu,(0,w.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function tS(e){return void 0!==e}function t_(e){return null!==e}let tC=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]=tO(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="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function tO(e){let[t,n="center"]=e.split("-");return[t,n]}let tM=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,x.useState)(null);return(0,x.createElement)(tp,{scope:t,anchor:r,onAnchorChange:i},n)};var tT=n(6500);let tA=(0,x.forwardRef)((e,t)=>(0,x.createElement)(O.WV.span,(0,w.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}}))),[tP,tN]=(0,j.b)("Tooltip",[th]),tR=th(),tD="tooltip.open",[tL,tF]=tP("TooltipProvider"),tz="Tooltip",[tV,tI]=tP(tz),tZ="TooltipTrigger",tB=(0,x.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=tI(tZ,n),o=tF(tZ,n),a=tR(n),s=(0,x.useRef)(null),l=(0,E.e)(t,s,i.onTriggerChange),u=(0,x.useRef)(!1),c=(0,x.useRef)(!1),d=(0,x.useCallback)(()=>u.current=!1,[]);return(0,x.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,x.createElement)(tv,(0,w.Z)({asChild:!0},a),(0,x.createElement)(O.WV.button,(0,w.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,_.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,_.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,_.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,_.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,_.M)(e.onBlur,i.onClose),onClick:(0,_.M)(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tH="TooltipPortal",[tU,tW]=tP(tH,{forceMount:void 0}),tq="TooltipContent",t$=(0,x.forwardRef)((e,t)=>{let n=tW(tq,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=tI(tq,e.__scopeTooltip);return(0,x.createElement)(T.z,{present:r||a.open},a.disableHoverableContent?(0,x.createElement)(tX,(0,w.Z)({side:i},o,{ref:t})):(0,x.createElement)(tK,(0,w.Z)({side:i},o,{ref:t})))}),tK=(0,x.forwardRef)((e,t)=>{let n=tI(tq,e.__scopeTooltip),r=tF(tq,e.__scopeTooltip),i=(0,x.useRef)(null),o=(0,E.e)(t,i),[a,s]=(0,x.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,x.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,x.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=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}}(r,n.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=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()),u=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)}([a,...l]);s(u),d(!0)},[d]);return(0,x.useEffect)(()=>()=>f(),[f]),(0,x.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,x.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;c&&(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,x.createElement)(tX,(0,w.Z)({},e,{ref:o}))}),[tY,tG]=tP(tz,{isInside:!1}),tX=(0,x.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tI(tq,n),u=tR(n),{onClose:c}=l;return(0,x.useEffect)(()=>(document.addEventListener(tD,c),()=>document.removeEventListener(tD,c)),[c]),(0,x.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,x.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,x.createElement)(tj,(0,w.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,x.createElement)(k.A4,null,r),(0,x.createElement)(tY,{scope:n,isInside:!0},(0,x.createElement)(tA,{id:l.contentId,role:"tooltip"},i||r))))}),tJ=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tF(tz,e.__scopeTooltip),u=tR(t),[c,d]=(0,x.useState)(null),f=(0,A.M)(),h=(0,x.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,x.useRef)(!1),[g=!1,y]=(0,C.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(tD))):l.onClose(),null==o||o(e)}}),b=(0,x.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),w=(0,x.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),j=(0,x.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),E=(0,x.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,x.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,x.createElement)(tM,u,(0,x.createElement)(tV,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,x.useCallback)(()=>{l.isOpenDelayed?E():w()},[l.isOpenDelayed,E,w]),onTriggerLeave:(0,x.useCallback)(()=>{p?j():window.clearTimeout(h.current)},[j,p]),onOpen:w,onClose:j,disableHoverableContent:p},n))},tQ=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=tI(tH,t);return(0,x.createElement)(tU,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(tT.h,{asChild:!0,container:i},r)))},t0=(0,em.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"}}),t1=x.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,y.jsx)(n,{ref:t,className:(0,em.cx)(r,t0({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t2=x.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,y.jsx)(t1,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,em.cx)("leading-relaxed md:leading-relaxed",e.className)})}),t4=(0,em.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),t3=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:t4({className:n}),...r})});var t5=n(34406);let t6=(void 0===t5||t5.env,"production"),t8=1/60*1e3,t7="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),t9="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(t7()),t8),ne=!0,nt=!1,nn=!1,nr={delta:0,timestamp:0},ni=["read","update","preRender","render","postRender"],no=ni.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;nnt=!0),e),{}),na=ni.reduce((e,t)=>{let n=no[t];return e[t]=(e,t=!1,r=!1)=>(nt||nd(),n.schedule(e,t,r)),e},{}),ns=ni.reduce((e,t)=>(e[t]=no[t].cancel,e),{}),nl=ni.reduce((e,t)=>(e[t]=()=>no[t].process(nr),e),{}),nu=e=>no[e].process(nr),nc=e=>{nt=!1,nr.delta=ne?t8:Math.max(Math.min(e-nr.timestamp,40),1),nr.timestamp=e,nn=!0,ni.forEach(nu),nn=!1,nt&&(ne=!1,t9(nc))},nd=()=>{nt=!0,ne=!0,nn||t9(nc)},nf=()=>nr,nh="undefined"!=typeof document,np=nh?x.useLayoutEffect:x.useEffect;function nm(){let e=(0,x.useRef)(!1);return np(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nv=(0,x.createContext)(null);function ng(e){let t=(0,x.useRef)(null);return null===t.current&&(t.current=e()),t.current}class ny extends x.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 nx({children:e,isPresent:t}){let n=(0,x.useId)(),r=(0,x.useRef)(null),i=(0,x.useRef)({width:0,height:0,top:0,left:0});return(0,x.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,x=n?Symbol.for("react.responder"):60118,b=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 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=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,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)===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===x||e.$$typeof===b||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:(h?-1:1)*(1/0);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();++t-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));t:for(;++c0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:function(e,t,n){var r=n(17297),i=n(33812);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var y=-1,x=p[0];t:for(;++yi?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=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new r}else p=t?[]:h;t:for(;++u=i?e:r(e,t,n)}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))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)}},79493: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},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},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))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},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}},66024:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r=t||n<0||v&&r>=c}function b(){var e,n,r,o=i();if(x(o))return w(o);f=setTimeout(b,(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 j(){var e,n=i(),r=x(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,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),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),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,"")}},17335:function(e,t,n){var r=n(85246),i=n(62034),o=n(36060),a=n(93746),s=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,n){e.exports=n(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},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}},3440:function(e,t,n){var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},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}},30898:function(e,t,n){var r=n(50343),i=n(88390),o=n(36060),a=n(5642),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},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)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&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},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},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}},4714:function(e,t,n){var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},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}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(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}},43679:function(e,t,n){var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},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)}},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},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},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},65680:function(e,t,n){var r=n(2229),i=n(17606),o=n(23059);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(29097),c=n(76939),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},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},829:function(e,t,n){var r=n(62034),i=n(23813),o=n(36060),a=n(82406),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,n){var r=n(36473),i=n(89419),o=n(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=r(s,t);++n"+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:x})=>{let[b,w]=(0,r.useState)(()=>p(l,c)),[j,E]=(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()},[]),_=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),C=(0,r.useCallback)(t=>{let r=v(t);E(r),"system"===b&&n&&!e&&S("system")},[b,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(C),C(e),()=>e.removeListener(C)},[C]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&_(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[_]),(0,r.useEffect)(()=>{S(null!=e?e:b)},[e,b]);let O=(0,r.useMemo)(()=>({theme:b,setTheme:_,forcedTheme:e,resolvedTheme:"system"===b?j:b,themes:n?[...u,"system"]:u,systemTheme:n?j:void 0}),[b,_,e,j,n,u]);return r.createElement(s.Provider,{value:O},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:x}),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")},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(73221)}])},4941: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(58121),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)},82459:function(e,t,n){"use strict";n.d(t,{F:function(){return g}});var r=n(52322),i=n(58121),o=n(88242),a=n(9969),s=n(71930),l=n(5632),u=n(13242),c=n(19513),d=n(33571),f=n(98358),h=n(31781),p=n(24801),m=n(83035),v=n(2784);function g(e){var t,n;let{id:g,address:y,publicKey:x,contentProps:b,buttonProps:w}=e,j=(0,l.useRouter)(),{setFilter:E,resetFilters:k}=(0,c.l)(),{setFilter:S,resetFilters:_}=(0,u.G)(),C=(0,a.uf)(),O=(0,a.s2)(),M=(0,f.l)(),T=(0,d.I)(),A=function(){let{openConfirmDialog:e}=(0,m.Rh)(),t=(0,a.IK)();return(0,v.useCallback)(n=>e({title:"Delete contract",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.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)("Error deleting contract."),(0,i.OPV)("Successfully deleted contract.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...w,children:(0,r.jsx)(o.iG7,{})}),contentProps:{align:"start",...b,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:["Contract ",x.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{k(),E({id:"addressContains",value:y,label:"Address contains ".concat(y)}),j.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{_(),S((0,h.e)(y)),j.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{_(),S((0,p.V)(x)),j.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(null===(t=C.data)||void 0===t?void 0:t.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{onSelect:()=>M([],[y]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove host address from blocklist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>M([y],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add host address to blocklist"]}),(null===(n=O.data)||void 0===n?void 0:n.find(e=>e===x))?(0,r.jsxs)(i.Xiv,{onSelect:()=>T([],[x]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove host public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>T([x],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add host public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>A(g),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.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)(o.olJ,{})}),"Contract ID"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(x,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(y,"host address"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host address"]})]})}},93216:function(e,t,n){"use strict";n.d(t,{F:function(){return M}});var r=n(52322),i=n(58121),o=n(4941);let a={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)(o.WD,{currentPage:t,commandPage:a,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(),n=t-(0,i.NrH)(1);return e.startTime>=n}},{id:"formationDate",value:"week",label:"formed in the last week",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(1);return e.startTime>=n}},{id:"formationDate",value:"twoWeeks",label:"formed in the last two weeks",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(2);return e.startTime>=n}},{id:"formationDate",value:"month",label:"formed in the last month",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(1);return e.startTime>=n}},{id:"formationDate",value:"twoMonths",label:"formed in the last two months",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(2);return e.startTime>=n}},{id:"formationDate",value:"year",label:"formed in the last year",fn:e=>{let t=new Date().getTime(),n=t-(0,i.ivg)(1);return e.startTime>=n}}];function d(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(o.fu,{currentPage:t,commandPage:u,children:c.map(e=>(0,r.jsx)(o.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(),n=t-(0,i.NrH)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"week",label:"renewed in the last week",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"twoWeeks",label:"renewed in the last two weeks",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(2);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"month",label:"renewed in the last month",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"twoMonths",label:"renewed in the last two months",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(2);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"year",label:"renewed in the last year",fn:e=>{let t=new Date().getTime(),n=t-(0,i.ivg)(1);return e.isRenewed&&e.startTime>=n}}];function p(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(o.fu,{currentPage:t,commandPage:f,children:h.map(e=>(0,r.jsx)(o.WD,{currentPage:t,commandPage:f,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}var m=n(83035),v=n(31781);let g={namespace:"contracts/filterAddress",label:"Contracts filter by address"};function y(e){let{select:t,currentPage:n}=e,{openDialog:i}=(0,m.Rh)(),a=(0,v.e)("");return(0,r.jsx)(o.fu,{currentPage:n,commandPage:g,children:(0,r.jsx)(o.WD,{currentPage:n,commandPage:g,onSelect:()=>{t(),i("contractsFilterAddress")},children:a.label})})}function x(e){let{select:t,currentPage:n,parentPage:i,commandPage:a}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(o.Ul,{currentPage:n,parentPage:i,commandPage:a,onSelect:()=>{t(),s("contractsFilterAddress")},children:g.label})}var b=n(24801);let w={namespace:"contracts/filterPublicKey",label:"Contracts filter by public key"};function j(e){let{select:t,currentPage:n}=e,i=(0,b.V)(""),{openDialog:a}=(0,m.Rh)();return(0,r.jsx)(o.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(o.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),a("contractsFilterPublicKey")},children:i.label})})}function E(e){let{select:t,currentPage:n,parentPage:i,commandPage:a}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(o.Ul,{currentPage:n,parentPage:i,commandPage:a,onSelect:()=>{t(),s("contractsFilterPublicKey")},children:w.label})}function k(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)(l,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n}),(0,r.jsx)(p,{currentPage:t,select:n})]})}let S={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{currentPage:t,parentPage:n,commandPage:S,select:s}),(0,r.jsx)(E,{currentPage:t,parentPage:n,commandPage:S,select:s}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(u)},children:u.label}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(a)},children:a.label}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(f)},children:f.label})]})}var C=n(13242),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,C.G)(),l=(0,O.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(k,{currentPage:t,select:l})]})}},31781:function(e,t,n){"use strict";n.d(t,{e:function(){return u},p:function(){return f}});var r=n(52322),i=n(58121),o=n(13242),a=n(9156),s=n(24511),l=n(83035);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,o.G)(),p=(0,a.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"})]})})})}},24801:function(e,t,n){"use strict";n.d(t,{C:function(){return f},V:function(){return u}});var r=n(52322),i=n(58121),o=n(13242),a=n(9156),s=n(24511),l=n(83035);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,o.G)(),p=(0,a.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"})]})})})}},4370:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(13242),i=n(34658);function o(){var e;let t=(0,i.w)(),{datasetCount:n,isLoading:o}=(0,r.G)(),a=t.data&&!o&&n{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:["Host ",g.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w({id:"addressContains",value:v,label:"Address contains ".concat((0,i.$Gg)(v,20))}),b.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w((0,m.K)(g)),b.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{k(),E((0,h.e)(v)),b.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{k(),E((0,p.V)(g)),b.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>M.post({payload:{hostKey:g,hostIP:v,timeout:(0,i.XBW)(30)}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o._Eq,{})}),"Rescan host"]}),(null===(t=S.data)||void 0===t?void 0:t.find(e=>e===v))?(0,r.jsxs)(i.Xiv,{onSelect:()=>C([],[v]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove address from blocklist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>C([v],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add address to blocklist"]}),(null===(n=_.data)||void 0===n?void 0:n.find(e=>e===g))?(0,r.jsxs)(i.Xiv,{onSelect:()=>O([],[g]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>O([g],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add public key to allowlist"]})]})}},34444:function(e,t,n){"use strict";n.d(t,{T:function(){return j},N:function(){return w}});var r=n(52322),i=n(2784),o=n(58121),a=n(96206),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.xf5)(1)).times((0,o.S5V)(1)).div(1e24).times((null==n?void 0:n.usd)||1).toFixed(2),"/TB"):"".concat((0,a.Vz)(new(l())(t.settings.storageprice).times((0,o.xf5)(1)).times((0,o.S5V)(1)),{fixed:0}),"/TB"),i="".concat((0,a.vW)(t.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).toNumber())," utilized"),s="".concat((0,a.vW)(t.settings.remainingstorage)," / ").concat((0,a.vW)(t.settings.totalstorage)," available");return"".concat((0,o.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}),o=(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",o),h(()=>{o()},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]),[t,n]},d=function(e,t,n,r){let o=(0,i.useRef)(t);h(()=>{o.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 a=e=>o.current(e);return i.addEventListener(e,a,r),()=>{i.removeEventListener(e,a,r)}},[e,n,r])};let f="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;var h=f,p=n(2850),m=n(25237),v=n.n(m);let g=v()(()=>Promise.all([n.e(546),n.e(508),n.e(167),n.e(764),n.e(17)]).then(n.bind(n,45017)),{loadableGenerated:{webpack:()=>[45017]},ssr:!1}),y=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(g,{...e,forwardRef:t})});var x=n(10917),b=n(47025);let w={moveToLocation:(e,t)=>null};function j(e){let{activeHost:t,hosts:n,onMount:o,onHostClick:a,onHostHover:s}=e,d=(0,b.BW)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,i.useRef)(null),h=(0,i.useRef)(w),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)(()=>{h.current.moveToLocation=m},[m]),(0,p.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)(()=>{o&&o(h.current)},[]);let[v,{height:g,width:j}]=c(),E=(0,i.useMemo)(()=>n||[],[n]);return(0,r.jsx)("div",{ref:v,className:"w-full h-full",children:(0,r.jsx)(y,{ref:f,width:j,height:g,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:E,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,x.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==a||a(e.publicKey,e.location))},pointsMerge:!1})})}},18006:function(e,t,n){"use strict";n.d(t,{L:function(){return M}});var r=n(52322),i=n(4941),o=n(83035),a=n(2320);let s={namespace:"hosts/filterAddress",label:"Hosts filter by address"};function l(e){let{select:t,currentPage:n}=e,{openDialog:l}=(0,o.Rh)(),u=(0,a.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:a,commandPage:l}=e,{openDialog:u}=(0,o.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:a,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 x=n(91641),b=n(54155);let w={namespace:"hosts/filterPublicKey",label:"Hosts filter by public key"};function j(e){let{select:t,currentPage:n}=e,{openDialog:a}=(0,o.Rh)(),s=(0,b.K)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),a("hostsFilterPublicKey")},children:s.label})})}function E(e){let{select:t,currentPage:n,parentPage:a,commandPage:s}=e,{openDialog:l}=(0,o.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:a,commandPage:s,onSelect:()=>{t(),l("hostsFilterPublicKey")},children:w.label})}function k(e){let{currentPage:t,select:n}=e,{autopilot:i}=(0,x.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 _(e){let{currentPage:t,parentPage:n,pushPage:o,select:a}=e,{autopilot:s}=(0,x.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===s.status&&(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(v)},children:v.label}),(0,r.jsx)(E,{currentPage:t,parentPage:n,commandPage:S,select:a}),(0,r.jsx)(u,{currentPage:t,parentPage:n,commandPage:S,select:a}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(h)},children:h.label}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(c)},children:c.label})]})}var C=n(19513),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,C.l)(),l=(0,O.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(k,{currentPage:t,pushPage:i,select:l})]})}},2320:function(e,t,n){"use strict";n.d(t,{g:function(){return f},q:function(){return u}});var r=n(52322),i=n(58121),o=n(19513),a=n(9156),s=n(24511),l=n(83035);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,o.l)(),p=(0,a.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"})]})})})}},54155:function(e,t,n){"use strict";n.d(t,{K:function(){return u},a:function(){return f}});var r=n(52322),i=n(58121),o=n(19513),a=n(9156),s=n(24511),l=n(83035);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,o.l)(),p=(0,a.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"})]})})})}},71930:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(9969);let i={home:"/",files:{index:"/files"},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"},node:{index:"/node"},login:"/login"},o=r.HI},91641:function(e,t,n){"use strict";n.d(t,{w:function(){return u},q:function(){return l}});var r=n(52322),i=n(2784),o=n(58121),a=n(9969);let s=(0,i.createContext)({}),l=()=>(0,i.useContext)(s);function u(e){let{children:t}=e,n=function(){let e=function(){let e=(0,a.YX)({config:{swr:{dedupingInterval:(0,o.XBW)(5),revalidateOnFocus:!1,refreshInterval:e=>e?(0,o.XBW)(60):(0,o.XBW)(1)}}}),[t,n]=(0,i.useState)("init");return(0,i.useEffect)(()=>{if(e.isLoading)n("init");else if(e.isValidating)return;else if(e.error)n("off");else if(e.data){let t="object"==typeof e.data;n(t?"on":"off")}},[e]),{status:t,state:e}}();return{autopilot:e}}();return(0,r.jsx)(s.Provider,{value:n,children:t})}},17286:function(e,t,n){"use strict";n.d(t,{iV:function(){return Z},ZR:function(){return V}});var r=n(52322),i=n(2784),o=n(58121),a=n(6391),s=n.n(a),l=n(9969),u=n(96206);function c(e){let{isAutopilotEnabled:t,advancedDefaults:n,showAdvanced:i,redundancyMultiplier:a,includeRedundancyMaxStoragePrice:l,includeRedundancyMaxUploadPrice:u,storageAverage:c,uploadAverage:h,downloadAverage:p,contractAverage:m}=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)(o.EKh,{children:null==n?void 0:n.autopilotContractSet}),"."]}),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},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,o.y70)(new(s())((0,o.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"}:{}},defragThreshold:{type:"number",category:"wallet",title:"Defrag threshold",description:(0,r.jsx)(r.Fragment,{children:"The threshold after which autopilot will defrag wallet outputs."}),units:"outputs",suggestion:null==n?void 0:n.defragThreshold,suggestionTip:"Defaults to 1,000.",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 to store 1 TB per month."}),units:"SC/TB/month",average:c,averageTip:d(l,a),after:function(e){let{form:t,fields:n}=e;return(0,r.jsx)(o.ua7,{align:"start",side:"bottom",content:f(l,a),children:(0,r.jsx)("div",{children:(0,r.jsx)(o.QBj,{size:"small",form:t,fields:n,name:"includeRedundancyMaxStoragePrice",group:!1,children:(0,r.jsxs)(o.xvT,{size:"12",weight:"medium",children:["Including ",a.toFixed(1),"x redundancy"]})})})})},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 to upload 1 TB."}),units:"SC/TB/month",average:h,averageTip:d(u,a),after:function(e){let{form:t,fields:n}=e;return(0,r.jsx)(o.ua7,{align:"start",side:"bottom",content:f(u,a),children:(0,r.jsx)("div",{children:(0,r.jsx)(o.QBj,{size:"small",form:t,fields:n,name:"includeRedundancyMaxUploadPrice",group:!1,children:(0,r.jsxs)(o.xvT,{size:"12",weight:"medium",children:["Including ",a.toFixed(1),"x redundancy"]})})})})},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/month",average:p,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:m,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"}:{}},minMaxCollateral:{category:"gouging",type:"siacoin",title:"Min max collateral",description:(0,r.jsx)(r.Fragment,{children:"The min value for max collateral in the host's price settings."}),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(s())(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(s())(e).gte((0,o.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(s())(e).gte((0,o.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(s())(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(s())(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(s())(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(s())(e).gte(t.minShards)||"must be at least equal to min shards",max:e=>new(s())(e).lt(256)||"must be less than 256"}}:{}},includeRedundancyMaxStoragePrice:{type:"boolean",title:"Include redundancy",validation:{}},includeRedundancyMaxUploadPrice:{type:"boolean",title:"Include redundancy",validation:{}}}}function d(e,t){return e?"The average price is adjusted for ".concat(t.toFixed(1),"x redundancy. Averages provided by Sia Central."):"The average price is not adjusted for redundancy. Averages provided by Sia Central."}function f(e,t){return e?(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)(o.xvT,{color:"subtle",children:["Specified max price includes the cost of"," ",t.toFixed(1),"x redundancy."]}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["Redundancy is calculated from the ratio of data shards:"," ",(0,r.jsx)(o.EKh,{children:"min shards / total shards"}),"."]})]}):"Specified max price does not include redundancy."}let h={autopilotContractSet:"",amountHosts:void 0,allowanceMonth:void 0,periodWeeks:void 0,renewWindowWeeks:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,storageTB:void 0,allowRedundantIPs:!1,maxDowntimeHours:void 0,minRecentScanFailures:void 0,defragThreshold:void 0},p={defaultContractSet:""},m={uploadPackingEnabled:!0},v={includeRedundancyMaxStoragePrice:!0,includeRedundancyMaxUploadPrice:!0},g={maxRpcPriceMillion:void 0,maxStoragePriceTBMonth:void 0,maxContractPrice:void 0,maxDownloadPriceTB:void 0,maxUploadPriceTB:void 0,minMaxCollateral:void 0,hostBlockHeightLeeway:void 0,minPriceTableValidityMinutes:void 0,minAccountExpiryDays:void 0,minMaxEphemeralAccountBalance:void 0,migrationSurchargeMultiplier:void 0},y={...h,...p,...m,...g,minShards:void 0,totalShards:void 0,...v};function x(e){return{storageTB:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,allowanceMonth:void 0,..."Mainnet"===e?{periodWeeks:new(s())(6),renewWindowWeeks:new(s())(2),amountHosts:new(s())(50),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(s())(336),minRecentScanFailures:new(s())(10),defragThreshold:new(s())(1e3)}:{periodWeeks:new(s())(6),renewWindowWeeks:new(s())(2),amountHosts:new(s())(12),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(s())(336),minRecentScanFailures:new(s())(10),defragThreshold:new(s())(1e3)}}}let b={...p,defaultContractSet:"autopilot"},w={...v},j={...m},E={...g},k=e=>Object.fromEntries(Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n&&""!==n}));function S(e,t){let n=e.defaultContractSet||(null==t?void 0:t.default)||b.defaultContractSet;return{...t,default:n}}function _(e,t){let n=new(s())(1),r=e&&t&&!e.isZero()&&!t.isZero()&&t.gte(e);return r&&(n=t.div(e)),n}function C(e,t,n){let r=_(e,t);return n?r:new(s())(1)}function O(e,t){let n=(0,o.mvJ)(t.toNumber());return e.times(n).div((0,o.S5V)(1))}function M(e,t){let n=e.div(t);return n.times((0,o.S5V)(1))}var T=n(63955),A=n(92762),P=n(80489),N=n(2850);let R="v0-config-display-options";var D=n(34658),L=n(47025),F=n(91641);let z=(0,i.createContext)({}),V=()=>(0,i.useContext)(z);function Z(e){let{children:t}=e,n=function(){var e,t,n;let a=(0,F.q)(),d="on"===a.autopilot.status,f=(0,l.e$)({disabled:!d,standalone:"configFormAutopilot",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}}),m=(0,P.a)({standalone:"configFormContractSet",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}}),g=(e={standalone:"configFormConfigApp",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...e,params:{key:R}})),z=(t={standalone:"configFormGouging",config:{swr:{refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...t,params:{key:"gouging"}})),V=(0,D.w)({standalone:"configFormRedundancy",config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),Z=(n={standalone:"configFormUploadPacking",config:{swr:{refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...n,params:{key:"uploadpacking"}})),I=(0,l.KJ)(),B=(0,L.BF)({config:{swr:{revalidateOnFocus:!1}}}),[H,U]=(0,A.Z)("v0/config/showAdvanced",{defaultValue:!1}),{shouldSyncDefaultContractSet:W,setShouldSyncDefaultContractSet:q,syncDefaultContractSet:$}=function(){let[e,t]=(0,A.Z)("v0/autopilot/syncDefaultContractSet",{defaultValue:!0}),n=(0,P.a)({config:{swr:{errorRetryCount:0}}}),a=(0,l.KJ)(),s=(0,i.useCallback)(async t=>{let i=n.data||{default:""};try{e&&t!==i.default&&(await a.put({params:{key:"contractset"},payload:S({defaultContractSet:t},n.data)}),n.mutate(),(0,o.OPV)((0,r.jsxs)(o.xvT,{children:["Default contract set has been updated to:"," ",(0,r.jsx)(o.EKh,{children:t}),"."]})))}catch(e){(0,o.OHV)(e.message),console.log(e)}},[n.data,a,e]);return{shouldSyncDefaultContractSet:e,setShouldSyncDefaultContractSet:t,syncDefaultContractSet:s}}(),K=(0,l.oe)(),Y=(0,T.cI)({mode:"all",defaultValues:y}),G=(0,i.useCallback)((e,t,n,r,i,a)=>{let l=function(e,t,n,r,i,a){let l=a?{includeRedundancyMaxStoragePrice:a.includeRedundancyMaxStoragePrice,includeRedundancyMaxUploadPrice:a.includeRedundancyMaxUploadPrice}:v,c={minShards:new(s())(i.minShards),totalShards:new(s())(i.totalShards)};return{...function(e){if(!e)return h;let t=e.contracts.set,n=(0,u.ll)(M(new(s())(e.contracts.allowance),e.contracts.period),6),r=new(s())(e.contracts.amount),i=new(s())((0,o.x5w)(e.contracts.period)),a=new(s())((0,o.x5w)(e.contracts.renewWindow)),l=new(s())((0,o.y70)(M((0,o.JWi)(e.contracts.download),e.contracts.period),2)),c=new(s())((0,o.y70)(M((0,o.JWi)(e.contracts.upload),e.contracts.period),2)),d=(0,o.JWi)(new(s())(e.contracts.storage));return{autopilotContractSet:t,allowanceMonth:n,amountHosts:r,periodWeeks:i,renewWindowWeeks:a,downloadTBMonth:l,uploadTBMonth:c,storageTB:d,allowRedundantIPs:e.hosts.allowRedundantIPs,maxDowntimeHours:new(s())(e.hosts.maxDowntimeHours),minRecentScanFailures:new(s())(e.hosts.minRecentScanFailures),defragThreshold:new(s())(e.wallet.defragThreshold)}}(e),...t?{defaultContractSet:t.default}:p,uploadPackingEnabled:n.enabled,maxStoragePriceTBMonth:(0,u.ll)(new(s())(r.maxStoragePrice).times((0,o.S5V)(1)).times((0,o.xf5)(1)).times(C(c.minShards,c.totalShards,l.includeRedundancyMaxStoragePrice)),6),maxUploadPriceTB:(0,u.ll)(new(s())(r.maxUploadPrice).times(C(c.minShards,c.totalShards,l.includeRedundancyMaxUploadPrice)),6),maxDownloadPriceTB:(0,u.ll)(r.maxDownloadPrice,6),maxContractPrice:(0,u.ll)(r.maxContractPrice,6),maxRpcPriceMillion:(0,u.ll)(r.maxRPCPrice,6).times(1e6),minMaxCollateral:(0,u.ll)(r.minMaxCollateral,6),hostBlockHeightLeeway:new(s())(r.hostBlockHeightLeeway),minPriceTableValidityMinutes:new(s())((0,o.AEA)(r.minPriceTableValidity)),minAccountExpiryDays:new(s())((0,o.okB)(r.minAccountExpiry)),minMaxEphemeralAccountBalance:(0,u.ll)(r.minMaxEphemeralAccountBalance,6),migrationSurchargeMultiplier:new(s())(r.migrationSurchargeMultiplier),...c,...l}}(e,t,n,r,i,a);return Y.reset(l),l},[Y]),X=(0,i.useMemo)(()=>[f.data,f.error,m.data,m.error,Z.data,z.data,V.data,g.data,g.error],[f.data,f.error,m.data,m.error,Z.data,z.data,V.data,g.data,g.error]),Q=(0,i.useCallback)(()=>(!d||f.data||f.error)&&z.data&&V.data&&Z.data&&(m.data||m.error)&&(g.data||g.error)?G(f.data,m.data,Z.data,z.data,V.data,g.data):null,[d,G,f.data,f.error,m.data,m.error,Z.data,z.data,V.data,g.data,g.error]),[J,ee]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if("init"!==a.autopilot.status&&!J){let e=Q();e&&ee(!0)}},[J,a.autopilot.status,Q]);let et=(0,i.useCallback)(async()=>{let e=d?await f.mutate():void 0,t=await m.mutate(),n=await z.mutate(),r=await V.mutate(),i=await Z.mutate(),a=await g.mutate();n&&r?G(e,t,i,n,r,a):(0,o.OHV)("Error fetching settings.")},[d,f,m,z,Z,V,g,G]),en=Y.watch("maxStoragePriceTBMonth"),er=Y.watch("maxDownloadPriceTB"),ei=Y.watch("maxUploadPriceTB"),eo=Y.watch("storageTB"),ea=Y.watch("downloadTBMonth"),es=Y.watch("uploadTBMonth"),el=Y.watch("minShards"),eu=Y.watch("totalShards"),ec=Y.watch("includeRedundancyMaxStoragePrice"),ed=Y.watch("includeRedundancyMaxUploadPrice"),ef=(0,i.useMemo)(()=>_(el,eu),[el,eu]),eh=(0,l.d_)(),ep=(0,i.useMemo)(()=>{var e;let t=eh.data?{...x(e=eh.data.network),...b,...w,...j,...E,..."Mainnet"===e?{minShards:new(s())(10),totalShards:new(s())(30)}:{minShards:new(s())(2),totalShards:new(s())(6)}}:void 0;return B.data?c({advancedDefaults:t,isAutopilotEnabled:d,showAdvanced:H,redundancyMultiplier:ef,includeRedundancyMaxStoragePrice:ec,includeRedundancyMaxUploadPrice:ed,storageAverage:(0,u.ll)(B.data.settings.storage_price).times((0,o.S5V)(1)).times((0,o.xf5)(1)).times(C(el,eu,ec)),uploadAverage:(0,u.ll)(B.data.settings.upload_price).times((0,o.xf5)(1)).times(C(el,eu,ed)),downloadAverage:(0,u.ll)(B.data.settings.download_price).times((0,o.xf5)(1)),contractAverage:(0,u.ll)(B.data.settings.contract_price)}):c({advancedDefaults:t,isAutopilotEnabled:d,showAdvanced:H,redundancyMultiplier:ef,includeRedundancyMaxStoragePrice:ec,includeRedundancyMaxUploadPrice:ed})},[eh.data,d,H,B.data,ef,el,eu,ec,ed]),em=(0,i.useMemo)(()=>!!d&&(null==en?void 0:en.gt(0))&&(null==eo?void 0:eo.gt(0))&&(null==er?void 0:er.gt(0))&&(null==ei?void 0:ei.gt(0)),[d,en,eo,er,ei]),ev=(0,i.useMemo)(()=>{if(!em)return new(s())(0);let e=(null==ea?void 0:ea.gt(0))?ea:1,t=(null==es?void 0:es.gt(0))?es:1,n=ec?en.times(eo):en.times(ef).times(eo),r=er.times(e),i=ed?ei.times(t):ei.times(ef).times(t),o=n.plus(r).plus(i);return o},[em,ec,ed,ef,en,eo,er,ea,ei,es]),eg=(0,i.useMemo)(()=>{if(!em)return new(s())(0);let e=ev.div(eo);return e},[em,ev,eo]),ey=(0,l.Bl)(),ex=(0,N.Tu)(),eb=(0,i.useCallback)(async e=>{if(z.data&&V.data&&eh.data)try{let t={};d&&!H&&(t.allowanceMonth=ev);let n={...e,...t},r=d&&!f.data,i=d?await K.put({payload:function(e,t,n){let r={...x(e),...k(t)};return{...n,contracts:{...null==n?void 0:n.contracts,set:r.autopilotContractSet,amount:Math.round(r.amountHosts.toNumber()),allowance:(0,u.qN)(O(r.allowanceMonth,r.periodWeeks)).toString(),period:Math.round((0,o.mvJ)(r.periodWeeks.toNumber())),renewWindow:Math.round((0,o.mvJ)(r.renewWindowWeeks.toNumber())),download:Number(O((0,o.xf5)(r.downloadTBMonth),r.periodWeeks).toFixed(0)),upload:Number(O((0,o.xf5)(r.uploadTBMonth),r.periodWeeks).toFixed(0)),storage:(0,o.xf5)(r.storageTB).toNumber()},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},wallet:{...null==n?void 0:n.wallet,defragThreshold:r.defragThreshold.toNumber()}}}(eh.data.network,n,f.data)}):void 0,[a,s,c,h,p]=await Promise.all([I.put({params:{key:"contractset"},payload:S(n,m.data)}),I.put({params:{key:"uploadpacking"},payload:{...Z.data,enabled:n.uploadPackingEnabled}}),I.put({params:{key:"gouging"},payload:{...z.data,maxRPCPrice:(0,u.qN)(n.maxRpcPriceMillion.div(1e6)).toString(),maxStoragePrice:(0,u.qN)(n.maxStoragePriceTBMonth.div((0,o.S5V)(1)).div((0,o.xf5)(1)).div(C(n.minShards,n.totalShards,n.includeRedundancyMaxStoragePrice))).toString(),maxUploadPrice:(0,u.qN)(n.maxUploadPriceTB.div(C(n.minShards,n.totalShards,n.includeRedundancyMaxUploadPrice))).toString(),maxDownloadPrice:(0,u.qN)(n.maxDownloadPriceTB).toString(),maxContractPrice:(0,u.qN)(n.maxContractPrice).toString(),minMaxCollateral:(0,u.qN)(n.minMaxCollateral).toString(),hostBlockHeightLeeway:Math.round(n.hostBlockHeightLeeway.toNumber()),minPriceTableValidity:Math.round((0,o.ort)(n.minPriceTableValidityMinutes.toNumber())),minAccountExpiry:Math.round((0,o.k9c)(n.minAccountExpiryDays.toNumber())),minMaxEphemeralAccountBalance:(0,u.qN)(n.minMaxEphemeralAccountBalance).toString(),migrationSurchargeMultiplier:n.migrationSurchargeMultiplier.toNumber()}}),I.put({params:{key:"redundancy"},payload:{...V.data,minShards:n.minShards.toNumber(),totalShards:n.totalShards.toNumber()}}),I.put({params:{key:R},payload:{...g.data,includeRedundancyMaxStoragePrice:n.includeRedundancyMaxStoragePrice,includeRedundancyMaxUploadPrice:n.includeRedundancyMaxUploadPrice}})]);if(null==i?void 0:i.error)throw Error(i.error);if(a.error)throw Error(a.error);if(s.error)throw Error(s.error);if(c.error)throw Error(c.error);if(h.error)throw Error(h.error);if(p.error)throw Error(p.error);if(d&&($(n.autopilotContractSet),ey.post({payload:{forceScan:!0}})),(0,o.OPV)("Configuration has been saved."),r){let e=async()=>{await (0,N.gw)(5e3),ex(e=>e.startsWith(l.pz)),await (0,N.gw)(5e3),ex(e=>e.startsWith(l.pz))};e()}await et()}catch(e){(0,o.OHV)(e.message),console.log(e)}},[eh.data,ev,H,d,f,K,et,$,ex,I,m,Z,V,z,g,ey]),ew=(0,o.WsO)(ep),ej=(0,i.useMemo)(()=>Y.handleSubmit(eb,ew),[Y,eb,ew]),eE=(0,i.useCallback)(()=>{let e=Y.getValues(),t=Q();if(t)for(let[n,r]of(Y.reset(t),Object.entries(e)))Y.setValue(n,r,{shouldDirty:!0})},[Y,Q]),{isUnlocked:ek}=(0,N.Hv)();(0,i.useEffect)(()=>{ek&&"init"!==a.autopilot.status&&et()},[ek,a.autopilot.status]),(0,i.useEffect)(()=>{Y.formState.isSubmitting||eE()},[Y,H,X]);let eS=Object.entries(Y.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length;return{onSubmit:ej,revalidateAndResetFormData:et,form:Y,fields:ep,changeCount:eS,canEstimate:em,estimatedSpendingPerMonth:ev,estimatedSpendingPerTB:eg,redundancyMultiplier:ef,storageTB:eo,shouldSyncDefaultContractSet:W,setShouldSyncDefaultContractSet:q,showAdvanced:H,setShowAdvanced:U}}();return(0,r.jsx)(z.Provider,{value:n,children:t})}},13242:function(e,t,n){"use strict";n.d(t,{x:function(){return x},G:function(){return y}});var r=n(52322),i=n(58121),o=n(5632),a=n(9969),s=n(2784),l=n(6391),u=n.n(l),c=n(56860),d=n(88242),f=n(96206),h=n(82459);let p=[{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,address:n,publicKey:i})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{id:t,isRenewed:n,renewedFrom: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),label:"contract ID"}),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",value:(0,i.I13)(o),label:"contract ID"})]})})]})}},{id:"hostIp",label:"host address",category:"general",render:e=>{let{data:{hostIp:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,type:"ip",label:"host address"})}},{id:"hostKey",label:"host public key",category:"general",render:e=>{let{data:{hostKey:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,label:"host public key"})}},{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:o,proofWindowHeightEnd:a,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:o,proofWindowHeightEnd:a,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 m=n(47025),v=n(25573);let g=(0,s.createContext)({}),y=()=>(0,s.useContext)(g);function x(e){let{children:t}=e,n=function(){let e=(0,o.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,a.GP)({config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),l=(0,m.JL)(),d=(0,s.useMemo)(()=>{var e;return(null===(e=l.data)||void 0===e?void 0:e.hosts)||[]},[l.data]),f=(0,v.n)(),h=f.isSynced?f.nodeBlockHeight:f.estimatedBlockHeight,g=(0,s.useMemo)(()=>{var e;if(!r.data)return null;let t=(null===(e=r.data)||void 0===e?void 0:e.map(e=>{var t;let n="fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,r=(0,i.jrD)(h,e.startHeight),o=e.windowStart,a=(0,i.jrD)(h,o);return{id:e.id,contractId:e.id,state:e.state,hostIp:e.hostIP,hostKey:e.hostKey,location:null===(t=d.find(t=>t.public_key===e.hostKey))||void 0===t?void 0:t.location,timeline:r,startTime:r,endTime:a,contractHeightStart:e.startHeight,contractHeightEnd:o,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)}}))||[];return t},[r.data,d,h]),{filters:y,setFilter:x,removeFilter:b,removeLastFilter:w,resetFilters:j}=(0,i.Wdu)(),{configurableColumns:E,enabledColumns:k,sortableColumns:S,toggleColumnVisibility:_,setColumnsVisible:C,setColumnsHidden:O,toggleSort:M,setSortDirection:T,setSortField:A,sortField:P,sortDirection:N,resetDefaultColumnVisibility:R}=(0,i.oy6)("renterd/v0/contracts",{columns:p,columnsDefaultVisible:c.gd,sortOptions:c.Fo,defaultSortField:c.nw}),D=(0,i._4u)({dataset:g,filters:y,sortField:P,sortDirection:N}),L=(0,s.useMemo)(()=>D?D.slice(n,n+t):null,[D,n,t]),{range:F}=(0,s.useMemo)(()=>(0,i.EJC)(h,L||[]),[h,L]),z=(0,s.useMemo)(()=>p.filter(e=>e.fixed||k.includes(e.id)),[k]),V=(0,i.c2j)(D,r.isValidating,r.error,y);return{dataState:V,limit:t,offset:n,isLoading:r.isLoading,error:r.error,pageCount:(null==L?void 0:L.length)||0,datasetCount:(null==D?void 0:D.length)||0,columns:z,dataset:g,datasetPage:L,cellContext:{currentHeight:f.estimatedBlockHeight,contractsTimeRange:F},configurableColumns:E,enabledColumns:k,sortableColumns:S,toggleColumnVisibility:_,setColumnsVisible:C,setColumnsHidden:O,toggleSort:M,setSortDirection:T,setSortField:A,sortField:P,filters:y,setFilter:x,removeFilter:b,removeLastFilter:w,resetFilters:j,sortDirection:N,resetDefaultColumnVisibility:R}}();return(0,r.jsx)(g.Provider,{value:n,children:t})}},56860:function(e,t,n){"use strict";n.d(t,{Fo:function(){return o},gd:function(){return r},nw:function(){return i}});let r=["contractId","hostIp","hostKey","state","timeline","size","totalCost","spendingUploads","spendingDownloads","spendingFundAccount"],i="startTime",o=[{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"}]},83035:function(e,t,n){"use strict";n.d(t,{Tu:function(){return eN},xQ:function(){return eR},Rh:function(){return eP}});var r=n(52322),i=n(2784),o=n(58121),a=n(2850),s=n(71930),l=n(82851),u=n(99182),c=n(5632),d=n(4941),f=n(9969);let h={namespace:"wallet",label:"Wallet"};function p(e){var t;let{currentPage:n,parentPage:i,pushPage:a}=e,{openDialog:l,closeDialog:u}=eP(),p=(0,c.useRouter)(),m=(0,f.Tu)();return(0,r.jsxs)(d.fu,{currentPage:n,commandPage:h,children:[(0,r.jsx)(d.Ul,{currentPage:n,parentPage:i,commandPage:h,onSelect:()=>{a(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,o.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:o}=eP(),{setTheme:s}=(0,m.F)(),{settings:l,setSettings:u,lock:c,currencyOptions:f,setCurrency:h}=(0,a.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}),o()},children:(l.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(d.o4,{currentPage:t,commandPage:v,onSelect:()=>{c(),o()},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"),o()},children:"Set theme to system preference"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("light"),o()},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),o()},children:"Set currency to ".concat(i)},n)})]})}let y={namespace:"node",label:"Blockchain node"};function x(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=eP(),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:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),a()},children:"View peers"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),a()},children:"View transaction pool"})]})}var b=n(17286),w=n(91641);let j={namespace:"configuration",label:"Configuration"};function E(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,c.useRouter)(),{showAdvanced:a}=(0,b.ZR)(),{closeDialog:l}=eP(),{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:()=>{o.push(s._.config.index),l()},children:"Open configuration"}),"on"===u.status&&(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.storage),l()},children:"Configure storage"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.pricing),l()},children:"Configure pricing"}),a&&(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:()=>{o.push(s._.config.hosts),l()},children:"Configure hosts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.wallet),l()},children:"Configure wallet"})]}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.contracts),l()},children:"Configure contracts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.uploads),l()},children:"Configure uploads"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.redundancy),l()},children:"Configure redundancy"})]})]})}var k=n(93216);let S={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,l=(0,c.useRouter)(),{closeDialog:u}=eP();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)(k.F,{parentPage:S,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}var C=n(13242),O=n(18006);let M={namespace:"hosts",label:"Hosts"};function T(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,l=(0,c.useRouter)(),{closeDialog:u,openDialog:f}=eP();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(M)},children:M.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:M,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:M,onSelect:()=>{l.push(s._.hosts.index),u()},children:"View hosts"})}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:M,onSelect:()=>{f("hostsManageAllowBlock")},children:"Manage filter lists: allowlist + blocklist"}),(0,r.jsx)(O.L,{parentPage:M,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}var A=n(91652),P=n(48528),N=n(88242);function R(e){let{debouncedSearch: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.jsxs)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:[(0,r.jsx)(N.e1T,{}),(0,r.jsx)(N.JCW,{}),(0,r.jsx)(N.c_L,{})]}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No files match the query.":"Type a query to get started."})]})}let D={namespace:"files/search",label:"File search",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",empty:R};function L(e){let{debouncedSearch:t,search:n,currentPage:i,beforeSelect:a,afterSelect:s}=e,{activeBucket:l,setActiveDirectory:u}=(0,P.Y)(),c=(null==i?void 0:i.namespace)===D.namespace,h=(0,f.Iy)({disabled:!c,params:{bucket:l||"default",key:t,skip:0,limit:10},config:{swr:{keepPreviousData:!0}}});return c&&h.data?(0,r.jsx)(d.fu,{currentPage:i,commandPage:D,children:h.data.map(e=>{let{name:t}=e,c=function(e,t,n){let r=Math.max(e.length-55,0);if(0===r)return e;let i=F(e),o=F(t),a=i.toLowerCase().indexOf(o.toLowerCase()),s=a+o.length-1,l=0,u=0,c=i.split("/"),d=c.map(e=>{if(l>=r)return u+=e.length,F(e);let t=u,n=u+e.length+1;return ta?(u+=e.length,F(e)):!e.includes(o)&&e.length>3?(u+=e.length,l+=e.length+1,"..."):(u+=e.length,F(e))});return d.reverse().join("/")}(t,n,0),{startIndex:f,endIndex:h}=function(e,t){let n=F(e),r=F(t),i=n.toLowerCase().indexOf(r.toLowerCase()),o=i+r.length;return{endIndex:e.length-i,startIndex:e.length-o}}(c,n);return(0,r.jsx)(d.WD,{commandPage:D,currentPage:i,onSelect:()=>{a(),u(()=>[l,...(0,A.gD)(t)]),s()},value:t,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,A.IQ)(t)?(0,r.jsx)(N.ROc,{size:16}):(0,r.jsx)(N.c_L,{})}),(0,r.jsxs)(o.xvT,{className:"flex items-center",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",ellipsis:!0,children:c.slice(0,f)}),(0,r.jsx)(o.xvT,{color:"accent",ellipsis:!0,children:c.slice(f,h)}),(0,r.jsx)(o.xvT,{color:"verySubtle",ellipsis:!0,children:c.slice(h)})]})]})},t)})}):null}function F(e){return e.split("").reverse().join("")}let z={namespace:"files",label:"Files"};function V(e){let{search:t,debouncedSearch:n,currentPage:i,parentPage:o,pushPage:a,beforeSelect:l,afterSelect:u}=e,f=(0,c.useRouter)(),{closeDialog:h}=eP();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:i,parentPage:o,commandPage:o,onSelect:()=>{a(z)},children:z.label}),(0,r.jsxs)(d.fu,{currentPage:i,commandPage:z,children:[(0,r.jsx)(d.WD,{currentPage:i,commandPage:z,onSelect:()=>{f.pathname.startsWith(s._.files.index)||f.push(s._.files.index),h(),u()},children:"View files"}),(0,r.jsx)(d.WD,{currentPage:i,commandPage:z,onSelect:()=>{a(D),u()},children:"Search files"})]}),(0,r.jsx)(L,{debouncedSearch:n,search:t,currentPage:i,beforeSelect:l,afterSelect:u})]})}var Z=n(19513);function I(e,t){return e===t}function B(e){return"function"==typeof e?function(){return e}:e}function H(e,t,n){var r,o,a=n&&n.equalityFn||I,s=(o=(r=(0,i.useState)(B(e)))[1],[r[0],(0,i.useCallback)(function(e){return o(B(e))},[])]),l=s[0],u=s[1],c=function(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)},x=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)}},b=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(x,t),p?e(o.current):c.current;if(v)return n(x,t),e(o.current)}return s.current||n(x,t),c.current};return b.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},b.isPending=function(){return!!s.current},b.flush=function(){return s.current?y(Date.now()):c.current},b},[p,v,t,g,m,h])}((0,i.useCallback)(function(e){return u(e)},[u]),t,n),d=(0,i.useRef)(e);return a(d.current,e)||(c(e),d.current=e),[l,c]}function U(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)(N.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."})]})}function W(e){let{panel:t}=e,{resetFilters:n}=(0,C.G)(),{resetFilters:a}=(0,Z.l)(),{closeDialog:d}=eP(),f=(0,c.useRouter)(),[h,m]=(0,i.useState)(""),[v]=H(h,500),[y,b]=(0,i.useState)([]),w=y[y.length-1],j=0===y.length,k=(0,i.useCallback)(e=>{b(t=>[...t,e])},[b]),S=(0,i.useCallback)(()=>{d()},[d]),O=(0,i.useCallback)(()=>{m("")},[m]),M=(null==w?void 0:w.empty)||U;return(0,r.jsxs)(u.mY,{label:"Command Menu",loop:!0,className:(0,l.cx)(t&&(0,o.z$)()),onKeyDown:e=>{(y.length>0&&"Escape"===e.key||"Backspace"===e.key&&!h)&&(e.preventDefault(),b(e=>e.slice(0,-1)))},children:[w&&(0,r.jsx)(o.__J,{className:"px-2",children:w.label}),(0,r.jsx)(u.mY.Input,{value:h,onValueChange:m,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==w?void 0:w.prompt)||(j?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(M,{search:h,debouncedSearch:v})}),(0,r.jsx)(g,{currentPage:w,pushPage:k}),(0,r.jsx)(V,{debouncedSearch:v,search:h,currentPage:w,pushPage:k,beforeSelect:()=>{S()},afterSelect:()=>{O()}}),(0,r.jsx)(p,{currentPage:w,pushPage:k}),(0,r.jsx)(_,{currentPage:w,pushPage:k,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(s._.contracts.index)||f.push(s._.contracts.index),O()}}),(0,r.jsx)(T,{currentPage:w,pushPage:k,beforeSelect:()=>{S(),a()},afterSelect:()=>{f.pathname.startsWith(s._.hosts.index)||f.push(s._.hosts.index),O()}}),(0,r.jsx)(E,{currentPage:w,pushPage:k}),(0,r.jsx)(x,{currentPage:w,pushPage:k})]})]})}function q(e){let{open:t,onOpenChange:n,setOpen:l}=e,{isUnlocked:u}=(0,a.Hv)(),{isConnected:c}=(0,o.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)(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)(W,{})})})}var $=n(9156),K=n(24511);let Y={name:""},G=K.Ry().shape({name:K.Z_().required("Required")});function X(e){let{trigger:t,open:n,onOpenChange:i}=e,{activeDirectoryPath:a}=(0,P.Y)(),s=(0,f.ZM)(),l=(0,$.TA)({initialValues:Y,validationSchema:G,onSubmit:async(e,t)=>{let n=await s.put({params:(0,A.W0)(a+e.name+"/"),payload:null});n.error?(0,o.OHV)(n.error):((0,o.RFt)("Directory created."),t.resetForm(),i(!1))}});return(0,r.jsx)(o.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)(o.cB7,{formik:l,title:"Name",name:"name",placeholder:"photos, backups, etc",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(o.IKw,{formik:l,size:"medium",children:"Create"})]})})})})}var Q=n(33571);let J={publicKey:""},ee=K.Ry().shape({publicKey:K.Z_().required("Required")});function et(){var e;let t=(0,f.s2)({config:{swr:{refreshInterval:6e4}}}),n=(0,Q.I)(),a=(0,$.TA)({initialValues:J,validationSchema:ee,onSubmit:async(e,t)=>{let r=await n([e.publicKey],[]);r?t.resetForm():t.setStatus({error:"Error updating allowlist"})}});(0,i.useEffect)(()=>{a.setStatus(void 0)},[a.values]);let s=a.values.publicKey,l=(null===(e=t.data)||void 0===e?void 0:e.filter(e=>!a.values.publicKey||e.includes(a.values.publicKey)))||[];return(0,r.jsxs)("form",{onSubmit:a.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(o.S$c,{title:"Public key",name:"publicKey",formik:a,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.KZS,{name:"publicKey",formik:a,placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(o.IKw,{formik:a,size:"small",variant:"amber",withStatusError:!1,children:"Allow public key"})]})}),(0,r.jsxs)(o.s_4,{className:"p-2 flex gap-2 items-center",children:[(0,r.jsx)(o.xvT,{children:(0,r.jsx)(N.qdM,{})}),(0,r.jsxs)(o.nvN,{size:"12",children:[(0,r.jsx)(o.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)(o.xrM,{children:(0,r.jsx)("div",{className:"p-2",children:(0,r.jsx)(o.hmz,{options:l.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,o.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)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.Hb6,{})}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["No existing entries match ",a.values.publicKey,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.TtX,{})}),(0,r.jsx)(o.xvT,{color:"subtle",children:"The allowlist is empty."})]})})]})}var en=n(98358);let er={address:""},ei=["45.148.30.56","51.158.108.244","siacentral.ddnsfree.com","siacentral.mooo.com"],eo=K.Ry().shape({address:K.Z_().required("Required").test("address","Invalid hostname or IP address",e=>(0,o.Ztc)().test(e||""))});function ea(){let e=(0,f.uf)({config:{swr:{refreshInterval:6e4}}}),t=(0,en.l)(),n=(0,$.TA)({initialValues:er,validationSchema:eo,onSubmit:async(e,n)=>{let r=await t([e.address],[]);r?n.resetForm():n.setStatus({error:"Error updating blocklist"})}});(0,i.useEffect)(()=>{n.setStatus(void 0)},[n.values]);let a=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,C.G)(),u=(0,i.useMemo)(()=>ei.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)(o.S$c,{title:"Address",name:"address",formik:n,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.KZS,{name:"address",formik:n,placeholder:"eg: 51.258.128.144 or spam.ddnsfree.com",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(o.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)(o.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)(o.xvT,{size:"12",color:"subtle",children:"Suggestions:"}),u.map((e,t)=>{let{address:i,contractCount:a}=e;return(0,r.jsxs)(o.xvT,{size:"12",underline:"hover",className:"cursor-pointer",onClick:()=>n.setFieldValue("address",i),children:[i,!!a&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(o.ua7,{content:"".concat(a," active contracts"),children:(0,r.jsxs)(o.xvT,{color:"red",children:["(",a,")"]})})]}),t!==u.length-1&&(0,r.jsx)(o.xvT,{children:","})]},i)})]}),(0,r.jsx)(o.Z0O,{className:"my-2"})]}),s.length?(0,r.jsx)(o.hmz,{options:s.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,o.vQq)(e,"blocked address"),onRemove:e=>t([],[e])}):a?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.Hb6,{})}),(0,r.jsxs)(o.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)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.TtX,{})}),(0,r.jsx)(o.xvT,{color:"subtle",children:"The blocklist is empty."})]})]})})})]})}function es(e){let{trigger:t,open:n,onOpenChange:i}=e;return(0,r.jsx)(o.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)(o.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)(o.mQc,{defaultValue:"blocklist",children:[(0,r.jsxs)(o.drW,{"aria-label":"blocklist and allowlist tabs",children:[(0,r.jsx)(o.SPt,{value:"blocklist",children:"Block"}),(0,r.jsx)(o.SPt,{value:"allowlist",children:"Allow"})]}),(0,r.jsx)(o.nUL,{value:"blocklist",children:(0,r.jsx)(ea,{})}),(0,r.jsx)(o.nUL,{value:"allowlist",children:(0,r.jsx)(et,{})})]})]})})}var el=n(2320),eu=n(31781),ec=n(24801);function ed(e){let{panel:t}=e,{resetFilters:n}=(0,C.G)(),{closeDialog:a}=eP(),d=(0,c.useRouter)(),[f,h]=(0,i.useState)(""),[p]=H(f,500),m=(0,i.useCallback)(()=>{a()},[a]);return(0,r.jsxs)(u.mY,{label:"Files search",shouldFilter:!1,className:(0,l.cx)(t&&(0,o.z$)()),children:[(0,r.jsx)(o.__J,{className:"px-2",children:"File search"}),(0,r.jsx)(u.mY.Input,{value:f,onValueChange:h,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:D.prompt}),(0,r.jsx)(o.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)(R,{search:f,debouncedSearch:p})}),(0,r.jsx)(L,{debouncedSearch:p,search:f,currentPage:D,beforeSelect:()=>{m(),n()},afterSelect:()=>{d.pathname.startsWith(s._.files.index)||d.push(s._.files.index)}})]})})]})}function ef(e){let{open:t,onOpenChange:n}=e;return(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)(ed,{})})}var eh=n(6391),ep=n.n(eh);function em(){let{dialog:e,openDialog:t,closeDialog:n}=eP(),a=(0,f.Tu)(),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 o=await u.post({payload:[i.data]});return o.error?(c.post({payload:i.data}),{error:o.error}):{}},[s,l,u,c]);return(0,r.jsx)(o.weF,{balance:a.data?new(ep())(a.data.spendable):void 0,send:d,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}function ev(){let{id:e,dialog:t,openDialog:n,closeDialog:a}=eP(),s=(0,f.Qq)({params:{},config:{swr:{revalidateOnFocus:!1,refreshInterval:6e4}},disabled:"transactionDetails"!==t}),l=(0,i.useMemo)(()=>{var t;let n=null===(t=s.data)||void 0===t?void 0:t.find(t=>t.id===e);return n?{txType:(0,o.leQ)(n.raw),inflow:n.inflow,outflow:n.outflow,timestamp:n.timestamp,raw:n.raw}:null},[s,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):a()})}var eg=n(82459);function ey(e){let{id:t,contentProps:n,buttonProps:i}=e,a=(0,f.cq)({params:{id:t}});return a.data?(0,r.jsx)(eg.F,{id:t,address:a.data.hostIP,publicKey:a.data.hostKey,contentProps:n,buttonProps:i}):(0,r.jsx)(o.zxk,{variant:"ghost",icon:"hover",state:"waiting",...i,children:(0,r.jsx)(N.iG7,{})})}var ex=n(848);function eb(e){let{open:t,onOpenChange:n}=e,a=(0,f.Z7)(),s=(0,f.Uy)(),l=(0,i.useCallback)(async e=>{let t=await s.post({payload:[e]});t.error?(0,o.OHV)("Error dismissing alert."):(0,o.OPV)("Alert has been dismissed.")},[s]),u=(0,i.useCallback)(async(e,t)=>{if(!a.data)return;let n=await s.post({payload:e});n.error?(0,o.OHV)(t?"Error dismissing all ".concat(t," alerts."):"Error dismissing all alerts."):(0,o.OPV)(t?"All ".concat(t," alerts have been dismissed."):"All alerts have been dismissed.")},[s,a.data]);return(0,r.jsx)(o.hcY,{open:t,onOpenChange:e=>{n(e)},alerts:a,dataFieldOrder:ew,dataFields:ej,dismissMany:u,dismissOne:l})}let ew=["hint","error","origin","hostKey","contractID","accountID","slabKey","additions","removals"],ej={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)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(o.PF9,{value:t,menu:(0,r.jsx)(ey,{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)(o.xvT,{color:"subtle",ellipsis:!0,children:"account ID"}),(0,r.jsx)(o.XxW,{value:t,label:"account ID"})]})}},hostKey:{render:function(e){let{value:t}=e,n=(0,f.$)({params:{hostKey:t}});return n.data?(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"host key"}),(0,r.jsx)(o.PF9,{value:t,menu:(0,r.jsx)(ex.G,{publicKey:n.data.publicKey,address:n.data.netAddress,contentProps:{align:"end"},buttonProps:{size:"none"}})})]}):null}},slabKey:{render:function(e){let{value:t}=e,{setActiveDirectory:n}=(0,P.Y)(),{closeDialog:i}=eP(),a=(0,f.og)({params:{key:t}});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"key"}),(0,r.jsx)(o.XxW,{value:t})]}),a.data&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mt-2 mb-2",children:a.data.map(e=>(0,r.jsx)(o.rUS,{color:"accent",underline:"hover",size:"12",noWrap:!0,onClick:()=>{n(()=>(0,A.gD)(e.name)),i()},children:e.name},e.name))})})]})}},additions:{render:function(e){let{value:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"additions"})}),t&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-wrap gap-2 mb-2",children:t.map(e=>(0,r.jsx)("div",{children:(0,r.jsx)(o.XxW,{value:e,label:"contract ID"})},e))})})]})}},removals:{render:function(e){let{value:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"removals"})}),t&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mb-2",children:Object.entries(t).map(e=>{let[t,n]=e;return(0,r.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,r.jsx)(o.XxW,{value:t,label:"contract ID"}),(0,r.jsx)(o.ua7,{content:n,children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:n})})]},t)})})})]})}},error:{render:e=>{let{value:t}=e;return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:(0,r.jsx)(o.UQy,{type:"single",children:(0,r.jsxs)(o.Qdk,{value:"error",variant:"ghost",children:[(0,r.jsx)(o.o48,{children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"})}),(0,r.jsx)(o.vF,{children:(0,r.jsx)(o.xvT,{color:"contrast",children:t})})]})})})}},hint:{render:e=>{let{value:t}=e;return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"contrast",children:t})})}},allowance:{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:"allowance"}),(0,r.jsx)(o.YKL,{variant:"value",value:new(ep())(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)(o.xvT,{color:"subtle",ellipsis:!0,children:"balance"}),(0,r.jsx)(o.YKL,{variant:"value",value:new(ep())(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)(o.xvT,{color:"subtle",ellipsis:!0,children:"address"}),(0,r.jsx)(o.XxW,{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)(o.xvT,{color:"subtle",ellipsis:!0,children:"account"}),(0,r.jsx)(o.XxW,{value:t})]})}}};var eE=n(54155),ek=n(63955);let eS={name:""};function e_(e){let{trigger:t,open:n,onOpenChange:a}=e,{id:s,closeDialog:l}=eP(),u=(0,f.sg)(),c=(0,ek.cI)({mode:"all",defaultValues:eS}),d=(0,i.useCallback)(async e=>{let t=await u.delete({params:{name:e.name}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("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,o.WsO)(h);return(0,r.jsx)(o.VqE,{title:"Delete Bucket",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eS),a(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)(o.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)(o.EKh,{color:"gray",children:s})}),(0,r.jsx)(o.yEL,{name:"name",form:c,fields:h,autoComplete:"off"}),(0,r.jsx)(o.ZqQ,{variant:"red",form:c,children:"Delete"})]})})}let eC={visibility:"public"};function eO(e){let{trigger:t,open:n,onOpenChange:a}=e,{id:s,closeDialog:l}=eP(),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,o.OHV)(t.error):((0,o.OPV)("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,o.WsO)(p);return(0,r.jsx)(o.VqE,{title:"Change Policy: ".concat(s),trigger:t,open:n,onOpenChange:e=>{e||d.reset(eC),a(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)(o.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)(o.WyV,{name:"visibility",form:d,fields:p}),(0,r.jsx)(o.ZqQ,{variant:"accent",form:d,children:"Update policy"})]})})}let eM={name:""};function eT(e){let{trigger:t,open:n,onOpenChange:a}=e,{closeDialog:s}=eP(),l=(0,f.oV)(),u=(0,ek.cI)({mode:"all",defaultValues:eM}),c=(0,i.useCallback)(async e=>{let t=await l.post({payload:{name:e.name}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("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,o.WsO)(d);return(0,r.jsx)(o.VqE,{title:"Create Bucket",trigger:t,open:n,onOpenChange:e=>{e||u.reset(eM),a(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)(o.nvN,{size:"14",children:"A bucket is an isolated collection of files."}),(0,r.jsx)(o.yEL,{name:"name",form:u,fields:d,autoComplete:"off"}),(0,r.jsx)(o.ZqQ,{form:u,children:"Create bucket"})]})})}let eA=(0,i.createContext)({}),eP=()=>(0,i.useContext)(eA);function eN(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)(eA.Provider,{value:n,children:t})}function eR(){var e;let{dialog:t,openDialog:n,onOpenChange:i,closeDialog:a,confirm:s,openConfirmDialog:l}=eP(),u=(0,f.Wl)(),c=(0,f.Tu)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(q,{open:"cmdk"===t,onOpenChange:i,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:i,showGpuSetting:!0}),(0,r.jsx)(em,{}),(0,r.jsx)(o.YNn,{address:null===(e=c.data)||void 0===e?void 0:e.address,isValidating:c.isValidating,open:"addressDetails"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ev,{}),(0,r.jsx)(o.D_D,{open:"connectPeer"===t,connect:e=>u.post({payload:e}),onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eT,{open:"filesCreateBucket"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(e_,{open:"filesDeleteBucket"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eO,{open:"filesBucketPolicy"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(X,{open:"filesCreateDirectory"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ef,{open:"filesSearch"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(es,{open:"hostsManageAllowBlock"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(el.g,{open:"hostsFilterAddress"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eE.a,{open:"hostsFilterPublicKey"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eu.p,{open:"contractsFilterAddress"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ec.C,{open:"contractsFilterPublicKey"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eb,{open:"alerts"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(o.QHy,{open:"confirm"===t,params:s,onOpenChange:e=>e?l(s):a()})]})}},48528:function(e,t,n){"use strict";n.d(t,{Z:function(){return L},Y:function(){return D}});var r=n(52322),i=n(58121),o=n(5632),a=n(2784),s=n(88242),l=n(96206),u=n(83035),c=n(9969),d=n(91652);function f(e){let{path:t}=e,n=(0,c.wy)({params:(0,d.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)(s.olJ,{})}),"Copy metadata"]})}function h(e){let{path:t}=e,{downloadFiles:n,getFileUrl:o}=D(),l=function(){let{openConfirmDialog:e}=(0,u.Rh)(),t=(0,c.xw)();return(0,a.useCallback)(n=>e({title:"Delete file",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.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,d.W0)(n)});e.error&&(0,i.OHV)("Error deleting file."),(0,i.OPV)("Successfully deleted file.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.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)(s.vzB,{})}),"Download file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>l(t),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete file"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(o(t,!1),"file URL")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy URL"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.E5z)(o(t,!0),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(i.xvT,{children:"Copied authenticated file URL to clipboard."}),(0,r.jsxs)(i.xvT,{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)("div",{className:"!flex-none w-5",children:(0,r.jsx)(s.qdM,{className:"w-5 text-amber-600"})}),duration:1e4,className:"!max-w-[1200px]"})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy authenticated URL"]}),(0,r.jsx)(f,{path:t})]})}function p(e){let{path:t,size:n}=e,o=function(){let{openConfirmDialog:e}=(0,u.Rh)(),t=(0,c.xw)();return(0,a.useCallback)((n,o)=>e({title:"Delete directory",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.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,l.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,d.W0)(n),batch:!0}});e.error&&(0,i.OHV)("Error deleting directory."),(0,i.OPV)("Successfully deleted directory.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.ROc,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{o(t,n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete directory"]})]})}var m=n(6391),v=n.n(m),g=n(82439),y=n(82851),x=n(829),b=n.n(x);function w(e){var t,n,o;let{path:a,isUploading:s,type:l,health:u,size:f}=e,h="directory"===l,p=(0,c.wy)({disabled:s||h,params:(0,d.W0)(a),config:{swr:{dedupingInterval:5e3}}}),{displayHealth:m,label:v}=(0,g.B)({health:u,size:f,isDirectory:h});if(p.isValidating)return(0,r.jsx)(j,{displayHealth:m,label:v,children:(0,r.jsx)("div",{className:"flex justify-center my-2",children:(0,r.jsx)(i.xgg,{})})});if(!(null===(t=p.data)||void 0===t?void 0:t.object))return(0,r.jsx)(j,{displayHealth:m,label:v,children:(0,r.jsx)(i.xvT,{size:"12",children:"Error fetching slab metadata."})});let y=b()(p.data.object.slabs.map(e=>({...e.slab,contractSetShards:function(e){let{totalShards:t,minShards:n,health:r}=e,i=Math.ceil(r*(t-n)),o=i+n;return o<=0?0:o>t?t:o}({totalShards:e.slab.shards.length,minShards:e.slab.minShards,health:e.slab.health})})),"contractSetShards"),{partialSlab:x}=p.data.object;return(0,r.jsx)(j,{className:y.length>15?"h-[300px]":"",displayHealth:m,label:v,minShards:x?x.minShards:null===(n=y[0])||void 0===n?void 0:n.minShards,totalShards:x?x.totalShards:null===(o=y[0])||void 0===o?void 0:o.shards.length,children:x?(0,r.jsx)(i.xvT,{size:"12",color:"verySubtle",className:"flex items-center justify-center my-2",font:"mono",children:"partial slab"}):y.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.jsxs)(i.xvT,{size:"12",className:"flex items-center",children:[e.contractSetShards,"/",e.shards.length]})]},e.key))})}function j(e){let{className:t,displayHealth:n,label:o,children:a,minShards:s,totalShards:l}=e;return(0,r.jsxs)("div",{className:(0,y.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:o}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*n).toFixed(0),"%"]})]}),s&&l?(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:[s," of ",l]})]}):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:a})})})]})}function E(e){let{name:t,isUploading:n,type:o,health:a,size:s}=e,l="directory"===o,{displayHealth:u,label:c,color:d,icon:f}=(0,g.B)({health:a,size:s,isDirectory:l});return l?".."===t?null:(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsx)(i.xvT,{color:d,className:"flex cursor-pointer",children:f}),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:c}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*u).toFixed(0),"%"]})]})})}):n?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsx)(i.xvT,{color:d,className:"flex cursor-pointer",children:f}),children:(0,r.jsx)(w,{...e})})}function k(e){let{name:t}=e,{openDialog:n}=(0,u.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.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)(s.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)(s.Jrl,{})}),"Delete bucket"]})]})}n(65680);let S=[{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:a,size:l}}=e,{setActiveDirectory:u}=D();return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(s.c_L,{})}):".."===o?(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",onClick:e=>{e.stopPropagation(),u(e=>e.slice(0,-1))},children:(0,r.jsx)(s.ROc,{size:16})}):"bucket"===n?(0,r.jsx)(k,{name:o}):"directory"===n?(0,r.jsx)(p,{path:a,size:l}):(0,r.jsx)(h,{path:a})}},{id:"name",label:"name",category:"general",contentClassName:"max-w-[600px]",render:function(e){let{data:{name:t,type:n}}=e,{setActiveDirectory:o}=D();return"bucket"===n?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(()=>[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 a=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:a?"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:a?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:a?(0,r.jsx)(s.nDH,{}):(0,r.jsx)(s.Lur,{})})})})})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:o,isUploading:a}}=e;return"bucket"===t?null:a?(0,r.jsx)(i.xgg,{}):".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(v())(o),variant:"value",color:"subtle",format:e=>(0,l.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e;return"bucket"===t.type?null:(0,r.jsx)(E,{...t})}}];var _=n(81471),C=n(12436),O=n.n(C),M=n(2850),T=n(28460),A=n.n(T),P=n(79381),N=n(13242);let R=(0,a.createContext)({}),D=()=>(0,a.useContext)(R);function L(e){let{children:t}=e,n=function(){let e=(0,o.useRouter)(),t=(0,a.useMemo)(()=>(e.query.path||[]).map(decodeURIComponent),[e.query.path]),n=(0,a.useMemo)(()=>t[0],[t]),r=(0,a.useMemo)(()=>(0,d.rd)(t)+"/",[t]),s=(0,a.useCallback)(n=>{let r=n(t);e.push("/files/"+r.map(encodeURIComponent).join("/"))},[e,t]),{uploadFiles:l,uploadsList:u,uploadCancel:f}=function(e){let{activeDirectoryPath:t}=e,n=(0,c.B$)(),r=(0,c.ZM)(),[o,s]=(0,a.useState)({}),l=(0,a.useCallback)(e=>{s(t=>({...t,[e.path]:{id:e.path,path:e.path,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!0,controller:e.controller,type:"file"}}))},[s]),u=(0,a.useCallback)(e=>{s(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[s]),f=(0,a.useCallback)(e=>{s(t=>(delete t[e],{...t}))},[s]),h=(0,a.useCallback)(e=>{e.controller.abort()},[]),p=async e=>{e.forEach(async e=>{var a;let s=e.name,c=(0,d.pC)(t,s),h=(0,d.ru)(c),p=null===(a=n.data)||void 0===a?void 0:a.find(e=>e.name===h);if(o[c]){(0,i.OHV)("Already uploading file: ".concat(c));return}let m=new AbortController,v=O()(e=>u({path:c,loaded:e.loaded,size:e.total}),2e3);l({path:c,name:s,bucket:p,loaded:0,size:1,controller:m});let g=await r.put({params:(0,d.W0)(c),payload:e,config:{axios:{onUploadProgress:v,signal:m.signal}}});g.error?("canceled"===g.error?(0,i.RFt)("File upload canceled."):(0,i.OHV)(g.error),f(c)):(f(c),(0,i.OPV)("Upload complete: ".concat(s)))})},m=(0,a.useMemo)(()=>Object.entries(o).map(e=>e[1]),[o]);return{uploadFiles:p,uploadsList:m,uploadCancel:h}}({activeDirectoryPath:r}),{downloadFiles:h,downloadsList:p,getFileUrl:m,downloadCancel:v}=function(){let e=(0,c.B$)(),t=(0,c.p$)(),[n,r]=(0,a.useState)({}),o=(0,a.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,a.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,a.useCallback)(e=>{r(t=>(delete t[e],{...t}))},[r]),u=(0,a.useCallback)(e=>{e.controller.abort()},[]),f=async r=>{r.forEach(async r=>{var a;let u=!1,c=(0,d.ru)(r),f=null===(a=e.data)||void 0===a?void 0:a.find(e=>e.name===c),h=(0,d.vt)(r);if(n[r]){(0,i.OHV)("Already downloading file: ".concat(r));return}let p=new AbortController,m=O()(e=>{u||s({path:r,loaded:e.loaded,size:e.total})},2e3);o({path:r,name:h,bucket:f,loaded:0,size:1,controller:p});let v=await t.get(h,{params:(0,d.W0)(r),config:{axios:{onDownloadProgress:m,signal:p.signal}}});u=!0,v.error&&("canceled"===v.error?(0,i.RFt)("File download canceled."):(0,i.OHV)(v.error)),l(r)})},h=(0,a.useMemo)(()=>Object.entries(n).map(e=>e[1]),[n]),{settings:p}=(0,M.Hv)(),m=(0,a.useCallback)((e,t)=>{let{bucket:n,key:r}=(0,d.W0)(e),i="/worker/objects/".concat(r,"?bucket=").concat(n),o=p.api||location.origin,a=o.startsWith("https")?"https":"http",s=o.replace("https://","").replace("http://","");return t?"".concat(a,"://:").concat(p.password,"@").concat(s,"/api").concat(i):"".concat(a,"://").concat(s,"/api").concat(i)},[p]);return{downloadFiles:f,downloadsList:h,getFileUrl:m,downloadCancel:u}}(),{limit:g,offset:y,response:x,dataset:w}=function(e){var t;let{activeDirectoryPath:n,uploadsList:r}=e,a=(0,c.B$)(),s=(0,o.useRouter)(),l=Number(s.query.limit||50),u=Number(s.query.offset||0),f=(0,d.ru)(n),h=null===(t=a.data)||void 0===t?void 0:t.find(e=>e.name===f),p=(0,c.Jv)({disabled:!f,params:{...(0,d.W0)(n),offset:u,limit:l},config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),{dataset:m}=(0,N.G)(),v=(0,P.ZP)(p.isValidating||a.isValidating?null:[p.data,r,m,a.data,f,n],()=>{var e,t;let i={};h?p.data&&(null===(t=p.data.entries)||void 0===t||t.forEach(e=>{let{name:t,size:n,health:r}=e,o=(0,d.M7)(f,t);i[o]={id:o,path:o,bucket:h,size:n,health:r,name:(0,d.vt)(t),type:(0,d.IQ)(t)?"directory":"file"}}),r.filter(e=>{let{path:t,name:r}=e;return t===(0,d.pC)(n,r)}).forEach(e=>{i[e.path]=e})):null===(e=a.data)||void 0===e||e.forEach(e=>{let t=e.name,n=(0,d.wv)(t,"");i[t]={id:n,path:n,bucket:e,size:0,health:0,name:t,type:"bucket"}});let o=b()(A()(i).map(e=>e[1]),"path");return o},{keepPreviousData:!0});return{limit:l,offset:u,response:p,dataset:v.data}}({activeDirectoryPath:r,uploadsList:u}),{configurableColumns:j,enabledColumns:E,sortableColumns:k,toggleColumnVisibility:C,setColumnsVisible:T,setColumnsHidden:R,toggleSort:D,setSortDirection:L,setSortField:F,sortField:z,sortDirection:V,resetDefaultColumnVisibility:Z}=(0,i.oy6)("renterd/v0/objects",{columns:S,columnsDefaultVisible:_.gd,sortOptions:_.Fo,defaultSortField:_.nw}),{filters:I,setFilter:B,removeFilter:H,removeLastFilter:U,resetFilters:W}=(0,i.Wdu)(),q=(0,i._4u)({dataset:w,filters:I,sortField:z,sortDirection:V}),$=(null==q?void 0:q.length)||0,K=(0,a.useMemo)(()=>q?t.length>0&&q.length>0?[{id:"..",name:"..",path:"..",type:"directory"},...q]:q:null,[q]),Y=(0,a.useMemo)(()=>S.filter(e=>e.fixed||E.includes(e.id)),[E]),G=(0,i.c2j)(q,x.isValidating,x.error,I),X=0===t.length,Q=1===t.length,J=t.length>0;return{isViewingBuckets:X,isViewingABucket:J,isViewingRootOfABucket:Q,activeBucket:n,activeDirectory:t,setActiveDirectory:s,activeDirectoryPath:r,dataState:G,limit:g,offset:y,datasetPage:K,pageCount:$,datasetCount:(null==q?void 0:q.length)||0,columns:Y,uploadFiles:l,uploadsList:u,uploadCancel:f,downloadFiles:h,downloadsList:p,downloadCancel:v,configurableColumns:j,enabledColumns:E,sortableColumns:k,toggleColumnVisibility:C,setColumnsVisible:T,setColumnsHidden:R,toggleSort:D,setSortDirection:L,setSortField:F,sortField:z,filters:I,setFilter:B,removeFilter:H,removeLastFilter:U,resetFilters:W,sortDirection:V,resetDefaultColumnVisibility:Z,getFileUrl:m}}();return(0,r.jsx)(R.Provider,{value:n,children:t})}},91652:function(e,t,n){"use strict";function r(e,t){let n=t.startsWith("/")?t.slice(1):t;return e+n}function i(e,t){let n=r(e,t);return n.endsWith("/")?n:n+"/"}function o(e,t){return"".concat(e).concat(t)}function a(e){return e.split("/")[0]}function s(e){return{bucket:a(e),key:(function(e){let t=e.split("/").slice(1).join("/");return"/".concat(t)})(e).slice(1).split("/").map(encodeURIComponent).join("/")}}function l(e){let t=e.split("/");return e.endsWith("/")?"".concat(t[t.length-2],"/"):t[t.length-1]}function u(e){return e.endsWith("/")}function c(e){return u(e)?e.slice(0,-1).split("/"):e.split("/").slice(0,-1)}function d(e){return e.join("/")}n.d(t,{IQ:function(){return u},M7:function(){return o},W0:function(){return s},gD:function(){return c},pC:function(){return r},rd:function(){return d},ru:function(){return a},vt:function(){return l},wv:function(){return i}})},81471:function(e,t,n){"use strict";n.d(t,{Fo:function(){return o},gd:function(){return r},nw:function(){return i}});let r=["type","name","readAccess","size","health"],i="name",o=[{id:"name",label:"name",category:"general"}]},19513:function(e,t,n){"use strict";n.d(t,{x:function(){return el},l:function(){return es}});var r,i,o=n(52322),a=n(58121),s=n(9969),l=n(2784);let u=["allow","netAddress","publicKey","lastScan","lastAnnouncement","totalScans","uptime","hasContract","ap_usable","ap_scoreOverall"];var c=n(5632),d=n(88242),f=n(96206),h=n(19785),p=n(66700),m=n(88811);function v(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)}function g(e,t){return(0,h.Z)(2,arguments),function(e,t){(0,h.Z)(2,arguments);var n=(0,p.Z)(e).getTime(),r=v(t);return new Date(n+r)}(e,-v(t))}function y(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function x(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=y(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=y(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function b(e,t){(0,h.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:v(i),a=null==n.weekStartsOn?o:v(n.weekStartsOn);if(!(a>=0&&a<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=(0,p.Z)(e),l=s.getUTCDay();return s.setUTCDate(s.getUTCDate()-((l=1&&l<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(r+1,0,l),u.setUTCHours(0,0,0,0);var c=b(u,t),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var f=b(d,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function j(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return j("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):j(n+1,2)},d:function(e,t){return j(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 j(e.getUTCHours()%12||12,t.length)},H:function(e,t){return j(e.getUTCHours(),t.length)},m:function(e,t){return j(e.getUTCMinutes(),t.length)},s:function(e,t){return j(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return j(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}},k={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function S(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+j(o,2)}function _(e,t){return e%60==0?(e>0?"-":"+")+j(Math.abs(e)/60,2):C(e,t)}function C(e,t){var n=e>0?"-":"+",r=Math.abs(e);return n+j(Math.floor(r/60),2)+(t||"")+j(r%60,2)}var O={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(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return E.y(e,t)},Y:function(e,t,n,r){var i=w(e,r),o=i>0?i:1-i;return"YY"===t?j(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):j(o,t.length)},R:function(e,t){return j(x(e),t.length)},u:function(e,t){return j(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 j(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 j(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 E.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 j(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,r){var i=function(e,t){(0,h.Z)(1,arguments);var n=(0,p.Z)(e);return Math.round((b(n,t).getTime()-(function(e,t){(0,h.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:v(i),a=null==n.firstWeekContainsDate?o:v(n.firstWeekContainsDate),s=w(e,t),l=new Date(0);return l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0),b(l,t)})(n,t).getTime())/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):j(i,t.length)},I:function(e,t,n){var r=function(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e);return Math.round((y(t).getTime()-(function(e){(0,h.Z)(1,arguments);var t=x(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),y(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):j(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):E.d(e,t)},D:function(e,t,n){var r=function(e){(0,h.Z)(1,arguments);var t=(0,p.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(r,{unit:"dayOfYear"}):j(r,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(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return j(o,2);case"eo":return n.ordinalNumber(o,{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(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return j(o,t.length);case"co":return n.ordinalNumber(o,{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 j(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?k.noon:0===i?k.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?k.evening:i>=12?k.afternoon:i>=4?k.morning:k.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 E.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):E.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):j(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):j(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):E.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):E.s(e,t)},S:function(e,t){return E.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 _(i);case"XXXX":case"XX":return C(i);default:return C(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return _(i);case"xxxx":case"xx":return C(i);default:return C(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S(i,":");default:return"GMT"+C(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S(i,":");default:return"GMT"+C(i,":")}},t:function(e,t,n,r){return j(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return j((r._originalDate||e).getTime(),t.length)}};function M(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 T(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 A={p:T,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return M(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}}",M(i,t)).replace("{{time}}",T(o,t))}},P=n(1645),N=["D","DD"],R=["YY","YYYY"];function D(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 L=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,F=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,z=/^'([^]*?)'?$/,V=/''/g,Z=/[a-zA-Z]/;function I(e,t,n){(0,h.Z)(2,arguments);var r=String(t),i=n||{},o=i.locale||m.Z,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:v(a),l=null==i.firstWeekContainsDate?s:v(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,c=null==u?0:v(u),d=null==i.weekStartsOn?c:v(i.weekStartsOn);if(!(d>=0&&d<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw RangeError("locale must contain localize property");if(!o.formatLong)throw RangeError("locale must contain formatLong property");var f=(0,p.Z)(e);if(!function(e){return(0,h.Z)(1,arguments),(!!function(e){return(0,h.Z)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,p.Z)(e)))}(f))throw RangeError("Invalid time value");var y=(0,P.Z)(f),x=g(f,y),b={firstWeekContainsDate:l,weekStartsOn:d,locale:o,_originalDate:f};return r.match(F).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,A[t])(e,o.formatLong,b):e}).join("").match(L).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(z)[1].replace(V,"'");var a=O[r];if(a)return i.useAdditionalWeekYearTokens||-1===R.indexOf(n)||D(n,t,e),i.useAdditionalDayOfYearTokens||-1===N.indexOf(n)||D(n,t,e),a(x,n,o.localize,b);if(r.match(Z))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}var B=n(29193);function H(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e);return t.setHours(0,0,0,0),t}var U=n(848),W=n(2850),q=n(6391),$=n.n(q);let K=[{id:"actions",label:"",fixed:!0,category:"general",cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,o.jsx)(U.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=(0,s.s2)({config:{swr:{dedupingInterval:5e3}}}),i=!!(null===(t=r.data)||void 0===t?void 0:t.length);return(0,o.jsx)(a.ua7,{side:"right",content:(i?"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,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:n.isBlocked?"red":"green",children:n.isBlocked?(0,o.jsx)(d.SmH,{}):(0,o.jsx)(d.DI$,{})})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(a.xvT,{size:"10",color:n.isOnBlocklist?"red":"verySubtle",noWrap:!0,children:"Blocklist"}),(0,o.jsx)(a.xvT,{size:"10",color:i?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,o.jsx)(a.ua7,{side:"right",content:t.usable?"Host is usable":"Host is not usable",children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t.usable?"green":"red",children:t.usable?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.SmH,{})})}),(0,o.jsx)("div",{className:"flex flex-col",children:t.unusableReasons.map(e=>(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:e},e))})]})}):(0,o.jsx)(a.ua7,{side:"right",content:"Autopilot is not configured",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:"subtle",children:(0,o.jsx)(d.I98,{})})})})}},{id:"ap_gouging",label:"gouging",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.ua7,{side:"right",content:t.gouging?"Host is price gouging":"Host is not price gouging",children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t.gouging?"red":"subtle",children:t.gouging?(0,o.jsx)(d.SmH,{}):(0,o.jsx)(d.I98,{})})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[Object.entries(t.gougingBreakdown.v2).filter(e=>{let[t,n]=e;return n&&"string"==typeof n}).map(e=>{let[t,n]=e;return(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:n},"v2"+t)}),Object.entries(t.gougingBreakdown.v3).filter(e=>{let[t,n]=e;return n&&"string"==typeof n}).map(e=>{let[t,n]=e;return(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:n},"v3"+t)})]})]})}):(0,o.jsx)(a.ua7,{side:"right",content:"Autopilot is not configured",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:"subtle",children:(0,o.jsx)(d.I98,{})})})})}},{id:"lastScan",label:"last scan",category:"general",render:function(e){let{data:t}=e,{workflows:n}=(0,W.D)(),r=n.find(e=>{var n;return e.path.startsWith(s.RF)&&(null===(n=e.payload)||void 0===n?void 0:n.hostKey)===t.publicKey});if(r)return(0,o.jsx)(a.xgg,{});let i=(0,B.Z)(new Date(t.lastScan||0),new Date,{addSuffix:!0}),l="",u=null,c="subtle";return t.lastScan||(l="host has not been scanned",u=(0,o.jsx)(d.I98,{}),c="subtle"),t.lastScan&&!t.lastScanSuccess&&(l="host scan failed ".concat(i),u=(0,o.jsx)(d.SmH,{}),c="red"),t.lastScan&&t.lastScanSuccess&&(l="host scan succeeded ".concat(i),u=(0,o.jsx)(d.DI$,{}),c="green"),(0,o.jsx)(a.ua7,{side:"right",content:l,children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:c,children:u})}),t.lastScan&&(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(a.xvT,{size:"12",noWrap:!0,children:i}),(0,o.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:I(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,o.jsx)(a.ua7,{side:"right",content:n?"Host has active contract":"Host does not have an active contract",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:n?"green":"subtle",children:n?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.I98,{})})})})}},{id:"netAddress",label:"address",category:"general",render:e=>{let{data:t}=e;return(0,o.jsx)(a.XxW,{value:t.netAddress,type:"ip",size:"12",label:"host address"})}},{id:"publicKey",label:"public key",category:"general",render:e=>{let{data:t}=e;return(0,o.jsx)(a.XxW,{value:t.publicKey,size:"12",label:"host public key"})}},{id:"lastAnnouncement",label:"last announcement",category:"general",render:e=>{let{data:t}=e;return(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsxs)(a.xvT,{size:"12",noWrap:!0,children:[(0,B.Z)(new Date,new Date(t.lastAnnouncement))," ago"]}),(0,o.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:function(e,t,n){(0,h.Z)(2,arguments);var r=(0,p.Z)(e),i=(0,p.Z)(t),o={},a=o.locale,s=void 0===a?m.Z:a,l=o.weekStartsOn,u=void 0===l?0:l;if(!s.localize)throw RangeError("locale must contain localize property");if(!s.formatLong)throw RangeError("locale must contain formatLong property");if(!s.formatRelative)throw RangeError("locale must contain formatRelative property");var c=function(e,t){(0,h.Z)(2,arguments);var n=H(e),r=H(t);return Math.round((n.getTime()-(0,P.Z)(n)-(r.getTime()-(0,P.Z)(r)))/864e5)}(r,i);if(isNaN(c))throw RangeError("Invalid time value");var d=g(r,(0,P.Z)(r)),f=g(i,(0,P.Z)(i));return I(r,s.formatRelative(c<-6?"other":c<-1?"lastWeek":c<0?"yesterday":c<1?"today":c<2?"tomorrow":c<7?"nextWeek":"other",d,f,{locale:s,weekStartsOn:u}),{locale:s,weekStartsOn:u})}(new Date(t.lastAnnouncement),new Date)})]})}},{id:"totalScans",label:"total scans",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.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,o.jsx)(a.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,o.jsx)(a.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,o.jsx)(a.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,o.jsx)(a.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,o.jsx)(a.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,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.score,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.age,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.collateral,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.interactions,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.prices,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.storageRemaining,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.uptime,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.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,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.version,variant:"value",format:e=>n.isAutopilotConfigured?"-":e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"hpt_accountbalancecost",label:"account balance cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","accountbalancecost")},{id:"hpt_collateralcost",label:"collateral cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","collateralcost")},{id:"hpt_contractprice",label:"contract price",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","contractprice")},{id:"hpt_downloadbandwidthcost",label:"download bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","downloadbandwidthcost")},{id:"hpt_dropsectorsbasecost",label:"drop sectors base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","dropsectorsbasecost")},{id:"hpt_dropsectorsunitcost",label:"drop sectors unit cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","dropsectorsunitcost")},{id:"hpt_expiry",label:"expiry",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","dropsectorsunitcost")},{id:"hpt_fundaccountcost",label:"fund account cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","fundaccountcost")},{id:"hpt_hassectorbasecost",label:"has sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","hassectorbasecost")},{id:"hpt_hostblockheight",label:"host block height",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","hostblockheight")},{id:"hpt_initbasecost",label:"init base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","initbasecost")},{id:"hpt_latestrevisioncost",label:"latest revision cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","latestrevisioncost")},{id:"hpt_maxcollateral",label:"max collateral",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","maxcollateral")},{id:"hpt_maxduration",label:"max duration",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","maxduration")},{id:"hpt_memorytimecost",label:"memory time cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","memorytimecost")},{id:"hpt_readbasecost",label:"read base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","readbasecost")},{id:"hpt_readlengthcost",label:"read length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","readlengthcost")},{id:"hpt_registryentriesleft",label:"registry entries left",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","registryentriesleft")},{id:"hpt_registryentriestotal",label:"registry entries total",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","registryentriestotal")},{id:"hpt_renewcontractcost",label:"renew contract cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","renewcontractcost")},{id:"hpt_revisionbasecost",label:"revision base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","renewcontractcost")},{id:"hpt_subscriptionmemorycost",label:"subscription memory cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","subscriptionmemorycost")},{id:"hpt_subscriptionnotificationcost",label:"subscription notification cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","subscriptionnotificationcost")},{id:"hpt_swapsectorcost",label:"swap sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","swapsectorcost")},{id:"hpt_txnfeemaxrecommended",label:"txn fee max recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","txnfeemaxrecommended")},{id:"hpt_txnfeeminrecommended",label:"txn fee min recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","txnfeeminrecommended")},{id:"hpt_uid",label:"UID",category:"priceTable",contentClassName:"w-[120px] justify-end",render:X("priceTable","uid")},{id:"hpt_updatepricetablecost",label:"update price table cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","updatepricetablecost")},{id:"hpt_uploadbandwidthcost",label:"upload bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","uploadbandwidthcost")},{id:"hpt_validity",label:"validity",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","validity")},{id:"hpt_windowsize",label:"window size",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","windowsize")},{id:"hpt_writebasecost",label:"write base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writebasecost")},{id:"hpt_writelengthcost",label:"write length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writelengthcost")},{id:"hpt_writestorecost",label:"write store cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("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,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t[r][i]?"green":"red",children:t[r][i]?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.SmH,{})})}):null})},{id:"hs_baserpcprice",label:"base RPC price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","baserpcprice")},{id:"hs_collateral",label:"collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","collateral")},{id:"hs_contractprice",label:"contract price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","contractprice")},{id:"hs_downloadbandwidthprice",label:"download bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","downloadbandwidthprice")},{id:"hs_ephemeralaccountexpiry",label:"ephemeral account expiry",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","ephemeralaccountexpiry")},{id:"hs_maxcollateral",label:"max collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","maxcollateral")},{id:"hs_maxdownloadbatchsize",label:"max download batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Q("settings","maxdownloadbatchsize")},{id:"hs_maxduration",label:"max duration",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","maxduration")},{id:"hs_maxephemeralaccountbalance",label:"max ephemeral account balance",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","maxephemeralaccountbalance")},{id:"hs_maxrevisebatchsize",label:"max revise batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Q("settings","maxrevisebatchsize")},{id:"hs_netaddress",label:"net address",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","netaddress")},{id:"hs_remainingstorage",label:"remaining storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Q("settings","remainingstorage")},{id:"hs_revisionnumber",label:"revision number",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","revisionnumber")},{id:"hs_sectoraccessprice",label:"sector access price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","sectoraccessprice")},{id:"hs_sectorsize",label:"sector size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Q("settings","sectorsize")},{id:"hs_siamuxport",label:"siamux port",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","siamuxport")},{id:"hs_storageprice",label:"storage price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","storageprice")},{id:"hs_totalstorage",label:"total storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Q("settings","totalstorage")},{id:"hs_unlockhash",label:"unlock hash",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","unlockhash")},{id:"hs_uploadbandwidthprice",label:"upload bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","uploadbandwidthprice")},{id:"hs_version",label:"verison",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","version")},{id:"hs_windowsize",label:"window size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","windowsize")}].map(e=>({...e,..."autopilot"===e.category?{icon:(0,o.jsx)(d.n6M,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"autopilot: ".concat(e.label)}:"hostSettings"===e.category?{icon:(0,o.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,o.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 Y(e,t){return(0,l.memo)(function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.ho9,{displayBoth:!0,size:"12",value:new($())(r[e][t]||0),fixedFiat:4,variant:"value"}):null})}function G(e,t,n){return function(r){let{data:i}=r;return i[e]?(0,o.jsx)(a.m2c,{size:"12",value:new($())(i[e][t]||0),variant:"value",format:e=>(0,f.yF)(e,{abbreviated:n})}):null}}function X(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.XxW,{value:r[e][t],size:"12"}):null}}function Q(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.xvT,{size:"12",weight:"semibold",ellipsis:!0,children:(0,f.vW)(r[e][t])}):null}}var J=n(13242);function ee(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($())(e.interactions.Uptime||0),downtime:new($())(e.interactions.Downtime||0),successfulInteractions:new($())(e.interactions.SuccessfulInteractions||0),totalInteractions:new($())(e.interactions.SuccessfulInteractions+e.interactions.FailedInteractions||0),failedInteractions:new($())(e.interactions.FailedInteractions||0),totalScans:new($())(e.interactions.TotalScans||0),activeContractsCount:new($())((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 et(e){let{host:t,allowlist:n,blocklist:r,isAllowlistActive:i}=e,o=!!(null==n?void 0:n.find(e=>e===t.publicKey)),a=!!(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:o,isOnBlocklist:a,isBlocked:a||!(!i||o)}}function en(e){return{score:new($())((null==e?void 0:e.score)||0),scoreBreakdown:{age:new($())((null==e?void 0:e.scoreBreakdown.age)||0),collateral:new($())((null==e?void 0:e.scoreBreakdown.collateral)||0),interactions:new($())((null==e?void 0:e.scoreBreakdown.interactions)||0),prices:new($())((null==e?void 0:e.scoreBreakdown.prices)||0),storageRemaining:new($())((null==e?void 0:e.scoreBreakdown.storageRemaining)||0),uptime:new($())((null==e?void 0:e.scoreBreakdown.uptime)||0),version:new($())((null==e?void 0:e.scoreBreakdown.version)||0)},gougingBreakdown:(null==e?void 0:e.gougingBreakdown)||{v2:{},v3:{}},gouging:null==e?void 0:e.gouging,unusableReasons:(null==e?void 0:e.unusableReasons)||[],usable:null==e?void 0:e.usable}}var er=n(91641),ei=n(34444),eo=n(47025);let ea=(0,l.createContext)({}),es=()=>(0,l.useContext)(ea);function el(e){let{children:t}=e,n=function(){var e,t,n,r,i,o,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:g,setFilter:y,removeFilter:x,removeLastFilter:b,resetFilters:w}=(0,a.Uu5)(),{dataset:j}=(0,J.G)(),{autopilot:E}=(0,er.q)(),k=(0,l.useMemo)(()=>{let e=[];g.find(e=>"hasActiveContracts"===e.id)&&j&&(e=j.map(e=>e.hostKey));let t=g.find(e=>"publicKeyEquals"===e.id);return t&&e.push(null==t?void 0:t.value),e.length?e:void 0},[g,j]),S=(0,s.S0)({disabled:g.find(e=>"hasActiveContracts"===e.id)&&!j||"on"!==E.status,payload:{limit:m,offset:v,usabilityMode:(null===(e=g.find(e=>"usabilityMode"===e.id))||void 0===e?void 0:e.value)||"all",filterMode:(null===(t=g.find(e=>"filterMode"===e.id))||void 0===t?void 0:t.value)||"all",addressContains:null===(n=g.find(e=>"addressContains"===e.id))||void 0===n?void 0:n.value,keyIn:k},config:{swr:{errorRetryInterval:2e4,refreshInterval:(0,a.sWj)(1)}}}),_=(0,s.FV)({disabled:"off"!==E.status,payload:{limit:m,offset:v,filterMode:(null===(r=g.find(e=>"filterMode"===e.id))||void 0===r?void 0:r.value)||"all",addressContains:null===(i=g.find(e=>"addressContains"===e.id))||void 0===i?void 0:i.value,keyIn:g.find(e=>"hasActiveContracts"===e.id)&&j?j.map(e=>e.hostKey):void 0},config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),C=(0,s.s2)(),O=(0,s.uf)(),M=!!(null===(o=C.data)||void 0===o?void 0:o.length),{settings:T}=(0,W.Hv)(),A=(0,eo.JL)({disabled:!T.siaCentral,config:{swr:{revalidateOnFocus:!1}}});(0,l.useEffect)(()=>{T.siaCentral||p("list")},[T.siaCentral]);let P=(0,l.useMemo)(()=>{var e;return(null===(e=A.data)||void 0===e?void 0:e.hosts)||[]},[A.data]),N=(0,l.useRef)(ei.N),R=(0,l.useCallback)(e=>{N.current=e},[N]),[D,L]=(0,l.useState)(),F=(0,l.useCallback)(e=>{let t=document.getElementById(e),n=document.getElementById("scroll-hosts");t&&n&&n.scroll({top:t.offsetTop-50,behavior:"smooth"})},[]),z=(0,l.useCallback)((e,t)=>{if(D===e){L(void 0);return}L(e),t&&N.current.moveToLocation(t),F(e)},[L,N,D,F]),V=(0,l.useCallback)((e,t)=>{if(D===e){L(void 0);return}L(e),t?N.current.moveToLocation(t):(0,a.OHV)("Geographic location is unknown for host ".concat((0,a.$Gg)(e,20))),F(e)},[L,N,D,F]),Z=(0,l.useCallback)((e,t)=>null,[]),I=function(e){let{autopilotStatus:t,regularResponse:n,autopilotResponse:r,allContracts:i,allowlist:o,blocklist:a,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),...ee(e,i),...et({host:e,allowlist:o.data,blocklist:a.data,isAllowlistActive:s}),...en(),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),...ee(e.host,i),...et({host:e.host,allowlist:o.data,blocklist:a.data,isAllowlistActive:s}),...en(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,o.data,a.data,s,u])}({autopilotStatus:E.status,autopilotResponse:S,regularResponse:_,allContracts:j,allowlist:C,blocklist:O,isAllowlistActive:M,geoHosts:P,onHostSelect:V}),B=(0,l.useMemo)(()=>"off"===E.status?["autopilot"]:[],[E.status]),{configurableColumns:H,enabledColumns:U,toggleColumnVisibility:q,setColumnsVisible:$,setColumnsHidden:Y,toggleSort:G,setSortDirection:X,setSortField:Q,sortField:ea,sortDirection:es,resetDefaultColumnVisibility:el}=(0,a.oy6)("renterd/v0/hosts",{columns:K,columnsDefaultVisible:u,disabledCategories:B}),eu=(0,l.useMemo)(()=>K.filter(e=>U.includes(e.id)),[U]),ec="on"===E.status?S.isValidating:_.isValidating,ed="on"===E.status?S.error:_.error,ef=(0,a.c2j)(I,ec,ed,g),eh=null===(d=E.state.data)||void 0===d?void 0:d.configured,ep=(0,l.useMemo)(()=>({isAutopilotConfigured:eh}),[eh]),em=(0,l.useMemo)(()=>null==I?void 0:I.filter(e=>e.location),[I]),ev=(0,l.useMemo)(()=>null==I?void 0:I.find(e=>e.publicKey===D),[I,D]);return{setCmd:R,viewMode:h,activeHost:ev,onHostMapHover:Z,onHostMapClick:z,setViewMode:p,hostsWithLocation:em,error:ed,dataState:ef,offset:v,limit:m,pageCount:(null==I?void 0:I.length)||0,columns:eu,dataset:I,tableContext:ep,configurableColumns:H,enabledColumns:U,toggleColumnVisibility:q,setColumnsVisible:$,setColumnsHidden:Y,toggleSort:G,setSortDirection:X,setSortField:Q,sortField:ea,sortDirection:es,resetDefaultColumnVisibility:el,filters:g,setFilter:y,removeFilter:x,removeLastFilter:b,resetFilters:w}}();return(0,o.jsx)(ea.Provider,{value:n,children:t})}},10917:function(e,t,n){"use strict";n.d(t,{Kg:function(){return o},jY:function(){return i}});var r=n(58121);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 o(e){return e.activeContractsCount.gt(0)&&!e.usable?{status:"activeAndUnusable",...i.activeAndUnusable}:e.activeContractsCount.gt(0)?{status:"activeAndUsable",...i.activeAndUsable}:{status:"potentialHost",...i.potentialHost}}},33571:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(58121),i=n(9969),o=n(2784);function a(){let e=(0,i.ni)();return(0,o.useCallback)((t,n)=>{let i=async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)(i.error),!1):(t.length&&(0,r.RFt)("".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to allowlist")),n.length&&(0,r.RFt)("".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from allowlist")),!0)};return i()},[e])}},98358:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(58121),i=n(9969),o=n(2784);function a(){let e=(0,i.Os)();return(0,o.useCallback)((t,n)=>{let i=async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)(i.error),!1):(t.length&&(0,r.RFt)("".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to blocklist")),n.length&&(0,r.RFt)("".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from blocklist")),!0)};return i()},[e])}},80489:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(9969);function i(e){return(0,r.yu)({...e,params:{key:"contractset"}})}},82439:function(e,t,n){"use strict";n.d(t,{B:function(){return a},V:function(){return o}});var r=n(52322),i=n(88242);let o={excellent:1,good:.5,poor:0};function a(e){let{health:t,size:n,isDirectory:a}=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}}},34658:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r=n(9969);function i(e){return(0,r.yu)({...e,params:{key:"redundancy"}})}},25573:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(58121),i=n(2850),o=n(9969);function a(){var e,t,n,a;let{isUnlocked:s}=(0,i.Hv)(),l=(0,o.DQ)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?(0,r.XBW)(60):(0,r.XBW)(10)}}}),u=(0,o.nH)(),c=l.data?null===(e=l.data)||void 0===e?void 0:e.blockHeight:0,d=(0,o.Tu)({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===(a=d.data)||void 0===a?void 0:a.scanHeight)>=c-1,nodeBlockHeight:c,estimatedBlockHeight:u,syncPercent:f,walletScanPercent:h,moreThan100BlocksToSync:!!c&&!!u&&u-c>100,firstTimeSyncing:!!c&&!!u&&u-c>5e4}}},73221:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return N}});var r=n(52322);n(37832);var i=n(58121),o=n(83035),a=n(48528),s=n(13242),l=n(19513),u=n(2784),c=n(91641),d=n(17286),f=n(88242),h=n(25573),p=n(71930),m=n(4370),v=n(9969),g=n(6391),y=n.n(g),x=n(96206),b=n(2850),w=n(92762);function j(){var e,t;let{isUnlocked:n}=(0,b.Hv)(),a=(0,c.q)(),{openDialog:s}=(0,o.Rh)(),l=(0,v.Tu)(),u=(0,v.e$)({config:{swr:{errorRetryInterval:1e4}}}),[d,g]=(0,w.Z)("v0/renterd/onboarding/maximized",{defaultValue:!0}),j=(0,h.n)(),k=(0,m.F)();if(!n||"on"!==a.autopilot.status)return null;let S=new(y())(l.data?l.data.confirmed+l.data.unconfirmed:0),_=new(y())((null===(e=u.data)||void 0===e?void 0:e.contracts.allowance)||0),C=null===(t=a.autopilot.state.data)||void 0===t?void 0:t.configured,O=j.isSynced,M=S.gt(0),T=!k.active,A=[C,O,M,T],P=A.length,N=A.filter(e=>e).length;return P===N?null:d?(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:()=>g(!1),children:(0,r.jsx)(f.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)(E,{title:(0,r.jsx)(i.rUS,{href:p._.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:C?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:p._.config.index,children:(0,r.jsx)(f.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.Fs9,{})})]})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.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)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[j.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.hzZ,{})})]})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.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,x.Vz)(_)," siacoin to cover the required allowance.").concat(j.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:M?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!j.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(j.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[j.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:p._.wallet.view,onClick:()=>s("addressDetails"),children:(0,r.jsx)(f.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.Fs9,{})})]})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.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)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[k.count,"/",k.required]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.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:()=>g(!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 E(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})})]})})}function k(e){return void 0!==e.loaded?e.loaded/e.size:1}function S(){let{isUnlocked:e}=(0,b.Hv)(),{uploadsList:t,uploadCancel:n,downloadsList:o,downloadCancel:s}=(0,a.Y)(),[l,c]=(0,u.useState)(!0),d=t.length,h=o.length;return e&&(0!==d||0!==h)?l?(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.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[d>0?(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 uploads (",d,")"]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(f.mli,{})})]}),t.map(e=>{let t=k(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:e.path}),(0,r.jsx)(i.zxk,{tip:"Cancel file upload",variant:"ghost",size:"none",onClick:()=>n(e),children:(0,r.jsx)(f.PcV,{})})]}),(0,r.jsx)(i.kod,{variant:"accent",value:e.loaded,max:e.size,className:1===t?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"Processing":"Uploading"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*t).toFixed(0),"%"]})]})]},e.path)})]}):null,h>0?(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===d?(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(f.mli,{})}):null]}),o.map(e=>{let t=k(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:e.path}),(0,r.jsx)(i.zxk,{tip:"Cancel file download",variant:"ghost",size:"none",onClick:()=>s(e),children:(0,r.jsx)(f.PcV,{})})]}),(0,r.jsx)(i.kod,{variant:"accent",value:e.loaded,max:e.size,className:1===t?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"Processing":"Downloading"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*t).toFixed(0),"%"]})]})]},e.path)})]}):null]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsxs)(i.zxk,{onClick:()=>c(!0),className:"flex gap-3",children:[(0,r.jsx)(i.xgg,{}),d?(0,r.jsxs)(i.xvT,{className:"flex gap-1",children:[d,(0,r.jsx)(f.R$6,{className:"opacity-50 scale-75 relative top-px"})]}):null,h?(0,r.jsxs)(i.xvT,{className:"flex gap-1",children:[h&&h,(0,r.jsx)(f.vzB,{className:"opacity-50 scale-75"})]}):null]})}):null}function _(e){let{children:t}=e;return(0,r.jsx)(c.w,{children:(0,r.jsx)(d.iV,{children:(0,r.jsx)(o.Tu,{children:(0,r.jsx)(s.x,{children:(0,r.jsx)(l.x,{children:(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(j,{}),(0,r.jsx)(S,{}),(0,r.jsx)(o.xQ,{}),t]})})})})})})}var C=n(1240),O=n.n(C),M=n(49854),T=n.n(M),A=n(82851);let P=(0,A.cx)(O().variable,T().variable);function N(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{className:P,fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:p._,children:(0,r.jsx)(_,{children:(0,r.jsx)(t,{...n})})})}},58121:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{UQy:function(){return la},vF:function(){return lc},Qdk:function(){return lu},o48:function(){return ls},hcY:function(){return _s},tU3:function(){return _r},zXq:function(){return _j},juT:function(){return Sz},Cts:function(){return l_},Z58:function(){return _8},WVB:function(){return cZ},zxk:function(){return li},EKh:function(){return lM},vRO:function(){return CM},QHy:function(){return Cg},TaT:function(){return Cd},eQh:function(){return lA},HfT:function(){return Cb},wEc:function(){return _9},ncR:function(){return Sp},VqE:function(){return ul},h_2:function(){return cW},Xiv:function(){return cq},Juw:function(){return c$},KpP:function(){return cK},fhJ:function(){return pH},XOF:function(){return Sh},S$c:function(){return SS},WyV:function(){return CA},QBj:function(){return CT},yEL:function(){return _y},cB7:function(){return Sb},ZqQ:function(){return Sx},IKw:function(){return S_},KZS:function(){return Sw},zsw:function(){return h5},__J:function(){return c7},rUS:function(){return dt},Qjf:function(){return dn},xgg:function(){return Ea},TRl:function(){return di},kFS:function(){return cI},FzK:function(){return Cp},Clw:function(){return cV},PD$:function(){return CL},Wxm:function(){return f2},uDJ:function(){return SM},wFK:function(){return ST},s_4:function(){return t3},nvN:function(){return t2},u5Q:function(){return _7},j4H:function(){return fQ},hmz:function(){return fJ},J2e:function(){return dC},kod:function(){return dI},xrM:function(){return uo},PhF:function(){return f1},Z0O:function(){return cR},DLL:function(){return _1},KJW:function(){return SB},rsf:function(){return hl},D_D:function(){return _W},xf5:function(){return CK},iA_:function(){return SC},mQc:function(){return fm},nUL:function(){return fy},drW:function(){return fv},SPt:function(){return fg},t6k:function(){return Cw},xvT:function(){return t1},ua7:function(){return ln},mPE:function(){return _q},XxW:function(){return k6},PF9:function(){return k8},m2c:function(){return Sr},YKL:function(){return k9},ho9:function(){return Sn},QUh:function(){return _4},weF:function(){return _P},YNn:function(){return _Y},DmW:function(){return _G},jrD:function(){return Ci},x5w:function(){return Cr},JWi:function(){return C$},O9T:function(){return vw},vQq:function(){return kG},E5z:function(){return kX},HLH:function(){return CX},NrH:function(){return j3},k9c:function(){return Ee},EJC:function(){return CY},leQ:function(){return k1},Ztc:function(){return _B},XAn:function(){return Et},Vkc:function(){return cL},sWj:function(){return j4},ort:function(){return En},xLV:function(){return j6},S5V:function(){return Ct},okB:function(){return j9},AEA:function(){return j7},z$:function(){return t4},XBW:function(){return Ei},GXN:function(){return Er},I13:function(){return kJ},cEb:function(){return fx},y70:function(){return fH},OHV:function(){return k$},OPV:function(){return kq},RFt:function(){return kU},$Gg:function(){return kQ},_4u:function(){return CH},Wdu:function(){return CB},Y97:function(){return _n},c2j:function(){return _i},WsO:function(){return _g},Uu5:function(){return CU},fb0:function(){return Cq},oy6:function(){return CI},BL0:function(){return j5},mvJ:function(){return Ce},ivg:function(){return j8}});var s,l,u,c,d,f,h,p,m,v,g,y=n(52322),x=n(2784),b=n.t(x,2),w=n(7896),j=n(34540),E=n(26215),k=n(99575);function S(e){let t=e+"CollectionProvider",[n,r]=(0,j.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,E.e)(t,i.collectionRef);return x.createElement(k.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=x.useRef(null),s=(0,E.e)(t,a),c=o(l,n);return x.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),x.createElement(k.g7,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=x.useRef(null),o=x.useRef(new Map).current;return x.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}var _=n(41816),C=n(73597),O=n(72130),M=n(64680),T=n(28245),A=n(26074);let P="Collapsible",[N,R]=(0,j.b)(P),[D,L]=N(P),F=(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,C.T)({prop:r,defaultProp:i,onChange:a});return(0,x.createElement)(D,{scope:n,disabled:o,contentId:(0,A.M)(),open:l,onOpenToggle:(0,x.useCallback)(()=>u(e=>!e),[u])},(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":B(l),"data-disabled":o?"":void 0},s,{ref:t})))}),z=(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=L("CollapsibleTrigger",n);return(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":B(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},r,{ref:t,onClick:(0,_.M)(e.onClick,i.onOpenToggle)}))}),V="CollapsibleContent",Z=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=L(V,e.__scopeCollapsible);return(0,x.createElement)(T.z,{present:n||i.open},({present:e})=>(0,x.createElement)(I,(0,w.Z)({},r,{ref:t,present:e})))}),I=(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=L(V,n),[s,l]=(0,x.useState)(r),u=(0,x.useRef)(null),c=(0,E.e)(t,u),d=(0,x.useRef)(0),f=d.current,h=(0,x.useRef)(0),p=h.current,m=a.open||s,v=(0,x.useRef)(m),g=(0,x.useRef)();return(0,x.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,M.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,x.createElement)(O.WV.div,(0,w.Z)({"data-state":B(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 B(e){return e?"open":"closed"}let H="Accordion",U=["Home","End","ArrowDown","ArrowUp"],[W,q,$]=S(H),[K,Y]=(0,j.b)(H,[$,R]),G=R(),X=x.forwardRef((e,t)=>{let{type:n,...r}=e;return x.createElement(W.Provider,{scope:e.__scopeAccordion},"multiple"===n?x.createElement(er,(0,w.Z)({},r,{ref:t})):x.createElement(en,(0,w.Z)({},r,{ref:t})))});X.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[Q,J]=K(H),[ee,et]=K(H,{collapsible:!1}),en=x.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,C.T)({prop:n,defaultProp:r,onChange:i});return x.createElement(Q,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:x.useCallback(()=>o&&l(""),[o,l])},x.createElement(ee,{scope:e.__scopeAccordion,collapsible:o},x.createElement(ea,(0,w.Z)({},a,{ref:t}))))}),er=x.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,C.T)({prop:n,defaultProp:r,onChange:i}),l=x.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=x.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return x.createElement(Q,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},x.createElement(ee,{scope:e.__scopeAccordion,collapsible:!0},x.createElement(ea,(0,w.Z)({},o,{ref:t}))))}),[ei,eo]=K(H),ea=x.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=x.useRef(null),a=(0,E.e)(o,t),s=q(n),l=(0,_.M)(e.onKeyDown,e=>{var t;if(!U.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)}let l=a%o;null===(t=r[l].ref.current)||void 0===t||t.focus()});return x.createElement(ei,{scope:n,disabled:r},x.createElement(W.Slot,{scope:n},x.createElement(O.WV.div,(0,w.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),es="AccordionItem",[el,eu]=K(es),ec=x.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,o=eo(es,n),a=J(es,n),s=G(n),l=(0,A.M)(),u=r&&a.value.includes(r)||!1,c=o.disabled||e.disabled;return x.createElement(el,{scope:n,open:u,disabled:c,triggerId:l},x.createElement(F,(0,w.Z)({"data-state":u?"open":"closed"},s,i,{ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})))}),ed=x.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu("AccordionHeader",n);return x.createElement(O.WV.h3,(0,w.Z)({"data-state":i.open?"open":"closed","data-disabled":i.disabled?"":void 0},r,{ref:t}))}),ef="AccordionTrigger",eh=x.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu(ef,n),o=et(ef,n),a=G(n);return x.createElement(W.ItemSlot,{scope:n},x.createElement(z,(0,w.Z)({"aria-disabled":i.open&&!o.collapsible||void 0,id:i.triggerId},a,r,{ref:t})))}),ep=x.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu("AccordionContent",n),o=G(n);return x.createElement(Z,(0,w.Z)({role:"region","aria-labelledby":i.triggerId},o,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});var em=n(82851),ev=n(83317);function eg(e){return e.split("-")[0]}function ey(e){return e.split("-")[1]}function ex(e){return["top","bottom"].includes(eg(e))?"x":"y"}function eb(e){return"y"===e?"height":"width"}function ew(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=ex(t),u=eb(l),c=i[u]/2-o[u]/2,d="x"===l;switch(eg(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(ey(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: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}=ew(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=eE(r),c={x:i,y:o},d=ex(a),f=ey(a),h=eb(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],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),b=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0;0===b&&(b=s.floating[h]);let w=u[m],j=b-p[h]-u[v],E=b/2-p[h]/2+(g/2-y/2),k=eC(w,e_(E,j)),S=("start"===f?u[m]:u[v])>0&&E!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?EeM[e])}let eA={start:"end",end:"start"};function eP(e){return e.replace(/start|end/g,e=>eA[e])}let eN=["top","right","bottom","left"];eN.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eR=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=eg(a),x=p||(y!==u&&v?function(e){let t=eT(e);return[eP(e),t,eP(t)]}(u):[eT(u)]),b=[u,...x],w=await eS(t,g),j=[],E=(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=ey(e),i=ex(e),o=eb(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=eT(a)),{main:a,cross:eT(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));j.push(w[e],w[t])}if(E=[...E,{placement:a,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=b[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(o=E.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 eD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eL(e){return eN.some(t=>e[t]>=0)}let eF=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=eD(await eS(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eL(t)}}}case"escaped":{let t=eD(await eS(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:eL(t)}}}default:return{}}}}},ez=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=eg(n),s=ey(n),l="x"===ex(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 eV(e){return"x"===e?"y":"x"}let eZ=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 eS(t,l),d=ex(eg(i)),f=eV(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=eC(h+c["y"===d?"top":"left"],e_(h,h-c[e]))}a&&(p=eC(p+c["y"===f?"top":"left"],e_(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eI=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=ex(i),f=eV(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,x,b;let e="y"===d?"width":"height",t=["top","left"].includes(eg(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!=(x=null==(b=a.offset)?void 0:b[f])?x:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function eB(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eH(e){if(null==e)return window;if(!eB(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eU(e){return eH(e).getComputedStyle(e)}function eW(e){return eB(e)?"":e?(e.nodeName||"").toLowerCase():""}function eq(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function e$(e){return e instanceof eH(e).HTMLElement}function eK(e){return e instanceof eH(e).Element}function eY(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eH(e).ShadowRoot||e instanceof ShadowRoot)}function eG(e){let{overflow:t,overflowX:n,overflowY:r}=eU(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function eX(e){let t=/firefox/i.test(eq()),n=eU(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 eQ(){return!/^((?!chrome|android).)*safari/i.test(eq())}let eJ=Math.min,e0=Math.max,e1=Math.round;function e2(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&&e$(e)&&(l=e.offsetWidth>0&&e1(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&e1(s.height)/e.offsetHeight||1);let c=eK(e)?eH(e):window,d=!eQ()&&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 e4(e){return((e instanceof eH(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function e3(e){return eK(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function e5(e){return e2(e4(e)).left+e3(e).scrollLeft}function e6(e){return"html"===eW(e)?e:e.assignedSlot||e.parentNode||(eY(e)?e.host:null)||e4(e)}function e8(e){return e$(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function e7(e){let t=eH(e),n=e8(e);for(;n&&["table","td","th"].includes(eW(n))&&"static"===getComputedStyle(n).position;)n=e8(n);return n&&("html"===eW(n)||"body"===eW(n)&&"static"===getComputedStyle(n).position&&!eX(n))?t:n||function(e){let t=e6(e);for(eY(t)&&(t=t.host);e$(t)&&!["html","body"].includes(eW(t));){if(eX(t))return t;t=t.parentNode}return null}(e)||t}function e9(e){if(e$(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e2(e);return{width:t.width,height:t.height}}function te(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=e6(t);return["html","body","#document"].includes(eW(n))?t.ownerDocument.body:e$(n)&&eG(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=eH(r),a=i?[o].concat(o.visualViewport||[],eG(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(te(a))}function tt(e,t,n){return"viewport"===t?ek(function(e,t){let n=eH(e),r=e4(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=eQ();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):eK(t)?function(e,t){let n=e2(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):ek(function(e){var t;let n=e4(e),r=e3(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=e0(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=e0(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+e5(e),l=-r.scrollTop;return"rtl"===eU(i||n).direction&&(s+=e0(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(e4(e)))}let tn={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=te(e),n=["absolute","fixed"].includes(eU(e).position)&&e$(e)?e7(e):e;return eK(n)?t.filter(e=>eK(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&eY(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==eW(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=tt(t,n,i);return e.top=e0(r.top,e.top),e.right=eJ(r.right,e.right),e.bottom=eJ(r.bottom,e.bottom),e.left=e0(r.left,e.left),e},tt(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=e$(n),o=e4(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==eW(n)||eG(o))&&(a=e3(n)),e$(n))){let e=e2(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:eK,getDimensions:e9,getOffsetParent:e7,getDocumentElement:e4,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=e$(t),i=e4(t),o=e2(e,r&&function(e){let t=e2(e);return e1(t.width)!==e.offsetWidth||e1(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==eW(t)||eG(i))&&(a=e3(t)),e$(t)){let e=e2(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=e5(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,e7(n),r),floating:{...e9(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eU(e).direction};function tr(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?[...eK(e)?te(e):[],...te(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}),eK(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e2(e):null;return s&&function t(){let r=e2(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 ti=(e,t,n)=>ej(e,t,{platform:tn,...n});var to=n(28316),ta="undefined"!=typeof document?x.useLayoutEffect:x.useEffect;function ts(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=x.useRef(null),a=x.useRef(null),s=function(e){let t=x.useRef(e);return ta(()=>{t.current=e}),t}(i),l=x.useRef(null),[u,c]=x.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=x.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=x.useCallback(()=>{o.current&&a.current&&ti(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&to.flushSync(()=>{c(e)})})},[d,n,r]);ta(()=>{p.current&&h()},[h]);let p=x.useRef(!1);ta(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=x.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=x.useCallback(e=>{o.current=e,m()},[m]),g=x.useCallback(e=>{a.current=e,m()},[m]),y=x.useMemo(()=>({reference:o,floating:a}),[]);return x.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tl=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 eO({element:t.current,padding:n}).fn(e)}else if(t)return eO({element:t,padding:n}).fn(e);return{}}}},tu=(0,x.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,x.createElement)(O.WV.svg,(0,w.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,x.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tc(e){let[t,n]=(0,x.useState)(void 0);return(0,M.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 td="Popper",[tf,th]=(0,j.b)(td),[tp,tm]=tf(td),tv=(0,x.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=tm("PopperAnchor",n),a=(0,x.useRef)(null),s=(0,E.e)(t,a);return(0,x.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,x.createElement)(O.WV.div,(0,w.Z)({},i,{ref:s}))}),tg="PopperContent",[ty,tx]=tf(tg),[tb,tw]=tf(tg,{hasParent:!1,positionUpdateFns:new Set}),tj=(0,x.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:w=!0,...j}=e,k=tm(tg,c),[S,_]=(0,x.useState)(null),C=(0,E.e)(t,e=>_(e)),[T,A]=(0,x.useState)(null),P=tc(T),N=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,R=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,D="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},L=Array.isArray(v)?v:[v],F=L.length>0,z={padding:D,boundary:L.filter(t_),altBoundary:F},{reference:V,floating:Z,strategy:I,x:B,y:H,placement:U,middlewareData:W,update:q}=ts({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tr,middleware:[ez({mainAxis:f+R,alignmentAxis:p}),w?eZ({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eI():void 0,...z}):void 0,T?tl({element:T,padding:m}):void 0,w?eR({...z}):void 0,tC({arrowWidth:N,arrowHeight:R}),b?eF({strategy:"referenceHidden"}):void 0].filter(tS)});(0,M.b)(()=>{V(k.anchor)},[V,k.anchor]);let $=null!==B&&null!==H,[K,Y]=tO(U),G=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(o=W.arrow)||void 0===o?void 0:o.y,Q=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[J,ee]=(0,x.useState)();(0,M.b)(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:et,positionUpdateFns:en}=tw(tg,c),er=!et;(0,x.useLayoutEffect)(()=>{if(!er)return en.add(q),()=>{en.delete(q)}},[er,en,q]),(0,x.useLayoutEffect)(()=>{er&&$&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,$,en]);let ei={"data-side":K,"data-align":Y,...j,ref:C,style:{...j.style,animation:$?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,x.createElement)("div",{ref:Z,"data-radix-popper-content-wrapper":"",style:{position:I,left:0,top:0,transform:$?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,x.createElement)(ty,{scope:c,placedSide:K,onArrowChange:A,arrowX:G,arrowY:X,shouldHideArrow:Q},er?(0,x.createElement)(tb,{scope:c,hasParent:!0,positionUpdateFns:en},(0,x.createElement)(O.WV.div,ei)):(0,x.createElement)(O.WV.div,ei)))}),tE={top:"bottom",right:"left",bottom:"top",left:"right"},tk=(0,x.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tx("PopperArrow",n),o=tE[i.placedSide];return(0,x.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,x.createElement)(tu,(0,w.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function tS(e){return void 0!==e}function t_(e){return null!==e}let tC=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]=tO(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="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function tO(e){let[t,n="center"]=e.split("-");return[t,n]}let tM=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,x.useState)(null);return(0,x.createElement)(tp,{scope:t,anchor:r,onAnchorChange:i},n)};var tT=n(6500);let tA=(0,x.forwardRef)((e,t)=>(0,x.createElement)(O.WV.span,(0,w.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}}))),[tP,tN]=(0,j.b)("Tooltip",[th]),tR=th(),tD="tooltip.open",[tL,tF]=tP("TooltipProvider"),tz="Tooltip",[tV,tZ]=tP(tz),tI="TooltipTrigger",tB=(0,x.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=tZ(tI,n),o=tF(tI,n),a=tR(n),s=(0,x.useRef)(null),l=(0,E.e)(t,s,i.onTriggerChange),u=(0,x.useRef)(!1),c=(0,x.useRef)(!1),d=(0,x.useCallback)(()=>u.current=!1,[]);return(0,x.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,x.createElement)(tv,(0,w.Z)({asChild:!0},a),(0,x.createElement)(O.WV.button,(0,w.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,_.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,_.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,_.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,_.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,_.M)(e.onBlur,i.onClose),onClick:(0,_.M)(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tH="TooltipPortal",[tU,tW]=tP(tH,{forceMount:void 0}),tq="TooltipContent",t$=(0,x.forwardRef)((e,t)=>{let n=tW(tq,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=tZ(tq,e.__scopeTooltip);return(0,x.createElement)(T.z,{present:r||a.open},a.disableHoverableContent?(0,x.createElement)(tX,(0,w.Z)({side:i},o,{ref:t})):(0,x.createElement)(tK,(0,w.Z)({side:i},o,{ref:t})))}),tK=(0,x.forwardRef)((e,t)=>{let n=tZ(tq,e.__scopeTooltip),r=tF(tq,e.__scopeTooltip),i=(0,x.useRef)(null),o=(0,E.e)(t,i),[a,s]=(0,x.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,x.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,x.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=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}}(r,n.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=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()),u=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)}([a,...l]);s(u),d(!0)},[d]);return(0,x.useEffect)(()=>()=>f(),[f]),(0,x.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,x.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;c&&(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,x.createElement)(tX,(0,w.Z)({},e,{ref:o}))}),[tY,tG]=tP(tz,{isInside:!1}),tX=(0,x.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tZ(tq,n),u=tR(n),{onClose:c}=l;return(0,x.useEffect)(()=>(document.addEventListener(tD,c),()=>document.removeEventListener(tD,c)),[c]),(0,x.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,x.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,x.createElement)(tj,(0,w.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,x.createElement)(k.A4,null,r),(0,x.createElement)(tY,{scope:n,isInside:!0},(0,x.createElement)(tA,{id:l.contentId,role:"tooltip"},i||r))))}),tQ=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tF(tz,e.__scopeTooltip),u=tR(t),[c,d]=(0,x.useState)(null),f=(0,A.M)(),h=(0,x.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,x.useRef)(!1),[g=!1,y]=(0,C.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(tD))):l.onClose(),null==o||o(e)}}),b=(0,x.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),w=(0,x.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),j=(0,x.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),E=(0,x.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,x.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,x.createElement)(tM,u,(0,x.createElement)(tV,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,x.useCallback)(()=>{l.isOpenDelayed?E():w()},[l.isOpenDelayed,E,w]),onTriggerLeave:(0,x.useCallback)(()=>{p?j():window.clearTimeout(h.current)},[j,p]),onOpen:w,onClose:j,disableHoverableContent:p},n))},tJ=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=tZ(tH,t);return(0,x.createElement)(tU,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(tT.h,{asChild:!0,container:i},r)))},t0=(0,em.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"}}),t1=x.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,y.jsx)(n,{ref:t,className:(0,em.cx)(r,t0({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t2=x.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,y.jsx)(t1,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,em.cx)("leading-relaxed md:leading-relaxed",e.className)})}),t4=(0,em.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),t3=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:t4({className:n}),...r})});var t5=n(34406);let t6=(void 0===t5||t5.env,"production"),t8=1/60*1e3,t7="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),t9="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(t7()),t8),ne=!0,nt=!1,nn=!1,nr={delta:0,timestamp:0},ni=["read","update","preRender","render","postRender"],no=ni.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;nnt=!0),e),{}),na=ni.reduce((e,t)=>{let n=no[t];return e[t]=(e,t=!1,r=!1)=>(nt||nd(),n.schedule(e,t,r)),e},{}),ns=ni.reduce((e,t)=>(e[t]=no[t].cancel,e),{}),nl=ni.reduce((e,t)=>(e[t]=()=>no[t].process(nr),e),{}),nu=e=>no[e].process(nr),nc=e=>{nt=!1,nr.delta=ne?t8:Math.max(Math.min(e-nr.timestamp,40),1),nr.timestamp=e,nn=!0,ni.forEach(nu),nn=!1,nt&&(ne=!1,t9(nc))},nd=()=>{nt=!0,ne=!0,nn||t9(nc)},nf=()=>nr,nh="undefined"!=typeof document,np=nh?x.useLayoutEffect:x.useEffect;function nm(){let e=(0,x.useRef)(!1);return np(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nv=(0,x.createContext)(null);function ng(e){let t=(0,x.useRef)(null);return null===t.current&&(t.current=e()),t.current}class ny extends x.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 nx({children:e,isPresent:t}){let n=(0,x.useId)(),r=(0,x.useRef)(null),i=(0,x.useRef)({width:0,height:0,top:0,left:0});return(0,x.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,16 +22,16 @@ top: ${a}px !important; left: ${s}px !important; } - `),()=>{document.head.removeChild(l)}},[t]),x.createElement(ny,{isPresent:t,childRef:r,sizeRef:i},x.cloneElement(e,{ref:r}))}let nb=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=ng(nw),l=(0,x.useId)(),u=(0,x.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,x.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),x.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=x.createElement(nx,{isPresent:n},e)),x.createElement(nv.Provider,{value:u},e)};function nw(){return new Map}let nj=(0,x.createContext)({});function nE(e){return(0,x.useEffect)(()=>()=>e(),[])}let nk=new Set;function nS(e,t,n){e||nk.has(t)||(console.warn(t),n&&console.warn(n),nk.add(t))}let n_=e=>e.key||"",nC=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nS(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=nm(),[t,n]=(0,x.useState)(0),r=(0,x.useCallback)(()=>{e.current&&n(t+1)},[t]),i=(0,x.useCallback)(()=>na.postRender(r),[r]);return[i,t]}(),l=(0,x.useContext)(nj).forceRender;l&&(s=l);let u=nm(),c=function(e){let t=[];return x.Children.forEach(e,e=>{(0,x.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,x.useRef)(d),p=(0,x.useRef)(new Map).current,m=(0,x.useRef)(!0);if(np(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=n_(e);t.set(n,e)})}(c,p),h.current=d}),nE(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return x.createElement(x.Fragment,null,d.map(e=>x.createElement(nb,{key:n_(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(n_),g=c.map(n_),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,x.createElement(nb,{key:n_(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:x.createElement(nb,{key:n_(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==t6&&"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.'),x.createElement(x.Fragment,null,f.size?d:d.map(e=>(0,x.cloneElement)(e)))},nO=(0,x.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nM=(0,x.createContext)({}),nT=(0,x.createContext)({strict:!1});function nA(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nP(e){return"string"==typeof e||Array.isArray(e)}function nN(e){return"object"==typeof e&&"function"==typeof e.start}let nR=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function nD(e){return nN(e.animate)||nR.some(t=>nP(e[t]))}function nL(e){return!!(nD(e)||e.variants)}function nF(e){return Array.isArray(e)?e.join(" "):e}let nz=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nV={measureLayout:nz(["layout","layoutId","drag"]),animation:nz(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nz(["exit"]),drag:nz(["drag","dragControls"]),focus:nz(["whileFocus"]),hover:nz(["whileHover","onHoverStart","onHoverEnd"]),tap:nz(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nz(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nz(["whileInView","onViewportEnter","onViewportLeave"])},nI={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nZ=1;class nB extends x.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let nH=(0,x.createContext)({}),nU=Symbol.for("motionComponentSymbol"),nW=["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 nq(e){if("string"!=typeof e||e.includes("-"));else if(nW.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let n$={},nK=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nY=new Set(nK);function nG(e,{layout:t,layoutId:n}){return nY.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!n$[e]||"opacity"===e)}let nX=e=>!!(null==e?void 0:e.getVelocity),nJ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nQ=(e,t)=>nK.indexOf(e)-nK.indexOf(t);function n0(e){return e.startsWith("--")}let n1=(e,t)=>t&&"number"==typeof e?t.transform(e):e,n2=(e,t)=>n=>Math.max(Math.min(n,t),e),n4=e=>e%1?Number(e.toFixed(5)):e,n3=/(-)?([\d]*\.?[\d])+/g,n5=/(#[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,n6=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function n8(e){return"string"==typeof e}let n7=e=>({test:t=>n8(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n9=n7("deg"),re=n7("%"),rt=n7("px"),rn=n7("vh"),rr=n7("vw"),ri=Object.assign(Object.assign({},re),{parse:e=>re.parse(e)/100,transform:e=>re.transform(100*e)}),ro={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ra=Object.assign(Object.assign({},ro),{transform:n2(0,1)}),rs=Object.assign(Object.assign({},ro),{default:1}),rl={...ro,transform:Math.round},ru={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,size:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,rotate:n9,rotateX:n9,rotateY:n9,rotateZ:n9,scale:rs,scaleX:rs,scaleY:rs,scaleZ:rs,skew:n9,skewX:n9,skewY:n9,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:ra,originX:ri,originY:ri,originZ:rt,zIndex:rl,fillOpacity:ra,strokeOpacity:ra,numOctaves:rl};function rc(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(n0(e)){o[e]=n;continue}let r=ru[e],f=n1(n,r);if(nY.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(nQ),t))a+=`${nJ[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 rd=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rf(e,t,n){for(let r in t)nX(t[r])||nG(r,n)||(e[r]=t[r])}function rh(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rf(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,x.useMemo)(()=>{let r=rd();return rc(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}let rp=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 rm(e){return rp.has(e)}let rv=e=>!rm(e);try{(Em=require("@emotion/is-prop-valid").default)&&(rv=e=>e.startsWith("on")?!rm(e):Em(e))}catch(e){}function rg(e,t,n){return"string"==typeof e?e:rt.transform(t+n*e)}let ry={offset:"stroke-dashoffset",array:"stroke-dasharray"},rx={offset:"strokeDashoffset",array:"strokeDasharray"};function rb(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rc(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=rg(t,e.x,e.width),i=rg(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?ry:rx;e[o.offset]=rt.transform(-r);let a=rt.transform(t),s=rt.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let rw=()=>({...rd(),attrs:{}});function rj(e,t){let n=(0,x.useMemo)(()=>{let n=rw();return rb(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rf(t,e.style,e),n.style={...t,...n.style}}return n}let rE=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rk(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 rS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function r_(e,t,n,r){for(let n in rk(e,t,void 0,r),t.attrs)e.setAttribute(rS.has(n)?n:rE(n),t.attrs[n])}function rC(e){let{style:t}=e,n={};for(let r in t)(nX(t[r])||nG(r,e))&&(n[r]=t[r]);return n}function rO(e){let t=rC(e);for(let n in e)if(nX(e[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function rM(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 rT=e=>Array.isArray(e),rA=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rP=e=>rT(e)?e[e.length-1]||0:e;function rN(e){let t=nX(e)?e.get():e;return rA(t)?t.toValue():t}let rR=e=>(t,n)=>{let r=(0,x.useContext)(nM),i=(0,x.useContext)(nv),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]=rN(o[e]);let{initial:a,animate:s}=e,l=nD(e),u=nL(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;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!nN(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let n=rM(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]})}return i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():ng(o)},rD={useVisualState:rR({scrapeMotionValuesFromProps:rO,createRenderState:rw,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}}rb(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),r_(t,n)}})},rL={useVisualState:rR({scrapeMotionValuesFromProps:rC,createRenderState:rd})};function rF(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rz(e,t,n,r){(0,x.useEffect)(()=>{let i=e.current;if(n&&i)return rF(i,t,n,r)},[e,t,n,r])}function rV(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function rI(e){let t=!!e.touches;return t}(Ev=Ew||(Ew={})).Animate="animate",Ev.Hover="whileHover",Ev.Tap="whileTap",Ev.Drag="whileDrag",Ev.Focus="whileFocus",Ev.InView="whileInView",Ev.Exit="exit";let rZ={pageX:0,pageY:0};function rB(e,t="page"){return{point:rI(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0],r=n||rZ;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let rH=(e,t=!1)=>{let n=t=>e(t,rB(t));return t?e=>{let t=e instanceof MouseEvent,r=!t||t&&0===e.button;r&&n(e)}:n},rU=()=>nh&&null===window.onpointerdown,rW=()=>nh&&null===window.ontouchstart,rq=()=>nh&&null===window.onmousedown,r$={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rK={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function rY(e){if(rU());else if(rW())return rK[e];else if(rq())return r$[e];return e}function rG(e,t,n,r){return rF(e,rY(t),rH(n,"pointerdown"===t),r)}function rX(e,t,n,r){return rz(e,rY(t),n&&rH(n,"pointerdown"===t),r)}function rJ(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rQ=rJ("dragHorizontal"),r0=rJ("dragVertical");function r1(e){let t=!1;if("y"===e)t=r0();else if("x"===e)t=rQ();else{let e=rQ(),n=r0();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function r2(){let e=r1(!0);return!e||(e(),!1)}function r4(e,t,n){return(r,i)=>{!(!rV(r)||r2())&&(e.animationState&&e.animationState.setActive(Ew.Hover,t),n&&n(r,i))}}let r3=(e,t)=>!!t&&(e===t||r3(e,t.parentElement)),r5=(e,t)=>n=>t(e(n)),r6=(...e)=>e.reduce(r5),r8=new WeakMap,r7=new WeakMap,r9=e=>{let t=r8.get(e.target);t&&t(e)},ie=e=>{e.forEach(r9)},it={some:0,all:1};function ir(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,x.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:it[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;r7.has(n)||r7.set(n,{});let r=r7.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ie,{root:e,...t})),r[i]}(t);return r8.set(e,n),r.observe(e),()=>{r8.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(Ew.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])}function ii(e,t,n,{fallback:r=!0}){(0,x.useEffect)(()=>{e&&r&&("production"!==t6&&nS(!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(Ew.InView,!0)}))},[e])}let io=e=>t=>(e(t),null),ia={inView:io(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,x.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?ii:ir;s(a,o.current,e,i)}),tap:io(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,x.useRef)(!1),s=(0,x.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(Ew.Tap,!1),!r2()}function d(t,r){c()&&(r3(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=r6(rG(window,"pointerup",d,l),rG(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(Ew.Tap,!0),t&&t(e,n))}rX(i,"pointerdown",o?h:void 0,l),nE(u)}),focus:io(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;rz(t,"focus",e?()=>{n&&n.setActive(Ew.Focus,!0)}:void 0),rz(t,"blur",e?()=>{n&&n.setActive(Ew.Focus,!1)}:void 0)}),hover:io(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){rX(r,"pointerenter",e||n?r4(r,!0,e):void 0,{passive:!e}),rX(r,"pointerleave",t||n?r4(r,!1,t):void 0,{passive:!t})})};function is(){let e=(0,x.useContext)(nv);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,x.useId)();return(0,x.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function il(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 ic=function(){},id=function(){};let ih=(e,t,n)=>Math.min(Math.max(n,e),t);function ip(e,t){return e*Math.sqrt(1-t*t)}let im=["duration","bounce"],iv=["stiffness","damping","mass"];function ig(e,t){return t.some(t=>void 0!==e[t])}function iy(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=iu(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(!ig(e,iv)&&ig(e,im)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;ic(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ih(.05,1,a),e=ih(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e,o=ip(t,a),s=Math.exp(-i);return .001-(r-n)/o*s},o=t=>{let r=t*a,o=r*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ip(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*n+n-s)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},o=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,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=ix,p=ix;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=ip(a,o);h=i=>{let s=Math.exp(-o*a*i);return n-s*((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(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iy.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let ix=e=>0,ib=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iw=(e,t,n)=>-n*e+n*t+e,ij=(e,t)=>n=>!!(n8(n)&&n6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),iE=(e,t,n)=>r=>{if(!n8(r))return r;let[i,o,a,s]=r.match(n3);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},ik=n2(0,255),iS=Object.assign(Object.assign({},ro),{transform:e=>Math.round(ik(e))}),i_={test:ij("rgb","red"),parse:iE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iS.transform(e)+", "+iS.transform(t)+", "+iS.transform(n)+", "+n4(ra.transform(r))+")"},iC={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:i_.transform},iO={test:ij("hsl","hue"),parse:iE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+re.transform(n4(t))+", "+re.transform(n4(n))+", "+n4(ra.transform(r))+")"};function iM(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 iT({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=iM(s,r,e+1/3),o=iM(s,r,e),a=iM(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 iA=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},iP=[iC,i_,iO],iN=e=>iP.find(t=>t.test(e)),iR=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,iD=(e,t)=>{let n=iN(e),r=iN(t);id(!!n,iR(e)),id(!!r,iR(t));let i=n.parse(e),o=r.parse(t);n===iO&&(i=iT(i),n=i_),r===iO&&(o=iT(o),r=i_);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iA(i[t],o[t],e));return a.alpha=iw(i.alpha,o.alpha,e),n.transform(a)}},iL={test:e=>i_.test(e)||iC.test(e)||iO.test(e),parse:e=>i_.test(e)?i_.parse(e):iO.test(e)?iO.parse(e):iC.parse(e),transform:e=>n8(e)?e:e.hasOwnProperty("red")?i_.transform(e):iO.transform(e)},iF="${c}",iz="${n}";function iV(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(n5);r&&(n=r.length,e=e.replace(n5,iF),t.push(...r.map(iL.parse)));let i=e.match(n3);return i&&(e=e.replace(n3,iz),t.push(...i.map(ro.parse))),{values:t,numColors:n,tokenised:e}}function iI(e){return iV(e).values}function iZ(e){let{values:t,numColors:n,tokenised:r}=iV(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,iH={test:function(e){var t,n,r,i;return isNaN(e)&&n8(e)&&(null!==(n=null===(t=e.match(n3))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(n5))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:iI,createTransformer:iZ,getAnimatableNone:function(e){let t=iI(e),n=iZ(e);return n(t.map(iB))}},iU=e=>"number"==typeof e;function iW(e,t){return iU(e)?n=>iw(e,t,n):iL.test(e)?iD(e,t):iY(e,t)}let iq=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>iW(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]=iW(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function iK(e){let t=iH.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=iH.createTransformer(t),r=iK(e),i=iK(t),o=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return o?r6(iq(r.parsed,i.parsed),n):(ic(!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}`)},iG=(e,t)=>n=>iw(e,t,n);function iX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;id(o===t.length,"Both input and output ranges must be the same length"),id(!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])?iG:"string"==typeof r?iL.test(r)?iD:iY:Array.isArray(r)?iq:"object"==typeof r?i$:void 0),a=e.length-1;for(let n=0;nn(ib(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=ib(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(ih(e[0],e[o-1],t)):s}let iJ=e=>t=>1-e(1-t),iQ=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i0=e=>t=>t*t*((e+1)*t-e),i1=4/11,i2=8/11,i4=e=>e,i3=e=>Math.pow(e,2),i5=iJ(i3),i6=iQ(i3),i8=e=>1-Math.sin(Math.acos(e)),i7=iJ(i8),i9=iQ(i7),oe=i0(1.525),ot=iJ(oe),on=iQ(oe),or=(e=>{let t=i0(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),oi=4356/361,oo=35442/1805,oa=16061/1805,os=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 iX(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||i6).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 oc={keyframes:ou,spring:iy,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 od(e,t,n=0){return e-t-n}let of=e=>{let t=({delta:t})=>e(t);return{start:()=>na.update(t,!0),stop:()=>ns.update(t)}};function oh(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=of,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iu(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,x=0,b=g.duration,w=!1,j=!0,E=function(e){if(Array.isArray(e.to))return ou;if(oc[e.type])return oc[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 iy;return ou}(g);(null===(i=E.needsInterpolation)||void 0===i?void 0:i.call(E,o,y))&&(r=iX([0,100],[o,y],{clamp:!1}),o=0,y=100);let k=E(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(j||(e=-e),l+=e,!w){let e=k.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===x&&(null!=b||(b=l)),x=o+d:i<=-d)&&(x++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?od(t+-e,t,n):t-(e-t)+n}(l,b,d,j=x%2==0):(l=od(l,b,d),"mirror"===c&&k.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let op=e=>1e3*e,om=(e,t)=>1-3*t+3*e,ov=(e,t)=>3*t-6*e,og=e=>3*e,oy=(e,t,n)=>((om(t,n)*e+ov(t,n))*e+og(t))*e,ox=(e,t,n)=>3*om(t,n)*e*e+2*ov(t,n)*e+og(t),ob={linear:i4,easeIn:i3,easeInOut:i6,easeOut:i5,circIn:i8,circInOut:i9,circOut:i7,backIn:oe,backInOut:on,backOut:ot,anticipate:or,bounceIn:ol,bounceInOut:e=>e<.5?.5*(1-os(1-2*e)):.5*os(2*e-1)+.5,bounceOut:os},ow=e=>{if(Array.isArray(e)){id(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 i4;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oy(.1*t,e,n);return o=>0===o||1===o?o:oy(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=r+.1*a,l=ox(s,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=ox(t,n,r);if(0===i)break;let o=oy(t,n,r)-e;t-=o/i}return t}(t,s,e,n):0===l?s:function(e,t,n,r,i){let o,a;let s=0;do(o=oy(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?(id(void 0!==ob[e],`Invalid easing type '${e}'`),ob[e]):e},oj=e=>Array.isArray(e)&&"number"!=typeof e[0],oE=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iH.test(t)&&!t.startsWith("url(")),ok=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oS=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),o_=()=>({type:"keyframes",ease:"linear",duration:.3}),oC=e=>({type:"keyframes",duration:.8,values:e}),oO={x:ok,y:ok,z:ok,rotate:ok,rotateX:ok,rotateY:ok,rotateZ:ok,scaleX:oS,scaleY:oS,scale:oS,opacity:o_,backgroundColor:o_,color:o_,default:oS},oM=(e,t)=>({to:t,...(rT(t)?oC:oO[e]||oO.default)(t)}),oT=new Set(["brightness","contrast","saturate","opacity"]);function oA(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(n3)||[];if(!r)return e;let i=n.replace(r,""),o=oT.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let oP=/([a-z-]*)\(.*?\)/g,oN=Object.assign(Object.assign({},iH),{getAnimatableNone:e=>{let t=e.match(oP);return t?t.map(oA).join(" "):e}}),oR={...ru,color:iL,backgroundColor:iL,outlineColor:iL,fill:iL,stroke:iL,borderColor:iL,borderTopColor:iL,borderRightColor:iL,borderBottomColor:iL,borderLeftColor:iL,filter:oN,WebkitFilter:oN},oD=e=>oR[e];function oL(e,t){var n;let r=oD(e);return r!==oN&&(r=iH),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let oF={current:!1};function oz(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(ns.read(r),e(o-t))};return na.read(r,!0),()=>ns.read(r)}let oV=!1;function oI(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oZ(e){return"number"==typeof e?0:oL("",e)}function oB(e,t){return e[t]||e.default||e}function oH(e,t,n,r={}){return oF.current&&(r={type:!1}),t.start(i=>{let o,a;let s=function(e,t,n,r,i){let o=oB(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=oE(e,n);"none"===a&&s&&"string"==typeof n?a=oL(e,n):oI(a)&&"string"==typeof n?a=oZ(n):!Array.isArray(n)&&oI(n)&&"string"==typeof a&&(n=oZ(a));let l=oE(e,a);return ic(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;r=a,a=e,t=(n=nf().delta)?(e-r)*(1e3/n):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oh({...(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,...oM(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=op(o.duration)),o.repeatDelay&&(a.repeatDelay=op(o.repeatDelay)),e&&(a.ease=oj(e)?e.map(ow):ow(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(ic(!oV,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oV=!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=rP(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),l=function(e,t){var n,r;let i=oB(e,t)||{};return null!==(r=null!==(n=i.delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=()=>o=s();return l?a=oz(u,op(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oU=e=>/^\-?\d*\.?\d+$/.test(e),oW=e=>/^0[^.\s]+$/.test(e);function oq(e,t){-1===e.indexOf(t)&&e.push(t)}function o$(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class oK{constructor(){this.subscriptions=[]}add(e){return oq(this.subscriptions,e),()=>o$(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 oG{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oK,this.velocityUpdateSubscribers=new oK,this.renderSubscribers=new oK,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nf();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,na.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=()=>na.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=oY(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)?e*(1e3/t):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 oX(e){return new oG(e)}let oJ=e=>t=>t.test(e),oQ=[ro,rt,re,n9,rr,rn,{test:e=>"auto"===e,parse:e=>e}],o0=e=>oQ.find(oJ(e)),o1=[...oQ,iL,iH],o2=e=>o1.find(oJ(e));function o4(e,t,n){let r=e.getProps();return rM(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 o3(e){return!!(nX(e)&&e.add)}function o5(e,t,n={}){var r;let i=o4(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>o6(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(o8).forEach((e,r)=>{a.push(o5(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 o6(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&&nY.has(t)&&(o={...o,type:!1,delay:0});let s=oH(t,r,i,o);o3(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=o4(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=rP(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oX(n))}}(e,s)})}function o8(e,t){return e.sortNodePosition(t)}let o7=[Ew.Animate,Ew.InView,Ew.Focus,Ew.Hover,Ew.Tap,Ew.Drag,Ew.Exit],o9=[...o7].reverse(),ae=o7.length;function at(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let an={animation:io(({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)){let i=t.map(t=>o5(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=o5(e,t,n);else{let i="function"==typeof t?o4(e,t,n.custom):t;r=o6(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[Ew.Animate]:at(!0),[Ew.InView]:at(),[Ew.Hover]:at(),[Ew.Tap]:at(),[Ew.Drag]:at(),[Ew.Focus]:at(),[Ew.Exit]:at()},r=!0,i=(t,n)=>{let r=o4(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,E=Array.isArray(g)?g:[g],k=E.reduce(i,{});!1===x&&(k={});let{prevResolvedValues:S={}}=v,_={...S,...k},C=e=>{j=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in _){let t=k[e],n=S[e];h.hasOwnProperty(e)||(t!==n?rT(t)&&rT(n)?!il(t,n)||w?C(e):v.protectedKeys[e]=!0:void 0!==t?C(e):f.add(e):void 0!==t&&f.has(e)?C(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=k,v.isActive&&(h={...h,...k}),r&&e.blockInitialAnimation&&(j=!1),j&&!b&&d.push(...E.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)),nN(t)&&(0,x.useEffect)(()=>t.subscribe(e),[t])}),exit:io(e=>{let{custom:t,visualElement:n}=e,[r,i]=is(),o=(0,x.useContext)(nv);(0,x.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(Ew.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},ar=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),ai=e=>ar(e)&&e.hasOwnProperty("z"),ao=(e,t)=>Math.abs(e-t);function aa(e,t){if(iU(e)&&iU(t))return ao(e,t);if(ar(e)&&ar(t)){let n=ao(e.x,t.x),r=ao(e.y,t.y),i=ai(e)&&ai(t)?ao(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}class as{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=ac(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=aa(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nf();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=al(t,this.transformPagePoint),rV(e)&&0===e.buttons){this.handlePointerUp(e,t);return}na.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=ac(al(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},rI(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=rB(e),i=al(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=nf();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,ac(i,this.history)),this.removeListeners=r6(rG(window,"pointermove",this.handlePointerMove),rG(window,"pointerup",this.handlePointerUp),rG(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ns.update(this.updatePoint)}}function al(e,t){return t?{point:t(e.point)}:e}function au(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ac({point:e},t){return{point:e,delta:au(e,ad(t)),offset:au(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ad(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>op(.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 ad(e){return e[e.length-1]}function af(e){return e.max-e.min}function ah(e,t=0,n=.01){return aa(e,t)({translate:0,scale:1,origin:0,originPoint:0}),ak=()=>({x:aE(),y:aE()}),aS=()=>({min:0,max:0}),a_=()=>({x:aS(),y:aS()});function aC(e){return[e("x"),e("y")]}function aO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aM(e){return void 0===e||1===e}function aT({scale:e,scaleX:t,scaleY:n}){return!aM(e)||!aM(t)||!aM(n)}function aA(e){return aT(e)||aP(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aP(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function aN(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function aR(e,t=0,n=1,r,i){e.min=aN(e.min,t,n,r,i),e.max=aN(e.max,t,n,r,i)}function aD(e,{x:t,y:n}){aR(e.x,t.translate,t.scale,t.originPoint),aR(e.y,n.translate,n.scale,n.originPoint)}function aL(e,t){e.min=e.min+t,e.max=e.max+t}function aF(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=iw(e.min,e.max,o);aR(e,t[n],t[r],a,t.scale)}let az=["x","scaleX","originX"],aV=["y","scaleY","originY"];function aI(e,t){aF(e.x,t,az),aF(e.y,t,aV)}function aZ(e,t){return aO(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 aB=new WeakMap;class aH{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=a_(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new as(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(rB(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=r1(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),aC(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(re.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=af(i);r=e*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Ew.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(Ew.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aU(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?iw(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&&nA(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ax(e.x,n,i),y:ax(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:aw(e,"left","right"),y:aw(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&aC(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||!nA(t))return!1;let r=t.current;id(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=aZ(e,n),{scroll:i}=t;return i&&(aL(r.x,i.x),aL(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:ab((e=i.layout.actual).x,o.x),y:ab(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=aO(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=aC(a=>{var l;if(!aU(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)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oH(e,n,0,t)}stopAnimation(){aC(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||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){aC(t=>{let{drag:n}=this.getProps();if(!aU(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]-iw(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nA(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};aC(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=af(e),i=af(t);return i>r?n=ib(t.min,t.max-r,e.min):r>i&&(n=ib(e.min,e.max-i,t.min)),ih(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(),aC(e=>{if(!aU(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(iw(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aB.set(this.visualElement,this);let t=this.visualElement.current,n=rG(t,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();nA(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();let a=rF(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(aC(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(),n(),o(),null==s||s()}}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 aU(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let aW={pan:io(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=e||t||n||r,a=(0,x.useRef)(null),{transformPagePoint:s}=(0,x.useContext)(nO),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,x.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),rX(i,"pointerdown",o&&function(e){a.current=new as(e,l,{transformPagePoint:s})}),nE(()=>a.current&&a.current.end())}),drag:io(function(e){let{dragControls:t,visualElement:n}=e,r=ng(()=>new aH(n));(0,x.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,x.useEffect)(()=>r.addListeners(),[r])})};function aq(e){return"string"==typeof e&&e.startsWith("var(--")}let a$=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function aK(e,t,n=1){id(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=a$.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():aq(i)?aK(i,t,n+1):i}let aY=new Set(["width","height","top","left","right","bottom","x","y"]),aG=e=>aY.has(e),aX=e=>Object.keys(e).some(aG),aJ=(e,t)=>{e.set(t,!1),e.set(t)},aQ=e=>e===ro||e===rt;(Eg=Ej||(Ej={})).width="width",Eg.height="height",Eg.left="left",Eg.right="right",Eg.top="top",Eg.bottom="bottom";let a0=(e,t)=>parseFloat(e.split(", ")[t]),a1=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return a0(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?a0(t[1],e):0}},a2=new Set(["x","y","z"]),a4=nK.filter(e=>!a2.has(e)),a3={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:a1(4,13),y:a1(5,14)},a5=(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]=a3[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);aJ(r,s[n]),e[n]=a3[n](l,o)}),e},a6=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(aG),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=o0(c),f=t[i];if(rT(f)){let e=f.length,t=null===f[0]?1:0;d=o0(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],aJ(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=a5(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nh&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},a8=(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(!aq(t))return;let n=aK(t,r);n&&e.set(n)}),t){let e=t[i];if(!aq(e))continue;let o=aK(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,aX(i)?a6(e,i,n,o):{target:i,transitionEnd:o}},a7={current:null},a9={current:!1},se=Object.keys(nV),st=se.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=()=>na.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=nD(t),this.isVariantNode=nL(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]&&nX(t)&&(t.set(o[e],!1),o3(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&nX(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)),a9.current||function(){if(a9.current=!0,nh){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>a7.current=e.matches;e.addListener(t),t()}else a7.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||a7.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(),ns.update(this.notifyUpdate),ns.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&&na.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"!==t6&&n&&t&&id(!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):a_()}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=oX(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=rM(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||nX(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 oK),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let si=["initial",...o7],so=si.length;class sa 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;let n=t[e]||t.default||t;return n.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;snq(e)?new sl(t,{enableHardwareAcceleration:!1}):new ss(t,{enableHardwareAcceleration:!0});function sc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sd={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rt.test(e))return e;e=parseFloat(e)}let n=sc(e,t.target.x),r=sc(e,t.target.y);return`${n}% ${r}%`}},sf="_$css",sh={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(a$,e=>(o.push(e),sf)));let a=iH.parse(e);if(a.length>5)return r;let s=iH.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=iw(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(sf,()=>{let t=o[e];return e++,t})}return f}};class sp extends x.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(n$,sm),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()})),nI.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()||na.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 sm={borderRadius:{...sd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sd,borderTopRightRadius:sd,borderBottomLeftRadius:sd,borderBottomRightRadius:sd,boxShadow:sh},sv=["TopLeft","TopRight","BottomLeft","BottomRight"],sg=sv.length,sy=e=>"string"==typeof e?parseFloat(e):e,sx=e=>"number"==typeof e||rt.test(e);function sb(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sw=sE(0,.5,i7),sj=sE(.5,.95,i4);function sE(e,t,n){return r=>rt?1:n(ib(e,t,r))}function sk(e,t){e.min=t.min,e.max=t.max}function sS(e,t){sk(e.x,t.x),sk(e.y,t.y)}function s_(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 sC(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(re.test(t)){t=parseFloat(t);let e=iw(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=iw(o.min,o.max,r);e===o&&(s-=t),e.min=s_(e.min,t,n,s,i),e.max=s_(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let sO=["x","scaleX","originX"],sM=["y","scaleY","originY"];function sT(e,t,n,r){sC(e.x,t,sO,null==n?void 0:n.x,null==r?void 0:r.x),sC(e.y,t,sM,null==n?void 0:n.y,null==r?void 0:r.y)}function sA(e){return 0===e.translate&&1===e.scale}function sP(e){return sA(e.x)&&sA(e.y)}function sN(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 sR(e){return af(e.x)/af(e.y)}class sD{constructor(){this.members=[]}add(e){oq(this.members,e),e.scheduleRender()}remove(e){if(o$(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 sL(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 sF=(e,t)=>e.depth-t.depth;class sz{constructor(){this.children=[],this.isDirty=!1}add(e){oq(this.children,e),this.isDirty=!0}remove(e){o$(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sF),this.isDirty=!1,this.children.forEach(e)}}let sV=["","X","Y","Z"];function sI({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(s$),this.nodes.forEach(sK)},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=oz(r,250),nI.hasAnimatedSinceResize&&(nI.hasAnimatedSinceResize=!1,this.nodes.forEach(sq))})}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:s0,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sN(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={...oB(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sq(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,ns.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(sY))}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));s4(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(sQ));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;sX(a.x,e.x,f),sX(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)&&(ay(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,sJ(r.x,d.x,s.x,f),sJ(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=iw(0,null!==(a=n.opacity)&&void 0!==a?a:1,sw(r)),e.opacityExit=iw(null!==(s=t.opacity)&&void 0!==s?s:1,0,sj(r))):o&&(e.opacity=iw(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{nI.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=nX(e)?e:oX(e);return oH("",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&&s3(this.options.animationType,this.layout.actual,r.actual)){n=this.target||a_();let t=af(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=af(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sS(t,n),aI(t,i),am(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new sD);let o=this.sharedNodes.get(e);o.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(sU),this.root.sharedNodes.clear()}}}function sZ(e){e.updateLayout()}function sB(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?aC(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=af(n);n.min=t[e].min,n.max=n.min+r}):s3(r,i.layout,t)&&aC(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=af(t[e]);n.max=n.min+r});let o=ak();am(o,t,i.layout);let a=ak();i.isShared?am(a,e.applyTransform(n,!0),i.measured):am(a,t,i.layout);let s=!sP(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=a_();ay(n,i.layout,e.layout);let o=a_();ay(o,t,r.actual),sN(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 sH(e){e.clearSnapshot()}function sU(e){e.clearMeasurements()}function sW(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function s$(e){e.resolveTargetDelta()}function sK(e){e.calcProjection()}function sY(e){e.resetRotation()}function sG(e){e.removeLeadSnapshot()}function sX(e,t,n){e.translate=iw(t.translate,0,n),e.scale=iw(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sJ(e,t,n,r){e.min=iw(t.min,n.min,r),e.max=iw(t.max,n.max,r)}function sQ(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let s0={duration:.45,ease:[.4,0,.1,1]};function s1(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,i=r.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s2(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function s4(e){s2(e.x),s2(e.y)}function s3(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return aa(e,t)<=n}(sR(t),sR(n),.2)}let s5=sI({attachResizeListener:(e,t)=>rF(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),s6={current:void 0},s8=sI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!s6.current){let e=new s5(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),s6.current=e}return s6.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),s7={...an,...ia,...aW,measureLayout:function(e){let[t,n]=is(),r=(0,x.useContext)(nj);return x.createElement(sp,{...e,layoutGroup:r,switchLayoutGroup:(0,x.useContext)(nH),isPresent:t,safeToRemove:n})}},s9=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?nV.projectionNodeConstructor=e[t]:nV[t].Component=e[t]}(e);let a=(0,x.forwardRef)(function(a,s){var l;let u={...(0,x.useContext)(nO),...a,layoutId:function({layoutId:e}){let t=(0,x.useContext)(nj).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(nD(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nP(t)?t:void 0,animate:nP(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,x.useContext)(nM));return(0,x.useMemo)(()=>({initial:t,animate:n}),[nF(t),nF(n)])}(a),h=c?void 0:ng(()=>{if(nI.hasEverUpdated)return nZ++}),p=i(a,c);if(!c&&nh){f.visualElement=function(e,t,n,r){let i=(0,x.useContext)(nM).visualElement,o=(0,x.useContext)(nT),a=(0,x.useContext)(nv),s=(0,x.useContext)(nO).reducedMotion,l=(0,x.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 np(()=>{u&&u.render()}),(0,x.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),np(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,x.useContext)(nT).strict,i=(0,x.useContext)(nH);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||nV.projectionNodeConstructor,i))}return x.createElement(nB,{visualElement:f.visualElement,props:u},d,x.createElement(nM.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,x.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):nA(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[nU]=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){let o=nq(e)?rD:rL;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=nq(t)?rj:rh,l=s(n,o,a),u=function(e,t,n){let r={};for(let i in e)(rv(i)||!0===n&&rm(i)||!t&&!rm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c={...u,...l,ref:i};return r&&(c["data-projection-id"]=r),(0,x.createElement)(t,c)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,s7,su,s8));function le(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,x.useState)(!1),o=(0,x.useMemo)(()=>n?t:r,[n,r,t]),a=(0,x.useCallback)(e=>{n?n(e):i(e)},[n]);return{open:o,onOpenChange:a}}var lt=n(35957),ln=n.n(lt),lr=n(276),li=n.n(lr);let lo=(0,em.cx)(ln().variable,li().variable),la={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 ls(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=le({open:i,onOpenChange:o});return(0,y.jsxs)(tJ,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,y.jsx)(tB,{asChild:!0,children:t}),(0,y.jsx)(nC,{children:n&&u?(0,y.jsx)(tQ,{forceMount:!0,children:(0,y.jsx)(t$,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,y.jsx)(s9.div,{variants:la,initial:"init",animate:"show",exit:"exit",className:(0,em.cx)(lo,"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,y.jsx)("div",{className:(0,em.cx)("py-1 px-2","max-w-xs","overflow-hidden",t4()),children:(0,y.jsx)(t2,{size:"12",children:n})})})})}):null})]})}let ll=(0,em.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"}}),lu=x.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,y.jsx)(ls,{content:u,align:c,side:d,children:(0,y.jsx)("button",{ref:t,type:h,disabled:a,className:ll({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,y.jsx)("button",{ref:t,disabled:a,type:h,className:ll({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lc=n(88242);let ld=x.forwardRef((e,t)=>{let{children:n,...r}=e;return(0,y.jsx)(X,{ref:t,...r,..."single"===r.type?{collapsible:!0}:{},children:n})}),lf=x.forwardRef((e,t)=>{let{children:n,...r}=e;return(0,y.jsx)(ed,{children:(0,y.jsx)(eh,{...r,asChild:!0,ref:t,children:(0,y.jsxs)(lu,{variant:"ghost",size:"none",className:"w-full flex gap-2 justify-between",children:[(0,y.jsx)("span",{className:"flex-1 text-left",children:n}),(0,y.jsx)("span",{className:"pr-3",children:(0,y.jsx)(lc.cRw,{})})]})})})}),lh=(0,em.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}}),lp=x.forwardRef((e,t)=>{let{variant:n,className:r,...i}=e;return(0,y.jsx)(ec,{...i,className:lh({variant:n,className:r}),ref:t})}),lm=ep,lv=(0,em.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lg=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{...r,className:lv({className:n}),ref:t})});var ly=n(86029);let lx="Avatar",[lb,lw]=(0,j.b)(lx),[lj,lE]=lb(lx),lk=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,x.useState)("idle");return(0,x.createElement)(lj,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,x.createElement)(O.WV.span,(0,w.Z)({},r,{ref:t})))}),lS=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=lE("AvatarImage",n),s=function(e){let[t,n]=(0,x.useState)("idle");return(0,x.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,ly.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,M.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,x.createElement)(O.WV.img,(0,w.Z)({},o,{ref:t,src:r})):null}),l_=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=lE("AvatarFallback",n),[a,s]=(0,x.useState)(void 0===r);return(0,x.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,x.createElement)(O.WV.span,(0,w.Z)({},i,{ref:t})):null}),lC=(0,em.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"}}),lO=(0,em.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lM=x.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,y.jsx)("div",{className:(0,em.cx)("relative h-fit w-fit",c),children:(0,y.jsxs)(lk,{...d,ref:t,className:lC({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,y.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,y.jsx)(lS,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,y.jsx)(l_,{className:lO({size:o}),children:i})]})})});(0,em.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{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"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}});let lT=x.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,y.jsx)("pre",{children:(0,y.jsx)("code",{className:(0,em.cx)(t0({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})})}),lA=(0,em.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"}}),lP=x.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,y.jsx)("code",{...i,className:lA({color:n,className:r}),ref:t})}),lN=(0,em.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"]),lR=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:lN({className:n}),...r})});(0,em.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 lD=(0,em.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"}}),lL=x.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,y.jsx)("div",{ref:t,...o,className:lD({size:i,pad:r,className:n})})});var lF=n(72331);let lz=(0,x.createContext)(void 0);function lV(e){let t=(0,x.useContext)(lz);return e||t||"ltr"}let lI="ScrollArea",[lZ,lB]=(0,j.b)(lI),[lH,lU]=lZ(lI),lW=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,x.useState)(null),[u,c]=(0,x.useState)(null),[d,f]=(0,x.useState)(null),[h,p]=(0,x.useState)(null),[m,v]=(0,x.useState)(null),[g,y]=(0,x.useState)(0),[b,j]=(0,x.useState)(0),[k,S]=(0,x.useState)(!1),[_,C]=(0,x.useState)(!1),M=(0,E.e)(t,e=>l(e)),T=lV(i);return(0,x.createElement)(lH,{scope:n,type:r,dir:T,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:k,onScrollbarXEnabledChange:S,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:_,onScrollbarYEnabledChange:C,onCornerWidthChange:y,onCornerHeightChange:j},(0,x.createElement)(O.WV.div,(0,w.Z)({dir:T},a,{ref:M,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),lq=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=lU("ScrollAreaViewport",n),a=(0,x.useRef)(null),s=(0,E.e)(t,a,o.onViewportChange);return(0,x.createElement)(x.Fragment,null,(0,x.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,x.createElement)(O.WV.div,(0,w.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,x.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),l$="ScrollAreaScrollbar",lK=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lU(l$,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,x.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,x.createElement)(lY,(0,w.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,x.createElement)(lG,(0,w.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,x.createElement)(lX,(0,w.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,x.createElement)(lJ,(0,w.Z)({},r,{ref:t})):null}),lY=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lU(l$,e.__scopeScrollArea),[o,a]=(0,x.useState)(!1);return(0,x.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,x.createElement)(T.z,{present:n||o},(0,x.createElement)(lX,(0,w.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),lG=(0,x.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=lU(l$,e.__scopeScrollArea),a="horizontal"===e.orientation,s=ua(()=>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,x.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,x.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,x.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t],i=n!==r;i&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,x.createElement)(T.z,{present:r||"hidden"!==l},(0,x.createElement)(lJ,(0,w.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,_.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,_.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),lX=(0,x.forwardRef)((e,t)=>{let n=lU(l$,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,x.useState)(!1),s="horizontal"===e.orientation,l=ua(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=lU(l$,e.__scopeScrollArea),o=(0,x.useRef)(null),a=(0,x.useRef)(0),[s,l]=(0,x.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ut(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=un(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport,u=ui([a,s],"ltr"===r?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===n?(0,x.createElement)(lQ,(0,w.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=ur(e,s,i.dir);o.current.style.transform=`translate3d(${t}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,x.createElement)(l0,(0,w.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=ur(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),lQ=(0,x.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lU(l$,e.__scopeScrollArea),[a,s]=(0,x.useState)(),l=(0,x.useRef)(null),u=(0,E.e)(t,l,o.onScrollbarXChange);return(0,x.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,x.createElement)(l4,(0,w.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":un(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:ue(a.paddingLeft),paddingEnd:ue(a.paddingRight)}})}}))}),l0=(0,x.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lU(l$,e.__scopeScrollArea),[a,s]=(0,x.useState)(),l=(0,x.useRef)(null),u=(0,E.e)(t,l,o.onScrollbarYChange);return(0,x.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,x.createElement)(l4,(0,w.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":un(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:ue(a.paddingTop),paddingEnd:ue(a.paddingBottom)}})}}))}),[l1,l2]=lZ(l$),l4=(0,x.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=lU(l$,n),[p,m]=(0,x.useState)(null),v=(0,E.e)(t,e=>m(e)),g=(0,x.useRef)(null),y=(0,x.useRef)(""),b=h.viewport,j=r.content-r.viewport,k=(0,ly.W)(c),S=(0,ly.W)(l),C=ua(d,10);function M(e){if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return(0,x.useEffect)(()=>{let e=e=>{let t=e.target,n=null==p?void 0:p.contains(t);n&&k(e,j)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,j,k]),(0,x.useEffect)(S,[r,S]),us(p,C),us(h.content,C),(0,x.createElement)(l1,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,ly.W)(o),onThumbPointerUp:(0,ly.W)(a),onThumbPositionChange:S,onThumbPointerDown:(0,ly.W)(s)},(0,x.createElement)(O.WV.div,(0,w.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,_.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",M(e)}}),onPointerMove:(0,_.M)(e.onPointerMove,M),onPointerUp:(0,_.M)(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),l3="ScrollAreaThumb",l5=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=l2(l3,e.__scopeScrollArea);return(0,x.createElement)(T.z,{present:n||i.hasThumb},(0,x.createElement)(l6,(0,w.Z)({ref:t},r)))}),l6=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=lU(l3,n),a=l2(l3,n),{onThumbPositionChange:s}=a,l=(0,E.e)(t,e=>a.onThumbChange(e)),u=(0,x.useRef)(),c=ua(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,x.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=uo(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,x.createElement)(O.WV.div,(0,w.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,_.M)(e.onPointerDownCapture,e=>{let t=e.target,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;a.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,_.M)(e.onPointerUp,a.onThumbPointerUp)}))}),l8="ScrollAreaCorner",l7=(0,x.forwardRef)((e,t)=>{let n=lU(l8,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY),i="scroll"!==n.type&&r;return i?(0,x.createElement)(l9,(0,w.Z)({},e,{ref:t})):null}),l9=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=lU(l8,n),[o,a]=(0,x.useState)(0),[s,l]=(0,x.useState)(0);return us(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),us(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,x.createElement)(O.WV.div,(0,w.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 ue(e){return e?parseInt(e,10):0}function ut(e,t){let n=e/t;return isNaN(n)?0:n}function un(e){let t=ut(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ur(e,t,n="ltr"){let r=un(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===n?[0,a]:[-1*a,0],l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,s),u=ui([0,a],[0,o-r]);return u(l)}function ui(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 uo=(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 ua(e,t){let n=(0,ly.W)(e),r=(0,x.useRef)(0);return(0,x.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,x.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function us(e,t){let n=(0,ly.W)(t);(0,M.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 ul=x.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,y.jsxs)(lW,{className:(0,em.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,y.jsx)(lq,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,y.jsx)(lK,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,y.jsx)(l5,{className:(0,em.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,y.jsx)(lK,{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,y.jsx)(l5,{className:(0,em.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,y.jsx)(l7,{className:"bg-black/70"})]})}),uu=(0,em.j)([lo,"z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),uc={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},ud=x.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}=le({open:i,onOpenChange:o});return(0,y.jsxs)(lF.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,y.jsx)(lF.xz,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:v?(0,y.jsx)(lF.h_,{forceMount:!0,children:(0,y.jsx)(lF.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,y.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,y.jsx)(lF.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,y.jsx)(s9.div,{variants:uc,initial:"init",animate:"show",exit:"exit",className:uu(u),children:(0,y.jsx)(up,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function uf(e){let{className:t}=e;return(0,y.jsx)(lF.x8,{asChild:!0,type:"button",children:(0,y.jsx)("div",{className:(0,em.cx)("appearance-none",t),children:(0,y.jsx)(lu,{size:"small",variant:"ghost",type:"button",children:(0,y.jsx)(lc.QN4,{})})})})}let uh=(0,em.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[t4()],none:""}},defaultVariants:{variant:"default"}}),up=x.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,x.useState)(0),r=(0,x.useRef)(null);return(0,x.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,x.useState)(!1);return(0,x.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,y.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uh(s),children:[i&&(0,y.jsx)(lF.Dx,{className:um({showSeparator:h}),children:i}),(0,y.jsx)(ul,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,y.jsxs)("div",{ref:d,className:(0,em.cx)("p-4",u),children:[o&&(0,y.jsx)(lF.dk,{className:uv(),children:o}),n]})}),a&&(0,y.jsx)(ug,{separator:h,children:a}),(0,y.jsx)(uf,{className:l||"absolute top-3.5 right-2"})]})}),um=(0,em.j)(["pt-4 pb-2 px-4 w-full",t0({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),uv=(0,em.j)([t0({color:"subtle",size:"14"}),"py-2"]);function ug(e){let{children:t,separator:n=!0}=e;return(0,y.jsx)("div",{className:(0,em.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var uy=n(55070),ux=n(77334);let ub="rovingFocusGroup.onEntryFocus",uw={bubbles:!1,cancelable:!0},uj="RovingFocusGroup",[uE,uk,uS]=S(uj),[u_,uC]=(0,j.b)(uj,[uS]),[uO,uM]=u_(uj),uT=(0,x.forwardRef)((e,t)=>(0,x.createElement)(uE.Provider,{scope:e.__scopeRovingFocusGroup},(0,x.createElement)(uE.Slot,{scope:e.__scopeRovingFocusGroup},(0,x.createElement)(uA,(0,w.Z)({},e,{ref:t}))))),uA=(0,x.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,x.useRef)(null),f=(0,E.e)(t,d),h=lV(o),[p=null,m]=(0,C.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,x.useState)(!1),y=(0,ly.W)(u),b=uk(n),j=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ub,y),()=>e.removeEventListener(ub,y)},[y]),(0,x.createElement)(uO,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,x.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,x.useCallback)(()=>g(!0),[])},(0,x.createElement)(O.WV.div,(0,w.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,_.M)(e.onMouseDown,()=>{j.current=!0}),onFocus:(0,_.M)(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ub,uw);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===p),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);uR(i)}}j.current=!1}),onBlur:(0,_.M)(e.onBlur,()=>g(!1))})))}),uP=(0,x.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,A.M)(),s=uM("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=uk(n);return(0,x.createElement)(uE.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,x.createElement)(O.WV.span,(0,w.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,_.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,_.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,_.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 uN[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>uR(o))}})})))}),uN={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uR(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uD=n(49732),uL=n(70506);let uF=["Enter"," "],uz=["ArrowUp","PageDown","End"],uV=["ArrowDown","PageUp","Home",...uz],uI={ltr:[...uF,"ArrowRight"],rtl:[...uF,"ArrowLeft"]},uZ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uB="Menu",[uH,uU,uW]=S(uB),[uq,u$]=(0,j.b)(uB,[uW,th,uC]),uK=th(),uY=uC(),[uG,uX]=uq(uB),[uJ,uQ]=uq(uB),u0=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=uK(n);return(0,x.createElement)(tv,(0,w.Z)({},i,r,{ref:t}))}),u1="MenuPortal",[u2,u4]=uq(u1,{forceMount:void 0}),u3="MenuContent",[u5,u6]=uq(u3),u8=(0,x.forwardRef)((e,t)=>{let n=u4(u3,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uX(u3,e.__scopeMenu),a=uQ(u3,e.__scopeMenu);return(0,x.createElement)(uH.Provider,{scope:e.__scopeMenu},(0,x.createElement)(T.z,{present:r||o.open},(0,x.createElement)(uH.Slot,{scope:e.__scopeMenu},a.modal?(0,x.createElement)(u7,(0,w.Z)({},i,{ref:t})):(0,x.createElement)(u9,(0,w.Z)({},i,{ref:t})))))}),u7=(0,x.forwardRef)((e,t)=>{let n=uX(u3,e.__scopeMenu),r=(0,x.useRef)(null),i=(0,E.e)(t,r);return(0,x.useEffect)(()=>{let e=r.current;if(e)return(0,uD.R)(e)},[]),(0,x.createElement)(ce,(0,w.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,_.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),u9=(0,x.forwardRef)((e,t)=>{let n=uX(u3,e.__scopeMenu);return(0,x.createElement)(ce,(0,w.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),ce=(0,x.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=uX(u3,n),v=uQ(u3,n),g=uK(n),y=uY(n),b=uU(n),[j,S]=(0,x.useState)(null),C=(0,x.useRef)(null),O=(0,E.e)(t,C,m.onContentChange),M=(0,x.useRef)(0),T=(0,x.useRef)(""),A=(0,x.useRef)(0),P=(0,x.useRef)(null),N=(0,x.useRef)("right"),R=(0,x.useRef)(0),D=h?uL.Z:x.Fragment,L=h?{as:k.g7,allowPinchZoom:!0}:void 0,F=e=>{var t,n;let r=T.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=i.map(e=>e.textValue),l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==n));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(s,r,a),u=null===(n=i.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){T.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};(0,x.useEffect)(()=>()=>window.clearTimeout(M.current),[]),(0,uy.EW)();let z=(0,x.useCallback)(e=>{var t,n;let r=N.current===(null===(t=P.current)||void 0===t?void 0:t.side);return r&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return 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;c&&(i=!i)}return i}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)},[]);return(0,x.createElement)(u5,{scope:n,searchRef:T,onItemEnter:(0,x.useCallback)(e=>{z(e)&&e.preventDefault()},[z]),onItemLeave:(0,x.useCallback)(e=>{var t;z(e)||(null===(t=C.current)||void 0===t||t.focus(),S(null))},[z]),onTriggerLeave:(0,x.useCallback)(e=>{z(e)&&e.preventDefault()},[z]),pointerGraceTimerRef:A,onPointerGraceIntentChange:(0,x.useCallback)(e=>{P.current=e},[])},(0,x.createElement)(D,L,(0,x.createElement)(ux.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,_.M)(o,e=>{var t;e.preventDefault(),null===(t=C.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,x.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,x.createElement)(uT,(0,w.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:S,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,x.createElement)(tj,(0,w.Z)({role:"menu","aria-orientation":"vertical","data-state":cm(m.open),dir:v.dir},g,p,{ref:O,style:{outline:"none",...p.style},onKeyDown:(0,_.M)(p.onKeyDown,e=>{let t=e.target,n=t.closest('[role="menu"]')===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&i&&F(e.key));let o=C.current;if(e.target!==o||!uV.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);uz.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,_.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),T.current="")}),onPointerMove:(0,_.M)(e.onPointerMove,cg(e=>{let t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>R.current?"right":"left";N.current=t,R.current=e.clientX}}))})))))))}),ct=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.createElement)(O.WV.div,(0,w.Z)({role:"group"},r,{ref:t}))}),cn=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.createElement)(O.WV.div,(0,w.Z)({},r,{ref:t}))}),cr="MenuItem",ci="menu.itemSelect",co=(0,x.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,x.useRef)(null),a=uQ(cr,e.__scopeMenu),s=u6(cr,e.__scopeMenu),l=(0,E.e)(t,o),u=(0,x.useRef)(!1);return(0,x.createElement)(ca,(0,w.Z)({},i,{ref:l,disabled:n,onClick:(0,_.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(ci,{bubbles:!0,cancelable:!0});e.addEventListener(ci,e=>null==r?void 0:r(e),{once:!0}),(0,O.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,_.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&uF.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),ca=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=u6(cr,n),s=uY(n),l=(0,x.useRef)(null),u=(0,E.e)(t,l),[c,d]=(0,x.useState)(!1),[f,h]=(0,x.useState)("");return(0,x.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,x.createElement)(uH.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,x.createElement)(uP,(0,w.Z)({asChild:!0},s,{focusable:!r}),(0,x.createElement)(O.WV.div,(0,w.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,_.M)(e.onPointerMove,cg(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:(0,_.M)(e.onPointerLeave,cg(e=>a.onItemLeave(e))),onFocus:(0,_.M)(e.onFocus,()=>d(!0)),onBlur:(0,_.M)(e.onBlur,()=>d(!1))}))))}),[cs,cl]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,x.createElement)(cc,{scope:e.__scopeMenu,checked:n},(0,x.createElement)(co,(0,w.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":cv(n),onSelect:(0,_.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},uq("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),cu=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,ly.W)(r);return(0,x.createElement)(cs,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,x.createElement)(ct,(0,w.Z)({},i,{ref:t})))},"MenuItemIndicator"),[cc,cd]=uq(cu,{checked:!1}),[cf,ch]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=cd(cu,n);return(0,x.createElement)(T.z,{present:r||o.checked},(0,x.createElement)(O.WV.span,(0,w.Z)({},i,{ref:t,"data-state":cv(o.checked)})))},uq("MenuSub")),cp="MenuSubTrigger";function cm(e){return e?"open":"closed"}function cv(e){return e?"checked":"unchecked"}function cg(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=uX(cp,e.__scopeMenu),r=uQ(cp,e.__scopeMenu),i=ch(cp,e.__scopeMenu),o=u6(cp,e.__scopeMenu),a=(0,x.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,x.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,x.useEffect)(()=>c,[c]),(0,x.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,x.createElement)(u0,(0,w.Z)({asChild:!0},u),(0,x.createElement)(ca,(0,w.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cm(n.open)},e,{ref:(0,E.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,_.M)(e.onPointerMove,cg(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,_.M)(e.onPointerLeave,cg(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,_.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&uI[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=u4(u3,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uX(u3,e.__scopeMenu),a=uQ(u3,e.__scopeMenu),s=ch("MenuSubContent",e.__scopeMenu),l=(0,x.useRef)(null),u=(0,E.e)(t,l);return(0,x.createElement)(uH.Provider,{scope:e.__scopeMenu},(0,x.createElement)(T.z,{present:r||o.open},(0,x.createElement)(uH.Slot,{scope:e.__scopeMenu},(0,x.createElement)(ce,(0,w.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,_.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,_.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,_.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uZ[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 cy=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=uK(t),[l,u]=(0,x.useState)(null),c=(0,x.useRef)(!1),d=(0,ly.W)(o),f=lV(i);return(0,x.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,x.createElement)(tM,s,(0,x.createElement)(uG,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,x.createElement)(uJ,{scope:t,onClose:(0,x.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cx=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=uX(u1,t);return(0,x.createElement)(u2,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(tT.h,{asChild:!0,container:i},r)))},cb="DropdownMenu",[cw,cj]=(0,j.b)(cb,[u$]),cE=u$(),[ck,cS]=cw(cb),c_=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=cS("DropdownMenuTrigger",n),a=cE(n);return(0,x.createElement)(u0,(0,w.Z)({asChild:!0},a),(0,x.createElement)(O.WV.button,(0,w.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,E.F)(t,o.triggerRef),onPointerDown:(0,_.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cC=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cS("DropdownMenuContent",n),o=cE(n),a=(0,x.useRef)(!1);return(0,x.createElement)(u8,(0,w.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,_.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,_.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)"}}))}),cO=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cE(n);return(0,x.createElement)(cn,(0,w.Z)({},i,r,{ref:t}))}),cM=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cE(n);return(0,x.createElement)(co,(0,w.Z)({},i,r,{ref:t}))}),cT=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=cE(t),u=(0,x.useRef)(null),[c=!1,d]=(0,C.T)({prop:i,defaultProp:o,onChange:a});return(0,x.createElement)(ck,{scope:t,triggerId:(0,A.M)(),triggerRef:u,contentId:(0,A.M)(),open:c,onOpenChange:d,onOpenToggle:(0,x.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,x.createElement)(cy,(0,w.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cA=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cE(t);return(0,x.createElement)(cx,(0,w.Z)({},r,n))},cP="horizontal",cN=["horizontal","vertical"],cR=(0,x.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cP,...i}=e,o=cD(r)?r:cP;return(0,x.createElement)(O.WV.div,(0,w.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function cD(e){return cN.includes(e)}cR.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cD(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: + `),()=>{document.head.removeChild(l)}},[t]),x.createElement(ny,{isPresent:t,childRef:r,sizeRef:i},x.cloneElement(e,{ref:r}))}let nb=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=ng(nw),l=(0,x.useId)(),u=(0,x.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,x.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),x.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=x.createElement(nx,{isPresent:n},e)),x.createElement(nv.Provider,{value:u},e)};function nw(){return new Map}let nj=(0,x.createContext)({});function nE(e){return(0,x.useEffect)(()=>()=>e(),[])}let nk=new Set;function nS(e,t,n){e||nk.has(t)||(console.warn(t),n&&console.warn(n),nk.add(t))}let n_=e=>e.key||"",nC=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nS(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=nm(),[t,n]=(0,x.useState)(0),r=(0,x.useCallback)(()=>{e.current&&n(t+1)},[t]),i=(0,x.useCallback)(()=>na.postRender(r),[r]);return[i,t]}(),l=(0,x.useContext)(nj).forceRender;l&&(s=l);let u=nm(),c=function(e){let t=[];return x.Children.forEach(e,e=>{(0,x.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,x.useRef)(d),p=(0,x.useRef)(new Map).current,m=(0,x.useRef)(!0);if(np(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=n_(e);t.set(n,e)})}(c,p),h.current=d}),nE(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return x.createElement(x.Fragment,null,d.map(e=>x.createElement(nb,{key:n_(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(n_),g=c.map(n_),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,x.createElement(nb,{key:n_(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:x.createElement(nb,{key:n_(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==t6&&"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.'),x.createElement(x.Fragment,null,f.size?d:d.map(e=>(0,x.cloneElement)(e)))},nO=(0,x.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nM=(0,x.createContext)({}),nT=(0,x.createContext)({strict:!1});function nA(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nP(e){return"string"==typeof e||Array.isArray(e)}function nN(e){return"object"==typeof e&&"function"==typeof e.start}let nR=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function nD(e){return nN(e.animate)||nR.some(t=>nP(e[t]))}function nL(e){return!!(nD(e)||e.variants)}function nF(e){return Array.isArray(e)?e.join(" "):e}let nz=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nV={measureLayout:nz(["layout","layoutId","drag"]),animation:nz(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nz(["exit"]),drag:nz(["drag","dragControls"]),focus:nz(["whileFocus"]),hover:nz(["whileHover","onHoverStart","onHoverEnd"]),tap:nz(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nz(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nz(["whileInView","onViewportEnter","onViewportLeave"])},nZ={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nI=1;class nB extends x.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let nH=(0,x.createContext)({}),nU=Symbol.for("motionComponentSymbol"),nW=["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 nq(e){if("string"!=typeof e||e.includes("-"));else if(nW.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let n$={},nK=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nY=new Set(nK);function nG(e,{layout:t,layoutId:n}){return nY.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!n$[e]||"opacity"===e)}let nX=e=>!!(null==e?void 0:e.getVelocity),nQ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nJ=(e,t)=>nK.indexOf(e)-nK.indexOf(t);function n0(e){return e.startsWith("--")}let n1=(e,t)=>t&&"number"==typeof e?t.transform(e):e,n2=(e,t)=>n=>Math.max(Math.min(n,t),e),n4=e=>e%1?Number(e.toFixed(5)):e,n3=/(-)?([\d]*\.?[\d])+/g,n5=/(#[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,n6=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function n8(e){return"string"==typeof e}let n7=e=>({test:t=>n8(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n9=n7("deg"),re=n7("%"),rt=n7("px"),rn=n7("vh"),rr=n7("vw"),ri=Object.assign(Object.assign({},re),{parse:e=>re.parse(e)/100,transform:e=>re.transform(100*e)}),ro={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ra=Object.assign(Object.assign({},ro),{transform:n2(0,1)}),rs=Object.assign(Object.assign({},ro),{default:1}),rl={...ro,transform:Math.round},ru={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,size:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,rotate:n9,rotateX:n9,rotateY:n9,rotateZ:n9,scale:rs,scaleX:rs,scaleY:rs,scaleZ:rs,skew:n9,skewX:n9,skewY:n9,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:ra,originX:ri,originY:ri,originZ:rt,zIndex:rl,fillOpacity:ra,strokeOpacity:ra,numOctaves:rl};function rc(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(n0(e)){o[e]=n;continue}let r=ru[e],f=n1(n,r);if(nY.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(nJ),t))a+=`${nQ[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 rd=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rf(e,t,n){for(let r in t)nX(t[r])||nG(r,n)||(e[r]=t[r])}function rh(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rf(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,x.useMemo)(()=>{let r=rd();return rc(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}let rp=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 rm(e){return rp.has(e)}let rv=e=>!rm(e);try{(Ef=require("@emotion/is-prop-valid").default)&&(rv=e=>e.startsWith("on")?!rm(e):Ef(e))}catch(e){}function rg(e,t,n){return"string"==typeof e?e:rt.transform(t+n*e)}let ry={offset:"stroke-dashoffset",array:"stroke-dasharray"},rx={offset:"strokeDashoffset",array:"strokeDasharray"};function rb(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rc(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=rg(t,e.x,e.width),i=rg(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?ry:rx;e[o.offset]=rt.transform(-r);let a=rt.transform(t),s=rt.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let rw=()=>({...rd(),attrs:{}});function rj(e,t){let n=(0,x.useMemo)(()=>{let n=rw();return rb(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rf(t,e.style,e),n.style={...t,...n.style}}return n}let rE=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rk(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 rS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function r_(e,t,n,r){for(let n in rk(e,t,void 0,r),t.attrs)e.setAttribute(rS.has(n)?n:rE(n),t.attrs[n])}function rC(e){let{style:t}=e,n={};for(let r in t)(nX(t[r])||nG(r,e))&&(n[r]=t[r]);return n}function rO(e){let t=rC(e);for(let n in e)if(nX(e[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function rM(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 rT=e=>Array.isArray(e),rA=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rP=e=>rT(e)?e[e.length-1]||0:e;function rN(e){let t=nX(e)?e.get():e;return rA(t)?t.toValue():t}let rR=e=>(t,n)=>{let r=(0,x.useContext)(nM),i=(0,x.useContext)(nv),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]=rN(o[e]);let{initial:a,animate:s}=e,l=nD(e),u=nL(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;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!nN(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let n=rM(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]})}return i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():ng(o)},rD={useVisualState:rR({scrapeMotionValuesFromProps:rO,createRenderState:rw,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}}rb(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),r_(t,n)}})},rL={useVisualState:rR({scrapeMotionValuesFromProps:rC,createRenderState:rd})};function rF(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rz(e,t,n,r){(0,x.useEffect)(()=>{let i=e.current;if(n&&i)return rF(i,t,n,r)},[e,t,n,r])}function rV(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function rZ(e){let t=!!e.touches;return t}(Eh=Ey||(Ey={})).Animate="animate",Eh.Hover="whileHover",Eh.Tap="whileTap",Eh.Drag="whileDrag",Eh.Focus="whileFocus",Eh.InView="whileInView",Eh.Exit="exit";let rI={pageX:0,pageY:0};function rB(e,t="page"){return{point:rZ(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0],r=n||rI;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let rH=(e,t=!1)=>{let n=t=>e(t,rB(t));return t?e=>{let t=e instanceof MouseEvent,r=!t||t&&0===e.button;r&&n(e)}:n},rU=()=>nh&&null===window.onpointerdown,rW=()=>nh&&null===window.ontouchstart,rq=()=>nh&&null===window.onmousedown,r$={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rK={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function rY(e){if(rU());else if(rW())return rK[e];else if(rq())return r$[e];return e}function rG(e,t,n,r){return rF(e,rY(t),rH(n,"pointerdown"===t),r)}function rX(e,t,n,r){return rz(e,rY(t),n&&rH(n,"pointerdown"===t),r)}function rQ(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rJ=rQ("dragHorizontal"),r0=rQ("dragVertical");function r1(e){let t=!1;if("y"===e)t=r0();else if("x"===e)t=rJ();else{let e=rJ(),n=r0();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function r2(){let e=r1(!0);return!e||(e(),!1)}function r4(e,t,n){return(r,i)=>{!(!rV(r)||r2())&&(e.animationState&&e.animationState.setActive(Ey.Hover,t),n&&n(r,i))}}let r3=(e,t)=>!!t&&(e===t||r3(e,t.parentElement)),r5=(e,t)=>n=>t(e(n)),r6=(...e)=>e.reduce(r5),r8=new WeakMap,r7=new WeakMap,r9=e=>{let t=r8.get(e.target);t&&t(e)},ie=e=>{e.forEach(r9)},it={some:0,all:1};function ir(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,x.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:it[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;r7.has(n)||r7.set(n,{});let r=r7.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ie,{root:e,...t})),r[i]}(t);return r8.set(e,n),r.observe(e),()=>{r8.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(Ey.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])}function ii(e,t,n,{fallback:r=!0}){(0,x.useEffect)(()=>{e&&r&&("production"!==t6&&nS(!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(Ey.InView,!0)}))},[e])}let io=e=>t=>(e(t),null),ia={inView:io(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,x.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?ii:ir;s(a,o.current,e,i)}),tap:io(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,x.useRef)(!1),s=(0,x.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(Ey.Tap,!1),!r2()}function d(t,r){c()&&(r3(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=r6(rG(window,"pointerup",d,l),rG(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(Ey.Tap,!0),t&&t(e,n))}rX(i,"pointerdown",o?h:void 0,l),nE(u)}),focus:io(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;rz(t,"focus",e?()=>{n&&n.setActive(Ey.Focus,!0)}:void 0),rz(t,"blur",e?()=>{n&&n.setActive(Ey.Focus,!1)}:void 0)}),hover:io(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){rX(r,"pointerenter",e||n?r4(r,!0,e):void 0,{passive:!e}),rX(r,"pointerleave",t||n?r4(r,!1,t):void 0,{passive:!t})})};function is(){let e=(0,x.useContext)(nv);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,x.useId)();return(0,x.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function il(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 ic=function(){},id=function(){};let ih=(e,t,n)=>Math.min(Math.max(n,e),t);function ip(e,t){return e*Math.sqrt(1-t*t)}let im=["duration","bounce"],iv=["stiffness","damping","mass"];function ig(e,t){return t.some(t=>void 0!==e[t])}function iy(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=iu(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(!ig(e,iv)&&ig(e,im)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;ic(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ih(.05,1,a),e=ih(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e,o=ip(t,a),s=Math.exp(-i);return .001-(r-n)/o*s},o=t=>{let r=t*a,o=r*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ip(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*n+n-s)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},o=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,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=ix,p=ix;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=ip(a,o);h=i=>{let s=Math.exp(-o*a*i);return n-s*((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(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iy.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let ix=e=>0,ib=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iw=(e,t,n)=>-n*e+n*t+e,ij=(e,t)=>n=>!!(n8(n)&&n6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),iE=(e,t,n)=>r=>{if(!n8(r))return r;let[i,o,a,s]=r.match(n3);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},ik=n2(0,255),iS=Object.assign(Object.assign({},ro),{transform:e=>Math.round(ik(e))}),i_={test:ij("rgb","red"),parse:iE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iS.transform(e)+", "+iS.transform(t)+", "+iS.transform(n)+", "+n4(ra.transform(r))+")"},iC={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:i_.transform},iO={test:ij("hsl","hue"),parse:iE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+re.transform(n4(t))+", "+re.transform(n4(n))+", "+n4(ra.transform(r))+")"};function iM(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 iT({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=iM(s,r,e+1/3),o=iM(s,r,e),a=iM(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 iA=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},iP=[iC,i_,iO],iN=e=>iP.find(t=>t.test(e)),iR=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,iD=(e,t)=>{let n=iN(e),r=iN(t);id(!!n,iR(e)),id(!!r,iR(t));let i=n.parse(e),o=r.parse(t);n===iO&&(i=iT(i),n=i_),r===iO&&(o=iT(o),r=i_);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iA(i[t],o[t],e));return a.alpha=iw(i.alpha,o.alpha,e),n.transform(a)}},iL={test:e=>i_.test(e)||iC.test(e)||iO.test(e),parse:e=>i_.test(e)?i_.parse(e):iO.test(e)?iO.parse(e):iC.parse(e),transform:e=>n8(e)?e:e.hasOwnProperty("red")?i_.transform(e):iO.transform(e)},iF="${c}",iz="${n}";function iV(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(n5);r&&(n=r.length,e=e.replace(n5,iF),t.push(...r.map(iL.parse)));let i=e.match(n3);return i&&(e=e.replace(n3,iz),t.push(...i.map(ro.parse))),{values:t,numColors:n,tokenised:e}}function iZ(e){return iV(e).values}function iI(e){let{values:t,numColors:n,tokenised:r}=iV(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,iH={test:function(e){var t,n,r,i;return isNaN(e)&&n8(e)&&(null!==(n=null===(t=e.match(n3))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(n5))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:iZ,createTransformer:iI,getAnimatableNone:function(e){let t=iZ(e),n=iI(e);return n(t.map(iB))}},iU=e=>"number"==typeof e;function iW(e,t){return iU(e)?n=>iw(e,t,n):iL.test(e)?iD(e,t):iY(e,t)}let iq=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>iW(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]=iW(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function iK(e){let t=iH.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=iH.createTransformer(t),r=iK(e),i=iK(t),o=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return o?r6(iq(r.parsed,i.parsed),n):(ic(!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}`)},iG=(e,t)=>n=>iw(e,t,n);function iX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;id(o===t.length,"Both input and output ranges must be the same length"),id(!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])?iG:"string"==typeof r?iL.test(r)?iD:iY:Array.isArray(r)?iq:"object"==typeof r?i$:void 0),a=e.length-1;for(let n=0;nn(ib(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=ib(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(ih(e[0],e[o-1],t)):s}let iQ=e=>t=>1-e(1-t),iJ=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i0=e=>t=>t*t*((e+1)*t-e),i1=4/11,i2=8/11,i4=e=>e,i3=e=>Math.pow(e,2),i5=iQ(i3),i6=iJ(i3),i8=e=>1-Math.sin(Math.acos(e)),i7=iQ(i8),i9=iJ(i7),oe=i0(1.525),ot=iQ(oe),on=iJ(oe),or=(e=>{let t=i0(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),oi=4356/361,oo=35442/1805,oa=16061/1805,os=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 iX(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||i6).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 oc={keyframes:ou,spring:iy,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 od(e,t,n=0){return e-t-n}let of=e=>{let t=({delta:t})=>e(t);return{start:()=>na.update(t,!0),stop:()=>ns.update(t)}};function oh(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=of,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iu(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,x=0,b=g.duration,w=!1,j=!0,E=function(e){if(Array.isArray(e.to))return ou;if(oc[e.type])return oc[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 iy;return ou}(g);(null===(i=E.needsInterpolation)||void 0===i?void 0:i.call(E,o,y))&&(r=iX([0,100],[o,y],{clamp:!1}),o=0,y=100);let k=E(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(j||(e=-e),l+=e,!w){let e=k.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===x&&(null!=b||(b=l)),x=o+d:i<=-d)&&(x++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?od(t+-e,t,n):t-(e-t)+n}(l,b,d,j=x%2==0):(l=od(l,b,d),"mirror"===c&&k.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let op=e=>1e3*e,om=(e,t)=>1-3*t+3*e,ov=(e,t)=>3*t-6*e,og=e=>3*e,oy=(e,t,n)=>((om(t,n)*e+ov(t,n))*e+og(t))*e,ox=(e,t,n)=>3*om(t,n)*e*e+2*ov(t,n)*e+og(t),ob={linear:i4,easeIn:i3,easeInOut:i6,easeOut:i5,circIn:i8,circInOut:i9,circOut:i7,backIn:oe,backInOut:on,backOut:ot,anticipate:or,bounceIn:ol,bounceInOut:e=>e<.5?.5*(1-os(1-2*e)):.5*os(2*e-1)+.5,bounceOut:os},ow=e=>{if(Array.isArray(e)){id(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 i4;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oy(.1*t,e,n);return o=>0===o||1===o?o:oy(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=r+.1*a,l=ox(s,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=ox(t,n,r);if(0===i)break;let o=oy(t,n,r)-e;t-=o/i}return t}(t,s,e,n):0===l?s:function(e,t,n,r,i){let o,a;let s=0;do(o=oy(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?(id(void 0!==ob[e],`Invalid easing type '${e}'`),ob[e]):e},oj=e=>Array.isArray(e)&&"number"!=typeof e[0],oE=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iH.test(t)&&!t.startsWith("url(")),ok=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oS=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),o_=()=>({type:"keyframes",ease:"linear",duration:.3}),oC=e=>({type:"keyframes",duration:.8,values:e}),oO={x:ok,y:ok,z:ok,rotate:ok,rotateX:ok,rotateY:ok,rotateZ:ok,scaleX:oS,scaleY:oS,scale:oS,opacity:o_,backgroundColor:o_,color:o_,default:oS},oM=(e,t)=>({to:t,...(rT(t)?oC:oO[e]||oO.default)(t)}),oT=new Set(["brightness","contrast","saturate","opacity"]);function oA(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(n3)||[];if(!r)return e;let i=n.replace(r,""),o=oT.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let oP=/([a-z-]*)\(.*?\)/g,oN=Object.assign(Object.assign({},iH),{getAnimatableNone:e=>{let t=e.match(oP);return t?t.map(oA).join(" "):e}}),oR={...ru,color:iL,backgroundColor:iL,outlineColor:iL,fill:iL,stroke:iL,borderColor:iL,borderTopColor:iL,borderRightColor:iL,borderBottomColor:iL,borderLeftColor:iL,filter:oN,WebkitFilter:oN},oD=e=>oR[e];function oL(e,t){var n;let r=oD(e);return r!==oN&&(r=iH),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let oF={current:!1};function oz(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(ns.read(r),e(o-t))};return na.read(r,!0),()=>ns.read(r)}let oV=!1;function oZ(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oI(e){return"number"==typeof e?0:oL("",e)}function oB(e,t){return e[t]||e.default||e}function oH(e,t,n,r={}){return oF.current&&(r={type:!1}),t.start(i=>{let o,a;let s=function(e,t,n,r,i){let o=oB(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=oE(e,n);"none"===a&&s&&"string"==typeof n?a=oL(e,n):oZ(a)&&"string"==typeof n?a=oI(n):!Array.isArray(n)&&oZ(n)&&"string"==typeof a&&(n=oI(a));let l=oE(e,a);return ic(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;r=a,a=e,t=(n=nf().delta)?(e-r)*(1e3/n):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oh({...(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,...oM(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=op(o.duration)),o.repeatDelay&&(a.repeatDelay=op(o.repeatDelay)),e&&(a.ease=oj(e)?e.map(ow):ow(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(ic(!oV,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oV=!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=rP(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),l=function(e,t){var n,r;let i=oB(e,t)||{};return null!==(r=null!==(n=i.delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=()=>o=s();return l?a=oz(u,op(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oU=e=>/^\-?\d*\.?\d+$/.test(e),oW=e=>/^0[^.\s]+$/.test(e);function oq(e,t){-1===e.indexOf(t)&&e.push(t)}function o$(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class oK{constructor(){this.subscriptions=[]}add(e){return oq(this.subscriptions,e),()=>o$(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 oG{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oK,this.velocityUpdateSubscribers=new oK,this.renderSubscribers=new oK,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nf();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,na.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=()=>na.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=oY(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)?e*(1e3/t):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 oX(e){return new oG(e)}let oQ=e=>t=>t.test(e),oJ=[ro,rt,re,n9,rr,rn,{test:e=>"auto"===e,parse:e=>e}],o0=e=>oJ.find(oQ(e)),o1=[...oJ,iL,iH],o2=e=>o1.find(oQ(e));function o4(e,t,n){let r=e.getProps();return rM(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 o3(e){return!!(nX(e)&&e.add)}function o5(e,t,n={}){var r;let i=o4(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>o6(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(o8).forEach((e,r)=>{a.push(o5(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 o6(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&&nY.has(t)&&(o={...o,type:!1,delay:0});let s=oH(t,r,i,o);o3(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=o4(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=rP(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oX(n))}}(e,s)})}function o8(e,t){return e.sortNodePosition(t)}let o7=[Ey.Animate,Ey.InView,Ey.Focus,Ey.Hover,Ey.Tap,Ey.Drag,Ey.Exit],o9=[...o7].reverse(),ae=o7.length;function at(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let an={animation:io(({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)){let i=t.map(t=>o5(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=o5(e,t,n);else{let i="function"==typeof t?o4(e,t,n.custom):t;r=o6(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[Ey.Animate]:at(!0),[Ey.InView]:at(),[Ey.Hover]:at(),[Ey.Tap]:at(),[Ey.Drag]:at(),[Ey.Focus]:at(),[Ey.Exit]:at()},r=!0,i=(t,n)=>{let r=o4(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,E=Array.isArray(g)?g:[g],k=E.reduce(i,{});!1===x&&(k={});let{prevResolvedValues:S={}}=v,_={...S,...k},C=e=>{j=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in _){let t=k[e],n=S[e];h.hasOwnProperty(e)||(t!==n?rT(t)&&rT(n)?!il(t,n)||w?C(e):v.protectedKeys[e]=!0:void 0!==t?C(e):f.add(e):void 0!==t&&f.has(e)?C(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=k,v.isActive&&(h={...h,...k}),r&&e.blockInitialAnimation&&(j=!1),j&&!b&&d.push(...E.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)),nN(t)&&(0,x.useEffect)(()=>t.subscribe(e),[t])}),exit:io(e=>{let{custom:t,visualElement:n}=e,[r,i]=is(),o=(0,x.useContext)(nv);(0,x.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(Ey.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},ar=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),ai=e=>ar(e)&&e.hasOwnProperty("z"),ao=(e,t)=>Math.abs(e-t);function aa(e,t){if(iU(e)&&iU(t))return ao(e,t);if(ar(e)&&ar(t)){let n=ao(e.x,t.x),r=ao(e.y,t.y),i=ai(e)&&ai(t)?ao(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}class as{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=ac(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=aa(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nf();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=al(t,this.transformPagePoint),rV(e)&&0===e.buttons){this.handlePointerUp(e,t);return}na.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=ac(al(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},rZ(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=rB(e),i=al(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=nf();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,ac(i,this.history)),this.removeListeners=r6(rG(window,"pointermove",this.handlePointerMove),rG(window,"pointerup",this.handlePointerUp),rG(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ns.update(this.updatePoint)}}function al(e,t){return t?{point:t(e.point)}:e}function au(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ac({point:e},t){return{point:e,delta:au(e,ad(t)),offset:au(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ad(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>op(.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 ad(e){return e[e.length-1]}function af(e){return e.max-e.min}function ah(e,t=0,n=.01){return aa(e,t)({translate:0,scale:1,origin:0,originPoint:0}),ak=()=>({x:aE(),y:aE()}),aS=()=>({min:0,max:0}),a_=()=>({x:aS(),y:aS()});function aC(e){return[e("x"),e("y")]}function aO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aM(e){return void 0===e||1===e}function aT({scale:e,scaleX:t,scaleY:n}){return!aM(e)||!aM(t)||!aM(n)}function aA(e){return aT(e)||aP(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aP(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function aN(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function aR(e,t=0,n=1,r,i){e.min=aN(e.min,t,n,r,i),e.max=aN(e.max,t,n,r,i)}function aD(e,{x:t,y:n}){aR(e.x,t.translate,t.scale,t.originPoint),aR(e.y,n.translate,n.scale,n.originPoint)}function aL(e,t){e.min=e.min+t,e.max=e.max+t}function aF(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=iw(e.min,e.max,o);aR(e,t[n],t[r],a,t.scale)}let az=["x","scaleX","originX"],aV=["y","scaleY","originY"];function aZ(e,t){aF(e.x,t,az),aF(e.y,t,aV)}function aI(e,t){return aO(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 aB=new WeakMap;class aH{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=a_(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new as(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(rB(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=r1(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),aC(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(re.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=af(i);r=e*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Ey.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(Ey.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aU(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?iw(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&&nA(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ax(e.x,n,i),y:ax(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:aw(e,"left","right"),y:aw(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&aC(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||!nA(t))return!1;let r=t.current;id(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=aI(e,n),{scroll:i}=t;return i&&(aL(r.x,i.x),aL(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:ab((e=i.layout.actual).x,o.x),y:ab(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=aO(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=aC(a=>{var l;if(!aU(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)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oH(e,n,0,t)}stopAnimation(){aC(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||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){aC(t=>{let{drag:n}=this.getProps();if(!aU(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]-iw(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nA(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};aC(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=af(e),i=af(t);return i>r?n=ib(t.min,t.max-r,e.min):r>i&&(n=ib(e.min,e.max-i,t.min)),ih(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(),aC(e=>{if(!aU(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(iw(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aB.set(this.visualElement,this);let t=this.visualElement.current,n=rG(t,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();nA(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();let a=rF(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(aC(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(),n(),o(),null==s||s()}}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 aU(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let aW={pan:io(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=e||t||n||r,a=(0,x.useRef)(null),{transformPagePoint:s}=(0,x.useContext)(nO),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,x.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),rX(i,"pointerdown",o&&function(e){a.current=new as(e,l,{transformPagePoint:s})}),nE(()=>a.current&&a.current.end())}),drag:io(function(e){let{dragControls:t,visualElement:n}=e,r=ng(()=>new aH(n));(0,x.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,x.useEffect)(()=>r.addListeners(),[r])})};function aq(e){return"string"==typeof e&&e.startsWith("var(--")}let a$=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function aK(e,t,n=1){id(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=a$.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():aq(i)?aK(i,t,n+1):i}let aY=new Set(["width","height","top","left","right","bottom","x","y"]),aG=e=>aY.has(e),aX=e=>Object.keys(e).some(aG),aQ=(e,t)=>{e.set(t,!1),e.set(t)},aJ=e=>e===ro||e===rt;(Ep=Ex||(Ex={})).width="width",Ep.height="height",Ep.left="left",Ep.right="right",Ep.top="top",Ep.bottom="bottom";let a0=(e,t)=>parseFloat(e.split(", ")[t]),a1=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return a0(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?a0(t[1],e):0}},a2=new Set(["x","y","z"]),a4=nK.filter(e=>!a2.has(e)),a3={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:a1(4,13),y:a1(5,14)},a5=(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]=a3[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);aQ(r,s[n]),e[n]=a3[n](l,o)}),e},a6=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(aG),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=o0(c),f=t[i];if(rT(f)){let e=f.length,t=null===f[0]?1:0;d=o0(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],aQ(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=a5(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nh&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},a8=(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(!aq(t))return;let n=aK(t,r);n&&e.set(n)}),t){let e=t[i];if(!aq(e))continue;let o=aK(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,aX(i)?a6(e,i,n,o):{target:i,transitionEnd:o}},a7={current:null},a9={current:!1},se=Object.keys(nV),st=se.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=()=>na.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=nD(t),this.isVariantNode=nL(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]&&nX(t)&&(t.set(o[e],!1),o3(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&nX(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)),a9.current||function(){if(a9.current=!0,nh){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>a7.current=e.matches;e.addListener(t),t()}else a7.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||a7.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(),ns.update(this.notifyUpdate),ns.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&&na.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"!==t6&&n&&t&&id(!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):a_()}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=oX(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=rM(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||nX(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 oK),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let si=["initial",...o7],so=si.length;class sa 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;let n=t[e]||t.default||t;return n.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;snq(e)?new sl(t,{enableHardwareAcceleration:!1}):new ss(t,{enableHardwareAcceleration:!0});function sc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sd={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rt.test(e))return e;e=parseFloat(e)}let n=sc(e,t.target.x),r=sc(e,t.target.y);return`${n}% ${r}%`}},sf="_$css",sh={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(a$,e=>(o.push(e),sf)));let a=iH.parse(e);if(a.length>5)return r;let s=iH.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=iw(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(sf,()=>{let t=o[e];return e++,t})}return f}};class sp extends x.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(n$,sm),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()})),nZ.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()||na.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 sm={borderRadius:{...sd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sd,borderTopRightRadius:sd,borderBottomLeftRadius:sd,borderBottomRightRadius:sd,boxShadow:sh},sv=["TopLeft","TopRight","BottomLeft","BottomRight"],sg=sv.length,sy=e=>"string"==typeof e?parseFloat(e):e,sx=e=>"number"==typeof e||rt.test(e);function sb(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sw=sE(0,.5,i7),sj=sE(.5,.95,i4);function sE(e,t,n){return r=>rt?1:n(ib(e,t,r))}function sk(e,t){e.min=t.min,e.max=t.max}function sS(e,t){sk(e.x,t.x),sk(e.y,t.y)}function s_(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 sC(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(re.test(t)){t=parseFloat(t);let e=iw(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=iw(o.min,o.max,r);e===o&&(s-=t),e.min=s_(e.min,t,n,s,i),e.max=s_(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let sO=["x","scaleX","originX"],sM=["y","scaleY","originY"];function sT(e,t,n,r){sC(e.x,t,sO,null==n?void 0:n.x,null==r?void 0:r.x),sC(e.y,t,sM,null==n?void 0:n.y,null==r?void 0:r.y)}function sA(e){return 0===e.translate&&1===e.scale}function sP(e){return sA(e.x)&&sA(e.y)}function sN(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 sR(e){return af(e.x)/af(e.y)}class sD{constructor(){this.members=[]}add(e){oq(this.members,e),e.scheduleRender()}remove(e){if(o$(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 sL(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 sF=(e,t)=>e.depth-t.depth;class sz{constructor(){this.children=[],this.isDirty=!1}add(e){oq(this.children,e),this.isDirty=!0}remove(e){o$(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sF),this.isDirty=!1,this.children.forEach(e)}}let sV=["","X","Y","Z"];function sZ({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(s$),this.nodes.forEach(sK)},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=oz(r,250),nZ.hasAnimatedSinceResize&&(nZ.hasAnimatedSinceResize=!1,this.nodes.forEach(sq))})}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:s0,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sN(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={...oB(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sq(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,ns.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(sY))}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));s4(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(sJ));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;sX(a.x,e.x,f),sX(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)&&(ay(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,sQ(r.x,d.x,s.x,f),sQ(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=iw(0,null!==(a=n.opacity)&&void 0!==a?a:1,sw(r)),e.opacityExit=iw(null!==(s=t.opacity)&&void 0!==s?s:1,0,sj(r))):o&&(e.opacity=iw(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{nZ.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=nX(e)?e:oX(e);return oH("",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&&s3(this.options.animationType,this.layout.actual,r.actual)){n=this.target||a_();let t=af(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=af(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sS(t,n),aZ(t,i),am(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new sD);let o=this.sharedNodes.get(e);o.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(sU),this.root.sharedNodes.clear()}}}function sI(e){e.updateLayout()}function sB(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?aC(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=af(n);n.min=t[e].min,n.max=n.min+r}):s3(r,i.layout,t)&&aC(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=af(t[e]);n.max=n.min+r});let o=ak();am(o,t,i.layout);let a=ak();i.isShared?am(a,e.applyTransform(n,!0),i.measured):am(a,t,i.layout);let s=!sP(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=a_();ay(n,i.layout,e.layout);let o=a_();ay(o,t,r.actual),sN(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 sH(e){e.clearSnapshot()}function sU(e){e.clearMeasurements()}function sW(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function s$(e){e.resolveTargetDelta()}function sK(e){e.calcProjection()}function sY(e){e.resetRotation()}function sG(e){e.removeLeadSnapshot()}function sX(e,t,n){e.translate=iw(t.translate,0,n),e.scale=iw(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sQ(e,t,n,r){e.min=iw(t.min,n.min,r),e.max=iw(t.max,n.max,r)}function sJ(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let s0={duration:.45,ease:[.4,0,.1,1]};function s1(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,i=r.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s2(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function s4(e){s2(e.x),s2(e.y)}function s3(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return aa(e,t)<=n}(sR(t),sR(n),.2)}let s5=sZ({attachResizeListener:(e,t)=>rF(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),s6={current:void 0},s8=sZ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!s6.current){let e=new s5(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),s6.current=e}return s6.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),s7={...an,...ia,...aW,measureLayout:function(e){let[t,n]=is(),r=(0,x.useContext)(nj);return x.createElement(sp,{...e,layoutGroup:r,switchLayoutGroup:(0,x.useContext)(nH),isPresent:t,safeToRemove:n})}},s9=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?nV.projectionNodeConstructor=e[t]:nV[t].Component=e[t]}(e);let a=(0,x.forwardRef)(function(a,s){var l;let u={...(0,x.useContext)(nO),...a,layoutId:function({layoutId:e}){let t=(0,x.useContext)(nj).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(nD(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nP(t)?t:void 0,animate:nP(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,x.useContext)(nM));return(0,x.useMemo)(()=>({initial:t,animate:n}),[nF(t),nF(n)])}(a),h=c?void 0:ng(()=>{if(nZ.hasEverUpdated)return nI++}),p=i(a,c);if(!c&&nh){f.visualElement=function(e,t,n,r){let i=(0,x.useContext)(nM).visualElement,o=(0,x.useContext)(nT),a=(0,x.useContext)(nv),s=(0,x.useContext)(nO).reducedMotion,l=(0,x.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 np(()=>{u&&u.render()}),(0,x.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),np(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,x.useContext)(nT).strict,i=(0,x.useContext)(nH);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||nV.projectionNodeConstructor,i))}return x.createElement(nB,{visualElement:f.visualElement,props:u},d,x.createElement(nM.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,x.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):nA(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[nU]=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){let o=nq(e)?rD:rL;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=nq(t)?rj:rh,l=s(n,o,a),u=function(e,t,n){let r={};for(let i in e)(rv(i)||!0===n&&rm(i)||!t&&!rm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c={...u,...l,ref:i};return r&&(c["data-projection-id"]=r),(0,x.createElement)(t,c)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,s7,su,s8));function le(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,x.useState)(!1),o=(0,x.useMemo)(()=>n?t:r,[n,r,t]),a=(0,x.useCallback)(e=>{n?n(e):i(e)},[n]);return{open:o,onOpenChange:a}}let lt={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}=le({open:i,onOpenChange:o});return(0,y.jsxs)(tQ,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,y.jsx)(tB,{asChild:!0,children:t}),(0,y.jsx)(nC,{children:n&&u?(0,y.jsx)(tJ,{forceMount:!0,children:(0,y.jsx)(t$,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,y.jsx)(s9.div,{variants:lt,initial:"init",animate:"show",exit:"exit",className:(0,em.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,y.jsx)("div",{className:(0,em.cx)("py-1 px-2","max-w-xs","overflow-hidden",t4()),children:(0,y.jsx)(t2,{size:"12",children:n})})})})}):null})]})}let lr=(0,em.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"}}),li=x.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,y.jsx)(ln,{content:u,align:c,side:d,children:(0,y.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,y.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 lo=n(88242);let la=x.forwardRef((e,t)=>{let{children:n,...r}=e;return(0,y.jsx)(X,{ref:t,...r,..."single"===r.type?{collapsible:!0}:{},children:n})}),ls=x.forwardRef((e,t)=>{let{children:n,...r}=e;return(0,y.jsx)(ed,{children:(0,y.jsx)(eh,{...r,asChild:!0,ref:t,children:(0,y.jsxs)(li,{variant:"ghost",size:"none",className:"w-full flex gap-2 justify-between",children:[(0,y.jsx)("span",{className:"flex-1 text-left",children:n}),(0,y.jsx)("span",{className:"pr-3",children:(0,y.jsx)(lo.cRw,{})})]})})})}),ll=(0,em.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}}),lu=x.forwardRef((e,t)=>{let{variant:n,className:r,...i}=e;return(0,y.jsx)(ec,{...i,className:ll({variant:n,className:r}),ref:t})}),lc=ep,ld=(0,em.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lf=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{...r,className:ld({className:n}),ref:t})});var lh=n(86029);let lp="Avatar",[lm,lv]=(0,j.b)(lp),[lg,ly]=lm(lp),lx=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,x.useState)("idle");return(0,x.createElement)(lg,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,x.createElement)(O.WV.span,(0,w.Z)({},r,{ref:t})))}),lb=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=ly("AvatarImage",n),s=function(e){let[t,n]=(0,x.useState)("idle");return(0,x.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,lh.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,M.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,x.createElement)(O.WV.img,(0,w.Z)({},o,{ref:t,src:r})):null}),lw=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=ly("AvatarFallback",n),[a,s]=(0,x.useState)(void 0===r);return(0,x.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,x.createElement)(O.WV.span,(0,w.Z)({},i,{ref:t})):null}),lj=(0,em.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"}}),lE=(0,em.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lk=x.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,y.jsx)("div",{className:(0,em.cx)("relative h-fit w-fit",c),children:(0,y.jsxs)(lx,{...d,ref:t,className:lj({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,y.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,y.jsx)(lb,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,y.jsx)(lw,{className:lE({size:o}),children:i})]})})}),lS=(0,em.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{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"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}}),l_=x.forwardRef((e,t)=>{let{variant:n,interactive:r,rounded:i,className:o,...a}=e;return(0,y.jsx)("div",{...a,className:lS({variant:n,interactive:r,rounded:i,className:o}),ref:t})}),lC=x.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,y.jsx)("pre",{children:(0,y.jsx)("code",{className:(0,em.cx)(t0({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})})}),lO=(0,em.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"}}),lM=x.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,y.jsx)("code",{...i,className:lO({color:n,className:r}),ref:t})}),lT=(0,em.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"]),lA=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:lT({className:n}),...r})});(0,em.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 lP=(0,em.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"}}),lN=x.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,y.jsx)("div",{ref:t,...o,className:lP({size:i,pad:r,className:n})})});var lR=n(72331);let lD=(0,x.createContext)(void 0);function lL(e){let t=(0,x.useContext)(lD);return e||t||"ltr"}let lF="ScrollArea",[lz,lV]=(0,j.b)(lF),[lZ,lI]=lz(lF),lB=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,x.useState)(null),[u,c]=(0,x.useState)(null),[d,f]=(0,x.useState)(null),[h,p]=(0,x.useState)(null),[m,v]=(0,x.useState)(null),[g,y]=(0,x.useState)(0),[b,j]=(0,x.useState)(0),[k,S]=(0,x.useState)(!1),[_,C]=(0,x.useState)(!1),M=(0,E.e)(t,e=>l(e)),T=lL(i);return(0,x.createElement)(lZ,{scope:n,type:r,dir:T,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:k,onScrollbarXEnabledChange:S,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:_,onScrollbarYEnabledChange:C,onCornerWidthChange:y,onCornerHeightChange:j},(0,x.createElement)(O.WV.div,(0,w.Z)({dir:T},a,{ref:M,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),lH=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=lI("ScrollAreaViewport",n),a=(0,x.useRef)(null),s=(0,E.e)(t,a,o.onViewportChange);return(0,x.createElement)(x.Fragment,null,(0,x.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,x.createElement)(O.WV.div,(0,w.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,x.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),lU="ScrollAreaScrollbar",lW=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lI(lU,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,x.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,x.createElement)(lq,(0,w.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,x.createElement)(l$,(0,w.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,x.createElement)(lK,(0,w.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,x.createElement)(lY,(0,w.Z)({},r,{ref:t})):null}),lq=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lI(lU,e.__scopeScrollArea),[o,a]=(0,x.useState)(!1);return(0,x.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,x.createElement)(T.z,{present:n||o},(0,x.createElement)(lK,(0,w.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),l$=(0,x.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=lI(lU,e.__scopeScrollArea),a="horizontal"===e.orientation,s=ur(()=>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,x.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,x.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,x.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t],i=n!==r;i&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,x.createElement)(T.z,{present:r||"hidden"!==l},(0,x.createElement)(lY,(0,w.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,_.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,_.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),lK=(0,x.forwardRef)((e,t)=>{let n=lI(lU,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,x.useState)(!1),s="horizontal"===e.orientation,l=ur(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=lI(lU,e.__scopeScrollArea),o=(0,x.useRef)(null),a=(0,x.useRef)(0),[s,l]=(0,x.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=l7(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=l9(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport,u=ut([a,s],"ltr"===r?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===n?(0,x.createElement)(lG,(0,w.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=ue(e,s,i.dir);o.current.style.transform=`translate3d(${t}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,x.createElement)(lX,(0,w.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=ue(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),lG=(0,x.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lI(lU,e.__scopeScrollArea),[a,s]=(0,x.useState)(),l=(0,x.useRef)(null),u=(0,E.e)(t,l,o.onScrollbarXChange);return(0,x.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,x.createElement)(l0,(0,w.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":l9(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:l8(a.paddingLeft),paddingEnd:l8(a.paddingRight)}})}}))}),lX=(0,x.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lI(lU,e.__scopeScrollArea),[a,s]=(0,x.useState)(),l=(0,x.useRef)(null),u=(0,E.e)(t,l,o.onScrollbarYChange);return(0,x.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,x.createElement)(l0,(0,w.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":l9(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:l8(a.paddingTop),paddingEnd:l8(a.paddingBottom)}})}}))}),[lQ,lJ]=lz(lU),l0=(0,x.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=lI(lU,n),[p,m]=(0,x.useState)(null),v=(0,E.e)(t,e=>m(e)),g=(0,x.useRef)(null),y=(0,x.useRef)(""),b=h.viewport,j=r.content-r.viewport,k=(0,lh.W)(c),S=(0,lh.W)(l),C=ur(d,10);function M(e){if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return(0,x.useEffect)(()=>{let e=e=>{let t=e.target,n=null==p?void 0:p.contains(t);n&&k(e,j)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,j,k]),(0,x.useEffect)(S,[r,S]),ui(p,C),ui(h.content,C),(0,x.createElement)(lQ,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,lh.W)(o),onThumbPointerUp:(0,lh.W)(a),onThumbPositionChange:S,onThumbPointerDown:(0,lh.W)(s)},(0,x.createElement)(O.WV.div,(0,w.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,_.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",M(e)}}),onPointerMove:(0,_.M)(e.onPointerMove,M),onPointerUp:(0,_.M)(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),l1="ScrollAreaThumb",l2=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lJ(l1,e.__scopeScrollArea);return(0,x.createElement)(T.z,{present:n||i.hasThumb},(0,x.createElement)(l4,(0,w.Z)({ref:t},r)))}),l4=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=lI(l1,n),a=lJ(l1,n),{onThumbPositionChange:s}=a,l=(0,E.e)(t,e=>a.onThumbChange(e)),u=(0,x.useRef)(),c=ur(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,x.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=un(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,x.createElement)(O.WV.div,(0,w.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,_.M)(e.onPointerDownCapture,e=>{let t=e.target,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;a.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,_.M)(e.onPointerUp,a.onThumbPointerUp)}))}),l3="ScrollAreaCorner",l5=(0,x.forwardRef)((e,t)=>{let n=lI(l3,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY),i="scroll"!==n.type&&r;return i?(0,x.createElement)(l6,(0,w.Z)({},e,{ref:t})):null}),l6=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=lI(l3,n),[o,a]=(0,x.useState)(0),[s,l]=(0,x.useState)(0);return ui(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),ui(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,x.createElement)(O.WV.div,(0,w.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 l8(e){return e?parseInt(e,10):0}function l7(e,t){let n=e/t;return isNaN(n)?0:n}function l9(e){let t=l7(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ue(e,t,n="ltr"){let r=l9(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===n?[0,a]:[-1*a,0],l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,s),u=ut([0,a],[0,o-r]);return u(l)}function ut(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 un=(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 ur(e,t){let n=(0,lh.W)(e),r=(0,x.useRef)(0);return(0,x.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,x.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function ui(e,t){let n=(0,lh.W)(t);(0,M.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 uo=x.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,y.jsxs)(lB,{className:(0,em.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,y.jsx)(lH,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,y.jsx)(lW,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,y.jsx)(l2,{className:(0,em.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,y.jsx)(lW,{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,y.jsx)(l2,{className:(0,em.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,y.jsx)(l5,{className:"bg-black/70"})]})}),ua=(0,em.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),us={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},ul=x.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}=le({open:i,onOpenChange:o});return(0,y.jsxs)(lR.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,y.jsx)(lR.xz,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:v?(0,y.jsx)(lR.h_,{forceMount:!0,children:(0,y.jsx)(lR.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,y.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,y.jsx)(lR.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,y.jsx)(s9.div,{variants:us,initial:"init",animate:"show",exit:"exit",className:ua(u),children:(0,y.jsx)(ud,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function uu(e){let{className:t}=e;return(0,y.jsx)(lR.x8,{asChild:!0,type:"button",children:(0,y.jsx)("div",{className:(0,em.cx)("appearance-none",t),children:(0,y.jsx)(li,{size:"small",variant:"ghost",type:"button",children:(0,y.jsx)(lo.QN4,{})})})})}let uc=(0,em.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[t4()],none:""}},defaultVariants:{variant:"default"}}),ud=x.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,x.useState)(0),r=(0,x.useRef)(null);return(0,x.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,x.useState)(!1);return(0,x.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,y.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uc(s),children:[i&&(0,y.jsx)(lR.Dx,{className:uf({showSeparator:h}),children:i}),(0,y.jsx)(uo,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,y.jsxs)("div",{ref:d,className:(0,em.cx)("p-4",u),children:[o&&(0,y.jsx)(lR.dk,{className:uh(),children:o}),n]})}),a&&(0,y.jsx)(up,{separator:h,children:a}),(0,y.jsx)(uu,{className:l||"absolute top-3.5 right-2"})]})}),uf=(0,em.j)(["pt-4 pb-2 px-4 w-full",t0({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),uh=(0,em.j)([t0({color:"subtle",size:"14"}),"py-2"]);function up(e){let{children:t,separator:n=!0}=e;return(0,y.jsx)("div",{className:(0,em.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var um=n(55070),uv=n(77334);let ug="rovingFocusGroup.onEntryFocus",uy={bubbles:!1,cancelable:!0},ux="RovingFocusGroup",[ub,uw,uj]=S(ux),[uE,uk]=(0,j.b)(ux,[uj]),[uS,u_]=uE(ux),uC=(0,x.forwardRef)((e,t)=>(0,x.createElement)(ub.Provider,{scope:e.__scopeRovingFocusGroup},(0,x.createElement)(ub.Slot,{scope:e.__scopeRovingFocusGroup},(0,x.createElement)(uO,(0,w.Z)({},e,{ref:t}))))),uO=(0,x.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,x.useRef)(null),f=(0,E.e)(t,d),h=lL(o),[p=null,m]=(0,C.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,x.useState)(!1),y=(0,lh.W)(u),b=uw(n),j=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ug,y),()=>e.removeEventListener(ug,y)},[y]),(0,x.createElement)(uS,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,x.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,x.useCallback)(()=>g(!0),[])},(0,x.createElement)(O.WV.div,(0,w.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,_.M)(e.onMouseDown,()=>{j.current=!0}),onFocus:(0,_.M)(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ug,uy);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===p),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);uA(i)}}j.current=!1}),onBlur:(0,_.M)(e.onBlur,()=>g(!1))})))}),uM=(0,x.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,A.M)(),s=u_("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=uw(n);return(0,x.createElement)(ub.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,x.createElement)(O.WV.span,(0,w.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,_.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,_.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,_.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 uT[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>uA(o))}})})))}),uT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uA(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uP=n(49732),uN=n(70506);let uR=["Enter"," "],uD=["ArrowUp","PageDown","End"],uL=["ArrowDown","PageUp","Home",...uD],uF={ltr:[...uR,"ArrowRight"],rtl:[...uR,"ArrowLeft"]},uz={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uV="Menu",[uZ,uI,uB]=S(uV),[uH,uU]=(0,j.b)(uV,[uB,th,uk]),uW=th(),uq=uk(),[u$,uK]=uH(uV),[uY,uG]=uH(uV),uX=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=uW(n);return(0,x.createElement)(tv,(0,w.Z)({},i,r,{ref:t}))}),uQ="MenuPortal",[uJ,u0]=uH(uQ,{forceMount:void 0}),u1="MenuContent",[u2,u4]=uH(u1),u3=(0,x.forwardRef)((e,t)=>{let n=u0(u1,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uK(u1,e.__scopeMenu),a=uG(u1,e.__scopeMenu);return(0,x.createElement)(uZ.Provider,{scope:e.__scopeMenu},(0,x.createElement)(T.z,{present:r||o.open},(0,x.createElement)(uZ.Slot,{scope:e.__scopeMenu},a.modal?(0,x.createElement)(u5,(0,w.Z)({},i,{ref:t})):(0,x.createElement)(u6,(0,w.Z)({},i,{ref:t})))))}),u5=(0,x.forwardRef)((e,t)=>{let n=uK(u1,e.__scopeMenu),r=(0,x.useRef)(null),i=(0,E.e)(t,r);return(0,x.useEffect)(()=>{let e=r.current;if(e)return(0,uP.R)(e)},[]),(0,x.createElement)(u8,(0,w.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,_.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),u6=(0,x.forwardRef)((e,t)=>{let n=uK(u1,e.__scopeMenu);return(0,x.createElement)(u8,(0,w.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),u8=(0,x.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=uK(u1,n),v=uG(u1,n),g=uW(n),y=uq(n),b=uI(n),[j,S]=(0,x.useState)(null),C=(0,x.useRef)(null),O=(0,E.e)(t,C,m.onContentChange),M=(0,x.useRef)(0),T=(0,x.useRef)(""),A=(0,x.useRef)(0),P=(0,x.useRef)(null),N=(0,x.useRef)("right"),R=(0,x.useRef)(0),D=h?uN.Z:x.Fragment,L=h?{as:k.g7,allowPinchZoom:!0}:void 0,F=e=>{var t,n;let r=T.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=i.map(e=>e.textValue),l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==n));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(s,r,a),u=null===(n=i.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){T.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};(0,x.useEffect)(()=>()=>window.clearTimeout(M.current),[]),(0,um.EW)();let z=(0,x.useCallback)(e=>{var t,n;let r=N.current===(null===(t=P.current)||void 0===t?void 0:t.side);return r&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return 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;c&&(i=!i)}return i}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)},[]);return(0,x.createElement)(u2,{scope:n,searchRef:T,onItemEnter:(0,x.useCallback)(e=>{z(e)&&e.preventDefault()},[z]),onItemLeave:(0,x.useCallback)(e=>{var t;z(e)||(null===(t=C.current)||void 0===t||t.focus(),S(null))},[z]),onTriggerLeave:(0,x.useCallback)(e=>{z(e)&&e.preventDefault()},[z]),pointerGraceTimerRef:A,onPointerGraceIntentChange:(0,x.useCallback)(e=>{P.current=e},[])},(0,x.createElement)(D,L,(0,x.createElement)(uv.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,_.M)(o,e=>{var t;e.preventDefault(),null===(t=C.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,x.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,x.createElement)(uC,(0,w.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:S,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,x.createElement)(tj,(0,w.Z)({role:"menu","aria-orientation":"vertical","data-state":cf(m.open),dir:v.dir},g,p,{ref:O,style:{outline:"none",...p.style},onKeyDown:(0,_.M)(p.onKeyDown,e=>{let t=e.target,n=t.closest('[role="menu"]')===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&i&&F(e.key));let o=C.current;if(e.target!==o||!uL.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);uD.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,_.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),T.current="")}),onPointerMove:(0,_.M)(e.onPointerMove,cp(e=>{let t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>R.current?"right":"left";N.current=t,R.current=e.clientX}}))})))))))}),u7=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.createElement)(O.WV.div,(0,w.Z)({role:"group"},r,{ref:t}))}),u9=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.createElement)(O.WV.div,(0,w.Z)({},r,{ref:t}))}),ce="MenuItem",ct="menu.itemSelect",cn=(0,x.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,x.useRef)(null),a=uG(ce,e.__scopeMenu),s=u4(ce,e.__scopeMenu),l=(0,E.e)(t,o),u=(0,x.useRef)(!1);return(0,x.createElement)(cr,(0,w.Z)({},i,{ref:l,disabled:n,onClick:(0,_.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(ct,{bubbles:!0,cancelable:!0});e.addEventListener(ct,e=>null==r?void 0:r(e),{once:!0}),(0,O.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,_.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&uR.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),cr=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=u4(ce,n),s=uq(n),l=(0,x.useRef)(null),u=(0,E.e)(t,l),[c,d]=(0,x.useState)(!1),[f,h]=(0,x.useState)("");return(0,x.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,x.createElement)(uZ.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,x.createElement)(uM,(0,w.Z)({asChild:!0},s,{focusable:!r}),(0,x.createElement)(O.WV.div,(0,w.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,_.M)(e.onPointerMove,cp(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:(0,_.M)(e.onPointerLeave,cp(e=>a.onItemLeave(e))),onFocus:(0,_.M)(e.onFocus,()=>d(!0)),onBlur:(0,_.M)(e.onBlur,()=>d(!1))}))))}),[ci,co]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,x.createElement)(cs,{scope:e.__scopeMenu,checked:n},(0,x.createElement)(cn,(0,w.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":ch(n),onSelect:(0,_.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},uH("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),ca=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,lh.W)(r);return(0,x.createElement)(ci,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,x.createElement)(u7,(0,w.Z)({},i,{ref:t})))},"MenuItemIndicator"),[cs,cl]=uH(ca,{checked:!1}),[cu,cc]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=cl(ca,n);return(0,x.createElement)(T.z,{present:r||o.checked},(0,x.createElement)(O.WV.span,(0,w.Z)({},i,{ref:t,"data-state":ch(o.checked)})))},uH("MenuSub")),cd="MenuSubTrigger";function cf(e){return e?"open":"closed"}function ch(e){return e?"checked":"unchecked"}function cp(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=uK(cd,e.__scopeMenu),r=uG(cd,e.__scopeMenu),i=cc(cd,e.__scopeMenu),o=u4(cd,e.__scopeMenu),a=(0,x.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,x.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,x.useEffect)(()=>c,[c]),(0,x.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,x.createElement)(uX,(0,w.Z)({asChild:!0},u),(0,x.createElement)(cr,(0,w.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cf(n.open)},e,{ref:(0,E.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,_.M)(e.onPointerMove,cp(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,_.M)(e.onPointerLeave,cp(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,_.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&uF[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=u0(u1,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uK(u1,e.__scopeMenu),a=uG(u1,e.__scopeMenu),s=cc("MenuSubContent",e.__scopeMenu),l=(0,x.useRef)(null),u=(0,E.e)(t,l);return(0,x.createElement)(uZ.Provider,{scope:e.__scopeMenu},(0,x.createElement)(T.z,{present:r||o.open},(0,x.createElement)(uZ.Slot,{scope:e.__scopeMenu},(0,x.createElement)(u8,(0,w.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,_.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,_.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,_.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uz[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 cm=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=uW(t),[l,u]=(0,x.useState)(null),c=(0,x.useRef)(!1),d=(0,lh.W)(o),f=lL(i);return(0,x.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,x.createElement)(tM,s,(0,x.createElement)(u$,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,x.createElement)(uY,{scope:t,onClose:(0,x.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cv=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=uK(uQ,t);return(0,x.createElement)(uJ,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(tT.h,{asChild:!0,container:i},r)))},cg="DropdownMenu",[cy,cx]=(0,j.b)(cg,[uU]),cb=uU(),[cw,cj]=cy(cg),cE=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=cj("DropdownMenuTrigger",n),a=cb(n);return(0,x.createElement)(uX,(0,w.Z)({asChild:!0},a),(0,x.createElement)(O.WV.button,(0,w.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,E.F)(t,o.triggerRef),onPointerDown:(0,_.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,_.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,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cj("DropdownMenuContent",n),o=cb(n),a=(0,x.useRef)(!1);return(0,x.createElement)(u3,(0,w.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,_.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,_.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)"}}))}),cS=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cb(n);return(0,x.createElement)(u9,(0,w.Z)({},i,r,{ref:t}))}),c_=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cb(n);return(0,x.createElement)(cn,(0,w.Z)({},i,r,{ref:t}))}),cC=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=cb(t),u=(0,x.useRef)(null),[c=!1,d]=(0,C.T)({prop:i,defaultProp:o,onChange:a});return(0,x.createElement)(cw,{scope:t,triggerId:(0,A.M)(),triggerRef:u,contentId:(0,A.M)(),open:c,onOpenChange:d,onOpenToggle:(0,x.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,x.createElement)(cm,(0,w.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cO=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cb(t);return(0,x.createElement)(cv,(0,w.Z)({},r,n))},cM="horizontal",cT=["horizontal","vertical"],cA=(0,x.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cM,...i}=e,o=cP(r)?r:cM;return(0,x.createElement)(O.WV.div,(0,w.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function cP(e){return cT.includes(e)}cA.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cP(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: - horizontal - vertical -Defaulting to \`${cP}\`.`):null}};let cL=(0,em.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"}}),cF=x.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...o}=e;return(0,y.jsx)(cR,{ref:t,className:cL({variant:n,color:r,className:i}),...o})}),cz=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,em.cx)(t0({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},cV=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,em.cx)(cz({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,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"])},cI=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return t0({font:n,color:r,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},cZ=e=>(0,em.cx)(["h-px","my-2","mx-1.5",e]),cB=x.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,y.jsx)(cF,{ref:t,className:cZ(n),...i})}),cH=x.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(cz({className:n,font:r,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),cU=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(["ml-auto","pl-5",n]),...r})}),cW=(0,em.j)([lo,"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"]),cq=e=>(0,em.cx)(t4(),(0,em.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),c$={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cK=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=le({open:s,onOpenChange:l});return(0,y.jsxs)(cT,{open:u,onOpenChange:c,...i,children:[(0,y.jsx)(c_,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:u?(0,y.jsx)(cA,{forceMount:!0,children:(0,y.jsx)(cC,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,y.jsx)(s9.div,{variants:c$,initial:"init",animate:"show",exit:"exit",className:cW(),children:(0,y.jsx)("div",{className:cq(a),children:r})})})}):null})]})}),cY=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(cM,{ref:t,className:cV({className:n}),...r})}),cG=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(cO,{ref:t,className:(0,em.cx)("px-1.5",cI({className:n})),...r})}),cX=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var cJ=n(39097),cQ=n.n(cJ);let c0={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},c1={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"},c2=x.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=c0[n];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,y.jsxs)("div",{className:(0,em.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,y.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,y.jsxs)(cQ(),{href:"#".concat(e),className:"relative group",children:[(0,y.jsx)(t1,{className:"hidden group-hover:block",children:(0,y.jsx)(lc.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,y.jsx)(t1,{as:u,...l,ref:t,weight:"none",className:(0,em.cx)("proportional-nums inline-block",c1[n]),children:o})]})]})}return(0,y.jsx)("div",{className:(0,em.cx)("flex flex-col gap-6 items-start",r),children:(0,y.jsx)(t1,{as:u,...l,ref:t,weight:"none",className:(0,em.cx)("proportional-nums inline-block",c1[n],r),children:o})})});var c4=n(96577),c3=n.n(c4);let c5=(0,em.j)(["rounded"]);function c6(e){let{className:t,...n}=e;return(0,y.jsx)(c3(),{className:c5({className:t}),...n})}let[c8,c7]=(0,j.k)("Label",{id:void 0,controlRef:{current:null}}),c9=(0,x.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,o=(0,x.useRef)(null),a=(0,x.useRef)(null),s=(0,E.e)(t,a),l=(0,A.M)(r);return(0,x.useEffect)(()=>{if(n){let e=document.getElementById(n),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),o.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,x.createElement)(c8,{id:l,controlRef:o},(0,x.createElement)(O.WV.span,(0,w.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),!o.current||t.defaultPrevented)return;let r=o.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(o.current.click(),o.current.focus())}})))}),de=e=>{let t=c7("LabelConsumer"),{controlRef:n}=t;return(0,x.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},dt=x.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,y.jsx)(c9,{ref:t,...c,className:cI({font:n,size:r,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),dn=(0,em.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"}}),dr=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,em.cx)(t0({scaleSize:r,size:n,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),dn({disabled:u,underline:l}),c)},di=x.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,x.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,y.jsx)(cQ(),{href:n||"#",ref:t,className:dr({font:r,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),da=x.forwardRef((e,t)=>{let{href:n,disabled:r,variant:i,size:o,state:a,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,x.useCallback)(e=>{h&&(n||e.preventDefault(),h(e))},[h,n]);return c?(0,y.jsx)(ls,{content:c,children:(0,y.jsx)(cQ(),{href:n||"#",ref:t,className:ll({variant:i,size:o,state:a,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}):(0,y.jsx)(cQ(),{href:n||"#",ref:t,className:ll({variant:i,size:o,state:a,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}),ds={src:"/_next/static/media/logo.0e2362ab.png"};function dl(e){let{size:t=30,className:n}=e;return(0,y.jsx)(c6,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let du="Popover",[dc,dd]=(0,j.b)(du,[th]),df=th(),[dh,dp]=dc(du),dm=(0,x.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=dp("PopoverTrigger",n),o=df(n),a=(0,E.e)(t,i.triggerRef),s=(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dk(i.open)},r,{ref:a,onClick:(0,_.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,x.createElement)(tv,(0,w.Z)({asChild:!0},o),s)}),dv="PopoverPortal",[dg,dy]=dc(dv,{forceMount:void 0}),dx="PopoverContent",db=(0,x.forwardRef)((e,t)=>{let n=dy(dx,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=dp(dx,e.__scopePopover);return(0,x.createElement)(T.z,{present:r||o.open},o.modal?(0,x.createElement)(dw,(0,w.Z)({},i,{ref:t})):(0,x.createElement)(dj,(0,w.Z)({},i,{ref:t})))}),dw=(0,x.forwardRef)((e,t)=>{let n=dp(dx,e.__scopePopover),r=(0,x.useRef)(null),i=(0,E.e)(t,r),o=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=r.current;if(e)return(0,uD.R)(e)},[]),(0,x.createElement)(uL.Z,{as:k.g7,allowPinchZoom:!0},(0,x.createElement)(dE,(0,w.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,_.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,_.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,_.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dj=(0,x.forwardRef)((e,t)=>{let n=dp(dx,e.__scopePopover),r=(0,x.useRef)(!1);return(0,x.createElement)(dE,(0,w.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,s=null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),dE=(0,x.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=dp(dx,n),h=df(n);return(0,uy.EW)(),(0,x.createElement)(ux.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,x.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,x.createElement)(tj,(0,w.Z)({"data-state":dk(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 dk(e){return e?"open":"closed"}let dS=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=df(t),l=(0,x.useRef)(null),[u,c]=(0,x.useState)(!1),[d=!1,f]=(0,C.T)({prop:r,defaultProp:i,onChange:o});return(0,x.createElement)(tM,s,(0,x.createElement)(dh,{scope:t,contentId:(0,A.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,x.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,x.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,x.useCallback)(()=>c(!1),[]),modal:a},n))},d_=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=dp(dv,t);return(0,x.createElement)(dg,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(tT.h,{asChild:!0,container:i},r)))},dC=(0,em.j)([lo,"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"]),dO=(0,em.cx)(t4(),(0,em.j)(["py-1","px-1"])()),dM={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=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=le({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,y.jsxs)(dS,{open:a,onOpenChange:s,...i,children:[(0,y.jsx)(dm,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:a?(0,y.jsx)(d_,{forceMount:!0,children:(0,y.jsx)(db,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,y.jsx)(s9.div,{variants:dM,initial:"init",animate:"show",exit:"exit",className:dC(),children:(0,y.jsx)(ul,{className:dO,children:r})})})}):null})]})}),dA="Progress",[dP,dN]=(0,j.b)(dA),[dR,dD]=dP(dA),dL=(0,x.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:o=dz,...a}=e,s=dZ(i)?i:100,l=dB(r,s)?r:null,u=dI(l)?o(l,s):void 0;return(0,x.createElement)(dR,{scope:n,value:l,max:s},(0,x.createElement)(O.WV.div,(0,w.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":dI(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dV(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});dL.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!dZ(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),o=dZ(e.max)?e.max:100;return null==r||dB(r,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: +Defaulting to \`${cM}\`.`):null}};let cN=(0,em.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"}}),cR=x.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...o}=e;return(0,y.jsx)(cA,{ref:t,className:cN({variant:n,color:r,className:i}),...o})}),cD=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,em.cx)(t0({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},cL=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,em.cx)(cD({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,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"])},cF=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return t0({font:n,color:r,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},cz=e=>(0,em.cx)(["h-px","my-2","mx-1.5",e]),cV=x.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,y.jsx)(cR,{ref:t,className:cz(n),...i})}),cZ=x.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(cD({className:n,font:r,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),cI=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(["ml-auto","pl-5",n]),...r})}),cB=(0,em.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"]),cH=e=>(0,em.cx)(t4(),(0,em.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),cU={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cW=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=le({open:s,onOpenChange:l});return(0,y.jsxs)(cC,{open:u,onOpenChange:c,...i,children:[(0,y.jsx)(cE,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:u?(0,y.jsx)(cO,{forceMount:!0,children:(0,y.jsx)(ck,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,y.jsx)(s9.div,{variants:cU,initial:"init",animate:"show",exit:"exit",className:cB(),children:(0,y.jsx)("div",{className:cH(a),children:r})})})}):null})]})}),cq=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(c_,{ref:t,className:cL({className:n}),...r})}),c$=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(cS,{ref:t,className:(0,em.cx)("px-1.5",cF({className:n})),...r})}),cK=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var cY=n(39097),cG=n.n(cY);let cX={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},cQ={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"},cJ=x.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=cX[n];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,y.jsxs)("div",{className:(0,em.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,y.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,y.jsxs)(cG(),{href:"#".concat(e),className:"relative group",children:[(0,y.jsx)(t1,{className:"hidden group-hover:block",children:(0,y.jsx)(lo.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,y.jsx)(t1,{as:u,...l,ref:t,weight:"none",className:(0,em.cx)("proportional-nums inline-block",cQ[n]),children:o})]})]})}return(0,y.jsx)("div",{className:(0,em.cx)("flex flex-col gap-6 items-start",r),children:(0,y.jsx)(t1,{as:u,...l,ref:t,weight:"none",className:(0,em.cx)("proportional-nums inline-block",cQ[n],r),children:o})})});var c0=n(96577),c1=n.n(c0);let c2=(0,em.j)(["rounded"]);function c4(e){let{className:t,...n}=e;return(0,y.jsx)(c1(),{className:c2({className:t}),...n})}let[c3,c5]=(0,j.k)("Label",{id:void 0,controlRef:{current:null}}),c6=(0,x.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,o=(0,x.useRef)(null),a=(0,x.useRef)(null),s=(0,E.e)(t,a),l=(0,A.M)(r);return(0,x.useEffect)(()=>{if(n){let e=document.getElementById(n),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),o.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,x.createElement)(c3,{id:l,controlRef:o},(0,x.createElement)(O.WV.span,(0,w.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),!o.current||t.defaultPrevented)return;let r=o.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(o.current.click(),o.current.focus())}})))}),c8=e=>{let t=c5("LabelConsumer"),{controlRef:n}=t;return(0,x.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},c7=x.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,y.jsx)(c6,{ref:t,...c,className:cF({font:n,size:r,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),c9=(0,em.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"}}),de=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,em.cx)(t0({scaleSize:r,size:n,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),c9({disabled:u,underline:l}),c)},dt=x.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,x.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,y.jsx)(cG(),{href:n||"#",ref:t,className:de({font:r,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),dn=x.forwardRef((e,t)=>{let{href:n,disabled:r,variant:i,size:o,state:a,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,x.useCallback)(e=>{h&&(n||e.preventDefault(),h(e))},[h,n]);return c?(0,y.jsx)(ln,{content:c,children:(0,y.jsx)(cG(),{href:n||"#",ref:t,className:lr({variant:i,size:o,state:a,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}):(0,y.jsx)(cG(),{href:n||"#",ref:t,className:lr({variant:i,size:o,state:a,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}),dr={src:"/_next/static/media/logo.0e2362ab.png"};function di(e){let{size:t=30,className:n}=e;return(0,y.jsx)(c4,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let da="Popover",[ds,dl]=(0,j.b)(da,[th]),du=th(),[dc,dd]=ds(da),df=(0,x.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=dd("PopoverTrigger",n),o=du(n),a=(0,E.e)(t,i.triggerRef),s=(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dw(i.open)},r,{ref:a,onClick:(0,_.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,x.createElement)(tv,(0,w.Z)({asChild:!0},o),s)}),dh="PopoverPortal",[dp,dm]=ds(dh,{forceMount:void 0}),dv="PopoverContent",dg=(0,x.forwardRef)((e,t)=>{let n=dm(dv,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=dd(dv,e.__scopePopover);return(0,x.createElement)(T.z,{present:r||o.open},o.modal?(0,x.createElement)(dy,(0,w.Z)({},i,{ref:t})):(0,x.createElement)(dx,(0,w.Z)({},i,{ref:t})))}),dy=(0,x.forwardRef)((e,t)=>{let n=dd(dv,e.__scopePopover),r=(0,x.useRef)(null),i=(0,E.e)(t,r),o=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=r.current;if(e)return(0,uP.R)(e)},[]),(0,x.createElement)(uN.Z,{as:k.g7,allowPinchZoom:!0},(0,x.createElement)(db,(0,w.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,_.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,_.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,_.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dx=(0,x.forwardRef)((e,t)=>{let n=dd(dv,e.__scopePopover),r=(0,x.useRef)(!1);return(0,x.createElement)(db,(0,w.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,s=null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),db=(0,x.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=dd(dv,n),h=du(n);return(0,um.EW)(),(0,x.createElement)(uv.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,x.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,x.createElement)(tj,(0,w.Z)({"data-state":dw(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 dw(e){return e?"open":"closed"}let dj=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=du(t),l=(0,x.useRef)(null),[u,c]=(0,x.useState)(!1),[d=!1,f]=(0,C.T)({prop:r,defaultProp:i,onChange:o});return(0,x.createElement)(tM,s,(0,x.createElement)(dc,{scope:t,contentId:(0,A.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,x.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,x.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,x.useCallback)(()=>c(!1),[]),modal:a},n))},dE=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=dd(dh,t);return(0,x.createElement)(dp,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(tT.h,{asChild:!0,container:i},r)))},dk=(0,em.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"]),dS=(0,em.cx)(t4(),(0,em.j)(["py-1","px-1"])()),d_={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dC=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=le({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,y.jsxs)(dj,{open:a,onOpenChange:s,...i,children:[(0,y.jsx)(df,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:a?(0,y.jsx)(dE,{forceMount:!0,children:(0,y.jsx)(dg,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,y.jsx)(s9.div,{variants:d_,initial:"init",animate:"show",exit:"exit",className:dk(),children:(0,y.jsx)(uo,{className:dS,children:r})})})}):null})]})}),dO="Progress",[dM,dT]=(0,j.b)(dO),[dA,dP]=dM(dO),dN=(0,x.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:o=dD,...a}=e,s=dz(i)?i:100,l=dV(r,s)?r:null,u=dF(l)?o(l,s):void 0;return(0,x.createElement)(dA,{scope:n,value:l,max:s},(0,x.createElement)(O.WV.div,(0,w.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":dF(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dL(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});dN.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!dz(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),o=dz(e.max)?e.max:100;return null==r||dV(r,o)?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 dF=(0,x.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=dD("ProgressIndicator",r);return(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":dV(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function dz(e,t){return`${Math.round(e/t*100)}%`}function dV(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dI(e){return"number"==typeof e}function dZ(e){return dI(e)&&!isNaN(e)&&e>0}function dB(e,t){return dI(e)&&!isNaN(e)&&e<=t&&e>=0}let dH=(0,em.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"}}),dU=x.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,y.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,y.jsx)(dL,{...s,ref:t,value:o,max:a,className:dH({variant:r,className:i}),children:(0,y.jsx)(dF,{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,y.jsx)(t1,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function dW(e){let t=(0,x.useRef)({value:e,previous:e});return(0,x.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let dq="Radio",[d$,dK]=(0,j.b)(dq),[dY,dG]=d$(dq),dX=(0,x.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,x.useState)(null),h=(0,E.e)(t,e=>f(e)),p=de(d),m=(0,x.useRef)(!1),v=!d||!!d.closest("form");return(0,x.createElement)(dY,{scope:n,checked:o,disabled:s},(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":d0(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,_.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,x.createElement)(dQ,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),dJ=(0,x.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=dG("RadioIndicator",n);return(0,x.createElement)(T.z,{present:r||o.checked},(0,x.createElement)(O.WV.span,(0,w.Z)({"data-state":d0(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),dQ=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,x.useRef)(null),a=dW(n),s=tc(t);return(0,x.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,x.createElement)("input",(0,w.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 d0(e){return e?"checked":"unchecked"}let d1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],d2="RadioGroup",[d4,d3]=(0,j.b)(d2,[uC,dK]),d5=uC(),d6=dK(),[d8,d7]=d4(d2),d9=(0,x.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=de(),p=d5(n),m=lV(u),[v,g]=(0,C.T)({prop:a,defaultProp:o,onChange:d});return(0,x.createElement)(d8,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,x.createElement)(uT,(0,w.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,x.createElement)(O.WV.div,(0,w.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),fe=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=d7("RadioGroupItem",n),a=d5(n),s=d6(n),l=(0,x.useRef)(null),u=(0,E.e)(t,l),c=o.value===i.value,d=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{d1.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,x.createElement)(uP,(0,w.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,x.createElement)(dX,(0,w.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,_.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,_.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),ft=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=d6(n);return(0,x.createElement)(dJ,(0,w.Z)({},i,r,{ref:t}))}),fn=(0,em.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"}}),fr=(0,em.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"}}),fi=x.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(fe,{...o,className:fr({size:n,className:r}),ref:t,children:(0,y.jsx)(ft,{className:fn({size:n})})}),(0,y.jsx)(t1,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),fo=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(d9,{...r,className:(0,em.cx)("flex gap-2",n),ref:t})}),fa="Tabs",[fs,fl]=(0,j.b)(fa,[uC]),fu=uC(),[fc,fd]=fs(fa),ff=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=lV(s),[d,f]=(0,C.T)({prop:r,onChange:i,defaultProp:o});return(0,x.createElement)(fc,{scope:n,baseId:(0,A.M)(),value:d,onValueChange:f,orientation:a,dir:c,activationMode:l},(0,x.createElement)(O.WV.div,(0,w.Z)({dir:c,"data-orientation":a},u,{ref:t})))}),fh=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,o=fd("TabsList",n),a=fu(n);return(0,x.createElement)(uT,(0,w.Z)({asChild:!0},a,{orientation:o.orientation,dir:o.dir,loop:r}),(0,x.createElement)(O.WV.div,(0,w.Z)({role:"tablist","aria-orientation":o.orientation},i,{ref:t})))}),fp=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,a=fd("TabsTrigger",n),s=fu(n),l=fv(a.baseId,r),u=fg(a.baseId,r),c=r===a.value;return(0,x.createElement)(uP,(0,w.Z)({asChild:!0},s,{focusable:!i,active:c}),(0,x.createElement)(O.WV.button,(0,w.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},o,{ref:t,onMouseDown:(0,_.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:(0,_.M)(e.onFocus,()=>{let e="manual"!==a.activationMode;c||i||!e||a.onValueChange(r)})})))}),fm=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:o,...a}=e,s=fd("TabsContent",n),l=fv(s.baseId,r),u=fg(s.baseId,r),c=r===s.value,d=(0,x.useRef)(c);return(0,x.useEffect)(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,x.createElement)(T.z,{present:i||c},({present:n})=>(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&o))});function fv(e,t){return`${e}-trigger-${t}`}function fg(e,t){return`${e}-content-${t}`}let fy=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(ff,{ref:t,className:(0,em.cx)("flex flex-col",n),...r})}),fx=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fh,{ref:t,className:(0,em.cx)("flex flex-shrink-0 border-b border-gray-500 dark:border-graydark-500",n),...r})}),fb=x.forwardRef((e,t)=>{let{font:n,size:r="16",weight:i="medium",className:o,...a}=e;return(0,y.jsx)(fp,{ref:t,type:"button",className:(0,em.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",t0({font:n,size:r,weight:i,ellipsis:!0}),o),...a})}),fw=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fm,{ref:t,className:(0,em.cx)("flex-grow-1 pt-6 outline-none",n),...r})});(0,em.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",t0(),"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 fj=(0,em.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"}}),fE=x.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,y.jsx)("input",{ref:t,className:fj({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** +Defaulting to \`null\`.`)}};let dR=(0,x.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=dP("ProgressIndicator",r);return(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":dL(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function dD(e,t){return`${Math.round(e/t*100)}%`}function dL(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dF(e){return"number"==typeof e}function dz(e){return dF(e)&&!isNaN(e)&&e>0}function dV(e,t){return dF(e)&&!isNaN(e)&&e<=t&&e>=0}let dZ=(0,em.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"}}),dI=x.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,y.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,y.jsx)(dN,{...s,ref:t,value:o,max:a,className:dZ({variant:r,className:i}),children:(0,y.jsx)(dR,{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,y.jsx)(t1,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function dB(e){let t=(0,x.useRef)({value:e,previous:e});return(0,x.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let dH="Radio",[dU,dW]=(0,j.b)(dH),[dq,d$]=dU(dH),dK=(0,x.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,x.useState)(null),h=(0,E.e)(t,e=>f(e)),p=c8(d),m=(0,x.useRef)(!1),v=!d||!!d.closest("form");return(0,x.createElement)(dq,{scope:n,checked:o,disabled:s},(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":dX(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,_.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,x.createElement)(dG,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),dY=(0,x.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=d$("RadioIndicator",n);return(0,x.createElement)(T.z,{present:r||o.checked},(0,x.createElement)(O.WV.span,(0,w.Z)({"data-state":dX(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),dG=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,x.useRef)(null),a=dB(n),s=tc(t);return(0,x.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,x.createElement)("input",(0,w.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 dX(e){return e?"checked":"unchecked"}let dQ=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dJ="RadioGroup",[d0,d1]=(0,j.b)(dJ,[uk,dW]),d2=uk(),d4=dW(),[d3,d5]=d0(dJ),d6=(0,x.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=c8(),p=d2(n),m=lL(u),[v,g]=(0,C.T)({prop:a,defaultProp:o,onChange:d});return(0,x.createElement)(d3,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,x.createElement)(uC,(0,w.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,x.createElement)(O.WV.div,(0,w.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),d8=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=d5("RadioGroupItem",n),a=d2(n),s=d4(n),l=(0,x.useRef)(null),u=(0,E.e)(t,l),c=o.value===i.value,d=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{dQ.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,x.createElement)(uM,(0,w.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,x.createElement)(dK,(0,w.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,_.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,_.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),d7=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=d4(n);return(0,x.createElement)(dY,(0,w.Z)({},i,r,{ref:t}))}),d9=(0,em.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,em.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"}}),ft=x.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(d8,{...o,className:fe({size:n,className:r}),ref:t,children:(0,y.jsx)(d7,{className:d9({size:n})})}),(0,y.jsx)(t1,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),fn=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(d6,{...r,className:(0,em.cx)("flex gap-2",n),ref:t})}),fr="Tabs",[fi,fo]=(0,j.b)(fr,[uk]),fa=uk(),[fs,fl]=fi(fr),fu=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=lL(s),[d,f]=(0,C.T)({prop:r,onChange:i,defaultProp:o});return(0,x.createElement)(fs,{scope:n,baseId:(0,A.M)(),value:d,onValueChange:f,orientation:a,dir:c,activationMode:l},(0,x.createElement)(O.WV.div,(0,w.Z)({dir:c,"data-orientation":a},u,{ref:t})))}),fc=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,o=fl("TabsList",n),a=fa(n);return(0,x.createElement)(uC,(0,w.Z)({asChild:!0},a,{orientation:o.orientation,dir:o.dir,loop:r}),(0,x.createElement)(O.WV.div,(0,w.Z)({role:"tablist","aria-orientation":o.orientation},i,{ref:t})))}),fd=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,a=fl("TabsTrigger",n),s=fa(n),l=fh(a.baseId,r),u=fp(a.baseId,r),c=r===a.value;return(0,x.createElement)(uM,(0,w.Z)({asChild:!0},s,{focusable:!i,active:c}),(0,x.createElement)(O.WV.button,(0,w.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},o,{ref:t,onMouseDown:(0,_.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:(0,_.M)(e.onFocus,()=>{let e="manual"!==a.activationMode;c||i||!e||a.onValueChange(r)})})))}),ff=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:o,...a}=e,s=fl("TabsContent",n),l=fh(s.baseId,r),u=fp(s.baseId,r),c=r===s.value,d=(0,x.useRef)(c);return(0,x.useEffect)(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,x.createElement)(T.z,{present:i||c},({present:n})=>(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&o))});function fh(e,t){return`${e}-trigger-${t}`}function fp(e,t){return`${e}-content-${t}`}let fm=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fu,{ref:t,className:(0,em.cx)("flex flex-col",n),...r})}),fv=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fc,{ref:t,className:(0,em.cx)("flex flex-shrink-0 border-b border-gray-500 dark:border-graydark-500",n),...r})}),fg=x.forwardRef((e,t)=>{let{font:n,size:r="16",weight:i="medium",className:o,...a}=e;return(0,y.jsx)(fd,{ref:t,type:"button",className:(0,em.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",t0({font:n,size:r,weight:i,ellipsis:!0}),o),...a})}),fy=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(ff,{ref:t,className:(0,em.cx)("flex-grow-1 pt-6 outline-none",n),...r})});(0,em.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",t0(),"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 fx=(0,em.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"}}),fb=x.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,y.jsx)("input",{ref:t,className:fx({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -44,7 +44,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var fk=function(){return(fk=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){if(e.includes(t)){var r=e.split(t),i=r[0],o=r[1];if(o.length>n)return""+i+t+o.slice(0,n)}var a=e.length>n?RegExp("(\\d+)(\\d{"+n+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},fN=function(e,t){var n=t.groupSeparator,r=t.decimalSeparator,i=RegExp("\\d([^"+f_(void 0===n?",":n)+f_(void 0===r?".":r)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},fR=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?f_(a)+"?":"")+"\\d").test(t),c="."!==n?fD(t,n,u):t,d=fL((r?new Intl.NumberFormat(r.locale,r.currency?{style:"currency",currency:r.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=fN(d,fk({},e)),h=t.slice(-1)===n?n:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&n&&(d=d.includes(n)?d.replace(RegExp("(\\d+)("+f_(n)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+n+p+f):""+d+n+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},fD=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(f_(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},fL=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?fS(fS([],e),[n]):[n,u]:"currency"===l?n?e:fS(fS([],e),[u]):"group"===l?s?e:fS(fS([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:fS(fS([],e),[void 0!==i?i:u]):"fraction"===l?fS(fS([],e),[void 0!==o?u.slice(0,o):u]):fS(fS([],e),[u])},[""]).join("")},fF={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},fz=function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,n){return"currency"===t.type?0===n?fk(fk({},e),{currencySymbol:t.value,prefix:t.value}):fk(fk({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?fk(fk({},e),{groupSeparator:t.value}):"decimal"===t.type?fk(fk({},e),{decimalSeparator:t.value}):e},fF)},fV=function(e){return RegExp(/\d/,"gi").test(e)},fI=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.lengtht.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}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(C&&fV(C))throw Error("decimalSeparator cannot be a number");if(O&&fV(O))throw Error("groupSeparator cannot be a number");var L=(0,x.useMemo)(function(){return fz(b)},[b]),F=C||L.decimalSeparator||"",z=O||L.groupSeparator||"";if(F&&z&&F===z&&!1===S)throw Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:F,groupSeparator:z,disableGroupSeparators:S,intlConfig:b,prefix:g||L.prefix,suffix:y},I={decimalSeparator:F,groupSeparator:z,allowDecimals:void 0===n||n,decimalsLimit:l||p||2,allowNegativeValue:void 0===r||r,disableAbbreviations:void 0!==_&&_,prefix:g||L.prefix,transformRawValue:R},Z=null!=u?fR(fk(fk({},V),{decimalScale:v,value:String(u)})):null!=f?fR(fk(fk({},V),{decimalScale:v,value:String(f)})):"",B=(0,x.useState)(Z),H=B[0],U=B[1],W=(0,x.useState)(!1),q=W[0],$=W[1],K=(0,x.useState)(0),Y=K[0],G=K[1],X=(0,x.useState)(0),J=X[0],Q=X[1],ee=(0,x.useState)(null),et=ee[0],en=ee[1],er=t||(0,x.useRef)(null),ei=function(e,t){$(!0);var n=fZ({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:z}),r=n.modifiedValue,i=n.cursorPosition,a=fA(fk({value:r},I));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===F){h&&h(void 0,o,{float:null,formatted:"",value:""}),U(a);return}var s=parseFloat(a.replace(F,".")),l=fR(fk({value:a},V));if(null!=i){var u=i+(l.length-e.length);G(u=u<=0?g?g.length:0:u),Q(J+1)}U(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,x.useEffect)(function(){q&&"-"!==H&&er&&"object"==typeof er&&er.current&&er.current.setSelectionRange(Y,Y)},[H,Y,er,q,J]);var eo=fk({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),M&&M(e)},onBlur:function(e){var t=e.target.value,n=fA(fk({value:t},I));if("-"===n||!n){U(""),A&&A(e);return}var r=fI(fP(n,F,p),F,void 0!==v?v:p),i=parseFloat(r.replace(F,".")),a=fR(fk(fk({},V),{value:r}));h&&h(r,o,{float:i,formatted:a,value:r}),U(a),A&&A(e)},onFocus:function(e){return T&&T(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(en(t),w&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),G(H.length);var n=parseFloat(null!=f?String(f).replace(F,"."):fA(fk({value:H},I)))||0,r="ArrowUp"===t?n+w:n-w;if(void 0!==j&&rE)return;var i=String(w).includes(".")?Number(String(w).split(".")[1].length):void 0;ei(String(i?r.toFixed(i):r).replace(".",F))}P&&P(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var r=fN(H,{groupSeparator:z,decimalSeparator:F});if(r&&n&&n>H.length-r.length&&er&&"object"==typeof er&&er.current){var i=H.length-r.length;er.current.setSelectionRange(i,i)}}N&&N(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||F&&H===F?H:fR(fk(fk({},V),{decimalScale:q?void 0:v,value:String(f)})),ref:er},D);return s?x.createElement(s,fk({},eo)):x.createElement("input",fk({},eo))});function fH(e){let{units:t,variant:n,size:r="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,x.useState)();return(0,x.useEffect)(()=>{h(navigator.language)},[]),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(fB,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,className:(0,em.cx)(fj({variant:n,size:r,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,y.jsx)("div",{className:(0,em.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,y.jsx)(t1,{size:"12",weight:"medium",color:"subtle",children:t})})]})}fB.displayName="CurrencyInput";var fU=n(6391),fW=n.n(fU);function fq(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let f$=(0,x.forwardRef)(function(e,t){let{value:n,placeholder:r=new(fW())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,x.useMemo)(()=>new(fW())(n),[n]),[p,m]=(0,x.useState)(""),v=(0,x.useMemo)(()=>fK(p),[p]),g=(0,x.useCallback)(e=>{o&&o((e=fK(e))&&!isNaN(Number(e))?new(fW())(e):void 0)},[o]),b=(0,x.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,x.useEffect)(()=>{if(!h.isEqualTo(v)){let e=fq(h,i);m(e)}},[h]),(0,y.jsx)(fH,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:r.isNaN()?"":fq(r,i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>b(e||"")})});function fK(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var fY=n(2850),fG=n(47025);let fX=new(fW())(0),fJ=(0,x.forwardRef)(function(e,t){let{sc:n,placeholder:r=new(fW())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,x.useMemo)(()=>new(fW())(void 0===n?NaN:n),[n]),{settings:g}=(0,fY.Hv)(),b=(0,fG.BW)({config:{swr:{revalidateOnFocus:!1}}}),w=(0,x.useMemo)(()=>{var e;return g.siaCentral&&b.data?new(fW())((null===(e=b.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||fX):fX},[b.data,g]),[j,E]=(0,x.useState)(),[k,S]=(0,x.useState)(""),[_,C]=(0,x.useState)(""),O=(0,x.useMemo)(()=>fQ(k),[k]),M=(0,x.useMemo)(()=>fQ(_),[_]),T=(0,x.useCallback)(e=>{a&&a((e=fQ(e))&&!isNaN(Number(e))?new(fW())(e):void 0)},[a]),A=(0,x.useCallback)(e=>{let t=fq(e,i);C(t)},[C,i]),P=(0,x.useCallback)(e=>{let t=fq(e,o);return S(t),T(t),t},[S,o,T]),N=(0,x.useCallback)(e=>{S(e),T(e)},[S,T]),R=(0,x.useCallback)(e=>{let t=new(fW())(e).times(w);A(t)},[A,w]),D=(0,x.useCallback)(e=>{let t=new(fW())(e).dividedBy(w);P(t)},[P,w]),[L,F]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{if(!v.isEqualTo(O)){let e=fq(v,o);S(e),"fiat"!==j&&R(e)}L||F(!0)},[v]),(0,x.useEffect)(()=>{L&&R(O)},[w]),(0,x.useEffect)(()=>{"sc"===j&&R(O)},[O]),(0,x.useEffect)(()=>{"fiat"===j&&D(M)},[M]),(0,y.jsxs)("div",{ref:t,className:(0,em.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,y.jsx)(fH,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:fq(r,o),units:l,value:"NaN"!==k?k:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{E(void 0),h&&h(e)},onFocus:e=>{E("sc"),p&&p(e)},onValueChange:e=>{N(e||"")}}),u&&g.siaCentral&&(0,y.jsx)(fH,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==_?_:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(w?w.times(r).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{E("fiat"),p&&p(e)},onBlur:e=>{E(void 0),h&&h(e)},onValueChange:e=>{C(e||"")}})]})});function fQ(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function f0(e){let{children:t}=e;return(0,y.jsx)(ls,{content:t,children:(0,y.jsx)("div",{className:"relative flex items-center inline mx-1",children:(0,y.jsx)(t1,{color:"subtle",children:(0,y.jsx)(lc.RdX,{className:"scale-75"})})})})}function f1(e){let{values:t,options:n,onChange:r}=e;return(0,y.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,y.jsx)(lu,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}function f2(e){let{options:t,onClick:n,onRemove:r}=e;return(0,y.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map(e=>(0,y.jsxs)(lR,{children:[(0,y.jsx)(lu,{variant:"active",onClick:()=>{n&&n(e.value)},children:e.label}),(0,y.jsx)(lu,{variant:"active",size:"small",onClick:()=>r(e.value),children:(0,y.jsx)(lc.PcV,{})})]},e.value))})}let f4=(0,em.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"}}),f3=x.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,y.jsxs)("div",{className:f4({size:n,state:r,className:o}),children:[i,(0,y.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,y.jsx)(lc.Cp0,{className:"pointer-events-none scale-75"})]})}),f5=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("option",{ref:t,...r,className:(0,em.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),f6=(0,em.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function f8(e){let{className:t}=e;return(0,y.jsx)("div",{className:f6({className:t})})}let f7=(0,em.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),f9=x.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,y.jsx)("div",{ref:t,className:f7({size:n,className:r}),...i})}),he="Switch",[ht,hn]=(0,j.b)(he),[hr,hi]=ht(he),ho=(0,x.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,x.useState)(null),p=(0,E.e)(t,e=>h(e)),m=de(f),v=(0,x.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=(0,C.T)({prop:o,defaultProp:a,onChange:c});return(0,x.createElement)(hr,{scope:n,checked:y,disabled:l},(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":hl(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,_.M)(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,x.createElement)(hs,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),ha=(0,x.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=hi("SwitchThumb",n);return(0,x.createElement)(O.WV.span,(0,w.Z)({"data-state":hl(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),hs=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,x.useRef)(null),a=dW(n),s=tc(t);return(0,x.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,x.createElement)("input",(0,w.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 hl(e){return e?"checked":"unchecked"}let hu=(0,em.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"}}),hc=(0,em.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"}}),hd=(0,x.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(ho,{className:hc({size:n,state:r,className:i}),...a,ref:t,children:(0,y.jsx)(ha,{className:hu({size:n})})}),o&&(0,y.jsx)(t1,{color:a.disabled?"subtle":"contrast",children:o})]})}),hf=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e,i=x.Children.toArray(n),o=i.find(hm);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:x.Children.count(e)>1?x.Children.only(null):(0,x.isValidElement)(e)?e.props.children:null);return(0,x.createElement)(hh,(0,w.Z)({},r,{ref:t}),(0,x.isValidElement)(e)?(0,x.cloneElement)(e,void 0,n):null)}return(0,x.createElement)(hh,(0,w.Z)({},r,{ref:t}),n)});hf.displayName="Slot";let hh=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,x.isValidElement)(n)?(0,x.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?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,E.F)(t,n.ref)}):x.Children.count(n)>1?x.Children.only(null):null});hh.displayName="SlotClone";let hp=({children:e})=>(0,x.createElement)(x.Fragment,null,e);function hm(e){return(0,x.isValidElement)(e)&&e.type===hp}let hv=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,x.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hf:t;return(0,x.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,x.createElement)(o,(0,w.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hg=(0,x.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,x.createElement)(hv.svg,(0,w.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,x.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hy="Popper",[hx,hb]=(0,j.b)(hy),[hw,hj]=hx(hy),hE=(0,x.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=hj("PopperAnchor",n),a=(0,x.useRef)(null),s=(0,E.e)(t,a);return(0,x.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,x.createElement)(hv.div,(0,w.Z)({},i,{ref:s}))}),hk="PopperContent",[hS,h_]=hx(hk),[hC,hO]=hx(hk,{hasParent:!1,positionUpdateFns:new Set}),hM=(0,x.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:w=!1,avoidCollisions:j=!0,onPlaced:k,...S}=e,_=hj(hk,d),[C,O]=(0,x.useState)(null),T=(0,E.e)(t,e=>O(e)),[A,P]=(0,x.useState)(null),N=tc(A),R=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,D=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,L="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(g)?g:[g],z=F.length>0,V={padding:L,boundary:F.filter(hP),altBoundary:z},{reference:I,floating:Z,strategy:B,x:H,y:U,placement:W,middlewareData:q,update:$}=ts({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tr,middleware:[hN(),ez({mainAxis:h+D,alignmentAxis:m}),j?eI({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?eZ():void 0,...V}):void 0,A?tl({element:A,padding:v}):void 0,j?eR({...V}):void 0,{name:"size",options:c={...V,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 eS(e,l),d=eg(r),f=ey(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=eC(u.left,0),p=eC(u.right,0),m=eC(u.top,0),v=eC(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:eC(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:eC(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let x=await o.getDimensions(a.floating);return y.width!==x.width||y.height!==x.height?{reset:{rects:!0}}:{}}},hR({arrowWidth:R,arrowHeight:D}),w?eF({strategy:"referenceHidden"}):void 0].filter(hA)});(0,M.b)(()=>{I(_.anchor)},[I,_.anchor]);let K=null!==H&&null!==U,[Y,G]=hD(W),X=(0,ly.W)(k);(0,M.b)(()=>{K&&(null==X||X())},[K,X]);let J=null===(i=q.arrow)||void 0===i?void 0:i.x,Q=null===(o=q.arrow)||void 0===o?void 0:o.y,ee=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=(0,x.useState)();(0,M.b)(()=>{C&&en(window.getComputedStyle(C).zIndex)},[C]);let{hasParent:er,positionUpdateFns:ei}=hO(hk,d),eo=!er;(0,x.useLayoutEffect)(()=>{if(!eo)return ei.add($),()=>{ei.delete($)}},[eo,ei,$]),(0,M.b)(()=>{eo&&K&&Array.from(ei).reverse().forEach(e=>requestAnimationFrame(e))},[eo,K,ei]);let ea={"data-side":Y,"data-align":G,...S,ref:T,style:{...S.style,animation:K?void 0:"none",opacity:null!==(s=q.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,x.createElement)("div",{ref:Z,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:K?`translate3d(${Math.round(H)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,x.createElement)(hS,{scope:d,placedSide:Y,onArrowChange:P,arrowX:J,arrowY:Q,shouldHideArrow:ee},eo?(0,x.createElement)(hC,{scope:d,hasParent:!0,positionUpdateFns:ei},(0,x.createElement)(hv.div,ea)):(0,x.createElement)(hv.div,ea)))}),hT={top:"bottom",right:"left",bottom:"top",left:"right"};function hA(e){return void 0!==e}function hP(e){return null!==e}let hN=()=>({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`),{}}}),hR=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]=hD(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="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function hD(e){let[t,n="center"]=e.split("-");return[t,n]}let hL=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,x.useState)(null);return(0,x.createElement)(hw,{scope:t,anchor:r,onAnchorChange:i},n)},hF=(0,x.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?to.createPortal((0,x.createElement)(hv.div,(0,w.Z)({},i,{ref:t})),r):null}),hz="dismissableLayer.update",hV=(0,x.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hI=(0,x.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,x.useContext)(hV),[f,h]=(0,x.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,x.useState)({}),v=(0,E.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),j=f?g.indexOf(f):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,S=j>=b,C=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,ly.W)(e),r=(0,x.useRef)(!1),i=(0,x.useRef)(()=>{});return(0,x.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hB("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));!S||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),O=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,ly.W)(e),r=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hB("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,n=[...d.branches].some(e=>e.contains(t));n||(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,ly.W)(e);(0,x.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=j===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,x.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),hZ(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,x.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hZ())},[f,d]),(0,x.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hz,e),()=>document.removeEventListener(hz,e)},[]),(0,x.createElement)(hv.div,(0,w.Z)({},c,{ref:v,style:{pointerEvents:k?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,_.M)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,_.M)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,_.M)(e.onPointerDownCapture,C.onPointerDownCapture)}))});function hZ(){let e=new CustomEvent(hz);document.dispatchEvent(e)}function hB(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,to.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hH="HoverCard",[hU,hW]=(0,j.b)(hH,[hb]),hq=hb(),[h$,hK]=hU(hH),hY=(0,x.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hK("HoverCardTrigger",n),o=hq(n);return(0,x.createElement)(hE,(0,w.Z)({asChild:!0},o),(0,x.createElement)(hv.a,(0,w.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,_.M)(e.onPointerEnter,h2(i.onOpen)),onPointerLeave:(0,_.M)(e.onPointerLeave,h2(i.onClose)),onFocus:(0,_.M)(e.onFocus,i.onOpen),onBlur:(0,_.M)(e.onBlur,i.onClose),onTouchStart:(0,_.M)(e.onTouchStart,e=>e.preventDefault())})))}),hG="HoverCardPortal",[hX,hJ]=hU(hG,{forceMount:void 0}),hQ="HoverCardContent",h0=(0,x.forwardRef)((e,t)=>{let n=hJ(hQ,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hK(hQ,e.__scopeHoverCard);return(0,x.createElement)(T.z,{present:r||o.open},(0,x.createElement)(h1,(0,w.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,_.M)(e.onPointerEnter,h2(o.onOpen)),onPointerLeave:(0,_.M)(e.onPointerLeave,h2(o.onClose)),ref:t})))}),h1=(0,x.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hK(hQ,n),c=hq(n),d=(0,x.useRef)(null),f=(0,E.e)(t,d),[h,p]=(0,x.useState)(!1);return(0,x.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,x.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(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,x.useEffect)(()=>{if(d.current){let e=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);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,x.createElement)(hI,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,_.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,x.createElement)(hM,(0,w.Z)({},c,l,{onPointerDown:(0,_.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 h2(e){return t=>"touch"===t.pointerType?void 0:e()}let h4=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hq(t),u=(0,x.useRef)(0),c=(0,x.useRef)(0),d=(0,x.useRef)(!1),f=(0,x.useRef)(!1),[h=!1,p]=(0,C.T)({prop:r,defaultProp:i,onChange:o}),m=(0,x.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,x.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,x.useCallback)(()=>p(!1),[p]);return(0,x.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,x.createElement)(h$,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,x.createElement)(hL,l,n))},h3=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hK(hG,t);return(0,x.createElement)(hX,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(hF,{asChild:!0,container:i},r)))},h5=(0,em.j)([lo,"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"]),h6=(0,em.cx)(t4(),"max-w-sm","py-0.5","px-1"),h8={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},h7=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=le({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,y.jsxs)(h4,{open:l,onOpenChange:u,...i,children:[n&&(0,y.jsx)(hY,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:l?(0,y.jsx)(h3,{forceMount:!0,children:(0,y.jsx)(h0,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,y.jsx)(s9.div,{variants:h8,initial:"init",animate:"show",exit:"exit",className:h5(),children:(0,y.jsx)("div",{className:(0,em.cx)(h6,a),children:r})})})}):null})]})});function h9(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,x.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,x.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,x.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,x.useMemo)(()=>a,Object.values(a));return(0,x.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,x.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),o=i[`__scope${r}`];return{...t,...o}},{});return(0,x.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function pe(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 pt(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pn(...e){return(0,x.useCallback)(pt(...e),e)}let pr=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e,i=x.Children.toArray(n),o=i.find(pa);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:x.Children.count(e)>1?x.Children.only(null):(0,x.isValidElement)(e)?e.props.children:null);return(0,x.createElement)(pi,(0,w.Z)({},r,{ref:t}),(0,x.isValidElement)(e)?(0,x.cloneElement)(e,void 0,n):null)}return(0,x.createElement)(pi,(0,w.Z)({},r,{ref:t}),n)});pr.displayName="Slot";let pi=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,x.isValidElement)(n)?(0,x.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?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?pt(t,n.ref):n.ref}):x.Children.count(n)>1?x.Children.only(null):null});pi.displayName="SlotClone";let po=({children:e})=>(0,x.createElement)(x.Fragment,null,e);function pa(e){return(0,x.isValidElement)(e)&&e.type===po}let ps=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,x.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?pr:t;return(0,x.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,x.createElement)(o,(0,w.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pl(e){let t=(0,x.useRef)(e);return(0,x.useEffect)(()=>{t.current=e}),(0,x.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let pu=(null==globalThis?void 0:globalThis.document)?x.useLayoutEffect:()=>{},pc=e=>{let{present:t,children:n}=e,r=function(e){var t;let[n,r]=(0,x.useState)(),i=(0,x.useRef)({}),o=(0,x.useRef)(e),a=(0,x.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,x.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},s));return(0,x.useEffect)(()=>{let e=pd(i.current);a.current="mounted"===l?e:"none"},[l]),pu(()=>{let t=i.current,n=o.current,r=n!==e;if(r){let r=a.current,i=pd(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]),pu(()=>{if(n){let e=e=>{let t=pd(i.current),r=t.includes(e.animationName);e.target===n&&r&&(0,to.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=pd(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,x.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):x.Children.only(n),o=pn(r.ref,i.ref),a="function"==typeof n;return a||r.isPresent?(0,x.cloneElement)(i,{ref:o}):null};function pd(e){return(null==e?void 0:e.animationName)||"none"}pc.displayName="Presence";let pf=b["useId".toString()]||(()=>void 0),ph=0;function pp(e){let t=e+"CollectionProvider",[n,r]=h9(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=pn(t,i.collectionRef);return x.createElement(pr,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=x.useRef(null),s=pn(t,a),c=o(l,n);return x.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),x.createElement(pr,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=x.useRef(null),o=x.useRef(new Map).current;return x.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}let pm="dismissableLayer.update",pv=(0,x.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pg=(0,x.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,x.useContext)(pv),[f,h]=(0,x.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,x.useState)({}),v=pn(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),j=f?g.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,k=j>=b,S=function(e,t=null==globalThis?void 0:globalThis.document){let n=pl(e),r=(0,x.useRef)(!1),i=(0,x.useRef)(()=>{});return(0,x.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){px("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));!k||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),_=function(e,t=null==globalThis?void 0:globalThis.document){let n=pl(e),r=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{e.target&&!r.current&&px("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,n=[...d.branches].some(e=>e.contains(t));n||(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=pl(e);(0,x.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=j===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,x.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),py(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,x.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),py())},[f,d]),(0,x.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pm,e),()=>document.removeEventListener(pm,e)},[]),(0,x.createElement)(ps.div,(0,w.Z)({},c,{ref:v,style:{pointerEvents:E?k?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,_.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,S.onPointerDownCapture)}))});function py(){let e=new CustomEvent(pm);document.dispatchEvent(e)}function px(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,to.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,x.createElement)(ps.span,(0,w.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 pb="NavigationMenu",[pw,pj,pE]=pp(pb),[pk,pS,p_]=pp(pb),[pC,pO]=h9(pb,[pE,p_]),[pM,pT]=pC(pb),[pA,pP]=pC(pb),[pN,pR]=pC("NavigationMenuItem"),pD=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pT("NavigationMenuIndicator",n),o=pj(n),[a,s]=(0,x.useState)(null),[l,u]=(0,x.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,x.useEffect)(()=>{var e;let t=o(),n=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;n&&s(n)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pZ(a,f),pZ(i.indicatorTrack,f),l?(0,x.createElement)(ps.div,(0,w.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"),pL=((e,t)=>{let n=pT(pD,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return pu(()=>{r(e.value,{ref:t,...e})},[e,t,r]),pu(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),pF=(0,x.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=pT(pD,n),d=(0,x.useRef)(null),f=pn(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=pj(n),v=(0,x.useRef)(null),{onItemDismiss:g}=c;(0,x.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(pL,t),()=>e.removeEventListener(pL,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,x.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let n=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=r===c.value,a=i===t.indexOf(r);if(!o&&!a)return v.current;let s=(()=>{if(n!==i){if(o&&-1!==i)return n>i?"from-end":"from-start";if(a&&-1!==n)return n>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,r]);return(0,x.createElement)(pz,{asChild:!0},(0,x.createElement)(pg,(0,w.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pL,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:pe(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:pe(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:pe(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,n="Tab"===e.key&&!t;if(n){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),n=document.activeElement,i=t.findIndex(e=>e===n),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(pI(s))e.preventDefault();else{var r;null===(r=o.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:pe(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pz=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=pT("NavigationMenuViewport",n),a=pn(t,o.onViewportChange),s=pP(pD,e.__scopeNavigationMenu),[l,u]=(0,x.useState)(null),[c,d]=(0,x.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 pZ(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,x.createElement)(ps.div,(0,w.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:pe(e.onPointerEnter,o.onContentEnter),onPointerLeave:pe(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,x.createElement)(pc,{key:e,present:n||i},(0,x.createElement)(pF,(0,w.Z)({},r,{ref:pt(t,e=>{i&&e&&d(e)})})))}))},(0,x.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pT("FocusGroup",n);return(0,x.createElement)(pk.Provider,{scope:n},(0,x.createElement)(pk.Slot,{scope:n},(0,x.createElement)(ps.div,(0,w.Z)({dir:i.dir},r,{ref:t}))))})),pV=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pS(n),o=pT("FocusGroupItem",n);return(0,x.createElement)(pk.ItemSlot,{scope:n},(0,x.createElement)(ps.button,(0,w.Z)({},r,{ref:t,onKeyDown:pe(e.onKeyDown,e=>{let t=["Home","End",...pV].includes(e.key);if(t){let t=i().map(e=>e.ref.current),n="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([n,"ArrowUp","End"].includes(e.key)&&t.reverse(),pV.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>pI(t)),e.preventDefault()}})})))};function pI(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pZ(e,t){let n=pl(t);pu(()=>{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 pB=n(38617);let pH=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fe,{...r,ref:t,className:(0,em.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 pU(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,pB.F)();return(0,y.jsxs)(d9,{value:i,tabIndex:r,className:(0,em.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,y.jsx)(pH,{value:"system",children:(0,y.jsx)(ls,{className:n,sideOffset:16,content:"System",children:(0,y.jsx)(lc.$Iz,{})})}),(0,y.jsx)(pH,{value:"light",children:(0,y.jsx)(ls,{className:n,sideOffset:16,content:"Light",children:(0,y.jsx)(lc.JaG,{})})}),(0,y.jsx)(pH,{value:"dark",children:(0,y.jsx)(ls,{className:n,sideOffset:16,content:"Dark",children:(0,y.jsx)(lc.osk,{})})})]})}var pW=n(74424);function pq(e){let{title:t,children:n,rootClassName:r,className:i,message:o,showBorderInactive:a,...s}=e,{getRootProps:l,getInputProps:u,isDragActive:c}=(0,pW.uI)(s);return(0,y.jsxs)("div",{...l(),className:(0,em.cx)("outline-none",r),children:[(0,y.jsxs)("div",{className:(0,em.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",a?["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,y.jsx)("input",{...u()}),o&&(0,y.jsx)(t2,{size:"14",children:t||"Drop your files here or click to to open the file picker."})]}),n]})}var p$=n(14582),pK=n(63739),pY=n(13980),pG=n.n(pY),pX=n(72779),pJ=n.n(pX),pQ=n(47440),p0=n(59309),p1=n(19067),p2=n(71220),p4=n(28142);function p3(e){return"bandwidth"in e?e.bandwidth():0}var p5=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function p6(){return(p6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,p5),g=null!=m?m:(0,p2.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+p3(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,p4.Z)(r(e)))?n:0)+y;return{index:t,from:new p1.Z({x:0,y:o}),to:new p1.Z({x:i,y:o})}});return x.createElement(p0.Z,{className:pJ()("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 x.createElement(pQ.default,p6({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}p8.propTypes={tickValues:pG().array,width:pG().number.isRequired};var p7=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function p9(){return(p9=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,p7),g=null!=p?p:(0,p2.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+p3(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,p4.Z)(r(e)))?n:0)+y;return{index:t,from:new p1.Z({x:o,y:0}),to:new p1.Z({x:o,y:i})}});return x.createElement(p0.Z,{className:pJ()("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 x.createElement(pQ.default,p9({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}me.propTypes={tickValues:pG().array,height:pG().number.isRequired};var mt=n(64183),mn=n(8597);function mr(e){var t=e.id,n=e.width,r=e.height,i=e.children;return x.createElement("defs",null,x.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}mr.propTypes={id:pG().string.isRequired,width:pG().number.isRequired,height:pG().number.isRequired,children:pG().node.isRequired};var mi={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function mo(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 x.createElement(mr,{id:t,width:n,height:r},!!h&&x.createElement("rect",{className:pJ()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return x.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:pJ()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case mi.horizontal:return"M 0,"+t/2+" l "+t+",0";case mi.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 mi.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 mi.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}mo.propTypes={id:pG().string.isRequired,width:pG().number.isRequired,height:pG().number.isRequired,className:pG().string,background:pG().string,stroke:pG().string,strokeWidth:pG().oneOfType([pG().number,pG().string]),strokeDasharray:pG().oneOfType([pG().string,pG().number]),strokeLinecap:pG().oneOf(["square","butt","round","inherit"]),shapeRendering:pG().oneOfType([pG().string,pG().number]),orientation:pG().array};var ma=["tooltipOpen"];function ms(){return(ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ml);return x.createElement("div",mu({ref:t,className:pJ()("visx-tooltip",n),style:mu({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function mf(){return(mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mg),g=!1,y=!1;if(u&&l){var b=void 0===r?0:r,w=void 0===f?0:f;if(l.width){var j=b+o+u.width-l.width,E=u.width-b-o;g=j>0&&j>E}else{var k=b+o+u.width-window.innerWidth,S=u.width-b-o;g=k>0&&k>S}if(l.height){var _=w+s+u.height-l.height,C=u.height-w-s;y=_>0&&_>C}else y=w+s+u.height>window.innerHeight;b=g?b-u.width-o:b+o,w=y?w-u.height-s:w+s,t="translate("+(b=Math.round(b))+"px, "+(w=Math.round(w))+"px)"}return x.createElement(md,my({ref:m,style:my({left:0,top:0,transform:t},!p&&d)},v),x.createElement(mv,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},n))}mx.propTypes={nodeRef:pG().oneOfType([pG().string,pG().func,pG().object])};var mb=((Ey=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=x.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,mh(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:to.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():mp,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():mp}},n.render=function(){return x.createElement(mx,mf({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(x.PureComponent)).displayName="withBoundingRects("+(mx.displayName||"")+")",Ey),mw=n(99985);function mj(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 mA({},t,{isBrushing:!0,extent:mA({},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=mA({},e,{isBrushing:!1,start:mA({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:mA({},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,mP(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 x.createElement(mw.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 x.createElement("g",null,h&&x.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:mN}),x.createElement("rect",mA({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}(x.Component);function mD(){return(mD=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 mD({},e,{isBrushing:!0,extent:mD({},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 mD({},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=mD({},c);r&&r(c),n.updateBrush(function(t){return mD({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?mk(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 mD({},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=mD({},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=mD({},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,mL(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,w=this.state.brushingType,j=this.handles(),E=this.corners(),k=this.getBrushWidth(),S=this.getBrushHeight(),_=new Set(p);return x.createElement(p0.Z,{className:"visx-brush",top:o,left:a},x.createElement(mw.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===w:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return x.createElement(p$.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,mH),g=o,y=s,b=a,w=l;return void 0!==m&&!m||g||y||b||w||(g="0",y="0",b="0",w="1"),x.createElement("defs",null,x.createElement("linearGradient",mU({id:n,x1:g,y1:b,x2:y,y2:w,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&x.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&x.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}mW.propTypes={id:pG().string.isRequired,from:pG().string,to:pG().string,x1:pG().oneOfType([pG().string,pG().number]),x2:pG().oneOfType([pG().string,pG().number]),y1:pG().oneOfType([pG().string,pG().number]),y2:pG().oneOfType([pG().string,pG().number]),fromOffset:pG().oneOfType([pG().string,pG().number]),fromOpacity:pG().oneOfType([pG().string,pG().number]),toOffset:pG().oneOfType([pG().string,pG().number]),toOpacity:pG().oneOfType([pG().string,pG().number]),rotate:pG().oneOfType([pG().string,pG().number]),transform:pG().string,children:pG().node,vertical:pG().bool};var mq=n(78307),m$=n(74747);function mK(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 mY=n(12436),mG=n.n(mY),mX=n(55746),mJ=n(45742),mQ=n(27266),m0=["id","markerWidth","markerHeight","markerUnits","children"];function m1(){return(m1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m0);return x.createElement("defs",null,x.createElement("marker",m1({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}m2.propTypes={id:pG().string.isRequired,size:pG().number,markerWidth:pG().oneOfType([pG().string,pG().number]),markerHeight:pG().oneOfType([pG().string,pG().number]),markerUnits:pG().string,refX:pG().oneOfType([pG().string,pG().number]),refY:pG().oneOfType([pG().string,pG().number]),strokeWidth:pG().number,children:pG().node.isRequired};var m4=["id","size","strokeWidth"];function m3(){return(m3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m4),s=2*r+o,l=s/2;return x.createElement(m2,m3({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),x.createElement("circle",{r:r,cx:l,cy:l}))}var m6=n(64170),m8={top:"top",left:"left",bottom:"bottom"};function m7(){return(m7=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,va),k=null!=g?g:"tickFormat"in v?v.tickFormat():vr.Z,S=h===m8.left,_=h===m8.top,C=_||h===m8.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}(v),M=S||_?-1:1,T=v.range(),A=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:vo({start:0,end:0},t)),P=vi({x:Number(T[0])+.5-A.start,y:0},C),N=vi({x:Number(T[T.length-1])+.5+A.end,y:0},C),R=(null!=w?w:(0,p2.Z)(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),D=R.map(function(e){var t=e.value,n=e.index,r=(0,p4.Z)(O(t));return{value:t,index:n,from:vi({x:r,y:0},C),to:vi({x:r,y:b*M},C),formattedValue:k(t,n,R)}});return x.createElement(p0.Z,{className:pJ()("visx-axis",i),top:void 0===j?0:j,left:void 0===u?0:u},r(vs({},E,{axisFromPoint:P,axisToPoint:N,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:C,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:k,tickLength:b,tickPosition:O,tickSign:M,ticks:D})))}var vu=["axisClassName","labelOffset","tickLabelProps","tickLength"];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);return x.createElement(vl,vc({axisClassName:pJ()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:m8.bottom,tickLabelProps:void 0===r?vd:r,tickLength:void 0===i?8:i},o))}var vh=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vp(){return(vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vh);return x.createElement(vl,vp({axisClassName:pJ()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:m8.left,tickLabelProps:void 0===r?vm:r,tickLength:void 0===i?8:i},o))}let vg=e=>new Date((null==e?void 0:e.timestamp)||0),vy=e=>(null==e?void 0:e.value)||0,vx="var(--colors-hiContrast)",vb={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:vx},vw={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:vx};function vj(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,y.jsxs)(p0.Z,{left:d||o.left,top:c||o.top,children:[(0,y.jsx)(m5,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,y.jsx)(mW,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,y.jsx)(mX.Z,{data:t,x:e=>a(vg(e))||0,y:e=>s(vy(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?mJ.ZP:mQ.Z}),!l&&(0,y.jsx)(vf,{top:i,scale:a,numTicks:r>520?10:5,stroke:vx,tickStroke:vx,tickLabelProps:()=>vb}),!u&&(0,y.jsx)(vv,{scale:s,numTicks:5,stroke:vx,tickStroke:vx,tickLabelProps:()=>vw}),h]})}var vE=n(6692);let vk={inherit:vE.inherit,current:vE.current,transparent:vE.transparent,black:vE.black,white:vE.white,slate:vE.slate,zinc:vE.zinc,neutral:vE.neutral,stone:vE.stone,red:vE.red,orange:vE.orange,amber:vE.amber,yellow:vE.yellow,lime:vE.lime,green:vE.green,emerald:vE.emerald,teal:vE.teal,cyan:vE.cyan,sky:vE.sky,blue:vE.blue,indigo:vE.indigo,violet:vE.violet,purple:vE.purple,fuchsia:vE.fuchsia,pink:vE.pink,rose:vE.rose,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 vS=n(96206);let v_={top:10,bottom:15,left:10,right:10},vC="brush_pattern",vO="brush_gradient",vM=mG()(e=>e(),15),vT=(0,mq.Z)(e=>new Date((null==e?void 0:e.timestamp)||0)).left;void 0===Ex&&(Ex={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===Eb&&(Eb=function(e,t){return x.createElement("div",t,e)});var vA=n(70390),vP=n(3440),vN=n.n(vP);function vR(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:b,enableTooltipGlyph:w,renderTooltipGlyph:j,renderLineSeries:E,sharedTooltip:k,showHorizontalCrosshair:S,showTooltip:_,showVerticalCrosshair:C,snapTooltipToDatum:O,stackOffset:M,margin:T,theme:A,xAxisOrientation:P,yAxisOrientation:N,AreaSeries:R,AreaStack:D,Axis:L,BarGroup:F,BarSeries:z,BarStack:V,Grid:I,LineSeries:Z,Tooltip:B,XYChart:H}=e;return(0,y.jsxs)(H,{theme:A.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:T,captureEvents:!0,children:[(0,y.jsx)("g",{children:(0,y.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,y.jsx)(mW,{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,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(mo,{id:"pattern-".concat(vD(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,y.jsx)(mW,{id:"gradient-".concat(vD(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,y.jsx)(I,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),b&&(0,y.jsx)(V,{offset:M,children:c.map(e=>(0,y.jsx)(z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vL(t,e,l)},e))}),g&&(0,y.jsx)(F,{children:c.map(e=>(0,y.jsx)(z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vL(t,e,l)},e))}),m&&(0,y.jsx)(y.Fragment,{children:c.map(e=>(0,y.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vL(t,e,l),fill:vL(t,e,l),curve:a},e))}),v&&(0,y.jsx)(D,{curve:a,offset:M,renderLine:"wiggle"!==M,children:c.map(e=>(0,y.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vL(t,e,l),fill:vL(t,e,l)},e))}),E&&(0,y.jsx)(y.Fragment,{children:c.map(e=>{var t,n;return(0,y.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:a},e)})}),(0,y.jsx)(L,{orientation:P,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,vS.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:A.labels.color,fontFamily:A.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,y.jsx)(L,{label:null==M?"SC":"expand"===M?"Fraction of total":"",orientation:N,numTicks:p,tickLength:0,rangePadding:0,animationTrajectory:o,tickFormat:()=>""},"temp-axis-".concat(o)),_&&(0,y.jsx)(B,{showHorizontalCrosshair:S,showVerticalCrosshair:C,snapTooltipToDatumX:O,snapTooltipToDatumY:O,showDatumGlyph:O&&!g,showSeriesGlyphs:k&&!g,renderGlyph:w?j: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=k?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,vS.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=vN()(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,y.jsxs)("div",{className:(0,em.cx)(lo,"flex flex-col gap-2 py-1"),children:[(0,y.jsx)(t1,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,y.jsx)(cF,{color:"panel",className:"w-full"}),(0,y.jsx)("div",{className:(0,em.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;return(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,y.jsx)(t1,{weight:"semibold",children:t}),(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,s;let{key:u}=e,c=o&&i.y[u](o);return(0,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(t1,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[u])||void 0===t?void 0:t.color},className:(0,em.cx)(a===u?"underline":""),children:(null===(s=l.data)||void 0===s?void 0:null===(r=s[u])||void 0===r?void 0:r.label)||u}),(0,y.jsx)(t1,{size:"12",style:{textAlign:"end"},className:(0,em.cx)(a===u?"underline":""),children:null==c||Number.isNaN(c)?"–":l.format(c)})]},u)}),n.length>1&&f&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{className:"pt-2",children:"total"}),(0,y.jsx)(t1,{size:"12",weight:"bold",className:"pt-2 text-end",children:l.format(r)})]})]})]},t)})})]})}})]})}function vD(e,t){return"".concat(e,"-").concat(t)}function vL(e,t,n){var r;let i=vD(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 vF=n(24037),vz=n(86707);function vV(e){var t=e.top,n=e.left,r=e.className,i=e.children;return x.createElement(p0.Z,{className:pJ()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}vV.propTypes={top:pG().number,left:pG().number,className:pG().string,children:pG().node};var vI=["children","className","top","left","size"];function vZ(){return(vZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vI),s=(0,vF.Z)();return(s.type(vz.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?x.createElement(x.Fragment,null,t({path:s})):x.createElement(vV,{top:r,left:i},x.createElement("path",vZ({className:pJ()("visx-glyph-star",n),d:s()||""},a)))}vB.propTypes={children:pG().func,className:pG().string,top:pG().number,left:pG().number,size:pG().oneOfType([pG().number,pG().func])};var vH=["top","left","className"];function vU(){return(vU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vH);return x.createElement(vV,{top:void 0===t?0:t,left:void 0===n?0:n},x.createElement("circle",vU({className:pJ()("visx-glyph-dot",r)},i)))}vW.propTypes={className:pG().string,top:pG().number,left:pG().number,r:pG().number,cx:pG().number,cy:pG().number};var vq=n(9135),v$=["children","className","top","left","size"];function vK(){return(vK=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v$),s=(0,vF.Z)();return(s.type(vq.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?x.createElement(x.Fragment,null,t({path:s})):x.createElement(vV,{top:r,left:i},x.createElement("path",vK({className:pJ()("visx-glyph-cross",n),d:s()||""},a)))}vY.propTypes={children:pG().func,className:pG().string,top:pG().number,left:pG().number,size:pG().oneOfType([pG().number,pG().func])};var vG=n(46385),vX=n(20651),vJ={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"]},vQ=vJ.gray,v0=vQ[7],v1=[vJ.cyan[9],vJ.cyan[3],vJ.yellow[5],vJ.red[4],vJ.grape[8],vJ.grape[5],vJ.pink[9]];function v2(){return(v2=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)v8(e,n,{get:t[n],enumerable:!0})})(v7,{assign:()=>gT,colors:()=>gC,createStringInterpolator:()=>EE,skipAnimation:()=>gO,to:()=>Ek,willAdvance:()=>gM});var v9=gm(),ge=e=>gd(e,v9),gt=gm();ge.write=e=>gd(e,gt);var gn=gm();ge.onStart=e=>gd(e,gn);var gr=gm();ge.onFrame=e=>gd(e,gr);var gi=gm();ge.onFinish=e=>gd(e,gi);var go=[];ge.setTimeout=(e,t)=>{let n=ge.now()+t,r=()=>{let e=go.findIndex(e=>e.cancel==r);~e&&go.splice(e,1),gu-=~e?1:0},i={time:n,handler:e,cancel:r};return go.splice(ga(n),0,i),gu+=1,gf(),i};var ga=e=>~(~go.findIndex(t=>t.time>e)||~go.length);ge.cancel=e=>{gn.delete(e),gr.delete(e),gi.delete(e),v9.delete(e),gt.delete(e)},ge.sync=e=>{gc=!0,ge.batchedUpdates(e),gc=!1},ge.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,ge.onStart(n)}return r.handler=e,r.cancel=()=>{gn.delete(n),t=null},r};var gs="undefined"!=typeof window?window.requestAnimationFrame:()=>{};ge.use=e=>gs=e,ge.now="undefined"!=typeof performance?()=>performance.now():Date.now,ge.batchedUpdates=e=>e(),ge.catch=console.error,ge.frameLoop="always",ge.advance=()=>{"demand"!==ge.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):gp()};var gl=-1,gu=0,gc=!1;function gd(e,t){gc?(t.delete(e),e(0)):(t.add(e),gf())}function gf(){gl<0&&(gl=0,"demand"!==ge.frameLoop&&gs(gh))}function gh(){~gl&&(gs(gh),ge.batchedUpdates(gp))}function gp(){let e=gl;gl=ge.now();let t=ga(gl);if(t&&(gv(go.splice(0,t),e=>e.handler()),gu-=t),!gu){gl=-1;return}gn.flush(),v9.flush(e?Math.min(64,gl-e):16.667),gr.flush(),gt.flush(),gi.flush()}function gm(){let e=new Set,t=e;return{add(n){gu+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(gu-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,gu-=t.size,gv(t,t=>t(n)&&e.add(t)),gu+=e.size,t=e)}}}function gv(e,t){e.forEach(e=>{try{t(e)}catch(e){ge.catch(e)}})}function gg(){}var gy=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),gx={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 gb(e,t){if(gx.arr(e)){if(!gx.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function gj(e,t,n){if(gx.arr(e)){for(let r=0;rgx.und(e)?[]:gx.arr(e)?e:[e];function gk(e,t){if(e.size){let n=Array.from(e);e.clear(),gw(n,t)}}var gS=(e,...t)=>gk(e,e=>e(...t)),g_=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),gC=null,gO=!1,gM=gg,gT=e=>{e.to&&(Ek=e.to),e.now&&(ge.now=e.now),void 0!==e.colors&&(gC=e.colors),null!=e.skipAnimation&&(gO=e.skipAnimation),e.createStringInterpolator&&(EE=e.createStringInterpolator),e.requestAnimationFrame&&ge.use(e.requestAnimationFrame),e.batchedUpdates&&(ge.batchedUpdates=e.batchedUpdates),e.willAdvance&&(gM=e.willAdvance),e.frameLoop&&(ge.frameLoop=e.frameLoop)},gA=new Set,gP=[],gN=[],gR=0,gD={get idle(){return!gA.size&&!gP.length},start(e){gR>e.priority?(gA.add(e),ge.onStart(gL)):(gF(e),ge(gV))},advance:gV,sort(e){if(gR)ge.onFrame(()=>gD.sort(e));else{let t=gP.indexOf(e);~t&&(gP.splice(t,1),gz(e))}},clear(){gP=[],gA.clear()}};function gL(){gA.forEach(gF),gA.clear(),ge(gV)}function gF(e){gP.includes(e)||gz(e)}function gz(e){gP.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(gP,t=>t.priority>e.priority),0,e)}function gV(e){let t=gN;for(let n=0;n0}var gI="[-+]?\\d*\\.?\\d+",gZ=gI+"%";function gB(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var gH=RegExp("rgb"+gB(gI,gI,gI)),gU=RegExp("rgba"+gB(gI,gI,gI,gI)),gW=RegExp("hsl"+gB(gI,gZ,gZ)),gq=RegExp("hsla"+gB(gI,gZ,gZ,gI)),g$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gK=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gY=/^#([0-9a-fA-F]{6})$/,gG=/^#([0-9a-fA-F]{8})$/;function gX(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 gJ(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=gX(i,r,e+1/3),a=gX(i,r,e),s=gX(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function gQ(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function g0(e){let t=parseFloat(e);return(t%360+360)%360/360}function g1(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function g2(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function g4(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gY.exec(e))?parseInt(t[1]+"ff",16)>>>0:gC&&void 0!==gC[e]?gC[e]:(t=gH.exec(e))?(gQ(t[1])<<24|gQ(t[2])<<16|gQ(t[3])<<8|255)>>>0:(t=gU.exec(e))?(gQ(t[1])<<24|gQ(t[2])<<16|gQ(t[3])<<8|g1(t[4]))>>>0:(t=g$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=gG.exec(e))?parseInt(t[1],16)>>>0:(t=gK.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gW.exec(e))?(255|gJ(g0(t[1]),g2(t[2]),g2(t[3])))>>>0:(t=gq.exec(e))?(gJ(g0(t[1]),g2(t[2]),g2(t[3]))|g1(t[4]))>>>0:null;if(null===n)return e;n=n||0;let r=(4278190080&n)>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var g3=(e,t,n)=>{if(gx.fun(e))return e;if(gx.arr(e))return g3({range:e,output:t,extrapolate:n});if(gx.str(e.output[0]))return EE(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)}},g5=Symbol.for("FluidValue.get"),g6=Symbol.for("FluidValue.observers"),g8=e=>!!(e&&e[g5]),g7=e=>e&&e[g5]?e[g5]():e,g9=e=>e[g6]||null;function ye(e,t){let n=e[g6];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var yt=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");yn(this,e)}},yn=(e,t)=>yo(e,g5,t);function yr(e,t){if(e[g5]){let n=e[g6];n||yo(e,g6,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function yi(e,t){let n=e[g6];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[g6]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var yo=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ya=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ys=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yl=RegExp(`(${ya.source})(%|[a-z]+)`,"i"),yu=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,yc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,yd=e=>{let[t,n]=yf(e);if(!t||g_())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&&yc.test(n))return yd(n);else if(n)return n;return e},yf=e=>{let t=yc.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},yh=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,yp=e=>{ES||(ES=gC?RegExp(`(${Object.keys(gC).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>g7(e).replace(yc,yd).replace(ys,g4).replace(ES,g4)),n=t.map(e=>e.match(ya).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]})),i=r.map(t=>g3({...e,output:t}));return e=>{let n=!yl.test(t[0])&&t.find(e=>yl.test(e))?.replace(ya,""),r=0;return t[0].replace(ya,()=>`${i[r++](e)}${n||""}`).replace(yu,yh)}},ym="react-spring: ",yv=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${ym}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},yg=yv(console.warn),yy=yv(console.warn);function yx(e){return gx.str(e)&&("#"==e[0]||/\d/.test(e)||!g_()&&yc.test(e)||e in(gC||{}))}var yb=g_()?x.useEffect:x.useLayoutEffect,yw=()=>{let e=(0,x.useRef)(!1);return yb(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function yj(){let e=(0,x.useState)()[1],t=yw();return()=>{t.current&&e(Math.random())}}var yE=e=>(0,x.useEffect)(e,yk),yk=[];function yS(e){let t=(0,x.useRef)();return(0,x.useEffect)(()=>{t.current=e}),t.current}var y_=Symbol.for("Animated:node"),yC=e=>!!e&&e[y_]===e,yO=e=>e&&e[y_],yM=(e,t)=>gy(e,y_,t),yT=e=>e&&e[y_]&&e[y_].getPayload(),yA=class{constructor(){yM(this,this)}getPayload(){return this.payload||[]}},yP=class extends yA{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,gx.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yP(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return gx.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,gx.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},yN=class extends yP{constructor(e){super(0),this._string=null,this._toString=g3({output:[e,e]})}static create(e){return new yN(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(gx.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=g3({output:[this.getValue(),e]})),this._value=0,super.reset()}},yR={dependencies:null},yD=class extends yA{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return gj(this.source,(n,r)=>{yC(n)?t[r]=n.getValue(e):g8(n)?t[r]=g7(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&gw(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return gj(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yR.dependencies&&g8(e)&&yR.dependencies.add(e);let t=yT(e);t&&gw(t,e=>this.add(e))}},yL=class extends yD{constructor(e){super(e)}static create(e){return new yL(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(yF)),!0)}};function yF(e){let t=yx(e)?yN:yP;return t.create(e)}function yz(e){let t=yO(e);return t?t.constructor:gx.arr(e)?yL:yx(e)?yN:yP}var yV=(e,t)=>{let n=!gx.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,x.forwardRef)((r,i)=>{let o=(0,x.useRef)(null),a=n&&(0,x.useCallback)(e=>{o.current=(i&&(gx.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return yR.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yD(e),yR.dependencies=null,[e,n]}(r,t),u=yj(),c=()=>{let e=o.current;if(n&&!e)return;let r=!!e&&t.applyAnimatedValues(e,s.getValue(!0));!1===r&&u()},d=new yI(c,l),f=(0,x.useRef)();yb(()=>(f.current=d,gw(l,e=>yr(e,d)),()=>{f.current&&(gw(f.current.deps,e=>yi(e,f.current)),ge.cancel(f.current.update))})),(0,x.useEffect)(c,[]),yE(()=>()=>{let e=f.current;gw(e.deps,t=>yi(t,e))});let h=t.getComponentProps(s.getValue());return x.createElement(e,{...h,ref:a})})},yI=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&ge.write(this.update)}},yZ=Symbol.for("AnimatedComponent"),yB=e=>gx.str(e)?e:e&&gx.str(e.displayName)?e.displayName:gx.fun(e)&&e.name||null;function yH(e,...t){return gx.fun(e)?e(...t):e}var yU=(e,t)=>!0===e||!!(t&&e&&(gx.fun(e)?e(t):gE(e).includes(t))),yW=(e,t)=>gx.obj(e)?t&&e[t]:e,yq=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,y$=e=>e,yK=(e,t=y$)=>{let n=yY;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);gx.und(n)||(r[i]=n)}return r},yY=["config","onProps","onStart","onChange","onPause","onResume","onRest"],yG={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 yX(e){let t=function(e){let t={},n=0;if(gj(e,(e,r)=>{!yG[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return gj(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function yJ(e){return e=g7(e),gx.arr(e)?e.map(yJ):yx(e)?v7.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yQ(e){for(let t in e)return!0;return!1}function y0(e){return gx.fun(e)||gx.arr(e)&&gx.obj(e[0])}function y1(e,t){e.ref?.delete(e),t?.delete(e)}function y2(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var y4={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},y3=class{constructor(){this.velocity=0,Object.assign(this,y4)}};function y5(e,t){if(gx.und(t.decay)){let n=!gx.und(t.tension)||!gx.und(t.friction);!n&&gx.und(t.frequency)&&gx.und(t.damping)&&gx.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var y6=[],y8=class{constructor(){this.changed=!1,this.values=y6,this.toValues=null,this.fromValues=y6,this.config=new y3,this.immediate=!1}};function y7(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=yU(n.cancel??r?.cancel,t);if(c)h();else{gx.und(n.pause)||(i.paused=yU(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||yU(e,t)),l=yH(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-ge.now()}function f(){l>0&&!v7.skipAnimation?(i.delayed=!0,u=ge.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 y9=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?xn(e.get()):t.every(e=>e.noop)?xe(e.get()):xt(e.get(),t.every(e=>e.finished)),xe=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),xt=(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=yK(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&&xt(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new xo,a=new xa;return(async()=>{if(v7.skipAnimation)throw xi(n),a.result=xt(r,!1),c(a),a;p(o);let s=gx.obj(e)?{...e}:{...t,to:e};s.parentId=i,gj(f,(e,t)=>{gx.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(v7.skipAnimation)return xi(n),xt(r,!1);try{let t;t=gx.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=xt(r.get(),!0,!1)}catch(e){if(e instanceof xo)d=e.result;else if(e instanceof xa)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 gx.fun(a)&&ge.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function xi(e,t){gk(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xo=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.")}},xa=class extends Error{constructor(){super("SkipAnimationSignal")}},xs=e=>e instanceof xu,xl=1,xu=class extends yt{constructor(){super(...arguments),this.id=xl++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=yO(this);return e&&e.getValue()}to(...e){return v7.to(this,e)}interpolate(...e){return yg(`${ym}The "interpolate" function is deprecated in v9 (use "to" instead)`),v7.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){ye(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||gD.sort(this),ye(this,{type:"priority",parent:this,priority:e})}},xc=Symbol.for("SpringPhase"),xd=e=>(1&e[xc])>0,xf=e=>(2&e[xc])>0,xh=e=>(4&e[xc])>0,xp=(e,t)=>t?e[xc]|=3:e[xc]&=-3,xm=(e,t)=>t?e[xc]|=4:e[xc]&=-5,xv=class extends xu{constructor(e,t){if(super(),this.animation=new y8,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,!gx.und(e)||!gx.und(t)){let n=gx.obj(e)?{...e}:{...t,from:e};gx.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(xf(this)||this._state.asyncTo)||xh(this)}get goal(){return g7(this.animation.to)}get velocity(){let e=yO(this);return e instanceof yP?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return xd(this)}get isAnimating(){return xf(this)}get isPaused(){return xh(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=yT(r.to);!a&&g8(r.to)&&(i=gE(g7(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==yN?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=gx.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(gx.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=!gx.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),n=-(.001*o.friction)*t,i=(e+n)/o.mass;t+=1*i,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=yO(this),l=s.getValue();if(t){let e=g7(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 ge.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(xf(this)){let{to:e,config:t}=this.animation;ge.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){let t=this.queue||(this.queue=[]);return t.push(e),this}start(e,t){let n;return gx.und(e)?(n=this.queue||[],this.queue=[]):n=[gx.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>{let t=this._update(e);return t})).then(e=>y9(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),xi(this._state,e&&this._lastCallId),ge.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=gx.obj(n)?n[t]:n)||y0(n))&&(n=void 0),null==(r=gx.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return xd(this)||(e.reverse&&([n,r]=[r,n]),r=g7(r),gx.und(r)?yO(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yK(e,(e,t)=>/^on/.test(t)?yW(e,n):e)),xj(this,e,"onProps"),xE(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 y7(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{xh(this)||(xm(this,!0),gS(o.pauseQueue),xE(this,"onPause",xt(this,xg(this,this.animation.to)),this))},resume:()=>{xh(this)&&(xm(this,!1),xf(this)&&this._resume(),gS(o.resumeQueue),xE(this,"onResume",xt(this,xg(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=xy(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=!gx.und(e.to),i=!gx.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||gx.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!gb(d,u);f&&(s.from=d),d=g7(d);let h=!gb(c,l);h&&this._focus(c);let p=y0(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&&(y5(n={...n},t),t={...n,...t}),y5(e,t),Object.assign(e,t),y4)null==e[r]&&(e[r]=y4[r]);let{frequency:r,damping:i}=e,{mass:o}=e;gx.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,yH(t.config,o),t.config!==a.config?yH(a.config,o):void 0);let y=yO(this);if(!y||gx.und(c))return n(xt(this,!0));let x=gx.und(t.reset)?i&&!t.default:!gx.und(d)&&yU(t.reset,o),b=x?d:this.get(),w=yJ(c),j=gx.num(w)||gx.arr(w)||yx(w),E=!p&&(!j||yU(a.immediate||t.immediate,o));if(h){let e=yz(c);if(e!==y.constructor){if(E)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=g8(c),_=!1;if(!S){let e=x||!xd(this)&&f;(h||e)&&(S=!(_=gb(yJ(b),w))),(gb(s.immediate,E)||E)&&gb(m.decay,v)&&gb(m.velocity,g)||(S=!0)}if(_&&xf(this)&&(s.changed&&!x?S=!0:S||this._stop(l)),!p&&((S||g8(l))&&(s.values=y.getPayload(),s.toValues=g8(c)?null:k==yN?[1]:gE(w)),s.immediate==E||(s.immediate=E,E||x||this._set(l)),S)){let{onRest:e}=s;gw(xw,e=>xj(this,t,e));let r=xt(this,xg(this,l));gS(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&ge.batchedUpdates(()=>{s.changed=!x,e?.(r,this),x?yH(a.onRest,r):s.onStart?.(r,this)})}x&&this._set(b),p?n(xr(t.to,t,this._state,this)):S?this._start():xf(this)&&!h?this._pendingCalls.add(n):n(xe(b))}_focus(e){let t=this.animation;e!==t.to&&(g9(this)&&this._detach(),t.to=e,g9(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;g8(t)&&(yr(t,this),xs(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;g8(e)&&yi(e,this)}_set(e,t=!0){let n=g7(e);if(!gx.und(n)){let e=yO(this);if(!e||!gb(n,e.getValue())){let r=yz(n);e&&e.constructor==r?e.setValue(n):yM(this,r.create(n)),e&&ge.batchedUpdates(()=>{this._onChange(n,t)})}}return yO(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,xE(this,"onStart",xt(this,xg(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yH(this.animation.onChange,e,this)),yH(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;yO(this).reset(g7(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),xf(this)||(xp(this,!0),xh(this)||this._resume())}_resume(){v7.skipAnimation?this.finish():gD.start(this)}_stop(e,t){if(xf(this)){xp(this,!1);let n=this.animation;gw(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),ye(this,{type:"idle",parent:this});let r=t?xn(this.get()):xt(this.get(),xg(this,e??n.to));gS(this._pendingCalls,r),n.changed&&(n.changed=!1,xE(this,"onRest",r,this))}}};function xg(e,t){let n=yJ(t),r=yJ(e.get());return gb(r,n)}function xy(e,t=e.loop,n=e.to){let r=yH(t);if(r){let i=!0!==r&&yX(r),o=(i||e).reverse,a=!i||i.reset;return xx({...e,loop:t,default:!1,pause:void 0,to:!o||y0(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function xx(e){let{to:t,from:n}=e=yX(e),r=new Set;return gx.obj(t)&&xb(t,r),gx.obj(n)&&xb(n,r),e.keys=r.size?Array.from(r):null,e}function xb(e,t){gj(e,(e,n)=>null!=e&&t.add(n))}var xw=["onStart","onRest","onChange","onPause","onResume"];function xj(e,t,n){e.animation[n]=t[n]!==yq(t,n)?yW(t[n],e.key):void 0}function xE(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var xk=["onStart","onChange","onRest"],xS=1,x_=class{constructor(e,t){this.id=xS++,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];gx.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(xx(e)),this}start(e){let{queue:t}=this;return(e?t=gE(e).map(xx):this.queue=[],this._flush)?this._flush(this,t):(xN(this,t),xC(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;gw(gE(t),t=>n[t].stop(!!e))}else xi(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(gx.und(e))this.start({pause:!0});else{let t=this.springs;gw(gE(e),e=>t[e].pause())}return this}resume(e){if(gx.und(e))this.start({pause:!1});else{let t=this.springs;gw(gE(e),e=>t[e].resume())}return this}each(e){gj(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,gk(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&&gk(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,gk(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)}ge.onFrame(this._onFrame)}};function xC(e,t){return Promise.all(t.map(t=>xO(e,t))).then(t=>y9(e,t))}async function xO(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=gx.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=gx.arr(i)||gx.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):gw(xk,n=>{let r=t[n];if(gx.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,gS(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===yq(t,"cancel");(c||h&&d.asyncId)&&f.push(y7(++e._lastAsyncId,{props:t,state:d,actions:{pause:gg,resume:gg,start(t,n){h?(xi(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=y9(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=xy(t,a,i);if(n)return xN(e,[n]),xO(e,n,!0)}return l&&ge.batchedUpdates(()=>l(p,e,e.item)),p}function xM(e,t){let n={...e.springs};return t&&gw(gE(t),e=>{gx.und(e.keys)&&(e=xx(e)),gx.obj(e.to)||(e={...e,to:void 0}),xP(n,e,e=>xA(e))}),xT(e,n),n}function xT(e,t){gj(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,yr(t,e))})}function xA(e,t){let n=new xv;return n.key=e,t&&yr(n,t),n}function xP(e,t,n){t.keys&&gw(t.keys,r=>{let i=e[r]||(e[r]=n(r));i._prepareNode(t)})}function xN(e,t){gw(t,t=>{xP(e.springs,t,t=>xA(t,e))})}var xR=({children:e,...t})=>{let n=(0,x.useContext)(xD),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,x.useState)(()=>({inputs:t,result:e()})),r=(0,x.useRef)(),i=r.current,o=i;if(o){let n=!!(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}=xD;return x.createElement(o,{value:t},e)},xD=(Object.assign(xR,x.createContext({})),xR.Provider._context=xR,xR.Consumer._context=xR,xR);xR.Provider=xD.Provider,xR.Consumer=xD.Consumer;var xL=()=>{let e=[],t=function(t){yy(`${ym}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 gw(e,(e,i)=>{if(gx.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 gw(e,e=>e.pause(...arguments)),this},t.resume=function(){return gw(e,e=>e.resume(...arguments)),this},t.set=function(t){gw(e,(e,n)=>{let r=gx.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return gw(e,(e,r)=>{if(gx.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 gw(e,e=>e.stop(...arguments)),this},t.update=function(t){return gw(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return gx.fun(e)?e(n,t):e};return t._getProps=n,t};function xF(e,t){let n=gx.fun(e),[[r],i]=function(e,t,n){let r=gx.fun(t)&&t;r&&!n&&(n=[]);let i=(0,x.useMemo)(()=>r||3==arguments.length?xL():void 0,[]),o=(0,x.useRef)(0),a=yj(),s=(0,x.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=xM(e,t),r=o.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t]);return r?xC(e,t):new Promise(r=>{xT(e,n),s.queue.push(()=>{r(xC(e,t))}),a()})}}),[]),l=(0,x.useRef)([...s.ctrls]),u=[],c=yS(e)||0;function d(e,n){for(let i=e;i{gw(l.current.slice(e,c),e=>{y1(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,x.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>xM(e,u[t])),h=(0,x.useContext)(xR),p=yS(h),m=h!==p&&yQ(h);yb(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],gw(e,e=>e())),gw(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(y2(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),yE(()=>()=>{gw(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 xz(e,t,n){let r=gx.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,x.useMemo)(()=>r||3==arguments.length?xL():void 0,[]),h=gE(e),p=[],m=(0,x.useRef)(null),v=i?null:m.current;yb(()=>{m.current=p}),yE(()=>(gw(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{gw(m.current,e=>{e.expired&&clearTimeout(e.expirationId),y1(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):xV++})}return gx.und(n)?e:gx.fun(n)?e.map(n):gE(n)}(h,r?r():t,v),y=i&&m.current||[];yb(()=>gw(y,({ctrl:e,item:t,key:n})=>{y1(e,f),yH(u,t,n)}));let b=[];if(v&&gw(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=g.indexOf(e.key))&&(p[t]=e)}),gw(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new x_},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;gw(b,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}gx.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let w=-a,j=yj(),E=yK(t),k=new Map,S=(0,x.useRef)(new Map),_=(0,x.useRef)(!1);gw(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=yH(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=yH(i,e.item,n),!(i=gx.obj(i)?yX(i):{to:i}).config){let t=d||E.config;i.config=yH(t,e.item,n,o)}w+=a;let y={...E,delay:p+w,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&gx.und(y.from)){let i=r?r():t,o=gx.und(i.initial)||v?i.from:i.initial;y.from=yH(o,e.item,n)}let{onResolve:x}=y;y.onResolve=e=>{yH(x,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=yH(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(j,r));return}}}e&&t.some(e=>e.expired)&&(S.current.delete(n),l&&(_.current=!0),j())}}};let b=xM(e.ctrl,y);"leave"===o&&l?S.current.set(e,{phase:o,springs:b,payload:y}):k.set(e,{phase:o,springs:b,payload:y})});let C=(0,x.useContext)(xR),O=yS(C),M=C!==O&&yQ(C);yb(()=>{M&&gw(p,e=>{e.ctrl.start({default:C})})},[C]),gw(k,(e,t)=>{if(S.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),yb(()=>{gw(S.current.size?S.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),M&&"enter"==e&&r.start({default:C}),t&&(y2(r,t.ref),(r.ref||f)&&!_.current?r.update(t):(r.start(t),_.current&&(_.current=!1)))})},i?void 0:n);let T=e=>x.createElement(x.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?x.createElement(i.type,{...i.props,key:gx.str(t.key)||gx.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[T,f]:T}var xV=1,xI=class extends xu{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=g3(...t);let n=this._get(),r=yz(n);yM(this,r.create(n))}advance(e){let t=this._get(),n=this.get();gb(t,n)||(yO(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xB(this._active)&&xH(this)}_get(){let e=gx.arr(this.source)?this.source.map(g7):gE(g7(this.source));return this.calc(...e)}_start(){this.idle&&!xB(this._active)&&(this.idle=!1,gw(yT(this),e=>{e.done=!1}),v7.skipAnimation?(ge.batchedUpdates(()=>this.advance()),xH(this)):gD.start(this))}_attach(){let e=1;gw(gE(this.source),t=>{g8(t)&&yr(t,this),xs(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){gw(gE(this.source),e=>{g8(e)&&yi(e,this)}),this._active.clear(),xH(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=gE(this.source).reduce((e,t)=>Math.max(e,(xs(t)?t.priority:0)+1),0))}};function xZ(e){return!1!==e.idle}function xB(e){return!e.size||Array.from(e).every(xZ)}function xH(e){e.idle||(e.idle=!0,gw(yT(e),e=>{e.done=!0}),ye(e,{type:"idle",parent:e}))}var xU=(e,...t)=>new xI(e,t);v7.assign({createStringInterpolator:yp,to:(e,t)=>new xI(e,t)}),gD.advance;var xW=/^--/,xq={},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},xK=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xY=["Webkit","Ms","Moz","O"];x$=Object.keys(x$).reduce((e,t)=>(xY.forEach(n=>e[xK(n,t)]=e[t]),e),x$);var xG=/^(matrix|translate|scale|rotate|skew)/,xX=/^(translate)/,xJ=/^(rotate|skew)/,xQ=(e,t)=>gx.num(e)&&0!==e?e+t:e,x0=(e,t)=>gx.arr(e)?e.every(e=>x0(e,t)):gx.num(e)?e===t:parseFloat(e)===t,x1=class extends yD{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=>xQ(e,"px")).join(",")})`,x0(e,0)])),gj(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(xG.test(t)){if(delete r[t],gx.und(e))return;let n=xX.test(t)?"px":xJ.test(t)?"deg":"";i.push(gE(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${xQ(i,n)})`,x0(i,0)]:e=>[`${t}(${e.map(e=>xQ(e,n)).join(",")})`,x0(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new x2(i,o)),super(r)}},x2=class extends yt{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 gw(this.inputs,(n,r)=>{let i=g7(n[0]),[o,a]=this.transforms[r](gx.arr(i)?i:n.map(g7));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&gw(this.inputs,e=>gw(e,e=>g8(e)&&yr(e,this)))}observerRemoved(e){0==e&&gw(this.inputs,e=>gw(e,e=>g8(e)&&yi(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),ye(this,e)}};v7.assign({batchedUpdates:to.unstable_batchedUpdates,createStringInterpolator:yp,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 x4=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new yD(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=yB(e)||"Anonymous";return(e=gx.str(e)?o[e]||(o[e]=yV(e,i)):e[yZ]||(e[yZ]=yV(e,i))).displayName=`Animated(${t})`,e};return gj(e,(t,n)=>{gx.arr(e)&&(n=yB(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:xq[t]||(xq[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||xW.test(t)||x$.hasOwnProperty(t)&&x$[t]?(""+d).trim():d+"px";xW.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 x1(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,x3=n(23442),x5=(0,x.createContext)({});function x6(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,x.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return x.createElement(x5.Provider,{value:a},o)}function x8(){return(x8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,br),p=(0,x.useContext)(be)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,b=p.yScale,w=p.dataRegistry,j=(0,x.useMemo)(function(){return y?bt(y):0},[y]),E=(0,x.useMemo)(function(){return b?bt(b):0},[b]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==a?null:null==w?void 0:w.get(a),S=s||(null==k?void 0:k.xAccessor),_=l||(null==k?void 0:k.yAccessor);if(!y||!b||!v||!m||!S||!_||!g)return null;var C=(null!=(t=(0,p4.Z)(y(S(o))))?t:NaN)+j/2,O=(null!=(n=(0,p4.Z)(b(_(o))))?n:NaN)+E/2,M=C+c+16>g.left+v?-c:c,T=O+f+16>g.top+m?-f:f;return bn(C)&&bn(O)?x.createElement(r,bi({width:v,height:m},h,{x:C,y:O,dx:M,dy:T}),i):null}bo.propTypes={dataKey:pG().string,xAccessor:pG().func,yAccessor:pG().func};var ba=["x","y","AnnotationComponent"],bs=["editable"];function bl(){return(bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function bc(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=bu(e,ba),s=(0,x.useRef)({x:n,y:i}),l=xF({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,x.useEffect)(function(){s.current={x:n,y:i}},[n,i]),x.createElement(x4.g,{transform:xU([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},x.createElement(o,bl({x:n,y:i},a)))}function bd(e){var t=e.editable,n=bu(e,bs),r=(0,x.useCallback)(function(e){return x.createElement(bc,bl({AnnotationComponent:t?x9:x6},e))},[t]);return x.createElement(bo,bl({AnnotationComponent:r},n))}bd.propTypes={editable:pG().bool};var bf=n(12766),bh=n(54073),bp=n.n(bh),bm=["d","stroke","fill"];function bv(){return(bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bm),o=(0,x.useRef)(t),a=(0,x.useCallback)(bp()(function(e){o.current=e},50),[]),s=(0,bf.interpolatePath)(o.current,t);a(t);var l=xF({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=xF({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return x.createElement(x4.path,bv({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var by=n(12935),bx=n(12151);function bb(){return(bb=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function bA(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)=>bT(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 bP=bA(bT);bP.right;let bN=bP.left;function bR(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=bA(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=bN(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,bq),C=(0,x.useContext)(be),O=C.colorScale,M=C.theme,T=C.horizontal,A=(0,x.useMemo)(function(){return w?bj(j,w):void 0},[j,w]),P=(0,x.useMemo)(function(){return bj(j,b)},[j,b]),N=(0,x.useMemo)(function(){return k?bj(S,k):void 0},[S,k]),R=(0,x.useMemo)(function(){return bj(S,E)},[S,E]),D=(0,x.useCallback)(function(e){return bn(j(b(e)))&&bn(S(E(e)))},[j,b,S,E]),L=null!=(t=null!=(n=null==O?void 0:O(l))?n:null==M?void 0:null==(r=M.colors)?void 0:r[0])?t:"#222",F="AREASERIES_EVENT_SOURCE-"+l,z=bZ({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:F,allowedSources:[bk,F]}),V=(0,x.useMemo)(function(){var e=bE(T?j:S);return T?{x0:null!=A?A:e,x1:P,y:R}:{x:P,y0:null!=N?N:e,y1:R}},[j,S,T,P,R,A,N]),I=!!(d||c),Z=(0,x.useCallback)(function(e){var t=e.glyphs;return I?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},bW(b$({},e,{color:"transparent",onFocus:z.onFocus,onBlur:z.onBlur})))}):null},[I,z.onFocus,z.onBlur]);return x.createElement(x.Fragment,null,x.createElement(by.Z,b$({},V,_,{curve:a,defined:D}),function(e){var t=e.path;return x.createElement(o,b$({className:"visx-area",stroke:"transparent",fill:L,strokeLinecap:"round"},_,{d:t(s)||""},z))}),y&&x.createElement(bx.Z,b$({x:P,y:R,defined:D,curve:a},u),function(e){var t=e.path;return x.createElement(o,b$({className:"visx-line",fill:"transparent",stroke:L,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),I&&x.createElement(bH,{dataKey:l,data:s,xAccessor:b,yAccessor:E,xScale:j,yScale:S,renderGlyphs:Z}))}bK.propTypes={renderLine:pG().bool};var bY=bw(bK);function bG(){return(bG=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 b4(e,t){return e[t]}function b3(e){let t=[];return t.key=e,t}Array.prototype.slice;var b5=n(74322),b6=n(58543);function b8(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,x.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=b0([]),t=b2,n=b1,r=b4;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),b3),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(b8(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(b8(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 wr(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?bL:bD)(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,bQ.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,bQ.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,bQ.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,bQ.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var wi=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function wo(){return(wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,wi)),u=wo({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==E?void 0:null==(i=E.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:O,data:e,areaProps:u,lineProps:s}})},[C,O,g,_,E]),T=(0,x.useCallback)(function(e){var t,n,r=null==(t=_.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?wr(e,r,b):null},[_,b]),A="AREASTACK_EVENT_SOURCE-"+S.join("-"),P=bZ({dataKey:S,enableEvents:void 0===o||o,findNearestDatum:T,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:A,allowedSources:[bk,A]}),N=!!(l||s),R=(0,x.useCallback)(function(e){var t=e.glyphs;return N?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},bW(wo({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[N,P.onFocus,P.onBlur]);return!S.some(function(e){return null==y.get(e)})&&w&&j&&g?x.createElement("g",{className:"visx-area-stack"},M.map(function(e){return x.createElement(by.Z,wo({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return x.createElement(n,wo({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,P))})}),m&&M.map(function(e){return x.createElement(bJ.Z,wo({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 x.createElement(n,wo({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),N&&M.map(function(e,t){var n=M[M.length-t-1];return x.createElement(bH,{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:wa,yScale:wa,renderGlyphs:R})})):null}function wl(){return(wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wd),c=(0,x.useContext)(be),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,x.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,w=(0,x.useMemo)(function(){return b||y?function(e,t,n){return wf({},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]),j="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,k="left"===g||"right"===g?h:f;return k?x.createElement(l,wf({top:j,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:w,scale:k})):null}function wp(){return(wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return wg({},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,x=l.x>=g&&l.x<=y;return wg({},u,{distanceY:0,distanceX:x?0:Math.abs(l.x-(g+y)/2)})}(e,k,v)},[k,v]),_="BARGROUP_EVENT_SOURCE-"+E.join("-")+"}",C=bZ({dataKey:E,enableEvents:void 0===f||f,findNearestDatum:S,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:_,allowedSources:[bk,_]}),O=(0,x.useMemo)(function(){return b?bE(b):0},[b]),M=(0,x.useMemo)(function(){return w?bE(w):0},[w]),T=E.map(function(e){return m.get(e)});if(T.some(function(e){return null==e})||!b||!w||!p)return null;var A=bt(k),P=T.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)-O:(null!=(i=w(r(e)))?i:NaN)-M},s=v?function(e){var t;return null!=(t=w(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=k(o))?t:0,u=v?function(e){return O+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return M+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=j.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(!bn(r))return null;var i=c(e);if(!bn(i))return null;var a=d(e);if(!bn(a))return null;var s=f(e);return bn(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 x.createElement("g",{className:"visx-bar-group"},P.map(function(e){return e&&x.createElement(o,wy({horizontal:v,xScale:b,yScale:w},e,C,{key:e.key}))}))}wx.propTypes={children:pG().node.isRequired,padding:pG().number,sortBars:pG().func};var wb=n(10897),ww=function(e){return!!(null==e?void 0:e.includes("url("))},wj=function(e){return ww(e)?"rgba(0,0,0,0.1)":e},wE=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],wk=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function wS(){return(wS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function wC(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:wj(e.fill),opacity:1}}function wO(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=w_(e,wE);return x.createElement(x.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 x.createElement(wb.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 x.createElement(bg,wS({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function wM(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,w_(e,wk)),u=xz(i,wS({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,x.useMemo)(function(){var e=bE(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:wj(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:wC,update:wC,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return x.createElement(x.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:x.createElement(x4.rect,wS({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:ww(t.fill)?t.fill:s,opacity:u},l))}))}function wT(e){return null==e.radius?x.createElement(wM,e):x.createElement(wO,wS({},e,{radius:e.radius}))}function wA(){return(wA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wN),j=(0,x.useContext)(be),E=j.colorScale,k=j.horizontal,S=j.theme,_=j.innerWidth,C=j.innerHeight,O=(0,x.useMemo)(function(){return bj(g,v)},[g,v]),M=(0,x.useMemo)(function(){return bj(b,y)},[b,y]),T=bt(k?b:g)||(k?void 0===C?0:C:void 0===_?0:_)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),A=(0,x.useMemo)(function(){return g?bE(g):0},[g]),P=(0,x.useMemo)(function(){return b?bE(b):0},[b]),N=null!=(t=null!=(n=null==E?void 0:E(l))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",R=(0,x.useMemo)(function(){var e=k?0:-T/2,t=k?-T/2:0;return s.map(function(n,r){var i,o=O(n)+e;if(!bn(o))return null;var s=M(n)+t;if(!bn(s))return null;var l=k?o-A:s-P;return bn(l)?{key:""+r,x:k?A+Math.min(0,l):o,y:k?s:P+Math.min(0,l),width:k?Math.abs(l):T,height:k?T:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:N}:null}).filter(function(e){return e})},[T,N,a,s,O,M,k,A,P]),D="BARSERIES_EVENT_SOURCE-"+l,L=bZ({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:D,allowedSources:[bk,D]});return x.createElement("g",{className:"vx-bar-series"},x.createElement(i,wR({bars:R,horizontal:k,xScale:g,yScale:b},L,w)))}wD.propTypes={barPadding:pG().number,colorAccessor:pG().func};var wL=bw(wD),wF=["colorAccessor"];function wz(){return(wz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wF);return x.createElement(wL,wz({},n,{colorAccessor:t,BarsComponent:wT}))}var wI=n(15590);function wZ(){return(wZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w$),i=(0,x.useCallback)(function(e){return x.createElement(wq,wK({},e,{renderGlyph:n}))},[n]);return x.createElement(bU,wK({},r,{renderGlyphs:i}))}var wG=n(93353),wX=n(63962),wJ=["rows","columns","GridRowsComponent","GridColumnsComponent"];function wQ(){return(wQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wJ),l=(0,x.useContext)(be),u=l.theme,c=l.xScale,d=l.yScale,f=l.margin,h=l.innerWidth,p=l.innerHeight,m=null==u?void 0:u.gridStyles;return x.createElement(x.Fragment,null,n&&d&&null!=h&&x.createElement(o,wQ({left:null==f?void 0:f.left,lineStyle:m,width:h,scale:d},s)),i&&c&&null!=p&&x.createElement(a,wQ({top:null==f?void 0:f.top,lineStyle:m,height:p,scale:c},s)))}w0.propTypes={rows:pG().bool,columns:pG().bool};var w1=["animationTrajectory"];function w2(){return(w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w1),r=(0,x.useMemo)(function(){return function(e){return x.createElement(wG.Z,w2({},e,{animationTrajectory:t}))}},[t]),i=(0,x.useMemo)(function(){return function(e){return x.createElement(wX.Z,w2({},e,{animationTrajectory:t}))}},[t]);return x.createElement(w0,w2({GridRowsComponent:r,GridColumnsComponent:i},n))}var w3=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function w5(){return(w5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w3),E=(0,x.useContext)(be),k=E.colorScale,S=E.theme,_=(0,x.useMemo)(function(){return bj(v,m)},[v,m]),C=(0,x.useMemo)(function(){return bj(y,g)},[y,g]),O=(0,x.useCallback)(function(e){return bn(v(m(e)))&&bn(y(g(e)))},[v,m,y,g]),M=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",T="LINESERIES_EVENT_SOURCE-"+s,A=bZ({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:T,allowedSources:[bk,T]}),P=!!(u||l),N=(0,x.useCallback)(function(e){var t=e.glyphs;return P?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},bW(w5({},e,{color:"transparent",onFocus:A.onFocus,onBlur:A.onBlur})))}):null},[P,A.onFocus,A.onBlur]);return x.createElement(x.Fragment,null,x.createElement(bx.Z,w5({x:_,y:C,defined:O,curve:o},j),function(e){var t,n=e.path;return x.createElement(w,w5({stroke:null!=(t=null==i?void 0:i(s))?t:M,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},j,{d:n(a)||""},A))}),P&&x.createElement(bH,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:N}))}w6.propTypes={colorAccessor:pG().func};var w8=bw(w6);function w7(){return(w7=Object.assign?Object.assign.bind():function(e){for(var t=1;tjn.every(n=>e[n]===t[n]);function ji(e,t){return(ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jo=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ji(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)?to.createPortal(this.props.children,this.node):null},t}(x.PureComponent);jo.propTypes={zIndex:pG().oneOfType([pG().number,pG().string])};var ja=["detectBounds","zIndex"],js=["left","top","detectBounds","zIndex"];function jl(){return(jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var jc=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],jd=["x","y"];function jf(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 jh(){return(jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,x.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&&!jr(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?jt()(e,d):e,c?jt()(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,x.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,x.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,x.useEffect)(()=>{v(),g()},[r,m,p]),(0,x.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]}(ju(ei,ja)))[0],ec=el[1],ed=el[2],ef=(0,x.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=ju(e,js),a=null==i?es:i,s=(null==r?ea:r)?mb:md,l=(void 0===t?0:t)+(ec.left||0)+window.scrollX,u=(void 0===n?0:n)+(ec.top||0)+window.scrollY;return x.createElement(jo,{zIndex:a},x.createElement(s,jl({left:l,top:u},o)))}},[ea,es,ec.left,ec.top]),{containerRef:eu,containerBounds:ec,forceRefreshBounds:ed,TooltipInPortal:ef}),L=D.containerRef,F=D.TooltipInPortal,z=D.forceRefreshBounds,V=(0,x.useCallback)(function(e){var t;L(null!=(t=null==e?void 0:e.parentElement)?t:null)},[L]),I=null!=R&&R.tooltipOpen?o(jh({},R,{colorScale:_})):null,Z=(null==R?void 0:R.tooltipOpen)&&null!=I,B=(0,x.useRef)(!1);(0,x.useEffect)(function(){Z&&!B.current&&z(),B.current=Z},[Z,z]);var H=null==R?void 0:R.tooltipLeft,U=null==R?void 0:R.tooltipTop,W=A?bt(A):0,q=P?bt(P):0,$=(0,x.useCallback)(function(e,t){var n,r,i=null==N?void 0:N.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:A&&o?null!=(n=Number(A(o(t)))+W/2)?n:0:void 0,top:P&&a?null!=(r=Number(P(a(t)))+q/2)?r:0:void 0}},[N,W,q,A,P]),K=null==R?void 0:null==(eh=R.tooltipData)?void 0:eh.nearestDatum,Y=null!=(ep=null==K?void 0:K.key)?ep:"";if(Z&&K&&(y||w)){var G=$(Y,K.datum),X=G.left,J=G.top;H=y&&bn(X)?X:H,U=w&&bn(J)?J:U}var Q=[];if(Z&&(void 0!==c&&c||p)){var ee=Number(null!=(e_=null==i?void 0:i.radius)?e_:4);if(p)Object.values(null!=(eC=null==R?void 0:null==(eO=R.tooltipData)?void 0:eO.datumByKey)?eC:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==_?void 0:_(o))?n:null==C?void 0:null==(r=C.htmlLabel)?void 0:r.color)?t:"#222",u=$(o,a),c=u.left,d=u.top;bn(c)&&bn(d)&&Q.push({key:o,color:l,datum:a,index:s,size:ee,x:c,y:d,glyphStyle:i,isNearestDatum:!!K&&K.key===o})});else if(K){var et=$(Y,K.datum),en=et.left,er=et.top;if(bn(en)&&bn(er)){var ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,ej,eE,ek,eS,e_,eC,eO,eM,eT,eA,eP,eN,eR,eD=null!=(eM=null!=(eT=null!=(eA=null!=(eP=Y&&(null==_?void 0:_(Y)))?eP:null)?eA:null==C?void 0:null==(eN=C.gridStyles)?void 0:eN.stroke)?eT:null==C?void 0:null==(eR=C.htmlLabel)?void 0:eR.color)?eM:"#222";Q.push({key:Y,color:eD,datum:K.datum,index:K.index,size:ee,x:en,y:er,glyphStyle:i,isNearestDatum:!0})}}}return x.createElement(x.Fragment,null,x.createElement("svg",{ref:V,style:jm}),Z&&x.createElement(x.Fragment,null,v&&x.createElement(F,{className:"visx-crosshair visx-crosshair-vertical",left:H,top:null==T?void 0:T.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jp},x.createElement("svg",{width:"1",height:O,overflow:"visible"},x.createElement("line",jh({x1:0,x2:0,y1:0,y2:O,strokeWidth:1.5,stroke:null!=(em=null!=(ev=null==C?void 0:null==(eg=C.gridStyles)?void 0:eg.stroke)?ev:null==C?void 0:null==(ey=C.htmlLabel)?void 0:ey.color)?em:"#222"},j)))),f&&x.createElement(F,{className:"visx-crosshair visx-crosshair-horizontal",left:null==T?void 0:T.left,top:U,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jp},x.createElement("svg",{width:M,height:"1",overflow:"visible"},x.createElement("line",jh({x1:0,x2:M,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(ex=null!=(eb=null==C?void 0:null==(ew=C.gridStyles)?void 0:ew.stroke)?eb:null==C?void 0:null==(ej=C.htmlLabel)?void 0:ej.color)?ex:"#222"},r)))),Q.map(function(e,t){var n=e.x,r=e.y,i=jf(e,jd);return x.createElement(F,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jp},x.createElement("svg",{overflow:"visible"},s(jh({x:0,y:0},i))))}),x.createElement(F,jh({left:H,top:U,style:jh({},mc,{background:null!=(eE=null==C?void 0:C.backgroundColor)?eE:"white",boxShadow:"0 1px 2px "+(null!=C&&null!=(ek=C.htmlLabel)&&ek.color?(null==C?void 0:null==(eS=C.htmlLabel)?void 0:eS.color)+"55":"#22222255")},null==C?void 0:C.htmlLabel)},k),I)))}function jx(e){var t=(0,x.useContext)(bS);return null!=t&&t.tooltipOpen?x.createElement(jy,e):null}function jb(e){var t=e.children,n=(0,x.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 x.createElement(b_.Provider,{value:n},t)}function jw(){return(jw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,ma);return ms({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,x.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,x.useRef)(null),g=(0,x.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(bn(o)?o:1/0,2)+Math.pow(bn(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&bn(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&&o>0&&y({width:m,height:o,margin:l})},[y,m,o,l]);var j=bO({source:bk});return(bI({dataKey:"nearest"===(void 0===h?"nearest":h)?bV:bz,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,allowedSources:jD}),y)?null==m||null==o?x.createElement(vA.Z,null,function(t){return x.createElement(jL,jN({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==b?x.createElement(jj,null,x.createElement(jL,e)):null==w?x.createElement(jb,null,x.createElement(jL,e)):m>0&&o>0?x.createElement("svg",{width:m,height:o,"aria-label":void 0===t?"XYChart":t},i,r&&x.createElement("rect",jN({x:l.left,y:l.top,width:m-l.left-l.right,height:o-l.top-l.bottom,fill:"transparent"},j))):null:v&&g?x.createElement(jP,{xScale:v,yScale:g,theme:p,initialDimensions:{width:m,height:o,margin:l},horizontal:a},x.createElement(jL,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function jF(e){return x.createElement(bY,e)}function jz(e){return x.createElement(ws,e)}function jV(){return(jV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function jW(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=jU(e,jZ),u=!!(l.onFocus||l.onBlur);return x.createElement(x.Fragment,null,t.map(function(e){var t=e.key,c=jU(e,jB);return null==n?x.createElement("rect",jH({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):x.createElement(wb.Z,jH({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 jq(){return(jq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jK);return x.createElement(wL,jY({},n,{colorAccessor:t,BarsComponent:jW}))};function jX(){return(jX=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(fi,{value:"line",children:"Line"}),(0,y.jsx)(fi,{disabled:f||h,value:"areastack",children:"Area Stack"}),(0,y.jsx)(fi,{disabled:f||h,value:"barstack",children:"Bar Stack"}),(0,y.jsx)(fi,{disabled:f,value:"area",children:"Area"}),(0,y.jsx)(fi,{disabled:f,value:"bargroup",children:"Bar Group"})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Stack series offset"}),(0,y.jsxs)(fo,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,y.jsxs)(fi,{disabled:!s,value:"none",children:["Auto",(0,y.jsx)(f0,{children:"zero-baseline"})]}),(0,y.jsxs)(fi,{disabled:!s,value:"expand",children:["Expand",(0,y.jsx)(f0,{children:"values sum to 1"})]}),(0,y.jsxs)(fi,{disabled:!s,value:"wiggle",children:["Wiggle",(0,y.jsx)(f0,{children:"stream graph"})]})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Curve shape"}),(0,y.jsxs)(fo,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(fi,{disabled:!a,value:"linear",children:"Linear"}),(0,y.jsx)(fi,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,y.jsx)(fi,{disabled:!a,value:"step",children:"Step"})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Axes"}),(0,y.jsx)("div",{className:"flex flex-col gap-6",children:(0,y.jsxs)(fo,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(fi,{value:"bottom",children:"Bottom"}),(0,y.jsx)(fi,{value:"top",children:"Top"})]})})]})]})})}let Eu=(0,x.forwardRef)((e,t)=>{let{className:n}=e;return(0,y.jsxs)("div",{ref:t,className:(0,em.cx)("flex gap-1 items-center",n),children:[(0,y.jsx)(Ec,{}),(0,y.jsx)(Ec,{}),(0,y.jsx)(Ec,{})]})});function Ec(){return(0,y.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 Ed(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,chartType:l="areastack",curveType:u="linear",stackOffset:c="none",variant:d="panel",allowConfiguration:f=!0}=e,h=function(e,t,n,r,i,o){let a=(0,x.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return[...t,{...e,timestamp:e.timestamp+j8(1)}]},[t]),s=(0,x.useMemo)(()=>{if(a.length<2)return 0;let e=[a[0].timestamp,a[a.length-1].timestamp],t=new Date().getTime();return t>e[0]&&t"dark"===c?v6:v5,[c]),[f,h]=(0,x.useState)("center"),[p,m]=(0,x.useState)([!1,!1]),[v,g]=p,[b,w]=(0,x.useState)("bottom"),[j,E]=(0,x.useState)("right"),[k,S]=(0,x.useState)(!0),[_,C]=(0,x.useState)(!0),[O,M]=(0,x.useState)(!1),[T,A]=(0,x.useState)(!0),[P,N]=(0,x.useState)(!0),[R,D]=(0,x.useState)(r),[L,F]=(0,x.useState)(i),[z,V]=(0,x.useState)(o),I=d.xyChartTheme.gridStyles.stroke,[Z,B]=(0,x.useState)(!1),[H,U]=(0,x.useState)("star"),W=(0,x.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"===H?(0,y.jsx)(vB,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):"circle"===H?(0,y.jsx)(vW,{left:t,top:n,stroke:I,fill:i,r:r,...u}):"cross"===H?(0,y.jsx)(vY,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):(0,y.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[H,I]),q=(0,x.useMemo)(()=>Object.keys(j5()(t[0],"timestamp")),[t]),$=(0,x.useMemo)(()=>n.enabledGraph||q,[q,n]),K=(0,x.useMemo)(()=>n.enabledTip||q,[q,n]),Y=(0,x.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]),G=["line","area","areastack"].includes(R),X=["barstack","areastack"].includes(R),J=(0,x.useMemo)(()=>({x:{type:"band",paddingInner:G?1:.3},y:{type:"linear"}}),[G]),Q=(0,x.useMemo)(()=>"cardinal"===L&&vG.ZP||"step"===L&&mJ.ZP||vX.Z,[L]),ee=(0,x.useMemo)(()=>({top:30,bottom:"top"===b?0:20,left:0,right:0}),[b]);return{id:e,accessors:Y,animationTrajectory:f,config:n,scales:J,data:a,curve:Q,chartData:t,numTicks:4,isLine:G,isStack:X,todayOffset:s,initialChartType:r,chartType:R,curveType:L,keys:q,enabledGraph:$,enabledTip:K,renderBarGroup:"bargroup"===R,renderBarStack:"barstack"===R,enableTooltipGlyph:Z,renderTooltipGlyph:W,renderAreaSeries:"area"===R,renderAreaStack:"areastack"===R,renderLineSeries:"line"===R,sharedTooltip:P,showGridColumns:g,showGridRows:v,showHorizontalCrosshair:O,showTooltip:k,showVerticalCrosshair:_,snapTooltipToDatum:!X&&T,stackOffset:z,theme:d,margin:ee,xAxisOrientation:b,yAxisOrientation:j,setUseAnimatedComponents:u,setAnimationTrajectory:h,setGridProps:m,setXAxisOrientation:w,setYAxisOrientation:E,setShowTooltip:S,setShowVerticalCrosshair:C,setShowHorizontalCrosshair:M,setSnapTooltipToDatum:A,setSharedTooltip:N,setChartType:D,setCurveType:F,setStackOffset:V,setEnableTooltipGlyph:B,setTooltipGlyphComponent:U,...l?{Annotation:bd,AreaSeries:bX,AreaStack:wu,Axis:wm,BarGroup:wP,BarSeries:wV,BarStack:wU,GlyphSeries:wY,Grid:w4,LineSeries:w9,Tooltip:jx,XYChart:jL}:{AreaSeries:jF,AreaStack:jz,Axis:jI,BarGroup:j$,BarSeries:jG,BarStack:jJ,Grid:j2,LineSeries:j4,Tooltip:jx,XYChart:jL}}}(t,r,i,l,u,c),p=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===d&&f&&(0,y.jsx)(El,{...h})]}),(0,y.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,y.jsx)(vA.Z,{children:e=>{let{width:t,height:n}=e;return a?(0,y.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,y.jsx)(Eu,{className:"scale-150"})}):(0,y.jsx)(vR,{...h,width:t,height:n})}})]});return"panel"===d?(0,y.jsx)(t3,{className:"relative p-px",style:{height:n},children:p}):(0,y.jsx)("div",{className:"relative p-px",style:{height:n},children:p})}/*! ***************************************************************************** +***************************************************************************** */var fw=function(){return(fw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){if(e.includes(t)){var r=e.split(t),i=r[0],o=r[1];if(o.length>n)return""+i+t+o.slice(0,n)}var a=e.length>n?RegExp("(\\d+)(\\d{"+n+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},fT=function(e,t){var n=t.groupSeparator,r=t.decimalSeparator,i=RegExp("\\d([^"+fE(void 0===n?",":n)+fE(void 0===r?".":r)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},fA=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?fE(a)+"?":"")+"\\d").test(t),c="."!==n?fP(t,n,u):t,d=fN((r?new Intl.NumberFormat(r.locale,r.currency?{style:"currency",currency:r.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=fT(d,fw({},e)),h=t.slice(-1)===n?n:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&n&&(d=d.includes(n)?d.replace(RegExp("(\\d+)("+fE(n)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+n+p+f):""+d+n+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},fP=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(fE(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},fN=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?fj(fj([],e),[n]):[n,u]:"currency"===l?n?e:fj(fj([],e),[u]):"group"===l?s?e:fj(fj([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:fj(fj([],e),[void 0!==i?i:u]):"fraction"===l?fj(fj([],e),[void 0!==o?u.slice(0,o):u]):fj(fj([],e),[u])},[""]).join("")},fR={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},fD=function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,n){return"currency"===t.type?0===n?fw(fw({},e),{currencySymbol:t.value,prefix:t.value}):fw(fw({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?fw(fw({},e),{groupSeparator:t.value}):"decimal"===t.type?fw(fw({},e),{decimalSeparator:t.value}):e},fR)},fL=function(e){return RegExp(/\d/,"gi").test(e)},fF=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.lengtht.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}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(C&&fL(C))throw Error("decimalSeparator cannot be a number");if(O&&fL(O))throw Error("groupSeparator cannot be a number");var L=(0,x.useMemo)(function(){return fD(b)},[b]),F=C||L.decimalSeparator||"",z=O||L.groupSeparator||"";if(F&&z&&F===z&&!1===S)throw Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:F,groupSeparator:z,disableGroupSeparators:S,intlConfig:b,prefix:g||L.prefix,suffix:y},Z={decimalSeparator:F,groupSeparator:z,allowDecimals:void 0===n||n,decimalsLimit:l||p||2,allowNegativeValue:void 0===r||r,disableAbbreviations:void 0!==_&&_,prefix:g||L.prefix,transformRawValue:R},I=null!=u?fA(fw(fw({},V),{decimalScale:v,value:String(u)})):null!=f?fA(fw(fw({},V),{decimalScale:v,value:String(f)})):"",B=(0,x.useState)(I),H=B[0],U=B[1],W=(0,x.useState)(!1),q=W[0],$=W[1],K=(0,x.useState)(0),Y=K[0],G=K[1],X=(0,x.useState)(0),Q=X[0],J=X[1],ee=(0,x.useState)(null),et=ee[0],en=ee[1],er=t||(0,x.useRef)(null),ei=function(e,t){$(!0);var n=fz({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:z}),r=n.modifiedValue,i=n.cursorPosition,a=fO(fw({value:r},Z));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===F){h&&h(void 0,o,{float:null,formatted:"",value:""}),U(a);return}var s=parseFloat(a.replace(F,".")),l=fA(fw({value:a},V));if(null!=i){var u=i+(l.length-e.length);G(u=u<=0?g?g.length:0:u),J(Q+1)}U(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,x.useEffect)(function(){q&&"-"!==H&&er&&"object"==typeof er&&er.current&&er.current.setSelectionRange(Y,Y)},[H,Y,er,q,Q]);var eo=fw({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),M&&M(e)},onBlur:function(e){var t=e.target.value,n=fO(fw({value:t},Z));if("-"===n||!n){U(""),A&&A(e);return}var r=fF(fM(n,F,p),F,void 0!==v?v:p),i=parseFloat(r.replace(F,".")),a=fA(fw(fw({},V),{value:r}));h&&h(r,o,{float:i,formatted:a,value:r}),U(a),A&&A(e)},onFocus:function(e){return T&&T(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(en(t),w&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),G(H.length);var n=parseFloat(null!=f?String(f).replace(F,"."):fO(fw({value:H},Z)))||0,r="ArrowUp"===t?n+w:n-w;if(void 0!==j&&rE)return;var i=String(w).includes(".")?Number(String(w).split(".")[1].length):void 0;ei(String(i?r.toFixed(i):r).replace(".",F))}P&&P(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var r=fT(H,{groupSeparator:z,decimalSeparator:F});if(r&&n&&n>H.length-r.length&&er&&"object"==typeof er&&er.current){var i=H.length-r.length;er.current.setSelectionRange(i,i)}}N&&N(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||F&&H===F?H:fA(fw(fw({},V),{decimalScale:q?void 0:v,value:String(f)})),ref:er},D);return s?x.createElement(s,fw({},eo)):x.createElement("input",fw({},eo))});function fZ(e){let{units:t,variant:n,size:r="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,x.useState)();return(0,x.useEffect)(()=>{h(navigator.language)},[]),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(fV,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,className:(0,em.cx)(fx({variant:n,size:r,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,y.jsx)("div",{className:(0,em.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,y.jsx)(t1,{size:"12",weight:"medium",color:"subtle",children:t})})]})}fV.displayName="CurrencyInput";var fI=n(6391),fB=n.n(fI);function fH(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let fU=(0,x.forwardRef)(function(e,t){let{value:n,placeholder:r=new(fB())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,x.useMemo)(()=>new(fB())(n),[n]),[p,m]=(0,x.useState)(""),v=(0,x.useMemo)(()=>fW(p),[p]),g=(0,x.useCallback)(e=>{o&&o((e=fW(e))&&!isNaN(Number(e))?new(fB())(e):void 0)},[o]),b=(0,x.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,x.useEffect)(()=>{if(!h.isEqualTo(v)){let e=fH(h,i);m(e)}},[h]),(0,y.jsx)(fZ,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:r.isNaN()?"":fH(r,i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>b(e||"")})});function fW(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var fq=n(2850),f$=n(47025);let fK=new(fB())(0),fY=(0,x.forwardRef)(function(e,t){let{sc:n,placeholder:r=new(fB())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,x.useMemo)(()=>new(fB())(void 0===n?NaN:n),[n]),{settings:g}=(0,fq.Hv)(),b=(0,f$.BW)({config:{swr:{revalidateOnFocus:!1}}}),w=(0,x.useMemo)(()=>{var e;return g.siaCentral&&b.data?new(fB())((null===(e=b.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||fK):fK},[b.data,g]),[j,E]=(0,x.useState)(),[k,S]=(0,x.useState)(""),[_,C]=(0,x.useState)(""),O=(0,x.useMemo)(()=>fG(k),[k]),M=(0,x.useMemo)(()=>fG(_),[_]),T=(0,x.useCallback)(e=>{a&&a((e=fG(e))&&!isNaN(Number(e))?new(fB())(e):void 0)},[a]),A=(0,x.useCallback)(e=>{let t=fH(e,i);C(t)},[C,i]),P=(0,x.useCallback)(e=>{let t=fH(e,o);return S(t),T(t),t},[S,o,T]),N=(0,x.useCallback)(e=>{S(e),T(e)},[S,T]),R=(0,x.useCallback)(e=>{let t=new(fB())(e).times(w);A(t)},[A,w]),D=(0,x.useCallback)(e=>{let t=new(fB())(e).dividedBy(w);P(t)},[P,w]),[L,F]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{if(!v.isEqualTo(O)){let e=fH(v,o);S(e),"fiat"!==j&&R(e)}L||F(!0)},[v]),(0,x.useEffect)(()=>{L&&R(O)},[w]),(0,x.useEffect)(()=>{"sc"===j&&R(O)},[O]),(0,x.useEffect)(()=>{"fiat"===j&&D(M)},[M]),(0,y.jsxs)("div",{ref:t,className:(0,em.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,y.jsx)(fZ,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:fH(r,o),units:l,value:"NaN"!==k?k:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{E(void 0),h&&h(e)},onFocus:e=>{E("sc"),p&&p(e)},onValueChange:e=>{N(e||"")}}),u&&g.siaCentral&&(0,y.jsx)(fZ,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==_?_:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(w?w.times(r).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{E("fiat"),p&&p(e)},onBlur:e=>{E(void 0),h&&h(e)},onValueChange:e=>{C(e||"")}})]})});function fG(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function fX(e){let{children:t}=e;return(0,y.jsx)(ln,{content:t,children:(0,y.jsx)("div",{className:"relative flex items-center inline mx-1",children:(0,y.jsx)(t1,{color:"subtle",children:(0,y.jsx)(lo.RdX,{className:"scale-75"})})})})}function fQ(e){let{values:t,options:n,onChange:r}=e;return(0,y.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,y.jsx)(li,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}function fJ(e){let{options:t,onClick:n,onRemove:r}=e;return(0,y.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map(e=>(0,y.jsxs)(lA,{children:[(0,y.jsx)(li,{variant:"active",onClick:()=>{n&&n(e.value)},children:e.label}),(0,y.jsx)(li,{variant:"active",size:"small",onClick:()=>r(e.value),children:(0,y.jsx)(lo.PcV,{})})]},e.value))})}let f0=(0,em.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"}}),f1=x.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,y.jsxs)("div",{className:f0({size:n,state:r,className:o}),children:[i,(0,y.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,y.jsx)(lo.Cp0,{className:"pointer-events-none scale-75"})]})}),f2=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("option",{ref:t,...r,className:(0,em.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),f4=(0,em.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function f3(e){let{className:t}=e;return(0,y.jsx)("div",{className:f4({className:t})})}let f5=(0,em.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),f6=x.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,y.jsx)("div",{ref:t,className:f5({size:n,className:r}),...i})}),f8="Switch",[f7,f9]=(0,j.b)(f8),[he,ht]=f7(f8),hn=(0,x.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,x.useState)(null),p=(0,E.e)(t,e=>h(e)),m=c8(f),v=(0,x.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=(0,C.T)({prop:o,defaultProp:a,onChange:c});return(0,x.createElement)(he,{scope:n,checked:y,disabled:l},(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":ho(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,_.M)(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,x.createElement)(hi,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),hr=(0,x.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=ht("SwitchThumb",n);return(0,x.createElement)(O.WV.span,(0,w.Z)({"data-state":ho(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),hi=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,x.useRef)(null),a=dB(n),s=tc(t);return(0,x.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,x.createElement)("input",(0,w.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 ho(e){return e?"checked":"unchecked"}let ha=(0,em.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"}}),hs=(0,em.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"}}),hl=(0,x.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(hn,{className:hs({size:n,state:r,className:i}),...a,ref:t,children:(0,y.jsx)(hr,{className:ha({size:n})})}),o&&(0,y.jsx)(t1,{color:a.disabled?"subtle":"contrast",children:o})]})}),hu=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e,i=x.Children.toArray(n),o=i.find(hf);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:x.Children.count(e)>1?x.Children.only(null):(0,x.isValidElement)(e)?e.props.children:null);return(0,x.createElement)(hc,(0,w.Z)({},r,{ref:t}),(0,x.isValidElement)(e)?(0,x.cloneElement)(e,void 0,n):null)}return(0,x.createElement)(hc,(0,w.Z)({},r,{ref:t}),n)});hu.displayName="Slot";let hc=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,x.isValidElement)(n)?(0,x.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?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,E.F)(t,n.ref)}):x.Children.count(n)>1?x.Children.only(null):null});hc.displayName="SlotClone";let hd=({children:e})=>(0,x.createElement)(x.Fragment,null,e);function hf(e){return(0,x.isValidElement)(e)&&e.type===hd}let hh=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,x.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hu:t;return(0,x.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,x.createElement)(o,(0,w.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hp=(0,x.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,x.createElement)(hh.svg,(0,w.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,x.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hm="Popper",[hv,hg]=(0,j.b)(hm),[hy,hx]=hv(hm),hb=(0,x.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=hx("PopperAnchor",n),a=(0,x.useRef)(null),s=(0,E.e)(t,a);return(0,x.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,x.createElement)(hh.div,(0,w.Z)({},i,{ref:s}))}),hw="PopperContent",[hj,hE]=hv(hw),[hk,hS]=hv(hw,{hasParent:!1,positionUpdateFns:new Set}),h_=(0,x.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:w=!1,avoidCollisions:j=!0,onPlaced:k,...S}=e,_=hx(hw,d),[C,O]=(0,x.useState)(null),T=(0,E.e)(t,e=>O(e)),[A,P]=(0,x.useState)(null),N=tc(A),R=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,D=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,L="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(g)?g:[g],z=F.length>0,V={padding:L,boundary:F.filter(hM),altBoundary:z},{reference:Z,floating:I,strategy:B,x:H,y:U,placement:W,middlewareData:q,update:$}=ts({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tr,middleware:[hT(),ez({mainAxis:h+D,alignmentAxis:m}),j?eZ({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?eI():void 0,...V}):void 0,A?tl({element:A,padding:v}):void 0,j?eR({...V}):void 0,{name:"size",options:c={...V,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 eS(e,l),d=eg(r),f=ey(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=eC(u.left,0),p=eC(u.right,0),m=eC(u.top,0),v=eC(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:eC(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:eC(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let x=await o.getDimensions(a.floating);return y.width!==x.width||y.height!==x.height?{reset:{rects:!0}}:{}}},hA({arrowWidth:R,arrowHeight:D}),w?eF({strategy:"referenceHidden"}):void 0].filter(hO)});(0,M.b)(()=>{Z(_.anchor)},[Z,_.anchor]);let K=null!==H&&null!==U,[Y,G]=hP(W),X=(0,lh.W)(k);(0,M.b)(()=>{K&&(null==X||X())},[K,X]);let Q=null===(i=q.arrow)||void 0===i?void 0:i.x,J=null===(o=q.arrow)||void 0===o?void 0:o.y,ee=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=(0,x.useState)();(0,M.b)(()=>{C&&en(window.getComputedStyle(C).zIndex)},[C]);let{hasParent:er,positionUpdateFns:ei}=hS(hw,d),eo=!er;(0,x.useLayoutEffect)(()=>{if(!eo)return ei.add($),()=>{ei.delete($)}},[eo,ei,$]),(0,M.b)(()=>{eo&&K&&Array.from(ei).reverse().forEach(e=>requestAnimationFrame(e))},[eo,K,ei]);let ea={"data-side":Y,"data-align":G,...S,ref:T,style:{...S.style,animation:K?void 0:"none",opacity:null!==(s=q.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,x.createElement)("div",{ref:I,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:K?`translate3d(${Math.round(H)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,x.createElement)(hj,{scope:d,placedSide:Y,onArrowChange:P,arrowX:Q,arrowY:J,shouldHideArrow:ee},eo?(0,x.createElement)(hk,{scope:d,hasParent:!0,positionUpdateFns:ei},(0,x.createElement)(hh.div,ea)):(0,x.createElement)(hh.div,ea)))}),hC={top:"bottom",right:"left",bottom:"top",left:"right"};function hO(e){return void 0!==e}function hM(e){return null!==e}let hT=()=>({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`),{}}}),hA=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]=hP(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="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function hP(e){let[t,n="center"]=e.split("-");return[t,n]}let hN=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,x.useState)(null);return(0,x.createElement)(hy,{scope:t,anchor:r,onAnchorChange:i},n)},hR=(0,x.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?to.createPortal((0,x.createElement)(hh.div,(0,w.Z)({},i,{ref:t})),r):null}),hD="dismissableLayer.update",hL=(0,x.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hF=(0,x.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,x.useContext)(hL),[f,h]=(0,x.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,x.useState)({}),v=(0,E.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),j=f?g.indexOf(f):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,S=j>=b,C=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lh.W)(e),r=(0,x.useRef)(!1),i=(0,x.useRef)(()=>{});return(0,x.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hV("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));!S||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),O=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lh.W)(e),r=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hV("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,n=[...d.branches].some(e=>e.contains(t));n||(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,lh.W)(e);(0,x.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=j===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,x.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),hz(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,x.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hz())},[f,d]),(0,x.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hD,e),()=>document.removeEventListener(hD,e)},[]),(0,x.createElement)(hh.div,(0,w.Z)({},c,{ref:v,style:{pointerEvents:k?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,_.M)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,_.M)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,_.M)(e.onPointerDownCapture,C.onPointerDownCapture)}))});function hz(){let e=new CustomEvent(hD);document.dispatchEvent(e)}function hV(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,to.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hZ="HoverCard",[hI,hB]=(0,j.b)(hZ,[hg]),hH=hg(),[hU,hW]=hI(hZ),hq=(0,x.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hW("HoverCardTrigger",n),o=hH(n);return(0,x.createElement)(hb,(0,w.Z)({asChild:!0},o),(0,x.createElement)(hh.a,(0,w.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,_.M)(e.onPointerEnter,hJ(i.onOpen)),onPointerLeave:(0,_.M)(e.onPointerLeave,hJ(i.onClose)),onFocus:(0,_.M)(e.onFocus,i.onOpen),onBlur:(0,_.M)(e.onBlur,i.onClose),onTouchStart:(0,_.M)(e.onTouchStart,e=>e.preventDefault())})))}),h$="HoverCardPortal",[hK,hY]=hI(h$,{forceMount:void 0}),hG="HoverCardContent",hX=(0,x.forwardRef)((e,t)=>{let n=hY(hG,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hW(hG,e.__scopeHoverCard);return(0,x.createElement)(T.z,{present:r||o.open},(0,x.createElement)(hQ,(0,w.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,_.M)(e.onPointerEnter,hJ(o.onOpen)),onPointerLeave:(0,_.M)(e.onPointerLeave,hJ(o.onClose)),ref:t})))}),hQ=(0,x.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hW(hG,n),c=hH(n),d=(0,x.useRef)(null),f=(0,E.e)(t,d),[h,p]=(0,x.useState)(!1);return(0,x.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,x.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(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,x.useEffect)(()=>{if(d.current){let e=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);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,x.createElement)(hF,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,_.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,x.createElement)(h_,(0,w.Z)({},c,l,{onPointerDown:(0,_.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 hJ(e){return t=>"touch"===t.pointerType?void 0:e()}let h0=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hH(t),u=(0,x.useRef)(0),c=(0,x.useRef)(0),d=(0,x.useRef)(!1),f=(0,x.useRef)(!1),[h=!1,p]=(0,C.T)({prop:r,defaultProp:i,onChange:o}),m=(0,x.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,x.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,x.useCallback)(()=>p(!1),[p]);return(0,x.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,x.createElement)(hU,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,x.createElement)(hN,l,n))},h1=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hW(h$,t);return(0,x.createElement)(hK,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(hR,{asChild:!0,container:i},r)))},h2=(0,em.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"]),h4=(0,em.cx)(t4(),"max-w-sm","py-0.5","px-1"),h3={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},h5=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=le({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,y.jsxs)(h0,{open:l,onOpenChange:u,...i,children:[n&&(0,y.jsx)(hq,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:l?(0,y.jsx)(h1,{forceMount:!0,children:(0,y.jsx)(hX,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,y.jsx)(s9.div,{variants:h3,initial:"init",animate:"show",exit:"exit",className:h2(),children:(0,y.jsx)("div",{className:(0,em.cx)(h4,a),children:r})})})}):null})]})});function h6(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,x.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,x.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,x.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,x.useMemo)(()=>a,Object.values(a));return(0,x.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,x.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),o=i[`__scope${r}`];return{...t,...o}},{});return(0,x.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function h8(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 h7(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function h9(...e){return(0,x.useCallback)(h7(...e),e)}let pe=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e,i=x.Children.toArray(n),o=i.find(pr);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:x.Children.count(e)>1?x.Children.only(null):(0,x.isValidElement)(e)?e.props.children:null);return(0,x.createElement)(pt,(0,w.Z)({},r,{ref:t}),(0,x.isValidElement)(e)?(0,x.cloneElement)(e,void 0,n):null)}return(0,x.createElement)(pt,(0,w.Z)({},r,{ref:t}),n)});pe.displayName="Slot";let pt=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,x.isValidElement)(n)?(0,x.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?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?h7(t,n.ref):n.ref}):x.Children.count(n)>1?x.Children.only(null):null});pt.displayName="SlotClone";let pn=({children:e})=>(0,x.createElement)(x.Fragment,null,e);function pr(e){return(0,x.isValidElement)(e)&&e.type===pn}let pi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,x.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?pe:t;return(0,x.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,x.createElement)(o,(0,w.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function po(e){let t=(0,x.useRef)(e);return(0,x.useEffect)(()=>{t.current=e}),(0,x.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let pa=(null==globalThis?void 0:globalThis.document)?x.useLayoutEffect:()=>{},ps=e=>{let{present:t,children:n}=e,r=function(e){var t;let[n,r]=(0,x.useState)(),i=(0,x.useRef)({}),o=(0,x.useRef)(e),a=(0,x.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,x.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},s));return(0,x.useEffect)(()=>{let e=pl(i.current);a.current="mounted"===l?e:"none"},[l]),pa(()=>{let t=i.current,n=o.current,r=n!==e;if(r){let r=a.current,i=pl(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]),pa(()=>{if(n){let e=e=>{let t=pl(i.current),r=t.includes(e.animationName);e.target===n&&r&&(0,to.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=pl(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,x.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):x.Children.only(n),o=h9(r.ref,i.ref),a="function"==typeof n;return a||r.isPresent?(0,x.cloneElement)(i,{ref:o}):null};function pl(e){return(null==e?void 0:e.animationName)||"none"}ps.displayName="Presence";let pu=b["useId".toString()]||(()=>void 0),pc=0;function pd(e){let t=e+"CollectionProvider",[n,r]=h6(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=h9(t,i.collectionRef);return x.createElement(pe,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=x.useRef(null),s=h9(t,a),c=o(l,n);return x.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),x.createElement(pe,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=x.useRef(null),o=x.useRef(new Map).current;return x.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}let pf="dismissableLayer.update",ph=(0,x.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pp=(0,x.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,x.useContext)(ph),[f,h]=(0,x.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,x.useState)({}),v=h9(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),j=f?g.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,k=j>=b,S=function(e,t=null==globalThis?void 0:globalThis.document){let n=po(e),r=(0,x.useRef)(!1),i=(0,x.useRef)(()=>{});return(0,x.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){pv("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));!k||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),_=function(e,t=null==globalThis?void 0:globalThis.document){let n=po(e),r=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{e.target&&!r.current&&pv("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,n=[...d.branches].some(e=>e.contains(t));n||(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=po(e);(0,x.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=j===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,x.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),pm(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,x.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pm())},[f,d]),(0,x.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pf,e),()=>document.removeEventListener(pf,e)},[]),(0,x.createElement)(pi.div,(0,w.Z)({},c,{ref:v,style:{pointerEvents:E?k?"auto":"none":void 0,...e.style},onFocusCapture:h8(e.onFocusCapture,_.onFocusCapture),onBlurCapture:h8(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:h8(e.onPointerDownCapture,S.onPointerDownCapture)}))});function pm(){let e=new CustomEvent(pf);document.dispatchEvent(e)}function pv(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,to.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,x.createElement)(pi.span,(0,w.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 pg="NavigationMenu",[py,px,pb]=pd(pg),[pw,pj,pE]=pd(pg),[pk,pS]=h6(pg,[pb,pE]),[p_,pC]=pk(pg),[pO,pM]=pk(pg),[pT,pA]=pk("NavigationMenuItem"),pP=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pC("NavigationMenuIndicator",n),o=px(n),[a,s]=(0,x.useState)(null),[l,u]=(0,x.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,x.useEffect)(()=>{var e;let t=o(),n=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;n&&s(n)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pz(a,f),pz(i.indicatorTrack,f),l?(0,x.createElement)(pi.div,(0,w.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"),pN=((e,t)=>{let n=pC(pP,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return pa(()=>{r(e.value,{ref:t,...e})},[e,t,r]),pa(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),pR=(0,x.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=pC(pP,n),d=(0,x.useRef)(null),f=h9(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=px(n),v=(0,x.useRef)(null),{onItemDismiss:g}=c;(0,x.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(pN,t),()=>e.removeEventListener(pN,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,x.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let n=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=r===c.value,a=i===t.indexOf(r);if(!o&&!a)return v.current;let s=(()=>{if(n!==i){if(o&&-1!==i)return n>i?"from-end":"from-start";if(a&&-1!==n)return n>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,r]);return(0,x.createElement)(pD,{asChild:!0},(0,x.createElement)(pp,(0,w.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pN,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:h8(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:h8(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:h8(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,n="Tab"===e.key&&!t;if(n){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),n=document.activeElement,i=t.findIndex(e=>e===n),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(pF(s))e.preventDefault();else{var r;null===(r=o.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:h8(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pD=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=pC("NavigationMenuViewport",n),a=h9(t,o.onViewportChange),s=pM(pP,e.__scopeNavigationMenu),[l,u]=(0,x.useState)(null),[c,d]=(0,x.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 pz(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,x.createElement)(pi.div,(0,w.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:h8(e.onPointerEnter,o.onContentEnter),onPointerLeave:h8(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,x.createElement)(ps,{key:e,present:n||i},(0,x.createElement)(pR,(0,w.Z)({},r,{ref:h7(t,e=>{i&&e&&d(e)})})))}))},(0,x.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pC("FocusGroup",n);return(0,x.createElement)(pw.Provider,{scope:n},(0,x.createElement)(pw.Slot,{scope:n},(0,x.createElement)(pi.div,(0,w.Z)({dir:i.dir},r,{ref:t}))))})),pL=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pj(n),o=pC("FocusGroupItem",n);return(0,x.createElement)(pw.ItemSlot,{scope:n},(0,x.createElement)(pi.button,(0,w.Z)({},r,{ref:t,onKeyDown:h8(e.onKeyDown,e=>{let t=["Home","End",...pL].includes(e.key);if(t){let t=i().map(e=>e.ref.current),n="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([n,"ArrowUp","End"].includes(e.key)&&t.reverse(),pL.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>pF(t)),e.preventDefault()}})})))};function pF(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pz(e,t){let n=po(t);pa(()=>{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 pV=n(38617);let pZ=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(d8,{...r,ref:t,className:(0,em.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 pI(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,pV.F)();return(0,y.jsxs)(d6,{value:i,tabIndex:r,className:(0,em.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,y.jsx)(pZ,{value:"system",children:(0,y.jsx)(ln,{className:n,sideOffset:16,content:"System",children:(0,y.jsx)(lo.$Iz,{})})}),(0,y.jsx)(pZ,{value:"light",children:(0,y.jsx)(ln,{className:n,sideOffset:16,content:"Light",children:(0,y.jsx)(lo.JaG,{})})}),(0,y.jsx)(pZ,{value:"dark",children:(0,y.jsx)(ln,{className:n,sideOffset:16,content:"Dark",children:(0,y.jsx)(lo.osk,{})})})]})}var pB=n(74424);function pH(e){let{title:t,children:n,rootClassName:r,className:i,message:o,showBorderInactive:a,...s}=e,{getRootProps:l,getInputProps:u,isDragActive:c}=(0,pB.uI)(s);return(0,y.jsxs)("div",{...l(),className:(0,em.cx)("outline-none",r),children:[(0,y.jsxs)("div",{className:(0,em.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",a?["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,y.jsx)("input",{...u()}),o&&(0,y.jsx)(t2,{size:"14",children:t||"Drop your files here or click to to open the file picker."})]}),n]})}var pU=n(14582),pW=n(63739),pq=n(13980),p$=n.n(pq),pK=n(72779),pY=n.n(pK),pG=n(47440),pX=n(59309),pQ=n(19067),pJ=n(71220),p0=n(28142);function p1(e){return"bandwidth"in e?e.bandwidth():0}var p2=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function p4(){return(p4=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,p2),g=null!=m?m:(0,pJ.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+p1(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,p0.Z)(r(e)))?n:0)+y;return{index:t,from:new pQ.Z({x:0,y:o}),to:new pQ.Z({x:i,y:o})}});return x.createElement(pX.Z,{className:pY()("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 x.createElement(pG.default,p4({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}p3.propTypes={tickValues:p$().array,width:p$().number.isRequired};var p5=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function p6(){return(p6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,p5),g=null!=p?p:(0,pJ.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+p1(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,p0.Z)(r(e)))?n:0)+y;return{index:t,from:new pQ.Z({x:o,y:0}),to:new pQ.Z({x:o,y:i})}});return x.createElement(pX.Z,{className:pY()("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 x.createElement(pG.default,p6({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}p8.propTypes={tickValues:p$().array,height:p$().number.isRequired};var p7=n(64183),p9=n(8597);function me(e){var t=e.id,n=e.width,r=e.height,i=e.children;return x.createElement("defs",null,x.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}me.propTypes={id:p$().string.isRequired,width:p$().number.isRequired,height:p$().number.isRequired,children:p$().node.isRequired};var mt={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function mn(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 x.createElement(me,{id:t,width:n,height:r},!!h&&x.createElement("rect",{className:pY()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return x.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:pY()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case mt.horizontal:return"M 0,"+t/2+" l "+t+",0";case mt.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 mt.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 mt.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}mn.propTypes={id:p$().string.isRequired,width:p$().number.isRequired,height:p$().number.isRequired,className:p$().string,background:p$().string,stroke:p$().string,strokeWidth:p$().oneOfType([p$().number,p$().string]),strokeDasharray:p$().oneOfType([p$().string,p$().number]),strokeLinecap:p$().oneOf(["square","butt","round","inherit"]),shapeRendering:p$().oneOfType([p$().string,p$().number]),orientation:p$().array};var mr=["tooltipOpen"];function mi(){return(mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mo);return x.createElement("div",ma({ref:t,className:pY()("visx-tooltip",n),style:ma({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function mu(){return(mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mp),g=!1,y=!1;if(u&&l){var b=void 0===r?0:r,w=void 0===f?0:f;if(l.width){var j=b+o+u.width-l.width,E=u.width-b-o;g=j>0&&j>E}else{var k=b+o+u.width-window.innerWidth,S=u.width-b-o;g=k>0&&k>S}if(l.height){var _=w+s+u.height-l.height,C=u.height-w-s;y=_>0&&_>C}else y=w+s+u.height>window.innerHeight;b=g?b-u.width-o:b+o,w=y?w-u.height-s:w+s,t="translate("+(b=Math.round(b))+"px, "+(w=Math.round(w))+"px)"}return x.createElement(ml,mm({ref:m,style:mm({left:0,top:0,transform:t},!p&&d)},v),x.createElement(mh,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},n))}mv.propTypes={nodeRef:p$().oneOfType([p$().string,p$().func,p$().object])};var mg=((Em=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=x.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,mc(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:to.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():md,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():md}},n.render=function(){return x.createElement(mv,mu({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(x.PureComponent)).displayName="withBoundingRects("+(mv.displayName||"")+")",Em),my=n(99985);function mx(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 mO({},t,{isBrushing:!0,extent:mO({},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=mO({},e,{isBrushing:!1,start:mO({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:mO({},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,mM(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 x.createElement(my.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 x.createElement("g",null,h&&x.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:mT}),x.createElement("rect",mO({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}(x.Component);function mP(){return(mP=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 mP({},e,{isBrushing:!0,extent:mP({},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 mP({},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=mP({},c);r&&r(c),n.updateBrush(function(t){return mP({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?mw(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 mP({},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=mP({},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=mP({},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,mN(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,w=this.state.brushingType,j=this.handles(),E=this.corners(),k=this.getBrushWidth(),S=this.getBrushHeight(),_=new Set(p);return x.createElement(pX.Z,{className:"visx-brush",top:o,left:a},x.createElement(my.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===w:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return x.createElement(pU.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,mZ),g=o,y=s,b=a,w=l;return void 0!==m&&!m||g||y||b||w||(g="0",y="0",b="0",w="1"),x.createElement("defs",null,x.createElement("linearGradient",mI({id:n,x1:g,y1:b,x2:y,y2:w,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&x.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&x.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}mB.propTypes={id:p$().string.isRequired,from:p$().string,to:p$().string,x1:p$().oneOfType([p$().string,p$().number]),x2:p$().oneOfType([p$().string,p$().number]),y1:p$().oneOfType([p$().string,p$().number]),y2:p$().oneOfType([p$().string,p$().number]),fromOffset:p$().oneOfType([p$().string,p$().number]),fromOpacity:p$().oneOfType([p$().string,p$().number]),toOffset:p$().oneOfType([p$().string,p$().number]),toOpacity:p$().oneOfType([p$().string,p$().number]),rotate:p$().oneOfType([p$().string,p$().number]),transform:p$().string,children:p$().node,vertical:p$().bool};var mH=n(78307),mU=n(74747);function mW(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 mq=n(12436),m$=n.n(mq),mK=n(55746),mY=n(45742),mG=n(27266),mX=["id","markerWidth","markerHeight","markerUnits","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);return x.createElement("defs",null,x.createElement("marker",mQ({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}mJ.propTypes={id:p$().string.isRequired,size:p$().number,markerWidth:p$().oneOfType([p$().string,p$().number]),markerHeight:p$().oneOfType([p$().string,p$().number]),markerUnits:p$().string,refX:p$().oneOfType([p$().string,p$().number]),refY:p$().oneOfType([p$().string,p$().number]),strokeWidth:p$().number,children:p$().node.isRequired};var m0=["id","size","strokeWidth"];function m1(){return(m1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m0),s=2*r+o,l=s/2;return x.createElement(mJ,m1({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),x.createElement("circle",{r:r,cx:l,cy:l}))}var m4=n(64170),m3={top:"top",left:"left",bottom:"bottom"};function m5(){return(m5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vr),k=null!=g?g:"tickFormat"in v?v.tickFormat():ve.Z,S=h===m3.left,_=h===m3.top,C=_||h===m3.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}(v),M=S||_?-1:1,T=v.range(),A=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:vn({start:0,end:0},t)),P=vt({x:Number(T[0])+.5-A.start,y:0},C),N=vt({x:Number(T[T.length-1])+.5+A.end,y:0},C),R=(null!=w?w:(0,pJ.Z)(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),D=R.map(function(e){var t=e.value,n=e.index,r=(0,p0.Z)(O(t));return{value:t,index:n,from:vt({x:r,y:0},C),to:vt({x:r,y:b*M},C),formattedValue:k(t,n,R)}});return x.createElement(pX.Z,{className:pY()("visx-axis",i),top:void 0===j?0:j,left:void 0===u?0:u},r(vi({},E,{axisFromPoint:P,axisToPoint:N,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:C,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:k,tickLength:b,tickPosition:O,tickSign:M,ticks:D})))}var va=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vs(){return(vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,va);return x.createElement(vo,vs({axisClassName:pY()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:m3.bottom,tickLabelProps:void 0===r?vl:r,tickLength:void 0===i?8:i},o))}var vc=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vd(){return(vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vc);return x.createElement(vo,vd({axisClassName:pY()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:m3.left,tickLabelProps:void 0===r?vf:r,tickLength:void 0===i?8:i},o))}let vp=e=>new Date((null==e?void 0:e.timestamp)||0),vm=e=>(null==e?void 0:e.value)||0,vv="var(--colors-hiContrast)",vg={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:vv},vy={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:vv};function vx(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,y.jsxs)(pX.Z,{left:d||o.left,top:c||o.top,children:[(0,y.jsx)(m2,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,y.jsx)(mB,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,y.jsx)(mK.Z,{data:t,x:e=>a(vp(e))||0,y:e=>s(vm(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?mY.ZP:mG.Z}),!l&&(0,y.jsx)(vu,{top:i,scale:a,numTicks:r>520?10:5,stroke:vv,tickStroke:vv,tickLabelProps:()=>vg}),!u&&(0,y.jsx)(vh,{scale:s,numTicks:5,stroke:vv,tickStroke:vv,tickLabelProps:()=>vy}),h]})}var vb=n(6692);let vw={inherit:vb.inherit,current:vb.current,transparent:vb.transparent,black:vb.black,white:vb.white,slate:vb.slate,zinc:vb.zinc,neutral:vb.neutral,stone:vb.stone,red:vb.red,orange:vb.orange,amber:vb.amber,yellow:vb.yellow,lime:vb.lime,green:vb.green,emerald:vb.emerald,teal:vb.teal,cyan:vb.cyan,sky:vb.sky,blue:vb.blue,indigo:vb.indigo,violet:vb.violet,purple:vb.purple,fuchsia:vb.fuchsia,pink:vb.pink,rose:vb.rose,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 vj=n(96206);let vE={top:10,bottom:15,left:10,right:10},vk="brush_pattern",vS="brush_gradient",v_=m$()(e=>e(),15),vC=(0,mH.Z)(e=>new Date((null==e?void 0:e.timestamp)||0)).left;void 0===Ev&&(Ev={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===Eg&&(Eg=function(e,t){return x.createElement("div",t,e)});var vO=n(70390),vM=n(3440),vT=n.n(vM);function vA(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:b,enableTooltipGlyph:w,renderTooltipGlyph:j,renderLineSeries:E,sharedTooltip:k,showHorizontalCrosshair:S,showTooltip:_,showVerticalCrosshair:C,snapTooltipToDatum:O,stackOffset:M,margin:T,theme:A,xAxisOrientation:P,yAxisOrientation:N,AreaSeries:R,AreaStack:D,Axis:L,BarGroup:F,BarSeries:z,BarStack:V,Grid:Z,LineSeries:I,Tooltip:B,XYChart:H}=e;return(0,y.jsxs)(H,{theme:A.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:T,captureEvents:!0,children:[(0,y.jsx)("g",{children:(0,y.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,y.jsx)(mB,{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,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(mn,{id:"pattern-".concat(vP(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,y.jsx)(mB,{id:"gradient-".concat(vP(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,y.jsx)(Z,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),b&&(0,y.jsx)(V,{offset:l.stackOffset,children:c.map(e=>(0,y.jsx)(z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vN(t,e,l)},e))}),g&&(0,y.jsx)(F,{children:c.map(e=>(0,y.jsx)(z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vN(t,e,l)},e))}),m&&(0,y.jsx)(y.Fragment,{children:c.map(e=>(0,y.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vN(t,e,l),fill:vN(t,e,l),curve:a},e))}),v&&(0,y.jsx)(D,{curve:a,offset:l.stackOffset,renderLine:"wiggle"!==M,children:c.map(e=>(0,y.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vN(t,e,l),fill:vN(t,e,l)},e))}),E&&(0,y.jsx)(y.Fragment,{children:c.map(e=>{var t,n;return(0,y.jsx)(I,{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,y.jsx)(L,{orientation:P,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,vj.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:A.labels.color,fontFamily:A.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,y.jsx)(L,{label:null==M?"SC":"expand"===M?"Fraction of total":"",orientation:N,numTicks:p,tickLength:12,animationTrajectory:o,tickFormat:l.formatTickY,tickTransform:"translate(-300px, 0)",tickLabelProps:e=>({...e,fill:A.labels.color,fontFamily:A.labels.fontFamily,fontWeight:"500",fontSize:"8"})},"temp-axis-".concat(o)),_&&(0,y.jsx)(B,{showHorizontalCrosshair:S,showVerticalCrosshair:C,snapTooltipToDatumX:O,snapTooltipToDatumY:O,showDatumGlyph:O&&!g,showSeriesGlyphs:k&&!g,renderGlyph:w?j: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=k?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,vj.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=vT()(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,y.jsxs)("div",{className:(0,em.cx)("flex flex-col gap-2 py-1"),children:[(0,y.jsx)(t1,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,y.jsx)(cR,{color:"panel",className:"w-full"}),(0,y.jsx)("div",{className:(0,em.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,y.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,y.jsx)(t1,{weight:"semibold",children:t}),(0,y.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,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(t1,{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,em.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,y.jsx)(t1,{size:"12",style:{textAlign:"end"},className:(0,em.cx)(a===c?"underline":""),children:null==d||Number.isNaN(d)?"–":s?(0,y.jsx)(s,{value:d}):l.format?l.format(d):d})]},c)}),n.length>1&&f&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{className:"pt-2",children:"total"}),(0,y.jsx)(t1,{size:"12",weight:"bold",className:"pt-2 text-end",children:s?(0,y.jsx)(s,{value:r}):l.format?l.format(r):r})]})]})]},t)})})]})}})]})}function vP(e,t){return"".concat(e,"-").concat(t)}function vN(e,t,n){var r;let i=vP(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 vR=n(24037),vD=n(86707);function vL(e){var t=e.top,n=e.left,r=e.className,i=e.children;return x.createElement(pX.Z,{className:pY()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}vL.propTypes={top:p$().number,left:p$().number,className:p$().string,children:p$().node};var vF=["children","className","top","left","size"];function vz(){return(vz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vF),s=(0,vR.Z)();return(s.type(vD.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?x.createElement(x.Fragment,null,t({path:s})):x.createElement(vL,{top:r,left:i},x.createElement("path",vz({className:pY()("visx-glyph-star",n),d:s()||""},a)))}vV.propTypes={children:p$().func,className:p$().string,top:p$().number,left:p$().number,size:p$().oneOfType([p$().number,p$().func])};var vZ=["top","left","className"];function vI(){return(vI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vZ);return x.createElement(vL,{top:void 0===t?0:t,left:void 0===n?0:n},x.createElement("circle",vI({className:pY()("visx-glyph-dot",r)},i)))}vB.propTypes={className:p$().string,top:p$().number,left:p$().number,r:p$().number,cx:p$().number,cy:p$().number};var vH=n(9135),vU=["children","className","top","left","size"];function vW(){return(vW=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vU),s=(0,vR.Z)();return(s.type(vH.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?x.createElement(x.Fragment,null,t({path:s})):x.createElement(vL,{top:r,left:i},x.createElement("path",vW({className:pY()("visx-glyph-cross",n),d:s()||""},a)))}vq.propTypes={children:p$().func,className:p$().string,top:p$().number,left:p$().number,size:p$().oneOfType([p$().number,p$().func])};var v$=n(46385),vK=n(20651),vY={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"]},vG=vY.gray,vX=vG[7],vQ=[vY.cyan[9],vY.cyan[3],vY.yellow[5],vY.red[4],vY.grape[8],vY.grape[5],vY.pink[9]];function vJ(){return(vJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)v3(e,n,{get:t[n],enumerable:!0})})(v5,{assign:()=>gC,colors:()=>gk,createStringInterpolator:()=>Eb,skipAnimation:()=>gS,to:()=>Ew,willAdvance:()=>g_});var v6=gf(),v8=e=>gl(e,v6),v7=gf();v8.write=e=>gl(e,v7);var v9=gf();v8.onStart=e=>gl(e,v9);var ge=gf();v8.onFrame=e=>gl(e,ge);var gt=gf();v8.onFinish=e=>gl(e,gt);var gn=[];v8.setTimeout=(e,t)=>{let n=v8.now()+t,r=()=>{let e=gn.findIndex(e=>e.cancel==r);~e&&gn.splice(e,1),ga-=~e?1:0},i={time:n,handler:e,cancel:r};return gn.splice(gr(n),0,i),ga+=1,gu(),i};var gr=e=>~(~gn.findIndex(t=>t.time>e)||~gn.length);v8.cancel=e=>{v9.delete(e),ge.delete(e),gt.delete(e),v6.delete(e),v7.delete(e)},v8.sync=e=>{gs=!0,v8.batchedUpdates(e),gs=!1},v8.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,v8.onStart(n)}return r.handler=e,r.cancel=()=>{v9.delete(n),t=null},r};var gi="undefined"!=typeof window?window.requestAnimationFrame:()=>{};v8.use=e=>gi=e,v8.now="undefined"!=typeof performance?()=>performance.now():Date.now,v8.batchedUpdates=e=>e(),v8.catch=console.error,v8.frameLoop="always",v8.advance=()=>{"demand"!==v8.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):gd()};var go=-1,ga=0,gs=!1;function gl(e,t){gs?(t.delete(e),e(0)):(t.add(e),gu())}function gu(){go<0&&(go=0,"demand"!==v8.frameLoop&&gi(gc))}function gc(){~go&&(gi(gc),v8.batchedUpdates(gd))}function gd(){let e=go;go=v8.now();let t=gr(go);if(t&&(gh(gn.splice(0,t),e=>e.handler()),ga-=t),!ga){go=-1;return}v9.flush(),v6.flush(e?Math.min(64,go-e):16.667),ge.flush(),v7.flush(),gt.flush()}function gf(){let e=new Set,t=e;return{add(n){ga+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(ga-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,ga-=t.size,gh(t,t=>t(n)&&e.add(t)),ga+=e.size,t=e)}}}function gh(e,t){e.forEach(e=>{try{t(e)}catch(e){v8.catch(e)}})}function gp(){}var gm=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),gv={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 gg(e,t){if(gv.arr(e)){if(!gv.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function gx(e,t,n){if(gv.arr(e)){for(let r=0;rgv.und(e)?[]:gv.arr(e)?e:[e];function gw(e,t){if(e.size){let n=Array.from(e);e.clear(),gy(n,t)}}var gj=(e,...t)=>gw(e,e=>e(...t)),gE=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),gk=null,gS=!1,g_=gp,gC=e=>{e.to&&(Ew=e.to),e.now&&(v8.now=e.now),void 0!==e.colors&&(gk=e.colors),null!=e.skipAnimation&&(gS=e.skipAnimation),e.createStringInterpolator&&(Eb=e.createStringInterpolator),e.requestAnimationFrame&&v8.use(e.requestAnimationFrame),e.batchedUpdates&&(v8.batchedUpdates=e.batchedUpdates),e.willAdvance&&(g_=e.willAdvance),e.frameLoop&&(v8.frameLoop=e.frameLoop)},gO=new Set,gM=[],gT=[],gA=0,gP={get idle(){return!gO.size&&!gM.length},start(e){gA>e.priority?(gO.add(e),v8.onStart(gN)):(gR(e),v8(gL))},advance:gL,sort(e){if(gA)v8.onFrame(()=>gP.sort(e));else{let t=gM.indexOf(e);~t&&(gM.splice(t,1),gD(e))}},clear(){gM=[],gO.clear()}};function gN(){gO.forEach(gR),gO.clear(),v8(gL)}function gR(e){gM.includes(e)||gD(e)}function gD(e){gM.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(gM,t=>t.priority>e.priority),0,e)}function gL(e){let t=gT;for(let n=0;n0}var gF="[-+]?\\d*\\.?\\d+",gz=gF+"%";function gV(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var gZ=RegExp("rgb"+gV(gF,gF,gF)),gI=RegExp("rgba"+gV(gF,gF,gF,gF)),gB=RegExp("hsl"+gV(gF,gz,gz)),gH=RegExp("hsla"+gV(gF,gz,gz,gF)),gU=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gW=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gq=/^#([0-9a-fA-F]{6})$/,g$=/^#([0-9a-fA-F]{8})$/;function gK(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 gY(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=gK(i,r,e+1/3),a=gK(i,r,e),s=gK(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function gG(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function gX(e){let t=parseFloat(e);return(t%360+360)%360/360}function gQ(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function gJ(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function g0(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gq.exec(e))?parseInt(t[1]+"ff",16)>>>0:gk&&void 0!==gk[e]?gk[e]:(t=gZ.exec(e))?(gG(t[1])<<24|gG(t[2])<<16|gG(t[3])<<8|255)>>>0:(t=gI.exec(e))?(gG(t[1])<<24|gG(t[2])<<16|gG(t[3])<<8|gQ(t[4]))>>>0:(t=gU.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=g$.exec(e))?parseInt(t[1],16)>>>0:(t=gW.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gB.exec(e))?(255|gY(gX(t[1]),gJ(t[2]),gJ(t[3])))>>>0:(t=gH.exec(e))?(gY(gX(t[1]),gJ(t[2]),gJ(t[3]))|gQ(t[4]))>>>0:null;if(null===n)return e;n=n||0;let r=(4278190080&n)>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var g1=(e,t,n)=>{if(gv.fun(e))return e;if(gv.arr(e))return g1({range:e,output:t,extrapolate:n});if(gv.str(e.output[0]))return Eb(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)}},g2=Symbol.for("FluidValue.get"),g4=Symbol.for("FluidValue.observers"),g3=e=>!!(e&&e[g2]),g5=e=>e&&e[g2]?e[g2]():e,g6=e=>e[g4]||null;function g8(e,t){let n=e[g4];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var g7=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");g9(this,e)}},g9=(e,t)=>yn(e,g2,t);function ye(e,t){if(e[g2]){let n=e[g4];n||yn(e,g4,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function yt(e,t){let n=e[g4];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[g4]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var yn=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),yr=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,yi=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yo=RegExp(`(${yr.source})(%|[a-z]+)`,"i"),ya=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ys=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,yl=e=>{let[t,n]=yu(e);if(!t||gE())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&&ys.test(n))return yl(n);else if(n)return n;return e},yu=e=>{let t=ys.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},yc=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,yd=e=>{Ej||(Ej=gk?RegExp(`(${Object.keys(gk).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>g5(e).replace(ys,yl).replace(yi,g0).replace(Ej,g0)),n=t.map(e=>e.match(yr).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]})),i=r.map(t=>g1({...e,output:t}));return e=>{let n=!yo.test(t[0])&&t.find(e=>yo.test(e))?.replace(yr,""),r=0;return t[0].replace(yr,()=>`${i[r++](e)}${n||""}`).replace(ya,yc)}},yf="react-spring: ",yh=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${yf}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},yp=yh(console.warn),ym=yh(console.warn);function yv(e){return gv.str(e)&&("#"==e[0]||/\d/.test(e)||!gE()&&ys.test(e)||e in(gk||{}))}var yg=gE()?x.useEffect:x.useLayoutEffect,yy=()=>{let e=(0,x.useRef)(!1);return yg(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function yx(){let e=(0,x.useState)()[1],t=yy();return()=>{t.current&&e(Math.random())}}var yb=e=>(0,x.useEffect)(e,yw),yw=[];function yj(e){let t=(0,x.useRef)();return(0,x.useEffect)(()=>{t.current=e}),t.current}var yE=Symbol.for("Animated:node"),yk=e=>!!e&&e[yE]===e,yS=e=>e&&e[yE],y_=(e,t)=>gm(e,yE,t),yC=e=>e&&e[yE]&&e[yE].getPayload(),yO=class{constructor(){y_(this,this)}getPayload(){return this.payload||[]}},yM=class extends yO{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,gv.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yM(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return gv.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,gv.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},yT=class extends yM{constructor(e){super(0),this._string=null,this._toString=g1({output:[e,e]})}static create(e){return new yT(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(gv.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=g1({output:[this.getValue(),e]})),this._value=0,super.reset()}},yA={dependencies:null},yP=class extends yO{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return gx(this.source,(n,r)=>{yk(n)?t[r]=n.getValue(e):g3(n)?t[r]=g5(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&gy(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return gx(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yA.dependencies&&g3(e)&&yA.dependencies.add(e);let t=yC(e);t&&gy(t,e=>this.add(e))}},yN=class extends yP{constructor(e){super(e)}static create(e){return new yN(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(yR)),!0)}};function yR(e){let t=yv(e)?yT:yM;return t.create(e)}function yD(e){let t=yS(e);return t?t.constructor:gv.arr(e)?yN:yv(e)?yT:yM}var yL=(e,t)=>{let n=!gv.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,x.forwardRef)((r,i)=>{let o=(0,x.useRef)(null),a=n&&(0,x.useCallback)(e=>{o.current=(i&&(gv.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return yA.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yP(e),yA.dependencies=null,[e,n]}(r,t),u=yx(),c=()=>{let e=o.current;if(n&&!e)return;let r=!!e&&t.applyAnimatedValues(e,s.getValue(!0));!1===r&&u()},d=new yF(c,l),f=(0,x.useRef)();yg(()=>(f.current=d,gy(l,e=>ye(e,d)),()=>{f.current&&(gy(f.current.deps,e=>yt(e,f.current)),v8.cancel(f.current.update))})),(0,x.useEffect)(c,[]),yb(()=>()=>{let e=f.current;gy(e.deps,t=>yt(t,e))});let h=t.getComponentProps(s.getValue());return x.createElement(e,{...h,ref:a})})},yF=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&v8.write(this.update)}},yz=Symbol.for("AnimatedComponent"),yV=e=>gv.str(e)?e:e&&gv.str(e.displayName)?e.displayName:gv.fun(e)&&e.name||null;function yZ(e,...t){return gv.fun(e)?e(...t):e}var yI=(e,t)=>!0===e||!!(t&&e&&(gv.fun(e)?e(t):gb(e).includes(t))),yB=(e,t)=>gv.obj(e)?t&&e[t]:e,yH=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,yU=e=>e,yW=(e,t=yU)=>{let n=yq;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);gv.und(n)||(r[i]=n)}return r},yq=["config","onProps","onStart","onChange","onPause","onResume","onRest"],y$={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 yK(e){let t=function(e){let t={},n=0;if(gx(e,(e,r)=>{!y$[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return gx(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function yY(e){return e=g5(e),gv.arr(e)?e.map(yY):yv(e)?v5.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yG(e){for(let t in e)return!0;return!1}function yX(e){return gv.fun(e)||gv.arr(e)&&gv.obj(e[0])}function yQ(e,t){e.ref?.delete(e),t?.delete(e)}function yJ(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var y0={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},y1=class{constructor(){this.velocity=0,Object.assign(this,y0)}};function y2(e,t){if(gv.und(t.decay)){let n=!gv.und(t.tension)||!gv.und(t.friction);!n&&gv.und(t.frequency)&&gv.und(t.damping)&&gv.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var y4=[],y3=class{constructor(){this.changed=!1,this.values=y4,this.toValues=null,this.fromValues=y4,this.config=new y1,this.immediate=!1}};function y5(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=yI(n.cancel??r?.cancel,t);if(c)h();else{gv.und(n.pause)||(i.paused=yI(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||yI(e,t)),l=yZ(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-v8.now()}function f(){l>0&&!v5.skipAnimation?(i.delayed=!0,u=v8.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 y6=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?y9(e.get()):t.every(e=>e.noop)?y8(e.get()):y7(e.get(),t.every(e=>e.finished)),y8=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),y7=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),y9=e=>({value:e,cancelled:!0,finished:!1});function xe(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=yW(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)&&y9(r)||i!==n.asyncId&&y7(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new xn,a=new xr;return(async()=>{if(v5.skipAnimation)throw xt(n),a.result=y7(r,!1),c(a),a;p(o);let s=gv.obj(e)?{...e}:{...t,to:e};s.parentId=i,gx(f,(e,t)=>{gv.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(v5.skipAnimation)return xt(n),y7(r,!1);try{let t;t=gv.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=y7(r.get(),!0,!1)}catch(e){if(e instanceof xn)d=e.result;else if(e instanceof xr)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 gv.fun(a)&&v8.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function xt(e,t){gw(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xn=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.")}},xr=class extends Error{constructor(){super("SkipAnimationSignal")}},xi=e=>e instanceof xa,xo=1,xa=class extends g7{constructor(){super(...arguments),this.id=xo++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=yS(this);return e&&e.getValue()}to(...e){return v5.to(this,e)}interpolate(...e){return yp(`${yf}The "interpolate" function is deprecated in v9 (use "to" instead)`),v5.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){g8(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||gP.sort(this),g8(this,{type:"priority",parent:this,priority:e})}},xs=Symbol.for("SpringPhase"),xl=e=>(1&e[xs])>0,xu=e=>(2&e[xs])>0,xc=e=>(4&e[xs])>0,xd=(e,t)=>t?e[xs]|=3:e[xs]&=-3,xf=(e,t)=>t?e[xs]|=4:e[xs]&=-5,xh=class extends xa{constructor(e,t){if(super(),this.animation=new y3,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,!gv.und(e)||!gv.und(t)){let n=gv.obj(e)?{...e}:{...t,from:e};gv.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(xu(this)||this._state.asyncTo)||xc(this)}get goal(){return g5(this.animation.to)}get velocity(){let e=yS(this);return e instanceof yM?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return xl(this)}get isAnimating(){return xu(this)}get isPaused(){return xc(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=yC(r.to);!a&&g3(r.to)&&(i=gb(g5(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==yT?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=gv.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(gv.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=!gv.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),n=-(.001*o.friction)*t,i=(e+n)/o.mass;t+=1*i,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=yS(this),l=s.getValue();if(t){let e=g5(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 v8.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(xu(this)){let{to:e,config:t}=this.animation;v8.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){let t=this.queue||(this.queue=[]);return t.push(e),this}start(e,t){let n;return gv.und(e)?(n=this.queue||[],this.queue=[]):n=[gv.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>{let t=this._update(e);return t})).then(e=>y6(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),xt(this._state,e&&this._lastCallId),v8.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=gv.obj(n)?n[t]:n)||yX(n))&&(n=void 0),null==(r=gv.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return xl(this)||(e.reverse&&([n,r]=[r,n]),r=g5(r),gv.und(r)?yS(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yW(e,(e,t)=>/^on/.test(t)?yB(e,n):e)),xx(this,e,"onProps"),xb(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 y5(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{xc(this)||(xf(this,!0),gj(o.pauseQueue),xb(this,"onPause",y7(this,xp(this,this.animation.to)),this))},resume:()=>{xc(this)&&(xf(this,!1),xu(this)&&this._resume(),gj(o.resumeQueue),xb(this,"onResume",y7(this,xp(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=xm(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(y9(this));let r=!gv.und(e.to),i=!gv.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(y9(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||gv.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!gg(d,u);f&&(s.from=d),d=g5(d);let h=!gg(c,l);h&&this._focus(c);let p=yX(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&&(y2(n={...n},t),t={...n,...t}),y2(e,t),Object.assign(e,t),y0)null==e[r]&&(e[r]=y0[r]);let{frequency:r,damping:i}=e,{mass:o}=e;gv.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,yZ(t.config,o),t.config!==a.config?yZ(a.config,o):void 0);let y=yS(this);if(!y||gv.und(c))return n(y7(this,!0));let x=gv.und(t.reset)?i&&!t.default:!gv.und(d)&&yI(t.reset,o),b=x?d:this.get(),w=yY(c),j=gv.num(w)||gv.arr(w)||yv(w),E=!p&&(!j||yI(a.immediate||t.immediate,o));if(h){let e=yD(c);if(e!==y.constructor){if(E)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=g3(c),_=!1;if(!S){let e=x||!xl(this)&&f;(h||e)&&(S=!(_=gg(yY(b),w))),(gg(s.immediate,E)||E)&&gg(m.decay,v)&&gg(m.velocity,g)||(S=!0)}if(_&&xu(this)&&(s.changed&&!x?S=!0:S||this._stop(l)),!p&&((S||g3(l))&&(s.values=y.getPayload(),s.toValues=g3(c)?null:k==yT?[1]:gb(w)),s.immediate==E||(s.immediate=E,E||x||this._set(l)),S)){let{onRest:e}=s;gy(xy,e=>xx(this,t,e));let r=y7(this,xp(this,l));gj(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&v8.batchedUpdates(()=>{s.changed=!x,e?.(r,this),x?yZ(a.onRest,r):s.onStart?.(r,this)})}x&&this._set(b),p?n(xe(t.to,t,this._state,this)):S?this._start():xu(this)&&!h?this._pendingCalls.add(n):n(y8(b))}_focus(e){let t=this.animation;e!==t.to&&(g6(this)&&this._detach(),t.to=e,g6(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;g3(t)&&(ye(t,this),xi(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;g3(e)&&yt(e,this)}_set(e,t=!0){let n=g5(e);if(!gv.und(n)){let e=yS(this);if(!e||!gg(n,e.getValue())){let r=yD(n);e&&e.constructor==r?e.setValue(n):y_(this,r.create(n)),e&&v8.batchedUpdates(()=>{this._onChange(n,t)})}}return yS(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,xb(this,"onStart",y7(this,xp(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yZ(this.animation.onChange,e,this)),yZ(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;yS(this).reset(g5(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),xu(this)||(xd(this,!0),xc(this)||this._resume())}_resume(){v5.skipAnimation?this.finish():gP.start(this)}_stop(e,t){if(xu(this)){xd(this,!1);let n=this.animation;gy(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),g8(this,{type:"idle",parent:this});let r=t?y9(this.get()):y7(this.get(),xp(this,e??n.to));gj(this._pendingCalls,r),n.changed&&(n.changed=!1,xb(this,"onRest",r,this))}}};function xp(e,t){let n=yY(t),r=yY(e.get());return gg(r,n)}function xm(e,t=e.loop,n=e.to){let r=yZ(t);if(r){let i=!0!==r&&yK(r),o=(i||e).reverse,a=!i||i.reset;return xv({...e,loop:t,default:!1,pause:void 0,to:!o||yX(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function xv(e){let{to:t,from:n}=e=yK(e),r=new Set;return gv.obj(t)&&xg(t,r),gv.obj(n)&&xg(n,r),e.keys=r.size?Array.from(r):null,e}function xg(e,t){gx(e,(e,n)=>null!=e&&t.add(n))}var xy=["onStart","onRest","onChange","onPause","onResume"];function xx(e,t,n){e.animation[n]=t[n]!==yH(t,n)?yB(t[n],e.key):void 0}function xb(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var xw=["onStart","onChange","onRest"],xj=1,xE=class{constructor(e,t){this.id=xj++,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];gv.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(xv(e)),this}start(e){let{queue:t}=this;return(e?t=gb(e).map(xv):this.queue=[],this._flush)?this._flush(this,t):(xT(this,t),xk(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;gy(gb(t),t=>n[t].stop(!!e))}else xt(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(gv.und(e))this.start({pause:!0});else{let t=this.springs;gy(gb(e),e=>t[e].pause())}return this}resume(e){if(gv.und(e))this.start({pause:!1});else{let t=this.springs;gy(gb(e),e=>t[e].resume())}return this}each(e){gx(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,gw(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&&gw(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,gw(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)}v8.onFrame(this._onFrame)}};function xk(e,t){return Promise.all(t.map(t=>xS(e,t))).then(t=>y6(e,t))}async function xS(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=gv.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=gv.arr(i)||gv.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):gy(xw,n=>{let r=t[n];if(gv.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,gj(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===yH(t,"cancel");(c||h&&d.asyncId)&&f.push(y5(++e._lastAsyncId,{props:t,state:d,actions:{pause:gp,resume:gp,start(t,n){h?(xt(d,e._lastAsyncId),n(y9(e))):(t.onRest=s,n(xe(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=y6(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=xm(t,a,i);if(n)return xT(e,[n]),xS(e,n,!0)}return l&&v8.batchedUpdates(()=>l(p,e,e.item)),p}function x_(e,t){let n={...e.springs};return t&&gy(gb(t),e=>{gv.und(e.keys)&&(e=xv(e)),gv.obj(e.to)||(e={...e,to:void 0}),xM(n,e,e=>xO(e))}),xC(e,n),n}function xC(e,t){gx(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,ye(t,e))})}function xO(e,t){let n=new xh;return n.key=e,t&&ye(n,t),n}function xM(e,t,n){t.keys&&gy(t.keys,r=>{let i=e[r]||(e[r]=n(r));i._prepareNode(t)})}function xT(e,t){gy(t,t=>{xM(e.springs,t,t=>xO(t,e))})}var xA=({children:e,...t})=>{let n=(0,x.useContext)(xP),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,x.useState)(()=>({inputs:t,result:e()})),r=(0,x.useRef)(),i=r.current,o=i;if(o){let n=!!(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}=xP;return x.createElement(o,{value:t},e)},xP=(Object.assign(xA,x.createContext({})),xA.Provider._context=xA,xA.Consumer._context=xA,xA);xA.Provider=xP.Provider,xA.Consumer=xP.Consumer;var xN=()=>{let e=[],t=function(t){ym(`${yf}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 gy(e,(e,i)=>{if(gv.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 gy(e,e=>e.pause(...arguments)),this},t.resume=function(){return gy(e,e=>e.resume(...arguments)),this},t.set=function(t){gy(e,(e,n)=>{let r=gv.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return gy(e,(e,r)=>{if(gv.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 gy(e,e=>e.stop(...arguments)),this},t.update=function(t){return gy(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return gv.fun(e)?e(n,t):e};return t._getProps=n,t};function xR(e,t){let n=gv.fun(e),[[r],i]=function(e,t,n){let r=gv.fun(t)&&t;r&&!n&&(n=[]);let i=(0,x.useMemo)(()=>r||3==arguments.length?xN():void 0,[]),o=(0,x.useRef)(0),a=yx(),s=(0,x.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=x_(e,t),r=o.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t]);return r?xk(e,t):new Promise(r=>{xC(e,n),s.queue.push(()=>{r(xk(e,t))}),a()})}}),[]),l=(0,x.useRef)([...s.ctrls]),u=[],c=yj(e)||0;function d(e,n){for(let i=e;i{gy(l.current.slice(e,c),e=>{yQ(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,x.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>x_(e,u[t])),h=(0,x.useContext)(xA),p=yj(h),m=h!==p&&yG(h);yg(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],gy(e,e=>e())),gy(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(yJ(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),yb(()=>()=>{gy(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 xD(e,t,n){let r=gv.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,x.useMemo)(()=>r||3==arguments.length?xN():void 0,[]),h=gb(e),p=[],m=(0,x.useRef)(null),v=i?null:m.current;yg(()=>{m.current=p}),yb(()=>(gy(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{gy(m.current,e=>{e.expired&&clearTimeout(e.expirationId),yQ(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):xL++})}return gv.und(n)?e:gv.fun(n)?e.map(n):gb(n)}(h,r?r():t,v),y=i&&m.current||[];yg(()=>gy(y,({ctrl:e,item:t,key:n})=>{yQ(e,f),yZ(u,t,n)}));let b=[];if(v&&gy(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=g.indexOf(e.key))&&(p[t]=e)}),gy(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new xE},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;gy(b,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}gv.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let w=-a,j=yx(),E=yW(t),k=new Map,S=(0,x.useRef)(new Map),_=(0,x.useRef)(!1);gy(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=yZ(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=yZ(i,e.item,n),!(i=gv.obj(i)?yK(i):{to:i}).config){let t=d||E.config;i.config=yZ(t,e.item,n,o)}w+=a;let y={...E,delay:p+w,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&gv.und(y.from)){let i=r?r():t,o=gv.und(i.initial)||v?i.from:i.initial;y.from=yZ(o,e.item,n)}let{onResolve:x}=y;y.onResolve=e=>{yZ(x,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=yZ(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(j,r));return}}}e&&t.some(e=>e.expired)&&(S.current.delete(n),l&&(_.current=!0),j())}}};let b=x_(e.ctrl,y);"leave"===o&&l?S.current.set(e,{phase:o,springs:b,payload:y}):k.set(e,{phase:o,springs:b,payload:y})});let C=(0,x.useContext)(xA),O=yj(C),M=C!==O&&yG(C);yg(()=>{M&&gy(p,e=>{e.ctrl.start({default:C})})},[C]),gy(k,(e,t)=>{if(S.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),yg(()=>{gy(S.current.size?S.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),M&&"enter"==e&&r.start({default:C}),t&&(yJ(r,t.ref),(r.ref||f)&&!_.current?r.update(t):(r.start(t),_.current&&(_.current=!1)))})},i?void 0:n);let T=e=>x.createElement(x.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?x.createElement(i.type,{...i.props,key:gv.str(t.key)||gv.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[T,f]:T}var xL=1,xF=class extends xa{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=g1(...t);let n=this._get(),r=yD(n);y_(this,r.create(n))}advance(e){let t=this._get(),n=this.get();gg(t,n)||(yS(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xV(this._active)&&xZ(this)}_get(){let e=gv.arr(this.source)?this.source.map(g5):gb(g5(this.source));return this.calc(...e)}_start(){this.idle&&!xV(this._active)&&(this.idle=!1,gy(yC(this),e=>{e.done=!1}),v5.skipAnimation?(v8.batchedUpdates(()=>this.advance()),xZ(this)):gP.start(this))}_attach(){let e=1;gy(gb(this.source),t=>{g3(t)&&ye(t,this),xi(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){gy(gb(this.source),e=>{g3(e)&&yt(e,this)}),this._active.clear(),xZ(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=gb(this.source).reduce((e,t)=>Math.max(e,(xi(t)?t.priority:0)+1),0))}};function xz(e){return!1!==e.idle}function xV(e){return!e.size||Array.from(e).every(xz)}function xZ(e){e.idle||(e.idle=!0,gy(yC(e),e=>{e.done=!0}),g8(e,{type:"idle",parent:e}))}var xI=(e,...t)=>new xF(e,t);v5.assign({createStringInterpolator:yd,to:(e,t)=>new xF(e,t)}),gP.advance;var xB=/^--/,xH={},xU={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},xW=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xq=["Webkit","Ms","Moz","O"];xU=Object.keys(xU).reduce((e,t)=>(xq.forEach(n=>e[xW(n,t)]=e[t]),e),xU);var x$=/^(matrix|translate|scale|rotate|skew)/,xK=/^(translate)/,xY=/^(rotate|skew)/,xG=(e,t)=>gv.num(e)&&0!==e?e+t:e,xX=(e,t)=>gv.arr(e)?e.every(e=>xX(e,t)):gv.num(e)?e===t:parseFloat(e)===t,xQ=class extends yP{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=>xG(e,"px")).join(",")})`,xX(e,0)])),gx(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(x$.test(t)){if(delete r[t],gv.und(e))return;let n=xK.test(t)?"px":xY.test(t)?"deg":"";i.push(gb(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${xG(i,n)})`,xX(i,0)]:e=>[`${t}(${e.map(e=>xG(e,n)).join(",")})`,xX(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new xJ(i,o)),super(r)}},xJ=class extends g7{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 gy(this.inputs,(n,r)=>{let i=g5(n[0]),[o,a]=this.transforms[r](gv.arr(i)?i:n.map(g5));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&gy(this.inputs,e=>gy(e,e=>g3(e)&&ye(e,this)))}observerRemoved(e){0==e&&gy(this.inputs,e=>gy(e,e=>g3(e)&&yt(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),g8(this,e)}};v5.assign({batchedUpdates:to.unstable_batchedUpdates,createStringInterpolator:yd,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 x0=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new yP(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=yV(e)||"Anonymous";return(e=gv.str(e)?o[e]||(o[e]=yL(e,i)):e[yz]||(e[yz]=yL(e,i))).displayName=`Animated(${t})`,e};return gx(e,(t,n)=>{gv.arr(e)&&(n=yV(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:xH[t]||(xH[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||xB.test(t)||xU.hasOwnProperty(t)&&xU[t]?(""+d).trim():d+"px";xB.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 xQ(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,x1=n(23442),x2=(0,x.createContext)({});function x4(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,x.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return x.createElement(x2.Provider,{value:a},o)}function x3(){return(x3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,be),p=(0,x.useContext)(x8)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,b=p.yScale,w=p.dataRegistry,j=(0,x.useMemo)(function(){return y?x7(y):0},[y]),E=(0,x.useMemo)(function(){return b?x7(b):0},[b]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==a?null:null==w?void 0:w.get(a),S=s||(null==k?void 0:k.xAccessor),_=l||(null==k?void 0:k.yAccessor);if(!y||!b||!v||!m||!S||!_||!g)return null;var C=(null!=(t=(0,p0.Z)(y(S(o))))?t:NaN)+j/2,O=(null!=(n=(0,p0.Z)(b(_(o))))?n:NaN)+E/2,M=C+c+16>g.left+v?-c:c,T=O+f+16>g.top+m?-f:f;return x9(C)&&x9(O)?x.createElement(r,bt({width:v,height:m},h,{x:C,y:O,dx:M,dy:T}),i):null}bn.propTypes={dataKey:p$().string,xAccessor:p$().func,yAccessor:p$().func};var br=["x","y","AnnotationComponent"],bi=["editable"];function bo(){return(bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function bs(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=ba(e,br),s=(0,x.useRef)({x:n,y:i}),l=xR({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,x.useEffect)(function(){s.current={x:n,y:i}},[n,i]),x.createElement(x0.g,{transform:xI([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},x.createElement(o,bo({x:n,y:i},a)))}function bl(e){var t=e.editable,n=ba(e,bi),r=(0,x.useCallback)(function(e){return x.createElement(bs,bo({AnnotationComponent:t?x6:x4},e))},[t]);return x.createElement(bn,bo({AnnotationComponent:r},n))}bl.propTypes={editable:p$().bool};var bu=n(12766),bc=n(54073),bd=n.n(bc),bf=["d","stroke","fill"];function bh(){return(bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bf),o=(0,x.useRef)(t),a=(0,x.useCallback)(bd()(function(e){o.current=e},50),[]),s=(0,bu.interpolatePath)(o.current,t);a(t);var l=xR({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=xR({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return x.createElement(x0.path,bh({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var bm=n(12935),bv=n(12151);function bg(){return(bg=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function bO(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)=>bC(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 bM=bO(bC);bM.right;let bT=bM.left;function bA(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=bO(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=bT(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,bH),C=(0,x.useContext)(x8),O=C.colorScale,M=C.theme,T=C.horizontal,A=(0,x.useMemo)(function(){return w?bx(j,w):void 0},[j,w]),P=(0,x.useMemo)(function(){return bx(j,b)},[j,b]),N=(0,x.useMemo)(function(){return k?bx(S,k):void 0},[S,k]),R=(0,x.useMemo)(function(){return bx(S,E)},[S,E]),D=(0,x.useCallback)(function(e){return x9(j(b(e)))&&x9(S(E(e)))},[j,b,S,E]),L=null!=(t=null!=(n=null==O?void 0:O(l))?n:null==M?void 0:null==(r=M.colors)?void 0:r[0])?t:"#222",F="AREASERIES_EVENT_SOURCE-"+l,z=bz({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:F,allowedSources:[bw,F]}),V=(0,x.useMemo)(function(){var e=bb(T?j:S);return T?{x0:null!=A?A:e,x1:P,y:R}:{x:P,y0:null!=N?N:e,y1:R}},[j,S,T,P,R,A,N]),Z=!!(d||c),I=(0,x.useCallback)(function(e){var t=e.glyphs;return Z?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},bB(bU({},e,{color:"transparent",onFocus:z.onFocus,onBlur:z.onBlur})))}):null},[Z,z.onFocus,z.onBlur]);return x.createElement(x.Fragment,null,x.createElement(bm.Z,bU({},V,_,{curve:a,defined:D}),function(e){var t=e.path;return x.createElement(o,bU({className:"visx-area",stroke:"transparent",fill:L,strokeLinecap:"round"},_,{d:t(s)||""},z))}),y&&x.createElement(bv.Z,bU({x:P,y:R,defined:D,curve:a},u),function(e){var t=e.path;return x.createElement(o,bU({className:"visx-line",fill:"transparent",stroke:L,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),Z&&x.createElement(bZ,{dataKey:l,data:s,xAccessor:b,yAccessor:E,xScale:j,yScale:S,renderGlyphs:I}))}bW.propTypes={renderLine:p$().bool};var bq=by(bW);function b$(){return(b$=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 b0(e,t){return e[t]}function b1(e){let t=[];return t.key=e,t}Array.prototype.slice;var b2=n(74322),b4=n(58543);function b3(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,x.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=bX([]),t=bJ,n=bQ,r=b0;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),b1),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(b3(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(b3(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 we(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?bN:bP)(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,bG.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,bG.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,bG.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,bG.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var wt=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function wn(){return(wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,wt)),u=wn({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==E?void 0:null==(i=E.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:O,data:e,areaProps:u,lineProps:s}})},[C,O,g,_,E]),T=(0,x.useCallback)(function(e){var t,n,r=null==(t=_.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?we(e,r,b):null},[_,b]),A="AREASTACK_EVENT_SOURCE-"+S.join("-"),P=bz({dataKey:S,enableEvents:void 0===o||o,findNearestDatum:T,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:A,allowedSources:[bw,A]}),N=!!(l||s),R=(0,x.useCallback)(function(e){var t=e.glyphs;return N?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},bB(wn({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[N,P.onFocus,P.onBlur]);return!S.some(function(e){return null==y.get(e)})&&w&&j&&g?x.createElement("g",{className:"visx-area-stack"},M.map(function(e){return x.createElement(bm.Z,wn({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return x.createElement(n,wn({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,P))})}),m&&M.map(function(e){return x.createElement(bY.Z,wn({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 x.createElement(n,wn({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),N&&M.map(function(e,t){var n=M[M.length-t-1];return x.createElement(bZ,{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:wr,yScale:wr,renderGlyphs:R})})):null}function wo(){return(wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wl),c=(0,x.useContext)(x8),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,x.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,w=(0,x.useMemo)(function(){return b||y?function(e,t,n){return wu({},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]),j="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,k="left"===g||"right"===g?h:f;return k?x.createElement(l,wu({top:j,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:w,scale:k})):null}function wd(){return(wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return wp({},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,x=l.x>=g&&l.x<=y;return wp({},u,{distanceY:0,distanceX:x?0:Math.abs(l.x-(g+y)/2)})}(e,k,v)},[k,v]),_="BARGROUP_EVENT_SOURCE-"+E.join("-")+"}",C=bz({dataKey:E,enableEvents:void 0===f||f,findNearestDatum:S,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:_,allowedSources:[bw,_]}),O=(0,x.useMemo)(function(){return b?bb(b):0},[b]),M=(0,x.useMemo)(function(){return w?bb(w):0},[w]),T=E.map(function(e){return m.get(e)});if(T.some(function(e){return null==e})||!b||!w||!p)return null;var A=x7(k),P=T.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)-O:(null!=(i=w(r(e)))?i:NaN)-M},s=v?function(e){var t;return null!=(t=w(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=k(o))?t:0,u=v?function(e){return O+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return M+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=j.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(!x9(r))return null;var i=c(e);if(!x9(i))return null;var a=d(e);if(!x9(a))return null;var s=f(e);return x9(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 x.createElement("g",{className:"visx-bar-group"},P.map(function(e){return e&&x.createElement(o,wm({horizontal:v,xScale:b,yScale:w},e,C,{key:e.key}))}))}wv.propTypes={children:p$().node.isRequired,padding:p$().number,sortBars:p$().func};var wg=n(10897),wy=function(e){return!!(null==e?void 0:e.includes("url("))},wx=function(e){return wy(e)?"rgba(0,0,0,0.1)":e},wb=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],ww=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function wj(){return(wj=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function wk(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:wx(e.fill),opacity:1}}function wS(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=wE(e,wb);return x.createElement(x.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 x.createElement(wg.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 x.createElement(bp,wj({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function w_(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,wE(e,ww)),u=xD(i,wj({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,x.useMemo)(function(){var e=bb(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:wx(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:wk,update:wk,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return x.createElement(x.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:x.createElement(x0.rect,wj({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:wy(t.fill)?t.fill:s,opacity:u},l))}))}function wC(e){return null==e.radius?x.createElement(w_,e):x.createElement(wS,wj({},e,{radius:e.radius}))}function wO(){return(wO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wT),j=(0,x.useContext)(x8),E=j.colorScale,k=j.horizontal,S=j.theme,_=j.innerWidth,C=j.innerHeight,O=(0,x.useMemo)(function(){return bx(g,v)},[g,v]),M=(0,x.useMemo)(function(){return bx(b,y)},[b,y]),T=x7(k?b:g)||(k?void 0===C?0:C:void 0===_?0:_)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),A=(0,x.useMemo)(function(){return g?bb(g):0},[g]),P=(0,x.useMemo)(function(){return b?bb(b):0},[b]),N=null!=(t=null!=(n=null==E?void 0:E(l))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",R=(0,x.useMemo)(function(){var e=k?0:-T/2,t=k?-T/2:0;return s.map(function(n,r){var i,o=O(n)+e;if(!x9(o))return null;var s=M(n)+t;if(!x9(s))return null;var l=k?o-A:s-P;return x9(l)?{key:""+r,x:k?A+Math.min(0,l):o,y:k?s:P+Math.min(0,l),width:k?Math.abs(l):T,height:k?T:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:N}:null}).filter(function(e){return e})},[T,N,a,s,O,M,k,A,P]),D="BARSERIES_EVENT_SOURCE-"+l,L=bz({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:D,allowedSources:[bw,D]});return x.createElement("g",{className:"vx-bar-series"},x.createElement(i,wA({bars:R,horizontal:k,xScale:g,yScale:b},L,w)))}wP.propTypes={barPadding:p$().number,colorAccessor:p$().func};var wN=by(wP),wR=["colorAccessor"];function wD(){return(wD=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wR);return x.createElement(wN,wD({},n,{colorAccessor:t,BarsComponent:wC}))}var wF=n(15590);function wz(){return(wz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wU),i=(0,x.useCallback)(function(e){return x.createElement(wH,wW({},e,{renderGlyph:n}))},[n]);return x.createElement(bI,wW({},r,{renderGlyphs:i}))}var w$=n(93353),wK=n(63962),wY=["rows","columns","GridRowsComponent","GridColumnsComponent"];function wG(){return(wG=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wY),l=(0,x.useContext)(x8),u=l.theme,c=l.xScale,d=l.yScale,f=l.margin,h=l.innerWidth,p=l.innerHeight,m=null==u?void 0:u.gridStyles;return x.createElement(x.Fragment,null,n&&d&&null!=h&&x.createElement(o,wG({left:null==f?void 0:f.left,lineStyle:m,width:h,scale:d},s)),i&&c&&null!=p&&x.createElement(a,wG({top:null==f?void 0:f.top,lineStyle:m,height:p,scale:c},s)))}wX.propTypes={rows:p$().bool,columns:p$().bool};var wQ=["animationTrajectory"];function wJ(){return(wJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wQ),r=(0,x.useMemo)(function(){return function(e){return x.createElement(w$.Z,wJ({},e,{animationTrajectory:t}))}},[t]),i=(0,x.useMemo)(function(){return function(e){return x.createElement(wK.Z,wJ({},e,{animationTrajectory:t}))}},[t]);return x.createElement(wX,wJ({GridRowsComponent:r,GridColumnsComponent:i},n))}var w1=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function w2(){return(w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w1),E=(0,x.useContext)(x8),k=E.colorScale,S=E.theme,_=(0,x.useMemo)(function(){return bx(v,m)},[v,m]),C=(0,x.useMemo)(function(){return bx(y,g)},[y,g]),O=(0,x.useCallback)(function(e){return x9(v(m(e)))&&x9(y(g(e)))},[v,m,y,g]),M=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",T="LINESERIES_EVENT_SOURCE-"+s,A=bz({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:T,allowedSources:[bw,T]}),P=!!(u||l),N=(0,x.useCallback)(function(e){var t=e.glyphs;return P?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},bB(w2({},e,{color:"transparent",onFocus:A.onFocus,onBlur:A.onBlur})))}):null},[P,A.onFocus,A.onBlur]);return x.createElement(x.Fragment,null,x.createElement(bv.Z,w2({x:_,y:C,defined:O,curve:o},j),function(e){var t,n=e.path;return x.createElement(w,w2({stroke:null!=(t=null==i?void 0:i(s))?t:M,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},j,{d:n(a)||""},A))}),P&&x.createElement(bZ,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:N}))}w4.propTypes={colorAccessor:p$().func};var w3=by(w4);function w5(){return(w5=Object.assign?Object.assign.bind():function(e){for(var t=1;tw9.every(n=>e[n]===t[n]);function jt(e,t){return(jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jn=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,jt(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)?to.createPortal(this.props.children,this.node):null},t}(x.PureComponent);jn.propTypes={zIndex:p$().oneOfType([p$().number,p$().string])};var jr=["detectBounds","zIndex"],ji=["left","top","detectBounds","zIndex"];function jo(){return(jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var js=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],jl=["x","y"];function ju(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 jc(){return(jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,x.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&&!je(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?w7()(e,d):e,c?w7()(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,x.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,x.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,x.useEffect)(()=>{v(),g()},[r,m,p]),(0,x.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]}(ja(ei,jr)))[0],ec=el[1],ed=el[2],ef=(0,x.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=ja(e,ji),a=null==i?es:i,s=(null==r?ea:r)?mg:ml,l=(void 0===t?0:t)+(ec.left||0)+window.scrollX,u=(void 0===n?0:n)+(ec.top||0)+window.scrollY;return x.createElement(jn,{zIndex:a},x.createElement(s,jo({left:l,top:u},o)))}},[ea,es,ec.left,ec.top]),{containerRef:eu,containerBounds:ec,forceRefreshBounds:ed,TooltipInPortal:ef}),L=D.containerRef,F=D.TooltipInPortal,z=D.forceRefreshBounds,V=(0,x.useCallback)(function(e){var t;L(null!=(t=null==e?void 0:e.parentElement)?t:null)},[L]),Z=null!=R&&R.tooltipOpen?o(jc({},R,{colorScale:_})):null,I=(null==R?void 0:R.tooltipOpen)&&null!=Z,B=(0,x.useRef)(!1);(0,x.useEffect)(function(){I&&!B.current&&z(),B.current=I},[I,z]);var H=null==R?void 0:R.tooltipLeft,U=null==R?void 0:R.tooltipTop,W=A?x7(A):0,q=P?x7(P):0,$=(0,x.useCallback)(function(e,t){var n,r,i=null==N?void 0:N.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:A&&o?null!=(n=Number(A(o(t)))+W/2)?n:0:void 0,top:P&&a?null!=(r=Number(P(a(t)))+q/2)?r:0:void 0}},[N,W,q,A,P]),K=null==R?void 0:null==(eh=R.tooltipData)?void 0:eh.nearestDatum,Y=null!=(ep=null==K?void 0:K.key)?ep:"";if(I&&K&&(y||w)){var G=$(Y,K.datum),X=G.left,Q=G.top;H=y&&x9(X)?X:H,U=w&&x9(Q)?Q:U}var J=[];if(I&&(void 0!==c&&c||p)){var ee=Number(null!=(e_=null==i?void 0:i.radius)?e_:4);if(p)Object.values(null!=(eC=null==R?void 0:null==(eO=R.tooltipData)?void 0:eO.datumByKey)?eC:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==_?void 0:_(o))?n:null==C?void 0:null==(r=C.htmlLabel)?void 0:r.color)?t:"#222",u=$(o,a),c=u.left,d=u.top;x9(c)&&x9(d)&&J.push({key:o,color:l,datum:a,index:s,size:ee,x:c,y:d,glyphStyle:i,isNearestDatum:!!K&&K.key===o})});else if(K){var et=$(Y,K.datum),en=et.left,er=et.top;if(x9(en)&&x9(er)){var ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,ej,eE,ek,eS,e_,eC,eO,eM,eT,eA,eP,eN,eR,eD=null!=(eM=null!=(eT=null!=(eA=null!=(eP=Y&&(null==_?void 0:_(Y)))?eP:null)?eA:null==C?void 0:null==(eN=C.gridStyles)?void 0:eN.stroke)?eT:null==C?void 0:null==(eR=C.htmlLabel)?void 0:eR.color)?eM:"#222";J.push({key:Y,color:eD,datum:K.datum,index:K.index,size:ee,x:en,y:er,glyphStyle:i,isNearestDatum:!0})}}}return x.createElement(x.Fragment,null,x.createElement("svg",{ref:V,style:jf}),I&&x.createElement(x.Fragment,null,v&&x.createElement(F,{className:"visx-crosshair visx-crosshair-vertical",left:H,top:null==T?void 0:T.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jd},x.createElement("svg",{width:"1",height:O,overflow:"visible"},x.createElement("line",jc({x1:0,x2:0,y1:0,y2:O,strokeWidth:1.5,stroke:null!=(em=null!=(ev=null==C?void 0:null==(eg=C.gridStyles)?void 0:eg.stroke)?ev:null==C?void 0:null==(ey=C.htmlLabel)?void 0:ey.color)?em:"#222"},j)))),f&&x.createElement(F,{className:"visx-crosshair visx-crosshair-horizontal",left:null==T?void 0:T.left,top:U,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jd},x.createElement("svg",{width:M,height:"1",overflow:"visible"},x.createElement("line",jc({x1:0,x2:M,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(ex=null!=(eb=null==C?void 0:null==(ew=C.gridStyles)?void 0:ew.stroke)?eb:null==C?void 0:null==(ej=C.htmlLabel)?void 0:ej.color)?ex:"#222"},r)))),J.map(function(e,t){var n=e.x,r=e.y,i=ju(e,jl);return x.createElement(F,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jd},x.createElement("svg",{overflow:"visible"},s(jc({x:0,y:0},i))))}),x.createElement(F,jc({left:H,top:U,style:jc({},ms,{background:null!=(eE=null==C?void 0:C.backgroundColor)?eE:"white",boxShadow:"0 1px 2px "+(null!=C&&null!=(ek=C.htmlLabel)&&ek.color?(null==C?void 0:null==(eS=C.htmlLabel)?void 0:eS.color)+"55":"#22222255")},null==C?void 0:C.htmlLabel)},k),Z)))}function jv(e){var t=(0,x.useContext)(bj);return null!=t&&t.tooltipOpen?x.createElement(jm,e):null}function jg(e){var t=e.children,n=(0,x.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 x.createElement(bE.Provider,{value:n},t)}function jy(){return(jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,mr);return mi({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,x.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,x.useRef)(null),g=(0,x.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(x9(o)?o:1/0,2)+Math.pow(x9(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&x9(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&&o>0&&y({width:m,height:o,margin:l})},[y,m,o,l]);var j=bS({source:bw});return(bF({dataKey:"nearest"===(void 0===h?"nearest":h)?bL:bD,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,allowedSources:jP}),y)?null==m||null==o?x.createElement(vO.Z,null,function(t){return x.createElement(jN,jT({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==b?x.createElement(jx,null,x.createElement(jN,e)):null==w?x.createElement(jg,null,x.createElement(jN,e)):m>0&&o>0?x.createElement("svg",{width:m,height:o,"aria-label":void 0===t?"XYChart":t},i,r&&x.createElement("rect",jT({x:l.left,y:l.top,width:m-l.left-l.right,height:o-l.top-l.bottom,fill:"transparent"},j))):null:v&&g?x.createElement(jM,{xScale:v,yScale:g,theme:p,initialDimensions:{width:m,height:o,margin:l},horizontal:a},x.createElement(jN,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function jR(e){return x.createElement(bq,e)}function jD(e){return x.createElement(wi,e)}function jL(){return(jL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function jB(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=jI(e,jz),u=!!(l.onFocus||l.onBlur);return x.createElement(x.Fragment,null,t.map(function(e){var t=e.key,c=jI(e,jV);return null==n?x.createElement("rect",jZ({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):x.createElement(wg.Z,jZ({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 jH(){return(jH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jW);return x.createElement(wN,jq({},n,{colorAccessor:t,BarsComponent:jB}))};function jK(){return(jK=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(ft,{value:"line",children:"Line"}),(0,y.jsx)(ft,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,y.jsx)(ft,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,y.jsx)(ft,{disabled:p,value:"area",children:"Area"}),(0,y.jsx)(ft,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Stack series offset"}),(0,y.jsxs)(fn,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,y.jsxs)(ft,{disabled:!s,value:"none",children:["None",(0,y.jsx)(fX,{children:"zero-baseline"})]}),(0,y.jsxs)(ft,{disabled:!s,value:"diverging",children:["Diverging",(0,y.jsx)(fX,{children:"non zero-baseline"})]}),(0,y.jsxs)(ft,{disabled:!s,value:"expand",children:["Expand",(0,y.jsx)(fX,{children:"values sum to 1"})]}),(0,y.jsxs)(ft,{disabled:!s,value:"wiggle",children:["Wiggle",(0,y.jsx)(fX,{children:"stream graph"})]})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Curve shape"}),(0,y.jsxs)(fn,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(ft,{disabled:!a,value:"linear",children:"Linear"}),(0,y.jsx)(ft,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,y.jsx)(ft,{disabled:!a,value:"step",children:"Step"})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Axes"}),(0,y.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,y.jsxs)(fn,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(ft,{value:"bottom",children:"Bottom"}),(0,y.jsx)(ft,{value:"top",children:"Top"})]}),(0,y.jsxs)(fn,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,y.jsx)(ft,{value:"left",children:"Left"}),(0,y.jsx)(ft,{value:"right",children:"Right"})]})]})]})]})})}let Ea=(0,x.forwardRef)((e,t)=>{let{className:n}=e;return(0,y.jsxs)("div",{ref:t,className:(0,em.cx)("flex gap-1 items-center",n),children:[(0,y.jsx)(Es,{}),(0,y.jsx)(Es,{}),(0,y.jsx)(Es,{})]})});function Es(){return(0,y.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 El(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,variant:l="panel",allowConfiguration:u=!0}=e,c=function(e,t,n){let r=(0,x.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return[...t,{...e,timestamp:e.timestamp+j3(1)}]},[t]),i=(0,x.useMemo)(()=>{if(r.length<2)return 0;let e=[r[0].timestamp,r[r.length-1].timestamp],t=new Date().getTime();return t>e[0]&&t"dark"===s?v4:v2,[s]),[u,c]=(0,x.useState)("center"),[d,f]=(0,x.useState)([!1,!1]),[h,p]=d,[m,v]=(0,x.useState)("bottom"),[g,b]=(0,x.useState)("right"),[w,j]=(0,x.useState)(!0),[E,k]=(0,x.useState)(!0),[S,_]=(0,x.useState)(!1),[C,O]=(0,x.useState)(!0),[M,T]=(0,x.useState)(!0),A=n.chartType||"areastack",P=n.curveType||"linear",N=n.stackOffset||"none",[R,D]=(0,x.useState)(A),[L,F]=(0,x.useState)(P),[z,V]=(0,x.useState)(N),Z=l.xyChartTheme.gridStyles.stroke,[I,B]=(0,x.useState)(!1),[H,U]=(0,x.useState)("star"),W=(0,x.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"===H?(0,y.jsx)(vV,{left:t,top:n,stroke:Z,fill:i,size:10*r,...u}):"circle"===H?(0,y.jsx)(vB,{left:t,top:n,stroke:Z,fill:i,r:r,...u}):"cross"===H?(0,y.jsx)(vq,{left:t,top:n,stroke:Z,fill:i,size:10*r,...u}):(0,y.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[H,Z]),q=(0,x.useMemo)(()=>Object.keys(j2()(t[0],"timestamp")),[t]),$=(0,x.useMemo)(()=>n.enabledGraph||q,[q,n]),K=(0,x.useMemo)(()=>n.enabledTip||q,[q,n]),Y=(0,x.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]),G=["line","area","areastack"].includes(R),X=["barstack","areastack"].includes(R),Q=(0,x.useMemo)(()=>({x:{type:"band",paddingInner:G?1:.3},y:{type:"linear"}}),[G]),J=(0,x.useMemo)(()=>"cardinal"===L&&v$.ZP||"step"===L&&mY.ZP||vK.Z,[L]),ee=(0,x.useMemo)(()=>({top:30,bottom:"top"===m?0:20,right:"right"===g?60:0,left:"left"===g?60:0}),[m,g]);return{id:e,accessors:Y,animationTrajectory:u,config:n,scales:Q,data:r,curve:J,chartData:t,numTicks:4,isLine:G,isStack:X,todayOffset:i,initialChartType:A,initialCurveType:P,initialStackOffset:N,chartType:R,curveType:L,keys:q,enabledGraph:$,enabledTip:K,renderBarGroup:"bargroup"===R,renderBarStack:"barstack"===R,enableTooltipGlyph:I,renderTooltipGlyph:W,renderAreaSeries:"area"===R,renderAreaStack:"areastack"===R,renderLineSeries:"line"===R,sharedTooltip:M,showGridColumns:p,showGridRows:h,showHorizontalCrosshair:S,showTooltip:w,showVerticalCrosshair:E,snapTooltipToDatum:!X&&C,stackOffset:z,theme:l,margin:ee,xAxisOrientation:m,yAxisOrientation:g,setUseAnimatedComponents:a,setAnimationTrajectory:c,setGridProps:f,setXAxisOrientation:v,setYAxisOrientation:b,setShowTooltip:j,setShowVerticalCrosshair:k,setShowHorizontalCrosshair:_,setSnapTooltipToDatum:O,setSharedTooltip:T,setChartType:D,setCurveType:F,setStackOffset:V,setEnableTooltipGlyph:B,setTooltipGlyphComponent:U,...o?{Annotation:bl,AreaSeries:bK,AreaStack:wa,Axis:wf,BarGroup:wM,BarSeries:wL,BarStack:wI,GlyphSeries:wq,Grid:w0,LineSeries:w6,Tooltip:jv,XYChart:jN}:{AreaSeries:jR,AreaStack:jD,Axis:jF,BarGroup:jU,BarSeries:j$,BarStack:jY,Grid:jJ,LineSeries:j0,Tooltip:jv,XYChart:jN}}}(t,r,i),d=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===l&&u&&(0,y.jsx)(Eo,{...c})]}),(0,y.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,y.jsx)(vO.Z,{children:e=>{let{width:t,height:n}=e;return a?(0,y.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,y.jsx)(Ea,{className:"scale-150"})}):(0,y.jsx)(vA,{...c,width:t,height:n})}})]});return"panel"===l?(0,y.jsx)(t3,{className:"relative p-px",style:{height:n},children:d}):(0,y.jsx)("div",{className:"relative p-px",style:{height:n},children:d})}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -57,7 +57,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function Ef(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())})}function Eh(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1?(Ep('UA "Edge" => assuming success'),[2,!0]):Ez(document.body,e)?(Ep("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=Ez(i,e),document.body.removeChild(i),o)?(Ep("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],Ep("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(Ep("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),EV(u),c=document.execCommand("copy"),EI(),document.body.removeChild(s),c)?(Ep("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((n={})["text/plain"]=e,n)))throw Error("writeText() failed");return[2]})})}let EB={data:""},EH=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||EB,EU=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,EW=/\/\*[^]*?\*\/|\s\s+|\n/g,Eq=(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]?Eq(a,o):o+"{"+Eq(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=Eq(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+=Eq.p?Eq.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},E$={},EK=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+EK(e[n]);return t}return e},EY=(e,t,n,r,i)=>{var o;let a=EK(e),s=E$[a]||(E$[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!E$[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=EU.exec(e.replace(EW,""));)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);E$[s]=Eq(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=E$[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},EG=(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?"":Eq(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function EX(e){let t=this||{},n=e.call?e(t.p):e;return EY(n.unshift?n.raw?EG(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,EH(t.target),t.g,t.o,t.k)}EX.bind({g:1});let EJ,EQ,E0,E1=EX.bind({k:1});function E2(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:EQ&&EQ()},s),n.o=/ *go\d+/.test(l),s.className=EX.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),E0&&u[0]&&E0(s),EJ(u,s)}return t?t(i):i}}function E4(){return(E4=Object.assign||function(e){for(var t=1;t-1&&kn.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return E4({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||ko[t.type],style:E4({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return E4({},n,{toasts:i})},ks=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),E4({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)||E6()}));return ki({type:g.UPSERT_TOAST,toast:i}),i.id}},kl=function(e,t){return ks("blank")(e,t)};kl.error=ks("error"),kl.success=ks("success"),kl.loading=ks("loading"),kl.custom=ks("custom"),kl.dismiss=function(e){ki({type:g.DISMISS_TOAST,toastId:e})},kl.remove=function(e){return ki({type:g.REMOVE_TOAST,toastId:e})},kl.promise=function(e,t,n){var r=kl.loading(t.loading,E4({},n,null==n?void 0:n.loading));return e.then(function(e){return kl.success(E5(t.success,e),E4({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){kl.error(E5(t.error,e),E4({id:r},n,null==n?void 0:n.error))}),e};var ku=function(e){var t=ka(e),n=t.toasts,r=t.pausedAt;(0,x.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&&kl.dismiss(t.id);return}return setTimeout(function(){return kl.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,x.useMemo)(function(){return{startPause:function(){ki({type:g.START_PAUSE,time:Date.now()})},endPause:function(){r&&ki({type:g.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return ki({type:g.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return kH=function(){return e},e}c=x.createElement,Eq.p=void 0,EJ=c,EQ=void 0,E0=void 0;var kU=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return E4({left:0,right:0,display:"flex",position:"absolute",transition:E8()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},kW=EX(kH()),kq=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=ku(i),c=u.toasts,d=u.handlers;return(0,x.createElement)("div",{style:E4({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=kU(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,x.createElement)("div",{ref:l,className:e.visible?kW:"",key:e.id,style:s},"custom"===e.type?E5(e.message,e):a?a(e):(0,x.createElement)(kB,{toast:e,position:i}))}))};let k$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kl((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),kX(t))},kK=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kl(e,kX(t))},kY=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kl.success((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),kX(t))},kG=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kl.error((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),kX(t))};function kX(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,em.cx)(lo,t4(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,y.jsx)("div",{className:"!flex-none w-5",children:(0,y.jsx)(lc.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,y.jsx)("div",{className:"!flex-none w-5",children:(0,y.jsx)(lc.Jsc,{className:"w-5 text-red-600"})})},...t}}function kJ(){return(0,y.jsx)(kq,{toastOptions:kX()})}let kQ=(e,t)=>{let n=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";k$(n),EZ(e)},k0=(e,t,n)=>{kK(t,n),EZ(e)};function k1(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function k2(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^key:/,"")}function k4(e,t,n){return t?"".concat(e," ").concat(k1(t,n)):"".concat(e)}function k3(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 k5={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",ip:"IP"},k6={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 k8(e){return e?k5[e]:void 0}function k7(e){return e?k6[e]:void 0}function k9(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d}=e,f=i||k8(r),h=a||("ip"===r?20:12),p=k2(t),m=n||p,v="".concat(null==m?void 0:m.slice(0,h)).concat(((null==m?void 0:m.length)||0)>h?"...":"");return(0,y.jsxs)("div",{className:(0,em.cx)("flex items-center",d),children:[o?(0,y.jsx)(di,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}):(0,y.jsx)(t1,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}),(0,y.jsx)("div",{className:"ml-1 flex items-center",children:(0,y.jsx)(lu,{variant:"ghost",size:"none",onClick:e=>{e.stopPropagation(),kQ(p,f)},children:(0,y.jsx)(t1,{color:c,children:(0,y.jsx)(lc.olJ,{className:"10"===s?"scale-75":"scale-90"})})})})]})}function Se(e){let{value:t,displayValue:n,type:r,href:i,maxLength:o,size:a,scaleSize:s,color:l="contrast",menu:u,className:c}=e,d=o||("ip"===r?20:12),f=k2(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,y.jsxs)("div",{className:(0,em.cx)("flex items-center",c),children:[i?(0,y.jsx)(di,{href:i,underline:"hover",size:a,scaleSize:s,color:l,ellipsis:!0,children:p}):(0,y.jsx)(t1,{size:a,scaleSize:s,color:l,ellipsis:!0,children:p}),(0,y.jsx)("div",{className:"ml-1 flex items-center",children:u})]})}function St(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,vS.yF)(String(t),{units:"SF"});return(0,y.jsx)(ls,{content:(i?"".concat(i," "):"")+a,children:(0,y.jsxs)(t1,{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 Sn(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",fixed:a=3,dynamicUnits:s=!0,hastingUnits:l=!0,extendedSuffix:u,showTooltip:c=!0}=e,d=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",f="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast",h=(0,y.jsxs)(t1,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:f,children:["change"===o?"".concat(d).concat((0,vS.Vz)(t.absoluteValue(),{fixed:a,dynamicUnits:s})):(0,vS.Vz)(t,{fixed:a,dynamicUnits:s,hastingUnits:l}),(0,y.jsx)(t1,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:u?"".concat(u):""})]});return c?(0,y.jsx)(ls,{content:(i?"".concat(i," "):"")+(0,vS.Vz)(t,{fixed:16,dynamicUnits:!1}),children:h}):h}function Sr(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,y.jsx)(ls,{content:(i?"".concat(i," "):"")+s(t),children:(0,y.jsx)(t1,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var Si=n(61258),So=n.n(Si);function Sa(e){let{skeletonCount:t=10}=e;return(0,y.jsx)(y.Fragment,{children:So()(t,e=>(0,y.jsxs)("div",{className:(0,em.cx)("relative flex gap-4 p-3.5",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,y.jsx)(f8,{className:"w-[60px] h-[50px]"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,y.jsx)(f8,{className:"w-[90%] h-[20px]"}),(0,y.jsx)(f8,{className:"w-[140px] h-[14px]"})]})]},e))})}var Ss=n(29193),Sl=n(23779),Su=n.n(Sl);function Sc(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,y.jsx)(lM,{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,y.jsx)(di,{href:i,underline:"none",children:s}),u=l||s;return t?(0,y.jsx)(ls,{content:n||k8(t),children:(0,y.jsx)("div",{className:"",children:u})}):u}function Sd(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,y.jsxs)("div",{className:(0,em.cx)("flex gap-4 p-4",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,y.jsx)(Sc,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function Sf(e){let t=e.sc,n=e.sf,r=e.hash&&(0,y.jsx)(k9,{value:e.hash,type:e.type,label:e.label,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&k7(e.txType)||k8(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?Su()(i):i;return(0,y.jsx)(Sd,{...e,children:(0,y.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,y.jsx)(t1,{color:"subtle",weight:"semibold",children:(0,y.jsx)(di,{href:e.blockHref,underline:"none",children:(0,vS.yF)(e.height)})}),(0,y.jsx)(t1,{weight:"medium",children:o||r})]}),(0,y.jsx)("div",{className:"flex-1"}),!!t&&(0,y.jsx)(Sn,{variant:e.scVariant,value:t}),!!n&&(0,y.jsx)(St,{variant:e.sfVariant,value:n})]}),(0,y.jsxs)("div",{className:"flex justify-between w-full",children:[(0,y.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,y.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,y.jsx)(t1,{color:"verySubtle",children:(0,y.jsx)(lc.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,y.jsx)(t1,{color:"subtle",children:(0,Ss.Z)(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function Sh(e){let{title:t,actions:n,entities:r,emptyState:i,emptyMessage:o,skeletonCount:a=10,children:s}=e;return(0,y.jsx)(t3,{children:(0,y.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||n)&&(0,y.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,y.jsx)(c2,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,y.jsx)("div",{className:"flex-1"}),n]}),(0,y.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(null==r?void 0:r.length)===0&&(i||(0,y.jsx)("div",{className:(0,em.cx)("flex items-center justify-center h-[84px]",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,y.jsx)(t1,{size:"18",color:"subtle",children:o||"No results"})})),s||(null==r?void 0:r.map((e,t)=>(0,y.jsx)(Sf,{...e},e.hash||e.label||t)))||(0,y.jsx)(Sa,{skeletonCount:a})]})]})})}function Sp(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,y.jsx)(t1,{color:"subtle",size:"12",className:"h-6",children:d});return(0,y.jsx)(t3,{children:(0,y.jsx)("div",{className:(0,em.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,y.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,y.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,y.jsx)(t1,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?Su()(t):t}),i]}),(0,y.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,y.jsx)(f8,{className:"h-12 w-[150px]"}):(0,y.jsxs)(y.Fragment,{children:[void 0!==u&&(0,y.jsx)(Sn,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,y.jsx)(St,{scaleSize:h,variant:"value",value:c}),n&&(r?(0,y.jsx)(k9,{scaleSize:h,label:k8(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,y.jsx)(t1,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,y.jsx)(k9,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,y.jsx)(t1,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,y.jsx)("div",{className:"mt-1",children:p?(0,y.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,y.jsx)(f8,{className:"h-4 w-[100px]"})}):f?(0,y.jsx)(ls,{content:f,children:v}):v}):null]})]})})})}function Sm(e){let{title:t,actions:n,name:r}=e;return(0,y.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,y.jsx)(dt,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function Sv(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,y.jsx)(t1,{size:"14",color:"red",children:o}):null}function Sg(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,y.jsxs)("div",{className:(0,em.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,y.jsx)(Sm,{name:i,title:n,actions:r}),(0,y.jsx)(Sv,{form:t,name:i})]}):null}function Sy(e){let{children:t,...n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsx)(Sg,{...n}),t]})}function Sx(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(lu,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,y.jsx)(Eu,{}):i})})}function Sb(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:x}=e;return(0,y.jsx)(SS,{formik:t,title:n,name:r,children:"number"===g?(0,y.jsx)(Sj,{formik:t,name:r,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:x}):"siacoin"===g?(0,y.jsx)(SE,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:x}):(0,y.jsx)(Sw,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:x})})}function Sw(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,y.jsx)(fE,{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 Sj(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,y.jsx)(f$,{id:n,units:r,name:n,placeholder:new(fW())(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 SE(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,y.jsx)(fJ,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fW())(t.values[n]),placeholder:new(fW())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function Sk(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,y.jsxs)("div",{className:(0,em.cx)("flex justify-between items-center gap-4",s),children:[i?(0,y.jsx)(dt,{htmlFor:o,children:i}):(0,y.jsx)("div",{}),l&&(0,y.jsx)(t1,{size:"14",color:"red",children:u})]})}function SS(e){let{children:t,...n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsx)(Sk,{...n}),t]})}function S_(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,y.jsxs)(y.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,y.jsx)(t1,{color:"red",children:n.status.error}),(0,y.jsx)(lu,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,y.jsx)(Eu,{}):a})]})}function SC(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==n?void 0:n.length)||(m="skeleton"),(null==n?void 0:n.length)&&(m="currentData");let v=(0,x.useCallback)((e,n,r)=>(0,em.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]),g=(0,x.useCallback)((e,t)=>(0,em.cx)("flex items-center",t),[]);return(0,y.jsxs)(t3,{children:[(0,y.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,y.jsx)("thead",{className:(0,em.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,y.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,y.jsx)("th",{className:(0,em.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,y.jsx)("div",{className:(0,em.cx)("overflow-hidden","py-3"),children:(0,y.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,em.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,y.jsx)(ls,{content:u,children:(0,y.jsxs)(t1,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,y.jsx)("div",{children:r}):null,(0,y.jsx)(t1,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,y.jsx)(t1,{color:"contrast",children:"asc"===o?(0,y.jsx)(lc.kqg,{className:"scale-75"}):(0,y.jsx)(lc.EMN,{className:"scale-75"})}),f&&!h&&(0,y.jsx)(t1,{color:"verySubtle",children:(0,y.jsx)(lc.kqg,{className:"scale-75"})})]})})},n)})})}),(0,y.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,y.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:n,summary:r,contentClassName:i,cellClassName:o}=e;return(0,y.jsx)("td",{className:v(t,o,!1),children:(0,y.jsx)("div",{className:g(t,i),children:r&&r()})},n)})}),"currentData"===m&&(null==n?void 0:n.map(e=>(0,y.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,em.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,n)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,y.jsx)("td",{className:(0,em.cx)(v(n,s,!1),h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,y.jsx)("div",{className:(0,em.cx)(g(n,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,y.jsx)(o,{data:e,context:r})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&So()(c).map(e=>(0,y.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,y.jsx)("td",{className:v(t,i,!1),children:(0,y.jsx)("div",{className:(0,em.cx)(g(t,r),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===m&&f]})}var SO=n(5632);function SM(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,SO.useRouter)();return(0,y.jsxs)(lR,{children:[(0,y.jsx)(lu,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,y.jsx)("div",{className:"flex scale-[0.65]",children:(0,y.jsx)(lc.XJM,{})})}),(0,y.jsx)(lu,{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,y.jsx)(lc.bdU,{})}),(0,y.jsx)(lu,{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,y.jsx)(Eu,{className:"px-2"}):"No results"}),(0,y.jsx)(lu,{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,y.jsx)(lc.VUy,{})}),(0,y.jsx)(lu,{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,y.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,y.jsx)(lc.RRj,{})})})]})}function ST(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,o=(0,SO.useRouter)(),a=Math.min(t+n,t+r);return(0,y.jsxs)(lR,{children:[(0,y.jsx)(lu,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,y.jsx)("div",{className:"flex scale-[0.65]",children:(0,y.jsx)(lc.XJM,{})})}),(0,y.jsx)(lu,{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,y.jsx)(lc.bdU,{})}),i?(0,y.jsx)(lu,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,y.jsx)(Eu,{className:"px-2"})}):r?(0,y.jsxs)(lu,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",a]}):(0,y.jsx)(lu,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,y.jsx)(lu,{icon:"contrast",disabled:r!==n,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+n}}),children:(0,y.jsx)(lc.VUy,{})})]})}function SA(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,y.jsxs)(y.Fragment,{children:[(0,y.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,y.jsx)(t1,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,y.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,y.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:n}),(0,y.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,y.jsx)("div",{className:"flex items-center gap-2 px-6 py-3 h-10 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let SP=("string"==typeof(d={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:d}:d).src;function SN(e){let{children:t}=e;return(0,y.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,y.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(SP,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var SR=n(97729),SD=n.n(SR);function SL(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,y.jsxs)(SD(),{children:[(0,y.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,y.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,y.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,y.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,y.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,y.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,y.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,y.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,y.jsx)("title",{children:i})]})}function SF(e){let{appName:t,title:n,children:r}=e;return(0,y.jsxs)("div",{className:"h-screen",children:[(0,y.jsx)(SL,{appName:t,title:n}),r]})}function Sz(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,y.jsxs)(SF,{appName:t,title:n,children:[(0,y.jsx)(SN,{}),(0,y.jsx)("div",{className:"flex h-full",children:(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(SA,{nav:i,actions:o}),(0,y.jsx)("div",{className:"flex-1",children:(0,y.jsx)(lL,{className:"h-full",children:r})})]})})]})}function SV(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,y.jsx)(ls,{side:"right",content:(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"spendable"}),(0,y.jsx)(t1,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{variant:"value",value:t.spendable})})]}),(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"confirmed"}),(0,y.jsx)(t1,{color:"subtle",children:"All confirmed outputs."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{variant:"value",value:t.confirmed})})]}),(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"unconfirmed"}),(0,y.jsx)(t1,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{variant:"value",value:t.unconfirmed})})]})]}),children:(0,y.jsx)(t1,{size:"12",weight:"medium",children:(0,vS.Vz)(t.spendable.plus(t.unconfirmed),{fixed:0})})}):(0,y.jsx)(ls,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,y.jsx)(t1,{size:"12",weight:"medium",children:(0,vS.Vz)(t.spendable.plus(t.unconfirmed),{fixed:0})})}):null}var SI=n(82876);function SZ(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,SI.usePathname)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,y.jsx)(di,{href:r,className:"no-underline",children:(0,y.jsx)(ls,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,y.jsx)(lu,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,y.jsx)(ls,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,y.jsx)(lu,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function SB(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,y.jsx)(SZ,{title:"Wallet",route:r.wallet.view,children:(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,y.jsx)(lc.oaN,{}),n&&t&&(0,y.jsx)(SV,{isSynced:n,balanceSc:t})]})})}function SH(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,y.jsx)(t3,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,y.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,y.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,y.jsx)(dl,{size:30})}),(0,y.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,y.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,y.jsx)("div",{className:"flex-1"}),(0,y.jsx)(cF,{className:"w-full"}),i&&(0,y.jsx)(SB,{routes:t,isSynced:r,walletBalanceSc:o}),(0,y.jsx)(SZ,{title:"Blockchain node",route:t.node.index,children:(0,y.jsx)(lc.kBK,{})}),(0,y.jsx)(SZ,{title:"App preferences",onClick:()=>s(),children:(0,y.jsx)(lc.UG6,{})}),(0,y.jsx)(SZ,{title:"Lock app",onClick:a,children:(0,y.jsx)(lc.mBM,{})})]})]})})}var SU=Object.create,SW=Object.defineProperty,Sq=Object.getOwnPropertyDescriptor,S$=Object.getOwnPropertyNames,SK=Object.getPrototypeOf,SY=Object.prototype.hasOwnProperty,SG=(m=null!=(p=(f=(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={})},()=>(h||f((h={exports:{}}).exports,h),h.exports))())?SU(SK(p)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of S$(t))SY.call(e,n)||void 0===n||SW(e,n,{get:()=>t[n],enumerable:!(r=Sq(t,n))||r.enumerable});return e})(p&&p.__esModule?m:SW(m,"default",{value:p,enumerable:!0}),p)),SX=e=>void 0!==e.method&&"call"===e.method,SJ=e=>null===e.error&&"number"==typeof e.id;v=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(SX(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(SJ(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,SG.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,SG.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,SG.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,SG.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=v(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var SQ=(typeof window>"u"?"undefined":typeof window)=="object",S0={setTimeout:SQ?setTimeout.bind(window):setTimeout,clearTimeout:SQ?clearTimeout.bind(window):clearTimeout,setInterval:SQ?setInterval.bind(window):setInterval,clearInterval:SQ?clearInterval.bind(window):clearInterval},S1={},S2=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,S1[e]=S1[e]||[],S1[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),S0.setTimeout(()=>{window.localStorage.removeItem(n)},500),S1[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=S1[this.name].indexOf(this);S1[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)}},S4=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:S2;function S3(){return Math.random().toString(36).substring(2)}var S5=class{options;channel;token=S3();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=>S0.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{S0.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=S0.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=>S0.clearInterval(e))}catch{}}}},S6=class{channel;options;elector;token=S3();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new S4(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new S5(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()}},S8=SQ?document:null,S7=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function S9(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function _t(e){let{route:t}=e,n=(0,fY.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function _n(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:b}=e,{lock:w,settings:j}=(0,fY.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=_t({route:n}),{settings:a}=(0,fY.Hv)(),s=(0,SO.useRouter)();(0,x.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:w,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e,i=(0,x.useCallback)(()=>{n()},[n]);!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=S8,events:i=S7,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:w="idle-timer",syncTimers:j=0,leaderElection:E=!1,disabled:k=!1}={}){let S=(0,x.useRef)(_e()),_=(0,x.useRef)(_e()),C=(0,x.useRef)(null),O=(0,x.useRef)(null),M=(0,x.useRef)(0),T=(0,x.useRef)(0),A=(0,x.useRef)(0),P=(0,x.useRef)(0),N=(0,x.useRef)(!1),R=(0,x.useRef)(!1),D=(0,x.useRef)(!1),L=(0,x.useRef)(!0),F=(0,x.useRef)(!1),z=(0,x.useRef)(null),V=(0,x.useRef)(null),I=(0,x.useRef)(e),Z=(0,x.useRef)(0);(0,x.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?(I.current=e-n,Z.current=n):(I.current=e,Z.current=t),!L.current){if(g||k)return;N.current&&(G.current(null,eA),V.current&&V.current.active()),ed()}},[e,t,n,g,k]);let B=(0,x.useRef)(y);(0,x.useEffect)(()=>{B.current=y},[y]);let H=(0,x.useRef)(a),U=(0,x.useRef)(r),W=(0,x.useRef)([...new Set([...i,...a]).values()]),q=(0,x.useRef)(k);(0,x.useEffect)(()=>{q.current=k,!L.current&&(k?ep():g||ed())},[k]);let $=(0,x.useRef)(s);(0,x.useEffect)(()=>{$.current=s},[s]);let K=(0,x.useRef)(l);(0,x.useEffect)(()=>{K.current=l},[l]);let Y=(0,x.useRef)(u);(0,x.useEffect)(()=>{Y.current=u},[u]);let G=(0,x.useRef)(c);(0,x.useEffect)(()=>{G.current=c},[c]);let X=(0,x.useRef)(d);(0,x.useEffect)(()=>{X.current=d},[d]);let J=(0,x.useRef)(f);(0,x.useEffect)(()=>{J.current=f},[f]);let Q=(0,x.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?S9(e,p):e},[p,h]),ee=(0,x.useRef)();(0,x.useEffect)(()=>{b&&j&&(ee.current=S9(()=>{V.current.active()},j))},[b,j]);let et=()=>{null!==z.current&&(S0.clearTimeout(z.current),z.current=null)},en=(e,t=!0)=>{et(),z.current=S0.setTimeout(ea,e||I.current),t&&(O.current=_e())},er=e=>{R.current||N.current||(K.current(e,eA),$.current({type:"active",prompted:!0},eA)),P.current=0,A.current=_e(),R.current=!0,en(Z.current,!1)},ei=()=>{et(),N.current||(Y.current(null,eA),$.current({type:"idle"},eA)),N.current=!0,C.current=_e(),B.current?ec():R.current&&(A.current=0,R.current=!1)},eo=e=>{et(),(N.current||R.current)&&(G.current(e,eA),$.current({type:"active",prompted:!1},eA)),R.current=!1,A.current=0,N.current=!1,M.current+=_e()-C.current,T.current+=_e()-C.current,eu(),en()},ea=e=>{if(!N.current){Q.cancel&&Q.cancel();let t=_e()-O.current;if(!(I.current+Z.current0&&!R.current){V.current?V.current.prompt():er(e);return}V.current?V.current.idle():ei();return}V.current?V.current.active():eo(e)},es=e=>{if(v||O.current||(O.current=_e(),G.current(null,eA)),Q(e,eA),R.current)return;if(et(),!N.current&&H.current.includes(e.type)){ea(e);return}let t=_e()-O.current;if(N.current&&!y||!N.current&&t>=I.current){ea(e);return}D.current=!1,P.current=0,A.current=0,en(),b&&j&&ee.current()},el=(0,x.useRef)(es);(0,x.useEffect)(()=>{let e=F.current;e&&ec(),m>0?el.current=S9(es,m):el.current=es,e&&eu()},[m,p,h,X,b,j]);let eu=()=>{SQ&&U.current&&(F.current||(W.current.forEach(e=>{U.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),F.current=!0))},ec=(e=!1)=>{SQ&&U.current&&(F.current||e)&&(W.current.forEach(e=>{U.current.removeEventListener(e,el.current,{capture:!0})}),F.current=!1)},ed=(0,x.useCallback)(e=>!q.current&&(et(),eu(),N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,V.current&&!e&&V.current.start(),en(),!0),[z,N,q,I,V]),ef=(0,x.useCallback)(e=>!q.current&&(et(),eu(),_.current=_e(),M.current+=_e()-C.current,T.current+=_e()-C.current,M.current=0,N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,V.current&&!e&&V.current.reset(),g||en(),!0),[z,N,I,g,q,V]),eh=(0,x.useCallback)(e=>!q.current&&(et(),eu(),(N.current||R.current)&&eo(),N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,_.current=_e(),V.current&&!e&&V.current.activate(),en(),!0),[z,N,R,q,I,V]),ep=(0,x.useCallback)((e=!1)=>!q.current&&!D.current&&(P.current=ej(),D.current=!0,ec(),et(),V.current&&!e&&V.current.pause(),!0),[z,q,V]),em=(0,x.useCallback)((e=!1)=>!q.current&&!!D.current&&(D.current=!1,R.current||eu(),N.current||en(P.current),A.current&&(A.current=_e()),V.current&&!e&&V.current.resume(),!0),[z,I,q,P,V]),ev=(0,x.useCallback)((e,t)=>(V.current?(t&&J.current(e,eA),V.current.message(e)):t&&J.current(e,eA),!0),[f]),eg=(0,x.useCallback)(()=>N.current,[N]),ey=(0,x.useCallback)(()=>R.current,[R]),ex=(0,x.useCallback)(()=>V.current?V.current.isLeader:null,[V]),eb=(0,x.useCallback)(()=>V.current?V.current.isLastActive:null,[V]),ew=(0,x.useCallback)(()=>V.current?V.current.token:null,[V]),ej=(0,x.useCallback)(()=>{if(D.current)return P.current;let e=Math.floor((P.current?P.current:Z.current+I.current)-(O.current?_e()-O.current:0));return e<0?0:Math.abs(e)},[I,Z,R,P,O]),eE=(0,x.useCallback)(()=>Math.round(_e()-_.current),[_]),ek=(0,x.useCallback)(()=>Math.round(_e()-S.current),[S]),eS=(0,x.useCallback)(()=>C.current?new Date(C.current):null,[C]),e_=(0,x.useCallback)(()=>O.current?new Date(O.current):null,[O]),eC=(0,x.useCallback)(()=>N.current?Math.round(_e()-C.current+M.current):Math.round(M.current),[C,M]),eO=(0,x.useCallback)(()=>N.current?Math.round(_e()-C.current+T.current):Math.round(T.current),[C,T]),eM=(0,x.useCallback)(()=>{let e=Math.round(eE()-eC());return e>=0?e:0},[C,M]),eT=(0,x.useCallback)(()=>{let e=Math.round(ek()-eO());return e>=0?e:0},[C,M]);(0,x.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(S0.setTimeout=o.setTimeout,S0.clearTimeout=o.clearTimeout,S0.setInterval=o.setInterval,S0.clearInterval=o.clearInterval);let e=()=>{V.current&&V.current.close(),Q.cancel&&Q.cancel(),et(),ec(!0)};return SQ&&window.addEventListener("beforeunload",e),()=>{SQ&&window.removeEventListener("beforeunload",e),V.current&&V.current.close(),Q.cancel&&Q.cancel(),et(),ec(!0)}},[]),(0,x.useEffect)(()=>{V.current&&V.current.close(),b?V.current=new S6({channelName:w,leaderElection:E,onPrompt:()=>{er()},onIdle:()=>{ei()},onActive:()=>{eo()},onMessage:e=>{J.current(e,eA)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):V.current=null},[b,w,E,K,Y,G,J,ed,ef,ep,em]),(0,x.useEffect)(()=>{L.current||(et(),ec(!0)),g||k||(v?ed():eu())},[g,v,k,L]),(0,x.useEffect)(()=>{if(!L.current){let e=[...new Set([...i,...a]).values()];ec(),W.current=e,U.current=r,H.current=a,g||k||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(a),L,k,g,v]),(0,x.useEffect)(()=>{L.current&&(L.current=!1)},[L]);let eA={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:ex,isLastActiveTab:eb,getTabId:ew,getRemainingTime:ej,getElapsedTime:eE,getTotalElapsedTime:ek,getLastIdleTime:eS,getLastActiveTime:e_,getIdleTime:eC,getTotalIdleTime:eO,getActiveTime:eM,getTotalActiveTime:eT,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,K.current=e},setOnIdle:e=>{u=e,Y.current=e},setOnActive:e=>{c=e,G.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,J.current=e}}}({disabled:!t,onIdle:i,timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!j.autoLock,lockTimeout:j.autoLockTimeout,lock:w}),(0,y.jsxs)(SF,{appName:t,title:n,children:[(0,y.jsx)(SN,{}),(0,y.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,y.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,y.jsx)(SH,{routes:v,profile:i,openSettings:b,lock:w,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,y.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,y.jsx)(SA,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,y.jsx)(ul,{className:"z-0",children:(0,y.jsx)(lL,{size:o,pad:!1,children:(0,y.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,y.jsx)(lL,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function _r(e,t,n,r){let[i,o]=(0,x.useState)();return(0,x.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,x.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function _i(e){let{filtered:t}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.Hb6,{className:"scale-[200%]"})}),(0,y.jsx)(t1,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,x.createContext)(null).Consumer;let _o=[];function _a(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=_r(o.data,o.isValidating,o.error,_o),[u,c]=(0,x.useState)(),d=(0,x.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,x.useCallback)(e=>{let t=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});return t},[a]);return(0,y.jsx)(ud,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsxs)(c2,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,y.jsxs)("div",{className:"flex gap-1",children:[(0,y.jsx)(lu,{variant:"info"===u?"accent":"gray",onClick:()=>"info"===u?c(void 0):c("info"),children:"info"}),(0,y.jsx)(lu,{variant:"warning"===u?"accent":"gray",onClick:()=>"warning"===u?c(void 0):c("warning"),children:"warning"}),(0,y.jsx)(lu,{variant:"error"===u?"accent":"gray",onClick:()=>"error"===u?c(void 0):c("error"),children:"error"}),(0,y.jsx)(lu,{variant:"critical"===u?"accent":"gray",onClick:()=>"critical"===u?c(void 0):c("critical"),children:"critical"}),(0,y.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,y.jsxs)(lu,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,y.jsx)(lc.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,y.jsxs)("div",{className:(0,em.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,y.jsx)(_i,{filtered:!1}),"error"===l&&(0,y.jsx)("div",{className:(0,em.cx)("flex items-center justify-center h-[100px]",_u()),children:(0,y.jsx)(t1,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,y.jsx)(_l,{}),!l&&(0,y.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,y.jsxs)("div",{className:(0,em.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,y.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,y.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,y.jsxs)(t1,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,y.jsx)(lu,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,y.jsx)(lc.NlZ,{})})]}),(0,y.jsxs)("div",{className:"flex justify-between w-full",children:[(0,y.jsx)(t1,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,y.jsx)(t1,{color:"contrast",ellipsis:!0,children:(0,vS.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)||_s;return(0,y.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,y.jsx)(_i,{filtered:!!u})})]})})}function _s(e){let{label:t,value:n}=e;return(0,y.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,y.jsx)(t1,{color:"subtle",children:t}),(0,y.jsx)(t1,{color:"contrast",ellipsis:!0,children:String(n)})]})}function _l(){return(0,y.jsx)(y.Fragment,{children:So()(10,e=>(0,y.jsx)("div",{className:(0,em.cx)("relative flex gap-4 p-3.5",_u()),children:(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,y.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,y.jsx)(f8,{className:"w-[160px] h-[20px]"}),(0,y.jsx)(f8,{className:"w-[160px] h-[20px]"})]}),(0,y.jsx)(f8,{className:"w-[100px] h-[20px]"}),(0,y.jsx)(f8,{className:"w-full h-[120px]"})]})},e))})}function _u(){return(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var _c=n(89644),_d=n.n(_c),_f=n(63955),_h=n(45861),_p=n.n(_h);function _m(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,x.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,x.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 _v(e){return(0,x.useCallback)(t=>{kG(_p()(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", "))},[e])}function _g(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}=_m({name:t,form:n,field:u}),p=(0,y.jsx)(fE,{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,y.jsx)(Sy,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var _y=n(829),_x=n.n(_y);async function _b(e){let{api:t,route:n,password:r}=e;try{return await _d().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 _w(e){let{appName:t,route:n,routes:r}=e,i=(0,SO.useRouter)(),{settings:o,setSettings:a}=(0,fY.Hv)(),{allowCustomApi:s}=o,l=(0,x.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,_f.cI)({mode:"onBlur",defaultValues:l});(0,x.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,x.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await _b({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=_v(d),h=u.formState.errors.api||u.formState.errors.password,p=_x()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,y.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,y.jsx)(t3,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,y.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(t1,{font:"mono",weight:"bold",size:"20",children:t}),(0,y.jsx)(cK,{trigger:(0,y.jsx)(lu,{icon:"hover",variant:"ghost",children:(0,y.jsx)(lc.shL,{})}),children:(0,y.jsx)(cY,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,y.jsx)(cF,{className:"w-full mt-2 mb-3"}),(0,y.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,y.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,y.jsxs)(lR,{children:[(0,y.jsx)(_g,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,y.jsx)(cK,{trigger:(0,y.jsx)(lu,{type:"button",children:(0,y.jsx)(lc.wGX,{})}),children:p.map(e=>(0,y.jsx)(cY,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,y.jsx)(_g,{name:"password",form:u,fields:d,group:!1}),h&&(0,y.jsx)(t1,{size:"14",color:"red",children:h.message}),(0,y.jsx)(Sx,{size:"small",form:u,children:"Unlock"})]})})]})})})}var _j=n(9156),_E=n(24511);let _k={address:"",siacoin:void 0,includeFee:!1},_S=_E.Ry().shape({address:_E.Z_().required("Required"),siacoin:_E.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fW())(e||0).isZero())});function __(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,y.jsx)(k9,{value:t,type:"address"})]}),(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,y.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,y.jsx)(k9,{value:i,type:"transaction"})]})]})}function _C(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,y.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,y.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,y.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,y.jsxs)("div",{className:(0,em.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,y.jsx)(t1,{color:l?"contrast":"verySubtle",className:(0,em.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,y.jsx)("div",{className:(0,em.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,y.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 _O(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(__,{address:t,siacoin:n,fee:r,transactionId:i}),(0,y.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.Z$8,{})}),(0,y.jsx)(t1,{children:"Transaction successfully broadcasted."})]})]})}let _M=(0,vS.qN)(.00393),_T={address:"",siacoin:new(fW())(0),includeFee:!1};function _A(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,x.useState)("setup"),[l,u]=(0,x.useState)(),[c,d]=(0,x.useState)(_T),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,_j.TA)({initialValues:_k,validationSchema:_S,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,vS.qN)(e.siacoin).minus(n):(0,vS.qN)(e.siacoin);if(t){if(t.isLessThan((0,vS.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,vS.qN)(i.values.siacoin||0),a=(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(Sb,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,y.jsx)(Sb,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,y.jsxs)("div",{className:"flex items-center",children:[(0,y.jsx)(hd,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,y.jsx)(f0,{children:"Include or exclude the network fee from the above transaction value."}),(0,y.jsx)("div",{className:"flex flex-1"})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",children:"Network fee"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",children:"Total"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:_M,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,_j.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})}}),l=(0,y.jsx)("div",{className:"flex flex-col gap-4",children:(0,y.jsx)(__,{address:o,siacoin:a,fee:r})});return{form:l,formik:s}}({fee:_M,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,x.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,y.jsx)(ud,{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,y.jsx)("div",{className:"flex flex-col gap-1",children:(0,y.jsx)(S_,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(_C,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,y.jsx)(cF,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,y.jsx)(_O,{data:c,fee:_M,transactionId:l})]})})}let _P="[a-fA-F\\d:]",_N=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(_P,")|(?<=").concat(_P,")(?=\\s|$))"):"",_R="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_D="[a-fA-F\\d]{1,4}",_L="\n(?:\n(?:".concat(_D,":){7}(?:").concat(_D,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(_D,":){6}(?:").concat(_R,"|:").concat(_D,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(_D,":){5}(?::").concat(_R,"|(?::").concat(_D,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(_D,":){4}(?:(?::").concat(_D,"){0,1}:").concat(_R,"|(?::").concat(_D,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(_D,":){3}(?:(?::").concat(_D,"){0,2}:").concat(_R,"|(?::").concat(_D,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(_D,":){2}(?:(?::").concat(_D,"){0,3}:").concat(_R,"|(?::").concat(_D,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(_D,":){1}(?:(?::").concat(_D,"){0,4}:").concat(_R,"|(?::").concat(_D,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(_D,"){0,5}:").concat(_R,"|(?::").concat(_D,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),_F=new RegExp("(?:^".concat(_R,"$)|(?:^").concat(_L,"$)")),_z=new RegExp("^".concat(_R,"$")),_V=new RegExp("^".concat(_L,"$")),_I=e=>e&&e.exact?_F:RegExp("(?:".concat(_N(e)).concat(_R).concat(_N(e),")|(?:").concat(_N(e)).concat(_L).concat(_N(e),")"),"g");_I.v4=e=>e&&e.exact?_z:RegExp("".concat(_N(e)).concat(_R).concat(_N(e)),"g"),_I.v6=e=>e&&e.exact?_V:RegExp("".concat(_N(e)).concat(_L).concat(_N(e)),"g");let _Z=()=>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"),_B={port:9981,ip:""},_H=_E.Ry().shape({port:_E.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:_E.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>_Z().test(e||""))});function _U(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,_j.TA)({initialValues:_B,validationSchema:_H,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 k$("Connected to peer"),t.resetForm(),i(!1)}});return(0,y.jsx)(ud,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Connect to a peer by IP address."}),(0,y.jsx)("form",{onSubmit:o.handleSubmit,children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(Sb,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,y.jsx)(Sb,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,y.jsx)(S_,{formik:o,size:"medium",children:"Connect"})]})})]})})}function _W(e){var t;let{id:n,transaction:r,trigger:i,open:o,onOpenChange:a}=e;return(0,y.jsx)(ud,{title:k4((null==r?void 0:r.txType)?Su()(k7(r.txType)):"Transaction",n,16),trigger:i,open:o,onOpenChange:a,contentVariants:{className:"w-[800px]"},children:r?(0,y.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,y.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Inflow"}),(0,y.jsx)(Sn,{value:new(fW())((null==r?void 0:r.inflow)||0)})]}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Outflow"}),(0,y.jsx)(Sn,{value:new(fW())((null==r?void 0:r.outflow)||0).negated()})]}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Miner fee"}),(0,y.jsx)(Sn,{value:new(fW())((null==r?void 0:null===(t=r.raw.minerFees)||void 0===t?void 0:t.reduce((e,t)=>e.plus(t),new(fW())(0)))||0)})]}),(0,y.jsx)("div",{className:"flex-1"}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Timestamp"}),(0,y.jsx)(t1,{children:(0,vS.rN)((null==r?void 0:r.timestamp)||0,{timeStyle:"short"})})]})]}),(0,y.jsx)(lT,{children:JSON.stringify(null==r?void 0:r.raw,null,2)})]}):(0,y.jsx)(t1,{children:"Could not find transaction in wallet"})})}_E.Ry().shape({address:_E.Z_().required("Required"),description:_E.Z_().required("Required"),index:_E.Rx().integer().required("Required")});var _q=n(38001);function _$(e){let{title:t,description:n,address:r}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,y.jsx)(c2,{size:"20",font:"mono",children:t}),n&&(0,y.jsx)(t1,{children:n}),(0,y.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,y.jsx)("div",{className:"absolute",children:(0,y.jsx)(_q.Z,{size:200,value:r})})}),(0,y.jsx)(k9,{type:"address",value:r})]})}function _K(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,y.jsx)(ud,{title:k4("Address",k2(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,y.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,y.jsx)(_$,{address:t||""}):(0,y.jsx)(t1,{children:"Could not retreive wallet address"})})})}function _Y(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lc.qdM,{})}),(0,y.jsxs)(t1,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lc.qdM,{})}),(0,y.jsxs)(t1,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let _G={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"},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"};function _X(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,fY.Hv)();return(0,y.jsx)(f3,{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,y.jsx)(f5,{value:t,children:n},t)})})}function _J(e){let{open:t,onOpenChange:n,securityEl:r}=e,{settings:i,setSettings:o,gpu:a}=(0,fY.Hv)();return(0,y.jsx)(ud,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,y.jsx)("div",{className:"flex flex-col gap-4",children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Display"}),(0,y.jsx)(t2,{size:"14",children:"Configure visual and locale display preferences."}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"Currency"}),(0,y.jsx)(_X,{})]}),(0,y.jsx)(t2,{size:"14",children:"Select a currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"Theme"}),(0,y.jsx)(pU,{})]}),(0,y.jsx)(t2,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"GPU"}),(0,y.jsx)(hd,{disabled:!a.canGpuRender,checked:a.canGpuRender&&a.isGpuEnabled,onCheckedChange:a.setIsGpuEnabled,size:"medium"})]}),(0,y.jsxs)(t2,{size:"14",children:["Enable features that require a GPU."," ",a.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,y.jsx)(cF,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Security"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Configure security preferences."}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"Lock app"}),(0,y.jsx)(hd,{size:"medium",checked:i.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,y.jsxs)(f3,{disabled:!i.autoLock,value:String(i.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,y.jsx)(f5,{value:j6(5),children:"5 minutes"}),(0,y.jsx)(f5,{value:j6(10),children:"10 minutes"}),(0,y.jsx)(f5,{value:j6(20),children:"20 minutes"}),(0,y.jsx)(f5,{value:j6(30),children:"30 minutes"}),(0,y.jsx)(f5,{value:j6(60),children:"1 hour"})]})]}),(0,y.jsx)(t2,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,y.jsx)(cF,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Privacy"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{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,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"Sia Central"}),(0,y.jsx)(hd,{size:"medium",checked:i.siaCentral,onCheckedChange:e=>o({siaCentral:e})})]}),(0,y.jsx)(t2,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,y.jsx)(cF,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Help"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{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,y.jsxs)("div",{className:"flex gap-4",children:[(0,y.jsxs)(di,{href:_G.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lc.lq1,{}),"Website"]}),(0,y.jsxs)(di,{href:_G.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lc.RdX,{}),"Docs"]}),(0,y.jsxs)(di,{href:_G.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lc.Sfn,{}),"About"]}),(0,y.jsxs)(di,{href:_G.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lc.b47,{}),"Discord"]})]})]})]})]})})}function _Q(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,y.jsx)(ls,{content:(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"spendable"}),(0,y.jsx)(t1,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{variant:"value",value:t.spendable})})]}),(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"confirmed"}),(0,y.jsx)(t1,{color:"subtle",children:"All confirmed outputs."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{variant:"value",value:t.confirmed})})]}),(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"unconfirmed"}),(0,y.jsx)(t1,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{variant:"value",value:t.unconfirmed})})]})]}),children:(0,y.jsx)(t3,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,y.jsx)(t1,{size:"12",weight:"semibold",children:(0,vS.Vz)(t.spendable.plus(t.unconfirmed))})})}):(0,y.jsx)(ls,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,y.jsxs)(t3,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lc.qdM,{className:""})}),(0,y.jsx)(t1,{size:"12",weight:"semibold",children:(0,vS.Vz)(t.spendable.plus(t.unconfirmed))})]})}):null}function _0(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,y.jsxs)(y.Fragment,{children:[o&&(0,y.jsx)(_Q,{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,y.jsxs)(lu,{size:"small",onClick:s,children:[(0,y.jsx)(lc.xHM,{}),"Receive"]}),(0,y.jsxs)(lu,{size:"small",variant:"accent",onClick:a,children:[(0,y.jsx)(lc.rW0,{}),"Send"]})]})}let _1={default:e=>"".concat((0,vS.rN)(e))};function _2(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 _4(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function _3(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,pB.F)(),o=(0,x.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:vk.accent[800]}}:{sc:{label:"siacoin",color:vk.accentdark[800]}},[i]),a=(0,x.useMemo)(()=>{let e=function(e,t){if(!e||!e.length)return[];let n=Object.keys(j5()(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}(t,"none"),i=function(e){if(!e||!e.length)return{};let t=Object.keys(j5()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=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,a=t.reduce((t,n)=>t+(n[e]||0),0);return _2({total:a,start:i,end:o,count:t.length})}(n,e)}),{});return{...n,total:function(e,t){let n=_4(e,t[0]),r=_4(e,t[t.length-1]),i=t.reduce((t,n)=>t+_4(e,n),0);return _2({total:i,start:n,end:r,count:t.length})}(t,e)}}(t);return{data:e,stats:i,config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,vS.Vz)(e),formatTimestamp:_1.default||_1.default,disableAnimations:!0},chartType:r,isLoading:n}},[t,n,o,r]);return(0,y.jsx)("div",{className:"relative",children:(0,y.jsx)(Ed,{id:"balance",height:200,allowConfiguration:!1,data:a.data,config:a.config,chartType:a.chartType})})}function _5(e){let{peers:t,connectPeer:n}=e;return(0,y.jsx)(Sh,{title:"Peers",actions:(0,y.jsx)(lu,{onClick:n,children:"Connect"}),entities:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function _6(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,y.jsxs)("div",{className:(0,em.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,y.jsx)("div",{className:"relative top-px",children:(0,y.jsx)(f9,{style:{backgroundColor:o}})}),(0,y.jsx)(t1,{size:t,children:n})]})}function _8(e){return 1008*e}function _7(e){return 4320*e}function _9(e){return e/16666666666666669e-22}function Ce(e){return e/1008}function Ct(e,t){return new Date().getTime()+_9(t-e)}function Cn(e){let{children:t,variant:n,align:r}=e;return(0,y.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,y.jsx)(t1,{size:"10",color:"primary"===n?"contrast":"verySubtle",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function Cr(e){let{date:t,align:n,variant:r}=e;return t?(0,y.jsx)(Cn,{variant:r,align:n,children:(0,vS.rN)(t)}):null}function Ci(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,y.jsx)(Cn,{variant:r,align:n,children:t.toLocaleString()}):null}function Co(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=_9(d),h=Ct(n,r.startHeight),p=Ct(n,i),m=Ct(n,o),v=(p-h)/f,g=(m-h)/f;return(0,y.jsxs)("div",{className:(0,em.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:Ca(v),width:Ca(g-v)},children:[(0,y.jsx)("div",{className:(0,em.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,y.jsx)("div",{className:(0,em.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,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Ca(1-g)}:{left:Ca(v)},children:[(0,y.jsx)(Ci,{blockHeight:i,align:"start",variant:"primary"}),(0,y.jsx)(Cn,{variant:"primary",children:t}),(0,y.jsx)(Ci,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,y.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Ca(1-g)}:{left:Ca(v)},children:[(0,y.jsx)(Cr,{date:p,align:"start",variant:"secondary"}),(0,y.jsx)(Cr,{date:m,align:"start",variant:"secondary"})]}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Ca(1-g)}:{left:Ca(v)},children:[(0,y.jsx)(Cr,{date:p,align:"start",variant:"secondary"}),(0,y.jsx)(Cr,{date:m,align:"start",variant:"secondary"})]})]})}function Ca(e){return"".concat(100*e,"%")}function Cs(e){let{currentHeight:t,eventHeight:n,range:r,label:i,bottomLabel:o,color:a,className:s,unconfirmedPing:l=!0}=e,u=!!n&&n>t,c=n&&!u&&t-n<6,d=r.endHeight-r.startHeight,f=_9(d),h=Ct(t,r.startHeight),p=n?Ct(t,n):0;return n?(0,y.jsx)("div",{className:(0,em.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",s),style:{left:"".concat(100*(p?(p-h)/f:0),"%")},children:(0,y.jsxs)("div",{className:(0,em.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[l&&c&&(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,y.jsx)("div",{className:(0,em.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===a?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===a?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===a?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,y.jsx)(Ci,{blockHeight:n,align:"start",variant:"primary"}),(0,y.jsx)(Cn,{variant:"primary",children:i})]}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,y.jsx)(Cr,{date:p,align:"start",variant:"secondary"}),o&&(0,y.jsx)(Cn,{variant:"secondary",children:o})]})]})}):null}function Cl(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,y.jsx)("div",{className:"group/main relative w-full",children:(0,y.jsx)("div",{className:"relative py-6",children:(0,y.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,y.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,y.jsxs)("div",{className:"group/segments",children:[(0,y.jsx)(Co,{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,y.jsx)(Co,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,y.jsx)(Cs,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,y.jsx)(Cs,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,y.jsx)(Cs,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,y.jsx)(Cs,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var Cu=n(17335),Cc=n.n(Cu);function Cd(e){let{label:t,columns:n,enabled:r,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===Cc()(n,r).length,s=Cc()(n,r).length===n.length;return(0,y.jsxs)(cH,{children:[(0,y.jsx)(dt,{children:t}),(0,y.jsxs)(cU,{children:[(0,y.jsx)(lu,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(n)},children:(0,y.jsx)(lc.xVB,{})}),(0,y.jsx)(lu,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,y.jsx)(lc.pHg,{})})]})]})}function Cf(e){let{title:t,children:n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,y.jsx)(c2,{anchorLink:!0,size:"24",children:t}),(0,y.jsx)(t3,{className:"p-6",children:(0,y.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function Ch(e){let{title:t,description:n,control:r}=e;return(0,y.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,y.jsx)(c2,{size:"20",children:t}),(0,y.jsx)(t2,{size:"14",children:n})]}),(0,y.jsx)("div",{className:"",children:r})]})}function Cp(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,_f.cI)(),d=(0,x.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,y.jsx)(ud,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,y.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,y.jsx)("div",{className:"flex gap-1 justify-end",children:(0,y.jsx)(Sx,{variant:s,form:c,size:"small",children:l})})]})})})}function Cm(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(t1,{font:"mono",weight:"bold",size:"20",children:t}),(0,y.jsxs)("div",{className:"flex items-center",children:[n?(0,y.jsxs)(lu,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,y.jsx)(t1,{color:"subtle",children:n.toLocaleString()}),(0,y.jsx)(lc.RK4,{})]}):null,i&&r?(0,y.jsx)(ls,{content:"Blockchain is synced",children:(0,y.jsx)("div",{className:"relative left-2",children:(0,y.jsxs)(lu,{variant:"ghost",state:"waiting",children:[(0,y.jsx)(t1,{color:"subtle",children:i.toLocaleString()}),(0,y.jsx)(t1,{color:"green",children:(0,y.jsx)(lc.Y3p,{})})]})})}):null]})]})}function Cv(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,y.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,y.jsx)(dU,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,y.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,y.jsx)(t1,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,y.jsx)(t1,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,y.jsx)(t1,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function Cg(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,y.jsx)(h7,{rootProps:{openDelay:100},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,y.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,y.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,y.jsxs)(t1,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,y.jsx)(dl,{size:30})]}),children:(0,y.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[300px]",children:[(0,y.jsx)(Cm,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,y.jsx)(cF,{className:"w-full mb-0.5"}):(0,y.jsx)(Cv,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{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,y.jsx)(cF,{className:"w-full mb-1"})]}),c]})})}function Cy(e){let{testnetName:t}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,y.jsx)(t1,{color:"lo",children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsxs)(t1,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function Cx(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(ls,{align:"start",side:"bottom",content:i,children:(0,y.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,y.jsx)(t1,{className:"flex relative",children:o||(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(t1,{size:"12",ellipsis:!0,children:r?(0,y.jsx)(di,{href:r,target:"_blank",children:n}):n})]})}),(0,y.jsx)("div",{className:(0,em.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,y.jsx)(Sn,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,y.jsx)(Sr,{value:a,variant:"value",size:"12",format:e=>"".concat(fq(e,l)," ").concat(u)})})]})}function Cb(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}=_m({name:t,field:i,form:n}),b=d||(()=>null),w=(0,x.useMemo)(()=>s?new(fW())(s):a&&"boolean"!=typeof a?new(fW())(a):void 0,[s,a]);return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(fJ,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:w,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),(0,y.jsx)(b,{name:t,form:n,fields:r}),o&&(0,y.jsx)(Cx,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,vS.qN)(o),onClick:()=>{m(o,!0)}}),a&&u&&(0,y.jsx)(Cx,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,vS.qN)(a),onClick:()=>{m(a,!0)}})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function Cw(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}=_m({form:n,field:i,name:t}),m=(0,x.useMemo)(()=>c?new(fW())(c):s&&"boolean"!=typeof s?new(fW())(s):void 0,[c,s]);return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(f$,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(fW())(e):void 0;f(t,!0)},onBlur:()=>{f(h,!0)}}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,y.jsx)(Cx,{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,y.jsx)(Cx,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function Cj(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(ls,{align:"start",side:"bottom",content:r,children:(0,y.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,y.jsx)(t1,{className:"flex relative",children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(t1,{size:"12",children:n?(0,y.jsx)(di,{href:n,target:"_blank",children:t}):t})]})}),(0,y.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,y.jsx)(t1,{size:"12",children:(0,y.jsx)(lP,{children:i})})})]})}function CE(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}=_m({name:t,form:n,field:o});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(fE,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,y.jsx)(Cj,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function Ck(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=_m({name:t,field:i,form:n});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)("div",{className:"flex justify-end w-full",children:(0,y.jsx)(hd,{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,y.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,y.jsx)(Cj,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function CS(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}=_m({name:t,form:n,field:i});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)("div",{className:"flex justify-end w-full",children:(0,y.jsx)(f3,{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,y.jsx)(f5,{value:e.value,children:e.label},e.value))})}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,y.jsx)(Cj,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function C_(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,y.jsx)(Cf,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(Ch,{title:a.title,description:a.description,control:"number"===a.type?(0,y.jsx)(Cw,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,y.jsx)(Cb,{form:r,name:n,fields:i}):"text"===a.type?(0,y.jsx)(CE,{form:r,name:n,fields:i}):"password"===a.type?(0,y.jsx)(CE,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,y.jsx)(Ck,{form:r,name:n,fields:i}):"select"===a.type?(0,y.jsx)(CS,{form:r,name:n,fields:i}):null}),t{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,y.jsx)(Sy,{title:s.title,name:t,form:n,children:d}):d}var CO=n(75652),CM=n.n(CO);lc.lg1,lc.eHR,lc.I$H,lc.KiD,lc.P5r,lc.CCF,lc.w9S,lc.EL$,lc.aPl,lc.wEY,lc.EOT,lc.kSc,lc.W$S,lc.lJ7,lc.ORH,lc.ka0,lc.BdP,lc.d19,lc.Mes,lc.VUg,lc.U_S,lc.T85;let CT=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,x.useState)(!0),l=(0,x.useRef)(!1),u=(0,x.useRef)(0);return(0,x.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,x.createElement)(tL,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,x.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,x.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,x.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function CA(e){let{children:t}=e,[n,r]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{r(!0)},[]),(0,y.jsx)("div",{children:n?t:null})}function CP(e){let{passwordProtectRequestHooks:t,fallback:n,children:r,lockRoutes:i}=e;return(0,y.jsx)(CA,{children:(0,y.jsx)(fY.kl,{fallback:n,children:(0,y.jsx)(pB.f,{attribute:"class",children:(0,y.jsx)(CT,{children:(0,y.jsx)(fY.bW,{lockRoutes:i,passwordProtectRequestHooks:t,children:(0,y.jsxs)("div",{id:"root",className:lo,children:[(0,y.jsx)(kJ,{}),r]})})})})})})}n(331);var CN=n(30898),CR=n.n(CN),CD=n(92762);let CL=[];function CF(e,t){let{columns:n,columnsDefaultVisible:r,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:CL,...t},[s,l]=(0,CD.Z)("".concat(e,"/enabledColumns"),{defaultValue:r}),[u,c]=(0,CD.Z)("".concat(e,"/sortField"),{defaultValue:i}),[d,f]=(0,CD.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),h=(0,x.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),p=(0,x.useCallback)(e=>{l(t=>CM()([...t,...e]))},[l]),m=(0,x.useCallback)(e=>{l(t=>Cc()(t,e))},[l]),v=(0,x.useCallback)(()=>{l(r)},[l,r]),g=(0,x.useCallback)(e=>{if(u!==e){c(e),f("asc");return}f(e=>"desc"===e?"asc":"desc")},[u,c,f]),y=(0,x.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),b=(0,x.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]),w=(0,x.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return CR()(e,b)},[o,b]);return{configurableColumns:y,enabledColumns:b,toggleColumnVisibility:h,toggleSort:g,setSortDirection:f,setSortField:c,sortableColumns:w,sortField:u,setColumnsVisible:p,setColumnsHidden:m,sortDirection:d,resetDefaultColumnVisibility:v}}function Cz(){let e=(0,SO.useRouter)(),[t,n]=(0,x.useState)([]),r=(0,x.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,x.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,x.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,x.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}function CV(e){let{dataset:t,filters:n,sortField:r,sortDirection:i}=e;return(0,x.useMemo)(()=>{if(!t)return null;let e=Object.entries(n).map(e=>{let[t,n]=e;return n}),o=e.length?t.filter(t=>{for(let n of e)if(!n.fn(t))return!1;return!0}):t;return[...o=o.sort((e,t)=>{let n=e[r],o=t[r];return"desc"===i?n instanceof fW()&&o instanceof fW()?n.lte(o)?1:-1:n<=o?1:-1:n instanceof fW()&&o instanceof fW()?n.gte(o)?1:-1:n>=o?1:-1})]},[t,n,r,i])}function CI(){let e=(0,SO.useRouter)(),[t,n]=(0,x.useState)([]),r=(0,x.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,x.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,x.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,x.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}let CZ=new(fW())(0);function CB(e){let{sc:t}=e,{settings:n}=(0,fY.Hv)(),r=(0,fG.BW)({config:{swr:{revalidateOnFocus:!1}}}),i=(0,x.useMemo)(()=>{var e;return n.siaCentral&&r.data?new(fW())((null===(e=r.data)||void 0===e?void 0:e.rates.sc[n.currency.id])||CZ):CZ},[r.data,n]),o=(0,x.useMemo)(()=>new(fW())(t).times(i),[t,i]);return i.isZero()?{}:{fiat:o,currency:n.currency}}function CH(e){return new(fW())(e).div(1e3).div(1e3).div(1e3).div(1e3)}function CU(e){return new(fW())(e).times(1e3).times(1e3).times(1e3).times(1e3)}function CW(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)+720,n.startHeight=n.startHeight-720;let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=j8(1);let o=r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{});return{allDatesMap:o,range:n}}let Cq=/^[a-z]{2}$/i;function C$(e){if(!Cq.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."))}let t=[...e.toUpperCase()].map(e=>e.codePointAt()+127397);return String.fromCodePoint(...t)}},2850:function(e,t,n){"use strict";n.d(t,{bW:function(){return L},kl:function(){return $},gw:function(){return i},Tc:function(){return U},du:function(){return W},Hv:function(){return D},iv:function(){return Z},rB:function(){return B},Nf:function(){return I},Tu:function(){return q},mw:function(){return z},q0:function(){return F},Tb:function(){return O},V1:function(){return V},Q5:function(){return H},D:function(){return T}});var r=n(79381);function i(e){return new Promise(t=>setTimeout(t,e))}var o=n(89644),a=n.n(o),s=n(2784);function l(e){return{...e,config:{...null==e?void 0:e.config}}}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,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function f(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=d(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 h(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){let n=Object.keys(t);for(let r of n){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}}return e}(t,i)))return null;let o=d(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function p(e,t,n,r){let i=d(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var m=n(52322),v=n(82876),g=n(92762);function y(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 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 b(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 w="undefined"==typeof window,j=(()=>{if(w)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 k=[],S=[];function _(e){return null!=e}let C=({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"}={})=>y(void 0,void 0,void 0,function*(){let a={};if(w)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==j?void 0:j.isIpad),isMobile:l=!!(null==j?void 0:j.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>y(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 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=b(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==j?void 0:j.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=b(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==j?void 0:j.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 y(this,void 0,void 0,function*(){let n;let r=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let n of t)if(e.includes(n))return n})(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 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 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:x}=window,b=u.width*x*u.height*x;for(let e of g){let[t,n]=e,r=t*n,i=Math.abs(b-r);ie===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,C,O]=v[0];if(-1===g)return f(0,"BLOCKLISTED",C,g,O);let M=l?e:t,T=0;for(let e=0;e=M[e]&&(T=e);return f(T,"BENCHMARK",C,g,O)});function O(){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 M=(0,s.createContext)({}),T=()=>(0,s.useContext)(M);function A(e){let{children:t}=e,n=function(){let[e,t]=(0,s.useState)({}),n=(0,s.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]),r=(0,s.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,s.useCallback)(()=>{t({})},[t]),o=(0,s.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:n,removeWorkflow:r,resetWorkflows:i,workflows:o}}();return(0,m.jsx)(M.Provider,{value:n,children:t})}let P=[{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}],N={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:P[0],recentApis:{},autoLock:!1,autoLockTimeout:6e5},R=(0,s.createContext)({}),D=()=>(0,s.useContext)(R);function L(e){let{children:t,...n}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:i}=e,o=(0,s.useMemo)(()=>({...N,...i}),[i]),[a,l]=(0,g.Z)("v0/settings",{defaultValue:o});(0,s.useEffect)(()=>{l(e=>({...o,...e}))},[]);let u=(0,s.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=T(),d=(0,s.useCallback)(e=>{l(t=>({...t,...e}))},[l]),f=(0,s.useCallback)(e=>{let t=P.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,v.useRouter)(),p=(0,v.usePathname)(),[m,y]=(0,s.useState)({}),x=(0,s.useCallback)((e,t)=>{y(n=>({...n,[e]:t}))},[y]),b=(0,s.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,r.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=(0,s.useMemo)(()=>!!u.password,[u]),j=function(){let e=O(),[t,n]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},l]=(0,g.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,s.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];l(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[l]),c=(0,s.useCallback)(async()=>{let e=!1;{let t=await C();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,a]);return(0,s.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:P,gpu:j,lock:b,isUnlocked:w,passwordProtectRequestHooks:t,setOnLockCallback:x}}(n);return(0,m.jsx)(R.Provider,{value:i,children:t})}function F(e){var t;let n=(0,s.useMemo)(()=>u(e),[e]),{settings:i,passwordProtectRequestHooks:o}=D(),l=h(i,n.route,n,void 0),c=(0,s.useMemo)(()=>{var t,r;return t=l?"".concat(l).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,r=n.disabled||o&&!i.password,!t||r?null:t},[l,e,n,o,i]);return(0,r.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=f(i,n,void 0);if(!l)throw Error("No route");try{let n=await a().post(l,e.payload,t);return n.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 z(e,t){let{setWorkflow:n,removeWorkflow:i}=T(),{mutate:o}=(0,r.kY)(),{settings:s}=D(),u=l(e);return{post:async e=>{let r=c(e);try{let l;let c=f(s,u,r),d=h(s,u.route,u,r);if(!d)throw Error("No route");"payload"in r&&(l=r.payload);let m="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=p(s,d,e,r);n(m,{path:v,payload:l});let g=await a().post(d,l,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let i=p(s,n,e,r);return t(i)},n,i)},r,g),i(m),{status:g.status,data:g.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function V(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=D(),{setWorkflow:o,removeWorkflow:s}=T(),u=l(e);return{put:async e=>{let r=c(e);try{let l;let c=f(i,u,r),d=h(i,u.route,u,r);if(!d)throw Error("No route");"payload"in r&&(l=r.payload);let m="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=p(i,d,e,r);o(m,{path:v,payload:l});let g=await a().put(d,l,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=p(i,n,e,r);return t(o)},o,a)},r,g),s(m),{status:g.status,data:g.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function I(e){var t,n,i;let o=(0,s.useMemo)(()=>u(e),[e]),{settings:l,passwordProtectRequestHooks:c}=D(),d=h(l,o.route,o,void 0);return(0,r.ZP)((n=e.standalone?"".concat(e.standalone,"/").concat(d):d,i=o.disabled||c&&!l.password,!n||i?null:n),async()=>{if(!o.route)throw Error("No route");let e=f(l,o,void 0);if(!d)throw Error("No route");try{let t=await a().get(d,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=o.config)||void 0===t?void 0:t.swr)}function Z(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=D(),{setWorkflow:o,removeWorkflow:s}=T(),u=l(e);return{delete:async e=>{let r=c(e);try{let l=f(i,u,r),c=h(i,u.route,u,r);if(!c)throw Error("No route");let d=p(i,c,e,r);o(c,{path:d});let m=await a().delete(c,l);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=p(i,n,e,r);return t(o)},o,a)},r,m),s(c),{status:m.status,data:m.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function B(e){var t;let{get:n}=function(e){let{settings:t}=D(),n=l(e);return{get:async e=>{let r=c(e);try{let e=f(t,n,r),i=h(t,n.route,n,r);if(!i)throw Error("No route");let o=await a().get(i,e);return{status:o.status,data:o.data}}catch(t){var i,o,s,l;let e=(null===(i=t.response)||void 0===i?void 0:i.data)instanceof Blob?await (null===(o=t.response)||void 0===o?void 0:o.data.text()):(null===(s=t.response)||void 0===s?void 0:s.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 H(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,r]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(n)return;let i=setInterval(()=>{e()&&(r(!0),clearInterval(i))},t);return()=>clearInterval(i)},[e,n,t]),n}function U(){return Math.round((new Date().getTime()-14336e8)/6e5)}function W(){return Math.round((new Date().getTime()-16736e8)/6e5)}function q(e){let{settings:t}=D();return(0,s.useMemo)(()=>function(n,i,o){return(0,r.JG)(r=>{if("string"!=typeof r)return!1;let i=p(t,r,e,void 0);return n(i)},i,o)},[t,e])}function $(e){let{fallback:t,cacheProvider:n,children:i}=e;return(0,m.jsx)(A,{children:(0,m.jsx)(r.J$,{value:{fallback:t||{},provider:n},children:i})})}},88242: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,{aXP:function(){return t1},eHR:function(){return t7},xHM:function(){return t9},L6f:function(){return ne},rW0:function(){return nt},osk:function(){return nn},JaG:function(){return nr},wWN:function(){return iG},Dkj:function(){return i6},fi8:function(){return iY},EMN:function(){return nc},bdU:function(){return nd},VUy:function(){return nf},Cp0:function(){return nh},kqg:function(){return np},Mes:function(){return nm},DI$:function(){return ng},NlZ:function(){return nM},Y3p:function(){return nA},Z$8:function(){return nT},tEK:function(){return nP},cRw:function(){return nN},F3j:function(){return nR},PcV:function(){return nL},QN4:function(){return nD},Jsc:function(){return nF},bQp:function(){return nV},Y9T:function(){return nz},wEY:function(){return nB},olJ:function(){return nH},KiD:function(){return nq},B4q:function(){return nX},_Eq:function(){return n$},VHe:function(){return i4},Jrl:function(){return nJ},aPl:function(){return nQ},kBK:function(){return i1},c_L:function(){return n4},Bpb:function(){return n3},vzB:function(){return n5},iG7:function(){return re},nDH:function(){return rt},d19:function(){return rn},w9S:function(){return rr},VBo:function(){return iX},q0D:function(){return rl},Hb6:function(){return rs},CCF:function(){return ru},L37:function(){return rf},ROc:function(){return i3},UG6:function(){return i2},lq1:function(){return rh},zvn:function(){return iJ},EL$:function(){return rm},BdP:function(){return rw},e1T:function(){return rj},P5r:function(){return rE},RdX:function(){return rk},U_S:function(){return rS},V8Q:function(){return rA},POp:function(){return rP},nCM:function(){return rD},kSc:function(){return rR},TtX:function(){return rN},mBM:function(){return i0},b47:function(){return rz},Sfn:function(){return rV},W$S:function(){return rW},T85:function(){return rq},c6N:function(){return r$},Ckx:function(){return rK},EOT:function(){return rY},RK4:function(){return rX},XJM:function(){return r1},RRj:function(){return r2},ka0:function(){return r4},hzZ:function(){return r6},n6M:function(){return r8},VUg:function(){return ir},owP:function(){return ii},Fs9:function(){return io},wGX:function(){return ia},Wet:function(){return iu},ZEk:function(){return ic},$Iz:function(){return iv},UBs:function(){return ig},shL:function(){return iy},hiv:function(){return ix},mli:function(){return iw},lJ7:function(){return i5},ORH:function(){return iS},I98:function(){return i_},R$6:function(){return iC},JCW:function(){return iD},xVB:function(){return iL},pHg:function(){return iF},I$H:function(){return iV},HCc:function(){return iz},oaN:function(){return iQ},qdM:function(){return iI},Gu6:function(){return iZ},SmH:function(){return iW},RFr:function(){return iq},lg1:function(){return i$}});var a,s,l,u,c,d,f,h,p,m,v,g,y,x,b,w,j,E,k,S,_,C,O,M,T,A,P,N,R,D,L,F,z,V,I,Z,B,H,U,W,q,$,K,Y,G,X,J,Q,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,ej,eE,ek,eS,e_,eC,eO,eM,eT,eA,eP,eN,eR,eD,eL,eF,ez,eV,eI,eZ,eB,eH,eU,eW,eq,e$,eK,eY,eG,eX,eJ,eQ,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,tx,tb,tw,tj,tE,tk,tS,t_,tC,tO,tM,tT,tA,tP,tN,tR,tD,tL,tF,tz,tV,tI,tZ=["width","height","viewBox"],tB=["tabindex"],tH={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tU=n(13980),tW=n.n(tU),tq=n(2784);function t$(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 tK(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 tX=["className","children","tabIndex"],tJ=["tabindex"],tQ=tq.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,tZ),l=s.tabindex,u=o(s,tB),c=i(i(i({},tH),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}(tK(tK({},tG(e,tX)),{},{tabindex:a})),l=s.tabindex,u=tG(s,tJ);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tq.createElement("svg",u,r)});tQ.displayName="Icon",tQ.propTypes={"aria-hidden":tW().string,"aria-label":tW().string,"aria-labelledby":tW().string,children:tW().node,className:tW().string,height:tW().oneOfType([tW().number,tW().string]),preserveAspectRatio:tW().string,tabIndex:tW().string,viewBox:tW().string,width:tW().oneOfType([tW().number,tW().string]),xmlns:tW().string},tQ.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var t0=["children"],t1=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t0);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tq.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)}),t2=["children"],t4=["children"],t3=["children"],t5=["children"],t6=["children"],t8=["children"],t7=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t2);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tq.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tq.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),t9=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t4);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tq.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)}),ne=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t3);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tq.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)}),nt=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t5);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tq.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)}),nn=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t6);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tq.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)}),nr=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t8);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tq.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),p||(p=tq.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),m||(m=tq.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),v||(v=tq.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),g||(g=tq.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),y||(y=tq.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),x||(x=tq.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),b||(b=tq.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),w||(w=tq.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)}),ni=["children"],no=["children"],na=["children"],ns=["children"],nl=["children"],nu=["children"],nc=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ni);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tq.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),nd=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,no);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),E||(E=tq.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),nf=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,na);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tq.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),nh=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ns);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tq.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),np=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nl);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tq.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nm=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nu);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tq.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)}),nv=["children"],ng=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nv);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tq.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"})),M||(M=tq.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)}),ny=["children"],nx=["children"],nb=["children"],nw=["children"],nj=["children"],nE=["children"],nk=["children"],nS=["children"],n_=["children"],nC=["children"],nO=["children"],nM=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ny);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=tq.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nT=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nx);return tq.createElement(tQ,tY({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tq.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"})),P||(P=tq.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)}),nA=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nb);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tq.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"})),R||(R=tq.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)}),nP=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nw);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),D||(D=tq.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),L||(L=tq.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)}),nN=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nj);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),F||(F=tq.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n)}),nR=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nE);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),z||(z=tq.createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n)}),nD=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nk);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=tq.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)}),nL=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nS);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),I||(I=tq.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)}),nF=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n_);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tq.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"})),B||(B=tq.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)}),nz=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nC);return tq.createElement(tQ,tY({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=tq.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"})),U||(U=tq.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)}),nV=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nO);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),W||(W=tq.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"})),q||(q=tq.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)}),nI=["children"],nZ=["children"],nB=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nI);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),$||($=tq.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"})),K||(K=tq.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nH=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nZ);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tq.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"})),G||(G=tq.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nU=["children"],nW=["children"],nq=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nU);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),X||(X=tq.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"})),J||(J=tq.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)}),n$=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nW);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Q||(Q=tq.createElement("circle",{cx:"22",cy:"24",r:"2"})),ee||(ee=tq.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"})),et||(et=tq.createElement("circle",{cx:"8",cy:"8",r:"1"})),en||(en=tq.createElement("circle",{cx:"8",cy:"16",r:"1"})),er||(er=tq.createElement("circle",{cx:"8",cy:"24",r:"1"})),ei||(ei=tq.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)}),nK=["children"],nY=["children"],nG=["children"],nX=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nK);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eo||(eo=tq.createElement("path",{d:"M8 18H12V20H8zM14 18H18V20H14zM8 14H12V16H8zM14 22H18V24H14zM20 14H24V16H20zM20 22H24V24H20z"})),ea||(ea=tq.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)}),nJ=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nY);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tq.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),el||(el=tq.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),nQ=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nG);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=tq.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ec||(ec=tq.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),n0=["children"],n1=["children"],n2=["children"],n4=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n0);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tq.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"})),ef||(ef=tq.createElement("path",{d:"M10 22H22V24H10zM10 16H22V18H10z"})),n)}),n3=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n1);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tq.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),n5=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n2);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tq.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)}),n6=["children"],n8=["children"],n7=["children"],n9=["children"],re=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n6);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tq.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),n)}),rt=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n8);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ev||(ev=tq.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)}),rn=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n7);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tq.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"})),ey||(ey=tq.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ex||(ex=tq.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),rr=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n9);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tq.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)}),ri=["children"],ro=["children"],ra=["children"],rs=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ri);return tq.createElement(tQ,tY({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tq.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)}),rl=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ro);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tq.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)}),ru=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ra);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=tq.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)}),rc=["children"],rd=["children"],rf=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rc);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ek||(ek=tq.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"})),eS||(eS=tq.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)}),rh=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rd);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=tq.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"})),eC||(eC=tq.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)}),rp=["children"],rm=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rp);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=tq.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)}),rv=["children"],rg=["children"],ry=["children"],rx=["children"],rb=["children"],rw=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rv);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eM||(eM=tq.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)}),rj=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rg);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tq.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"})),eA||(eA=tq.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)}),rE=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ry);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tq.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)}),rk=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rx);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eN||(eN=tq.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"})),eR||(eR=tq.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)}),rS=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rb);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tq.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)}),r_=["children"],rC=["children"],rO=["children"],rM=["children"],rT=["children"],rA=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,r_);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eL||(eL=tq.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"})),eF||(eF=tq.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)}),rP=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rC);return tq.createElement(tQ,tY({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ez||(ez=tq.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"})),eV||(eV=tq.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)}),rN=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rO);return tq.createElement(tQ,tY({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=tq.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)}),rR=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rM);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eZ||(eZ=tq.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)}),rD=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rT);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tq.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)}),rL=["children"],rF=["children"],rz=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rL);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=tq.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"})),eU||(eU=tq.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)}),rV=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rF);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eW||(eW=tq.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)}),rI=["children"],rZ=["children"],rB=["children"],rH=["children"],rU=["children"],rW=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rI);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eq||(eq=tq.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$=tq.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)}),rq=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rZ);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=tq.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)}),r$=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rB);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tq.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"})),eG||(eG=tq.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)}),rK=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rH);return tq.createElement(tQ,tY({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eX||(eX=tq.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"})),eJ||(eJ=tq.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)}),rY=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rU);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=tq.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"})),e0||(e0=tq.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)}),rG=["children"],rX=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rG);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e1||(e1=tq.createElement("circle",{cx:"21",cy:"26",r:"2"})),e2||(e2=tq.createElement("circle",{cx:"21",cy:"6",r:"2"})),e4||(e4=tq.createElement("circle",{cx:"4",cy:"16",r:"2"})),e3||(e3=tq.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)}),rJ=["children"],rQ=["children"],r0=["children"],r1=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rJ);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=tq.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),r2=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rQ);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=tq.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),r4=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,r0);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e8||(e8=tq.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"})),e7||(e7=tq.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),r3=["children"],r5=["children"],r6=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,r3);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tq.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"})),te||(te=tq.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)}),r8=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,r5);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=tq.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)}),r7=["children"],r9=["children"],ie=["children"],it=["children"],ir=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,r7);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tq.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"})),tr||(tr=tq.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)}),ii=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,r9);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=tq.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),to||(to=tq.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"})),ta||(ta=tq.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)}),io=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ie);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tq.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)}),ia=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,it);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tl||(tl=tq.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),tu||(tu=tq.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)}),is=["children"],il=["children"],iu=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,is);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tc||(tc=tq.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)}),ic=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,il);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tq.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)}),id=["children"],ih=["children"],ip=["children"],im=["children"],iv=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,id);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tf||(tf=tq.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)}),ig=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ih);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tq.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)}),iy=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ip);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tp||(tp=tq.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"})),tm||(tm=tq.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)}),ix=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,im);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tv||(tv=tq.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)}),ib=["children"],iw=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ib);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tq.createElement("path",{d:"M8 15H24V17H8z"})),n)}),ij=["children"],iE=["children"],ik=["children"],iS=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ij);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ty||(ty=tq.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)}),i_=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iE);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tx||(tx=tq.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"})),tb||(tb=tq.createElement("path",{fill:"none",d:"M11 14H21V18H11z","data-icon-path":"inner-path"})),n)}),iC=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ik);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tw||(tw=tq.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)}),iO=["children"],iM=["children"],iT=["children"],iA=["children"],iP=["children"],iN=["children"],iR=["children"],iD=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iO);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tj||(tj=tq.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)}),iL=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iM);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tE||(tE=tq.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"})),tk||(tk=tq.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)}),iF=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iT);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tS||(tS=tq.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"})),t_||(t_=tq.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)}),iz=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iA);return tq.createElement(tQ,tY({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tC||(tC=tq.createElement("path",{d:"M22 17H24V19H22z"})),tO||(tO=tq.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)}),iV=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iP);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tM||(tM=tq.createElement("path",{d:"M22 17H24V19H22z"})),tT||(tT=tq.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)}),iI=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iN);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tA||(tA=tq.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"})),tP||(tP=tq.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)}),iZ=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iR);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tN||(tN=tq.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"})),tR||(tR=tq.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)}),iB=["children"],iH=["children"],iU=["children"],iW=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iB);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tD||(tD=tq.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"})),tL||(tL=tq.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)}),iq=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iH);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tF||(tF=tq.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)}),i$=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iU);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tz||(tz=tq.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"})),tV||(tV=tq.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"})),tI||(tI=tq.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)}),iK=n(52322);function iY(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iK.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 iG(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iK.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 iX(e){let{size:t=24,className:n}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,iK.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 iJ(e){let{size:t=24,className:n}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,iK.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 iQ(e){let{size:t=24,className:n}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iK.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 i0(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iK.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 i1(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iK.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 i2(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,iK.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 i4(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,width:t,fill:"currentColor",children:(0,iK.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 i3(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,iK.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 i5(e){let{size:t=24}=e;return(0,iK.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,iK.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,iK.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,iK.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,iK.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,iK.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function i6(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iK.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"})})}},9969:function(e,t,n){"use strict";n.d(t,{pz:function(){return ee},HI:function(){return o},Z7:function(){return q},Uy:function(){return $},e$:function(){return J},oe:function(){return Q},S0:function(){return et},YX:function(){return G},Bl:function(){return en},oV:function(){return L},sg:function(){return F},B$:function(){return D},d_:function(){return a},DQ:function(){return s},cq:function(){return N},IK:function(){return R},GP:function(){return P},nH:function(){return l},$:function(){return k},s2:function(){return O},ni:function(){return M},uf:function(){return _},Os:function(){return T},FV:function(){return E},wy:function(){return V},xw:function(){return Z},Jv:function(){return z},p$:function(){return eo},Iy:function(){return I},Q5:function(){return B},ZM:function(){return ea},f$:function(){return eu},yu:function(){return H},KJ:function(){return U},og:function(){return K},Wl:function(){return d},cQ:function(){return c},ys:function(){return p},QL:function(){return h},Tu:function(){return m},aO:function(){return x},gU:function(){return g},a0:function(){return w},cg:function(){return y},Qq:function(){return v},RF:function(){return el}});var r=n(79381),i=n(2850);let o="/bus/state";function a(e){return(0,i.Nf)({...e,route:o})}function s(e){return(0,i.Nf)({...e,route:"/bus/consensus/state"})}function l(){let e=a({config:{swr:{revalidateOnFocus:!1}}}),t=(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});return t.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(b))})}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 x(e){return(0,i.mw)({...e,route:"/bus/wallet/discard"})}let b="/bus/wallet/pending";function w(e){return(0,i.Nf)({...e,route:b})}let j="/bus/search/hosts";function E(e){return(0,i.q0)({...e,route:j})}function k(e){return(0,i.Nf)({...e,route:"/bus/host/:hostKey"})}let S="/bus/hosts/blocklist";function _(e){return(0,i.Nf)({...e,route:S})}let C="/bus/hosts/allowlist";function O(e){return(0,i.Nf)({...e,route:C})}function M(e){return(0,i.V1)({...e,route:"/bus/hosts/allowlist"},async e=>{e(e=>!![j,C,A].find(t=>e.startsWith(t)))})}function T(e){return(0,i.V1)({...e,route:"/bus/hosts/blocklist"},async e=>{e(e=>!![j,S,A].find(t=>e.startsWith(t)))})}let A="/bus/contracts";function P(e){return(0,i.Nf)({...e,route:A})}function N(e){return(0,i.Nf)({...e,route:"/bus/contract/:id"})}function R(e){return(0,i.iv)({...e,route:"/bus/contract/:id"})}function D(e){return(0,i.Nf)({...e,route:"/bus/buckets"})}function L(e){return(0,i.mw)({...e,route:"/bus/buckets"},async e=>{e(e=>e.startsWith("/bus/buckets"))})}function F(e){return(0,i.iv)({...e,route:"/bus/bucket/:name"},async e=>{e(e=>e.startsWith("/bus/bucket"))})}function z(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function V(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function I(e){return(0,i.Nf)({...e,route:"/bus/search/objects"})}function Z(e){return(0,i.iv)({...e,route:"/bus/objects/:key"},async e=>{e(e=>e.startsWith("/bus/objects/"))})}function B(e){return(0,i.Nf)({...e,route:"/bus/stats/objects"})}function H(e){return(0,i.Nf)({...e,route:"/bus/setting/:key"})}function U(e){return(0,i.V1)({...e,route:"/bus/setting/:key"},async(e,t)=>{e(e=>e.startsWith("/bus/setting/".concat(t.params.key)))})}let W="/bus/alerts";function q(e){return(0,i.Nf)({...e,route:W})}function $(e){return(0,i.mw)({...e,route:"/bus/alerts/dismiss"},async e=>{e(e=>e.startsWith(W))})}function K(e){return(0,i.Nf)({...e,route:"/bus/slab/:key/objects"})}let Y="/autopilot/state";function G(e){return(0,i.Nf)({...e,route:Y})}let X="/autopilot/config";function J(e){return(0,i.Nf)({...e,route:X})}function Q(e){return(0,i.V1)({...e,route:X},async e=>{e(e=>e===X);let t=async()=>{await (0,i.gw)(1e3),e(e=>e===Y)};t()})}let ee="/autopilot/hosts";function et(e){return(0,i.q0)({...e,route:ee})}function en(e){return(0,i.mw)({...e,route:"/autopilot/trigger"})}var er=n(54073),ei=n.n(er);function eo(e){return(0,i.rB)({...e,route:"/worker/objects/:key"})}function ea(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"))})}let es=ei()(e=>e(),5e3),el="/worker/rhp/scan";function eu(e){return(0,i.mw)({...e,route:el},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),es(()=>{e(e=>e.startsWith("/autopilot/hosts")||e.startsWith("/bus/search/hosts"),e=>e,!0)})})}},47025:function(e,t,n){"use strict";n.d(t,{BW:function(){return s},JL:function(){return o},BF:function(){return a}});var r=n(2850);let i="https://api.siacentral.com/v2";function o(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 a(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})}n(98537)},96206:function(e,t,n){"use strict";n.d(t,{vW:function(){return o},rN:function(){return s},yF:function(){return a},Vz:function(){return f},qN:function(){return c},ll:function(){return u}}),n(81395),n(18149);var r=n(6391),i=n.n(r);function o(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)),a=n/Math.pow(1e3,o);return a.toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function a(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 s(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}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:o}={...d,...t},a=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(a).isLessThan(1))return o?"".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(a.multipliedBy(t));if(i.isLessThan(s)||e===h.length-1)return"".concat(f).concat(i.toFormat(n)," ").concat(h[e])}return""}},2271: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)},26252: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)},55046: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 x},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(60587),o=n(58839),a=n(26252),s=n(4424),l=n(44673),u=n(75903),c=n(47067),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),t=(0,r.useMemo)(()=>e?new h(e):null,[e]);return t}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 e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],i=Array.isArray(r),o=i?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===r[2]||"oc"===r[2]);a?n[r[0]]=r[1].split("/"):i&&(n[r[0]]=r[1]),n=e(t,n)}return n}(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 x(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)},47067: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)},75903: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 s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=n(7552),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let r=Error(a);r.digest=a+";"+t+";"+e+";"+n;let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(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)},7552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let r=n(2271),i=(0,r.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)},4424: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)},23116: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}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(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)},25146: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(67858),("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)},80920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(43219),i=n(16794),o=i._(n(2784)),a=r._(n(28316)),s=r._(n(37412)),l=n(31918),u=n(97686),c=n(45802);n(84759);let d=n(54365),f=r._(n(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.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 m(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,onLoad:j,onError:E,...k}=e;return o.default.createElement("img",{...k,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(E&&(e.src=e.src),e.complete&&p(e,f,y,x,b,v))},[n,f,y,x,b,E,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,x,b,v)},onError:e=>{w(!0),"empty"!==f&&b(!0),E&&E(e)}})});function g(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||r||u.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:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,x]=(0,o.useState)(!1),[b,w]=(0,o.useState)(!1),{props:j,meta:E}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:b});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...j,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:x,setShowAltText:w,ref:t}),E.priority?o.default.createElement(g,{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)},13814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(43219),i=r._(n(2784)),o=n(31068),a=n(33134),s=n(39585),l=n(51570),u=n(19868),c=n(54365),d=n(60587),f=n(93629),h=n(25146),p=n(10694),m=n(23116),v=new Set;function g(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:x,prefetch:b=null,passHref:w,replace:j,shallow:E,scroll:k,locale:S,onClick:_,onMouseEnter:C,onTouchStart:O,legacyBehavior:M=!1,...T}=e;n=x,M&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let A=i.default.useContext(c.RouterContext),P=i.default.useContext(d.AppRouterContext),N=null!=A?A:P,R=!A,D=!1!==b,L=null===b?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:F,as:z}=i.default.useMemo(()=>{if(!A){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(A,s,!0);return{href:e,as:v?(0,o.resolveHref)(A,v):t||e}},[A,s,v]),V=i.default.useRef(F),I=i.default.useRef(z);M&&(r=i.default.Children.only(n));let Z=M?r&&"object"==typeof r&&r.ref:t,[B,H,U]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(I.current!==z||V.current!==F)&&(U(),I.current=z,V.current=F),B(e),Z&&("function"==typeof Z?Z(e):"object"==typeof Z&&(Z.current=e))},[z,Z,F,U,B]);i.default.useEffect(()=>{N&&H&&D&&g(N,F,z,{locale:S},{kind:L},R)},[z,F,H,S,D,null==A?void 0:A.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof _||_(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,F,z,j,E,k,S,R,D)},onMouseEnter(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(D||!R)&&g(N,F,z,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(D||!R)&&g(N,F,z,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,l.isAbsoluteUrl)(z))q.href=z;else if(!M||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,h.getDomainLocale)(z,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(z,e,null==A?void 0:A.defaultLocale))}return M?i.default.cloneElement(r,q):i.default.createElement("a",{...T,...q},n)}),b=x;("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)},93629: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(30857),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},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let r=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,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,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});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]);let p=(0,r.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("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)},31256:function(e,t,n){"use strict";var r=n(48834).lW;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Head:function(){return y},NextScript:function(){return x},Html:function(){return b},Main:function(){return w},default:function(){return j}});let i=c(n(2784)),o=n(13150),a=n(95383),s=n(82809),l=c(n(10274)),u=n(15333);function c(e){return e&&e.__esModule?e:{default:e}}let d=new Set;function f(e,t,n){let r=(0,a.getPageFiles)(e,"/_app"),i=n?[]:(0,a.getPageFiles)(e,t);return{sharedFiles:r,pageFiles:i,allFiles:[...new Set([...r,...i])]}}function h(e,t){let{assetPrefix:n,buildManifest:r,assetQueryString:o,disableOptimizedLoading:a,crossOrigin:s}=e;return r.polyfillFiles.filter(e=>e.endsWith(".js")&&!e.endsWith(".module.js")).map(e=>i.default.createElement("script",{key:e,defer:!a,nonce:t.nonce,crossOrigin:t.crossOrigin||s,noModule:!0,src:"".concat(n,"/_next/").concat(e).concat(o)}))}function p(e){let{styles:t}=e;if(!t)return null;let n=Array.isArray(t)?t:[];if(t.props&&Array.isArray(t.props.children)){let e=e=>{var t,n;return null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html};t.props.children.forEach(t=>{Array.isArray(t)?t.forEach(t=>e(t)&&n.push(t)):e(t)&&n.push(t)})}return i.default.createElement("style",{"amp-custom":"",dangerouslySetInnerHTML:{__html:n.map(e=>e.props.dangerouslySetInnerHTML.__html).join("").replace(/\/\*# sourceMappingURL=.*\*\//g,"").replace(/\/\*@ sourceURL=.*?\*\//g,"")}})}function m(e,t,n){let{dynamicImports:r,assetPrefix:o,isDevelopment:a,assetQueryString:s,disableOptimizedLoading:l,crossOrigin:u}=e;return r.map(e=>!e.endsWith(".js")||n.allFiles.includes(e)?null:i.default.createElement("script",{async:!a&&l,defer:!l,key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(s),nonce:t.nonce,crossOrigin:t.crossOrigin||u}))}function v(e,t,n){var r;let{assetPrefix:o,buildManifest:a,isDevelopment:s,assetQueryString:l,disableOptimizedLoading:u,crossOrigin:c}=e,d=n.allFiles.filter(e=>e.endsWith(".js")),f=null==(r=a.lowPriorityFiles)?void 0:r.filter(e=>e.endsWith(".js"));return[...d,...f].map(e=>i.default.createElement("script",{key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(l),nonce:t.nonce,async:!s&&u,defer:!u,crossOrigin:t.crossOrigin||c}))}function g(e,t){let{scriptLoader:n,disableOptimizedLoading:r,crossOrigin:o}=e,a=function(e,t){let{assetPrefix:n,scriptLoader:r,crossOrigin:o,nextScriptWorkers:a}=e;if(!a)return null;try{let{partytownSnippet:e}=require("@builder.io/partytown/integration"),a=Array.isArray(t.children)?t.children:[t.children],s=a.find(e=>{var t,n;return!!e&&!!e.props&&(null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html.length)&&"data-partytown-config"in e.props});return i.default.createElement(i.default.Fragment,null,!s&&i.default.createElement("script",{"data-partytown-config":"",dangerouslySetInnerHTML:{__html:'\n partytown = {\n lib: "'.concat(n,'/_next/static/~partytown/"\n };\n ')}}),i.default.createElement("script",{"data-partytown":"",dangerouslySetInnerHTML:{__html:e()}}),(r.worker||[]).map((e,n)=>{let{strategy:r,src:a,children:s,dangerouslySetInnerHTML:l,...u}=e,c={};if(a)c.src=a;else if(l&&l.__html)c.dangerouslySetInnerHTML={__html:l.__html};else if(s)c.dangerouslySetInnerHTML={__html:"string"==typeof s?s:Array.isArray(s)?s.join(""):""};else throw Error("Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script");return i.default.createElement("script",{...c,...u,type:"text/partytown",key:a||n,nonce:t.nonce,"data-nscript":"worker",crossOrigin:t.crossOrigin||o})}))}catch(e){return(0,l.default)(e)&&"MODULE_NOT_FOUND"!==e.code&&console.warn("Warning: ".concat(e.message)),null}}(e,t),s=(n.beforeInteractive||[]).filter(e=>e.src).map((e,n)=>{var a;let{strategy:s,...l}=e;return i.default.createElement("script",{...l,key:l.src||n,defer:null!==(a=l.defer)&&void 0!==a?a:!r,nonce:t.nonce,"data-nscript":"beforeInteractive",crossOrigin:t.crossOrigin||o})});return i.default.createElement(i.default.Fragment,null,a,s)}class y extends i.default.Component{getCssLinks(e){let{assetPrefix:t,assetQueryString:n,dynamicImports:r,crossOrigin:o,optimizeCss:a,optimizeFonts:s}=this.context,l=e.allFiles.filter(e=>e.endsWith(".css")),u=new Set(e.sharedFiles),c=new Set([]),d=Array.from(new Set(r.filter(e=>e.endsWith(".css"))));if(d.length){let e=new Set(l);d=d.filter(t=>!(e.has(t)||u.has(t))),c=new Set(d),l.push(...d)}let f=[];return l.forEach(e=>{let r=u.has(e);a||f.push(i.default.createElement("link",{key:"".concat(e,"-preload"),nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"style",crossOrigin:this.props.crossOrigin||o}));let s=c.has(e);f.push(i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"stylesheet",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),crossOrigin:this.props.crossOrigin||o,"data-n-g":s?void 0:r?"":void 0,"data-n-p":s?void 0:r?void 0:""}))}),s&&(f=this.makeStylesheetInert(f)),0===f.length?null:f}getPreloadDynamicChunks(){let{dynamicImports:e,assetPrefix:t,assetQueryString:n,crossOrigin:r}=this.context;return e.map(e=>e.endsWith(".js")?i.default.createElement("link",{rel:"preload",key:e,href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"script",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||r}):null).filter(Boolean)}getPreloadMainLinks(e){let{assetPrefix:t,assetQueryString:n,scriptLoader:r,crossOrigin:o}=this.context,a=e.allFiles.filter(e=>e.endsWith(".js"));return[...(r.beforeInteractive||[]).map(e=>i.default.createElement("link",{key:e.src,nonce:this.props.nonce,rel:"preload",href:e.src,as:"script",crossOrigin:this.props.crossOrigin||o})),...a.map(e=>i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"script",crossOrigin:this.props.crossOrigin||o}))]}getBeforeInteractiveInlineScripts(){let{scriptLoader:e}=this.context,{nonce:t,crossOrigin:n}=this.props;return(e.beforeInteractive||[]).filter(e=>!e.src&&(e.dangerouslySetInnerHTML||e.children)).map((e,r)=>{let{strategy:o,children:a,dangerouslySetInnerHTML:s,src:l,...u}=e,c="";return s&&s.__html?c=s.__html:a&&(c="string"==typeof a?a:Array.isArray(a)?a.join(""):""),i.default.createElement("script",{...u,dangerouslySetInnerHTML:{__html:c},key:u.id||r,nonce:t,"data-nscript":"beforeInteractive",crossOrigin:n||void 0})})}getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}makeStylesheetInert(e){return i.default.Children.map(e,e=>{var t,n;if((null==e?void 0:e.type)==="link"&&(null==e?void 0:null==(t=e.props)?void 0:t.href)&&o.OPTIMIZED_FONT_PROVIDERS.some(t=>{var n,r;let{url:i}=t;return null==e?void 0:null==(r=e.props)?void 0:null==(n=r.href)?void 0:n.startsWith(i)})){let t={...e.props||{},"data-href":e.props.href,href:void 0};return i.default.cloneElement(e,t)}if(null==e?void 0:null==(n=e.props)?void 0:n.children){let t={...e.props||{},children:this.makeStylesheetInert(e.props.children)};return i.default.cloneElement(e,t)}return e}).filter(Boolean)}render(){var e,t;let{styles:r,ampPath:o,inAmpMode:a,hybridAmp:s,canonicalBase:l,__NEXT_DATA__:u,dangerousAsPath:c,headTags:d,unstable_runtimeJS:h,unstable_JsPreload:m,disableOptimizedLoading:v,optimizeCss:g,optimizeFonts:y,assetPrefix:x,nextFontManifest:b}=this.context,w=!1===h,j=!1===m||!v;this.context.docComponentsRendered.Head=!0;let{head:E}=this.context,k=[],S=[];E&&(E.forEach(e=>{let t;this.context.strictNextHead&&(t=i.default.createElement("meta",{name:"next-head",content:"1"})),e&&"link"===e.type&&"preload"===e.props.rel&&"style"===e.props.as?(t&&k.push(t),k.push(e)):e&&(t&&("meta"!==e.type||!e.props.charSet)&&S.push(t),S.push(e))}),E=k.concat(S));let _=i.default.Children.toArray(this.props.children).filter(Boolean);y&&!a&&(_=this.makeStylesheetInert(_));let C=!1,O=!1;E=i.default.Children.map(E||[],e=>{if(!e)return e;let{type:t,props:n}=e;if(a){let r="";if("meta"===t&&"viewport"===n.name?r='name="viewport"':"link"===t&&"canonical"===n.rel?O=!0:"script"===t&&(n.src&&-1>n.src.indexOf("ampproject")||n.dangerouslySetInnerHTML&&(!n.type||"text/javascript"===n.type))&&(r="{r+=" ".concat(e,'="').concat(n[e],'"')}),r+="/>"),r)return console.warn('Found conflicting amp tag "'.concat(e.type,'" with conflicting prop ').concat(r," in ").concat(u.page,". https://nextjs.org/docs/messages/conflicting-amp-tag")),null}else"link"===t&&"amphtml"===n.rel&&(C=!0);return e});let M=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,a),T=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return{preconnect:null,preload:null};let r=e.pages["/_app"],o=e.pages[t],a=[...null!=r?r:[],...null!=o?o:[]],s=!!(0===a.length&&(r||o));return{preconnect:s?i.default.createElement("link",{"data-next-font":e.pagesUsingSizeAdjust?"size-adjust":"",rel:"preconnect",href:"/",crossOrigin:"anonymous"}):null,preload:a?a.map(e=>{let t=/\.(woff|woff2|eot|ttf|otf)$/.exec(e)[1];return i.default.createElement("link",{key:e,rel:"preload",href:"".concat(n,"/_next/").concat(encodeURI(e)),as:"font",type:"font/".concat(t),crossOrigin:"anonymous","data-next-font":e.includes("-s")?"size-adjust":""})}):null}}(b,c,x);return i.default.createElement("head",function(e){let{crossOrigin:t,nonce:n,...r}=e;return r}(this.props),this.context.isDevelopment&&i.default.createElement(i.default.Fragment,null,i.default.createElement("style",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0,dangerouslySetInnerHTML:{__html:"body{display:none}"}}),i.default.createElement("noscript",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0},i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{display:block}"}}))),E,this.context.strictNextHead?null:i.default.createElement("meta",{name:"next-head-count",content:i.default.Children.count(E||[]).toString()}),_,y&&i.default.createElement("meta",{name:"next-font-preconnect"}),T.preconnect,T.preload,a&&i.default.createElement(i.default.Fragment,null,i.default.createElement("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"}),!O&&i.default.createElement("link",{rel:"canonical",href:l+n(79505).cleanAmpPath(c)}),i.default.createElement("link",{rel:"preload",as:"script",href:"https://cdn.ampproject.org/v0.js"}),i.default.createElement(p,{styles:r}),i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}"}}),i.default.createElement("noscript",null,i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}"}})),i.default.createElement("script",{async:!0,src:"https://cdn.ampproject.org/v0.js"})),!a&&i.default.createElement(i.default.Fragment,null,!C&&s&&i.default.createElement("link",{rel:"amphtml",href:l+(o||"".concat(c).concat(c.includes("?")?"&":"?","amp=1"))}),this.getBeforeInteractiveInlineScripts(),!g&&this.getCssLinks(M),!g&&i.default.createElement("noscript",{"data-n-css":null!==(e=this.props.nonce)&&void 0!==e?e:""}),!w&&!j&&this.getPreloadDynamicChunks(),!w&&!j&&this.getPreloadMainLinks(M),!v&&!w&&this.getPolyfillScripts(),!v&&!w&&this.getPreNextScripts(),!v&&!w&&this.getDynamicChunks(M),!v&&!w&&this.getScripts(M),g&&this.getCssLinks(M),g&&i.default.createElement("noscript",{"data-n-css":null!==(t=this.props.nonce)&&void 0!==t?t:""}),this.context.isDevelopment&&i.default.createElement("noscript",{id:"__next_css__DO_NOT_USE__"}),r||null),i.default.createElement(i.default.Fragment,{},...d||[]))}}y.contextType=u.HtmlContext;class x extends i.default.Component{getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}static getInlineScriptSource(e){let{__NEXT_DATA__:t,largePageDataBytes:i}=e;try{let o=JSON.stringify(t);if(d.has(t.page))return(0,s.htmlEscapeJsonString)(o);let a=r.from(o).byteLength,l=n(16549).Z;return i&&a>i&&(d.add(t.page),console.warn('Warning: data for page "'.concat(t.page,'"').concat(t.page===e.dangerousAsPath?"":' (path "'.concat(e.dangerousAsPath,'")')," is ").concat(l(a)," which exceeds the threshold of ").concat(l(i),", this amount of data can reduce performance.\nSee more info here: https://nextjs.org/docs/messages/large-page-data"))),(0,s.htmlEscapeJsonString)(o)}catch(e){if((0,l.default)(e)&&-1!==e.message.indexOf("circular structure"))throw Error('Circular structure in "getInitialProps" result of page "'.concat(t.page,'". https://nextjs.org/docs/messages/circular-structure'));throw e}}render(){let{assetPrefix:e,inAmpMode:t,buildManifest:n,unstable_runtimeJS:r,docComponentsRendered:o,assetQueryString:a,disableOptimizedLoading:s,crossOrigin:l}=this.context,u=!1===r;if(o.NextScript=!0,t)return null;let c=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,t);return i.default.createElement(i.default.Fragment,null,!u&&n.devFiles?n.devFiles.map(t=>i.default.createElement("script",{key:t,src:"".concat(e,"/_next/").concat(encodeURI(t)).concat(a),nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l})):null,u?null:i.default.createElement("script",{id:"__NEXT_DATA__",type:"application/json",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l,dangerouslySetInnerHTML:{__html:x.getInlineScriptSource(this.context)}}),s&&!u&&this.getPolyfillScripts(),s&&!u&&this.getPreNextScripts(),s&&!u&&this.getDynamicChunks(c),s&&!u&&this.getScripts(c))}}function b(e){let{inAmpMode:t,docComponentsRendered:n,locale:r,scriptLoader:o,__NEXT_DATA__:a}=(0,u.useHtmlContext)();return n.Html=!0,!function(e,t,n){var r,o,a,s;if(!n.children)return;let l=[],u=Array.isArray(n.children)?n.children:[n.children],c=null==(o=u.find(e=>e.type===y))?void 0:null==(r=o.props)?void 0:r.children,d=null==(s=u.find(e=>"body"===e.type))?void 0:null==(a=s.props)?void 0:a.children,f=[...Array.isArray(c)?c:[c],...Array.isArray(d)?d:[d]];i.default.Children.forEach(f,t=>{var n;if(t&&(null==(n=t.type)?void 0:n.__nextScript)){if("beforeInteractive"===t.props.strategy){e.beforeInteractive=(e.beforeInteractive||[]).concat([{...t.props}]);return}if(["lazyOnload","afterInteractive","worker"].includes(t.props.strategy)){l.push(t.props);return}}}),t.scriptLoader=l}(o,a,e),i.default.createElement("html",{...e,lang:e.lang||r||void 0,amp:t?"":void 0,"data-ampdevmode":void 0})}function w(){let{docComponentsRendered:e}=(0,u.useHtmlContext)();return e.Main=!0,i.default.createElement("next-js-internal-body-render-target",null)}x.contextType=u.HtmlContext;class j extends i.default.Component{static getInitialProps(e){return e.defaultGetInitialProps(e)}render(){return i.default.createElement(b,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(x,null)))}}j[o.NEXT_BUILTIN_DOCUMENT]=function(){return i.default.createElement(b,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(x,null)))}},22698: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 a},default:function(){return s}});let r=n(43219),i=(n(2784),r._(n(94780)));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let 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}),r={...r,...t};let s=r.loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,a(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)},31918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(84759);let r=n(69933),i=n(97686);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:x=!1,style:b,onLoad:w,onLoadingComplete:j,placeholder:E="empty",blurDataURL:k,fetchPriority:S,layout:_,objectFit:C,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 F=A.loader||D;delete A.loader,delete A.srcSet;let z="__next_img_default"in F;if(z){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=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(_){"fill"===_&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[_];t&&!d&&(d=t)}let V="",I=a(g),Z=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,!x){if(I||Z){if(I&&!Z){let t=I/e.width;Z=Math.round(e.height*t)}else if(!I&&Z){let t=Z/e.height;I=Math.round(e.width*t)}}else I=e.width,Z=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),z&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=a(v),U=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:O}:{},N?{}:{color:"transparent"},b),W=R||"empty"===E?null:"blur"===E?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:I,heightInt:Z,blurWidth:l,blurHeight:u,blurDataURL:k||"",objectFit:U.objectFit})+'")':'url("'+E+'")',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"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,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:I,quality:H,sizes:d,loader:F}),K={...A,loading:B?"lazy":p,fetchPriority:S,width:I,height:Z,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},Y={unoptimized:f,priority:h,placeholder:E,fill:x};return{props:K,meta:Y}}},15333: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,{HtmlContext:function(){return i},useHtmlContext:function(){return o}});let r=n(2784),i=(0,r.createContext)(void 0);function o(){let e=(0,r.useContext)(i);if(!e)throw Error(" should not be imported outside of pages/_document.\nRead more: https://nextjs.org/docs/messages/no-document-import-in-page");return e}},69933: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}})},81963: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,{default:function(){return u},unstable_getImgProps:function(){return l}});let r=n(43219),i=n(31918),o=n(84759),a=n(80920),s=r._(n(2088)),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},2088: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},49306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let r=n(43219),i=r._(n(2784)),o=i.default.createContext(null)},94780:function(e,t,n){"use strict";/** +***************************************************************************** */function Eu(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())})}function Ec(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1?(Ed('UA "Edge" => assuming success'),[2,!0]):ED(document.body,e)?(Ed("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=ED(i,e),document.body.removeChild(i),o)?(Ed("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],Ed("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(Ed("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),EL(u),c=document.execCommand("copy"),EF(),document.body.removeChild(s),c)?(Ed("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((n={})["text/plain"]=e,n)))throw Error("writeText() failed");return[2]})})}let EV={data:""},EZ=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||EV,EI=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,EB=/\/\*[^]*?\*\/|\s\s+|\n/g,EH=(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]?EH(a,o):o+"{"+EH(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=EH(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+=EH.p?EH.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},EU={},EW=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+EW(e[n]);return t}return e},Eq=(e,t,n,r,i)=>{var o;let a=EW(e),s=EU[a]||(EU[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!EU[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=EI.exec(e.replace(EB,""));)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);EU[s]=EH(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=EU[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},E$=(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?"":EH(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function EK(e){let t=this||{},n=e.call?e(t.p):e;return Eq(n.unshift?n.raw?E$(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,EZ(t.target),t.g,t.o,t.k)}EK.bind({g:1});let EY,EG,EX,EQ=EK.bind({k:1});function EJ(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:EG&&EG()},s),n.o=/ *go\d+/.test(l),s.className=EK.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),EX&&u[0]&&EX(s),EY(u,s)}return t?t(i):i}}function E0(){return(E0=Object.assign||function(e){for(var t=1;t-1&&E9.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return E0({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||kn[t.type],style:E0({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return E0({},n,{toasts:i})},ki=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),E0({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)||E4()}));return kt({type:g.UPSERT_TOAST,toast:i}),i.id}},ko=function(e,t){return ki("blank")(e,t)};ko.error=ki("error"),ko.success=ki("success"),ko.loading=ki("loading"),ko.custom=ki("custom"),ko.dismiss=function(e){kt({type:g.DISMISS_TOAST,toastId:e})},ko.remove=function(e){return kt({type:g.REMOVE_TOAST,toastId:e})},ko.promise=function(e,t,n){var r=ko.loading(t.loading,E0({},n,null==n?void 0:n.loading));return e.then(function(e){return ko.success(E2(t.success,e),E0({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){ko.error(E2(t.error,e),E0({id:r},n,null==n?void 0:n.error))}),e};var ka=function(e){var t=kr(e),n=t.toasts,r=t.pausedAt;(0,x.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&&ko.dismiss(t.id);return}return setTimeout(function(){return ko.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,x.useMemo)(function(){return{startPause:function(){kt({type:g.START_PAUSE,time:Date.now()})},endPause:function(){r&&kt({type:g.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return kt({type:g.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return kZ=function(){return e},e}c=x.createElement,EH.p=void 0,EY=c,EG=void 0,EX=void 0;var kI=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return E0({left:0,right:0,display:"flex",position:"absolute",transition:E3()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},kB=EK(kZ()),kH=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=ka(i),c=u.toasts,d=u.handlers;return(0,x.createElement)("div",{style:E0({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=kI(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,x.createElement)("div",{ref:l,className:e.visible?kB:"",key:e.id,style:s},"custom"===e.type?E2(e.message,e):a?a(e):(0,x.createElement)(kV,{toast:e,position:i}))}))};let kU=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ko((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),kK(t))},kW=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ko(e,kK(t))},kq=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ko.success((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),kK(t))},k$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ko.error((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),kK(t))};function kK(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,em.cx)(t4(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,y.jsx)("div",{className:"!flex-none w-5",children:(0,y.jsx)(lo.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,y.jsx)("div",{className:"!flex-none w-5",children:(0,y.jsx)(lo.Jsc,{className:"w-5 text-red-600"})})},...t}}function kY(){return(0,y.jsx)(kH,{toastOptions:kK()})}let kG=(e,t)=>{let n=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";kU(n),Ez(e)},kX=(e,t,n)=>{kW(t,n),Ez(e)};function kQ(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function kJ(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^key:/,"")}function k0(e,t,n){return t?"".concat(e," ").concat(kQ(t,n)):"".concat(e)}function k1(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 k2={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",ip:"IP"},k4={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 k3(e){return e?k2[e]:void 0}function k5(e){return e?k4[e]:void 0}function k6(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d}=e,f=i||k3(r),h=a||("ip"===r?20:12),p=kJ(t),m=n||p,v="".concat(null==m?void 0:m.slice(0,h)).concat(((null==m?void 0:m.length)||0)>h?"...":"");return(0,y.jsxs)("div",{className:(0,em.cx)("flex items-center",d),children:[o?(0,y.jsx)(dt,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}):(0,y.jsx)(t1,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}),(0,y.jsx)("div",{className:"ml-1 flex items-center",children:(0,y.jsx)(li,{variant:"ghost",size:"none",onClick:e=>{e.stopPropagation(),kG(p,f)},children:(0,y.jsx)(t1,{color:c,children:(0,y.jsx)(lo.olJ,{className:"10"===s?"scale-75":"scale-90"})})})})]})}function k8(e){let{value:t,displayValue:n,type:r,href:i,maxLength:o,size:a,scaleSize:s,color:l="contrast",menu:u,className:c}=e,d=o||("ip"===r?20:12),f=kJ(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,y.jsxs)("div",{className:(0,em.cx)("flex items-center",c),children:[i?(0,y.jsx)(dt,{href:i,underline:"hover",size:a,scaleSize:s,color:l,ellipsis:!0,children:p}):(0,y.jsx)(t1,{size:a,scaleSize:s,color:l,ellipsis:!0,children:p}),(0,y.jsx)("div",{className:"ml-1 flex items-center",children:u})]})}function k7(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,vj.yF)(String(t),{units:"SF"});return(0,y.jsx)(ln,{content:(i?"".concat(i," "):"")+a,children:(0,y.jsxs)(t1,{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 k9(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,y.jsxs)(t1,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:["change"===o?"".concat(f).concat((0,vj.Vz)(t.absoluteValue(),{fixed:s,dynamicUnits:l})):(0,vj.Vz)(t,{fixed:s,dynamicUnits:l,hastingUnits:u}),(0,y.jsx)(t1,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:c?"".concat(c):""})]});return d?(0,y.jsx)(ln,{content:(i?"".concat(i," "):"")+(0,vj.Vz)(t,{fixed:16,dynamicUnits:!1}),children:p}):p}function Se(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,f$.BW)(),{settings:{currency:d}}=(0,fq.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(fB())(c.data.rates.sc[d.id]||1).times(t).div(1e24),m=void 0!==s?s:d.fixed,v=(0,y.jsx)(t1,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:"".concat(f).concat(d.prefix).concat(St(p.absoluteValue(),m))});return u?(0,y.jsx)(ln,{content:(o?"".concat(o," "):"")+"".concat(f).concat(d.prefix).concat(St(p.absoluteValue(),l)),children:v}):v}function St(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 Sn(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,fq.Hv)(),v=(0,f$.BW)(),g=(0,x.useMemo)(()=>(0,y.jsx)(k9,{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]),b=(0,x.useMemo)(()=>(0,y.jsx)(Se,{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?b:"bothPreferSc"===m?h?(0,y.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[g,b]}):g:"bothPreferFiat"===m?h?(0,y.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[b,g]}):b:g:g}function Sr(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,y.jsx)(ln,{content:(i?"".concat(i," "):"")+s(t),children:(0,y.jsx)(t1,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var Si=n(61258),So=n.n(Si);function Sa(e){let{skeletonCount:t=10}=e;return(0,y.jsx)(y.Fragment,{children:So()(t,e=>(0,y.jsxs)("div",{className:(0,em.cx)("relative flex gap-4 p-3.5",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,y.jsx)(f3,{className:"w-[60px] h-[50px]"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,y.jsx)(f3,{className:"w-[90%] h-[20px]"}),(0,y.jsx)(f3,{className:"w-[140px] h-[14px]"})]})]},e))})}var Ss=n(29193),Sl=n(23779),Su=n.n(Sl);function Sc(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,y.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,y.jsx)(dt,{href:i,underline:"none",children:s}),u=l||s;return t?(0,y.jsx)(ln,{content:n||k3(t),children:(0,y.jsx)("div",{className:"",children:u})}):u}function Sd(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,y.jsxs)("div",{className:(0,em.cx)("flex gap-4 p-4",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,y.jsx)(Sc,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function Sf(e){let t=e.sc,n=e.sf,r=e.hash&&(0,y.jsx)(k6,{value:e.hash,type:e.type,label:e.label,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&k5(e.txType)||k3(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?Su()(i):i;return(0,y.jsx)(Sd,{...e,children:(0,y.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,y.jsx)(t1,{color:"subtle",weight:"semibold",children:(0,y.jsx)(dt,{href:e.blockHref,underline:"none",children:(0,vj.yF)(e.height)})}),(0,y.jsx)(t1,{weight:"medium",children:o||r})]}),(0,y.jsx)("div",{className:"flex-1"}),!!t&&(0,y.jsx)(Sn,{variant:e.scVariant,value:t}),!!n&&(0,y.jsx)(k7,{variant:e.sfVariant,value:n})]}),(0,y.jsxs)("div",{className:"flex justify-between w-full",children:[(0,y.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,y.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,y.jsx)(t1,{color:"verySubtle",children:(0,y.jsx)(lo.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,y.jsx)(t1,{color:"subtle",children:(0,Ss.Z)(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function Sh(e){let{title:t,actions:n,entities:r,emptyState:i,emptyMessage:o,skeletonCount:a=10,children:s}=e;return(0,y.jsx)(t3,{children:(0,y.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||n)&&(0,y.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,y.jsx)(cJ,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,y.jsx)("div",{className:"flex-1"}),n]}),(0,y.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(null==r?void 0:r.length)===0&&(i||(0,y.jsx)("div",{className:(0,em.cx)("flex items-center justify-center h-[84px]",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,y.jsx)(t1,{size:"18",color:"subtle",children:o||"No results"})})),s||(null==r?void 0:r.map((e,t)=>(0,y.jsx)(Sf,{...e},e.hash||e.label||t)))||(0,y.jsx)(Sa,{skeletonCount:a})]})]})})}function Sp(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,y.jsx)(t1,{color:"subtle",size:"12",className:"h-6",children:d});return(0,y.jsx)(t3,{children:(0,y.jsx)("div",{className:(0,em.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,y.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,y.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,y.jsx)(t1,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?Su()(t):t}),i]}),(0,y.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,y.jsx)(f3,{className:"h-12 w-[150px]"}):(0,y.jsxs)(y.Fragment,{children:[void 0!==u&&(0,y.jsx)(Sn,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,y.jsx)(k7,{scaleSize:h,variant:"value",value:c}),n&&(r?(0,y.jsx)(k6,{scaleSize:h,label:k3(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,y.jsx)(t1,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,y.jsx)(k6,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,y.jsx)(t1,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,y.jsx)("div",{className:"mt-1",children:p?(0,y.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,y.jsx)(f3,{className:"h-4 w-[100px]"})}):f?(0,y.jsx)(ln,{content:f,children:v}):v}):null]})]})})})}function Sm(e){let{title:t,actions:n,name:r}=e;return(0,y.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,y.jsx)(c7,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function Sv(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,y.jsx)(t1,{size:"14",color:"red",children:o}):null}function Sg(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,y.jsxs)("div",{className:(0,em.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,y.jsx)(Sm,{name:i,title:n,actions:r}),(0,y.jsx)(Sv,{form:t,name:i})]}):null}function Sy(e){let{children:t,...n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsx)(Sg,{...n}),t]})}function Sx(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(li,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,y.jsx)(Ea,{}):i})})}function Sb(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:x}=e;return(0,y.jsx)(SS,{formik:t,title:n,name:r,children:"number"===g?(0,y.jsx)(Sj,{formik:t,name:r,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:x}):"siacoin"===g?(0,y.jsx)(SE,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:x}):(0,y.jsx)(Sw,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:x})})}function Sw(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,y.jsx)(fb,{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 Sj(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,y.jsx)(fU,{id:n,units:r,name:n,placeholder:new(fB())(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 SE(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,y.jsx)(fY,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fB())(t.values[n]),placeholder:new(fB())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function Sk(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,y.jsxs)("div",{className:(0,em.cx)("flex justify-between items-center gap-4",s),children:[i?(0,y.jsx)(c7,{htmlFor:o,children:i}):(0,y.jsx)("div",{}),l&&(0,y.jsx)(t1,{size:"14",color:"red",children:u})]})}function SS(e){let{children:t,...n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsx)(Sk,{...n}),t]})}function S_(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,y.jsxs)(y.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,y.jsx)(t1,{color:"red",children:n.status.error}),(0,y.jsx)(li,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,y.jsx)(Ea,{}):a})]})}function SC(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==n?void 0:n.length)||(m="skeleton"),(null==n?void 0:n.length)&&(m="currentData");let v=(0,x.useCallback)((e,n,r)=>(0,em.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]),g=(0,x.useCallback)((e,t)=>(0,em.cx)("flex items-center",t),[]);return(0,y.jsxs)(t3,{children:[(0,y.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,y.jsx)("thead",{className:(0,em.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,y.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,y.jsx)("th",{className:(0,em.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,y.jsx)("div",{className:(0,em.cx)("overflow-hidden","py-3"),children:(0,y.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,em.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,y.jsx)(ln,{content:u,children:(0,y.jsxs)(t1,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,y.jsx)("div",{children:r}):null,(0,y.jsx)(t1,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,y.jsx)(t1,{color:"contrast",children:"asc"===o?(0,y.jsx)(lo.kqg,{className:"scale-75"}):(0,y.jsx)(lo.EMN,{className:"scale-75"})}),f&&!h&&(0,y.jsx)(t1,{color:"verySubtle",children:(0,y.jsx)(lo.kqg,{className:"scale-75"})})]})})},n)})})}),(0,y.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,y.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:n,summary:r,contentClassName:i,cellClassName:o}=e;return(0,y.jsx)("td",{className:v(t,o,!1),children:(0,y.jsx)("div",{className:g(t,i),children:r&&r()})},n)})}),"currentData"===m&&(null==n?void 0:n.map(e=>(0,y.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,em.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,n)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,y.jsx)("td",{className:(0,em.cx)(v(n,s,!1),h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,y.jsx)("div",{className:(0,em.cx)(g(n,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,y.jsx)(o,{data:e,context:r})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&So()(c).map(e=>(0,y.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,y.jsx)("td",{className:v(t,i,!1),children:(0,y.jsx)("div",{className:(0,em.cx)(g(t,r),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===m&&f]})}var SO=n(5632);function SM(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,SO.useRouter)();return(0,y.jsxs)(lA,{children:[(0,y.jsx)(li,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,y.jsx)("div",{className:"flex scale-[0.65]",children:(0,y.jsx)(lo.XJM,{})})}),(0,y.jsx)(li,{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,y.jsx)(lo.bdU,{})}),(0,y.jsx)(li,{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,y.jsx)(Ea,{className:"px-2"}):"No results"}),(0,y.jsx)(li,{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,y.jsx)(lo.VUy,{})}),(0,y.jsx)(li,{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,y.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,y.jsx)(lo.RRj,{})})})]})}function ST(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,o=(0,SO.useRouter)(),a=Math.min(t+n,t+r);return(0,y.jsxs)(lA,{children:[(0,y.jsx)(li,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,y.jsx)("div",{className:"flex scale-[0.65]",children:(0,y.jsx)(lo.XJM,{})})}),(0,y.jsx)(li,{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,y.jsx)(lo.bdU,{})}),i?(0,y.jsx)(li,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,y.jsx)(Ea,{className:"px-2"})}):r?(0,y.jsxs)(li,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",a]}):(0,y.jsx)(li,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,y.jsx)(li,{icon:"contrast",disabled:r!==n,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+n}}),children:(0,y.jsx)(lo.VUy,{})})]})}function SA(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,y.jsxs)(y.Fragment,{children:[(0,y.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,y.jsx)(t1,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,y.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,y.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:n}),(0,y.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,y.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 SP=("string"==typeof(d={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:d}:d).src;function SN(e){let{children:t}=e;return(0,y.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,y.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(SP,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var SR=n(97729),SD=n.n(SR);function SL(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,y.jsxs)(SD(),{children:[(0,y.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,y.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,y.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,y.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,y.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,y.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,y.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,y.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,y.jsx)("title",{children:i})]})}function SF(e){let{appName:t,title:n,children:r}=e;return(0,y.jsxs)("div",{className:"h-screen",children:[(0,y.jsx)(SL,{appName:t,title:n}),r]})}function Sz(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,y.jsxs)(SF,{appName:t,title:n,children:[(0,y.jsx)(SN,{}),(0,y.jsx)("div",{className:"flex h-full",children:(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(SA,{nav:i,actions:o}),(0,y.jsx)("div",{className:"flex-1",children:(0,y.jsx)(lN,{className:"h-full",children:r})})]})})]})}function SV(e){let{side:t,balanceSc:n,children:r}=e;return n?(0,y.jsx)(ln,{side:t,content:(0,y.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,y.jsxs)("div",{className:"flex gap-4",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"spendable"}),(0,y.jsx)(t1,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{displayBoth:!0,variant:"value",value:n.spendable})})]}),(0,y.jsx)(cR,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex gap-4",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"confirmed"}),(0,y.jsx)(t1,{color:"subtle",children:"All confirmed outputs."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{displayBoth:!0,variant:"value",value:n.confirmed})})]}),(0,y.jsx)(cR,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex gap-4",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"unconfirmed"}),(0,y.jsx)(t1,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{displayBoth:!0,variant:"value",value:n.unconfirmed})})]})]}),children:(0,y.jsx)("div",{children:r})}):null}function SZ(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;if(!t)return null;let i=(0,y.jsx)(Sn,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return n?(0,y.jsx)(SV,{side:"right",balanceSc:t,children:i}):(0,y.jsx)(ln,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,y.jsx)("div",{children:i})})}var SI=n(82876);function SB(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,SI.usePathname)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,y.jsx)(dt,{href:r,className:"no-underline",children:(0,y.jsx)(ln,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,y.jsx)(li,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,y.jsx)(ln,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,y.jsx)(li,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function SH(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,y.jsx)(SB,{title:"Wallet",route:r.wallet.view,children:(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,y.jsx)(lo.oaN,{}),n&&t&&(0,y.jsx)(SZ,{isSynced:n,balanceSc:t})]})})}function SU(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,y.jsx)(t3,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,y.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,y.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,y.jsx)(di,{size:30})}),(0,y.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,y.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,y.jsx)("div",{className:"flex-1"}),(0,y.jsx)(cR,{className:"w-full"}),i&&(0,y.jsx)(SH,{routes:t,isSynced:r,walletBalanceSc:o}),(0,y.jsx)(SB,{title:"Blockchain node",route:t.node.index,children:(0,y.jsx)(lo.kBK,{})}),(0,y.jsx)(SB,{title:"App preferences",onClick:()=>s(),children:(0,y.jsx)(lo.UG6,{})}),(0,y.jsx)(SB,{title:"Lock app",onClick:a,children:(0,y.jsx)(lo.mBM,{})})]})]})})}var SW=Object.create,Sq=Object.defineProperty,S$=Object.getOwnPropertyDescriptor,SK=Object.getOwnPropertyNames,SY=Object.getPrototypeOf,SG=Object.prototype.hasOwnProperty,SX=(m=null!=(p=(f=(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={})},()=>(h||f((h={exports:{}}).exports,h),h.exports))())?SW(SY(p)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of SK(t))SG.call(e,n)||void 0===n||Sq(e,n,{get:()=>t[n],enumerable:!(r=S$(t,n))||r.enumerable});return e})(p&&p.__esModule?m:Sq(m,"default",{value:p,enumerable:!0}),p)),SQ=e=>void 0!==e.method&&"call"===e.method,SJ=e=>null===e.error&&"number"==typeof e.id;v=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(SQ(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(SJ(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,SX.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,SX.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,SX.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,SX.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=v(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var S0=(typeof window>"u"?"undefined":typeof window)=="object",S1={setTimeout:S0?setTimeout.bind(window):setTimeout,clearTimeout:S0?clearTimeout.bind(window):clearTimeout,setInterval:S0?setInterval.bind(window):setInterval,clearInterval:S0?clearInterval.bind(window):clearInterval},S2={},S4=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,S2[e]=S2[e]||[],S2[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),S1.setTimeout(()=>{window.localStorage.removeItem(n)},500),S2[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=S2[this.name].indexOf(this);S2[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)}},S3=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:S4;function S5(){return Math.random().toString(36).substring(2)}var S6=class{options;channel;token=S5();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=>S1.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{S1.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=S1.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=>S1.clearInterval(e))}catch{}}}},S8=class{channel;options;elector;token=S5();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new S3(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new S6(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()}},S7=S0?document:null,S9=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function _e(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function _n(e){let{route:t}=e,n=(0,fq.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function _r(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:b}=e,{lock:w,settings:j}=(0,fq.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=_n({route:n}),{settings:a}=(0,fq.Hv)(),s=(0,SO.useRouter)();(0,x.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:w,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e,i=(0,x.useCallback)(()=>{n()},[n]);!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=S7,events:i=S9,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:w="idle-timer",syncTimers:j=0,leaderElection:E=!1,disabled:k=!1}={}){let S=(0,x.useRef)(_t()),_=(0,x.useRef)(_t()),C=(0,x.useRef)(null),O=(0,x.useRef)(null),M=(0,x.useRef)(0),T=(0,x.useRef)(0),A=(0,x.useRef)(0),P=(0,x.useRef)(0),N=(0,x.useRef)(!1),R=(0,x.useRef)(!1),D=(0,x.useRef)(!1),L=(0,x.useRef)(!0),F=(0,x.useRef)(!1),z=(0,x.useRef)(null),V=(0,x.useRef)(null),Z=(0,x.useRef)(e),I=(0,x.useRef)(0);(0,x.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,I.current=n):(Z.current=e,I.current=t),!L.current){if(g||k)return;N.current&&(G.current(null,eA),V.current&&V.current.active()),ed()}},[e,t,n,g,k]);let B=(0,x.useRef)(y);(0,x.useEffect)(()=>{B.current=y},[y]);let H=(0,x.useRef)(a),U=(0,x.useRef)(r),W=(0,x.useRef)([...new Set([...i,...a]).values()]),q=(0,x.useRef)(k);(0,x.useEffect)(()=>{q.current=k,!L.current&&(k?ep():g||ed())},[k]);let $=(0,x.useRef)(s);(0,x.useEffect)(()=>{$.current=s},[s]);let K=(0,x.useRef)(l);(0,x.useEffect)(()=>{K.current=l},[l]);let Y=(0,x.useRef)(u);(0,x.useEffect)(()=>{Y.current=u},[u]);let G=(0,x.useRef)(c);(0,x.useEffect)(()=>{G.current=c},[c]);let X=(0,x.useRef)(d);(0,x.useEffect)(()=>{X.current=d},[d]);let Q=(0,x.useRef)(f);(0,x.useEffect)(()=>{Q.current=f},[f]);let J=(0,x.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?_e(e,p):e},[p,h]),ee=(0,x.useRef)();(0,x.useEffect)(()=>{b&&j&&(ee.current=_e(()=>{V.current.active()},j))},[b,j]);let et=()=>{null!==z.current&&(S1.clearTimeout(z.current),z.current=null)},en=(e,t=!0)=>{et(),z.current=S1.setTimeout(ea,e||Z.current),t&&(O.current=_t())},er=e=>{R.current||N.current||(K.current(e,eA),$.current({type:"active",prompted:!0},eA)),P.current=0,A.current=_t(),R.current=!0,en(I.current,!1)},ei=()=>{et(),N.current||(Y.current(null,eA),$.current({type:"idle"},eA)),N.current=!0,C.current=_t(),B.current?ec():R.current&&(A.current=0,R.current=!1)},eo=e=>{et(),(N.current||R.current)&&(G.current(e,eA),$.current({type:"active",prompted:!1},eA)),R.current=!1,A.current=0,N.current=!1,M.current+=_t()-C.current,T.current+=_t()-C.current,eu(),en()},ea=e=>{if(!N.current){J.cancel&&J.cancel();let t=_t()-O.current;if(!(Z.current+I.current0&&!R.current){V.current?V.current.prompt():er(e);return}V.current?V.current.idle():ei();return}V.current?V.current.active():eo(e)},es=e=>{if(v||O.current||(O.current=_t(),G.current(null,eA)),J(e,eA),R.current)return;if(et(),!N.current&&H.current.includes(e.type)){ea(e);return}let t=_t()-O.current;if(N.current&&!y||!N.current&&t>=Z.current){ea(e);return}D.current=!1,P.current=0,A.current=0,en(),b&&j&&ee.current()},el=(0,x.useRef)(es);(0,x.useEffect)(()=>{let e=F.current;e&&ec(),m>0?el.current=_e(es,m):el.current=es,e&&eu()},[m,p,h,X,b,j]);let eu=()=>{S0&&U.current&&(F.current||(W.current.forEach(e=>{U.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),F.current=!0))},ec=(e=!1)=>{S0&&U.current&&(F.current||e)&&(W.current.forEach(e=>{U.current.removeEventListener(e,el.current,{capture:!0})}),F.current=!1)},ed=(0,x.useCallback)(e=>!q.current&&(et(),eu(),N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,V.current&&!e&&V.current.start(),en(),!0),[z,N,q,Z,V]),ef=(0,x.useCallback)(e=>!q.current&&(et(),eu(),_.current=_t(),M.current+=_t()-C.current,T.current+=_t()-C.current,M.current=0,N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,V.current&&!e&&V.current.reset(),g||en(),!0),[z,N,Z,g,q,V]),eh=(0,x.useCallback)(e=>!q.current&&(et(),eu(),(N.current||R.current)&&eo(),N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,_.current=_t(),V.current&&!e&&V.current.activate(),en(),!0),[z,N,R,q,Z,V]),ep=(0,x.useCallback)((e=!1)=>!q.current&&!D.current&&(P.current=ej(),D.current=!0,ec(),et(),V.current&&!e&&V.current.pause(),!0),[z,q,V]),em=(0,x.useCallback)((e=!1)=>!q.current&&!!D.current&&(D.current=!1,R.current||eu(),N.current||en(P.current),A.current&&(A.current=_t()),V.current&&!e&&V.current.resume(),!0),[z,Z,q,P,V]),ev=(0,x.useCallback)((e,t)=>(V.current?(t&&Q.current(e,eA),V.current.message(e)):t&&Q.current(e,eA),!0),[f]),eg=(0,x.useCallback)(()=>N.current,[N]),ey=(0,x.useCallback)(()=>R.current,[R]),ex=(0,x.useCallback)(()=>V.current?V.current.isLeader:null,[V]),eb=(0,x.useCallback)(()=>V.current?V.current.isLastActive:null,[V]),ew=(0,x.useCallback)(()=>V.current?V.current.token:null,[V]),ej=(0,x.useCallback)(()=>{if(D.current)return P.current;let e=Math.floor((P.current?P.current:I.current+Z.current)-(O.current?_t()-O.current:0));return e<0?0:Math.abs(e)},[Z,I,R,P,O]),eE=(0,x.useCallback)(()=>Math.round(_t()-_.current),[_]),ek=(0,x.useCallback)(()=>Math.round(_t()-S.current),[S]),eS=(0,x.useCallback)(()=>C.current?new Date(C.current):null,[C]),e_=(0,x.useCallback)(()=>O.current?new Date(O.current):null,[O]),eC=(0,x.useCallback)(()=>N.current?Math.round(_t()-C.current+M.current):Math.round(M.current),[C,M]),eO=(0,x.useCallback)(()=>N.current?Math.round(_t()-C.current+T.current):Math.round(T.current),[C,T]),eM=(0,x.useCallback)(()=>{let e=Math.round(eE()-eC());return e>=0?e:0},[C,M]),eT=(0,x.useCallback)(()=>{let e=Math.round(ek()-eO());return e>=0?e:0},[C,M]);(0,x.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(S1.setTimeout=o.setTimeout,S1.clearTimeout=o.clearTimeout,S1.setInterval=o.setInterval,S1.clearInterval=o.clearInterval);let e=()=>{V.current&&V.current.close(),J.cancel&&J.cancel(),et(),ec(!0)};return S0&&window.addEventListener("beforeunload",e),()=>{S0&&window.removeEventListener("beforeunload",e),V.current&&V.current.close(),J.cancel&&J.cancel(),et(),ec(!0)}},[]),(0,x.useEffect)(()=>{V.current&&V.current.close(),b?V.current=new S8({channelName:w,leaderElection:E,onPrompt:()=>{er()},onIdle:()=>{ei()},onActive:()=>{eo()},onMessage:e=>{Q.current(e,eA)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):V.current=null},[b,w,E,K,Y,G,Q,ed,ef,ep,em]),(0,x.useEffect)(()=>{L.current||(et(),ec(!0)),g||k||(v?ed():eu())},[g,v,k,L]),(0,x.useEffect)(()=>{if(!L.current){let e=[...new Set([...i,...a]).values()];ec(),W.current=e,U.current=r,H.current=a,g||k||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(a),L,k,g,v]),(0,x.useEffect)(()=>{L.current&&(L.current=!1)},[L]);let eA={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:ex,isLastActiveTab:eb,getTabId:ew,getRemainingTime:ej,getElapsedTime:eE,getTotalElapsedTime:ek,getLastIdleTime:eS,getLastActiveTime:e_,getIdleTime:eC,getTotalIdleTime:eO,getActiveTime:eM,getTotalActiveTime:eT,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,K.current=e},setOnIdle:e=>{u=e,Y.current=e},setOnActive:e=>{c=e,G.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,Q.current=e}}}({disabled:!t,onIdle:i,timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!j.autoLock,lockTimeout:j.autoLockTimeout,lock:w}),(0,y.jsxs)(SF,{appName:t,title:n,children:[(0,y.jsx)(SN,{}),(0,y.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,y.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,y.jsx)(SU,{routes:v,profile:i,openSettings:b,lock:w,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,y.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,y.jsx)(SA,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,y.jsx)(uo,{className:"z-0",children:(0,y.jsx)(lN,{size:o,pad:!1,children:(0,y.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,y.jsx)(lN,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function _i(e,t,n,r){let[i,o]=(0,x.useState)();return(0,x.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,x.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function _o(e){let{filtered:t}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.Hb6,{className:"scale-[200%]"})}),(0,y.jsx)(t1,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,x.createContext)(null).Consumer;let _a=[];function _s(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=_i(o.data,o.isValidating,o.error,_a),[u,c]=(0,x.useState)(),d=(0,x.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,x.useCallback)(e=>{let t=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});return t},[a]);return(0,y.jsx)(ul,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsxs)(cJ,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,y.jsxs)("div",{className:"flex gap-1",children:[(0,y.jsx)(li,{variant:"info"===u?"accent":"gray",onClick:()=>"info"===u?c(void 0):c("info"),children:"info"}),(0,y.jsx)(li,{variant:"warning"===u?"accent":"gray",onClick:()=>"warning"===u?c(void 0):c("warning"),children:"warning"}),(0,y.jsx)(li,{variant:"error"===u?"accent":"gray",onClick:()=>"error"===u?c(void 0):c("error"),children:"error"}),(0,y.jsx)(li,{variant:"critical"===u?"accent":"gray",onClick:()=>"critical"===u?c(void 0):c("critical"),children:"critical"}),(0,y.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,y.jsxs)(li,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,y.jsx)(lo.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,y.jsxs)("div",{className:(0,em.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,y.jsx)(_o,{filtered:!1}),"error"===l&&(0,y.jsx)("div",{className:(0,em.cx)("flex items-center justify-center h-[100px]",_c()),children:(0,y.jsx)(t1,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,y.jsx)(_u,{}),!l&&(0,y.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,y.jsxs)("div",{className:(0,em.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,y.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,y.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,y.jsxs)(t1,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,y.jsx)(li,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,y.jsx)(lo.NlZ,{})})]}),(0,y.jsxs)("div",{className:"flex justify-between w-full",children:[(0,y.jsx)(t1,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,y.jsx)(t1,{color:"contrast",ellipsis:!0,children:(0,vj.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)||_l;return(0,y.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,y.jsx)(_o,{filtered:!!u})})]})})}function _l(e){let{label:t,value:n}=e;return(0,y.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,y.jsx)(t1,{color:"subtle",children:t}),(0,y.jsx)(t1,{color:"contrast",ellipsis:!0,children:String(n)})]})}function _u(){return(0,y.jsx)(y.Fragment,{children:So()(10,e=>(0,y.jsx)("div",{className:(0,em.cx)("relative flex gap-4 p-3.5",_c()),children:(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,y.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,y.jsx)(f3,{className:"w-[160px] h-[20px]"}),(0,y.jsx)(f3,{className:"w-[160px] h-[20px]"})]}),(0,y.jsx)(f3,{className:"w-[100px] h-[20px]"}),(0,y.jsx)(f3,{className:"w-full h-[120px]"})]})},e))})}function _c(){return(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var _d=n(89644),_f=n.n(_d),_h=n(63955),_p=n(45861),_m=n.n(_p);function _v(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,x.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,x.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 _g(e){return(0,x.useCallback)(t=>{k$(_m()(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", "))},[e])}function _y(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}=_v({name:t,form:n,field:u}),p=(0,y.jsx)(fb,{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,y.jsx)(Sy,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var _x=n(829),_b=n.n(_x);async function _w(e){let{api:t,route:n,password:r}=e;try{return await _f().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 _j(e){let{appName:t,route:n,routes:r}=e,i=(0,SO.useRouter)(),{settings:o,setSettings:a}=(0,fq.Hv)(),{allowCustomApi:s}=o,l=(0,x.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,_h.cI)({mode:"onBlur",defaultValues:l});(0,x.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,x.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await _w({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=_g(d),h=u.formState.errors.api||u.formState.errors.password,p=_b()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,y.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,y.jsx)(t3,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,y.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(t1,{font:"mono",weight:"bold",size:"20",children:t}),(0,y.jsx)(cW,{trigger:(0,y.jsx)(li,{icon:"hover",variant:"ghost",children:(0,y.jsx)(lo.shL,{})}),children:(0,y.jsx)(cq,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,y.jsx)(cR,{className:"w-full mt-2 mb-3"}),(0,y.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,y.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,y.jsxs)(lA,{children:[(0,y.jsx)(_y,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,y.jsx)(cW,{trigger:(0,y.jsx)(li,{type:"button",children:(0,y.jsx)(lo.wGX,{})}),children:p.map(e=>(0,y.jsx)(cq,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,y.jsx)(_y,{name:"password",form:u,fields:d,group:!1}),h&&(0,y.jsx)(t1,{size:"14",color:"red",children:h.message}),(0,y.jsx)(Sx,{size:"small",form:u,children:"Unlock"})]})})]})})})}var _E=n(9156),_k=n(24511);let _S={address:"",siacoin:void 0,includeFee:!1},__=_k.Ry().shape({address:_k.Z_().required("Required"),siacoin:_k.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fB())(e||0).isZero())});function _C(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,y.jsx)(k6,{value:t,type:"address"})]}),(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(k9,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(k9,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(k9,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,y.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,y.jsx)(k6,{value:i,type:"transaction"})]})]})}function _O(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,y.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,y.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,y.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,y.jsxs)("div",{className:(0,em.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,y.jsx)(t1,{color:l?"contrast":"verySubtle",className:(0,em.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,y.jsx)("div",{className:(0,em.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,y.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 _M(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(_C,{address:t,siacoin:n,fee:r,transactionId:i}),(0,y.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.Z$8,{})}),(0,y.jsx)(t1,{children:"Transaction successfully broadcasted."})]})]})}let _T=(0,vj.qN)(.00393),_A={address:"",siacoin:new(fB())(0),includeFee:!1};function _P(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,x.useState)("setup"),[l,u]=(0,x.useState)(),[c,d]=(0,x.useState)(_A),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,_E.TA)({initialValues:_S,validationSchema:__,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,vj.qN)(e.siacoin).minus(n):(0,vj.qN)(e.siacoin);if(t){if(t.isLessThan((0,vj.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,vj.qN)(i.values.siacoin||0),a=(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(Sb,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,y.jsx)(Sb,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,y.jsxs)("div",{className:"flex items-center",children:[(0,y.jsx)(hl,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,y.jsx)(fX,{children:"Include or exclude the network fee from the above transaction value."}),(0,y.jsx)("div",{className:"flex flex-1"})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",children:"Network fee"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(k9,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",children:"Total"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(k9,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:_T,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,_E.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})}}),l=(0,y.jsx)("div",{className:"flex flex-col gap-4",children:(0,y.jsx)(_C,{address:o,siacoin:a,fee:r})});return{form:l,formik:s}}({fee:_T,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,x.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,y.jsx)(ul,{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,y.jsx)("div",{className:"flex flex-col gap-1",children:(0,y.jsx)(S_,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(_O,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,y.jsx)(cR,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,y.jsx)(_M,{data:c,fee:_T,transactionId:l})]})})}let _N="[a-fA-F\\d:]",_R=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(_N,")|(?<=").concat(_N,")(?=\\s|$))"):"",_D="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_L="[a-fA-F\\d]{1,4}",_F="\n(?:\n(?:".concat(_L,":){7}(?:").concat(_L,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(_L,":){6}(?:").concat(_D,"|:").concat(_L,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(_L,":){5}(?::").concat(_D,"|(?::").concat(_L,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(_L,":){4}(?:(?::").concat(_L,"){0,1}:").concat(_D,"|(?::").concat(_L,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(_L,":){3}(?:(?::").concat(_L,"){0,2}:").concat(_D,"|(?::").concat(_L,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(_L,":){2}(?:(?::").concat(_L,"){0,3}:").concat(_D,"|(?::").concat(_L,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(_L,":){1}(?:(?::").concat(_L,"){0,4}:").concat(_D,"|(?::").concat(_L,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(_L,"){0,5}:").concat(_D,"|(?::").concat(_L,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),_z=new RegExp("(?:^".concat(_D,"$)|(?:^").concat(_F,"$)")),_V=new RegExp("^".concat(_D,"$")),_Z=new RegExp("^".concat(_F,"$")),_I=e=>e&&e.exact?_z:RegExp("(?:".concat(_R(e)).concat(_D).concat(_R(e),")|(?:").concat(_R(e)).concat(_F).concat(_R(e),")"),"g");_I.v4=e=>e&&e.exact?_V:RegExp("".concat(_R(e)).concat(_D).concat(_R(e)),"g"),_I.v6=e=>e&&e.exact?_Z:RegExp("".concat(_R(e)).concat(_F).concat(_R(e)),"g");let _B=()=>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"),_H={port:9981,ip:""},_U=_k.Ry().shape({port:_k.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:_k.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>_B().test(e||""))});function _W(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,_E.TA)({initialValues:_H,validationSchema:_U,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 kU("Connected to peer"),t.resetForm(),i(!1)}});return(0,y.jsx)(ul,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Connect to a peer by IP address."}),(0,y.jsx)("form",{onSubmit:o.handleSubmit,children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(Sb,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,y.jsx)(Sb,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,y.jsx)(S_,{formik:o,size:"medium",children:"Connect"})]})})]})})}function _q(e){var t;let{id:n,transaction:r,trigger:i,open:o,onOpenChange:a}=e;return(0,y.jsx)(ul,{title:k0((null==r?void 0:r.txType)?Su()(k5(r.txType)):"Transaction",n,16),trigger:i,open:o,onOpenChange:a,contentVariants:{className:"w-[800px]"},children:r?(0,y.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,y.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Inflow"}),(0,y.jsx)(k9,{value:new(fB())((null==r?void 0:r.inflow)||0)})]}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Outflow"}),(0,y.jsx)(k9,{value:new(fB())((null==r?void 0:r.outflow)||0).negated()})]}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Miner fee"}),(0,y.jsx)(k9,{value:new(fB())((null==r?void 0:null===(t=r.raw.minerFees)||void 0===t?void 0:t.reduce((e,t)=>e.plus(t),new(fB())(0)))||0)})]}),(0,y.jsx)("div",{className:"flex-1"}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Timestamp"}),(0,y.jsx)(t1,{children:(0,vj.rN)((null==r?void 0:r.timestamp)||0,{timeStyle:"short"})})]})]}),(0,y.jsx)(lC,{children:JSON.stringify(null==r?void 0:r.raw,null,2)})]}):(0,y.jsx)(t1,{children:"Could not find transaction in wallet"})})}_k.Ry().shape({address:_k.Z_().required("Required"),description:_k.Z_().required("Required"),index:_k.Rx().integer().required("Required")});var _$=n(38001);function _K(e){let{title:t,description:n,address:r}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,y.jsx)(cJ,{size:"20",font:"mono",children:t}),n&&(0,y.jsx)(t1,{children:n}),(0,y.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,y.jsx)("div",{className:"absolute",children:(0,y.jsx)(_$.Z,{size:200,value:r})})}),(0,y.jsx)(k6,{type:"address",value:r})]})}function _Y(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,y.jsx)(ul,{title:k0("Address",kJ(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,y.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,y.jsx)(_K,{address:t||""}):(0,y.jsx)(t1,{children:"Could not retreive wallet address"})})})}function _G(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lo.qdM,{})}),(0,y.jsxs)(t1,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lo.qdM,{})}),(0,y.jsxs)(t1,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let _X={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"},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"};function _Q(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,fq.Hv)();return(0,y.jsx)(f1,{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,y.jsx)(f2,{value:t,children:n},t)})})}let _J=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function _0(){let{settings:e,setSettings:t}=(0,fq.Hv)();return(0,y.jsx)(f1,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:_J.map(e=>{let{id:t,label:n}=e;return(0,y.jsx)(f2,{value:t,children:n},t)})})}function _1(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:o,setSettings:a,gpu:s}=(0,fq.Hv)();return(0,y.jsx)(ul,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,y.jsx)("div",{className:"flex flex-col gap-4",children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Display"}),(0,y.jsx)(t2,{size:"14",children:"Configure visual and locale display preferences."}),(0,y.jsx)(lf,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(cJ,{size:"20",className:"flex-1",children:"Currency display"}),(0,y.jsx)(_0,{})]}),(0,y.jsx)(t2,{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,y.jsx)(lf,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(cJ,{size:"20",className:"flex-1",children:"Fiat"}),(0,y.jsx)(_Q,{})]}),(0,y.jsx)(t2,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,y.jsx)(lf,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(cJ,{size:"20",className:"flex-1",children:"Theme"}),(0,y.jsx)(pI,{})]}),(0,y.jsx)(t2,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,y.jsx)(lf,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(cJ,{size:"20",className:"flex-1",children:"GPU"}),(0,y.jsx)(hl,{disabled:!s.canGpuRender,checked:s.canGpuRender&&s.isGpuEnabled,onCheckedChange:s.setIsGpuEnabled,size:"medium"})]}),(0,y.jsxs)(t2,{size:"14",children:["Enable features that require a GPU."," ",s.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,y.jsx)(cR,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Security"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Configure security preferences."}),(0,y.jsx)(lf,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(cJ,{size:"20",className:"flex-1",children:"Lock app"}),(0,y.jsx)(hl,{size:"medium",checked:o.autoLock,onCheckedChange:e=>a({autoLock:e})}),(0,y.jsxs)(f1,{disabled:!o.autoLock,value:String(o.autoLockTimeout),onChange:e=>{a({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,y.jsx)(f2,{value:j4(5),children:"5 minutes"}),(0,y.jsx)(f2,{value:j4(10),children:"10 minutes"}),(0,y.jsx)(f2,{value:j4(20),children:"20 minutes"}),(0,y.jsx)(f2,{value:j4(30),children:"30 minutes"}),(0,y.jsx)(f2,{value:j4(60),children:"1 hour"})]})]}),(0,y.jsx)(t2,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,y.jsx)(cR,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Privacy"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{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,y.jsx)(lf,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(cJ,{size:"20",className:"flex-1",children:"Sia Central"}),(0,y.jsx)(hl,{size:"medium",checked:o.siaCentral,onCheckedChange:e=>a({siaCentral:e})})]}),(0,y.jsx)(t2,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,y.jsx)(cR,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Help"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{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,y.jsxs)("div",{className:"flex gap-4",children:[(0,y.jsxs)(dt,{href:_X.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lo.lq1,{}),"Website"]}),(0,y.jsxs)(dt,{href:_X.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lo.RdX,{}),"Docs"]}),(0,y.jsxs)(dt,{href:_X.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lo.Sfn,{}),"About"]}),(0,y.jsxs)(dt,{href:_X.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lo.b47,{}),"Discord"]})]})]})]})]})})}function _2(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,y.jsx)(SV,{side:"bottom",balanceSc:t,children:(0,y.jsx)(t3,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,y.jsx)(Sn,{variant:"value",value:t.spendable,size:"12",showTooltip:!1})})}):(0,y.jsx)(ln,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,y.jsxs)(t3,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lo.qdM,{})}),(0,y.jsx)(Sn,{variant:"value",value:t.spendable,size:"12",showTooltip:!1})]})}):null}function _4(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,y.jsxs)(y.Fragment,{children:[o&&(0,y.jsx)(_2,{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,y.jsxs)(li,{size:"small",onClick:s,children:[(0,y.jsx)(lo.xHM,{}),"Receive"]}),(0,y.jsxs)(li,{size:"small",variant:"accent",onClick:a,children:[(0,y.jsx)(lo.rW0,{}),"Send"]})]})}let _3={default:e=>"".concat((0,vj.rN)(e))};function _5(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 _6(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function _8(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,pV.F)(),o=(0,x.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:vw.accent[800]}}:{sc:{label:"siacoin",color:vw.accentdark[800]}},[i]),a=(0,x.useMemo)(()=>{let e=function(e,t){if(!e||!e.length)return[];let n=Object.keys(j2()(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}(t,"none"),i=function(e){if(!e||!e.length)return{};let t=Object.keys(j2()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=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,a=t.reduce((t,n)=>t+(n[e]||0),0);return _5({total:a,start:i,end:o,count:t.length})}(n,e)}),{});return{...n,total:function(e,t){let n=_6(e,t[0]),r=_6(e,t[t.length-1]),i=t.reduce((t,n)=>t+_6(e,n),0);return _5({total:i,start:n,end:r,count:t.length})}(t,e)}}(t);return{data:e,stats:i,config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,vj.Vz)(e),formatTimestamp:_3.default||_3.default,formatTickY:e=>(0,vj.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}},[t,n,o,r]);return(0,y.jsx)("div",{className:"relative",children:(0,y.jsx)(El,{id:"balance",height:200,allowConfiguration:!1,data:a.data,config:a.config})})}function _7(e){let{peers:t,connectPeer:n}=e;return(0,y.jsx)(Sh,{title:"Peers",actions:(0,y.jsx)(li,{onClick:n,children:"Connect"}),entities:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function _9(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,y.jsxs)("div",{className:(0,em.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,y.jsx)("div",{className:"relative top-px",children:(0,y.jsx)(f6,{style:{backgroundColor:o}})}),(0,y.jsx)(t1,{size:t,children:n})]})}function Ce(e){return 1008*e}function Ct(e){return 4320*e}function Cn(e){return e/16666666666666669e-22}function Cr(e){return e/1008}function Ci(e,t){return new Date().getTime()+Cn(t-e)}function Co(e){let{children:t,variant:n,align:r}=e;return(0,y.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,y.jsx)(t1,{size:"10",color:"primary"===n?"contrast":"verySubtle",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function Ca(e){let{date:t,align:n,variant:r}=e;return t?(0,y.jsx)(Co,{variant:r,align:n,children:(0,vj.rN)(t)}):null}function Cs(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,y.jsx)(Co,{variant:r,align:n,children:t.toLocaleString()}):null}function Cl(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=Cn(d),h=Ci(n,r.startHeight),p=Ci(n,i),m=Ci(n,o),v=(p-h)/f,g=(m-h)/f;return(0,y.jsxs)("div",{className:(0,em.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:Cu(v),width:Cu(g-v)},children:[(0,y.jsx)("div",{className:(0,em.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,y.jsx)("div",{className:(0,em.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,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Cu(1-g)}:{left:Cu(v)},children:[(0,y.jsx)(Cs,{blockHeight:i,align:"start",variant:"primary"}),(0,y.jsx)(Co,{variant:"primary",children:t}),(0,y.jsx)(Cs,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,y.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Cu(1-g)}:{left:Cu(v)},children:[(0,y.jsx)(Ca,{date:p,align:"start",variant:"secondary"}),(0,y.jsx)(Ca,{date:m,align:"start",variant:"secondary"})]}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Cu(1-g)}:{left:Cu(v)},children:[(0,y.jsx)(Ca,{date:p,align:"start",variant:"secondary"}),(0,y.jsx)(Ca,{date:m,align:"start",variant:"secondary"})]})]})}function Cu(e){return"".concat(100*e,"%")}function Cc(e){let{currentHeight:t,eventHeight:n,range:r,label:i,bottomLabel:o,color:a,className:s,unconfirmedPing:l=!0}=e,u=!!n&&n>t,c=n&&!u&&t-n<6,d=r.endHeight-r.startHeight,f=Cn(d),h=Ci(t,r.startHeight),p=n?Ci(t,n):0;return n?(0,y.jsx)("div",{className:(0,em.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",s),style:{left:"".concat(100*(p?(p-h)/f:0),"%")},children:(0,y.jsxs)("div",{className:(0,em.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[l&&c&&(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,y.jsx)("div",{className:(0,em.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===a?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===a?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===a?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,y.jsx)(Cs,{blockHeight:n,align:"start",variant:"primary"}),(0,y.jsx)(Co,{variant:"primary",children:i})]}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,y.jsx)(Ca,{date:p,align:"start",variant:"secondary"}),o&&(0,y.jsx)(Co,{variant:"secondary",children:o})]})]})}):null}function Cd(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,y.jsx)("div",{className:"group/main relative w-full",children:(0,y.jsx)("div",{className:"relative py-6",children:(0,y.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,y.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,y.jsxs)("div",{className:"group/segments",children:[(0,y.jsx)(Cl,{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,y.jsx)(Cl,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,y.jsx)(Cc,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,y.jsx)(Cc,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,y.jsx)(Cc,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,y.jsx)(Cc,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var Cf=n(17335),Ch=n.n(Cf);function Cp(e){let{label:t,columns:n,enabled:r,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===Ch()(n,r).length,s=Ch()(n,r).length===n.length;return(0,y.jsxs)(cZ,{children:[(0,y.jsx)(c7,{children:t}),(0,y.jsxs)(cI,{children:[(0,y.jsx)(li,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(n)},children:(0,y.jsx)(lo.xVB,{})}),(0,y.jsx)(li,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,y.jsx)(lo.pHg,{})})]})]})}function Cm(e){let{title:t,children:n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,y.jsx)(cJ,{anchorLink:!0,size:"24",children:t}),(0,y.jsx)(t3,{className:"p-6",children:(0,y.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function Cv(e){let{title:t,description:n,control:r}=e;return(0,y.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,y.jsx)(cJ,{size:"20",children:t}),(0,y.jsx)(t2,{size:"14",children:n})]}),(0,y.jsx)("div",{className:"",children:r})]})}function Cg(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,_h.cI)(),d=(0,x.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,y.jsx)(ul,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,y.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,y.jsx)("div",{className:"flex gap-1 justify-end",children:(0,y.jsx)(Sx,{variant:s,form:c,size:"small",children:l})})]})})})}function Cy(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(t1,{font:"mono",weight:"bold",size:"20",children:t}),(0,y.jsxs)("div",{className:"flex items-center",children:[n?(0,y.jsxs)(li,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,y.jsx)(t1,{color:"subtle",children:n.toLocaleString()}),(0,y.jsx)(lo.RK4,{})]}):null,i&&r?(0,y.jsx)(ln,{content:"Blockchain is synced",children:(0,y.jsx)("div",{className:"relative left-2",children:(0,y.jsxs)(li,{variant:"ghost",state:"waiting",children:[(0,y.jsx)(t1,{color:"subtle",children:i.toLocaleString()}),(0,y.jsx)(t1,{color:"green",children:(0,y.jsx)(lo.Y3p,{})})]})})}):null]})]})}function Cx(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,y.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,y.jsx)(dI,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,y.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,y.jsx)(t1,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,y.jsx)(t1,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,y.jsx)(t1,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function Cb(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,y.jsx)(h5,{rootProps:{openDelay:100},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,y.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,y.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,y.jsxs)(t1,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,y.jsx)(di,{size:30})]}),children:(0,y.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[300px]",children:[(0,y.jsx)(Cy,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,y.jsx)(cR,{className:"w-full mb-0.5"}):(0,y.jsx)(Cx,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{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,y.jsx)(cR,{className:"w-full mb-1"})]}),c]})})}function Cw(e){let{testnetName:t}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,y.jsx)(t1,{color:"lo",children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsxs)(t1,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function Cj(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(ln,{align:"start",side:"bottom",content:i,children:(0,y.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,y.jsx)(t1,{className:"flex relative",children:o||(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(t1,{size:"12",ellipsis:!0,children:r?(0,y.jsx)(dt,{href:r,target:"_blank",children:n}):n})]})}),(0,y.jsx)("div",{className:(0,em.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,y.jsx)(k9,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,y.jsx)(Sr,{value:a,variant:"value",size:"12",format:e=>"".concat(fH(e,l)," ").concat(u)})})]})}function CE(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}=_v({name:t,field:i,form:n}),b=d||(()=>null),w=(0,x.useMemo)(()=>s?new(fB())(s):a&&"boolean"!=typeof a?new(fB())(a):void 0,[s,a]);return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(fY,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:w,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),(0,y.jsx)(b,{name:t,form:n,fields:r}),o&&(0,y.jsx)(Cj,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,vj.qN)(o),onClick:()=>{m(o,!0)}}),a&&u&&(0,y.jsx)(Cj,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,vj.qN)(a),onClick:()=>{m(a,!0)}})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function Ck(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}=_v({form:n,field:i,name:t}),m=(0,x.useMemo)(()=>c?new(fB())(c):s&&"boolean"!=typeof s?new(fB())(s):void 0,[c,s]);return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(fU,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(fB())(e):void 0;f(t,!0)},onBlur:()=>{f(h,!0)}}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,y.jsx)(Cj,{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,y.jsx)(Cj,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function CS(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(ln,{align:"start",side:"bottom",content:r,children:(0,y.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,y.jsx)(t1,{className:"flex relative",children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(t1,{size:"12",children:n?(0,y.jsx)(dt,{href:n,target:"_blank",children:t}):t})]})}),(0,y.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,y.jsx)(t1,{size:"12",children:(0,y.jsx)(lM,{children:i})})})]})}function C_(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}=_v({name:t,form:n,field:o});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(fb,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,y.jsx)(CS,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function CC(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=_v({name:t,field:i,form:n});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)("div",{className:"flex justify-end w-full",children:(0,y.jsx)(hl,{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,y.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,y.jsx)(CS,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function CO(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}=_v({name:t,form:n,field:i});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)("div",{className:"flex justify-end w-full",children:(0,y.jsx)(f1,{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,y.jsx)(f2,{value:e.value,children:e.label},e.value))})}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,y.jsx)(CS,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function CM(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,y.jsx)(Cm,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(Cv,{title:a.title,description:a.description,control:"number"===a.type?(0,y.jsx)(Ck,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,y.jsx)(CE,{form:r,name:n,fields:i}):"text"===a.type?(0,y.jsx)(C_,{form:r,name:n,fields:i}):"password"===a.type?(0,y.jsx)(C_,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,y.jsx)(CC,{form:r,name:n,fields:i}):"select"===a.type?(0,y.jsx)(CO,{form:r,name:n,fields:i}):null}),t{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,y.jsx)(Sy,{title:s.title,name:t,form:n,children:d}):d}function CA(e){let{name:t,form:n,fields:r,group:i=!0}=e,o=r[t],{options:a}=o,{ref:s,onChange:l,onBlur:u,error:c}=_v({name:t,form:n,field:o}),d=(0,y.jsx)(f1,{ref:s,name:t,size:"small",state:c?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:l,onBlur:u,children:null==a?void 0:a.map(e=>(0,y.jsx)(f2,{value:e.value,children:e.label},e.value))});return i?(0,y.jsx)(Sy,{title:o.title,name:t,form:n,children:d}):d}var CP=n(75652),CN=n.n(CP);lo.lg1,lo.eHR,lo.I$H,lo.KiD,lo.P5r,lo.CCF,lo.w9S,lo.EL$,lo.aPl,lo.wEY,lo.EOT,lo.kSc,lo.W$S,lo.lJ7,lo.ORH,lo.ka0,lo.BdP,lo.d19,lo.Mes,lo.VUg,lo.U_S,lo.T85;let CR=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,x.useState)(!0),l=(0,x.useRef)(!1),u=(0,x.useRef)(0);return(0,x.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,x.createElement)(tL,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,x.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,x.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,x.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function CD(e){let{children:t}=e,[n,r]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{r(!0)},[]),(0,y.jsx)("div",{children:n?t:null})}function CL(e){let{className:t,passwordProtectRequestHooks:n,fallback:r,children:i,lockRoutes:o}=e;return(0,y.jsx)(CD,{children:(0,y.jsx)(fq.kl,{fallback:r,children:(0,y.jsx)(pV.f,{attribute:"class",children:(0,y.jsx)(CR,{children:(0,y.jsx)(fq.bW,{lockRoutes:o,passwordProtectRequestHooks:n,children:(0,y.jsxs)("div",{id:"root",className:t,children:[(0,y.jsx)(kY,{}),i]})})})})})})}var CF=n(30898),Cz=n.n(CF),CV=n(92762);let CZ=[];function CI(e,t){let{columns:n,columnsDefaultVisible:r,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:CZ,...t},[s,l]=(0,CV.Z)("".concat(e,"/enabledColumns"),{defaultValue:r}),[u,c]=(0,CV.Z)("".concat(e,"/sortField"),{defaultValue:i}),[d,f]=(0,CV.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),h=(0,x.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),p=(0,x.useCallback)(e=>{l(t=>CN()([...t,...e]))},[l]),m=(0,x.useCallback)(e=>{l(t=>Ch()(t,e))},[l]),v=(0,x.useCallback)(()=>{l(r)},[l,r]),g=(0,x.useCallback)(e=>{if(u!==e){c(e),f("asc");return}f(e=>"desc"===e?"asc":"desc")},[u,c,f]),y=(0,x.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),b=(0,x.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]),w=(0,x.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return Cz()(e,b)},[o,b]);return{configurableColumns:y,enabledColumns:b,toggleColumnVisibility:h,toggleSort:g,setSortDirection:f,setSortField:c,sortableColumns:w,sortField:u,setColumnsVisible:p,setColumnsHidden:m,sortDirection:d,resetDefaultColumnVisibility:v}}function CB(){let e=(0,SO.useRouter)(),[t,n]=(0,x.useState)([]),r=(0,x.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,x.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,x.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,x.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}function CH(e){let{dataset:t,filters:n,sortField:r,sortDirection:i}=e;return(0,x.useMemo)(()=>{if(!t)return null;let e=Object.entries(n).map(e=>{let[t,n]=e;return n}),o=e.length?t.filter(t=>{for(let n of e)if(!n.fn(t))return!1;return!0}):t;return[...o=o.sort((e,t)=>{let n=e[r],o=t[r];return"desc"===i?n instanceof fB()&&o instanceof fB()?n.lte(o)?1:-1:n<=o?1:-1:n instanceof fB()&&o instanceof fB()?n.gte(o)?1:-1:n>=o?1:-1})]},[t,n,r,i])}function CU(){let e=(0,SO.useRouter)(),[t,n]=(0,x.useState)([]),r=(0,x.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,x.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,x.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,x.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}let CW=new(fB())(0);function Cq(e){let{sc:t}=e,{settings:n}=(0,fq.Hv)(),r=(0,f$.BW)({config:{swr:{revalidateOnFocus:!1}}}),i=(0,x.useMemo)(()=>{var e;return n.siaCentral&&r.data?new(fB())((null===(e=r.data)||void 0===e?void 0:e.rates.sc[n.currency.id])||CW):CW},[r.data,n]),o=(0,x.useMemo)(()=>new(fB())(t).times(i),[t,i]);return i.isZero()?{}:{fiat:o,currency:n.currency}}function C$(e){return new(fB())(e).div(1e3).div(1e3).div(1e3).div(1e3)}function CK(e){return new(fB())(e).times(1e3).times(1e3).times(1e3).times(1e3)}function CY(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)+720,n.startHeight=n.startHeight-720;let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=j3(1);let o=r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{});return{allDatesMap:o,range:n}}let CG=/^[a-z]{2}$/i;function CX(e){if(!CG.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."))}let t=[...e.toUpperCase()].map(e=>e.codePointAt()+127397);return String.fromCodePoint(...t)}},2850:function(e,t,n){"use strict";n.d(t,{bW:function(){return L},kl:function(){return $},gw:function(){return i},Tc:function(){return U},du:function(){return W},Hv:function(){return D},iv:function(){return I},rB:function(){return B},Nf:function(){return Z},Tu:function(){return q},mw:function(){return z},q0:function(){return F},Tb:function(){return O},V1:function(){return V},Q5:function(){return H},D:function(){return T}});var r=n(79381);function i(e){return new Promise(t=>setTimeout(t,e))}var o=n(89644),a=n.n(o),s=n(2784);function l(e){return{...e,config:{...null==e?void 0:e.config}}}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,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function f(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=d(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 h(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){let n=Object.keys(t);for(let r of n){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}}return e}(t,i)))return null;let o=d(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function p(e,t,n,r){let i=d(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var m=n(52322),v=n(82876),g=n(92762);function y(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 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 b(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 w="undefined"==typeof window,j=(()=>{if(w)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 k=[],S=[];function _(e){return null!=e}let C=({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"}={})=>y(void 0,void 0,void 0,function*(){let a={};if(w)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==j?void 0:j.isIpad),isMobile:l=!!(null==j?void 0:j.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>y(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 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=b(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==j?void 0:j.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=b(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==j?void 0:j.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 y(this,void 0,void 0,function*(){let n;let r=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let n of t)if(e.includes(n))return n})(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 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 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:x}=window,b=u.width*x*u.height*x;for(let e of g){let[t,n]=e,r=t*n,i=Math.abs(b-r);ie===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,C,O]=v[0];if(-1===g)return f(0,"BLOCKLISTED",C,g,O);let M=l?e:t,T=0;for(let e=0;e=M[e]&&(T=e);return f(T,"BENCHMARK",C,g,O)});function O(){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 M=(0,s.createContext)({}),T=()=>(0,s.useContext)(M);function A(e){let{children:t}=e,n=function(){let[e,t]=(0,s.useState)({}),n=(0,s.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]),r=(0,s.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,s.useCallback)(()=>{t({})},[t]),o=(0,s.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:n,removeWorkflow:r,resetWorkflows:i,workflows:o}}();return(0,m.jsx)(M.Provider,{value:n,children:t})}let P=[{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}],N={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:P[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},R=(0,s.createContext)({}),D=()=>(0,s.useContext)(R);function L(e){let{children:t,...n}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:i}=e,o=(0,s.useMemo)(()=>({...N,...i}),[i]),[a,l]=(0,g.Z)("v0/settings",{defaultValue:o});(0,s.useEffect)(()=>{l(e=>({...o,...e}))},[]);let u=(0,s.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=T(),d=(0,s.useCallback)(e=>{l(t=>({...t,...e}))},[l]),f=(0,s.useCallback)(e=>{let t=P.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,v.useRouter)(),p=(0,v.usePathname)(),[m,y]=(0,s.useState)({}),x=(0,s.useCallback)((e,t)=>{y(n=>({...n,[e]:t}))},[y]),b=(0,s.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,r.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=(0,s.useMemo)(()=>!!u.password,[u]),j=function(){let e=O(),[t,n]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},l]=(0,g.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,s.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];l(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[l]),c=(0,s.useCallback)(async()=>{let e=!1;{let t=await C();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,a]);return(0,s.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:P,gpu:j,lock:b,isUnlocked:w,passwordProtectRequestHooks:t,setOnLockCallback:x}}(n);return(0,m.jsx)(R.Provider,{value:i,children:t})}function F(e){var t;let n=(0,s.useMemo)(()=>u(e),[e]),{settings:i,passwordProtectRequestHooks:o}=D(),l=h(i,n.route,n,void 0),c=(0,s.useMemo)(()=>{var t,r;return t=l?"".concat(l).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,r=n.disabled||o&&!i.password,!t||r?null:t},[l,e,n,o,i]);return(0,r.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=f(i,n,void 0);if(!l)throw Error("No route");try{let n=await a().post(l,e.payload,t);return n.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 z(e,t){let{setWorkflow:n,removeWorkflow:i}=T(),{mutate:o}=(0,r.kY)(),{settings:s}=D(),u=l(e);return{post:async e=>{let r=c(e);try{let l;let c=f(s,u,r),d=h(s,u.route,u,r);if(!d)throw Error("No route");"payload"in r&&(l=r.payload);let m="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=p(s,d,e,r);n(m,{path:v,payload:l});let g=await a().post(d,l,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let i=p(s,n,e,r);return t(i)},n,i)},r,g),i(m),{status:g.status,data:g.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function V(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=D(),{setWorkflow:o,removeWorkflow:s}=T(),u=l(e);return{put:async e=>{let r=c(e);try{let l;let c=f(i,u,r),d=h(i,u.route,u,r);if(!d)throw Error("No route");"payload"in r&&(l=r.payload);let m="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=p(i,d,e,r);o(m,{path:v,payload:l});let g=await a().put(d,l,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=p(i,n,e,r);return t(o)},o,a)},r,g),s(m),{status:g.status,data:g.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function Z(e){var t,n,i;let o=(0,s.useMemo)(()=>u(e),[e]),{settings:l,passwordProtectRequestHooks:c}=D(),d=h(l,o.route,o,void 0);return(0,r.ZP)((n=e.standalone?"".concat(e.standalone,"/").concat(d):d,i=o.disabled||c&&!l.password,!n||i?null:n),async()=>{if(!o.route)throw Error("No route");let e=f(l,o,void 0);if(!d)throw Error("No route");try{let t=await a().get(d,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=o.config)||void 0===t?void 0:t.swr)}function I(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=D(),{setWorkflow:o,removeWorkflow:s}=T(),u=l(e);return{delete:async e=>{let r=c(e);try{let l=f(i,u,r),c=h(i,u.route,u,r);if(!c)throw Error("No route");let d=p(i,c,e,r);o(c,{path:d});let m=await a().delete(c,l);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=p(i,n,e,r);return t(o)},o,a)},r,m),s(c),{status:m.status,data:m.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function B(e){var t;let{get:n}=function(e){let{settings:t}=D(),n=l(e);return{get:async e=>{let r=c(e);try{let e=f(t,n,r),i=h(t,n.route,n,r);if(!i)throw Error("No route");let o=await a().get(i,e);return{status:o.status,data:o.data}}catch(t){var i,o,s,l;let e=(null===(i=t.response)||void 0===i?void 0:i.data)instanceof Blob?await (null===(o=t.response)||void 0===o?void 0:o.data.text()):(null===(s=t.response)||void 0===s?void 0:s.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 H(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,r]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(n)return;let i=setInterval(()=>{e()&&(r(!0),clearInterval(i))},t);return()=>clearInterval(i)},[e,n,t]),n}function U(){return Math.round((new Date().getTime()-14336e8)/6e5)}function W(){return Math.round((new Date().getTime()-16736e8)/6e5)}function q(e){let{settings:t}=D();return(0,s.useMemo)(()=>function(n,i,o){return(0,r.JG)(r=>{if("string"!=typeof r)return!1;let i=p(t,r,e,void 0);return n(i)},i,o)},[t,e])}function $(e){let{fallback:t,cacheProvider:n,children:i}=e;return(0,m.jsx)(A,{children:(0,m.jsx)(r.J$,{value:{fallback:t||{},provider:n},children:i})})}},88242: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,{aXP:function(){return t3},eHR:function(){return nt},xHM:function(){return nn},L6f:function(){return nr},rW0:function(){return ni},osk:function(){return no},JaG:function(){return na},wWN:function(){return i4},Dkj:function(){return or},fi8:function(){return i2},EMN:function(){return nh},bdU:function(){return np},VUy:function(){return nm},Cp0:function(){return nv},kqg:function(){return ng},Mes:function(){return ny},DI$:function(){return nb},NlZ:function(){return nP},Y3p:function(){return nR},Z$8:function(){return nN},tEK:function(){return nD},cRw:function(){return nL},F3j:function(){return nF},PcV:function(){return nV},QN4:function(){return nz},Jsc:function(){return nZ},bQp:function(){return nB},Y9T:function(){return nI},wEY:function(){return nW},olJ:function(){return nq},KiD:function(){return nY},B4q:function(){return n0},_Eq:function(){return nG},VHe:function(){return oe},Jrl:function(){return n1},aPl:function(){return n2},kBK:function(){return i7},c_L:function(){return n6},Bpb:function(){return n8},vzB:function(){return n7},iG7:function(){return rr},nDH:function(){return ri},d19:function(){return ro},w9S:function(){return ra},VBo:function(){return i3},q0D:function(){return rd},Hb6:function(){return rc},CCF:function(){return rf},L37:function(){return rm},ROc:function(){return ot},UG6:function(){return i9},lq1:function(){return rv},zvn:function(){return i5},EL$:function(){return ry},BdP:function(){return rk},e1T:function(){return rS},P5r:function(){return r_},RdX:function(){return rC},U_S:function(){return rO},V8Q:function(){return rR},POp:function(){return rD},nCM:function(){return rz},kSc:function(){return rF},TtX:function(){return rL},mBM:function(){return i8},Lur:function(){return rB},b47:function(){return rH},Sfn:function(){return rU},W$S:function(){return rG},T85:function(){return rX},c6N:function(){return rQ},Ckx:function(){return rJ},EOT:function(){return r0},RK4:function(){return r2},XJM:function(){return r6},RRj:function(){return r8},ka0:function(){return r7},hzZ:function(){return it},n6M:function(){return ir},VUg:function(){return il},owP:function(){return iu},Fs9:function(){return ic},wGX:function(){return id},Wet:function(){return iv},Zbu:function(){return ig},ZEk:function(){return iy},$Iz:function(){return iE},UBs:function(){return ik},shL:function(){return iS},hiv:function(){return i_},mli:function(){return iO},lJ7:function(){return on},ORH:function(){return iP},I98:function(){return iN},R$6:function(){return iR},JCW:function(){return iB},xVB:function(){return iH},pHg:function(){return iU},I$H:function(){return iq},HCc:function(){return iW},oaN:function(){return i6},qdM:function(){return i$},Gu6:function(){return iK},SmH:function(){return iQ},RFr:function(){return iJ},lg1:function(){return i0}});var a,s,l,u,c,d,f,h,p,m,v,g,y,x,b,w,j,E,k,S,_,C,O,M,T,A,P,N,R,D,L,F,z,V,Z,I,B,H,U,W,q,$,K,Y,G,X,Q,J,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,ej,eE,ek,eS,e_,eC,eO,eM,eT,eA,eP,eN,eR,eD,eL,eF,ez,eV,eZ,eI,eB,eH,eU,eW,eq,e$,eK,eY,eG,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,tx,tb,tw,tj,tE,tk,tS,t_,tC,tO,tM,tT,tA,tP,tN,tR,tD,tL,tF,tz,tV,tZ,tI,tB,tH,tU=["width","height","viewBox"],tW=["tabindex"],tq={focusable:"false",preserveAspectRatio:"xMidYMid meet"},t$=n(13980),tK=n.n(t$),tY=n(2784);function tG(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 tX(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 t0=["className","children","tabIndex"],t1=["tabindex"],t2=tY.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,tU),l=s.tabindex,u=o(s,tW),c=i(i(i({},tq),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}(tX(tX({},tJ(e,t0)),{},{tabindex:a})),l=s.tabindex,u=tJ(s,t1);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tY.createElement("svg",u,r)});t2.displayName="Icon",t2.propTypes={"aria-hidden":tK().string,"aria-label":tK().string,"aria-labelledby":tK().string,children:tK().node,className:tK().string,height:tK().oneOfType([tK().number,tK().string]),preserveAspectRatio:tK().string,tabIndex:tK().string,viewBox:tK().string,width:tK().oneOfType([tK().number,tK().string]),xmlns:tK().string},t2.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var t4=["children"],t3=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,t4);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tY.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)}),t5=["children"],t6=["children"],t8=["children"],t7=["children"],t9=["children"],ne=["children"],nt=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,t5);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tY.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tY.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),nn=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,t6);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tY.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)}),nr=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,t8);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tY.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)}),ni=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,t7);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tY.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)}),no=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,t9);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tY.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)}),na=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,ne);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tY.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),p||(p=tY.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),m||(m=tY.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),v||(v=tY.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),g||(g=tY.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),y||(y=tY.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),x||(x=tY.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),b||(b=tY.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),w||(w=tY.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)}),ns=["children"],nl=["children"],nu=["children"],nc=["children"],nd=["children"],nf=["children"],nh=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,ns);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tY.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),np=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nl);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),E||(E=tY.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),nm=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nu);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tY.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),nv=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nc);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tY.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),ng=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nd);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tY.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),ny=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nf);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tY.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)}),nx=["children"],nb=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nx);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tY.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"})),M||(M=tY.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)}),nw=["children"],nj=["children"],nE=["children"],nk=["children"],nS=["children"],n_=["children"],nC=["children"],nO=["children"],nM=["children"],nT=["children"],nA=["children"],nP=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nw);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=tY.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nN=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nj);return tY.createElement(t2,tQ({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tY.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"})),P||(P=tY.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)}),nR=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nE);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tY.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"})),R||(R=tY.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)}),nD=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nk);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),D||(D=tY.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),L||(L=tY.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)}),nL=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nS);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),F||(F=tY.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n)}),nF=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,n_);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),z||(z=tY.createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n)}),nz=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nC);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=tY.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)}),nV=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nO);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tY.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)}),nZ=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nM);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),I||(I=tY.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"})),B||(B=tY.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)}),nI=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nT);return tY.createElement(t2,tQ({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=tY.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"})),U||(U=tY.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)}),nB=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nA);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),W||(W=tY.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"})),q||(q=tY.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)}),nH=["children"],nU=["children"],nW=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nH);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),$||($=tY.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"})),K||(K=tY.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nq=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nU);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tY.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"})),G||(G=tY.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),n$=["children"],nK=["children"],nY=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,n$);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),X||(X=tY.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"})),Q||(Q=tY.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)}),nG=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nK);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),J||(J=tY.createElement("circle",{cx:"22",cy:"24",r:"2"})),ee||(ee=tY.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"})),et||(et=tY.createElement("circle",{cx:"8",cy:"8",r:"1"})),en||(en=tY.createElement("circle",{cx:"8",cy:"16",r:"1"})),er||(er=tY.createElement("circle",{cx:"8",cy:"24",r:"1"})),ei||(ei=tY.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)}),nX=["children"],nQ=["children"],nJ=["children"],n0=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nX);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eo||(eo=tY.createElement("path",{d:"M8 18H12V20H8zM14 18H18V20H14zM8 14H12V16H8zM14 22H18V24H14zM20 14H24V16H20zM20 22H24V24H20z"})),ea||(ea=tY.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)}),n1=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nQ);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tY.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),el||(el=tY.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),n2=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,nJ);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=tY.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ec||(ec=tY.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),n4=["children"],n3=["children"],n5=["children"],n6=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,n4);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tY.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"})),ef||(ef=tY.createElement("path",{d:"M10 22H22V24H10zM10 16H22V18H10z"})),n)}),n8=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,n3);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tY.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),n7=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,n5);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tY.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)}),n9=["children"],re=["children"],rt=["children"],rn=["children"],rr=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,n9);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tY.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),n)}),ri=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,re);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ev||(ev=tY.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)}),ro=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rt);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tY.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"})),ey||(ey=tY.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ex||(ex=tY.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),ra=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rn);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tY.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)}),rs=["children"],rl=["children"],ru=["children"],rc=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rs);return tY.createElement(t2,tQ({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tY.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)}),rd=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rl);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tY.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)}),rf=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,ru);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=tY.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)}),rh=["children"],rp=["children"],rm=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rh);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ek||(ek=tY.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"})),eS||(eS=tY.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)}),rv=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rp);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=tY.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"})),eC||(eC=tY.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)}),rg=["children"],ry=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rg);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=tY.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)}),rx=["children"],rb=["children"],rw=["children"],rj=["children"],rE=["children"],rk=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rx);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eM||(eM=tY.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)}),rS=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rb);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tY.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"})),eA||(eA=tY.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)}),r_=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rw);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tY.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)}),rC=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rj);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eN||(eN=tY.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"})),eR||(eR=tY.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)}),rO=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rE);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tY.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)}),rM=["children"],rT=["children"],rA=["children"],rP=["children"],rN=["children"],rR=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rM);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eL||(eL=tY.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"})),eF||(eF=tY.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)}),rD=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rT);return tY.createElement(t2,tQ({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ez||(ez=tY.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"})),eV||(eV=tY.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)}),rL=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rA);return tY.createElement(t2,tQ({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eZ||(eZ=tY.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)}),rF=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rP);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=tY.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)}),rz=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rN);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tY.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)}),rV=["children"],rZ=["children"],rI=["children"],rB=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rV);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=tY.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)}),rH=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rZ);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=tY.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"})),eW||(eW=tY.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)}),rU=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rI);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eq||(eq=tY.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)}),rW=["children"],rq=["children"],r$=["children"],rK=["children"],rY=["children"],rG=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rW);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e$||(e$=tY.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"})),eK||(eK=tY.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)}),rX=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rq);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tY.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)}),rQ=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,r$);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eG||(eG=tY.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"})),eX||(eX=tY.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)}),rJ=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rK);return tY.createElement(t2,tQ({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=tY.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"})),eJ||(eJ=tY.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)}),r0=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,rY);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=tY.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"})),e1||(e1=tY.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)}),r1=["children"],r2=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,r1);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=tY.createElement("circle",{cx:"21",cy:"26",r:"2"})),e4||(e4=tY.createElement("circle",{cx:"21",cy:"6",r:"2"})),e3||(e3=tY.createElement("circle",{cx:"4",cy:"16",r:"2"})),e5||(e5=tY.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)}),r4=["children"],r3=["children"],r5=["children"],r6=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,r4);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=tY.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),r8=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,r3);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e8||(e8=tY.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),r7=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,r5);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e7||(e7=tY.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"})),e9||(e9=tY.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),r9=["children"],ie=["children"],it=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,r9);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),te||(te=tY.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"})),tt||(tt=tY.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)}),ir=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,ie);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tY.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)}),ii=["children"],io=["children"],ia=["children"],is=["children"],il=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,ii);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tr||(tr=tY.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"})),ti||(ti=tY.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)}),iu=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,io);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=tY.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),ta||(ta=tY.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"})),ts||(ts=tY.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)}),ic=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,ia);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tl||(tl=tY.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)}),id=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,is);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tu||(tu=tY.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),tc||(tc=tY.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)}),ih=["children"],ip=["children"],im=["children"],iv=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,ih);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tY.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)}),ig=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,ip);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tf||(tf=tY.createElement("path",{d:"M10 16H22V18H10zM10 10H22V12H10z"})),th||(th=tY.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)}),iy=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,im);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tp||(tp=tY.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)}),ix=["children"],ib=["children"],iw=["children"],ij=["children"],iE=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,ix);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=tY.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)}),ik=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,ib);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tv||(tv=tY.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)}),iS=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iw);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tY.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"})),ty||(ty=tY.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)}),i_=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,ij);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tx||(tx=tY.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)}),iC=["children"],iO=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iC);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tb||(tb=tY.createElement("path",{d:"M8 15H24V17H8z"})),n)}),iM=["children"],iT=["children"],iA=["children"],iP=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iM);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tw||(tw=tY.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)}),iN=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iT);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tj||(tj=tY.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"})),tE||(tE=tY.createElement("path",{fill:"none",d:"M11 14H21V18H11z","data-icon-path":"inner-path"})),n)}),iR=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iA);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tk||(tk=tY.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)}),iD=["children"],iL=["children"],iF=["children"],iz=["children"],iV=["children"],iZ=["children"],iI=["children"],iB=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iD);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tS||(tS=tY.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)}),iH=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iL);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t_||(t_=tY.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"})),tC||(tC=tY.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)}),iU=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iF);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tO||(tO=tY.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"})),tM||(tM=tY.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)}),iW=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iz);return tY.createElement(t2,tQ({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tT||(tT=tY.createElement("path",{d:"M22 17H24V19H22z"})),tA||(tA=tY.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)}),iq=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iV);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tP||(tP=tY.createElement("path",{d:"M22 17H24V19H22z"})),tN||(tN=tY.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)}),i$=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iZ);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tR||(tR=tY.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"})),tD||(tD=tY.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=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iI);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tL||(tL=tY.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"})),tF||(tF=tY.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)}),iY=["children"],iG=["children"],iX=["children"],iQ=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iY);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tz||(tz=tY.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"})),tV||(tV=tY.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)}),iJ=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iG);return tY.createElement(t2,tQ({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tZ||(tZ=tY.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)}),i0=tY.forwardRef(function(e,t){var n=e.children,r=tJ(e,iX);return tY.createElement(t2,tQ({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tI||(tI=tY.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"})),tB||(tB=tY.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"})),tH||(tH=tY.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)}),i1=n(52322);function i2(e){let{size:t=24}=e;return(0,i1.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,i1.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 i4(e){let{size:t=24}=e;return(0,i1.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,i1.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 i3(e){let{size:t=24,className:n}=e;return(0,i1.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,i1.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 i5(e){let{size:t=24,className:n}=e;return(0,i1.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,i1.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 i6(e){let{size:t=24,className:n}=e;return(0,i1.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,i1.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 i8(e){let{size:t=24}=e;return(0,i1.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,i1.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 i7(e){let{size:t=24}=e;return(0,i1.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,i1.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 i9(e){let{size:t=24}=e;return(0,i1.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,i1.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 oe(e){let{size:t=24}=e;return(0,i1.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,width:t,fill:"currentColor",children:(0,i1.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 ot(e){let{size:t=24}=e;return(0,i1.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,i1.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 on(e){let{size:t=24}=e;return(0,i1.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,i1.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,i1.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,i1.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,i1.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,i1.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function or(e){let{size:t=24}=e;return(0,i1.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,i1.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"})})}},9969:function(e,t,n){"use strict";n.d(t,{pz:function(){return en},HI:function(){return o},Z7:function(){return K},Uy:function(){return Y},e$:function(){return ee},oe:function(){return et},S0:function(){return er},YX:function(){return Q},Bl:function(){return ei},D5:function(){return L},oV:function(){return F},sg:function(){return V},ol:function(){return z},B$:function(){return D},d_:function(){return a},DQ:function(){return s},cq:function(){return N},IK:function(){return R},GP:function(){return P},nH:function(){return l},$:function(){return k},s2:function(){return O},ni:function(){return M},uf:function(){return _},Os:function(){return T},FV:function(){return E},wy:function(){return I},xw:function(){return H},Jv:function(){return Z},p$:function(){return es},Iy:function(){return B},Q5:function(){return U},ZM:function(){return el},f$:function(){return ed},yu:function(){return W},KJ:function(){return q},og:function(){return G},Wl:function(){return d},cQ:function(){return c},ys:function(){return p},QL:function(){return h},Tu:function(){return m},aO:function(){return x},gU:function(){return g},a0:function(){return w},cg:function(){return y},Qq:function(){return v},RF:function(){return ec}});var r=n(79381),i=n(2850);let o="/bus/state";function a(e){return(0,i.Nf)({...e,route:o})}function s(e){return(0,i.Nf)({...e,route:"/bus/consensus/state"})}function l(){let e=a({config:{swr:{revalidateOnFocus:!1}}}),t=(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});return t.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(b))})}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 x(e){return(0,i.mw)({...e,route:"/bus/wallet/discard"})}let b="/bus/wallet/pending";function w(e){return(0,i.Nf)({...e,route:b})}let j="/bus/search/hosts";function E(e){return(0,i.q0)({...e,route:j})}function k(e){return(0,i.Nf)({...e,route:"/bus/host/:hostKey"})}let S="/bus/hosts/blocklist";function _(e){return(0,i.Nf)({...e,route:S})}let C="/bus/hosts/allowlist";function O(e){return(0,i.Nf)({...e,route:C})}function M(e){return(0,i.V1)({...e,route:"/bus/hosts/allowlist"},async e=>{e(e=>!![j,C,A].find(t=>e.startsWith(t)))})}function T(e){return(0,i.V1)({...e,route:"/bus/hosts/blocklist"},async e=>{e(e=>!![j,S,A].find(t=>e.startsWith(t)))})}let A="/bus/contracts";function P(e){return(0,i.Nf)({...e,route:A})}function N(e){return(0,i.Nf)({...e,route:"/bus/contract/:id"})}function R(e){return(0,i.iv)({...e,route:"/bus/contract/:id"},async e=>{e(e=>e.startsWith("/bus/contract"))})}function D(e){return(0,i.Nf)({...e,route:"/bus/buckets"})}function L(e){return(0,i.Nf)({...e,route:"/bus/bucket/:name"})}function F(e){return(0,i.mw)({...e,route:"/bus/buckets"},async e=>{e(e=>e.startsWith("/bus/buckets"))})}function z(e){return(0,i.V1)({...e,route:"/bus/bucket/:name/policy"},async e=>{e(e=>e.startsWith("/bus/bucket"))})}function V(e){return(0,i.iv)({...e,route:"/bus/bucket/:name"},async e=>{e(e=>e.startsWith("/bus/bucket"))})}function Z(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function I(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function B(e){return(0,i.Nf)({...e,route:"/bus/search/objects"})}function H(e){return(0,i.iv)({...e,route:"/bus/objects/:key"},async e=>{e(e=>e.startsWith("/bus/objects/"))})}function U(e){return(0,i.Nf)({...e,route:"/bus/stats/objects"})}function W(e){return(0,i.Nf)({...e,route:"/bus/setting/:key"})}function q(e){return(0,i.V1)({...e,route:"/bus/setting/:key"},async(e,t)=>{e(e=>e.startsWith("/bus/setting/".concat(t.params.key)))})}let $="/bus/alerts";function K(e){return(0,i.Nf)({...e,route:$})}function Y(e){return(0,i.mw)({...e,route:"/bus/alerts/dismiss"},async e=>{e(e=>e.startsWith($))})}function G(e){return(0,i.Nf)({...e,route:"/bus/slab/:key/objects"})}let X="/autopilot/state";function Q(e){return(0,i.Nf)({...e,route:X})}let J="/autopilot/config";function ee(e){return(0,i.Nf)({...e,route:J})}function et(e){return(0,i.V1)({...e,route:J},async e=>{e(e=>e===J);let t=async()=>{await (0,i.gw)(1e3),e(e=>e===X)};t()})}let en="/autopilot/hosts";function er(e){return(0,i.q0)({...e,route:en})}function ei(e){return(0,i.mw)({...e,route:"/autopilot/trigger"})}var eo=n(54073),ea=n.n(eo);function es(e){return(0,i.rB)({...e,route:"/worker/objects/:key"})}function el(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"))})}let eu=ea()(e=>e(),5e3),ec="/worker/rhp/scan";function ed(e){return(0,i.mw)({...e,route:ec},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),eu(()=>{e(e=>e.startsWith("/autopilot/hosts")||e.startsWith("/bus/search/hosts"),e=>e,!0)})})}},47025:function(e,t,n){"use strict";n.d(t,{BW:function(){return s},JL:function(){return o},BF:function(){return a}});var r=n(2850);let i="https://api.siacentral.com/v2";function o(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 a(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})}n(98537)},96206:function(e,t,n){"use strict";n.d(t,{vW:function(){return o},rN:function(){return s},yF:function(){return a},Vz:function(){return f},qN:function(){return c},ll:function(){return u}}),n(81395),n(18149);var r=n(6391),i=n.n(r);function o(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)),a=n/Math.pow(1e3,o);return a.toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function a(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 s(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}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:o}={...d,...t},a=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(a).isLessThan(1))return o?"".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(a.multipliedBy(t));if(i.isLessThan(s)||e===h.length-1)return"".concat(f).concat(i.toFormat(n)," ").concat(h[e])}return""}},2271: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)},26252: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)},55046: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 x},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(60587),o=n(58839),a=n(26252),s=n(4424),l=n(44673),u=n(75903),c=n(47067),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),t=(0,r.useMemo)(()=>e?new h(e):null,[e]);return t}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 e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],i=Array.isArray(r),o=i?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===r[2]||"oc"===r[2]);a?n[r[0]]=r[1].split("/"):i&&(n[r[0]]=r[1]),n=e(t,n)}return n}(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 x(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)},47067: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)},75903: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 s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=n(7552),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let r=Error(a);r.digest=a+";"+t+";"+e+";"+n;let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(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)},7552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let r=n(2271),i=(0,r.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)},4424: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)},23116: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}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(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)},25146: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(67858),("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)},80920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(43219),i=n(16794),o=i._(n(2784)),a=r._(n(28316)),s=r._(n(37412)),l=n(31918),u=n(97686),c=n(45802);n(84759);let d=n(54365),f=r._(n(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.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 m(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,onLoad:j,onError:E,...k}=e;return o.default.createElement("img",{...k,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(E&&(e.src=e.src),e.complete&&p(e,f,y,x,b,v))},[n,f,y,x,b,E,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,x,b,v)},onError:e=>{w(!0),"empty"!==f&&b(!0),E&&E(e)}})});function g(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||r||u.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:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,x]=(0,o.useState)(!1),[b,w]=(0,o.useState)(!1),{props:j,meta:E}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:b});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...j,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:x,setShowAltText:w,ref:t}),E.priority?o.default.createElement(g,{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)},13814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(43219),i=r._(n(2784)),o=n(31068),a=n(33134),s=n(39585),l=n(51570),u=n(19868),c=n(54365),d=n(60587),f=n(93629),h=n(25146),p=n(10694),m=n(23116),v=new Set;function g(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:x,prefetch:b=null,passHref:w,replace:j,shallow:E,scroll:k,locale:S,onClick:_,onMouseEnter:C,onTouchStart:O,legacyBehavior:M=!1,...T}=e;n=x,M&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let A=i.default.useContext(c.RouterContext),P=i.default.useContext(d.AppRouterContext),N=null!=A?A:P,R=!A,D=!1!==b,L=null===b?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:F,as:z}=i.default.useMemo(()=>{if(!A){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(A,s,!0);return{href:e,as:v?(0,o.resolveHref)(A,v):t||e}},[A,s,v]),V=i.default.useRef(F),Z=i.default.useRef(z);M&&(r=i.default.Children.only(n));let I=M?r&&"object"==typeof r&&r.ref:t,[B,H,U]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(Z.current!==z||V.current!==F)&&(U(),Z.current=z,V.current=F),B(e),I&&("function"==typeof I?I(e):"object"==typeof I&&(I.current=e))},[z,I,F,U,B]);i.default.useEffect(()=>{N&&H&&D&&g(N,F,z,{locale:S},{kind:L},R)},[z,F,H,S,D,null==A?void 0:A.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof _||_(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,F,z,j,E,k,S,R,D)},onMouseEnter(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(D||!R)&&g(N,F,z,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(D||!R)&&g(N,F,z,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,l.isAbsoluteUrl)(z))q.href=z;else if(!M||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,h.getDomainLocale)(z,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(z,e,null==A?void 0:A.defaultLocale))}return M?i.default.cloneElement(r,q):i.default.createElement("a",{...T,...q},n)}),b=x;("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)},93629: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(30857),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},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let r=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,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,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});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]);let p=(0,r.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("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)},22698: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 a},default:function(){return s}});let r=n(43219),i=(n(2784),r._(n(94780)));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let 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}),r={...r,...t};let s=r.loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,a(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)},31918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(84759);let r=n(69933),i=n(97686);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:x=!1,style:b,onLoad:w,onLoadingComplete:j,placeholder:E="empty",blurDataURL:k,fetchPriority:S,layout:_,objectFit:C,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 F=A.loader||D;delete A.loader,delete A.srcSet;let z="__next_img_default"in F;if(z){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=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(_){"fill"===_&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[_];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,!x){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),z&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=a(v),U=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:O}:{},N?{}:{color:"transparent"},b),W=R||"empty"===E?null:"blur"===E?'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("'+E+'")',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"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,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:F}),K={...A,loading:B?"lazy":p,fetchPriority:S,width:Z,height:I,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},Y={unoptimized:f,priority:h,placeholder:E,fill:x};return{props:K,meta:Y}}},69933: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}})},81963: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,{default:function(){return u},unstable_getImgProps:function(){return l}});let r=n(43219),i=n(31918),o=n(84759),a=n(80920),s=r._(n(2088)),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},2088: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},49306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let r=n(43219),i=r._(n(2784)),o=i.default.createContext(null)},94780: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 @@ -76,7 +76,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 h}});let r=n(43219),i=r._(n(2784)),o=n(49306),a=[],s=[],l=!1;function u(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 c{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 d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function a(){if(!r){let t=new c(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&s.push(t=>{for(let n of e)if(t.includes(n))return a()})}function u(e,t){!function(){a();let e=i.default.useContext(o.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=i.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),i.default.useMemo(()=>{var t;return s.loading||s.error?i.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:r.retry}):s.loaded?i.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return u.preload=()=>a(),u.displayName="LoadableComponent",i.default.forwardRef(u)}(u,e)}function f(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return f(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{f(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());f(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},72190:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePagePath",{enumerable:!0,get:function(){return a}});let r=n(95523),i=n(17428),o=n(51570);function a(e){let t=/^\/index(\/|$)/.test(e)&&!(0,i.isDynamicRoute)(e)?"/index"+e:"/"===e?"/index":(0,r.ensureLeadingSlash)(e);{let{posix:e}=n(15153),r=e.normalize(t);if(r!==t)throw new o.NormalizeError("Requested and resolved page mismatch: "+t+" "+r)}return t}},44673: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 o},useServerInsertedHTML:function(){return a}});let r=n(16794),i=r._(n(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},276:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},35957:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},15153:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));return(i=n(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){r=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(114);e.exports=i}()},16549:function(e,t){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return i}});let n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=(e,t)=>{let n=e;return"string"==typeof t?n=e.toLocaleString(t):!0===t&&(n=e.toLocaleString()),n};function i(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);if((t=Object.assign({},t)).signed&&0===e)return" 0 B";let i=e<0,o=i?"-":t.signed?"+":"";if(i&&(e=-e),e<1){let n=r(e,t.locale);return o+n+" B"}let a=Math.min(Math.floor(Math.log10(e)/3),n.length-1);e=Number((e/Math.pow(1e3,a)).toPrecision(3));let s=r(e,t.locale),l=n[a];return o+s+" "+l}},95383:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPageFiles",{enumerable:!0,get:function(){return o}});let r=n(7005),i=n(72190);function o(e,t){let n=(0,r.denormalizePagePath)((0,i.normalizePagePath)(t));return e.pages[n]||(console.warn(`Could not find files for ${n} in .next/build-manifest.json`),[])}},82809: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,{ESCAPE_REGEX:function(){return r},htmlEscapeJsonString:function(){return i}});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g;function i(e){return e.replace(r,e=>n[e])}},79505: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,{isBlockedPage:function(){return i},cleanAmpPath:function(){return o},debounce:function(){return a}});let r=n(13150);function i(e){return r.BLOCKED_PAGES.includes(e)}function o(e){return e.match(/\?amp=(y|yes|true|1)/)&&(e=e.replace(/\?amp=(y|yes|true|1)&?/,"?")),e.match(/&=(y|yes|true|1)/)&&(e=e.replace(/&=(y|yes|true|1)/,"")),e=e.replace(/\?$/,"")}function a(e,t,n=1/0){let r,i,o;let a=0,s=0;function l(){let u=Date.now(),c=s+t-u;c<=0||a+n>=u?(r=void 0,e.apply(o,i)):r=setTimeout(l,c)}return function(...e){i=e,o=this,s=Date.now(),void 0===r&&(a=s,r=setTimeout(l,t))}}},331:function(e,t,n){n(31256)},25237:function(e,t,n){e.exports=n(22698)},97729:function(e,t,n){e.exports=n(37412)},96577:function(e,t,n){e.exports=n(81963)},39097:function(e,t,n){e.exports=n(13814)},82876:function(e,t,n){e.exports=n(55046)},5632:function(e,t,n){e.exports=n(60222)},24470:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},34406: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;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,_(n)];if(e.sizen)return[!1,_(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 o=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,z)),o=i.open,a=K(i,V);return(0,r.useImperativeHandle)(t,function(){return{open:o}},[o]),r.createElement(r.Fragment,null,n(q(q({},a),{},{open:o})))});Y.displayName="Dropzone";var G={disabled:!1,getFilesFromEvent:function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,a.mG)(this,void 0,void 0,function(){var n;return(0,a.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,a.ev)((0,a.ev)([],(0,a.CR)(t),!1),(0,a.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,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return l(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Y.defaultProps=G,Y.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};var X={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({},G),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=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,x=t.useFsAccessApi,E=t.autoFocus,k=t.preventDropOnDocument,S=t.noClick,_=t.noKeyboard,C=t.noDrag,z=t.noDragEventsBubbling,V=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)||F(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(F)||(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 b(b({},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),eo=B((0,r.useReducer)(Q,X),2),ea=eo[0],es=eo[1],el=ea.isFocused,eu=ea.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&x&&"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 k&&(document.addEventListener("dragover",R,!1),document.addEventListener("drop",eh,!1)),function(){k&&(document.removeEventListener("dragover",R),document.removeEventListener("drop",eh))}},[er,k]),(0,r.useEffect)(function(){return!i&&E&&er.current&&er.current.focus(),function(){}},[er,E,i]);var ep=(0,r.useCallback)(function(e){V?V(e):console.error(e)},[V]),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(o(e)).then(function(t){if(!P(e)||z){var n,r,i,o,d,f,h,p,m=t.length,v=m>0&&(r=(n={files:t,accept:Y,minSize:s,maxSize:a,multiple:l,maxFiles:u,validator:W}).files,i=n.accept,o=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,o,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)})},[o,c,ep,z,Y,s,a,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,z]),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,z]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=B(M(e,Y),2),i=t[0],o=t[1],l=B(T(e,s,a),2),u=l[0],c=l[1],d=W?W(e):null;if(i&&u&&!d)n.push(e);else{var f=[o,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,a,u,h,p,m,W]),ex=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e),ef.current=[],N(e)&&Promise.resolve(o(e)).then(function(t){(!P(e)||z)&&ey(t,e)}).catch(function(e){return ep(e)}),es({type:"reset"})},[o,ey,ep,z]),eb=(0,r.useCallback)(function(){if(ec.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:l,types:J}).then(function(e){return o(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,x,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(),eb())},[er,eb]),ej=(0,r.useCallback)(function(){es({type:"focus"})},[]),eE=(0,r.useCallback)(function(){es({type:"blur"})},[]),ek=(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(eb,0):eb())},[S,eb]),eS=function(e){return i?null:e},e_=function(e){return _?null:eS(e)},eC=function(e){return C?null:eS(e)},eO=function(e){z&&e.stopPropagation()},eM=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,d=e.onDragLeave,f=e.onDrop,h=K(e,I);return q(q($({onKeyDown:e_(D(o,ew)),onFocus:e_(D(a,ej)),onBlur:e_(D(s,eE)),onClick:eS(D(l,ek)),onDragEnter:eC(D(u,em)),onDragOver:eC(D(c,ev)),onDragLeave:eC(D(d,eg)),onDrop:eC(D(f,ex)),role:"string"==typeof r&&""!==r?r:"presentation"},n,er),i||_?{}:{tabIndex:0}),h)}},[er,ew,ej,eE,ek,em,ev,eg,ex,_,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=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=K(e,Z);return q(q({},$({accept:Y,multiple:l,type:"file",style:{display:"none"},onChange:eS(D(r,ex)),onClick:eS(D(i,eT)),tabIndex:-1},n,ei)),o)}},[ei,n,l,ex,i]);return q(q({},ea),{},{isFocused:el&&!i,getRootProps:eM,getInputProps:eA,rootRef:er,inputRef:ei,open:eS(eb)})}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({},X),{},{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({},X);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,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c=t(o),d=t(a);if(c&&d){if((l=o.length)!=a.length)return!1;for(s=l;0!=s--;)if(!e(o[s],a[s]))return!1;return!0}if(c!=d)return!1;var f=o instanceof Date,h=a instanceof Date;if(f!=h)return!1;if(f&&h)return o.getTime()==a.getTime();var p=o instanceof RegExp,m=a instanceof RegExp;if(p!=m)return!1;if(p&&m)return o.toString()==a.toString();var v=n(o);if((l=v.length)!==n(a).length)return!1;for(s=l;0!=s--;)if(!r.call(a,v[s]))return!1;if(i&&o instanceof Element&&a instanceof Element)return o===a;for(s=l;0!=s--;)if(("_owner"!==(u=v[s])||!o.$$typeof)&&!e(o[u],a[u]))return!1;return!0}return o!=o&&a!=a}(e,o)}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=o(n(13980)),i=o(n(2784));function o(e){return e&&e.__esModule?e:{default:e}}var a={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,o=e.transformY;return i.default.createElement("path",{d:t,fill:n,transform:"matrix("+[1,0,0,1,r,o]+")"})};s.propTypes=a,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 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,x=e.sideCar,b=e.noIsolation,w=e.inert,j=e.allowPinchZoom,E=e.as,k=void 0===E?"div":E,S=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=(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),C=(0,u.pi)((0,u.pi)({},S),s);return c.createElement(c.Fragment,null,g&&c.createElement(x,{sideCar:h,removeScrollBar:v,shards:y,noIsolation:b,inert:w,setCallbacks:l,allowPinchZoom:!!j,lockRef:o}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},C),{ref:_})):c.createElement(k,(0,u.pi)({},C,{className:m,ref:_}),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])}},x=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},b={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)]},E=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;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])}},k=x(),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")},_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=c.useMemo(function(){return E(i)},[i]);return c.createElement(k,{styles:S(o,!t,i,n?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){C=!1}var M=!!C&&{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 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]},F=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},V=0,I=[],Z=(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 x()})[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(z),!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(I.length&&I[I.length-1]===o){var n="deltaY"in e?F(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(z).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,F(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 I.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(){I=I.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(_,{gapMode:"margin"}):null)}),v),B=c.forwardRef(function(e,t){return c.createElement(m,(0,u.pi)({},e,{ref:t,sideCar:Z}))});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(34406);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";/** +*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=n(43219),i=r._(n(2784)),o=n(49306),a=[],s=[],l=!1;function u(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 c{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 d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function a(){if(!r){let t=new c(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&s.push(t=>{for(let n of e)if(t.includes(n))return a()})}function u(e,t){!function(){a();let e=i.default.useContext(o.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=i.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),i.default.useMemo(()=>{var t;return s.loading||s.error?i.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:r.retry}):s.loaded?i.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return u.preload=()=>a(),u.displayName="LoadableComponent",i.default.forwardRef(u)}(u,e)}function f(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return f(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{f(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());f(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},44673: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 o},useServerInsertedHTML:function(){return a}});let r=n(16794),i=r._(n(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},49854:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},1240:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},25237:function(e,t,n){e.exports=n(22698)},97729:function(e,t,n){e.exports=n(37412)},96577:function(e,t,n){e.exports=n(81963)},39097:function(e,t,n){e.exports=n(13814)},82876:function(e,t,n){e.exports=n(55046)},5632:function(e,t,n){e.exports=n(60222)},24470:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},34406: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;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,_(n)];if(e.sizen)return[!1,_(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 o=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,z)),o=i.open,a=K(i,V);return(0,r.useImperativeHandle)(t,function(){return{open:o}},[o]),r.createElement(r.Fragment,null,n(q(q({},a),{},{open:o})))});Y.displayName="Dropzone";var G={disabled:!1,getFilesFromEvent:function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,a.mG)(this,void 0,void 0,function(){var n;return(0,a.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,a.ev)((0,a.ev)([],(0,a.CR)(t),!1),(0,a.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,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return l(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Y.defaultProps=G,Y.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};var X={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({},G),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=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,x=t.useFsAccessApi,E=t.autoFocus,k=t.preventDropOnDocument,S=t.noClick,_=t.noKeyboard,C=t.noDrag,z=t.noDragEventsBubbling,V=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)||F(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(F)||(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 b(b({},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),eo=B((0,r.useReducer)(J,X),2),ea=eo[0],es=eo[1],el=ea.isFocused,eu=ea.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&x&&"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 k&&(document.addEventListener("dragover",R,!1),document.addEventListener("drop",eh,!1)),function(){k&&(document.removeEventListener("dragover",R),document.removeEventListener("drop",eh))}},[er,k]),(0,r.useEffect)(function(){return!i&&E&&er.current&&er.current.focus(),function(){}},[er,E,i]);var ep=(0,r.useCallback)(function(e){V?V(e):console.error(e)},[V]),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(o(e)).then(function(t){if(!P(e)||z){var n,r,i,o,d,f,h,p,m=t.length,v=m>0&&(r=(n={files:t,accept:Y,minSize:s,maxSize:a,multiple:l,maxFiles:u,validator:W}).files,i=n.accept,o=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,o,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)})},[o,c,ep,z,Y,s,a,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,z]),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,z]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=B(M(e,Y),2),i=t[0],o=t[1],l=B(T(e,s,a),2),u=l[0],c=l[1],d=W?W(e):null;if(i&&u&&!d)n.push(e);else{var f=[o,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,a,u,h,p,m,W]),ex=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e),ef.current=[],N(e)&&Promise.resolve(o(e)).then(function(t){(!P(e)||z)&&ey(t,e)}).catch(function(e){return ep(e)}),es({type:"reset"})},[o,ey,ep,z]),eb=(0,r.useCallback)(function(){if(ec.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:l,types:Q}).then(function(e){return o(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,x,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(),eb())},[er,eb]),ej=(0,r.useCallback)(function(){es({type:"focus"})},[]),eE=(0,r.useCallback)(function(){es({type:"blur"})},[]),ek=(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(eb,0):eb())},[S,eb]),eS=function(e){return i?null:e},e_=function(e){return _?null:eS(e)},eC=function(e){return C?null:eS(e)},eO=function(e){z&&e.stopPropagation()},eM=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,d=e.onDragLeave,f=e.onDrop,h=K(e,Z);return q(q($({onKeyDown:e_(D(o,ew)),onFocus:e_(D(a,ej)),onBlur:e_(D(s,eE)),onClick:eS(D(l,ek)),onDragEnter:eC(D(u,em)),onDragOver:eC(D(c,ev)),onDragLeave:eC(D(d,eg)),onDrop:eC(D(f,ex)),role:"string"==typeof r&&""!==r?r:"presentation"},n,er),i||_?{}:{tabIndex:0}),h)}},[er,ew,ej,eE,ek,em,ev,eg,ex,_,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=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=K(e,I);return q(q({},$({accept:Y,multiple:l,type:"file",style:{display:"none"},onChange:eS(D(r,ex)),onClick:eS(D(i,eT)),tabIndex:-1},n,ei)),o)}},[ei,n,l,ex,i]);return q(q({},ea),{},{isFocused:el&&!i,getRootProps:eM,getInputProps:eA,rootRef:er,inputRef:ei,open:eS(eb)})}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({},X),{},{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({},X);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,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c=t(o),d=t(a);if(c&&d){if((l=o.length)!=a.length)return!1;for(s=l;0!=s--;)if(!e(o[s],a[s]))return!1;return!0}if(c!=d)return!1;var f=o instanceof Date,h=a instanceof Date;if(f!=h)return!1;if(f&&h)return o.getTime()==a.getTime();var p=o instanceof RegExp,m=a instanceof RegExp;if(p!=m)return!1;if(p&&m)return o.toString()==a.toString();var v=n(o);if((l=v.length)!==n(a).length)return!1;for(s=l;0!=s--;)if(!r.call(a,v[s]))return!1;if(i&&o instanceof Element&&a instanceof Element)return o===a;for(s=l;0!=s--;)if(("_owner"!==(u=v[s])||!o.$$typeof)&&!e(o[u],a[u]))return!1;return!0}return o!=o&&a!=a}(e,o)}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=o(n(13980)),i=o(n(2784));function o(e){return e&&e.__esModule?e:{default:e}}var a={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,o=e.transformY;return i.default.createElement("path",{d:t,fill:n,transform:"matrix("+[1,0,0,1,r,o]+")"})};s.propTypes=a,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 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,x=e.sideCar,b=e.noIsolation,w=e.inert,j=e.allowPinchZoom,E=e.as,k=void 0===E?"div":E,S=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=(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),C=(0,u.pi)((0,u.pi)({},S),s);return c.createElement(c.Fragment,null,g&&c.createElement(x,{sideCar:h,removeScrollBar:v,shards:y,noIsolation:b,inert:w,setCallbacks:l,allowPinchZoom:!!j,lockRef:o}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},C),{ref:_})):c.createElement(k,(0,u.pi)({},C,{className:m,ref:_}),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])}},x=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},b={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)]},E=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;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])}},k=x(),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")},_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=c.useMemo(function(){return E(i)},[i]);return c.createElement(k,{styles:S(o,!t,i,n?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){C=!1}var M=!!C&&{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 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]},F=function(e){return[e.deltaX,e.deltaY]},z=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 x()})[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(z),!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?F(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(z).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,F(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(_,{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(34406);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 * @@ -87,4 +87,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},o=r.useState,a=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=o({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]),a(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 K},Ry:function(){return em},Z_:function(){return W}});try{v=Map}catch(e){}try{g=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(v&&t instanceof v)return new Map(Array.from(t.entries()));if(g&&t instanceof g)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=n.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],n,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=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?"["+o.call(e)+"]":"RegExp"===r?a.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,o=`${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&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},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={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:d,string:f,number:h,date:p,object:m,array:{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"},boolean:{isValue:"${path} field must be ${value}"}});var v,g,y=n(93352),x=n.n(y),b=e=>e&&e.__isYupSchema__,w=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!x()(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,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return"function"==typeof a?a(n):n.concat(a.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(!b(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}};function j(e){return null==e?[]:[].concat(e)}function E(){return(E=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=[],j(e).forEach(e=>{S.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,S)}}let _=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function C(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,u=_(t),c=r.length,d=[];if(a=a||[],!c)return a.length?u(new S(a,o,l)):u(null,o);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 P.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=M()(N({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),n=new S(S.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let x=N({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(x,i,x)).then(e=>{S.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var b;if(r=f.call(x,i,x),"function"==typeof(null==(b=r)?void 0:b.then))throw Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}S.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}P.prototype.__isYupRef=!0;let D=e=>e.substr(0,e.length-1).substr(1);class L{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(P.isRef(n)?e(n):n),[])}add(e){P.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){P.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new L;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 F(){return(F=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=F({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=F({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r(F({},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=F({},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(F({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=c(e),o=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} -`+(o!==i?`result of cast: ${o}`:""))}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:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,F({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),C({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);C({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(F({},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(F({},t,{value:e}))._validate(e,F({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(S.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(S.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=R(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=j(e).map(e=>new P(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=R({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=R({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=R({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,r={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)};return r}}for(let e of(z.prototype.__isYupSchema__=!0,["validate","validateSync"]))z.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:o,schema:a}=function(e,t,n,r=n){let i,o,a;return t?((0,T.forEach)(t,(s,l,u)=>{let c=l?D(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: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return a[e](i&&i[o],F({},r,{parent:i,path:t}))};for(let e of["equals","is"])z.prototype[e]=z.prototype.oneOf;for(let e of["not","nope"])z.prototype[e]=z.prototype.notOneOf;z.prototype.optional=z.prototype.notRequired,z.prototype;var V=e=>null==e;let I=/^((([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,Z=/^((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,B=/^(?:[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,H=e=>V(e)||e===e.trim(),U=({}).toString();function W(){return new q}class q extends z{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===U?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 V(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 V(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 V(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=>V(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(I,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(Z,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(B,{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:H})}lowercase(e=f.lowercase){return this.transform(e=>V(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>V(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>V(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>V(e)||e===e.toUpperCase()})}}W.prototype=q.prototype;let $=e=>e!=+e;function K(){return new Y}class Y extends z{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&&!$(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return V(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 V(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 V(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=>V(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>V(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=>V(t)?t:Math[e](t))}}K.prototype=Y.prototype;var G=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let X=new Date(""),J=e=>"[object Date]"===Object.prototype.toString.call(e);function Q(){return new ee}class ee extends z{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=G.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||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))?X:new Date(e)})})}_typeCheck(e){return J(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(P.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 V(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 V(e)||e<=this.resolve(n)}})}}ee.INVALID_DATE=X,Q.prototype=ee.prototype,Q.INVALID_DATE=X;var et=n(57370),en=n.n(et),er=n(96009),ei=n.n(er),eo=n(19950),ea=n.n(eo),es=n(95159),el=n.n(es);function eu(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 ec(e){return(t,n)=>eu(e,t)-eu(e,n)}function ed(){return(ed=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eh=ec([]);class ep extends z{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eh,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 ef(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,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ed({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let n=i[e],a=x()(r,e);if(n){let i;let o=r[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!S.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!ef(u)){n(r[0]||null,u);return}a=a||u,C({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],ed({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[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=ed({},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 z&&t instanceof z&&(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=ec(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 o(e,t){let o=(0,T.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(let t in e)if(x()(e,t)){let n=e[t];r.add(t),P.isRef(n)&&n.isSibling?o(n.path,t):b(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return el().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,T.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return x()(i,e)&&(o=ed({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=m.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=m.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ea()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(ei())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function em(e){return new ep(e)}em.prototype=ep.prototype},44868:function(e,t,n){"use strict";var r,i,o=Object.create,a=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||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>x,AnimatedArray:()=>O,AnimatedObject:()=>C,AnimatedString:()=>E,AnimatedValue:()=>w,createHost:()=>V,getAnimated:()=>v,getAnimatedType:()=>A,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(a({},"__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(),x=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},b=n(6901),w=class extends x{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,b.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 b.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,b.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},j=n(6901),E=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,j.createInterpolator)({output:[e,e]})}static create(e){return new E(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()}},k=n(6901),S=n(6901),_={dependencies:null},C=class extends x{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){_.dependencies&&(0,S.hasFluidValue)(e)&&_.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},O=class extends C{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,k.isAnimatedString)(e)?E: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)?E:w}var P=n(6901),N=(i=null!=(r=n(2784))?o(u(r)):{},d(r&&r.__esModule?i:a(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 o;let a;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]=(o=r,a=new Set,_.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new C(o),_.dependencies=null,[o,a]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new F(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})})},F=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},z=Symbol.for("AnimatedComponent"),V=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new C(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=I(e)||"Anonymous";return(e=P.is.str(e)?o[e]||(o[e]=L(e,i)):e[z]||(e[z]=L(e,i))).displayName=`Animated(${t})`,e};return(0,P.eachProp)(e,(t,n)=>{P.is.arr(e)&&(n=I(t)),o[n]=o(t)}),{animated:o}},I=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,o=Object.create,a=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||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)a(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:()=>F,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>k,interpolate:()=>ts,to:()=>ta,update:()=>tu,useChain:()=>T,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eJ,useSpring:()=>ez,useSpringRef:()=>eZ,useSpringValue:()=>eH,useSprings:()=>eF,useTrail:()=>eW,useTransition:()=>eY}),e.exports=d(a({},"__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,x=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,b=e=>e,w=(e,t=b)=>{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"],E={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 k(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{E[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 _(e){for(let t in e)return!0;return!1}function C(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 o=e.current;if(o.length){let a=n*t[i];isNaN(a)?a=r:r=a,(0,p.each)(o,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+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),F={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}},z={...F.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},V=class{constructor(){this.velocity=0,Object.assign(this,z)}};function I(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 Z=[],B=class{constructor(){this.changed=!1,this.values=Z,this.toValues=null,this.fromValues=Z,this.config=new V,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,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),o.pause()):(o.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{o.start({...n,callId:e,cancel:c},a)}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 G(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()=>{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 o=new J,a=new Q;return(async()=>{if(W.Globals.skipAnimation)throw X(n),a.result=K(r,!1),d(a),a;h(o);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(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return X(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=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return W.is.fun(a)&&W.raf.batchedUpdates(()=>{a(m,r,r.item)}),m})():l}function X(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})}},eo=Symbol.for("SpringPhase"),ea=e=>(1&e[eo])>0,es=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,eu=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ec=(e,t)=>t?e[eo]|=4:e[eo]&=-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 ea(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:o}=r,a=(0,D.getPayload)(r.to);!a&&(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:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,o.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(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,r=o.clamp?0:o.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)&&(a=-a*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(o.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),a=((d=n+o.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=a,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=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(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 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()),X(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)||C(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return ea(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 o=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(o.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)(o.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:o,defaultProps:a,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=C(t.to),{config:m}=s,{decay:y,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(I(n={...n},t),t={...n,...t}),I(e,t),Object.assign(e,t),z)null==e[r]&&(e[r]=z[r]);let{frequency:r,damping:i}=e,{mass:o}=e;L.is.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,v(t.config,o),t.config!==a.config?v(a.config,o):void 0);let b=(0,D.getAnimated)(this);if(!b||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,o),j=w?d:this.get(),E=S(c),k=R.is.num(E)||R.is.arr(E)||(0,R.isAnimatedString)(E),_=!p&&(!k||g(a.immediate||t.immediate,o));if(h){let e=(0,D.getAnimatedType)(c);if(e!==b.constructor){if(_)b=this._set(E);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let O=b.constructor,M=(0,R.hasFluidValue)(c),T=!1;if(!M){let e=w||!ea(this)&&f;(h||e)&&(M=!(T=(0,R.isEqual)(S(j),E))),((0,R.isEqual)(s.immediate,_)||_)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,x)||(M=!0)}if(T&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=b.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:O==D.AnimatedString?[1]:(0,R.toArray)(E)),s.immediate==_||(s.immediate=_,_||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(a.onRest,r):s.onStart?.(r,this)})}w&&this._set(j),p?n(G(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&&k(r),o=(i||e).reverse,a=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!o||C(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ep(e){let{to:t,from:n}=e=k(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]!==x(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ex=n(6901),eb=["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];ex.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,ex.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),eE(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,ex.each)((0,ex.toArray)(t),t=>n[t].stop(!!e))}else X(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ex.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].pause())}return this}resume(e){if(ex.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].resume())}return this}each(e){(0,ex.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,ex.flush)(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&&(0,ex.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,ex.flush)(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)}ex.raf.onFrame(this._onFrame)}};function eE(e,t){return Promise.all(t.map(t=>ek(e,t))).then(t=>q(e,t))}async function ek(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=ex.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=ex.is.arr(i)||ex.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,ex.each)(eb,n=>{let r=t[n];if(ex.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,ex.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===x(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:ex.noop,resume:ex.noop,start(t,n){h?(X(d,e._lastAsyncId),n(Y(e))):(t.onRest=s,n(G(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=eh(t,a,i);if(n)return eM(e,[n]),ek(e,n,!0)}return l&&ex.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eS(e,t){let n={...e.springs};return t&&(0,ex.each)((0,ex.toArray)(t),e=>{ex.is.und(e.keys)&&(e=ep(e)),ex.is.obj(e.to)||(e={...e,to:void 0}),eO(n,e,e=>eC(e))}),e_(e,n),n}function e_(e,t){(0,ex.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ex.addFluidObserver)(t,e))})}function eC(e,t){let n=new ed;return n.key=e,t&&(0,ex.addFluidObserver)(n,t),n}function eO(e,t,n){t.keys&&(0,ex.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,ex.each)(t,t=>{eO(e.springs,t,t=>eC(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:o}=eR;return eT.createElement(o,{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 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(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 eF(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,[]),o=(0,P.useRef)(0),a=(0,N.useForceUpdate)(),s=(0,P.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{e_(e,n),s.queue.push(()=>{r(eE(e,t))}),a()}):eE(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&&_(h);(0,N.useIsomorphicLayoutEffect)(()=>{o.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 ez(e,t){let n=A.is.fun(e),[[r],i]=eF(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var eV=n(2784),eI=()=>eL(),eZ=()=>(0,eV.useState)(eI)[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,o,a=eF(e,(e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(a[1].current,(e,t)=>{let n=a[1].current[t+(i?1:-1)];if(M(e,o),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=o??a[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}},a}return a[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:o,trail:a=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):eG++})}return eK.is.und(n)?e:eK.is.fun(n)?e.map(n):(0,eK.toArray)(n)}(h,r?r():t,g),x=i&&m.current||[];(0,eK.useIsomorphicLayoutEffect)(()=>(0,eK.each)(x,({ctrl:e,item:t,key:n})=>{O(e,f),v(u,t,n)}));let b=[];if(g&&(0,eK.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),x.push(e)):~(t=b[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)}),b.length){let e=-1,{leave:n}=r?r():t;(0,eK.each)(b,(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(o)&&p.sort((e,t)=>o(e.item,t.item));let j=-a,E=(0,eK.useForceUpdate)(),S=w(t),C=new Map,T=(0,e$.useRef)(new Map),A=(0,e$.useRef)(!1);(0,eK.each)(p,(e,n)=>{let i=e.key,o=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){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)?k(f):{to:f}).config){let t=d||S.config;f.config=v(t,e.item,n,h)}j+=a;let x={...S,delay:p+j,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eK.is.und(x.from)){let i=r?r():t,o=eK.is.und(i.initial)||g?i.from:i.initial;x.from=v(o,e.item,n)}let{onResolve:b}=x;x.onResolve=e=>{v(b,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(E,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),l&&(A.current=!0),E())}};let w=eS(e.ctrl,x);"leave"===h&&l?T.current.set(e,{phase:h,springs:w,payload:x}):C.set(e,{phase:h,springs:w,payload:x})});let P=(0,e$.useContext)(eN),N=(0,eK.usePrev)(P),R=P!==N&&_(P);(0,eK.useIsomorphicLayoutEffect)(()=>{R&&(0,eK.each)(p,e=>{e.ctrl.start({default:P})})},[P]),(0,eK.each)(C,(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:C,({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}=C.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 eG=1,eX=n(6901),eJ=({container:e,...t}={})=>{let[n,r]=ez(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eX.useIsomorphicLayoutEffect)(()=>{let t=(0,eX.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,eX.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eQ=n(6901),e0=({container:e,...t})=>{let[n,r]=ez(()=>({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)(),o=e2.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=ez(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),r(!0),o?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]),o?[i,c]:[i,n]}function e5({children:e,...t}){return e(ez(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)&&to(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()),to(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(),to(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 to(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 ta=(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,o=Object.getOwnPropertyNames,a=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:()=>ex,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eY,each:()=>P,eachProp:()=>N,easings:()=>eE,flush:()=>D,flushCalls:()=>z,frameLoop:()=>K,getFluidObservers:()=>eO,getFluidValue:()=>eC,hasFluidValue:()=>e_,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>T,isAnimatedString:()=>eJ,isEqual:()=>A,isSSR:()=>V,noop:()=>O,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eP,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tx,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))a.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:()=>I,createStringInterpolator:()=>L,skipAnimation:()=>Z,to:()=>F,willAdvance:()=>B});var c=_(),d=e=>j(e,c),f=_();d.write=e=>j(e,f);var h=_();d.onStart=e=>j(e,h);var p=_();d.onFrame=e=>j(e,p);var m=_();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),b-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),b+=1,E(),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 x=-1,b=0,w=!1;function j(e,t){w?(t.delete(e),e(0)):(t.add(e),E())}function E(){x<0&&(x=0,"demand"!==d.frameLoop&&y(k))}function k(){~x&&(y(k),d.batchedUpdates(S))}function S(){let e=x,t=g(x=d.now());if(t&&(C(v.splice(0,t),e=>e.handler()),b-=t),!b){x=-1;return}h.flush(),c.flush(e?Math.min(64,x-e):16.667),p.flush(),f.flush(),m.flush()}function _(){let e=new Set,t=e;return{add(n){b+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(b-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,b-=t.size,C(t,t=>t(n)&&e.add(t)),b+=e.size,t=e)}}}function C(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,F,z=(e,...t)=>D(e,e=>e(...t)),V=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),I=null,Z=!1,B=O,H=e=>{e.to&&(F=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(I=e.colors),null!=e.skipAnimation&&(Z=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)):(G(e),d(J))},advance:J,sort(e){if($)d.onFrame(()=>K.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],U.clear()}};function Y(){U.forEach(G),U.clear(),d(J)}function G(e){W.includes(e)||X(e)}function X(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)),eo=RegExp("rgba"+er(et,et,et,et)),ea=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:I&&void 0!==I[e]?I[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.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=ea.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;return null===n?e:`rgba(${(4278190080&(n=n||0))>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`}var ex=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return ex({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return L(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)}},eb=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,eE={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)*eb),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*eb)+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)}},ek=Symbol.for("FluidValue.get"),eS=Symbol.for("FluidValue.observers"),e_=e=>!!(e&&e[ek]),eC=e=>e&&e[ek]?e[ek]():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,ek,t);function eN(e,t){if(e[ek]){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}),eF=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ez=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eV=RegExp(`(${eF.source})(%|[a-z]+)`,"i"),eI=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eZ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,n]=eH(e);if(!t||V())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&&eZ.test(n)?eB(n):n||e},eH=e=>{let t=eZ.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=I?RegExp(`(${Object.keys(I).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eC(e).replace(eZ,eB).replace(ez,ey).replace(eD,ey)),n=t.map(e=>e.match(eF).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=>ex({...e,output:t}));return e=>{let n=!eV.test(t[0])&&t.find(e=>eV.test(e))?.replace(eF,""),i=0;return t[0].replace(eF,()=>`${r[i++](e)}${n||""}`).replace(eI,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 eG=e$(console.warn);function eX(){eG(`${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)||!V()&&eZ.test(e)||e in(I||{}))}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)?.())}},to=n(2784);function ta(e){let t=(0,to.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=n(2784),tl=n(2784),tu=n(2784),tc=V()?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,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}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tx(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tb=n(2784),tw=()=>{let[e,t]=(0,tb.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,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))i.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,n){"use strict";var r,i,o=Object.defineProperty,a=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||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__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),x=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(x.forEach(n=>e[y(n,t)]=e[t]),e),g);var b=n(25447),w=n(6901),j=/^(matrix|translate|scale|rotate|skew)/,E=/^(translate)/,k=/^(rotate|skew)/,S=(e,t)=>w.is.num(e)&&0!==e?e+t:e,_=(e,t)=>w.is.arr(e)?e.every(e=>_(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,C=class extends b.AnimatedObject{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=>S(e,"px")).join(",")})`,_(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(j.test(t)){if(delete r[t],w.is.und(e))return;let n=E.test(t)?"px":k.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,_(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,_(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new O(i,o)),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]),[o,a]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+o,t=t&&a}),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:o,scrollLeft:a,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!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new C(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 o;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:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.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},[]);return i(e,l,c,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),o=n(40844),a='[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)=>o(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}})),o=O(()=>new Set),p=O(()=>new Map),v=O(()=>new Map),g=O(()=>new Set),y=_(e),{label:x,children:b,value:w,onValueChange:j,filter:E,shouldFilter:k,...S}=e,T=i.useId(),A=i.useId(),R=i.useId(),D=P();C(()=>{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,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)Z(),V(),D(1,I);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(a=(o=y.current).onValueChange)||a.call(o,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),F=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,z(t)),D(2,()=>{V(),L.emit()}))},item:(e,t)=>(o.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{Z(),V(),r.current.value||I(),L.emit()}),()=>{v.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{Z(),I(),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:x||e["aria-label"],listId:T,inputId:R,labelId:A}),[]);function z(e){var t;let n=(null==(t=y.current)?void 0:t.filter)??f;return e?n(e,r.current.search):0}function V(){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(`${a}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function I(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);L.setState("value",t||void 0)}function Z(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=z(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(a))?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),o=r[i+e];null!=(t=y.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&L.setState("value",o.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(a),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,a):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,a))?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)},G=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&&G(e);break;case"ArrowUp":G(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:F.inputId,id:F.labelId,style:N},x),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:F},b)))}),x=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(g),a=p(),s=_(e);C(()=>a.item(n,o),[]);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===a.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:x,...b}=e;return i.createElement("div",{ref:M([r,t]),...b,"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)}),b=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=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(a));C(()=>c.group(a),[]),A(a,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:a},r);return i.createElement("div",{ref:M([s,t]),...o,"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,o=i.useRef(null),a=T(e=>!e.search);return n||a?i.createElement("div",{ref:M([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),j=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v(),s=T(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&a.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:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),E=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),s=p();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.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([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),k=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,container:a,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:o},i.createElement(r.h_,{container:a},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:E,Item:x,Input:j,Group:b,Separator:w,Dialog:k,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,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function _(e){let t=i.useRef(e);return C(()=>{t.current=e}),t}var C=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(),o=p();return C(()=>{var i;let a=(()=>{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()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(d,a),r.current=a}),r}var P=()=>{let[e,t]=i.useState(),n=O(()=>new Map);return C(()=>{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 o}});var r=n(86801);function i(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function o(e){let t,n,o;function s(e,r,i=0,o=e.length){if(i>>1;0>n(e[t],r)?i=t+1:o=t}while(i(0,r.Z)(e(t),n),o=(t,n)=>e(t)-n):(t=e===r.Z||e===i?e:a,n=e,o=e),{left:s,center:function(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(i=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(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)=>a(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},x={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={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 o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==x.all&&(t._proxyFormState[o]=!r||x.all),n&&(n[o]=!0),e[o])});return i},j=e=>l(e)&&!Object.keys(e).length,E=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return j(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||x.all))},k=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,_=(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),C=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=C(t)?[t]:O(t),o=i.length,a=o-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===x.onSubmit,isOnBlur:e===x.onBlur,isOnChange:e===x.onChange,isOnAll:e===x.all,isOnTouch:e===x.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,F=e=>"function"==typeof e,z=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},V=e=>S(e),I=e=>"radio"===e.type,Z=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(V(e)||Array.isArray(e)&&e.every(V)||D(e)&&!e)return{type:n,message:V(e)?e:"",ref:t}}var K=e=>l(e)&&!Z(e)?e:{value:e,message:""},Y=async(e,t,n,r,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:x,valueAsNumber:w,mount:E,disabled:k}=e._f,_=g(t,x);if(!E||k)return{};let C=u?u[0]:s,O=e=>{r&&C.reportValidity&&(C.setCustomValidity(D(e)?"":e||""),C.reportValidity())},M={},A=I(s),P=i(s),N=(w||L(s))&&v(s.value)&&v(_)||z(s)&&""===s.value||""===_||Array.isArray(_)&&!_.length,R=T.bind(null,x,n,M),B=(e,t,n,r=b.maxLength,i=b.minLength)=>{let o=e?t:n;M[x]={type:e?r:i,message:o,ref:s,...R(e?r:i,o)}};if(o?!Array.isArray(_)||!_.length:c&&(!(A||P)&&(N||a(_))||D(_)&&!_||P&&!U(u).isValid||A&&!q(u).isValid)){let{value:e,message:t}=V(c)?{value:!!c,message:c}:K(c);if(e&&(M[x]={type:b.required,message:t,ref:C,...R(b.required,t)},!n))return O(t),M}if(!N&&(!a(h)||!a(p))){let e,t;let r=K(p),i=K(h);if(a(_)||isNaN(_)){let n=s.valueAsDate||new Date(_),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;S(r.value)&&_&&(e=a?o(_)>o(r.value):l?_>r.value:n>new Date(r.value)),S(i.value)&&_&&(t=a?o(_)r.value),a(i.value)||(t=n+e.value,i=!a(t.value)&&_.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return O(M[x].message),M}if(m&&!N&&S(_)){let{value:e,message:t}=K(m);if(Z(e)&&!_.match(e)&&(M[x]={type:b.pattern,message:t,ref:s,...R(b.pattern,t)},!n))return O(t),M}if(y){if(F(y)){let e=await y(_,t),r=$(e,C);if(r&&(M[x]={...r,...R(b.validate,r.message)},!n))return O(r.message),M}else if(l(y)){let e={};for(let r in y){if(!j(e)&&!n)break;let i=$(await y[r](_,t),C,r);i&&(e={...i,...R(r,i.message)},O(i.message),n&&(M[x]=e))}if(!j(e)&&(M[x]={ref:C,...e},!n))return M}}return O(!0),M};function G(e,t){let n=Array.isArray(t)?t:C(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=>a(e)||!s(e);function Q(e,t){if(J(e)||J(t))return e===t;if(o(e)&&o(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(o(n)&&o(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=>I(e)||i(e),en=e=>z(e)&&e.isConnected,er=e=>{for(let t in e)if(F(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])):a(e[n])||(t[n]=!0);return t}var eo=(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],a(n)?{}:n[i],r[i]):r[i]=!Q(t[i],n[i]);return r})(e,t,ei(t)),ea=(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:I(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(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:Z(e)?e.source:l(e)?Z(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||C(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};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&&G(e,t);let ep={mode:x.onSubmit,reValidateMode:x.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:F(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:F(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:F(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)||{},b=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},E={mount:new Set,unMount:new Set,array:new Set,watch:new Set},C=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},T={values:X(),array:X(),state:X()},V=e.resetOptions&&e.resetOptions.keepDirtyValues,I=P(r.mode),Z=P(r.reValidateMode),B=r.criteriaMode===x.all,H=e=>t=>{clearTimeout(C),C=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 o=g(b,e,v(n)?g(f,e):n);v(o)||r&&r.defaultChecked||t?M(b,e,t?o:es(i._f)):ex(e,o),w.mount&&U()}},K=(e,t,n,r,i)=>{let o=!1,a=!1,l={name:e};if(!n||r){O.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let n=Q(g(f,e),t);a=g(s.dirtyFields,e),n?G(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||O.dirtyFields&&!n!==a}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,o=o||O.touchedFields&&t!==n)}return o&&i&&T.state.next(l),o?l:{}},er=(t,r,i,o)=>{let a=g(s.errors,t),l=O.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(C),n=null,i?M(s.errors,t,i):G(s.errors,t)),(i?!Q(a,i):a)||!j(o)||l){let e={...o,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},T.state.next(e)}W(!1)},ei=async e=>r.resolver(b,r.context,el(e||E.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):G(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=E.array.has(e.name),a=await Y(o,b,B,r.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(n.valid=!1,t))break;t||(g(a,e.name)?i?R(s.errors,a,e.name):M(s.errors,e.name,a[e.name]):G(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(b,e,t),!Q(ek(),f)),ey=(e,t,n)=>_(e,E,{...w.mount?b:v(t)?f:S(e)?{[e]:t}:t},n,t),ex=(e,t,n={})=>{let r=g(c,e),o=t;if(r){let n=r._f;n&&(n.disabled||M(b,e,ea(t,n)),o=z(n.ref)&&a(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):L(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||T.values.next({name:e,values:{...b}})))}(n.shouldDirty||n.shouldTouch)&&K(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&eE(e)},eb=(e,t,n)=>{for(let r in t){let i=t[r],a=`${e}.${r}`,s=g(c,a);!E.array.has(e)&&J(i)&&(!s||s._f)||o(i)?ex(a,i,n):eb(a,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),o=E.array.has(e),l=p(n);M(b,e,l),o?(T.array.next({name:e,values:{...b}}),(O.isDirty||O.dirtyFields)&&r.shouldDirty&&T.state.next({name:e,dirtyFields:eo(f,b),isDirty:eg(e,l)})):!i||i._f||a(l)?ex(e,l,r):eb(e,l,r),N(e,E)&&T.state.next({...s}),T.values.next({name:e,values:{...b}}),w.mount||t()},ej=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!r.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,Z,I),m=N(i,E,h);M(b,i,f),h?(a._f.onBlur&&a._f.onBlur(e),n&&n(0)):a._f.onChange&&a._f.onChange(e);let v=K(i,f,h,!1),x=!j(v)||m;if(h||T.values.next({name:i,type:e.type,values:{...b}}),p)return O.isValid&&U(),x&&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(a,b,B,r.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(b,i,f))&&(l?d=!1:O.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&eE(a._f.deps),er(i,d,l,v))}},eE=async(e,t={})=>{let n,i;let o=k(e);if(W(!0),r.resolver){let t=await em(v(e)?e:o);n=j(t),i=e?!o.some(e=>g(t,e)):n}else e?((i=(await Promise.all(o.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?o:E.mount),i},ek=e=>{let t={...f,...w.mount?b:{}};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)}),e_=(e,t={})=>{for(let n of e?k(e):E.mount)E.mount.delete(n),E.array.delete(n),t.keepValue||(G(c,n),G(b,n)),t.keepError||G(s.errors,n),t.keepDirty||G(s.dirtyFields,n),t.keepTouched||G(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||G(f,n);T.values.next({values:{...b}}),T.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},eC=(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}}),E.mount.add(e),n?i&&M(b,e,t.disabled?void 0:g(b,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){eC(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...o?{refs:[...a.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(E.array,e)&&w.action)&&E.unMount.add(e)}}},eO=()=>r.shouldFocusError&&A(c,e=>e&&g(s.errors,e),E.mount),eM=(n,r={})=>{let i=n||f,o=p(i),a=n&&!j(n)?o:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||V)for(let e of E.mount)g(s.dirtyFields,e)?M(a,e,g(b,e)):ew(e,g(a,e));else{if(h&&v(n))for(let e of E.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(z(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}b=e.shouldUnregister?r.keepDefaultValues?p(f):{}:o,T.array.next({values:{...a}}),T.values.next({values:{...a}})}E={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?eo(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eT=(e,t)=>eM(F(e)?e(b):e,t);return{control:{register:eC,unregister:e_,getFieldState:eS,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of E.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&e_(e)}E.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(o&&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&&o&&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=eo(f,b)),T.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(b,e,t)},_getFieldArray:t=>m(g(w.mount?b:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>F(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 b},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return E},set _names(value){E=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:eE,register:eC,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(b);if(T.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);G(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)=>F(e)?T.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:ek,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||G(s.touchedFields,e),t.keepDirty||(G(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(G(s.errors,e),O.isValid&&U()),T.state.next({...s}))},clearErrors:e=>{e&&k(e).forEach(e=>G(s.errors,e)),T.state.next({errors:e?s.errors:{}})},unregister:e_,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=>{E(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 Z},kY:function(){return K}});var r,i=n(2784),o=n(43100);let a=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,x=(e,t)=>{let n=a.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]},b=new WeakMap,w=0,j=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=b.get(e))return t;if(t=++w+"~",b.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{E=!0,e()},n=()=>{E=!1};return k("online",t),k("offline",n),()=>{S("online",t),S("offline",n)}}},C=!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 F(...e){let[t,n,r,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.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[o]=N(n);if(!o)return;let[l,p]=x(t,o),[g,y,b]=a.get(t),w=g[o],j=()=>d&&(delete b[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return j();let E=r,k=D();y[o]=[k,0];let S=!f(u),_=l(),C=_.data,O=_._c,M=f(O)?C:O;if(S&&p({data:u=h(u)?u(M):u,_c:M}),h(E))try{E=E(M)}catch(e){i=e}if(E&&h(E.then)){if(E=await E.catch(e=>{i=e}),k!==y[o][0]){if(i)throw i;return E}i&&S&&m(i)&&(s=!0,p({data:E=M,_c:c}))}s&&!i&&(h(s)&&(E=s(E,M)),p({data:E,_c:c})),y[o][1]=D();let T=await j();if(p({_c:c}),i){if(v)throw i;return}return s?T:E}}let z=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},V=(e,t)=>{if(!a.has(e)){let n=p(_,t),r={},i=F.bind(c,e),o=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(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!O)){let t=n.initFocus(setTimeout.bind(c,z.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,z.bind(c,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[I,Z]=V(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(f(o)||!(a>o))&&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:I,mutate:Z,fallback:{}},{isOnline:()=>E,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:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=p(i,a))}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]=a.get(I),o=i[r];return o?(delete i[r],o):n(...e)});return e(t,i,r)}),G=(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 X={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=V(s(a.cache||I),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),T(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"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:b}=n,[w,j,E]=a.get(r),[k,S]=N(e),_=(0,i.useRef)(!1),A=(0,i.useRef)(!1),P=(0,i.useRef)(k),R=(0,i.useRef)(t),z=(0,i.useRef)(n),V=()=>z.current,I=()=>V().isVisible()&&V().isOnline(),[Z,B,H,U]=x(r,k),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[k]: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=!!k&&!!t&&(f(d)?!V().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=Z(),i=U(),o=n(r),a=r===i?o:n(i),s=o;return[()=>{let e=n(Z());return $(e,s)?s:s=e},()=>a]},[r,k]),Y=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(k,(t,n)=>{$(n,t)||e()}),[r,k]),K[0],K[1]),J=!_.current,Q=w[k]&&w[k].length>0,ee=Y.data,et=f(ee)?q:ee,en=Y.error,er=(0,i.useRef)(et),ei=b?f(ee)?er.current:ee:et,eo=(!Q||!!f(en))&&(J&&!f(d)?d:!V().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(k&&t&&J&&eo),es=f(Y.isValidating)?ea:Y.isValidating,el=f(Y.isLoading)?ea:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!k||!i||A.current||V().isPaused())return!1;let o=!0,a=e||{},l=!E[k]||!a.dedupe,u=()=>C?!A.current&&k===P.current&&_.current:k===P.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=E[k];e&&e[1]===r&&delete E[k]},v={isValidating:!0};f(Z().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(Z().data)&&setTimeout(()=>{o&&u()&&V().onLoadingSlow(k,n)},n.loadingTimeout),E[k]=[i(S),D()]),[t,r]=E[k],t=await t,l&&setTimeout(m,n.dedupingInterval),!E[k]||E[k][1]!==r)return l&&u()&&V().onDiscarded(k),!1;d.error=c;let e=j[k];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&V().onDiscarded(k),!1;let a=Z().data;d.data=s(a,t)?a:t,l&&u()&&V().onSuccess(t,k,n)}catch(n){m();let e=V(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,k,e),(!0===t||h(t)&&t(n))&&I()&&e.onErrorRetry(n,k,e,e=>{let t=w[k];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[k,r]),ec=(0,i.useCallback)((...e)=>F(r,P.current,...e),[]);if(T(()=>{R.current=t,z.current=n,f(ee)||(er.current=ee)}),T(()=>{if(!k)return;let e=eu.bind(c,X),t=0,n=G(k,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();V().revalidateOnFocus&&n>t&&I()&&(t=n+V().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)V().revalidateOnReconnect&&I()&&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=k,_.current=!0,B({_k:S}),eo&&(f(et)||O?e():M(e)),()=>{A.current=!0,n()}},[k]),T(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!Z().error&&(g||V().isVisible())&&(y||V().isOnline())?eu(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,k]),(0,i.useDebugValue)(ei),l&&f(et)&&k){if(!C&&O)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,z.current=n,A.current=!1,f(en)?eu(X):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,o]=$(e),a=H(t,o),s=r,{use:l}=a,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return a},_T:function(){return i},ev:function(){return l},mG:function(){return o},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 o(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())})}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=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:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,F({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),C({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);C({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(F({},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(F({},t,{value:e}))._validate(e,F({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(S.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(S.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=R(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=j(e).map(e=>new P(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=R({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=R({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=R({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,r={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)};return r}}for(let e of(z.prototype.__isYupSchema__=!0,["validate","validateSync"]))z.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:o,schema:a}=function(e,t,n,r=n){let i,o,a;return t?((0,T.forEach)(t,(s,l,u)=>{let c=l?D(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: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return a[e](i&&i[o],F({},r,{parent:i,path:t}))};for(let e of["equals","is"])z.prototype[e]=z.prototype.oneOf;for(let e of["not","nope"])z.prototype[e]=z.prototype.notOneOf;z.prototype.optional=z.prototype.notRequired,z.prototype;var V=e=>null==e;let Z=/^((([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,I=/^((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,B=/^(?:[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,H=e=>V(e)||e===e.trim(),U=({}).toString();function W(){return new q}class q extends z{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===U?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 V(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 V(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 V(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=>V(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(Z,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(I,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(B,{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:H})}lowercase(e=f.lowercase){return this.transform(e=>V(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>V(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>V(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>V(e)||e===e.toUpperCase()})}}W.prototype=q.prototype;let $=e=>e!=+e;function K(){return new Y}class Y extends z{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&&!$(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return V(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 V(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 V(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=>V(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>V(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=>V(t)?t:Math[e](t))}}K.prototype=Y.prototype;var G=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let X=new Date(""),Q=e=>"[object Date]"===Object.prototype.toString.call(e);function J(){return new ee}class ee extends z{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=G.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||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))?X:new Date(e)})})}_typeCheck(e){return Q(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(P.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 V(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 V(e)||e<=this.resolve(n)}})}}ee.INVALID_DATE=X,J.prototype=ee.prototype,J.INVALID_DATE=X;var et=n(57370),en=n.n(et),er=n(96009),ei=n.n(er),eo=n(19950),ea=n.n(eo),es=n(95159),el=n.n(es);function eu(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 ec(e){return(t,n)=>eu(e,t)-eu(e,n)}function ed(){return(ed=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eh=ec([]);class ep extends z{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eh,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 ef(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,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ed({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let n=i[e],a=x()(r,e);if(n){let i;let o=r[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!S.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!ef(u)){n(r[0]||null,u);return}a=a||u,C({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],ed({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[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=ed({},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 z&&t instanceof z&&(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=ec(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 o(e,t){let o=(0,T.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(let t in e)if(x()(e,t)){let n=e[t];r.add(t),P.isRef(n)&&n.isSibling?o(n.path,t):b(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return el().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,T.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return x()(i,e)&&(o=ed({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=m.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=m.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ea()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(ei())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function em(e){return new ep(e)}em.prototype=ep.prototype},44868:function(e,t,n){"use strict";var r,i,o=Object.create,a=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||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>x,AnimatedArray:()=>O,AnimatedObject:()=>C,AnimatedString:()=>E,AnimatedValue:()=>w,createHost:()=>V,getAnimated:()=>v,getAnimatedType:()=>A,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(a({},"__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(),x=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},b=n(6901),w=class extends x{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,b.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 b.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,b.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},j=n(6901),E=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,j.createInterpolator)({output:[e,e]})}static create(e){return new E(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()}},k=n(6901),S=n(6901),_={dependencies:null},C=class extends x{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){_.dependencies&&(0,S.hasFluidValue)(e)&&_.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},O=class extends C{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,k.isAnimatedString)(e)?E: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)?E:w}var P=n(6901),N=(i=null!=(r=n(2784))?o(u(r)):{},d(r&&r.__esModule?i:a(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 o;let a;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]=(o=r,a=new Set,_.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new C(o),_.dependencies=null,[o,a]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new F(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})})},F=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},z=Symbol.for("AnimatedComponent"),V=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new C(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=Z(e)||"Anonymous";return(e=P.is.str(e)?o[e]||(o[e]=L(e,i)):e[z]||(e[z]=L(e,i))).displayName=`Animated(${t})`,e};return(0,P.eachProp)(e,(t,n)=>{P.is.arr(e)&&(n=Z(t)),o[n]=o(t)}),{animated:o}},Z=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,o=Object.create,a=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||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)a(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:()=>F,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>k,interpolate:()=>ts,to:()=>ta,update:()=>tu,useChain:()=>T,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eQ,useSpring:()=>ez,useSpringRef:()=>eI,useSpringValue:()=>eH,useSprings:()=>eF,useTrail:()=>eW,useTransition:()=>eY}),e.exports=d(a({},"__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,x=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,b=e=>e,w=(e,t=b)=>{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"],E={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 k(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{E[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 _(e){for(let t in e)return!0;return!1}function C(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 o=e.current;if(o.length){let a=n*t[i];isNaN(a)?a=r:r=a,(0,p.each)(o,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+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),F={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}},z={...F.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},V=class{constructor(){this.velocity=0,Object.assign(this,z)}};function Z(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 V,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,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),o.pause()):(o.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{o.start({...n,callId:e,cancel:c},a)}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 G(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()=>{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 o=new Q,a=new J;return(async()=>{if(W.Globals.skipAnimation)throw X(n),a.result=K(r,!1),d(a),a;h(o);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(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return X(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=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return W.is.fun(a)&&W.raf.batchedUpdates(()=>{a(m,r,r.item)}),m})():l}function X(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})}},eo=Symbol.for("SpringPhase"),ea=e=>(1&e[eo])>0,es=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,eu=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ec=(e,t)=>t?e[eo]|=4:e[eo]&=-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 ea(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:o}=r,a=(0,D.getPayload)(r.to);!a&&(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:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,o.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(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,r=o.clamp?0:o.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)&&(a=-a*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(o.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),a=((d=n+o.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=a,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=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(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 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()),X(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)||C(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return ea(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 o=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(o.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)(o.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:o,defaultProps:a,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=C(t.to),{config:m}=s,{decay:y,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(Z(n={...n},t),t={...n,...t}),Z(e,t),Object.assign(e,t),z)null==e[r]&&(e[r]=z[r]);let{frequency:r,damping:i}=e,{mass:o}=e;L.is.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,v(t.config,o),t.config!==a.config?v(a.config,o):void 0);let b=(0,D.getAnimated)(this);if(!b||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,o),j=w?d:this.get(),E=S(c),k=R.is.num(E)||R.is.arr(E)||(0,R.isAnimatedString)(E),_=!p&&(!k||g(a.immediate||t.immediate,o));if(h){let e=(0,D.getAnimatedType)(c);if(e!==b.constructor){if(_)b=this._set(E);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let O=b.constructor,M=(0,R.hasFluidValue)(c),T=!1;if(!M){let e=w||!ea(this)&&f;(h||e)&&(M=!(T=(0,R.isEqual)(S(j),E))),((0,R.isEqual)(s.immediate,_)||_)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,x)||(M=!0)}if(T&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=b.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:O==D.AnimatedString?[1]:(0,R.toArray)(E)),s.immediate==_||(s.immediate=_,_||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(a.onRest,r):s.onStart?.(r,this)})}w&&this._set(j),p?n(G(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&&k(r),o=(i||e).reverse,a=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!o||C(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ep(e){let{to:t,from:n}=e=k(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]!==x(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ex=n(6901),eb=["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];ex.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,ex.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),eE(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,ex.each)((0,ex.toArray)(t),t=>n[t].stop(!!e))}else X(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ex.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].pause())}return this}resume(e){if(ex.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].resume())}return this}each(e){(0,ex.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,ex.flush)(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&&(0,ex.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,ex.flush)(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)}ex.raf.onFrame(this._onFrame)}};function eE(e,t){return Promise.all(t.map(t=>ek(e,t))).then(t=>q(e,t))}async function ek(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=ex.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=ex.is.arr(i)||ex.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,ex.each)(eb,n=>{let r=t[n];if(ex.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,ex.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===x(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:ex.noop,resume:ex.noop,start(t,n){h?(X(d,e._lastAsyncId),n(Y(e))):(t.onRest=s,n(G(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=eh(t,a,i);if(n)return eM(e,[n]),ek(e,n,!0)}return l&&ex.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eS(e,t){let n={...e.springs};return t&&(0,ex.each)((0,ex.toArray)(t),e=>{ex.is.und(e.keys)&&(e=ep(e)),ex.is.obj(e.to)||(e={...e,to:void 0}),eO(n,e,e=>eC(e))}),e_(e,n),n}function e_(e,t){(0,ex.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ex.addFluidObserver)(t,e))})}function eC(e,t){let n=new ed;return n.key=e,t&&(0,ex.addFluidObserver)(n,t),n}function eO(e,t,n){t.keys&&(0,ex.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,ex.each)(t,t=>{eO(e.springs,t,t=>eC(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:o}=eR;return eT.createElement(o,{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 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(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 eF(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,[]),o=(0,P.useRef)(0),a=(0,N.useForceUpdate)(),s=(0,P.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{e_(e,n),s.queue.push(()=>{r(eE(e,t))}),a()}):eE(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&&_(h);(0,N.useIsomorphicLayoutEffect)(()=>{o.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 ez(e,t){let n=A.is.fun(e),[[r],i]=eF(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var eV=n(2784),eZ=()=>eL(),eI=()=>(0,eV.useState)(eZ)[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,o,a=eF(e,(e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(a[1].current,(e,t)=>{let n=a[1].current[t+(i?1:-1)];if(M(e,o),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=o??a[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}},a}return a[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:o,trail:a=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):eG++})}return eK.is.und(n)?e:eK.is.fun(n)?e.map(n):(0,eK.toArray)(n)}(h,r?r():t,g),x=i&&m.current||[];(0,eK.useIsomorphicLayoutEffect)(()=>(0,eK.each)(x,({ctrl:e,item:t,key:n})=>{O(e,f),v(u,t,n)}));let b=[];if(g&&(0,eK.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),x.push(e)):~(t=b[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)}),b.length){let e=-1,{leave:n}=r?r():t;(0,eK.each)(b,(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(o)&&p.sort((e,t)=>o(e.item,t.item));let j=-a,E=(0,eK.useForceUpdate)(),S=w(t),C=new Map,T=(0,e$.useRef)(new Map),A=(0,e$.useRef)(!1);(0,eK.each)(p,(e,n)=>{let i=e.key,o=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){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)?k(f):{to:f}).config){let t=d||S.config;f.config=v(t,e.item,n,h)}j+=a;let x={...S,delay:p+j,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eK.is.und(x.from)){let i=r?r():t,o=eK.is.und(i.initial)||g?i.from:i.initial;x.from=v(o,e.item,n)}let{onResolve:b}=x;x.onResolve=e=>{v(b,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(E,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),l&&(A.current=!0),E())}};let w=eS(e.ctrl,x);"leave"===h&&l?T.current.set(e,{phase:h,springs:w,payload:x}):C.set(e,{phase:h,springs:w,payload:x})});let P=(0,e$.useContext)(eN),N=(0,eK.usePrev)(P),R=P!==N&&_(P);(0,eK.useIsomorphicLayoutEffect)(()=>{R&&(0,eK.each)(p,e=>{e.ctrl.start({default:P})})},[P]),(0,eK.each)(C,(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:C,({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}=C.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 eG=1,eX=n(6901),eQ=({container:e,...t}={})=>{let[n,r]=ez(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eX.useIsomorphicLayoutEffect)(()=>{let t=(0,eX.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,eX.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eJ=n(6901),e0=({container:e,...t})=>{let[n,r]=ez(()=>({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)(),o=e2.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=ez(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),r(!0),o?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]),o?[i,c]:[i,n]}function e5({children:e,...t}){return e(ez(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)&&to(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()),to(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(),to(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 to(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 ta=(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,o=Object.getOwnPropertyNames,a=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:()=>ex,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eY,each:()=>P,eachProp:()=>N,easings:()=>eE,flush:()=>D,flushCalls:()=>z,frameLoop:()=>K,getFluidObservers:()=>eO,getFluidValue:()=>eC,hasFluidValue:()=>e_,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>T,isAnimatedString:()=>eQ,isEqual:()=>A,isSSR:()=>V,noop:()=>O,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eP,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tx,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))a.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:()=>Z,createStringInterpolator:()=>L,skipAnimation:()=>I,to:()=>F,willAdvance:()=>B});var c=_(),d=e=>j(e,c),f=_();d.write=e=>j(e,f);var h=_();d.onStart=e=>j(e,h);var p=_();d.onFrame=e=>j(e,p);var m=_();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),b-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),b+=1,E(),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 x=-1,b=0,w=!1;function j(e,t){w?(t.delete(e),e(0)):(t.add(e),E())}function E(){x<0&&(x=0,"demand"!==d.frameLoop&&y(k))}function k(){~x&&(y(k),d.batchedUpdates(S))}function S(){let e=x,t=g(x=d.now());if(t&&(C(v.splice(0,t),e=>e.handler()),b-=t),!b){x=-1;return}h.flush(),c.flush(e?Math.min(64,x-e):16.667),p.flush(),f.flush(),m.flush()}function _(){let e=new Set,t=e;return{add(n){b+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(b-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,b-=t.size,C(t,t=>t(n)&&e.add(t)),b+=e.size,t=e)}}}function C(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,F,z=(e,...t)=>D(e,e=>e(...t)),V=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Z=null,I=!1,B=O,H=e=>{e.to&&(F=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(Z=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)):(G(e),d(Q))},advance:Q,sort(e){if($)d.onFrame(()=>K.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],U.clear()}};function Y(){U.forEach(G),U.clear(),d(Q)}function G(e){W.includes(e)||X(e)}function X(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)),eo=RegExp("rgba"+er(et,et,et,et)),ea=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:Z&&void 0!==Z[e]?Z[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.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=ea.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;return null===n?e:`rgba(${(4278190080&(n=n||0))>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`}var ex=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return ex({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return L(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)}},eb=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,eE={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)*eb),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*eb)+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)}},ek=Symbol.for("FluidValue.get"),eS=Symbol.for("FluidValue.observers"),e_=e=>!!(e&&e[ek]),eC=e=>e&&e[ek]?e[ek]():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,ek,t);function eN(e,t){if(e[ek]){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}),eF=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ez=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eV=RegExp(`(${eF.source})(%|[a-z]+)`,"i"),eZ=/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||V())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=Z?RegExp(`(${Object.keys(Z).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eC(e).replace(eI,eB).replace(ez,ey).replace(eD,ey)),n=t.map(e=>e.match(eF).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=>ex({...e,output:t}));return e=>{let n=!eV.test(t[0])&&t.find(e=>eV.test(e))?.replace(eF,""),i=0;return t[0].replace(eF,()=>`${r[i++](e)}${n||""}`).replace(eZ,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 eG=e$(console.warn);function eX(){eG(`${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)||!V()&&eI.test(e)||e in(Z||{}))}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)?.())}},to=n(2784);function ta(e){let t=(0,to.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=n(2784),tl=n(2784),tu=n(2784),tc=V()?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,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}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tx(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tb=n(2784),tw=()=>{let[e,t]=(0,tb.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,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))i.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,n){"use strict";var r,i,o=Object.defineProperty,a=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||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__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),x=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(x.forEach(n=>e[y(n,t)]=e[t]),e),g);var b=n(25447),w=n(6901),j=/^(matrix|translate|scale|rotate|skew)/,E=/^(translate)/,k=/^(rotate|skew)/,S=(e,t)=>w.is.num(e)&&0!==e?e+t:e,_=(e,t)=>w.is.arr(e)?e.every(e=>_(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,C=class extends b.AnimatedObject{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=>S(e,"px")).join(",")})`,_(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(j.test(t)){if(delete r[t],w.is.und(e))return;let n=E.test(t)?"px":k.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,_(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,_(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new O(i,o)),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]),[o,a]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+o,t=t&&a}),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:o,scrollLeft:a,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!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new C(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 o;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:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.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},[]);return i(e,l,c,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),o=n(40844),a='[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)=>o(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}})),o=O(()=>new Set),p=O(()=>new Map),v=O(()=>new Map),g=O(()=>new Set),y=_(e),{label:x,children:b,value:w,onValueChange:j,filter:E,shouldFilter:k,...S}=e,T=i.useId(),A=i.useId(),R=i.useId(),D=P();C(()=>{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,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)I(),V(),D(1,Z);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(a=(o=y.current).onValueChange)||a.call(o,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),F=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,z(t)),D(2,()=>{V(),L.emit()}))},item:(e,t)=>(o.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{I(),V(),r.current.value||Z(),L.emit()}),()=>{v.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{I(),Z(),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:x||e["aria-label"],listId:T,inputId:R,labelId:A}),[]);function z(e){var t;let n=(null==(t=y.current)?void 0:t.filter)??f;return e?n(e,r.current.search):0}function V(){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(`${a}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function Z(){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=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=z(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(a))?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),o=r[i+e];null!=(t=y.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&L.setState("value",o.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(a),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,a):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,a))?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)},G=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&&G(e);break;case"ArrowUp":G(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:F.inputId,id:F.labelId,style:N},x),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:F},b)))}),x=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(g),a=p(),s=_(e);C(()=>a.item(n,o),[]);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===a.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:x,...b}=e;return i.createElement("div",{ref:M([r,t]),...b,"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)}),b=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=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(a));C(()=>c.group(a),[]),A(a,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:a},r);return i.createElement("div",{ref:M([s,t]),...o,"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,o=i.useRef(null),a=T(e=>!e.search);return n||a?i.createElement("div",{ref:M([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),j=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v(),s=T(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&a.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:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),E=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),s=p();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.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([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),k=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,container:a,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:o},i.createElement(r.h_,{container:a},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:E,Item:x,Input:j,Group:b,Separator:w,Dialog:k,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,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function _(e){let t=i.useRef(e);return C(()=>{t.current=e}),t}var C=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(),o=p();return C(()=>{var i;let a=(()=>{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()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(d,a),r.current=a}),r}var P=()=>{let[e,t]=i.useState(),n=O(()=>new Map);return C(()=>{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 o}});var r=n(86801);function i(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function o(e){let t,n,o;function s(e,r,i=0,o=e.length){if(i>>1;0>n(e[t],r)?i=t+1:o=t}while(i(0,r.Z)(e(t),n),o=(t,n)=>e(t)-n):(t=e===r.Z||e===i?e:a,n=e,o=e),{left:s,center:function(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(i=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(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)=>a(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},x={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={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 o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==x.all&&(t._proxyFormState[o]=!r||x.all),n&&(n[o]=!0),e[o])});return i},j=e=>l(e)&&!Object.keys(e).length,E=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return j(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||x.all))},k=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,_=(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),C=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=C(t)?[t]:O(t),o=i.length,a=o-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===x.onSubmit,isOnBlur:e===x.onBlur,isOnChange:e===x.onChange,isOnAll:e===x.all,isOnTouch:e===x.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,F=e=>"function"==typeof e,z=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},V=e=>S(e),Z=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(V(e)||Array.isArray(e)&&e.every(V)||D(e)&&!e)return{type:n,message:V(e)?e:"",ref:t}}var K=e=>l(e)&&!I(e)?e:{value:e,message:""},Y=async(e,t,n,r,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:x,valueAsNumber:w,mount:E,disabled:k}=e._f,_=g(t,x);if(!E||k)return{};let C=u?u[0]:s,O=e=>{r&&C.reportValidity&&(C.setCustomValidity(D(e)?"":e||""),C.reportValidity())},M={},A=Z(s),P=i(s),N=(w||L(s))&&v(s.value)&&v(_)||z(s)&&""===s.value||""===_||Array.isArray(_)&&!_.length,R=T.bind(null,x,n,M),B=(e,t,n,r=b.maxLength,i=b.minLength)=>{let o=e?t:n;M[x]={type:e?r:i,message:o,ref:s,...R(e?r:i,o)}};if(o?!Array.isArray(_)||!_.length:c&&(!(A||P)&&(N||a(_))||D(_)&&!_||P&&!U(u).isValid||A&&!q(u).isValid)){let{value:e,message:t}=V(c)?{value:!!c,message:c}:K(c);if(e&&(M[x]={type:b.required,message:t,ref:C,...R(b.required,t)},!n))return O(t),M}if(!N&&(!a(h)||!a(p))){let e,t;let r=K(p),i=K(h);if(a(_)||isNaN(_)){let n=s.valueAsDate||new Date(_),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;S(r.value)&&_&&(e=a?o(_)>o(r.value):l?_>r.value:n>new Date(r.value)),S(i.value)&&_&&(t=a?o(_)r.value),a(i.value)||(t=n+e.value,i=!a(t.value)&&_.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return O(M[x].message),M}if(m&&!N&&S(_)){let{value:e,message:t}=K(m);if(I(e)&&!_.match(e)&&(M[x]={type:b.pattern,message:t,ref:s,...R(b.pattern,t)},!n))return O(t),M}if(y){if(F(y)){let e=await y(_,t),r=$(e,C);if(r&&(M[x]={...r,...R(b.validate,r.message)},!n))return O(r.message),M}else if(l(y)){let e={};for(let r in y){if(!j(e)&&!n)break;let i=$(await y[r](_,t),C,r);i&&(e={...i,...R(r,i.message)},O(i.message),n&&(M[x]=e))}if(!j(e)&&(M[x]={ref:C,...e},!n))return M}}return O(!0),M};function G(e,t){let n=Array.isArray(t)?t:C(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=>a(e)||!s(e);function J(e,t){if(Q(e)||Q(t))return e===t;if(o(e)&&o(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(o(n)&&o(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=>Z(e)||i(e),en=e=>z(e)&&e.isConnected,er=e=>{for(let t in e)if(F(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])):a(e[n])||(t[n]=!0);return t}var eo=(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],a(n)?{}:n[i],r[i]):r[i]=!J(t[i],n[i]);return r})(e,t,ei(t)),ea=(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:Z(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(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||C(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};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&&G(e,t);let ep={mode:x.onSubmit,reValidateMode:x.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:F(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:F(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:F(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)||{},b=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},E={mount:new Set,unMount:new Set,array:new Set,watch:new Set},C=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},T={values:X(),array:X(),state:X()},V=e.resetOptions&&e.resetOptions.keepDirtyValues,Z=P(r.mode),I=P(r.reValidateMode),B=r.criteriaMode===x.all,H=e=>t=>{clearTimeout(C),C=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 o=g(b,e,v(n)?g(f,e):n);v(o)||r&&r.defaultChecked||t?M(b,e,t?o:es(i._f)):ex(e,o),w.mount&&U()}},K=(e,t,n,r,i)=>{let o=!1,a=!1,l={name:e};if(!n||r){O.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let n=J(g(f,e),t);a=g(s.dirtyFields,e),n?G(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||O.dirtyFields&&!n!==a}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,o=o||O.touchedFields&&t!==n)}return o&&i&&T.state.next(l),o?l:{}},er=(t,r,i,o)=>{let a=g(s.errors,t),l=O.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(C),n=null,i?M(s.errors,t,i):G(s.errors,t)),(i?!J(a,i):a)||!j(o)||l){let e={...o,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},T.state.next(e)}W(!1)},ei=async e=>r.resolver(b,r.context,el(e||E.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):G(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=E.array.has(e.name),a=await Y(o,b,B,r.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(n.valid=!1,t))break;t||(g(a,e.name)?i?R(s.errors,a,e.name):M(s.errors,e.name,a[e.name]):G(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(b,e,t),!J(ek(),f)),ey=(e,t,n)=>_(e,E,{...w.mount?b:v(t)?f:S(e)?{[e]:t}:t},n,t),ex=(e,t,n={})=>{let r=g(c,e),o=t;if(r){let n=r._f;n&&(n.disabled||M(b,e,ea(t,n)),o=z(n.ref)&&a(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):L(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||T.values.next({name:e,values:{...b}})))}(n.shouldDirty||n.shouldTouch)&&K(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&eE(e)},eb=(e,t,n)=>{for(let r in t){let i=t[r],a=`${e}.${r}`,s=g(c,a);!E.array.has(e)&&Q(i)&&(!s||s._f)||o(i)?ex(a,i,n):eb(a,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),o=E.array.has(e),l=p(n);M(b,e,l),o?(T.array.next({name:e,values:{...b}}),(O.isDirty||O.dirtyFields)&&r.shouldDirty&&T.state.next({name:e,dirtyFields:eo(f,b),isDirty:eg(e,l)})):!i||i._f||a(l)?ex(e,l,r):eb(e,l,r),N(e,E)&&T.state.next({...s}),T.values.next({name:e,values:{...b}}),w.mount||t()},ej=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!r.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,I,Z),m=N(i,E,h);M(b,i,f),h?(a._f.onBlur&&a._f.onBlur(e),n&&n(0)):a._f.onChange&&a._f.onChange(e);let v=K(i,f,h,!1),x=!j(v)||m;if(h||T.values.next({name:i,type:e.type,values:{...b}}),p)return O.isValid&&U(),x&&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(a,b,B,r.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(b,i,f))&&(l?d=!1:O.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&eE(a._f.deps),er(i,d,l,v))}},eE=async(e,t={})=>{let n,i;let o=k(e);if(W(!0),r.resolver){let t=await em(v(e)?e:o);n=j(t),i=e?!o.some(e=>g(t,e)):n}else e?((i=(await Promise.all(o.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?o:E.mount),i},ek=e=>{let t={...f,...w.mount?b:{}};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)}),e_=(e,t={})=>{for(let n of e?k(e):E.mount)E.mount.delete(n),E.array.delete(n),t.keepValue||(G(c,n),G(b,n)),t.keepError||G(s.errors,n),t.keepDirty||G(s.dirtyFields,n),t.keepTouched||G(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||G(f,n);T.values.next({values:{...b}}),T.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},eC=(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}}),E.mount.add(e),n?i&&M(b,e,t.disabled?void 0:g(b,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){eC(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...o?{refs:[...a.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(E.array,e)&&w.action)&&E.unMount.add(e)}}},eO=()=>r.shouldFocusError&&A(c,e=>e&&g(s.errors,e),E.mount),eM=(n,r={})=>{let i=n||f,o=p(i),a=n&&!j(n)?o:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||V)for(let e of E.mount)g(s.dirtyFields,e)?M(a,e,g(b,e)):ew(e,g(a,e));else{if(h&&v(n))for(let e of E.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(z(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}b=e.shouldUnregister?r.keepDefaultValues?p(f):{}:o,T.array.next({values:{...a}}),T.values.next({values:{...a}})}E={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?eo(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eT=(e,t)=>eM(F(e)?e(b):e,t);return{control:{register:eC,unregister:e_,getFieldState:eS,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of E.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&e_(e)}E.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(o&&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&&o&&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=eo(f,b)),T.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(b,e,t)},_getFieldArray:t=>m(g(w.mount?b:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>F(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 b},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return E},set _names(value){E=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:eE,register:eC,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(b);if(T.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);G(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)=>F(e)?T.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:ek,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||G(s.touchedFields,e),t.keepDirty||(G(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(G(s.errors,e),O.isValid&&U()),T.state.next({...s}))},clearErrors:e=>{e&&k(e).forEach(e=>G(s.errors,e)),T.state.next({errors:e?s.errors:{}})},unregister:e_,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=>{E(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),o=n(43100);let a=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,x=(e,t)=>{let n=a.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]},b=new WeakMap,w=0,j=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=b.get(e))return t;if(t=++w+"~",b.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{E=!0,e()},n=()=>{E=!1};return k("online",t),k("offline",n),()=>{S("online",t),S("offline",n)}}},C=!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 F(...e){let[t,n,r,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.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[o]=N(n);if(!o)return;let[l,p]=x(t,o),[g,y,b]=a.get(t),w=g[o],j=()=>d&&(delete b[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return j();let E=r,k=D();y[o]=[k,0];let S=!f(u),_=l(),C=_.data,O=_._c,M=f(O)?C:O;if(S&&p({data:u=h(u)?u(M):u,_c:M}),h(E))try{E=E(M)}catch(e){i=e}if(E&&h(E.then)){if(E=await E.catch(e=>{i=e}),k!==y[o][0]){if(i)throw i;return E}i&&S&&m(i)&&(s=!0,p({data:E=M,_c:c}))}s&&!i&&(h(s)&&(E=s(E,M)),p({data:E,_c:c})),y[o][1]=D();let T=await j();if(p({_c:c}),i){if(v)throw i;return}return s?T:E}}let z=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},V=(e,t)=>{if(!a.has(e)){let n=p(_,t),r={},i=F.bind(c,e),o=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(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!O)){let t=n.initFocus(setTimeout.bind(c,z.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,z.bind(c,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[Z,I]=V(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(f(o)||!(a>o))&&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:Z,mutate:I,fallback:{}},{isOnline:()=>E,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:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=p(i,a))}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]=a.get(Z),o=i[r];return o?(delete i[r],o):n(...e)});return e(t,i,r)}),G=(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 X={dedupe:!0},Q=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=V(s(a.cache||Z),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),T(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"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:b}=n,[w,j,E]=a.get(r),[k,S]=N(e),_=(0,i.useRef)(!1),A=(0,i.useRef)(!1),P=(0,i.useRef)(k),R=(0,i.useRef)(t),z=(0,i.useRef)(n),V=()=>z.current,Z=()=>V().isVisible()&&V().isOnline(),[I,B,H,U]=x(r,k),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[k]: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=!!k&&!!t&&(f(d)?!V().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(),o=n(r),a=r===i?o:n(i),s=o;return[()=>{let e=n(I());return $(e,s)?s:s=e},()=>a]},[r,k]),Y=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(k,(t,n)=>{$(n,t)||e()}),[r,k]),K[0],K[1]),Q=!_.current,J=w[k]&&w[k].length>0,ee=Y.data,et=f(ee)?q:ee,en=Y.error,er=(0,i.useRef)(et),ei=b?f(ee)?er.current:ee:et,eo=(!J||!!f(en))&&(Q&&!f(d)?d:!V().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(k&&t&&Q&&eo),es=f(Y.isValidating)?ea:Y.isValidating,el=f(Y.isLoading)?ea:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!k||!i||A.current||V().isPaused())return!1;let o=!0,a=e||{},l=!E[k]||!a.dedupe,u=()=>C?!A.current&&k===P.current&&_.current:k===P.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=E[k];e&&e[1]===r&&delete E[k]},v={isValidating:!0};f(I().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(I().data)&&setTimeout(()=>{o&&u()&&V().onLoadingSlow(k,n)},n.loadingTimeout),E[k]=[i(S),D()]),[t,r]=E[k],t=await t,l&&setTimeout(m,n.dedupingInterval),!E[k]||E[k][1]!==r)return l&&u()&&V().onDiscarded(k),!1;d.error=c;let e=j[k];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&V().onDiscarded(k),!1;let a=I().data;d.data=s(a,t)?a:t,l&&u()&&V().onSuccess(t,k,n)}catch(n){m();let e=V(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,k,e),(!0===t||h(t)&&t(n))&&Z()&&e.onErrorRetry(n,k,e,e=>{let t=w[k];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[k,r]),ec=(0,i.useCallback)((...e)=>F(r,P.current,...e),[]);if(T(()=>{R.current=t,z.current=n,f(ee)||(er.current=ee)}),T(()=>{if(!k)return;let e=eu.bind(c,X),t=0,n=G(k,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();V().revalidateOnFocus&&n>t&&Z()&&(t=n+V().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)V().revalidateOnReconnect&&Z()&&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=k,_.current=!0,B({_k:S}),eo&&(f(et)||O?e():M(e)),()=>{A.current=!0,n()}},[k]),T(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!I().error&&(g||V().isVisible())&&(y||V().isOnline())?eu(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,k]),(0,i.useDebugValue)(ei),l&&f(et)&&k){if(!C&&O)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,z.current=n,A.current=!1,f(en)?eu(X):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,o]=$(e),a=H(t,o),s=r,{use:l}=a,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return a},_T:function(){return i},ev:function(){return l},mG:function(){return o},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 o(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())})}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;il("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.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)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(n=u.data)||void 0===n?void 0:n.address,type:"address"})]}),(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",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=x.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:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=x.data)||void 0===c?void 0:c.version})]})]})}function u(){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 t=(0,a.Tu)(),{isSynced:n}=(0,o.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(x,{}),banner:(0,s.jsx)(u,{}),connectivityRoute:l.h,isSynced:n,walletBalanceSc:t.data&&{spendable:new(c())(t.data.spendable),confirmed:new(c())(t.data.confirmed),unconfirmed:new(c())(t.data.unconfirmed)},...e})}},91930:function(e,t,n){"use strict";n.d(t,{e:function(){return d}});var s=n(52322),i=n(58121),a=n(88242),r=n(9969),c=n(82851),l=n(71930),o=n(83035);function d(){var e,t;let n=(0,r.Z7)(),{openDialog:d}=(0,o.Rh)(),x=!(null===(e=n.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(t=n.data)||void 0===t?void 0:t.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:l._.files.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:l._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,s.jsx)("div",{className:(0,c.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,s.jsx)(i.xvT,{size:"10",className:(0,c.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,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},60807:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return j}});var s=n(52322),i=n(58121),a=n(91930),r=n(71930),c=n(83035),l=n(89630),o=n(17286),d=n(96206),x=n(91641);function u(){let{autopilot:e}=(0,x.q)(),{canEstimate:t,estimatedSpendingPerMonth:n,estimatedSpendingPerTB:a,redundancyMultiplier:r,storageTB:c,showAdvanced:l}=(0,o.ZR)(),u=(0,i.fb0)({sc:n}),h=(0,i.fb0)({sc:a});return"on"!==e.status?null:t?(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"]})]}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(n),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,i.xf5)(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=n(88242);function f(){let{onSubmit:e,changeCount:t,shouldSyncDefaultContractSet:n,setShouldSyncDefaultContractSet:a,revalidateAndResetFormData:r,form:c}=(0,o.ZR)();return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!t&&(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"1 change":"".concat(t," changes")}),(0,s.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!t,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:n,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."})]})]})})]})]})}function v(){let{showAdvanced:e,setShowAdvanced:t}=(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=>t(e)}),(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function m(){let{openDialog:e}=(0,c.Rh)(),{form:t,fields:n}=(0,o.ZR)();return(0,s.jsx)(l.J,{title:"Configuration",routes:r._,nav:(0,s.jsx)(v,{}),sidenav:(0,s.jsx)(a.e,{}),stats:(0,s.jsx)(u,{}),actions:(0,s.jsx)(f,{}),openSettings:()=>e("settings"),children:(0,s.jsxs)("div",{className:"px-5 py-6 flex flex-col gap-16 max-w-screen-xl",children:[(0,s.jsx)(i.vRO,{title:"Storage",category:"storage",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Pricing",category:"gouging",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Hosts",category:"hosts",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Wallet",category:"wallet",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Contracts",category:"contractset",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Uploads",category:"uploadpacking",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Redundancy",category:"redundancy",fields:n,form:t})]})})}function j(){return(0,s.jsx)(m,{})}}},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/config-d8d148c599d1a047.js b/renterd/assets/_next/static/chunks/pages/config-d8d148c599d1a047.js deleted file mode 100644 index 5aac7373b..000000000 --- a/renterd/assets/_next/static/chunks/pages/config-d8d148c599d1a047.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{57344:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return n(60807)}])},89630:function(e,t,n){"use strict";n.d(t,{J:function(){return h}});var s=n(52322),i=n(80446),a=n(9969),c=n(6391),r=n.n(c),o=n(71930),l=n(25573),d=n(86450);function x(){var e,t,n,c,r;let{openDialog:o}=(0,d.Rh)(),x=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),f=(0,l.n)(),v=null===(e=x.data)||void 0===e?void 0:e.version,m="?"===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);return(0,s.jsxs)(i.HfT,{name:"renterd",peerCount:null===(t=h.data)||void 0===t?void 0:t.length,connectPeer:()=>o("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.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)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(n=u.data)||void 0===n?void 0:n.address,type:"address"})]}),(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",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(c=x.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:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=x.data)||void 0===r?void 0:r.version})]})]})}function u(){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 t=(0,a.Tu)(),{isSynced:n}=(0,l.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(x,{}),banner:(0,s.jsx)(u,{}),connectivityRoute:o.h,isSynced:n,walletBalanceSc:t.data&&{spendable:new(r())(t.data.spendable),confirmed:new(r())(t.data.confirmed),unconfirmed:new(r())(t.data.unconfirmed)},...e})}},91930:function(e,t,n){"use strict";n.d(t,{e:function(){return d}});var s=n(52322),i=n(80446),a=n(88242),c=n(9969),r=n(82851),o=n(71930),l=n(86450);function d(){var e,t;let n=(0,c.Z7)(),{openDialog:d}=(0,l.Rh)(),x=!(null===(e=n.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(t=n.data)||void 0===t?void 0:t.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:o._.files.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:o._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:o._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:o._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!u&&x&&(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")}),!!u&&!x&&(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:u.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},60807:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return j}});var s=n(52322),i=n(80446),a=n(91930),c=n(71930),r=n(86450),o=n(89630),l=n(17286),d=n(96206),x=n(91641);function u(){let{autopilot:e}=(0,x.q)(),{canEstimate:t,estimatedSpendingPerMonth:n,estimatedSpendingPerTB:a,redundancyMultiplier:c,storageTB:r,showAdvanced:o}=(0,l.ZR)(),u=(0,i.fb0)({sc:n}),h=(0,i.fb0)({sc:a});return"on"!==e.status?null:t?(0,s.jsxs)("div",{className:"flex gap-4",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",children:["per TB/month with ",c.toFixed(1),"x redundancy"]})]}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(n),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",children:["to store ",(0,d.vW)((0,i.xf5)(r).toNumber()),"/month with"," ",c.toFixed(1),"x redundancy"]})]})]}):(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:o?"Enter expected storage, period, and allowance values to estimate monthly spending.":"Enter expected storage and max price to estimate monthly spending."})}var h=n(88242);function f(){let{onSubmit:e,changeCount:t,shouldSyncDefaultContractSet:n,setShouldSyncDefaultContractSet:a,revalidateAndResetFormData:c,form:r}=(0,l.ZR)();return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!t&&(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"1 change":"".concat(t," changes")}),(0,s.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!t,onClick:c,children:(0,s.jsx)(h.Wet,{})}),(0,s.jsxs)(i.eQh,{children:[(0,s.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!r.formState.isDirty||r.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:n,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."})]})]})})]})]})}function v(){let{showAdvanced:e,setShowAdvanced:t}=(0,l.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=>t(e)}),(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function m(){let{openDialog:e}=(0,r.Rh)(),{form:t,fields:n}=(0,l.ZR)();return(0,s.jsx)(o.J,{title:"Configuration",routes:c._,nav:(0,s.jsx)(v,{}),sidenav:(0,s.jsx)(a.e,{}),stats:(0,s.jsx)(u,{}),actions:(0,s.jsx)(f,{}),openSettings:()=>e("settings"),children:(0,s.jsxs)("div",{className:"px-5 py-6 flex flex-col gap-16 max-w-screen-xl",children:[(0,s.jsx)(i.vRO,{title:"Storage",category:"storage",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Pricing",category:"gouging",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Hosts",category:"hosts",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Wallet",category:"wallet",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Contracts",category:"contractset",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Uploads",category:"uploadpacking",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Redundancy",category:"redundancy",fields:n,form:t})]})})}function j(){return(0,s.jsx)(m,{})}}},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-640dafa6a2a2d93c.js b/renterd/assets/_next/static/chunks/pages/contracts-e30e4c4643441459.js similarity index 96% rename from renterd/assets/_next/static/chunks/pages/contracts-640dafa6a2a2d93c.js rename to renterd/assets/_next/static/chunks/pages/contracts-e30e4c4643441459.js index ac37044ab..516894a5d 100644 --- a/renterd/assets/_next/static/chunks/pages/contracts-640dafa6a2a2d93c.js +++ b/renterd/assets/_next/static/chunks/pages/contracts-e30e4c4643441459.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(71187)}])},89630:function(e,n,s){"use strict";s.d(n,{J:function(){return h}});var t=s(52322),l=s(80446),a=s(9969),i=s(6391),r=s.n(i),c=s(71930),o=s(25573),d=s(86450);function u(){var e,n,s,i,r;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),j=(0,o.n)(),m=null===(e=u.data)||void 0===e?void 0:e.version,v="?"===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);return(0,t.jsxs)(l.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>c("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.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)(l.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(s=x.data)||void 0===s?void 0:s.address,type:"address"})]}),(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",children:(0,t.jsx)(l.xvT,{size:"14",children:null===(i=u.data)||void 0===i?void 0:i.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:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=u.data)||void 0===r?void 0:r.version})]})]})}function x(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(l.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,a.Tu)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(l.tU3,{appName:"renterd",profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(x,{}),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})}},91930:function(e,n,s){"use strict";s.d(n,{e:function(){return d}});var t=s(52322),l=s(80446),a=s(88242),i=s(9969),r=s(82851),c=s(71930),o=s(86450);function d(){var e,n;let s=(0,i.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=s.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=s.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.KJW,{title:"Files",route:c._.files.index,children:(0,t.jsx)(a.ROc,{})}),(0,t.jsx)(l.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsx)(l.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(l.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,t.jsx)(a.VHe,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!x&&u&&(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")}),!!x&&!u&&(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:x.toLocaleString()}),(0,t.jsx)(l.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},71187:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return _}});var t=s(52322),l=s(91930),a=s(71930),i=s(80446),r=s(86450),c=s(13242),o=s(89630),d=s(88242);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.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}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.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 autopilot or manually form contracts to get started."})]})}var h=s(56860),j=s(3440),m=s.n(j);function v(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:a,sortField:r,setSortField:o,sortDirection:u,setSortDirection:x,enabledColumns:j}=(0,c.G)(),v=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),f=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(m()(h.Fo,"category")).map(e=>{let[n,s]=e;return(0,t.jsx)("optgroup",{label:n,children:s.map(e=>(0,t.jsx)(i.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(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:u,onClick:e=>{e.stopPropagation()},onChange:e=>{x(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(),s()},children:(0,t.jsx)(d.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:v.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:v,values:j,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Time",columns:f.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:f,values:j,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Financial",columns:p.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:p,values:j,onChange:e=>n(e)})})]})}function f(){return(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsx)(v,{})})}function p(e){let{error:n}=e;return(null==n?void 0:n.message.startsWith("404"))?(0,t.jsx)(x,{}):(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 g=s(99182),b=s(2784),k=s(93216);function w(){let{filters:e,removeFilter:n,removeLastFilter:s}=(0,c.G)(),[l,a]=(0,b.useState)(!1),[r,o]=(0,b.useState)(""),[u,x]=(0,b.useState)([]),h=u[u.length-1],j=(u.length,(0,b.useRef)(null)),m=(0,b.useRef)(null),v=(0,b.useCallback)(e=>{x(n=>[...n,e])},[x]),f=(0,b.useCallback)(()=>{x([])},[x]);(0,b.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 p=(0,b.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.focus()},[m]),w=(0,b.useCallback)(()=>{o(""),f()},[f]);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:e.label}),(0,t.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>n(e.id),children:(0,t.jsx)(d.PcV,{})})]},e.id)),(0,t.jsxs)(g.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(u.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===u.length&&("Backspace"!==e.key||r||s(),"Escape"===e.key&&!r)){var n;a(!1),null===(n=m.current)||void 0===n||n.blur()}},children:[(0,t.jsx)(g.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)(g.mY.List,{children:(0,t.jsx)(k.F,{currentPage:h,beforeSelect:p,afterSelect:w,pushPage:v})})]})})]})]})}function N(){let{dataState:e,offset:n,limit:s,datasetCount:l,pageCount:a}=(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)(i.uDJ,{isLoading:"loading"===e,offset:n,limit:s,datasetTotal:l,pageTotal:a})]})}function y(){let{openDialog:e}=(0,r.Rh)(),{columns:n,datasetPage:s,sortField:d,sortDirection:h,sortableColumns:j,toggleSort:m,limit:v,dataState:g,cellContext:b,error:k}=(0,c.G)();return(0,t.jsx)(o.J,{title:"Active contracts",routes:a._,sidenav:(0,t.jsx)(l.e,{}),openSettings:()=>e("settings"),stats:(0,t.jsx)(N,{}),size:"full",actions:(0,t.jsx)(f,{}),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)(u,{}):"noneYet"===g?(0,t.jsx)(x,{}):"error"===g?(0,t.jsx)(p,{error:k}):null,sortableColumns:j,pageSize:v,data:s,columns:n,sortDirection:h,sortField:d,toggleSort:m})})})}function _(){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 +(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(71187)}])},89630:function(e,n,s){"use strict";s.d(n,{J:function(){return h}});var t=s(52322),l=s(58121),a=s(9969),i=s(6391),r=s.n(i),c=s(71930),o=s(25573),d=s(83035);function u(){var e,n,s,i,r;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),j=(0,o.n)(),m=null===(e=u.data)||void 0===e?void 0:e.version,v="?"===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);return(0,t.jsxs)(l.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>c("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.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)(l.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(s=x.data)||void 0===s?void 0:s.address,type:"address"})]}),(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",children:(0,t.jsx)(l.xvT,{size:"14",children:null===(i=u.data)||void 0===i?void 0:i.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:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=u.data)||void 0===r?void 0:r.version})]})]})}function x(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(l.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,a.Tu)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(l.tU3,{appName:"renterd",profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(x,{}),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})}},91930:function(e,n,s){"use strict";s.d(n,{e:function(){return d}});var t=s(52322),l=s(58121),a=s(88242),i=s(9969),r=s(82851),c=s(71930),o=s(83035);function d(){var e,n;let s=(0,i.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=s.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=s.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.KJW,{title:"Files",route:c._.files.index,children:(0,t.jsx)(a.ROc,{})}),(0,t.jsx)(l.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsx)(l.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(l.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,t.jsx)(a.VHe,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!x&&u&&(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")}),!!x&&!u&&(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:x.toLocaleString()}),(0,t.jsx)(l.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},71187:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return _}});var t=s(52322),l=s(91930),a=s(71930),i=s(58121),r=s(83035),c=s(13242),o=s(89630),d=s(88242);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.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}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.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 autopilot or manually form contracts to get started."})]})}var h=s(56860),j=s(3440),m=s.n(j);function v(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:a,sortField:r,setSortField:o,sortDirection:u,setSortDirection:x,enabledColumns:j}=(0,c.G)(),v=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),f=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(m()(h.Fo,"category")).map(e=>{let[n,s]=e;return(0,t.jsx)("optgroup",{label:n,children:s.map(e=>(0,t.jsx)(i.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(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:u,onClick:e=>{e.stopPropagation()},onChange:e=>{x(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(),s()},children:(0,t.jsx)(d.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:v.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:v,values:j,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Time",columns:f.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:f,values:j,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Financial",columns:p.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:p,values:j,onChange:e=>n(e)})})]})}function f(){return(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsx)(v,{})})}function p(e){let{error:n}=e;return(null==n?void 0:n.message.startsWith("404"))?(0,t.jsx)(x,{}):(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 g=s(99182),b=s(2784),k=s(93216);function w(){let{filters:e,removeFilter:n,removeLastFilter:s}=(0,c.G)(),[l,a]=(0,b.useState)(!1),[r,o]=(0,b.useState)(""),[u,x]=(0,b.useState)([]),h=u[u.length-1],j=(u.length,(0,b.useRef)(null)),m=(0,b.useRef)(null),v=(0,b.useCallback)(e=>{x(n=>[...n,e])},[x]),f=(0,b.useCallback)(()=>{x([])},[x]);(0,b.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 p=(0,b.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.focus()},[m]),w=(0,b.useCallback)(()=>{o(""),f()},[f]);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:e.label}),(0,t.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>n(e.id),children:(0,t.jsx)(d.PcV,{})})]},e.id)),(0,t.jsxs)(g.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(u.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===u.length&&("Backspace"!==e.key||r||s(),"Escape"===e.key&&!r)){var n;a(!1),null===(n=m.current)||void 0===n||n.blur()}},children:[(0,t.jsx)(g.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)(g.mY.List,{children:(0,t.jsx)(k.F,{currentPage:h,beforeSelect:p,afterSelect:w,pushPage:v})})]})})]})]})}function N(){let{dataState:e,offset:n,limit:s,datasetCount:l,pageCount:a}=(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)(i.uDJ,{isLoading:"loading"===e,offset:n,limit:s,datasetTotal:l,pageTotal:a})]})}function y(){let{openDialog:e}=(0,r.Rh)(),{columns:n,datasetPage:s,sortField:d,sortDirection:h,sortableColumns:j,toggleSort:m,limit:v,dataState:g,cellContext:b,error:k}=(0,c.G)();return(0,t.jsx)(o.J,{title:"Active contracts",routes:a._,sidenav:(0,t.jsx)(l.e,{}),openSettings:()=>e("settings"),stats:(0,t.jsx)(N,{}),size:"full",actions:(0,t.jsx)(f,{}),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)(u,{}):"noneYet"===g?(0,t.jsx)(x,{}):"error"===g?(0,t.jsx)(p,{error:k}):null,sortableColumns:j,pageSize:v,data:s,columns:n,sortDirection:h,sortField:d,toggleSort:m})})})}function _(){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/renterd/assets/_next/static/chunks/pages/files/[[...path]]-c82a9e65ee4ec6a1.js b/renterd/assets/_next/static/chunks/pages/files/[[...path]]-9d28410a8a4c4ed3.js similarity index 98% rename from renterd/assets/_next/static/chunks/pages/files/[[...path]]-c82a9e65ee4ec6a1.js rename to renterd/assets/_next/static/chunks/pages/files/[[...path]]-9d28410a8a4c4ed3.js index efe5d373d..ebdc039d2 100644 --- a/renterd/assets/_next/static/chunks/pages/files/[[...path]]-c82a9e65ee4ec6a1.js +++ b/renterd/assets/_next/static/chunks/pages/files/[[...path]]-9d28410a8a4c4ed3.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{38345:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files/[[...path]]",function(){return t(14278)}])},89630:function(e,s,t){"use strict";t.d(s,{J:function(){return h}});var n=t(52322),l=t(80446),i=t(9969),a=t(6391),r=t.n(a),c=t(71930),o=t(25573),d=t(86450);function x(){var e,s,t,a,r;let{openDialog:c}=(0,d.Rh)(),x=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,i.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,i.cQ)(),j=(0,o.n)(),f=null===(e=x.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);return(0,n.jsxs)(l.HfT,{name:"renterd",peerCount:null===(s=h.data)||void 0===s?void 0:s.length,connectPeer:()=>c("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,n.jsx)(l.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(t=u.data)||void 0===t?void 0:t.address,type:"address"})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,n.jsx)(l.xvT,{size:"14",children:null===(a=x.data)||void 0===a?void 0:a.network})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,n.jsx)(l.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=x.data)||void 0===r?void 0:r.version})]})]})}function u(){let e=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,n.jsx)(l.t6k,{testnetName:e.data.network}):null}function h(e){let s=(0,i.Tu)(),{isSynced:t}=(0,o.n)();return(0,n.jsx)(l.tU3,{appName:"renterd",profile:(0,n.jsx)(x,{}),banner:(0,n.jsx)(u,{}),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})}},91930:function(e,s,t){"use strict";t.d(s,{e:function(){return d}});var n=t(52322),l=t(80446),i=t(88242),a=t(9969),r=t(82851),c=t(71930),o=t(86450);function d(){var e,s;let t=(0,a.Z7)(),{openDialog:d}=(0,o.Rh)(),x=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=t.data)||void 0===s?void 0:s.length)||0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.KJW,{title:"Files",route:c._.files.index,children:(0,n.jsx)(i.ROc,{})}),(0,n.jsx)(l.KJW,{title:"Configuration",route:c._.config.index,children:(0,n.jsx)(i.wWN,{})}),(0,n.jsx)(l.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,n.jsx)(i.VBo,{})}),(0,n.jsx)(l.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,n.jsx)(i.VHe,{})}),(0,n.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,n.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,n.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,n.jsx)(l.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,n.jsx)(i.Dkj,{})})]})]})}},14278:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return D}});var n=t(52322),l=t(91930),i=t(71930),a=t(86450),r=t(80446),c=t(48528),o=t(88242),d=t(9969),x=t(91641);function u(){let{autopilot:e}=(0,x.q)(),s=(0,d.e$)({config:{swr:{errorRetryCount:0}}});return{active:"on"===e.status&&!!s.error}}var h=t(4370);function j(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}function f(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."})]})}function v(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,n.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files, drag and drop files or click here to start uploading."})]})}function m(){let{dataState:e,isViewingRootOfABucket:s}=(0,c.Y)(),t=u(),l=(0,h.F)();return"noneMatchingFilters"===e?(0,n.jsx)(f,{}):"error"===e?(0,n.jsx)(j,{}):s&&"noneYet"===e&&t.active?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,n.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Before you can upload files you must configure your settings. Once configured, ",(0,n.jsx)(r.EKh,{children:"renterd"})," will find contracts with hosts based on the settings you choose. ",(0,n.jsx)(r.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]}),(0,n.jsx)(r.Qjf,{variant:"accent",href:i._.config.index,children:"Configure"})]})]}):s&&"noneYet"===e&&l.active?(0,n.jsxs)("div",{className:"flex flex-col gap-12 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-4 justify-center items-center",children:[(0,n.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",l.required," shards which means at least that many contracts are required."]}),(0,n.jsxs)(r.xvT,{size:"30",className:"text-center max-w-[500px]",children:[l.count,"/",l.required]})]})]}):"noneYet"===e?(0,n.jsx)(v,{}):null}function p(){let{isViewingABucket:e}=(0,c.Y)(),s=u(),t=(0,h.F)();return e&&!s.active&&!t.active}function g(){let{uploadFiles:e,datasetPage:s,pageCount:t,dataState:l,columns:i,sortField:a,sortDirection:o,sortableColumns:d,toggleSort:x}=(0,c.Y)(),u=p();return(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)(r.fhJ,{onDrop:e,noClick:!u||t>0,noDrag:!u,children:(0,n.jsx)(r.iA_,{isLoading:"loading"===l,emptyState:(0,n.jsx)(m,{}),pageSize:10,data:s,columns:i,sortableColumns:d,sortField:a,sortDirection:o,toggleSort:x,rowSize:"dense"})})})}var b=t(2784);function N(){let{activeDirectory:e,setActiveDirectory:s}=(0,c.Y)(),t=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let e=setTimeout(()=>{var e;null===(e=t.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},100);return()=>{clearTimeout(e)}},[e]),(0,n.jsx)(r.xrM,{children:(0,n.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,n.jsx)(r.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Files"}),e.length>0&&(0,n.jsx)(r.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,n.jsx)(o.F3j,{})}),e.map((e,t)=>(0,n.jsxs)(b.Fragment,{children:[t>0&&(0,n.jsx)(r.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,n.jsx)(o.F3j,{})}),(0,n.jsx)(r.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,n.jsx)("div",{ref:t})]})})}var w=t(89630),T=t(74424),z=t(81471),y=t(3440),k=t.n(y);function S(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:t,sortField:l,setSortField:i,sortDirection:a,setSortDirection:d,enabledColumns:x}=(0,c.Y)();return(0,n.jsxs)(r.J2e,{trigger:(0,n.jsxs)(r.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(o.hiv,{}),"View",(0,n.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(r.WVB,{children:[(0,n.jsx)(r.__J,{children:"Order by"}),(0,n.jsx)(r.kFS,{children:(0,n.jsx)(r.PhF,{value:l,onChange:e=>{i(e.currentTarget.value)},children:Object.entries(k()(z.Fo,"category")).map(e=>{let[s,t]=e;return(0,n.jsx)("optgroup",{label:s,children:t.map(e=>(0,n.jsx)(r.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,n.jsxs)(r.WVB,{children:[(0,n.jsx)(r.__J,{children:"Direction"}),(0,n.jsx)(r.kFS,{children:(0,n.jsxs)(r.PhF,{value:a,onClick:e=>{e.stopPropagation()},onChange:e=>{d(e.currentTarget.value)},children:[(0,n.jsx)(r.Wxm,{value:"desc",children:"descending"},"desc"),(0,n.jsx)(r.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,n.jsx)(r.Clw,{}),(0,n.jsxs)(r.WVB,{children:[(0,n.jsx)(r.__J,{children:"Display properties"}),(0,n.jsx)(r.kFS,{children:(0,n.jsx)(r.zxk,{onClick:e=>{e.stopPropagation(),t()},children:"Reset default"})})]}),(0,n.jsx)(r.WVB,{children:(0,n.jsx)(r.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:x,onChange:e=>s(e)})})]})}function F(){let{openDialog:e}=(0,a.Rh)(),{uploadFiles:s,isViewingBuckets:t}=(0,c.Y)(),l=p(),{getRootProps:i,getInputProps:d}=(0,T.uI)({noDrag:!0,noClick:!l,onDrop:s});return(0,n.jsxs)("div",{className:"flex gap-2",children:[t?(0,n.jsxs)(r.zxk,{onClick:()=>e("filesCreateBucket"),tip:"Create bucket",children:[(0,n.jsx)(o.aXP,{}),"Create bucket"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.zxk,{onClick:()=>e("filesSearch"),tip:"Search files",children:(0,n.jsx)(o.UBs,{})}),(0,n.jsxs)(r.zxk,{...i(),tip:"Upload files",disabled:!l,children:[(0,n.jsx)("input",{...d()}),(0,n.jsx)(o.bQp,{})]}),(0,n.jsx)(r.zxk,{disabled:!l,onClick:()=>e("filesCreateDirectory"),tip:"Create directory",children:(0,n.jsx)(o.L37,{})})]}),(0,n.jsx)(S,{})]})}var _=t(96206);function C(){let e=(0,d.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}});if(!e.data&&e.isValidating)return(0,n.jsx)(r.xgg,{className:"pr-1"});if(!e.data)return null;let s=e.data.totalObjectsSize?e.data.totalSectorsSize/e.data.totalObjectsSize:0;return(0,n.jsx)(r.ua7,{side:"bottom",content:(0,n.jsxs)(r.xvT,{className:"flex justify-between gap-6",children:[(0,n.jsxs)(r.xvT,{className:"flex flex-col gap-1",children:[(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"size of all files"}),(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"with redundancy"}),!!s&&(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"average redundancy factor"}),(0,n.jsx)(r.Z0O,{className:"w-full my-1"}),(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"reclaimable space"}),(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"total storage utilization"})]}),(0,n.jsxs)(r.xvT,{className:"flex flex-col gap-1 items-end",children:[(0,n.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalObjectsSize)}),(0,n.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalSectorsSize)}),!!s&&(0,n.jsxs)(r.xvT,{size:"12",font:"mono",children:[s.toFixed(1),"x"]}),(0,n.jsx)(r.Z0O,{className:"w-full my-1"}),(0,n.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalUploadedSize-e.data.totalSectorsSize)}),(0,n.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalUploadedSize)})]})]}),children:(0,n.jsx)(r.xvT,{size:"12",font:"mono",children:"".concat((0,_.vW)(e.data.totalObjectsSize)).concat(s?" @ ".concat(s.toFixed(1),"x"):"")})})}var W=t(82439);function O(){var e;let{activeBucket:s}=(0,c.Y)(),t=(0,d.Jv)({disabled:!s,params:{key:"",bucket:s},config:{swr:{dedupingInterval:5e3}}}),l=(0,b.useMemo)(()=>{var e,s,n,l;return null===(l=t.data)||void 0===l?void 0:null===(n=l.entries)||void 0===n?void 0:n.reduce((e,s)=>{let{health:t}=s;return te("settings"),children:(0,n.jsx)("div",{className:"p-6 min-w-fit",children:(0,n.jsx)(g,{})})})}function D(){return(0,n.jsx)(P,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=38345)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{38345:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files/[[...path]]",function(){return t(14278)}])},89630:function(e,s,t){"use strict";t.d(s,{J:function(){return h}});var n=t(52322),l=t(58121),i=t(9969),a=t(6391),r=t.n(a),c=t(71930),o=t(25573),d=t(83035);function x(){var e,s,t,a,r;let{openDialog:c}=(0,d.Rh)(),x=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,i.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,i.cQ)(),j=(0,o.n)(),f=null===(e=x.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);return(0,n.jsxs)(l.HfT,{name:"renterd",peerCount:null===(s=h.data)||void 0===s?void 0:s.length,connectPeer:()=>c("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,n.jsx)(l.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(t=u.data)||void 0===t?void 0:t.address,type:"address"})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,n.jsx)(l.xvT,{size:"14",children:null===(a=x.data)||void 0===a?void 0:a.network})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,n.jsx)(l.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=x.data)||void 0===r?void 0:r.version})]})]})}function u(){let e=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,n.jsx)(l.t6k,{testnetName:e.data.network}):null}function h(e){let s=(0,i.Tu)(),{isSynced:t}=(0,o.n)();return(0,n.jsx)(l.tU3,{appName:"renterd",profile:(0,n.jsx)(x,{}),banner:(0,n.jsx)(u,{}),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})}},91930:function(e,s,t){"use strict";t.d(s,{e:function(){return d}});var n=t(52322),l=t(58121),i=t(88242),a=t(9969),r=t(82851),c=t(71930),o=t(83035);function d(){var e,s;let t=(0,a.Z7)(),{openDialog:d}=(0,o.Rh)(),x=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=t.data)||void 0===s?void 0:s.length)||0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.KJW,{title:"Files",route:c._.files.index,children:(0,n.jsx)(i.ROc,{})}),(0,n.jsx)(l.KJW,{title:"Configuration",route:c._.config.index,children:(0,n.jsx)(i.wWN,{})}),(0,n.jsx)(l.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,n.jsx)(i.VBo,{})}),(0,n.jsx)(l.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,n.jsx)(i.VHe,{})}),(0,n.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,n.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,n.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,n.jsx)(l.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,n.jsx)(i.Dkj,{})})]})]})}},14278:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return D}});var n=t(52322),l=t(91930),i=t(71930),a=t(83035),r=t(58121),c=t(48528),o=t(88242),d=t(9969),x=t(91641);function u(){let{autopilot:e}=(0,x.q)(),s=(0,d.e$)({config:{swr:{errorRetryCount:0}}});return{active:"on"===e.status&&!!s.error}}var h=t(4370);function j(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}function f(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."})]})}function v(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,n.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files, drag and drop files or click here to start uploading."})]})}function m(){let{dataState:e,isViewingRootOfABucket:s}=(0,c.Y)(),t=u(),l=(0,h.F)();return"noneMatchingFilters"===e?(0,n.jsx)(f,{}):"error"===e?(0,n.jsx)(j,{}):s&&"noneYet"===e&&t.active?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,n.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Before you can upload files you must configure your settings. Once configured, ",(0,n.jsx)(r.EKh,{children:"renterd"})," will find contracts with hosts based on the settings you choose. ",(0,n.jsx)(r.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]}),(0,n.jsx)(r.Qjf,{variant:"accent",href:i._.config.index,children:"Configure"})]})]}):s&&"noneYet"===e&&l.active?(0,n.jsxs)("div",{className:"flex flex-col gap-12 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-4 justify-center items-center",children:[(0,n.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",l.required," shards which means at least that many contracts are required."]}),(0,n.jsxs)(r.xvT,{size:"30",className:"text-center max-w-[500px]",children:[l.count,"/",l.required]})]})]}):"noneYet"===e?(0,n.jsx)(v,{}):null}function p(){let{isViewingABucket:e}=(0,c.Y)(),s=u(),t=(0,h.F)();return e&&!s.active&&!t.active}function g(){let{uploadFiles:e,datasetPage:s,pageCount:t,dataState:l,columns:i,sortField:a,sortDirection:o,sortableColumns:d,toggleSort:x}=(0,c.Y)(),u=p();return(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)(r.fhJ,{onDrop:e,noClick:!u||t>0,noDrag:!u,children:(0,n.jsx)(r.iA_,{isLoading:"loading"===l,emptyState:(0,n.jsx)(m,{}),pageSize:10,data:s,columns:i,sortableColumns:d,sortField:a,sortDirection:o,toggleSort:x,rowSize:"dense"})})})}var b=t(2784);function N(){let{activeDirectory:e,setActiveDirectory:s}=(0,c.Y)(),t=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let e=setTimeout(()=>{var e;null===(e=t.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},100);return()=>{clearTimeout(e)}},[e]),(0,n.jsx)(r.xrM,{children:(0,n.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,n.jsx)(r.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Files"}),e.length>0&&(0,n.jsx)(r.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,n.jsx)(o.F3j,{})}),e.map((e,t)=>(0,n.jsxs)(b.Fragment,{children:[t>0&&(0,n.jsx)(r.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,n.jsx)(o.F3j,{})}),(0,n.jsx)(r.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,n.jsx)("div",{ref:t})]})})}var w=t(89630),T=t(74424),z=t(81471),y=t(3440),k=t.n(y);function S(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:t,sortField:l,setSortField:i,sortDirection:a,setSortDirection:d,enabledColumns:x}=(0,c.Y)();return(0,n.jsxs)(r.J2e,{trigger:(0,n.jsxs)(r.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(o.hiv,{}),"View",(0,n.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(r.WVB,{children:[(0,n.jsx)(r.__J,{children:"Order by"}),(0,n.jsx)(r.kFS,{children:(0,n.jsx)(r.PhF,{value:l,onChange:e=>{i(e.currentTarget.value)},children:Object.entries(k()(z.Fo,"category")).map(e=>{let[s,t]=e;return(0,n.jsx)("optgroup",{label:s,children:t.map(e=>(0,n.jsx)(r.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,n.jsxs)(r.WVB,{children:[(0,n.jsx)(r.__J,{children:"Direction"}),(0,n.jsx)(r.kFS,{children:(0,n.jsxs)(r.PhF,{value:a,onClick:e=>{e.stopPropagation()},onChange:e=>{d(e.currentTarget.value)},children:[(0,n.jsx)(r.Wxm,{value:"desc",children:"descending"},"desc"),(0,n.jsx)(r.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,n.jsx)(r.Clw,{}),(0,n.jsxs)(r.WVB,{children:[(0,n.jsx)(r.__J,{children:"Display properties"}),(0,n.jsx)(r.kFS,{children:(0,n.jsx)(r.zxk,{onClick:e=>{e.stopPropagation(),t()},children:"Reset default"})})]}),(0,n.jsx)(r.WVB,{children:(0,n.jsx)(r.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:x,onChange:e=>s(e)})})]})}function F(){let{openDialog:e}=(0,a.Rh)(),{uploadFiles:s,isViewingBuckets:t}=(0,c.Y)(),l=p(),{getRootProps:i,getInputProps:d}=(0,T.uI)({noDrag:!0,noClick:!l,onDrop:s});return(0,n.jsxs)("div",{className:"flex gap-2",children:[t?(0,n.jsxs)(r.zxk,{onClick:()=>e("filesCreateBucket"),tip:"Create bucket",children:[(0,n.jsx)(o.aXP,{}),"Create bucket"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.zxk,{onClick:()=>e("filesSearch"),tip:"Search files",children:(0,n.jsx)(o.UBs,{})}),(0,n.jsxs)(r.zxk,{...i(),tip:"Upload files",disabled:!l,children:[(0,n.jsx)("input",{...d()}),(0,n.jsx)(o.bQp,{})]}),(0,n.jsx)(r.zxk,{disabled:!l,onClick:()=>e("filesCreateDirectory"),tip:"Create directory",children:(0,n.jsx)(o.L37,{})})]}),(0,n.jsx)(S,{})]})}var _=t(96206);function C(){let e=(0,d.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}});if(!e.data&&e.isValidating)return(0,n.jsx)(r.xgg,{className:"pr-1"});if(!e.data)return null;let s=e.data.totalObjectsSize?e.data.totalSectorsSize/e.data.totalObjectsSize:0;return(0,n.jsx)(r.ua7,{side:"bottom",content:(0,n.jsxs)(r.xvT,{className:"flex justify-between gap-6",children:[(0,n.jsxs)(r.xvT,{className:"flex flex-col gap-1",children:[(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"size of all files"}),(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"with redundancy"}),!!s&&(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"average redundancy factor"}),(0,n.jsx)(r.Z0O,{className:"w-full my-1"}),(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"reclaimable space"}),(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"total storage utilization"})]}),(0,n.jsxs)(r.xvT,{className:"flex flex-col gap-1 items-end",children:[(0,n.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalObjectsSize)}),(0,n.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalSectorsSize)}),!!s&&(0,n.jsxs)(r.xvT,{size:"12",font:"mono",children:[s.toFixed(1),"x"]}),(0,n.jsx)(r.Z0O,{className:"w-full my-1"}),(0,n.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalUploadedSize-e.data.totalSectorsSize)}),(0,n.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalUploadedSize)})]})]}),children:(0,n.jsx)(r.xvT,{size:"12",font:"mono",children:"".concat((0,_.vW)(e.data.totalObjectsSize)).concat(s?" @ ".concat(s.toFixed(1),"x"):"")})})}var W=t(82439);function O(){var e;let{activeBucket:s}=(0,c.Y)(),t=(0,d.Jv)({disabled:!s,params:{key:"",bucket:s},config:{swr:{dedupingInterval:5e3}}}),l=(0,b.useMemo)(()=>{var e,s,n,l;return null===(l=t.data)||void 0===l?void 0:null===(n=l.entries)||void 0===n?void 0:n.reduce((e,s)=>{let{health:t}=s;return te("settings"),children:(0,n.jsx)("div",{className:"p-6 min-w-fit",children:(0,n.jsx)(g,{})})})}function D(){return(0,n.jsx)(P,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=38345)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/hosts-30d65c92fad9af92.js b/renterd/assets/_next/static/chunks/pages/hosts-0b6a40a5bfd20432.js similarity index 96% rename from renterd/assets/_next/static/chunks/pages/hosts-30d65c92fad9af92.js rename to renterd/assets/_next/static/chunks/pages/hosts-0b6a40a5bfd20432.js index 512a07150..fab5b815d 100644 --- a/renterd/assets/_next/static/chunks/pages/hosts-30d65c92fad9af92.js +++ b/renterd/assets/_next/static/chunks/pages/hosts-0b6a40a5bfd20432.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(69886)}])},89630:function(e,s,l){"use strict";l.d(s,{J:function(){return h}});var n=l(52322),t=l(80446),a=l(9969),i=l(6391),r=l.n(i),c=l(71930),o=l(25573),d=l(86450);function u(){var e,s,l,i,r;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),j=(0,o.n)(),v=null===(e=u.data)||void 0===e?void 0:e.version,m="?"===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);return(0,n.jsxs)(t.HfT,{name:"renterd",peerCount:null===(s=h.data)||void 0===s?void 0:s.length,connectPeer:()=>c("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.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)(t.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(l=x.data)||void 0===l?void 0:l.address,type:"address"})]}),(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",children:(0,n.jsx)(t.xvT,{size:"14",children:null===(i=u.data)||void 0===i?void 0:i.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:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=u.data)||void 0===r?void 0:r.version})]})]})}function x(){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 h(e){let s=(0,a.Tu)(),{isSynced:l}=(0,o.n)();return(0,n.jsx)(t.tU3,{appName:"renterd",profile:(0,n.jsx)(u,{}),banner:(0,n.jsx)(x,{}),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})}},91930:function(e,s,l){"use strict";l.d(s,{e:function(){return d}});var n=l(52322),t=l(80446),a=l(88242),i=l(9969),r=l(82851),c=l(71930),o=l(86450);function d(){var e,s;let l=(0,i.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=l.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(s=l.data)||void 0===s?void 0:s.length)||0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.KJW,{title:"Files",route:c._.files.index,children:(0,n.jsx)(a.ROc,{})}),(0,n.jsx)(t.KJW,{title:"Configuration",route:c._.config.index,children:(0,n.jsx)(a.wWN,{})}),(0,n.jsx)(t.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,n.jsx)(a.VBo,{})}),(0,n.jsx)(t.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,n.jsx)(a.VHe,{})}),(0,n.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,n.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,n.jsx)(t.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,n.jsx)(t.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,n.jsx)(a.Dkj,{})})]})]})}},69886:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return y}});var n=l(52322),t=l(91930),a=l(71930),i=l(80446),r=l(86450),c=l(19513),o=l(89630),d=l(88242);function u(){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 x(){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})),u=e.filter(e=>"autopilot"===e.category).map(e=>({label:e.label,value:e.id})),x=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)})}),u.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Autopilot",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,x.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Price table (RHPv3)",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,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(2850);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)(x,{})]})}var v=l(99182),m=l(2784),f=l(18006);function p(){let{filters:e,removeFilter:s,removeLastFilter:l}=(0,c.l)(),[t,a]=(0,m.useState)(!1),[r,o]=(0,m.useState)(""),[u,x]=(0,m.useState)([]),h=u[u.length-1],j=(0,m.useRef)(null),p=(0,m.useRef)(null),g=(0,m.useCallback)(e=>{x(s=>[...s,e])},[x]),b=(0,m.useCallback)(()=>{x([])},[x]);(0,m.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,m.useCallback)(()=>{var e;null===(e=p.current)||void 0===e||e.focus()},[p]),k=(0,m.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)(v.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(u.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===u.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)(v.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)(v.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(34444),w=l(10917);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 C(){let{openDialog:e}=(0,r.Rh)(),{dataset:s,activeHost:l,columns:d,limit:x,dataState:h,tableContext:v,viewMode:m}=(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"===m?"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"===m?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"===m?"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)(u,{}),context:v,pageSize:x,data:s,columns:d,rowSize:"default"})})})})]})})}function y(){return(0,n.jsx)(C,{})}}},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(69886)}])},89630:function(e,s,l){"use strict";l.d(s,{J:function(){return h}});var n=l(52322),t=l(58121),a=l(9969),i=l(6391),r=l.n(i),c=l(71930),o=l(25573),d=l(83035);function u(){var e,s,l,i,r;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),j=(0,o.n)(),v=null===(e=u.data)||void 0===e?void 0:e.version,m="?"===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);return(0,n.jsxs)(t.HfT,{name:"renterd",peerCount:null===(s=h.data)||void 0===s?void 0:s.length,connectPeer:()=>c("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.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)(t.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(l=x.data)||void 0===l?void 0:l.address,type:"address"})]}),(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",children:(0,n.jsx)(t.xvT,{size:"14",children:null===(i=u.data)||void 0===i?void 0:i.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:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=u.data)||void 0===r?void 0:r.version})]})]})}function x(){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 h(e){let s=(0,a.Tu)(),{isSynced:l}=(0,o.n)();return(0,n.jsx)(t.tU3,{appName:"renterd",profile:(0,n.jsx)(u,{}),banner:(0,n.jsx)(x,{}),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})}},91930:function(e,s,l){"use strict";l.d(s,{e:function(){return d}});var n=l(52322),t=l(58121),a=l(88242),i=l(9969),r=l(82851),c=l(71930),o=l(83035);function d(){var e,s;let l=(0,i.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=l.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(s=l.data)||void 0===s?void 0:s.length)||0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.KJW,{title:"Files",route:c._.files.index,children:(0,n.jsx)(a.ROc,{})}),(0,n.jsx)(t.KJW,{title:"Configuration",route:c._.config.index,children:(0,n.jsx)(a.wWN,{})}),(0,n.jsx)(t.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,n.jsx)(a.VBo,{})}),(0,n.jsx)(t.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,n.jsx)(a.VHe,{})}),(0,n.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,n.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,n.jsx)(t.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,n.jsx)(t.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,n.jsx)(a.Dkj,{})})]})]})}},69886:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return y}});var n=l(52322),t=l(91930),a=l(71930),i=l(58121),r=l(83035),c=l(19513),o=l(89630),d=l(88242);function u(){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 x(){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})),u=e.filter(e=>"autopilot"===e.category).map(e=>({label:e.label,value:e.id})),x=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)})}),u.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Autopilot",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,x.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Price table (RHPv3)",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,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(2850);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)(x,{})]})}var v=l(99182),m=l(2784),f=l(18006);function p(){let{filters:e,removeFilter:s,removeLastFilter:l}=(0,c.l)(),[t,a]=(0,m.useState)(!1),[r,o]=(0,m.useState)(""),[u,x]=(0,m.useState)([]),h=u[u.length-1],j=(0,m.useRef)(null),p=(0,m.useRef)(null),g=(0,m.useCallback)(e=>{x(s=>[...s,e])},[x]),b=(0,m.useCallback)(()=>{x([])},[x]);(0,m.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,m.useCallback)(()=>{var e;null===(e=p.current)||void 0===e||e.focus()},[p]),k=(0,m.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)(v.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(u.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===u.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)(v.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)(v.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(34444),w=l(10917);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 C(){let{openDialog:e}=(0,r.Rh)(),{dataset:s,activeHost:l,columns:d,limit:x,dataState:h,tableContext:v,viewMode:m}=(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"===m?"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"===m?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"===m?"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)(u,{}),context:v,pageSize:x,data:s,columns:d,rowSize:"default"})})})})]})})}function y(){return(0,n.jsx)(C,{})}}},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-4ab0960f6e90701e.js b/renterd/assets/_next/static/chunks/pages/index-88b300204afd094a.js similarity index 92% rename from renterd/assets/_next/static/chunks/pages/index-4ab0960f6e90701e.js rename to renterd/assets/_next/static/chunks/pages/index-88b300204afd094a.js index ede3be13a..dbca2fd1f 100644 --- a/renterd/assets/_next/static/chunks/pages/index-4ab0960f6e90701e.js +++ b/renterd/assets/_next/static/chunks/pages/index-88b300204afd094a.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(94417)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return h}});var i=t(52322),s=t(80446),r=t(9969),o=t(6391),a=t.n(o),d=t(71930),c=t(25573),l=t(86450);function u(){var e,n,t,o,a;let{openDialog:d}=(0,l.Rh)(),u=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,r.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,r.cQ)(),f=(0,c.n)(),v=null===(e=u.data)||void 0===e?void 0:e.version,j="?"===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);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>d("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.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)(s.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})]}),(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",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(o=u.data)||void 0===o?void 0:o.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:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(a=u.data)||void 0===a?void 0:a.version})]})]})}function x(){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 h(e){let n=(0,r.Tu)(),{isSynced:t}=(0,c.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(x,{}),connectivityRoute:d.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return l}});var i=t(52322),s=t(80446),r=t(88242),o=t(9969),a=t(82851),d=t(71930),c=t(86450);function l(){var e,n;let t=(0,o.Z7)(),{openDialog:l}=(0,c.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:d._.files.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:d._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:d._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!x&&u&&(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")}),!!x&&!u&&(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:x.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>l("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},94417:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(89630),r=t(91930),o=t(71930),a=t(86450),d=t(2784),c=t(5632);function l(){let e=(0,c.useRouter)(),{openDialog:n}=(0,a.Rh)();return(0,d.useEffect)(()=>{e.replace(o._.files.index)},[e]),(0,i.jsx)(s.J,{title:"Dashboard",routes:o._,sidenav:(0,i.jsx)(r.e,{}),openSettings:()=>n("settings")})}function u(){return(0,i.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 +(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(94417)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return h}});var i=t(52322),s=t(58121),r=t(9969),o=t(6391),a=t.n(o),d=t(71930),c=t(25573),l=t(83035);function u(){var e,n,t,o,a;let{openDialog:d}=(0,l.Rh)(),u=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,r.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,r.cQ)(),f=(0,c.n)(),v=null===(e=u.data)||void 0===e?void 0:e.version,j="?"===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);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>d("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.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)(s.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})]}),(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",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(o=u.data)||void 0===o?void 0:o.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:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(a=u.data)||void 0===a?void 0:a.version})]})]})}function x(){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 h(e){let n=(0,r.Tu)(),{isSynced:t}=(0,c.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(x,{}),connectivityRoute:d.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return l}});var i=t(52322),s=t(58121),r=t(88242),o=t(9969),a=t(82851),d=t(71930),c=t(83035);function l(){var e,n;let t=(0,o.Z7)(),{openDialog:l}=(0,c.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:d._.files.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:d._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:d._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!x&&u&&(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")}),!!x&&!u&&(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:x.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>l("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},94417:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(89630),r=t(91930),o=t(71930),a=t(83035),d=t(2784),c=t(5632);function l(){let e=(0,c.useRouter)(),{openDialog:n}=(0,a.Rh)();return(0,d.useEffect)(()=>{e.replace(o._.files.index)},[e]),(0,i.jsx)(s.J,{title:"Dashboard",routes:o._,sidenav:(0,i.jsx)(r.e,{}),openSettings:()=>n("settings")})}function u(){return(0,i.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/renterd/assets/_next/static/chunks/pages/login-bb79acc5d7deabf7.js b/renterd/assets/_next/static/chunks/pages/login-99787818c5091202.js similarity index 88% rename from renterd/assets/_next/static/chunks/pages/login-bb79acc5d7deabf7.js rename to renterd/assets/_next/static/chunks/pages/login-99787818c5091202.js index 6d4baa90b..eb425b91b 100644 --- a/renterd/assets/_next/static/chunks/pages/login-bb79acc5d7deabf7.js +++ b/renterd/assets/_next/static/chunks/pages/login-99787818c5091202.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(95271)}])},95271:function(n,u,r){"use strict";r.r(u),r.d(u,{default:function(){return _}});var t=r(52322),e=r(80446),i=r(71930);function o(n){return(0,t.jsx)(e.juT,{appName:"renterd",...n})}function c(){return(0,t.jsx)(o,{children:(0,t.jsx)(e.zXq,{appName:"renterd",route:i.h,routes:i._})})}function _(){return(0,t.jsx)(c,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(95271)}])},95271:function(n,u,r){"use strict";r.r(u),r.d(u,{default:function(){return _}});var t=r(52322),e=r(58121),i=r(71930);function o(n){return(0,t.jsx)(e.juT,{appName:"renterd",...n})}function c(){return(0,t.jsx)(o,{children:(0,t.jsx)(e.zXq,{appName:"renterd",route:i.h,routes:i._})})}function _(){return(0,t.jsx)(c,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/node-5ec03621858475c3.js b/renterd/assets/_next/static/chunks/pages/node-2a0997c03afe8499.js similarity index 92% rename from renterd/assets/_next/static/chunks/pages/node-5ec03621858475c3.js rename to renterd/assets/_next/static/chunks/pages/node-2a0997c03afe8499.js index 10c616290..31fbaea1b 100644 --- a/renterd/assets/_next/static/chunks/pages/node-5ec03621858475c3.js +++ b/renterd/assets/_next/static/chunks/pages/node-2a0997c03afe8499.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(61936)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return h}});var i=t(52322),s=t(80446),r=t(9969),o=t(6391),a=t.n(o),l=t(71930),d=t(25573),c=t(86450);function u(){var e,n,t,o,a;let{openDialog:l}=(0,c.Rh)(),u=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,r.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,r.cQ)(),v=(0,d.n)(),f=null===(e=u.data)||void 0===e?void 0:e.version,j="?"===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);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>l("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.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)(s.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})]}),(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",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(o=u.data)||void 0===o?void 0:o.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:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(a=u.data)||void 0===a?void 0:a.version})]})]})}function x(){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 h(e){let n=(0,r.Tu)(),{isSynced:t}=(0,d.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(x,{}),connectivityRoute:l.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return c}});var i=t(52322),s=t(80446),r=t(88242),o=t(9969),a=t(82851),l=t(71930),d=t(86450);function c(){var e,n;let t=(0,o.Z7)(),{openDialog:c}=(0,d.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:l._.files.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.jsxs)("div",{className:"relative",children:[!!x&&u&&(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")}),!!x&&!u&&(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:x.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>c("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(80446),r=t(9969),o=t(71930),a=t(86450),l=t(91930),d=t(89630);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,a.Rh)();return(0,i.jsx)(d.J,{routes:o._,sidenav:(0,i.jsx)(l.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,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(61936)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return h}});var i=t(52322),s=t(58121),r=t(9969),o=t(6391),a=t.n(o),l=t(71930),d=t(25573),c=t(83035);function u(){var e,n,t,o,a;let{openDialog:l}=(0,c.Rh)(),u=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,r.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,r.cQ)(),v=(0,d.n)(),f=null===(e=u.data)||void 0===e?void 0:e.version,j="?"===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);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>l("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.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)(s.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})]}),(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",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(o=u.data)||void 0===o?void 0:o.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:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(a=u.data)||void 0===a?void 0:a.version})]})]})}function x(){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 h(e){let n=(0,r.Tu)(),{isSynced:t}=(0,d.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(x,{}),connectivityRoute:l.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return c}});var i=t(52322),s=t(58121),r=t(88242),o=t(9969),a=t(82851),l=t(71930),d=t(83035);function c(){var e,n;let t=(0,o.Z7)(),{openDialog:c}=(0,d.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:l._.files.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.jsxs)("div",{className:"relative",children:[!!x&&u&&(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")}),!!x&&!u&&(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:x.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>c("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(58121),r=t(9969),o=t(71930),a=t(83035),l=t(91930),d=t(89630);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,a.Rh)();return(0,i.jsx)(d.J,{routes:o._,sidenav:(0,i.jsx)(l.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,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-a150a7ebcb4b7f87.js b/renterd/assets/_next/static/chunks/pages/wallet-ed29d4152bca43e1.js similarity index 94% rename from renterd/assets/_next/static/chunks/pages/wallet-a150a7ebcb4b7f87.js rename to renterd/assets/_next/static/chunks/pages/wallet-ed29d4152bca43e1.js index 351198283..5e915975f 100644 --- a/renterd/assets/_next/static/chunks/pages/wallet-a150a7ebcb4b7f87.js +++ b/renterd/assets/_next/static/chunks/pages/wallet-ed29d4152bca43e1.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return n(21990)}])},89630:function(e,t,n){"use strict";n.d(t,{J:function(){return m}});var s=n(52322),i=n(80446),a=n(9969),r=n(6391),l=n.n(r),c=n(71930),o=n(25573),d=n(86450);function u(){var e,t,n,r,l;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,a.cQ)(),f=(0,o.n)(),h=null===(e=u.data)||void 0===e?void 0:e.version,p="?"===h?"https://github.com/SiaFoundation/renterd/commits/":(null==h?void 0:h.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(h):"https://github.com/SiaFoundation/renterd/tree/".concat(h);return(0,s.jsxs)(i.HfT,{name:"renterd",peerCount:null===(t=m.data)||void 0===t?void 0:t.length,connectPeer:()=>c("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.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)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(n=x.data)||void 0===n?void 0:n.address,type:"address"})]}),(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",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=u.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:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(l=u.data)||void 0===l?void 0:l.version})]})]})}function x(){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 m(e){let t=(0,a.Tu)(),{isSynced:n}=(0,o.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(u,{}),banner:(0,s.jsx)(x,{}),connectivityRoute:c.h,isSynced:n,walletBalanceSc:t.data&&{spendable:new(l())(t.data.spendable),confirmed:new(l())(t.data.confirmed),unconfirmed:new(l())(t.data.unconfirmed)},...e})}},91930:function(e,t,n){"use strict";n.d(t,{e:function(){return d}});var s=n(52322),i=n(80446),a=n(88242),r=n(9969),l=n(82851),c=n(71930),o=n(86450);function d(){var e,t;let n=(0,r.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=n.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(t=n.data)||void 0===t?void 0:t.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:c._.files.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.jsxs)("div",{className:"relative",children:[!!x&&u&&(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")}),!!x&&!u&&(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:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},21990:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var s=n(52322),i=n(80446),a=n(9969),r=n(2784),l=n(86450),c=n(71930),o=n(6391),d=n.n(o),u=n(91930),x=n(89630),m=n(25573),f=n(88242);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"})]})]})}function p(){let e=(0,a.Qq)({params:{},config:{swr:{refreshInterval:6e4,revalidateOnFocus:!1}}}),t=(0,a.a0)(),{openDialog:n}=(0,l.Rh)(),o=(0,r.useMemo)(()=>t.data&&e.data?[...(t.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e),unconfirmed:!0})),...(e.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.raw),hash:e.id,timestamp:new Date(e.timestamp).getTime(),onClick:()=>n("transactionDetails",e.id),sc:new(d())(e.inflow).minus(e.outflow)})).sort((e,t)=>e.timestamp{var t;return null===(t=e.data)||void 0===t?void 0:t.sort((e,t)=>e.timestamp>t.timestamp?1:-1).reduce((e,t,n)=>0===n?e.concat({sc:new(d())(t.inflow).minus(t.outflow).toNumber(),timestamp:new Date(t.timestamp).getTime()}):e.concat({sc:new(d())(e[n-1].sc).plus(t.inflow).minus(t.outflow).toNumber(),timestamp:new Date(t.timestamp).getTime()}),[])},[e.data]),p=(0,a.Tu)(),{isSynced:v,syncPercent:j,isWalletSynced:w,walletScanPercent:g}=(0,m.n)();return(0,s.jsx)(x.J,{routes:c._,sidenav:(0,s.jsx)(u.e,{}),openSettings:()=>n("settings"),title:"Wallet",actions:(0,s.jsx)(i.QUh,{isSynced:v,isWalletSynced:w,syncPercent:j,walletScanPercent:g,balanceSc:p.data?{spendable:new(d())(p.data.spendable),unconfirmed:new(d())(p.data.unconfirmed),confirmed:new(d())(p.data.confirmed)}:void 0,receiveSiacoin:()=>n("addressDetails"),sendSiacoin:()=>n("sendSiacoin")}),stats:(0,s.jsx)(i.DmW,{isSynced:v,isWalletSynced:w,syncPercent:j,walletScanPercent:g}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==f?void 0:f.length)?(0,s.jsx)(i.Z58,{chartType:"line",balances:f,isLoading:e.isValidating}):null,(0,s.jsx)(i.XOF,{title:"Transactions",entities:null==o?void 0:o.slice(0,100),emptyState:(0,s.jsx)(h,{})})]})})}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,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return n(21990)}])},89630:function(e,t,n){"use strict";n.d(t,{J:function(){return m}});var s=n(52322),i=n(58121),a=n(9969),r=n(6391),l=n.n(r),c=n(71930),o=n(25573),d=n(83035);function u(){var e,t,n,r,l;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,a.cQ)(),f=(0,o.n)(),h=null===(e=u.data)||void 0===e?void 0:e.version,p="?"===h?"https://github.com/SiaFoundation/renterd/commits/":(null==h?void 0:h.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(h):"https://github.com/SiaFoundation/renterd/tree/".concat(h);return(0,s.jsxs)(i.HfT,{name:"renterd",peerCount:null===(t=m.data)||void 0===t?void 0:t.length,connectPeer:()=>c("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.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)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(n=x.data)||void 0===n?void 0:n.address,type:"address"})]}),(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",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=u.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:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(l=u.data)||void 0===l?void 0:l.version})]})]})}function x(){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 m(e){let t=(0,a.Tu)(),{isSynced:n}=(0,o.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(u,{}),banner:(0,s.jsx)(x,{}),connectivityRoute:c.h,isSynced:n,walletBalanceSc:t.data&&{spendable:new(l())(t.data.spendable),confirmed:new(l())(t.data.confirmed),unconfirmed:new(l())(t.data.unconfirmed)},...e})}},91930:function(e,t,n){"use strict";n.d(t,{e:function(){return d}});var s=n(52322),i=n(58121),a=n(88242),r=n(9969),l=n(82851),c=n(71930),o=n(83035);function d(){var e,t;let n=(0,r.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=n.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(t=n.data)||void 0===t?void 0:t.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:c._.files.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.jsxs)("div",{className:"relative",children:[!!x&&u&&(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")}),!!x&&!u&&(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:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},21990:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var s=n(52322),i=n(58121),a=n(9969),r=n(2784),l=n(83035),c=n(71930),o=n(6391),d=n.n(o),u=n(91930),x=n(89630),m=n(25573),f=n(88242);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"})]})]})}function p(){let e=(0,a.Qq)({params:{},config:{swr:{refreshInterval:6e4,revalidateOnFocus:!1}}}),t=(0,a.a0)(),{openDialog:n}=(0,l.Rh)(),o=(0,r.useMemo)(()=>t.data&&e.data?[...(t.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e),unconfirmed:!0})),...(e.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.raw),hash:e.id,timestamp:new Date(e.timestamp).getTime(),onClick:()=>n("transactionDetails",e.id),sc:new(d())(e.inflow).minus(e.outflow)})).sort((e,t)=>e.timestamp{var t;return null===(t=e.data)||void 0===t?void 0:t.sort((e,t)=>e.timestamp>t.timestamp?1:-1).reduce((e,t,n)=>0===n?e.concat({sc:new(d())(t.inflow).minus(t.outflow).toNumber(),timestamp:new Date(t.timestamp).getTime()}):e.concat({sc:new(d())(e[n-1].sc).plus(t.inflow).minus(t.outflow).toNumber(),timestamp:new Date(t.timestamp).getTime()}),[])},[e.data]),p=(0,a.Tu)(),{isSynced:v,syncPercent:j,isWalletSynced:w,walletScanPercent:g}=(0,m.n)();return(0,s.jsx)(x.J,{routes:c._,sidenav:(0,s.jsx)(u.e,{}),openSettings:()=>n("settings"),title:"Wallet",actions:(0,s.jsx)(i.QUh,{isSynced:v,isWalletSynced:w,syncPercent:j,walletScanPercent:g,balanceSc:p.data?{spendable:new(d())(p.data.spendable),unconfirmed:new(d())(p.data.unconfirmed),confirmed:new(d())(p.data.confirmed)}:void 0,receiveSiacoin:()=>n("addressDetails"),sendSiacoin:()=>n("sendSiacoin")}),stats:(0,s.jsx)(i.DmW,{isSynced:v,isWalletSynced:w,syncPercent:j,walletScanPercent:g}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==f?void 0:f.length)?(0,s.jsx)(i.Z58,{chartType:"line",balances:f,isLoading:e.isValidating}):null,(0,s.jsx)(i.XOF,{title:"Transactions",entities:null==o?void 0:o.slice(0,100),emptyState:(0,s.jsx)(h,{})})]})})}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-d286517b51b6235a.js b/renterd/assets/_next/static/chunks/webpack-d286517b51b6235a.js deleted file mode 100644 index 1fc8747db..000000000 --- a/renterd/assets/_next/static/chunks/webpack-d286517b51b6235a.js +++ /dev/null @@ -1 +0,0 @@ -!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(d.O).every(function(e){return d.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\]\:flex-1>div{flex:1 1 0%}.\[\&\>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:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1eff7769948a8c71-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7a86083759ce0787-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1fece7a471d60ffe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/94e828afa3939314-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/dcb90225ac4215b0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/21379288e5de0162-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/20a0263cfae743ff-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/a06cddabfd904d07-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/c05280b20c19cff6-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ab3a7057d2c303a3-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e7a1d48695380088-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/7a514966b24fa042-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/f34054e2970d3793-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/ee809f9c8637ac35-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/416dffb3eaba61b5-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/b2613c7882fb9dad-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/00b652cd5acf4d1a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/318cd1ba86719051-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/26570e7eecd756a7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/6ad357e49f846140-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c1dadd6c99c0900a-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/9fb8e434756a520e-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/b83e9714dba3a7b2-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/7729f7b3bc7fa987-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/69dc0d8a22bc572a-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/d752111844abddfa-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/7fe39de114f984a0-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/6c817bbad1cfd130-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/bc7cd6cbdb8771c6-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/1b708ab38c59f94d-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/ed08f0e693ce6a65-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/0be44b380099e057-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f4ebea4f2ece3dbe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f7e3cefe6d9fda21-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/26d0ad28b444f0fb-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/d704a8fea67672dc-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/3ce4c920cddd7002-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1027f57de01c0b24-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/23313877d5d6ff1b-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/00417edf5e44282b-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/228a95c965c5f90b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/97c8a55b2cb1421c-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/86d6d32ab6c2e21d-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/07304b90e9b5ca40-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/54f3953b28e50f98-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a40ccebe730e6b34-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/01ec6e01ff4830ae-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/34d8d58b783ee6bb-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/3763ada0a9bb1988-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/787b0654beea4191-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/2c3c1f0838a71cfb-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/47bcda1e7b1ac8be-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/bed76354f405346d-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c70aa70a01eaecff-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/24cfcc12c15b03b9-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/29ffcd3df3f1cb91-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/3cef106cd115e360-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/a0c95037dd5c9387-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/e889cd181219a83f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/6d6d0e4a023f9f33-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/0148c4ca3456ea72-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/4184cf5f191b83db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/28cea0425961ab58-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b4c759cba7a5f011-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/de555e6bc944c11a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/791334aa8b2b679f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/a2411df190893074-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/60d74363e715829c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/eb37c9fe4776ea97-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc381c5935034aa5-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f565fad065ab4cf3-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f9946f06d70a1b5b-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/d1f5f89450ecd78c-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ebcf93a611f94ec0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ec50b434b597bc61-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/6be22a85bef54f08-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/9491f41002d34397-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/afba6ba6bf9157e8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/be843c5b0882ad66-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/67aea609c6135b3b-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/09b62d668edb05d1-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/10446295ae7f2657-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b6ecfd81ed9f83c9-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/08404bcfb1dae67a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_Fallback_829fdc;src:local("Arial");ascent-override:101.44%;descent-override:27.22%;line-gap-override:0.00%;size-adjust:101.04%}.__className_829fdc{font-family:__IBM_Plex_Sans_829fdc,__IBM_Plex_Sans_Fallback_829fdc}.__variable_829fdc{--font-sans:"__IBM_Plex_Sans_829fdc","__IBM_Plex_Sans_Fallback_829fdc"}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/43f58290d48b3e4f-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/f7b042c81aa9dac9-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/5f52e8aafa6d55e1-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7c8d3f8a7910b37f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/c91ca22957702d7a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e31631a967fe3515-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e46a860e09e79916-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/2d1700372dfaaa94-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/27834a3ea5568a72-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ba1ff977fd46651f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/aa5329918e5352b7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/3546445dbedfe8e0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/a329a67c917d0d83-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/32ef35af86a1df18-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/42c2d543c4ca0ff8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/4acd96e66b7a15d8-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c00fdcaa534cf51c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9b64de7575b01f6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/e05a5a1d4048d7df-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9387c470a117487-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5b5f10d1030076fd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/66b34bbb56a523d8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/62e8d71f5f62d0a9-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/4f5bd398699bdcf0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5873ad5359ff35c9-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/a08baca5e17c57be-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b8347de82b1bd9a8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/99163ae90df46b27-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b9432a067aca8720-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/c3f479ae50d16e35-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/d4eddeab410cd094-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1674d377433d7de6-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/f65f080f6ad9aa76-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/7a44530bd17b4a4c-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/37e85b36581a02ab-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/1e0eb4a7325b5d14-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/136ae42764b7e0db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/b17f4305e2f0c22a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a7f64a09f7737545-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/98bcafdc59ee6d65-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/ce562f20499ad585-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/57699fff66d5761c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/e490b1ecb6589d48-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/524be5e37a616f9b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c690761783507ad4-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/5a7dbca54c2fc4dd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/d4e99c199dab3055-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/9ae1ac821a4debaf-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/ec1b1cbc512bc43e-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/463cef7d4672ba68-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/ebec2867f40f78ec-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/d607327a37a507c7-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/2e1b830192b7974a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3aa27b2eb5f698f7-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3478b6abef19b3b3-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b6f2eee8808a2bb4-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc2003170c651d45-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/d43ef4503e5571d0-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/3281a323710833ec-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/684e5662d94c69e1-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/97b12f7b815cdf76-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/19fc70611c7ee6d5-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/01721b474504e7d6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/3ccf24bed29cbb82-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/be2416cbb012c256-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/7524e759b2d52ce2-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/83feb047e42e457a-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/40bfb1458eaec497-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/8ea51a27e153ec43-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/035951aefad7b653-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_Fallback_355ef5;src:local("Arial");ascent-override:75.41%;descent-override:20.23%;line-gap-override:0.00%;size-adjust:135.93%}.__className_355ef5{font-family:__IBM_Plex_Mono_355ef5,__IBM_Plex_Mono_Fallback_355ef5}.__variable_355ef5{--font-mono:"__IBM_Plex_Mono_355ef5","__IBM_Plex_Mono_Fallback_355ef5"} \ No newline at end of file diff --git a/renterd/assets/_next/static/css/5f9e4e46c5fc6694.css b/renterd/assets/_next/static/css/5f9e4e46c5fc6694.css new file mode 100644 index 000000000..26c09b436 --- /dev/null +++ b/renterd/assets/_next/static/css/5f9e4e46c5fc6694.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}.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-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}.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}.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-\[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-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[300px\]{width:300px}.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-\[200px\]{min-width:200px}.min-w-\[250px\]{min-width:250px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.\!max-w-\[1200px\]{max-width:1200px!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-\[800px\]{max-width:800px}.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-screen-xl{max-width:1280px}.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\%\],.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-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-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-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-\[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-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}.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-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-6{padding-top:1.5rem}.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-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-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\]\:flex-1>div{flex:1 1 0%}.\[\&\>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:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1eff7769948a8c71-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7a86083759ce0787-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1fece7a471d60ffe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/94e828afa3939314-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/dcb90225ac4215b0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/21379288e5de0162-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/20a0263cfae743ff-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/a06cddabfd904d07-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/c05280b20c19cff6-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ab3a7057d2c303a3-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e7a1d48695380088-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/7a514966b24fa042-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/f34054e2970d3793-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/ee809f9c8637ac35-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/416dffb3eaba61b5-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/b2613c7882fb9dad-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/00b652cd5acf4d1a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/318cd1ba86719051-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/26570e7eecd756a7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/6ad357e49f846140-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c1dadd6c99c0900a-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/9fb8e434756a520e-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/b83e9714dba3a7b2-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/7729f7b3bc7fa987-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/69dc0d8a22bc572a-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/d752111844abddfa-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/7fe39de114f984a0-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/6c817bbad1cfd130-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/bc7cd6cbdb8771c6-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/1b708ab38c59f94d-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/ed08f0e693ce6a65-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/0be44b380099e057-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f4ebea4f2ece3dbe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f7e3cefe6d9fda21-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/26d0ad28b444f0fb-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/d704a8fea67672dc-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/3ce4c920cddd7002-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1027f57de01c0b24-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/23313877d5d6ff1b-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/00417edf5e44282b-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/228a95c965c5f90b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/97c8a55b2cb1421c-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/86d6d32ab6c2e21d-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/07304b90e9b5ca40-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/54f3953b28e50f98-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a40ccebe730e6b34-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/01ec6e01ff4830ae-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/34d8d58b783ee6bb-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/3763ada0a9bb1988-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/787b0654beea4191-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/2c3c1f0838a71cfb-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/47bcda1e7b1ac8be-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/bed76354f405346d-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c70aa70a01eaecff-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/24cfcc12c15b03b9-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/29ffcd3df3f1cb91-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/3cef106cd115e360-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/a0c95037dd5c9387-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/e889cd181219a83f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/6d6d0e4a023f9f33-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/0148c4ca3456ea72-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/4184cf5f191b83db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/28cea0425961ab58-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b4c759cba7a5f011-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/de555e6bc944c11a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/791334aa8b2b679f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/a2411df190893074-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/60d74363e715829c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/eb37c9fe4776ea97-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc381c5935034aa5-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f565fad065ab4cf3-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f9946f06d70a1b5b-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/d1f5f89450ecd78c-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ebcf93a611f94ec0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ec50b434b597bc61-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/6be22a85bef54f08-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/9491f41002d34397-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/afba6ba6bf9157e8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/be843c5b0882ad66-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/67aea609c6135b3b-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/09b62d668edb05d1-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/10446295ae7f2657-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b6ecfd81ed9f83c9-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/08404bcfb1dae67a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_Fallback_829fdc;src:local("Arial");ascent-override:101.44%;descent-override:27.22%;line-gap-override:0.00%;size-adjust:101.04%}.__className_829fdc{font-family:__IBM_Plex_Sans_829fdc,__IBM_Plex_Sans_Fallback_829fdc}.__variable_829fdc{--font-sans:"__IBM_Plex_Sans_829fdc","__IBM_Plex_Sans_Fallback_829fdc"}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/43f58290d48b3e4f-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/f7b042c81aa9dac9-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/5f52e8aafa6d55e1-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7c8d3f8a7910b37f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/c91ca22957702d7a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e31631a967fe3515-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e46a860e09e79916-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/2d1700372dfaaa94-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/27834a3ea5568a72-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ba1ff977fd46651f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/aa5329918e5352b7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/3546445dbedfe8e0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/a329a67c917d0d83-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/32ef35af86a1df18-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/42c2d543c4ca0ff8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/4acd96e66b7a15d8-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c00fdcaa534cf51c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9b64de7575b01f6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/e05a5a1d4048d7df-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9387c470a117487-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5b5f10d1030076fd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/66b34bbb56a523d8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/62e8d71f5f62d0a9-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/4f5bd398699bdcf0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5873ad5359ff35c9-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/a08baca5e17c57be-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b8347de82b1bd9a8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/99163ae90df46b27-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b9432a067aca8720-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/c3f479ae50d16e35-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/d4eddeab410cd094-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1674d377433d7de6-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/f65f080f6ad9aa76-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/7a44530bd17b4a4c-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/37e85b36581a02ab-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/1e0eb4a7325b5d14-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/136ae42764b7e0db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/b17f4305e2f0c22a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a7f64a09f7737545-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/98bcafdc59ee6d65-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/ce562f20499ad585-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/57699fff66d5761c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/e490b1ecb6589d48-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/524be5e37a616f9b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c690761783507ad4-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/5a7dbca54c2fc4dd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/d4e99c199dab3055-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/9ae1ac821a4debaf-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/ec1b1cbc512bc43e-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/463cef7d4672ba68-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/ebec2867f40f78ec-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/d607327a37a507c7-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/2e1b830192b7974a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3aa27b2eb5f698f7-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3478b6abef19b3b3-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b6f2eee8808a2bb4-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc2003170c651d45-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/d43ef4503e5571d0-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/3281a323710833ec-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/684e5662d94c69e1-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/97b12f7b815cdf76-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/19fc70611c7ee6d5-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/01721b474504e7d6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/3ccf24bed29cbb82-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/be2416cbb012c256-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/7524e759b2d52ce2-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/83feb047e42e457a-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/40bfb1458eaec497-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/8ea51a27e153ec43-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/035951aefad7b653-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_Fallback_355ef5;src:local("Arial");ascent-override:75.41%;descent-override:20.23%;line-gap-override:0.00%;size-adjust:135.93%}.__className_355ef5{font-family:__IBM_Plex_Mono_355ef5,__IBM_Plex_Mono_Fallback_355ef5}.__variable_355ef5{--font-mono:"__IBM_Plex_Mono_355ef5","__IBM_Plex_Mono_Fallback_355ef5"} \ No newline at end of file diff --git a/renterd/assets/_next/static/pUK19bnAeEqrmnyAmSqxv/_buildManifest.js b/renterd/assets/_next/static/pUK19bnAeEqrmnyAmSqxv/_buildManifest.js deleted file mode 100644 index 2d99a5e96..000000000 --- a/renterd/assets/_next/static/pUK19bnAeEqrmnyAmSqxv/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-4ab0960f6e90701e.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/config":["static/chunks/pages/config-d8d148c599d1a047.js"],"/contracts":["static/chunks/pages/contracts-640dafa6a2a2d93c.js"],"/files/[[...path]]":["static/chunks/pages/files/[[...path]]-c82a9e65ee4ec6a1.js"],"/hosts":["static/chunks/pages/hosts-30d65c92fad9af92.js"],"/login":["static/chunks/pages/login-bb79acc5d7deabf7.js"],"/node":["static/chunks/pages/node-5ec03621858475c3.js"],"/wallet":["static/chunks/pages/wallet-a150a7ebcb4b7f87.js"],sortedPages:["/","/_app","/_error","/config","/contracts","/files/[[...path]]","/hosts","/login","/node","/wallet"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/renterd/assets/config.html b/renterd/assets/config.html index e256e2693..674eee4dd 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 409279dfa..a6a487135 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/files/[[...path]].html b/renterd/assets/files/[[...path]].html index 3874be1ba..0ee16a874 100644 --- a/renterd/assets/files/[[...path]].html +++ b/renterd/assets/files/[[...path]].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 18dda09c0..7d8e23726 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 457a3cac2..af15b45e1 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/login.html b/renterd/assets/login.html index 7a026a9dd..f694fc56a 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 5b43683f0..f441d019b 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 d94b2bd23..4e7a8405c 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 7948b0dd0..fc9c91b57 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/-VaFmkpDs7jFNYMVVPBZd/_buildManifest.js b/walletd/assets/_next/static/-VaFmkpDs7jFNYMVVPBZd/_buildManifest.js new file mode 100644 index 000000000..817275cd4 --- /dev/null +++ b/walletd/assets/_next/static/-VaFmkpDs7jFNYMVVPBZd/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-d98e16df1531abb8.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/login":["static/chunks/pages/login-f0d5cec642c5a492.js"],"/node":["static/chunks/pages/node-91739a95c606f293.js"],"/wallets/[id]":["static/chunks/pages/wallets/[id]-cc4401dc6913421a.js"],"/wallets/[id]/addresses":["static/chunks/pages/wallets/[id]/addresses-0293a6a0f9c52b24.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/XCcM5sGUYKYVr3ONK6Q_y/_ssgManifest.js b/walletd/assets/_next/static/-VaFmkpDs7jFNYMVVPBZd/_ssgManifest.js similarity index 100% rename from walletd/assets/_next/static/XCcM5sGUYKYVr3ONK6Q_y/_ssgManifest.js rename to walletd/assets/_next/static/-VaFmkpDs7jFNYMVVPBZd/_ssgManifest.js diff --git a/walletd/assets/_next/static/XCcM5sGUYKYVr3ONK6Q_y/_buildManifest.js b/walletd/assets/_next/static/XCcM5sGUYKYVr3ONK6Q_y/_buildManifest.js deleted file mode 100644 index e77d03d86..000000000 --- a/walletd/assets/_next/static/XCcM5sGUYKYVr3ONK6Q_y/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-086084f526563103.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/login":["static/chunks/pages/login-9085f2074cdef143.js"],"/node":["static/chunks/pages/node-271f1ff3afa7dada.js"],"/wallets/[id]":["static/chunks/pages/wallets/[id]-68f33fcde63a6656.js"],"/wallets/[id]/addresses":["static/chunks/pages/wallets/[id]/addresses-e1893c62263ff35a.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/chunks/pages/_app-7ba1c75c55019635.js b/walletd/assets/_next/static/chunks/pages/_app-7ba1c75c55019635.js new file mode 100644 index 000000000..d6e364c7c --- /dev/null +++ b/walletd/assets/_next/static/chunks/pages/_app-7ba1c75c55019635.js @@ -0,0 +1,76 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{75102:function(e,t,r){"use strict";r.d(t,{An:function(){return u},Ht:function(){return c},R7:function(){return p},RH:function(){return h}});var n,i,o=r(97699),a=r.n(o);(n=i||(i={})).blue="blue",n.nanoS="nanoS",n.nanoSP="nanoSP",n.nanoX="nanoX",n.stax="stax";let s={[i.blue]:{id:i.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:e=>4096},[i.nanoS]:{id:i.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:e=>{var t;return a().lt(null!==(t=a().coerce(e))&&void 0!==t?t:"","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:e=>32},[i.nanoX]:{id:i.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:e=>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:e=>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 l=Object.values(s),u=11415,c=e=>{let t=l.find(t=>t.legacyUsbProductId===e);if(t)return t;let r=e>>8,n=l.find(e=>e.productIdMM===r);return n},d=[],f={};for(let e in s){let t=s[e],{bluetoothSpec:r}=t;if(r)for(let e=0;ed,p=e=>f[e.toLowerCase()]},9341:function(e,t,r){"use strict";var n,i;r.d(t,{qX:function(){return c},vs:function(){return d},WC:function(){return m},PS:function(){return p},FB:function(){return f},wp:function(){return h},rZ:function(){return v}});let o={},a={},s=(e,t)=>{a[e]=t},l=e=>{class t extends Error{constructor(r,n,i){if(super(r||e,i),Object.setPrototypeOf(this,t.prototype),this.name=e,n)for(let e in n)this[e]=n[e];if(i&&"object"==typeof i&&"cause"in i&&!("cause"in this)){let e=i.cause;this.cause=e,"stack"in e&&(this.stack=this.stack+"\nCAUSE: "+e.stack)}}}return o[e]=t,t};l("AccountNameRequired"),l("AccountNotSupported"),l("AmountRequired"),l("BluetoothRequired"),l("BtcUnmatchedApp"),l("CantOpenDevice"),l("CashAddrNotSupported"),l("ClaimRewardsFeesWarning"),l("CurrencyNotSupported"),l("DeviceAppVerifyNotSupported"),l("DeviceGenuineSocketEarlyClose"),l("DeviceNotGenuine"),l("DeviceOnDashboardExpected"),l("DeviceOnDashboardUnexpected"),l("DeviceInOSUExpected"),l("DeviceHalted"),l("DeviceNameInvalid"),l("DeviceSocketFail"),l("DeviceSocketNoBulkStatus");let u=l("LockedDeviceError");l("UnresponsiveDeviceError");let c=l("DisconnectedDevice"),d=l("DisconnectedDeviceDuringOperation");l("DeviceExtractOnboardingStateError"),l("DeviceOnboardingStatePollingError"),l("EnpointConfig"),l("EthAppPleaseEnableContractData"),l("FeeEstimationFailed"),l("FirmwareNotRecognized"),l("HardResetFail"),l("InvalidXRPTag"),l("InvalidAddress"),l("InvalidNonce"),l("InvalidAddressBecauseDestinationIsAlsoSource"),l("LatestMCUInstalledError"),l("UnknownMCU"),l("LedgerAPIError"),l("LedgerAPIErrorWithMessage"),l("LedgerAPINotAvailable"),l("ManagerAppAlreadyInstalled"),l("ManagerAppRelyOnBTC"),l("ManagerAppDepInstallRequired"),l("ManagerAppDepUninstallRequired"),l("ManagerDeviceLocked"),l("ManagerFirmwareNotEnoughSpace"),l("ManagerNotEnoughSpace"),l("ManagerUninstallBTCDep"),l("NetworkDown"),l("NoAddressesFound"),l("NotEnoughBalance"),l("NotEnoughBalanceToDelegate"),l("NotEnoughBalanceInParentAccount"),l("NotEnoughSpendableBalance"),l("NotEnoughBalanceBecauseDestinationNotCreated"),l("NoAccessToCamera"),l("NotEnoughGas"),l("NotEnoughGasSwap"),l("NotSupportedLegacyAddress"),l("GasLessThanEstimate"),l("PriorityFeeTooLow"),l("PriorityFeeTooHigh"),l("PriorityFeeHigherThanMaxFee"),l("MaxFeeTooLow"),l("PasswordsDontMatch"),l("PasswordIncorrect"),l("RecommendSubAccountsToEmpty"),l("RecommendUndelegation"),l("TimeoutTagged"),l("UnexpectedBootloader"),l("MCUNotGenuineToDashboard"),l("RecipientRequired"),l("UnavailableTezosOriginatedAccountReceive"),l("UnavailableTezosOriginatedAccountSend"),l("UpdateFetchFileFail"),l("UpdateIncorrectHash"),l("UpdateIncorrectSig"),l("UpdateYourApp"),l("UserRefusedDeviceNameChange"),l("UserRefusedAddress"),l("UserRefusedFirmwareUpdate"),l("UserRefusedAllowManager"),l("UserRefusedOnDevice");let f=l("TransportOpenUserCancelled");l("TransportInterfaceNotAvailable");let h=l("TransportRaceCondition");l("TransportWebUSBGestureRequired"),l("TransactionHasBeenValidatedError"),l("DeviceShouldStayInApp"),l("WebsocketConnectionError"),l("WebsocketConnectionFailed"),l("WrongDeviceForAccount"),l("WrongAppForCurrency"),l("ETHAddressNonEIP"),l("CantScanQRCode"),l("FeeNotLoaded"),l("FeeRequired"),l("FeeTooHigh"),l("PendingOperation"),l("SyncError"),l("PairingFailed"),l("PeerRemovedPairing"),l("GenuineCheckFailed"),l("LedgerAPI4xx"),l("LedgerAPI5xx"),l("FirmwareOrAppUpdateRequired"),l("OpReturnSizeLimit"),l("DustLimit"),l("LanguageNotFound"),l("NoDBPathGiven"),l("DBWrongPassword"),l("DBNotReset"),(i=n||(n={})).Unknown="Unknown",i.LocationServicesDisabled="LocationServicesDisabled",i.LocationServicesUnauthorized="LocationServicesUnauthorized",i.BluetoothScanStartFailed="BluetoothScanStartFailed";class p extends Error{constructor(e,t){let r="TransportError";super(e||r),this.name=r,this.message=e,this.stack=Error(e).stack,this.id=t}}s("TransportError",e=>new p(e.message,e.id));let m={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 v(e){let t=Object.keys(m).find(t=>m[t]===e)||"UNKNOWN_ERROR",r=function(e){switch(e){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<=e&&e<=28671)return"Internal error, please report"}(e)||t,n=e.toString(16),i=`Ledger device: ${r} (0x${n})`;if(e===m.LOCKED_DEVICE)throw new u(i);this.name="TransportStatusError",this.message=i,this.stack=Error(i).stack,this.statusCode=e,this.statusText=t}v.prototype=Error(),s("TransportStatusError",e=>new v(e.statusCode))},73866:function(e,t,r){"use strict";r.d(t,{Z:function(){return e_}});var n,i=r(97790),o=r(9341),a=r(75102),s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function l(e,t){function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function u(e){return"function"==typeof e}var c=!1,d={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,c=value},get useDeprecatedSynchronousErrorHandling(){return c}};function f(e){setTimeout(function(){throw e},0)}var h={closed:!0,next:function(e){},error:function(e){if(d.useDeprecatedSynchronousErrorHandling)throw e;f(e)},complete:function(){}},p=Array.isArray||function(e){return e&&"number"==typeof e.length};function m(e){return null!==e&&"object"==typeof e}var v=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),g=function(){var e;function t(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return t.prototype.unsubscribe=function(){if(!this.closed){var e,r=this._parentOrParents,n=this._ctorUnsubscribe,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(null!==r)for(var a=0;a{let n=(function(e,t){let r=[];for(let n=0,i=t(0);nr-(0===e?5:3)).map((e,r)=>{let n=A.alloc(0===r?5:3);return n.writeUInt8(5,0),n.writeUInt16BE(r,1),0===r&&n.writeUInt16BE(t.length,3),A.concat([n,e])});return new S(t=>{let r=!1;return(function(){var t,i,o,a;return t=this,i=void 0,o=void 0,a=function*(){for(let t of n){if(r)return;yield e(t)}},new(o||(o=Promise))(function(e,r){function n(e){try{l(a.next(e))}catch(e){r(e)}}function s(e){try{l(a.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof o?r:new o(function(e){e(r)})).then(n,s)}l((a=a.apply(t,i||[])).next())})})().then(()=>{r=!0,t.complete()},e=>{r=!0,(0,k.c)("ble-error","sendAPDU failure "+String(e)),t.error(e)}),()=>{r||((0,k.c)("ble-verbose","sendAPDU interruption"),r=!0)}})};var T=r(48834).lW;let _=e=>S.create(t=>{let r=0,n=0,i=T.alloc(0),a=e.subscribe({complete:()=>{t.error(new o.qX),a.unsubscribe()},error:e=>{(0,k.c)("ble-error","in receiveAPDU "+String(e)),t.error(e),a.unsubscribe()},next:e=>{let s=e.readUInt8(0),l=e.readUInt16BE(1),u=e.slice(3);if(5!==s){t.error(new o.PS("Invalid tag "+s.toString(16),"InvalidTag"));return}if(r!==l){t.error(new o.PS("BLE: Invalid sequence number. discontinued chunk. Received "+l+" but expected "+r,"InvalidSequence"));return}if(0===l&&(n=u.readUInt16BE(0),u=u.slice(2)),r++,(i=T.concat([i,u])).length>n){t.error(new o.PS("BLE: received too much data. discontinued chunk. Received "+i.length+" but expected "+n,"BLETooMuchData"));return}i.length===n&&(t.next(i),t.complete(),a.unsubscribe())}});return()=>{a.unsubscribe()}});function M(e,t){return function(r){if("function"!=typeof e)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new N(e,t))}}var N=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new R(e,this.project,this.thisArg))},e}(),R=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return l(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(x),P=function(e){return function(t){for(var r=0,n=e.length;r0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(z);function W(){for(var e,t,r=[],n=0;n1&&"number"==typeof r[r.length-1]&&(i=r.pop())):"number"==typeof a&&(i=r.pop()),null===o&&1===r.length&&r[0]instanceof S)?r[0]:(void 0===(e=i)&&(e=Number.POSITIVE_INFINITY),function e(t,r,n){return(void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof r)?function(i){return i.pipe(e(function(e,n){return B(t(e,n)).pipe(M(function(t,i){return r(e,t,n,i)}))},n))}:("number"==typeof r&&(n=r),function(e){return e.lift(new H(t,n))})}(j,e))((t=o)?V(r,t):new S(P(r)))}var q=new S(function(e){return e.complete()});function G(){}var Z=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new Y(e,this.nextOrObserver,this.error,this.complete))},e}(),Y=function(e){function t(t,r,n,i){var o=e.call(this,t)||this;return o._tapNext=G,o._tapError=G,o._tapComplete=G,o._tapError=n||G,o._tapComplete=i||G,u(r)?(o._context=o,o._tapNext=r):r&&(o._context=r,o._tapNext=r.next||G,o._tapError=r.error||G,o._tapComplete=r.complete||G),o}return l(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()},t}(x),X=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),K=function(e){function t(t,r){var n=e.call(this)||this;return n.subject=t,n.subscriber=r,n.closed=!1,n}return l(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}},t}(g),J=function(e){function t(t){var r=e.call(this,t)||this;return r.destination=t,r}return l(t,e),t}(x),Q=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return l(t,e),t.prototype[b]=function(){return new J(this)},t.prototype.lift=function(e){var t=new ee(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new X;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),i=0;i1)){this.connection=null;return}var r=this.connection,n=e._connection;this.connection=null,n&&(!r||n===r)&&n.unsubscribe()},t}(x),ei={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(n=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return l(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return!e&&(this._isComplete=!1,(e=this._connection=new g).add(this.source.subscribe(new eo(this.getSubject(),this))),e.closed&&(this._connection=null,e=g.EMPTY)),e},t.prototype.refCount=function(){return et()(this)},t}(S).prototype)._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}},eo=function(e){function t(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return l(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(J),ea=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(e);return i.add(t.subscribe(n)),i},e}();function es(){return new Q}var el=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),eu=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new ec(e,this.predicate,this.thisArg))},e}(),ec=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return l(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}t&&this.destination.next(e)},t}(x),ed=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),ef=function(){function e(e){if(this.total=e,this.total<0)throw new ed}return e.prototype.call=function(e,t){return t.subscribe(new eh(e,this.total))},e}(),eh=function(e){function t(t,r){var n=e.call(this,t)||this;return n.total=r,n.count=0,n}return l(t,e),t.prototype._next=function(e){var t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))},t}(x),ep=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new em(e,this.defaultValue))},e}(),em=function(e){function t(t,r){var n=e.call(this,t)||this;return n.defaultValue=r,n.isEmpty=!0,n}return l(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(x),ev=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new eg(e,this.errorFactory))},e}(),eg=function(e){function t(t,r){var n=e.call(this,t)||this;return n.errorFactory=r,n.hasValue=!1,n}return l(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(x),ey=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new eb(e))},e}(),eb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype._next=function(e){},t}(x),ex=r(48834).lW;let ew=e=>S.create(t=>{function r(e){let r=e.target;r.value&&t.next(ex.from(r.value.buffer))}return(0,k.c)("ble-verbose","start monitor "+e.uuid),e.startNotifications().then(()=>{e.addEventListener("characteristicvaluechanged",r)}),()=>{(0,k.c)("ble-verbose","end monitor "+e.uuid),e.stopNotifications()}});var eE=r(48834).lW,ej=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};let eS=()=>{let{bluetooth:e}=navigator;if(void 0===e)throw Error("web bluetooth not supported");return e},eC=()=>S.create(e=>{let t=eS(),r=t=>{e.next(t.value)};t.addEventListener("availabilitychanged",r);let n=!1;return t.getAvailability().then(t=>{n||e.next(t)}),()=>{n=!0,t.removeEventListener("availabilitychanged",r)}}),ek={},eA=()=>({filters:(0,a.RH)().map(e=>({services:[e]}))}),eO=e=>ej(void 0,void 0,void 0,function*(){if(!e.gatt)throw Error("bluetooth gatt not found");let[t]=yield e.gatt.getPrimaryServices();if(!t)throw Error("bluetooth service not found");let r=(0,a.R7)(t.uuid);if(!r)throw Error("bluetooth service infos not found");return[t,r]});class eT extends i.ZP{static listen(e){let t;(0,k.c)("ble-verbose","listen...");let r=eS();return r.requestDevice(eA()).then(r=>{t||(e.next({type:"add",descriptor:r}),e.complete())},t=>{e.error(new o.FB(t.message))}),{unsubscribe:function(){t=!0}}}static open(e){return ej(this,void 0,void 0,function*(){return function e(t,r){return ej(this,void 0,void 0,function*(){var n;let i;if("string"==typeof t){if(ek[t])return(0,k.c)("ble-verbose","Transport in cache, using that."),ek[t];let e=eS();i=yield e.requestDevice(eA())}else i=t;i.gatt.connected||((0,k.c)("ble-verbose","not connected. connecting..."),yield i.gatt.connect());let[a,s]=yield eO(i),{deviceModel:l,writeUuid:u,notifyUuid:c}=s,[d,f]=yield Promise.all([a.getCharacteristic(u),a.getCharacteristic(c)]),h=ew(f).pipe((n=e=>{(0,k.c)("ble-frame","<= "+e.toString("hex"))},function(e){return e.lift(new Z(n,void 0,void 0))}),function(e){var t;return et()(function(e){if("function"==typeof t)return e.lift(new ea(es,t));var r=Object.create(e,ei);return r.source=e,r.subjectFactory=es,r}(e))}),p=h.subscribe(),m=new eT(i,d,h,l);if(!i.gatt.connected)throw new o.qX;ek[m.id]=m;let v=e=>{console.log("onDisconnect!",e),delete ek[m.id],m.notYetDisconnected=!1,p.unsubscribe(),i.removeEventListener("gattserverdisconnected",v),(0,k.c)("ble-verbose",`BleTransport(${m.id}) disconnected`),m.emit("disconnect",e)};i.addEventListener("gattserverdisconnected",v);let g=Date.now();try{yield m.inferMTU()}finally{let e=Date.now();e-g<1e3&&(r=!1),r&&(yield i.gatt.disconnect(),yield new Promise(e=>setTimeout(e,4e3)))}return r?e(i,!1):m})}(e,!0)})}constructor(e,t,r,n){super(),this.mtuSize=20,this.notYetDisconnected=!0,this.write=e=>ej(this,void 0,void 0,function*(){(0,k.c)("ble-frame","=> "+e.toString("hex")),yield this.writeCharacteristic.writeValue(e)}),this.id=e.id,this.device=e,this.writeCharacteristic=t,this.notifyObservable=r,this.deviceModel=n,(0,k.c)("ble-verbose",`BleTransport(${String(this.id)}) new instance`)}inferMTU(){return ej(this,void 0,void 0,function*(){let e=23;if(yield this.exchangeAtomicImpl(()=>ej(this,void 0,void 0,function*(){try{var t;e=(yield W(this.notifyObservable.pipe(function(e,t){var r=arguments.length>=2;return function(t){var n,i,o;return t.pipe(e?(n=function(r,n){return e(r,n,t)},function(e){return e.lift(new eu(n,void 0))}):j,function(e){return e.lift(new ef(1))},r?(i=void 0,i=null,function(e){return e.lift(new ep(i))}):(o=function(){return new el},function(e){return e.lift(new ev(o))}))}}(e=>8===e.readUInt8(0)),M(e=>e.readUInt8(5))),(t=()=>B(this.write(eE.from([8,0,0,0,0]))),new S(function(e){var r,n,i;try{n=t()}catch(t){e.error(t);return}return(n?B(n):r?(i=r,new S(function(e){return i.schedule(function(){return e.complete()})})):q).subscribe(e)})).pipe(function(e){return e.lift(new ey)})).toPromise())+3}catch(e){throw(0,k.c)("ble-error","inferMTU got "+String(e)),this.device.gatt.disconnect(),e}})),e>23){let t=e-3;(0,k.c)("ble-verbose",`BleTransport(${String(this.id)}) mtu set to ${String(t)}`),this.mtuSize=t}return this.mtuSize})}exchange(e){return ej(this,void 0,void 0,function*(){let t=yield this.exchangeAtomicImpl(()=>ej(this,void 0,void 0,function*(){try{let t=e.toString("hex");(0,k.c)("apdu",`=> ${t}`);let r=yield W(this.notifyObservable.pipe(_),O(this.write,e,this.mtuSize)).toPromise(),n=r.toString("hex");return(0,k.c)("apdu",`<= ${n}`),r}catch(e){throw(0,k.c)("ble-error","exchange got "+String(e)),this.notYetDisconnected&&this.device.gatt.disconnect(),e}}));return t})}setScrambleKey(){}close(){return ej(this,void 0,void 0,function*(){this.exchangeBusyPromise&&(yield this.exchangeBusyPromise)})}}eT.isSupported=()=>Promise.resolve().then(eS).then(()=>!0,()=>!1),eT.observeAvailability=e=>eC().subscribe(e),eT.list=()=>Promise.resolve([]),eT.disconnect=e=>ej(void 0,void 0,void 0,function*(){(0,k.c)("ble-verbose",`user disconnect(${e})`);let t=ek[e];t&&t.device.gatt.disconnect()});var e_=eT},27748:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(97790),i=r(9341),o=r(48834).lW;let a={data:o.alloc(0),dataLength:0,sequence:0};var s=(e,t)=>({makeBlocks(r){let n=o.concat([function(e){let t=o.alloc(2);return t.writeUInt16BE(e,0),t}(r.length),r]),i=t-5,a=Math.ceil(n.length/i);n=o.concat([n,o.alloc(a*i-n.length+1).fill(0)]);let s=[];for(let t=0;ts&&(n=n.slice(0,s)),{data:n,dataLength:s,sequence:l}},getReducedResult(e){if(e&&e.dataLength===e.data.length)return e.data}}),l=r(75102),u=r(91288),c=r(48834).lW,d=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};let f=[{vendorId:l.An}],h=()=>{let{hid:e}=navigator;if(!e)throw new i.PS("navigator.hid is not supported","HIDNotSupported");return e};function p(){return d(this,void 0,void 0,function*(){let e=yield h().requestDevice({filters:f});return Array.isArray(e)?e:[e]})}function m(){return d(this,void 0,void 0,function*(){let e=yield h().getDevices();return e.filter(e=>e.vendorId===l.An)})}class v extends n.ZP{constructor(e){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(e=>{this.inputCallback=e}),this.onInputReport=e=>{let t=c.from(e.data.buffer);this.inputCallback?(this.inputCallback(t),this.inputCallback=null):this.inputs.push(t)},this._disconnectEmitted=!1,this._emitDisconnect=e=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",e))},this.exchange=e=>d(this,void 0,void 0,function*(){let t=yield this.exchangeAtomicImpl(()=>d(this,void 0,void 0,function*(){let t,r;let{channel:n,packetSize:i}=this;(0,u.c)("apdu","=> "+e.toString("hex"));let o=s(n,i),a=o.makeBlocks(e);for(let e=0;e{if(e&&e.message&&e.message.includes("write"))throw this._emitDisconnect(e),new i.vs(e.message);throw e});return t}),this.device=e,this.deviceModel="number"==typeof e.productId?(0,l.Ht)(e.productId):void 0,e.addEventListener("inputreport",this.onInputReport)}static request(){return d(this,void 0,void 0,function*(){let[e]=yield p();return v.open(e)})}static openConnected(){return d(this,void 0,void 0,function*(){let e=yield m();return 0===e.length?null:v.open(e[0])})}static open(e){return d(this,void 0,void 0,function*(){yield e.open();let t=new v(e),r=n=>{e===n.device&&(h().removeEventListener("disconnect",r),t._emitDisconnect(new i.qX))};return h().addEventListener("disconnect",r),t})}close(){return d(this,void 0,void 0,function*(){yield this.exchangeBusyPromise,this.device.removeEventListener("inputreport",this.onInputReport),yield this.device.close()})}setScrambleKey(){}}v.isSupported=()=>Promise.resolve(!!(window.navigator&&window.navigator.hid)),v.list=m,v.listen=e=>{let t=!1;return(function(){return d(this,void 0,void 0,function*(){let e=yield m();if(e.length>0)return e[0];let t=yield p();return t[0]})})().then(r=>{if(r){if(!t){let t="number"==typeof r.productId?(0,l.Ht)(r.productId):void 0;e.next({type:"add",descriptor:r,deviceModel:t}),e.complete()}}else e.error(new i.FB("Access denied to use Ledger device"))},t=>{e.error(new i.FB(t.message))}),{unsubscribe:function(){t=!0}}};var g=v},97790:function(e,t,r){"use strict";var n=r(22699),i=r.n(n),o=r(9341),a=r(48834).lW,s=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};class l{constructor(){this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new(i()),this.send=(e,t,r,n,i=a.alloc(0),l=[o.WC.OK])=>s(this,void 0,void 0,function*(){if(i.length>=256)throw new o.PS("data.length exceed 256 bytes limit. Got: "+i.length,"DataLengthTooBig");let s=yield this.exchange(a.concat([a.from([e,t,r,n]),a.from([i.length]),i])),u=s.readUInt16BE(s.length-2);if(!l.some(e=>e===u))throw new o.rZ(u);return s}),this.exchangeAtomicImpl=e=>s(this,void 0,void 0,function*(){let t;if(this.exchangeBusyPromise)throw new o.wp("An action was already pending on the Ledger device. Please deny or reconnect.");let r=new Promise(e=>{t=e});this.exchangeBusyPromise=r;let n=!1,i=setTimeout(()=>{n=!0,this.emit("unresponsive")},this.unresponsiveTimeout);try{let t=yield e();return n&&this.emit("responsive"),t}finally{clearTimeout(i),t&&t(),this.exchangeBusyPromise=null}}),this._appAPIlock=null}exchange(e){throw Error("exchange not implemented")}exchangeBulk(e,t){let r=!1;return s(this,void 0,void 0,function*(){if(!r)for(let n of e){let e=yield this.exchange(n);if(r)return;let i=e.readUInt16BE(e.length-2);if(i!==o.WC.OK)throw new o.rZ(i);t.next(e)}}).then(()=>!r&&t.complete(),e=>!r&&t.error(e)),{unsubscribe:()=>{r=!0}}}setScrambleKey(e){}close(){return Promise.resolve()}on(e,t){this._events.on(e,t)}off(e,t){this._events.removeListener(e,t)}emit(e,...t){this._events.emit(e,...t)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(e){this.exchangeTimeout=e}setExchangeUnresponsiveTimeout(e){this.unresponsiveTimeout=e}static create(e=3e3,t){return new Promise((r,n)=>{let i=!1,a=this.listen({next:t=>{i=!0,a&&a.unsubscribe(),s&&clearTimeout(s),this.open(t.descriptor,e).then(r,n)},error:e=>{s&&clearTimeout(s),n(e)},complete:()=>{s&&clearTimeout(s),i||n(new o.PS(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),s=t?setTimeout(()=>{a.unsubscribe(),n(new o.PS(this.ErrorMessage_ListenTimeout,"ListenTimeout"))},t):null})}decorateAppAPIMethods(e,t,r){for(let n of t)e[n]=this.decorateAppAPIMethod(n,e[n],e,r)}decorateAppAPIMethod(e,t,r,n){return(...i)=>s(this,void 0,void 0,function*(){let{_appAPIlock:a}=this;if(a)return Promise.reject(new o.PS("Ledger Device is busy (lock "+a+")","TransportLocked"));try{return this._appAPIlock=e,this.setScrambleKey(n),yield t.apply(r,i)}finally{this._appAPIlock=null}})}}l.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",l.ErrorMessage_NoDeviceFound="No Ledger device found",t.ZP=l},91288:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=0,i=[],o=function(e,t,r){var o={type:e,id:String(++n),date:new Date};t&&(o.message=t),r&&(o.data=r),function(e){for(var t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1] + * @license MIT + */let n=r(95766),i=r(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(I(e,Uint8Array)){let t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);let i=function(e){var t;if(s.isBuffer(e)){let t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){let t=e.length<0?0:0|h(e.length),r=a(t);for(let n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(i)return n?-1:P(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(o=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,i){_(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function j(e,t,r,n,i){_(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function S(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function C(e,t,r,n,o){return t=+t,r>>>=0,o||S(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,o){return t=+t,r>>>=0,o||S(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(s.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=V(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&N(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&N(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=V(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&N(e,this.length-8);let n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&N(e,this.length-8);let n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=V(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=V(function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=V(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=V(function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function _(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new A.ERR_OUT_OF_RANGE("value",n,e)}M(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&N(i,n.length-(o+1))}function M(e,t){if("number"!=typeof e)throw new A.ERR_INVALID_ARG_TYPE(t,"number",e)}function N(e,t,r){if(Math.floor(e)!==e)throw M(e,r),new A.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new A.ERR_BUFFER_OUT_OF_BOUNDS;throw new A.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}O("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),O("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=T(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=T(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let R=/[^+/0-9A-Za-z-_]/g;function P(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function L(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,r,n){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let F=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function V(e){return"undefined"==typeof BigInt?B:e}function B(){throw Error("BigInt not supported")}},52180:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",r=0;r>>18&63)+this._encodeByte(n>>>12&63)+this._encodeByte(n>>>6&63)+this._encodeByte(n>>>0&63)}var i=e.length-r;if(i>0){var n=e[r]<<16|(2===i?e[r+1]<<8:0);t+=this._encodeByte(n>>>18&63)+this._encodeByte(n>>>12&63),2===i?t+=this._encodeByte(n>>>6&63):t+=this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),r=e.length-t,n=new Uint8Array(this.maxDecodedLength(r)),i=0,o=0,a=0,s=0,l=0,u=0,c=0;o>>4,n[i++]=l<<4|u>>>2,n[i++]=u<<6|c,a|=256&s,a|=256&l,a|=256&u,a|=256&c;if(o>>4,a|=256&s,a|=256&l),o>>2,a|=256&u),o>>8&6)+(51-e>>>8&-75)+(61-e>>>8&-15)+(62-e>>>8&3))},e.prototype._decodeChar=function(e){return 256+((42-e&e-44)>>>8&-256+e-43+62)+((46-e&e-48)>>>8&-256+e-47+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var r=e.length-1;r>=0&&e[r]===this._paddingCharacter;r--)t++;if(e.length<4||t>2)throw Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=i;var o=new i;t.encode=function(e){return o.encode(e)},t.decode=function(e){return o.decode(e)};var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype._encodeByte=function(e){var t=e;return String.fromCharCode(t+=65+(25-e>>>8&6)+(51-e>>>8&-75)+(61-e>>>8&-13)+(62-e>>>8&49))},t.prototype._decodeChar=function(e){return 256+((44-e&e-46)>>>8&-256+e-45+62)+((94-e&e-96)>>>8&-256+e-95+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},t}(i);t.URLSafeCoder=a;var s=new a;t.encodeURLSafe=function(e){return s.encode(e)},t.decodeURLSafe=function(e){return s.decode(e)},t.encodedLength=function(e){return o.encodedLength(e)},t.maxDecodedLength=function(e){return o.maxDecodedLength(e)},t.decodedLength=function(e){return o.decodedLength(e)}},99985:function(e,t,r){"use strict";t.Z=s;var n=a(r(13980)),i=a(r(2784)),o=a(r(23442));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.captureDragArea,r=void 0===t||t,n=e.snapToPointer,a=e.children,s=e.dx,l=e.dy,u=e.height,c=e.onDragEnd,d=e.onDragMove,f=e.onDragStart,h=e.resetOnStart,p=e.width,m=e.x,v=e.y,g=e.isDragging,y=e.restrict,b=e.restrictToPath,x=(0,o.default)({resetOnStart:h,snapToPointer:void 0===n||n,onDragEnd:c,onDragMove:d,onDragStart:f,x:m,y:v,dx:s,dy:l,isDragging:g,restrict:y,restrictToPath:b});return i.default.createElement(i.default.Fragment,null,x.isDragging&&r&&i.default.createElement("rect",{width:p,height:u,onPointerDown:x.dragStart,onPointerMove:x.dragMove,onPointerUp:x.dragEnd,fill:"transparent"}),a(x))}s.propTypes={children:n.default.func.isRequired,width:n.default.number.isRequired,height:n.default.number.isRequired,captureDragArea:n.default.bool,isDragging:n.default.bool}},23442:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0===e?{}:e,r=t.resetOnStart,u=void 0!==r&&r,d=t.snapToPointer,f=void 0===d||d,h=t.onDragEnd,p=t.onDragMove,m=t.onDragStart,v=t.x,g=t.y,y=t.dx,b=t.dy,x=t.isDragging,w=t.restrict,E=void 0===w?{}:w,j=t.restrictToPath,S=(0,n.useRef)({x:v,y:g,dx:y,dy:b}),C=(0,a.default)({x:v,y:g,dx:null!=y?y:0,dy:null!=b?b:0,isDragging:!1}),k=C[0],A=C[1],O=(0,n.useState)(new i.Point({x:0,y:0})),T=O[0],_=O[1];(0,n.useEffect)(function(){(S.current.x!==v||S.current.y!==g||S.current.dx!==y||S.current.dy!==b)&&(S.current={x:v,y:g,dx:y,dy:b},A(function(e){return c({},e,{x:v,y:g,dx:null!=y?y:0,dy:null!=b?b:0})}))}),(0,n.useEffect)(function(){void 0!==x&&k.isDragging!==x&&A(function(e){return c({},e,{isDragging:x})})},[k.isDragging,x,A]);var M=(0,l.default)(j),N=(0,n.useCallback)(function(e){e.persist(),A(function(t){var r=t.x,n=t.y,a=t.dx,l=t.dy,c=new i.Point({x:((void 0===r?0:r)||0)+a,y:((void 0===n?0:n)||0)+l}),d=(0,o.localPoint)(e)||new i.Point({x:0,y:0}),h=f?d:c,p=(0,s.default)(h,M,E);return _((0,i.subtractPoints)(c,d)),{isDragging:!0,dx:u?0:t.dx,dy:u?0:t.dy,x:u?p.x:p.x-t.dx,y:u?p.y:p.y-t.dy}},m&&function(t){m(c({},t,{event:e}))})},[m,u,E,M,A,f]),R=(0,n.useCallback)(function(e){e.persist(),A(function(t){if(!t.isDragging)return t;var r=t.x,n=t.y,a=(0,o.localPoint)(e)||new i.Point({x:0,y:0}),l=f?a:(0,i.sumPoints)(a,T),u=(0,s.default)(l,M,E);return c({},t,{dx:u.x-(void 0===r?0:r),dy:u.y-(void 0===n?0:n)})},p&&function(t){t.isDragging&&p(c({},t,{event:e}))})},[A,p,f,T,M,E]),P=(0,n.useCallback)(function(e){e.persist(),A(function(e){return c({},e,{isDragging:!1})},h&&function(t){h(c({},t,{event:e}))})},[h,A]);return c({},k,{dragEnd:P,dragMove:R,dragStart:N})};var n=r(2784),i=r(61305),o=r(65319),a=u(r(37016)),s=u(r(60890)),l=u(r(32722));function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=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);!(n=a()).done;){var s=n.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,n.default)(e.x,null!=(o=r.xMin)?o:-1/0,null!=(a=r.xMax)?a:1/0),y:(0,n.default)(e.y,null!=(s=r.yMin)?s:-1/0,null!=(l=r.yMax)?l:1/0)}};var n=o(r(30968)),i=o(r(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){return(0,n.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,r){if(void 0===r&&(r=1),!e)return[];for(var n=[],i=e.getTotalLength(),o=0;o<=i;o+=r){var a=e.getPointAtLength(o).matrixTransform(t);n.push(a)}return n}(e,t)},[null==e?void 0:e.getTotalLength()])};var n=r(2784)},37016:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,n.useState)(e),r=t[0],i=t[1],o=(0,n.useRef)(null),a=(0,n.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,n.useLayoutEffect)(function(){o.current&&(o.current(r),o.current=null)},[r]),[r,a]};var n=r(2784)},65319:function(e,t,r){"use strict";r.r(t),r.d(t,{localPoint:function(){return n.Z},touchPoint:function(){return i.Z}});var n=r(91032),i=r(49833)},91032:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(49833),i=r(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,n.Z)(e,t);if((0,i.cO)(e)){var r=e.target;if(r)return(0,n.Z)(r,e)}return null}},49833:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(19067),i=r(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,r=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return r?{x:r.x+r.width/2,y:r.y+r.height/2}:o({},a)}(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=r.x,u.y=r.y,u=u.matrixTransform(l.inverse()),new n.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new n.Z({x:r.x-c.left-e.clientLeft,y:r.y-c.top-e.clientTop})}},44321:function(e,t,r){"use strict";function n(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(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)}r.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return n},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},19067:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=function(){function e(e){var t=e.x,r=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===r?0:r}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,r){"use strict";r.r(t),r.d(t,{Point:function(){return n.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var n=r(19067);function i(e,t){return new n.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new n.Z({x:e.x-t.x,y:e.y-t.y})}},47440:function(e,t,r){"use strict";t.Z=function(e){var t=e.from,r=void 0===t?{x:0,y:0}:t,a=e.to,l=void 0===a?{x:1,y:1}:a,u=e.fill,c=e.className,d=e.innerRef,f=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,o),h=r.x===l.x||r.y===l.y;return n.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:r.x,y1:r.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var n=a(r(2784)),i=a(r(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.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 r=Array(arguments.length),n=0;n=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([r]):a[t]=a[t]?a[t]+", "+r:r)}),a}},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,r){"use strict";var n=r(48834).lW,i=r(93044);e.exports=function(e,t){t=t||new FormData;var r=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return!function e(n,a){if(i.isPlainObject(n)||i.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),i.forEach(n,function(r,n){if(!i.isUndefined(r)){var s,l=a?a+"."+n:n;if(r&&!a&&"object"==typeof r){if(i.endsWith(n,"{}"))r=JSON.stringify(r);else if(i.endsWith(n,"[]")&&(s=i.toArray(r))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(r,l)}}),r.pop()}else t.append(a,o(n))}(e),t}},17525:function(e,t,r){"use strict";var n=r(29241).version,i=r(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new i(o(n," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,r){"use strict";var n,i,o=r(73644),a=Object.prototype.toString,s=(n=Object.create(null),function(e){var t=a.call(e);return n[t]||(n[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]"===a.call(e)}var b=l("URLSearchParams");function x(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r0;)a[o=n[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return -1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(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 r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},6391:function(e,t,r){var n;!function(i){"use strict";var o,a=/^-?(?:\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,r,n=1,i=e.length,o=e[0]+"";nu^r?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^r?1:-1;return l==u?0:l>u^r?1:-1}function m(e,t,r,n){if(er||e!==l(e))throw Error(u+(n||"Argument")+("number"==typeof e?er?" 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,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else tM?h.c=h.e=null:e.e<_?h.c=[h.e=0]:(h.e=e.e,h.c=e.c.slice());return}if((u="number"==typeof e)&&0*e==0){if(h.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,s=e;s>=10;s/=10,o++);o>M?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return j(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,D.length,"Base"),10==t&&I)return z(h=new F(e),k+h.e+1,A);if(f=String(e),u="number"==typeof e){if(0*e!=0)return j(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(r=D.slice(0,t),o=s=0,d=f.length;sr.indexOf(n=f.charAt(s))){if("."==n){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return j(h,String(e),u,t)}u=!1,(o=(f=E(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=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((o=o-s-1)>M)h.c=h.e=null;else if(o<_)h.c=[h.e=0];else{if(h.e=o,h.c=[],s=(o+1)%14,o<0&&(s+=14),s=T)?g(l,a):y(l,a,"0");else if(o=(e=z(new F(e),t,r)).e,s=(l=h(e.c)).length,1==n||2==n&&(t<=o||o<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function B(e,t){for(var r,n=1,i=new F(e[0]);n=10;i/=10,n++);return(r=n+14*r-1)>M?e.c=e.e=null:r<_?e.c=[e.e=0]:(e.e=r,e.c=t),e}function z(e,t,r,n){var i,o,a,u,c,f,h,p=e.c;if(p){e:{for(i=1,u=p[0];u>=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(n){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(n=n||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),n=r<4?(h||n)&&(0==r||r==(e.s<0?3:2)):h>5||5==h&&(4==r||n||6==r&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,n?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),n)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>M?e.c=e.e=null:e.e<_&&(e.c=[e.e=0])}return e}function H(e){var t,r=e.e;return null===r?e.toString():(t=h(e.c),t=r<=O||r>=T?g(t,r):y(t,r,"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,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(r=e[t],0,1e9,t),k=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(r=e[t],0,8,t),A=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(m(r[0],-1e9,0,t),m(r[1],0,1e9,t),O=r[0],T=r[1]):(m(r,-1e9,1e9,t),O=-(T=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)m(r[0],-1e9,-1,t),m(r[1],1,1e9,t),_=r[0],M=r[1];else if(m(r,-1e9,1e9,t),r)_=-(M=r<0?-r:r);else throw Error(u+t+" cannot be zero: "+r)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(r=e[t])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))N=r;else throw N=!r,Error(u+"crypto unavailable")}else N=r}else throw Error(u+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(r=e[t],0,9,t),R=r),e.hasOwnProperty(t="POW_PRECISION")&&(m(r=e[t],0,1e9,t),P=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))L=r;else throw Error(u+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(u+t+" invalid: "+r);I="0123456789"==r.slice(0,10),D=r}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:k,ROUNDING_MODE:A,EXPONENTIAL_AT:[O,T],RANGE:[_,M],CRYPTO:N,MODULO_MODE:R,POW_PRECISION:P,FORMAT:L,ALPHABET:D}},F.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!F.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t=1e14||r!==l(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},F.maximum=F.max=function(){return B(arguments,S.lt)},F.minimum=F.min=function(){return B(arguments,S.gt)},F.random=(r=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,n,i,o,a,c=0,f=[],h=new F(C);if(null==e?e=k:m(e,0,1e9),o=s(e/14),N){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw N=!1,Error(u+"crypto unavailable")}if(!N)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),F.sum=function(){for(var e=1,t=arguments,r=new F(t[0]);er-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,l,u,c,d,f,p,m,v=r.indexOf("."),g=k,b=A;for(v>=0&&(c=P,P=0,r=r.replace(".",""),f=(m=new F(n)).pow(r.length-v),P=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(r,n,i,a?(s=D,e):(s=e,D))).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=o,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])r=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,r="";v<=c;r+=s.charAt(p[v++]));r=y(r,u,s.charAt(0))}return r}}(),w=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,s){var u,c,d,h,p,m,v,g,y,b,x,w,E,j,S,C,k,A=n.s==i.s?1:-1,O=n.c,T=i.c;if(!O||!O[0]||!T||!T[0])return new F(n.s&&i.s&&(O?!T||O[0]!=T[0]:T)?O&&0==O[0]||!T?0*A:A/0:NaN);for(y=(g=new F(A)).c=[],A=o+(c=n.e-i.e)+1,s||(s=1e14,c=f(n.e/14)-f(i.e/14),A=A/14|0),d=0;T[d]==(O[d]||0);d++);if(T[d]>(O[d]||0)&&c--,A<0)y.push(1),h=!0;else{for(j=O.length,C=T.length,d=0,A+=2,(p=l(s/(T[0]+1)))>1&&(T=e(T,p,s),O=e(O,p,s),C=T.length,j=O.length),E=C,x=(b=O.slice(0,C)).length;x=s/2&&S++;do{if(p=0,(u=t(T,b,C,x))<0){if(w=b[0],C!=x&&(w=w*s+(b[1]||0)),(p=l(w/S))>1)for(p>=s&&(p=s-1),v=(m=e(T,p,s)).length,x=b.length;1==t(m,b,v,x);)p--,r(m,Ct(T,b,C,x);)p++,r(b,C=10;A/=10,d++);z(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,j=function(e,t,r,a){var s,l=r?t:t.replace(x,"");if(b.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!r&&(l=l.replace(n,function(e,t,r){return s="x"==(r=r.toLowerCase())?16:"b"==r?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new F(l,s);if(F.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},S.absoluteValue=S.abs=function(){var e=new F(this);return e.s<0&&(e.s=1),e},S.comparedTo=function(e,t){return p(this,new F(e,t))},S.decimalPlaces=S.dp=function(e,t){var r,n,i;if(null!=e)return m(e,0,1e9),null==t?t=A:m(t,0,8),z(new F(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-f(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},S.dividedBy=S.div=function(e,t){return w(this,new F(e,t),k,A)},S.dividedToIntegerBy=S.idiv=function(e,t){return w(this,new F(e,t),0,1)},S.exponentiatedBy=S.pow=function(e,t){var r,n,i,o,a,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);(n=!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 o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new F(d?1/o:o);P&&(o=s(P/14+2))}for(c?(r=new F(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new F(C);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):n&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(z(e=e.times(r),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?h:(d&&(h=C.div(h)),t?h.mod(t):o?z(h,P,A,a):h)},S.integerValue=function(e){var t=new F(this);return null==e?e=A:m(e,0,8),z(t,t.e+1,e)},S.isEqualTo=S.eq=function(e,t){return 0===p(this,new F(e,t))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(e,t){return p(this,new F(e,t))>0},S.isGreaterThanOrEqualTo=S.gte=function(e,t){return 1===(t=p(this,new F(e,t)))||0===t},S.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},S.isLessThan=S.lt=function(e,t){return 0>p(this,new F(e,t))},S.isLessThanOrEqualTo=S.lte=function(e,t){return -1===(t=p(this,new F(e,t)))||0===t},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new F(e,t)).s,!a||!t)return new F(NaN);if(a!=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==A?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[r++]=0);for(t=1e14-1;n>a;){if(u[--n]=0;){for(r=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,r=((u=h*u+s%1e7*1e7+m[o]+r)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=r}return r?++n:m.splice(0,1),U(e,m,n)},S.negated=function(){var e=new F(this);return e.s=-e.s||null,e},S.plus=function(e,t){var r,n=this.s;if(t=(e=new F(e,t)).s,!n||!t)return new F(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new F(n/0);if(!a[0]||!s[0])return s[0]?e:new F(a[0]?this:0*n)}if(i=f(i),o=f(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),U(e,a,o)},S.precision=S.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=A:m(t,0,8),z(new F(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},S.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},S.squareRoot=S.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,l=k+4,u=new F("0.5");if(1!==a||!o||!o[0])return new F(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,r=new F(t)):r=new F(a+""),r.c[0]){for((a=(s=r.e)+l)<3&&(a=0);;)if(i=r,r=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(r.c)).slice(0,a)){if(r.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}n=d?c+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):c}return(r.prefix||"")+n+(r.suffix||"")},S.toFraction=function(e){var t,r,n,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new F(e)).isInteger()&&(s.c||1!==s.s)||s.lt(C)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new F(this);for(t=new F(C),c=r=new F(C),n=l=new F(C),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=M,M=1/0,s=new F(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=r.plus(f.times(n))).comparedTo(e);)r=n,n=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(r),n,0,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=this.s,o*=2,p=1>w(c,n,o,A).minus(this).abs().comparedTo(w(l,r,o,A).minus(this).abs())?[c,n]:[l,r],M=a,p},S.toNumber=function(){return+H(this)},S.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),V(this,e,t,2)},S.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=T?g(h(r.c),i):y(h(r.c),i,"0"):10===e&&I?t=y(h((r=z(new F(r),k+i+1,A)).c),r.e,"0"):(m(e,2,D.length,"Base"),t=E(y(h(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},S.valueOf=S.toJSON=function(){return H(this)},S._isBigNumber=!0,null!=t&&F.set(t),F}()).default=o.BigNumber=o,void 0!==(n=(function(){return o}).call(t,r,t,e))&&(e.exports=n)}(0)},70651:function(e,t,r){let n=r(7967);function i(e,t,r){let n=e[t]+e[r],i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=4294967296);let o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,r,n,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[n]^c[e],m=c[n+1]^c[e+1];c[n]=m,c[n+1]=p,i(c,r,n),p=c[t]^c[r],m=c[t+1]^c[r+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[n]^c[e],m=c[n+1]^c[e+1],c[n]=p>>>16^m<<16,c[n+1]=m>>>16^p<<16,i(c,r,n),p=c[t]^c[r],m=c[t+1]^c[r+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 r=0;for(r=0;r<16;r++)c[r]=e.h[r],c[r+16]=l[r];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),r=0;r<32;r++)d[r]=a(e.b,4*r);for(r=0;r<12;r++)s(0,8,16,24,u[16*r+0],u[16*r+1]),s(2,10,18,26,u[16*r+2],u[16*r+3]),s(4,12,20,28,u[16*r+4],u[16*r+5]),s(6,14,22,30,u[16*r+6],u[16*r+7]),s(0,10,20,30,u[16*r+8],u[16*r+9]),s(2,12,22,24,u[16*r+10],u[16*r+11]),s(4,14,16,26,u[16*r+12],u[16*r+13]),s(6,8,18,28,u[16*r+14],u[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^c[r]^c[r+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,r,n){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(r&&16!==r.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.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,r&&h.set(r,32),n&&h.set(n,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let r=0;r>2]>>8*(3&r);return t}function g(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));let a=p(r,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,r,i,o){let a=g(e,t,r,i,o);return n.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,r){let n=r(7967);function i(e,t,r,n,i,a){l[e]=l[e]+l[t]+i,l[n]=o(l[n]^l[e],16),l[r]=l[r]+l[n],l[t]=o(l[t]^l[r],12),l[e]=l[e]+l[t]+a,l[n]=o(l[n]^l[e],8),l[r]=l[r]+l[n],l[t]=o(l[t]^l[r],7)}function o(e,t){return e>>>t^e<<32-t}let a=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 r=0;for(r=0;r<8;r++)l[r]=e.h[r],l[r+8]=a[r];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),r=0;r<16;r++){var n,o;u[r]=(n=e.b)[o=4*r]^n[o+1]<<8^n[o+2]<<16^n[o+3]<<24}for(r=0;r<10;r++)i(0,4,8,12,u[s[16*r+0]],u[s[16*r+1]]),i(1,5,9,13,u[s[16*r+2]],u[s[16*r+3]]),i(2,6,10,14,u[s[16*r+4]],u[s[16*r+5]]),i(3,7,11,15,u[s[16*r+6]],u[s[16*r+7]]),i(0,5,10,15,u[s[16*r+8]],u[s[16*r+9]]),i(1,6,11,12,u[s[16*r+10]],u[s[16*r+11]]),i(2,7,8,13,u[s[16*r+12]],u[s[16*r+13]]),i(3,4,9,14,u[s[16*r+14]],u[s[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=l[r]^l[r+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let r=t?t.length:0;if(t&&!(r>0&&r<=32))throw Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(f(n,t),n.c=64),n}function f(e,t){for(let r=0;r>2]>>8*(3&r)&255;return t}function p(e,t,r){r=r||32,e=n.normalizeInput(e);let i=d(r,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,r){let i=p(e,t,r);return n.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,r){let n=r(70651),i=r(39962);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.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){let r=new TextEncoder;t=r.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,r,n){let i="\n"+e+" = ";for(let o=0;o + * @license MIT + */var n=r(95766),i=r(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(T(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var i=function(e){if(s.isBuffer(e)){var t,r=0|h(e.length),n=a(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(e).length;default:if(i)return n?-1:k(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function j(e,t,r,n,o){return t=+t,r>>>=0,o||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,o){return t=+t,r>>>=0,o||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);in.length?s.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(s.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),d=0;d>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function A(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var _=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},72779:function(e,t){var r;/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,console&&console.warn&&console.warn(u)}return e}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 d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var u=l.length,c=p(l,u),r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},73463:function(e,t,r){"use strict";var n=r(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),v=0;v */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<>1,c=-7,d=r?i-1:0,f=r?-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+=n;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:(h?-1:1)*(1/0);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*m}},39515:function(e,t,r){var n=r(38761)(r(37772),"DataView");e.exports=n},89612:function(e,t,r){var n=r(52118),i=r(96909),o=r(98138),a=r(4174),s=r(7942);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}},34893:function(e){e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n=200&&(d=l,f=!1,t=new n(t));t:for(;++c0&&o(c)?r>1?e(c,r-1,o,a,s):n(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,r){var n=r(55463)();e.exports=n},26548:function(e,t,r){var n=r(15308),i=r(90249);e.exports=function(e,t){return e&&n(e,t,i)}},13324:function(e,t,r){var n=r(17297),i=r(33812);e.exports=function(e,t){t=n(t,e);for(var r=0,o=t.length;null!=e&&r=120&&g.length>=120)?new n(h&&g):void 0}g=e[0];var y=-1,b=p[0];t:for(;++yi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new n}else p=t?[]:h;t:for(;++u=i?e:n(e,t,r)}},79882:function(e,t,r){var n=r(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},92175:function(e,t,r){e=r.nmd(e);var n=r(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},34727:function(e,t,r){var n=r(79882);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},70169:function(e,t,r){var n=r(50857),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,r){var n=r(79882);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},27520:function(e,t,r){var n=r(4795);e.exports=function(e,t){if(e!==t){var r=void 0!==e,i=null===e,o=e==e,a=n(e),s=void 0!==t,l=null===t,u=t==t,c=n(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!r&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==r[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++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&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,r){var n=r(22218);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},92411:function(e,t,r){var n=r(89612),i=r(80235),o=r(10326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},36417:function(e,t,r){var n=r(27937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,r){var n=r(27937);e.exports=function(e){return n(this,e).get(e)}},79493:function(e,t,r){var n=r(27937);e.exports=function(e){return n(this,e).has(e)}},24150:function(e,t,r){var n=r(27937);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},73477:function(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},77777:function(e,t,r){var n=r(30733);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},99191:function(e,t,r){var n=r(38761)(Object,"create");e.exports=n},54248:function(e,t,r){var n=r(60241)(Object.keys,Object);e.exports=n},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},4146:function(e,t,r){e=r.nmd(e);var n=r(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.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(r){return e(t(r))}}},43114:function(e,t,r){var n=r(49432),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},15243:function(e,t,r){var n=r(80235);e.exports=function(){this.__data__=new n,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},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,r){var n=r(80235),i=r(10326),o=r(96738);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},66024:function(e){e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n=t||r<0||v&&n>=c}function x(){var e,r,n,o=i();if(b(o))return w(o);f=setTimeout(x,(e=o-h,r=o-p,n=t-e,v?s(n,c-r):n))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function E(){var e,r=i(),n=b(r);if(l=arguments,u=this,h=r,n){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,n(r)&&(m=!!r.leading,c=(v="maxWait"in r)?a(o(r.maxWait)||0,t):c,g="trailing"in r?!!r.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,r){var n=r(61655),i=r(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,n).replace(a,"")}},17335:function(e,t,r){var n=r(85246),i=r(62034),o=r(36060),a=r(93746),s=o(function(e,t){return a(e)?n(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,r){e.exports=r(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,r){var n=r(62034);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},72579:function(e,t,r){var n=r(13324);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},3440:function(e,t,r){var n=r(13940),i=r(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,r){o.call(e,r)?e[r].push(t):n(e,r,[t])});e.exports=a},93352:function(e,t,r){var n=r(32726),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},95041:function(e,t,r){var n=r(20187),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},23059:function(e){e.exports=function(e){return e}},30898:function(e,t,r){var n=r(50343),i=r(88390),o=r(36060),a=r(5642),s=o(function(e){var t=n(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},79631:function(e,t,r){var n=r(15183),i=r(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n: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,r){var n=r(61049),i=r(61158);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},93746:function(e,t,r){var n=r(67878),i=r(15125);e.exports=function(e){return i(e)&&n(e)}},73226:function(e,t,r){e=r.nmd(e);var n=r(37772),i=r(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},18149:function(e,t,r){var n=r(88746);e.exports=function(e,t){return n(e,t)}},61049:function(e,t,r){var n=r(53366),i=r(29259);e.exports=function(e){if(!i(e))return!1;var t=n(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}},4714:function(e,t,r){var n=r(74511),i=r(47826),o=r(4146),a=o&&o.isMap,s=a?i(a):n;e.exports=s},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}},97030:function(e,t,r){var n=r(53366),i=r(47353),o=r(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==u}},43679:function(e,t,r){var n=r(8109),i=r(47826),o=r(4146),a=o&&o.isSet,s=a?i(a):n;e.exports=s},4795:function(e,t,r){var n=r(53366),i=r(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},77598:function(e,t,r){var n=r(35522),i=r(47826),o=r(4146),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},90249:function(e,t,r){var n=r(1634),i=r(86411),o=r(67878);e.exports=function(e){return o(e)?n(e):i(e)}},18582:function(e,t,r){var n=r(1634),i=r(18390),o=r(67878);e.exports=function(e){return o(e)?n(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},19950:function(e,t,r){var n=r(13940),i=r(26548),o=r(68286);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,t(e,i,o),e)}),r}},34519:function(e,t,r){var n=r(13940),i=r(26548),o=r(68286);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,i,t(e,i,o))}),r}},30733:function(e,t,r){var n=r(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},98537:function(e,t,r){var n=r(84565),i=r(97263)(function(e,t,r){n(e,t,r)});e.exports=i},34291:function(e){e.exports=function(){}},61100:function(e,t,r){var n=r(37772);e.exports=function(){return n.Date.now()}},17620:function(e,t,r){var n=r(50343),i=r(18874),o=r(29078),a=r(17297),s=r(752),l=r(48642),u=r(29097),c=r(76939),d=u(function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),r),u&&(r=i(r,7,l));for(var d=t.length;d--;)o(r,t[d]);return r});e.exports=d},65798:function(e,t,r){var n=r(20256),i=r(82952),o=r(21401),a=r(33812);e.exports=function(e){return o(e)?n(a(e)):i(e)}},57370:function(e,t,r){var n=r(34311)(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});e.exports=n},829:function(e,t,r){var n=r(62034),i=r(23813),o=r(36060),a=r(82406),s=o(function(e,t){if(null==e)return[];var r=t.length;return r>1&&a(e,t[0],t[1])?t=[]:r>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,n(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,r){var n=r(54073),i=r(29259);e.exports=function(e,t,r){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,r){var n=r(36473),i=r(89419),o=r(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var r=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=n(s,t);++r1,m=(e,t,r)=>{let n=e[f].get(t);if(n){let t=n.value;if(v(e,t)){if(y(e,n),!e[s])return}else r&&(e[h]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},v=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]},g=e=>{if(e[o]>e[i])for(let t=e[d].tail;e[o]>e[i]&&null!==t;){let r=t.prev;y(e,t),t=r}},y=(e,t)=>{if(t){let r=t.value;e[u]&&e[u](r.key,r.value),e[o]-=r.length,e[f].delete(r.key),e[d].removeNode(t)}};class b{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}let x=(e,t,r,n)=>{let i=r.value;v(e,i)&&(y(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[i]=e.max||1/0;let t=e.length||p;if(this[a]="function"!=typeof t?p:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[u]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[i]=e||1/0,g(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[l]=e,g(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[a]&&(this[a]=e,this[o]=0,this[d].forEach(e=>{e.length=this[a](e.value,e.key),this[o]+=e.length})),g(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){let n=r.prev;x(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){let n=r.next;x(this,e,r,t),r=n}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach(e=>this[u](e.key,e.value)),this[f]=new Map,this[d]=new n,this[o]=0}dump(){return this[d].map(e=>!v(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let n=r?Date.now():0,s=this[a](t,e);if(this[f].has(e)){if(s>this[i])return y(this,this[f].get(e)),!1;let a=this[f].get(e),l=a.value;return this[u]&&!this[c]&&this[u](e,l.value),l.now=n,l.maxAge=r,l.value=t,this[o]+=s-l.length,l.length=s,this.get(e),g(this),!0}let h=new b(e,t,s,n,r);return h.length>this[i]?(this[u]&&this[u](e,t),!1):(this[o]+=h.length,this[d].unshift(h),this[f].set(e,this[d].head),g(this),!0)}has(e){if(!this[f].has(e))return!1;let t=this[f].get(e).value;return!v(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){let e=this[d].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[f].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[f].forEach((e,t)=>m(this,t,!1))}}},53207:function(e,t,r){var n=r(96570);n.prototype.formulaEval=function(){"use strict";for(var e,t,r,n=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=n.pop(),t=n.pop(),n.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=n.pop(),t=n.pop(),r=n.pop(),n.push({value:i[o].show+"("+r.value+","+t.value+","+e.value+")",type:12}));return n[0].value},e.exports=n},66655:function(e,t,r){"use strict";var n=r(72346);function i(e,t){for(var r=0;rp.length-2?p.length-1:e.length-l;r>0;r--)if(void 0!==p[r])for(i=0;i0&&Sr)s.push(e);else{for(;r>=i&&!c||c&&i1)throw new n.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},n.eval=function(e,t,r){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==r?this.lex(e,t).toPostfix().postfixEval(r):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=n},86570:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(15610)}])},70697:function(e,t,r){"use strict";r.d(t,{u:function(){return s}});var n=r(52322),i=r(74766),o=r(22038),a=r(83753);function s(){let{openDialog:e}=(0,a.Rh)();return(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,n.jsx)(l,{title:o.z.walletAddNew.title,description:o.z.walletAddNew.description,onSelect:()=>e("walletAddNew")}),(0,n.jsx)(l,{title:o.z.walletAddRecover.title,description:o.z.walletAddRecover.description,onSelect:()=>e("walletAddRecover")}),(0,n.jsx)(l,{title:o.z.walletAddWatch.title,description:o.z.walletAddWatch.description,onSelect:()=>e("walletAddWatch")}),(0,n.jsx)(l,{title:o.z.walletAddLedger.title,description:o.z.walletAddLedger.description,onSelect:()=>e("walletAddLedger")})]})}function l(e){let{title:t,description:r,disabled:o,onSelect:a}=e;return(0,n.jsx)(i.Wh3,{onClick:a,disabled:o,children:(0,n.jsxs)("div",{className:"flex flex-col gap-2 text-start",children:[(0,n.jsx)(i.X6q,{size:"20",children:t}),(0,n.jsx)(i.nvN,{size:"14",color:"subtle",children:r})]})})}},18250:function(e,t,r){"use strict";r.d(t,{g:function(){return s}});var n=r(52322),i=r(74766),o=r(20876),a=r(83753);function s(e){let{wallet:{id:t,type:r,status:s,lock:l,unlock:u},...c}=e,{openDialog:d}=(0,a.Rh)();return(0,n.jsxs)(i.h_2,{...c,children:[(0,n.jsx)(i.Juw,{children:"Actions"}),"seed"===r?"unlocked"===s?(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>l(),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.Lur,{})}),"Lock wallet"]}):(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>u(),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.VmF,{})}),"Unlock wallet"]}):null,(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>d("walletUpdate",{walletId:t}),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.dr6,{})}),"Edit wallet"]}),(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>d("walletRemove",{walletId:t}),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.Jrl,{})}),"Delete wallet"]})]})}},71930:function(e,t,r){"use strict";r.d(t,{_:function(){return i},h:function(){return o}});var n=r(41345);let i={home:"/",wallet:{base:"/wallets/",view:"/wallets/[id]",addresses:"/wallets/[id]/addresses"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},o=n.HE},22038:function(e,t,r){"use strict";r.d(t,{_:function(){return s},z:function(){return a}});var n=r(52322),i=r(74766),o=r(20876);let a={walletAddNew:{title:"Create a wallet",description:(0,n.jsxs)(n.Fragment,{children:["Generate a new wallet seed. The seed will never be sent to"," ",(0,n.jsx)(i.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddRecover:{title:"Recover a wallet",description:(0,n.jsxs)(n.Fragment,{children:["Restore a wallet from seed. The seed will never be sent to"," ",(0,n.jsx)(i.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddWatch:{title:"Add a watch-only wallet",description:(0,n.jsx)(n.Fragment,{children:"Create a watch-only wallet that tracks a set of addresses."})},walletAddLedger:{title:"Add a Ledger hardware wallet",description:(0,n.jsx)(n.Fragment,{children:"Add a Ledger hardware wallet. Transactions are signed with your hardware device."})}},s={seed:{title:"Seed-based wallet",icon:(0,n.jsx)(o.sZp,{})},watch:{title:"Watch-only wallet",icon:(0,n.jsx)(o.xVB,{})},ledger:{title:"Ledger hardware wallet",icon:(0,n.jsx)(o._Gh,{})}}},45283:function(e,t,r){"use strict";r.d(t,{OZ:function(){return m},Jz:function(){return p}});var n=r(52322),i=r(74766),o=r(41345),a=r(2784),s=r(81612),l=r(20876),u=r(83753);function c(e){let{address:{walletId:t,id:r,index:a},...s}=e,{openDialog:c}=(0,u.Rh)(),d=(0,o.XF)();return(0,n.jsxs)(i.h_2,{...s,children:[(0,n.jsx)(i.Juw,{children:"Actions"}),(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>c("confirm",{title:void 0!==a?"Remove address ".concat(a):"Remove address",action:"Remove",variant:"red",body:(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to remove the following address?"}),(0,n.jsxs)(i.nvN,{size:"14",font:"mono",children:[(0,i.I13)(r).slice(0,40),"..."]})]}),onConfirm:async()=>{let e=await d.delete({params:{id:t,addr:r}});e.error?(0,i.OHV)("Failed to delete address: ".concat(e.error)):(0,i.OPV)(void 0!==a?"Address ".concat(a," removed."):"Address removed.")}}),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(l.Jrl,{})}),"Remove address"]})]})}let d=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,n.jsx)(c,{trigger:(0,n.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,n.jsx)(l.iG7,{})}),contentProps:{align:"start"},address:t})}},{id:"address",label:"address",category:"general",fixed:!0,render:e=>{let{data:{address:t,description:r}}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(i.XxW,{maxLength:40,value:t,type:"address"}),r&&(0,n.jsx)(i.ua7,{content:(0,n.jsx)("pre",{children:(0,n.jsx)(i.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:r})}),children:(0,n.jsx)(i.nvN,{size:"12",children:r.split("\n")[0]})})]})}},{id:"index",label:"index",category:"general",render:e=>{let{data:{index:t}}=e;return void 0===t?null:(0,n.jsx)("div",{className:"flex flex-col gap-2",children:(0,n.jsx)(i.xvT,{children:t.toLocaleString()})})}}];var f=r(5632);let h=(0,a.createContext)({}),p=()=>(0,a.useContext)(h);function m(e){let{children:t}=e,r=function(){let{openDialog:e}=(0,u.Rh)(),t=(0,f.useRouter)(),r=t.query.id,n=(0,o.bd)({disabled:!r,params:{id:r}}),l=(0,a.useMemo)(()=>{if(!n.data)return null;let t=Object.entries(n.data||{}).map(t=>{let[n,i]=t;return{id:n,address:n,description:i.description,index:i.index,publicKey:i.publicKey,walletId:r,onClick:()=>e("addressUpdate",{walletId:r,address:n})}});return t},[n.data,e,r]),{filters:c,setFilter:h,removeFilter:p,removeLastFilter:m,resetFilters:v}=(0,i.Wdu)(),{configurableColumns:g,enabledColumns:y,sortableColumns:b,toggleColumnVisibility:x,setColumnsVisible:w,setColumnsHidden:E,toggleSort:j,setSortDirection:S,setSortField:C,sortField:k,sortDirection:A,resetDefaultColumnVisibility:O}=(0,i.oy6)("walletd/v0/addresses",{columns:d,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),T=(0,i._4u)({dataset:l,filters:c,sortField:k,sortDirection:A}),_=(0,a.useMemo)(()=>d.filter(e=>e.fixed||y.includes(e.id)),[y]),M=(0,i.c2j)(l,n.isValidating,n.error,c),N=(l||[]).reduce((e,t)=>{let{index:r}=t;return r>e?r:e},-1);return{dataState:M,error:n.error,datasetCount:(null==T?void 0:T.length)||0,columns:_,dataset:T,lastIndex:N,configurableColumns:g,enabledColumns:y,sortableColumns:b,toggleColumnVisibility:x,setColumnsVisible:w,setColumnsHidden:E,toggleSort:j,setSortDirection:S,setSortField:C,sortField:k,filters:c,setFilter:h,removeFilter:p,removeLastFilter:m,resetFilters:v,sortDirection:A,resetDefaultColumnVisibility:O}}();return(0,n.jsx)(h.Provider,{value:r,children:t})}},81612:function(e,t,r){"use strict";r.d(t,{Fo:function(){return o},gd:function(){return n},nw:function(){return i}});let n=["actions","address","index"],i="index",o=[{id:"address",label:"address",category:"general"},{id:"index",label:"index",category:"general"}]},83753:function(e,t,r){"use strict";let n;r.d(t,{Tu:function(){return eB},xQ:function(){return eU},Rh:function(){return eV}});var i=r(52322),o=r(2784),a=r(74766),s=r(41345),l=r(70697);function u(e){let{open:t,trigger:r,onOpenChange:n}=e;return(0,i.jsx)(a.VqE,{title:"Add Wallet",trigger:r,open:t,onOpenChange:n,contentVariants:{className:"max-w-[600px]"},children:(0,i.jsx)(l.u,{})})}var c=r(20876),d=r(63955),f=r(6110);let h="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var p={randomUUID:h};let m=new Uint8Array(16),v=[];for(let e=0;e<256;++e)v.push((e+256).toString(16).slice(1));var g=function(e,t,r){if(p.randomUUID&&!t&&!e)return p.randomUUID();e=e||{};let i=e.random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(m)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return function(e,t=0){return(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase()}(i)},y=r(22038),b=r(81395);function x(e){let{copySeed:t,children:r,icon:n,description:o}=e;return(0,i.jsxs)("div",{className:"",children:[r,(0,i.jsx)(a.s_4,{className:"mt-2",children:(0,i.jsxs)("div",{className:"flex gap-6 items-center py-4 px-4",children:[(0,i.jsx)("div",{className:"flex",children:n}),(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(a.nvN,{size:"14",children:o}),t&&(0,i.jsx)(a.zxk,{onClick:t,children:"Copy Seed to Clipboard"})]})]})})]})}var w=r(74236);let E={name:"",description:"",mnemonic:"",hasCopied:!1};function j(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eV(),u=(0,s.lT)(),h=(0,d.cI)({mode:"all",defaultValues:E}),p=h.watch("mnemonic"),m=(0,o.useCallback)(()=>{(0,a.vQq)(p,"seed"),h.setValue("hasCopied",!0,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),h.clearErrors(["mnemonic"])},[p,h]),v=(0,o.useCallback)(async()=>{let{phrase:e}=(0,w.x)().newSeedPhrase();h.setValue("hasCopied",!1),h.setValue("mnemonic",e),h.clearErrors(["hasCopied","mnemonic"])},[h]);(0,o.useEffect)(()=>{r&&v()},[r]);let{dataset:j}=(0,f.r)(),S=(null==j?void 0:j.map(e=>e.name))||[],C=function(e){let{walletNames:t,copySeed:r}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"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:e=>{e.currentTarget.select(),r()},readOnly:!0,placeholder:"",validation:{required:"required",validate:{valid:e=>{let{error:t}=(0,w.x)().seedFromPhrase(e);return!t||"seed should be 12 word BIP39 mnemonic"},copied:(e,t)=>t.hasCopied||"Copy seed to continue"}}},hasCopied:{type:"boolean",title:"",validation:{}}}}({walletNames:S,copySeed:m}),k=(0,o.useCallback)(async e=>{let t=g(),{seed:r}=(0,w.x)().seedFromPhrase(e.mnemonic),n=(0,b.blake2bHex)(r),i=await u.put({params:{id:t},payload:{type:"seed",seedHash:n,name:e.name,createdAt:new Date().getTime(),description:e.description}});i.error?(0,a.OHV)(i.error):(l("walletAddressesGenerate",{walletId:t}),h.reset(E))},[h,l,u]);return(0,i.jsx)(a.VqE,{title:y.z.walletAddNew.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:h.handleSubmit(k),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:h,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddNew.description}),(0,i.jsx)(a.yEL,{name:"name",form:h,fields:C}),(0,i.jsx)(a.Bau,{name:"description",form:h,fields:C}),(0,i.jsx)(x,{icon:(0,i.jsx)(c.fwm,{}),description:(0,i.jsx)(i.Fragment,{children:"This is the wallet's seed mnemonic. Make sure to save it somewhere secure."}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(a.Bau,{form:h,fields:C,name:"mnemonic"}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsxs)(a.zxk,{className:"flex-1",onClick:v,children:[(0,i.jsx)(c.nt4,{}),"Regenerate"]}),(0,i.jsxs)(a.zxk,{className:"flex-1",onClick:m,children:[(0,i.jsx)(c.olJ,{}),"Copy to clipboard"]})]})]})})]})})}function S(e){let{form:t,onOpenChange:r,defaultValues:n}=e,i=(0,o.useCallback)(()=>{t.reset(n)},[t,n]),a=(0,o.useCallback)(()=>{r(!1),t.reset(n)},[t,r,n]),s=(0,o.useCallback)(e=>{e||a()},[a]);return{reset:i,closeAndReset:a,handleOpenChange:s}}var C=r(6391),k=r.n(C);function A(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n}=e;return{type:r,title:"Seed",actions:(0,i.jsx)("div",{className:"flex gap-1",children:(0,i.jsx)(a.zxk,{tip:"password"===r?"Show seed":"Hide seed",tabIndex:-1,variant:"ghost",icon:"hover",onClick:()=>n("password"===r?"text":"password"),children:"password"===r?(0,i.jsx)(c.pHg,{}):(0,i.jsx)(c.xVB,{})})}),placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:e=>{let{error:t}=(0,w.x)().seedFromPhrase(e);return!t||"seed should be 12 word BIP39 mnemonic"},match:e=>{let{seed:r}=(0,w.x)().seedFromPhrase(e);return(0,b.blake2bHex)(r)===t||"seed does not match"}}}}}var O=r(8822);function T(e){let{walletId:t,name:r,form:n,fields:o,actionText:s}=e,{dataset:l,walletAutoLockEnabled:u,walletAutoLockTimeout:d}=(0,f.r)(),h=null==l?void 0:l.find(e=>e.id===t),p=null==h?void 0:h.seed,m=(0,O.l)(d),v=s?" and ".concat(s):"";return p?(0,i.jsx)(x,{icon:(0,i.jsx)(c.R$y,{}),description:u?(0,i.jsxs)(i.Fragment,{children:["The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ",m.amount," ",m.units,", manually locked, or the app is closed."]}):(0,i.jsx)(i.Fragment,{children:"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed."})}):(0,i.jsx)(x,{icon:(0,i.jsx)(c.R$y,{}),description:u?(0,i.jsxs)(i.Fragment,{children:["Enter your seed mnemonic to unlock the wallet",v,". The wallet will stay unlocked until it is inactive for"," ",m.amount," ",m.units,", manually locked, or the app is closed."]}):(0,i.jsxs)(i.Fragment,{children:["Enter your seed mnemonic to unlock the wallet and",v,". The wallet will stay unlocked until it is manually locked or the app is closed."]}),children:(0,i.jsx)(a.yEL,{form:n,fields:o,name:r})})}function _(e){let{dataset:t}=(0,f.r)(),r=null==t?void 0:t.find(t=>t.id===e),n=null==r?void 0:r.seed,i=!!n;return{cachedSeed:n,isSeedCached:i,getSeedFromCacheOrForm:e=>{let{mnemonic:t}=e;return i?{seed:n}:(0,w.x)().seedFromPhrase(t)}}}let M=[];function N(e){let{id:t}=e,r=(0,s.bd)({disabled:!t,params:{id:t}}),n=(0,o.useMemo)(()=>{if(!r.data)return null;let e=Object.entries(r.data||{}).map(e=>{let[r,n]=e;return{id:r,address:r,description:n.description,publicKey:n.publicKey,index:n.index,walletId:t}});return e},[r.data,t]),i=(0,a.c2j)(n,r.isValidating,r.error,M),l=(n||[]).reduce((e,t)=>{let{index:r}=t;return r>e?r:e},-1);return{dataState:i,error:r.error,datasetCount:(null==n?void 0:n.length)||0,dataset:n,lastIndex:l}}function R(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},{lastIndex:c}=N({id:u}),{dataset:h,saveWalletSeed:p}=(0,f.r)(),m=null==h?void 0:h.find(e=>e.id===u),v=c+1,g={mnemonic:"",index:new(k())(v),count:new(k())(1)},[y,b]=(0,o.useState)("password"),x=(0,d.cI)({mode:"all",defaultValues:g});(0,o.useEffect)(()=>{x.formState.isSubmitting||x.setValue("index",new(k())(v))},[v]);let{handleOpenChange:E,closeAndReset:j}=S({form:x,onOpenChange:l,defaultValues:g}),C=x.watch("mnemonic"),O=x.watch("index"),M=x.watch("count"),R=function(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n}=e;return{mnemonic:A({seedHash:t,setMnemonicFieldType:n,mnemonicFieldType:r}),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}}}}({seedHash:null==m?void 0:m.seedHash,mnemonicFieldType:y,setMnemonicFieldType:b}),P=(0,s.yi)(),{getSeedFromCacheOrForm:L}=_(u),D=(0,o.useCallback)(async(e,t,r)=>{let n=L({mnemonic:e});if(n.error){(0,a.OHV)(n.error);return}let{seed:i}=n;for(let e=t;e0?"Not all addresses were saved.":""));return}}1===r?(0,a.OPV)("Successfully generated 1 address."):(0,a.OPV)("Successfully generated ".concat(r," addresses.")),p(u,i),j()},[L,j,P,u,p]),I=(0,o.useCallback)(()=>D(C,O.toNumber(),M.toNumber()),[D,C,O,M]);return(0,i.jsxs)(a.VqE,{title:"Wallet ".concat(null==m?void 0:m.name,": generate addresses"),trigger:r,open:n,onOpenChange:E,contentVariants:{className:"w-[500px]"},onSubmit:x.handleSubmit(I),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.ZqQ,{form:x,variant:"accent",size:"medium",children:"Continue"})}),children:[(0,i.jsx)(T,{walletId:u,name:"mnemonic",form:x,fields:R,actionText:"generate addresses"}),(0,i.jsxs)("div",{className:"flex gap-2 w-full pt-3",children:[(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:R,name:"index"})}),(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:R,name:"count"})})]})]})}var P=r(5632),L=r(71930);let D={name:""};function I(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,u=(0,P.useRouter)(),{walletId:c}=t||{},{closeDialog:h}=eV(),{dataset:p}=(0,f.r)(),m=null==p?void 0:p.find(e=>e.id===c),v=(0,s.OZ)(),g=(0,d.cI)({mode:"all",defaultValues:D}),y=(0,o.useCallback)(async()=>{let e=await v.delete({params:{id:c}});e.error?(0,a.OHV)(e.error):((0,a.OPV)("Wallet permanently removed."),g.reset(),h(),u.push(L._.home))},[g,c,v,h,u]),b=(0,o.useMemo)(()=>{var e;return{name:{type:"text",title:"Name",placeholder:e=null==m?void 0:m.name,validation:{required:"required",validate:{equals:t=>t===e||"name does not match"}}}}},[m]),x=(0,a.WsO)(b);return(0,i.jsx)(a.VqE,{title:"Remove wallet",trigger:r,open:n,onOpenChange:e=>{e||g.reset(D),l(e)},contentVariants:{className:"w-[400px]"},onSubmit:g.handleSubmit(y,x),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)(a.nvN,{size:"14",children:["Are you sure you would like to permanently remove the wallet"," ",(0,i.jsx)(a.EKh,{children:null==m?void 0:m.name}),"?"]}),(0,i.jsx)(a.nvN,{size:"14",children:"Enter the wallet name to confirm the removal."}),(0,i.jsx)(a.yEL,{name:"name",form:g,fields:b}),(0,i.jsx)(a.ZqQ,{variant:"red",form:g,children:"Remove"})]})})}let F={description:""};function V(e){let{trigger:t,open:r,onOpenChange:n,params:l}=e,{walletId:u,address:c}=l||{},{openDialog:f,closeDialog:h}=eV(),{dataset:p}=N({id:u}),m=null==p?void 0:p.find(e=>e.id===c),v=(0,s.yi)(),g=(0,d.cI)({mode:"all",defaultValues:F});(0,o.useEffect)(()=>{g.reset(m?{description:m.description}:F)},[l]);let y=(0,o.useCallback)(async e=>{let t=await v.put({params:{id:u,addr:c},payload:{...m,description:e.description}});t.error?(0,a.OHV)(t.error):(h(),g.reset(F))},[u,c,g,v,m,h]);return(0,i.jsx)(a.VqE,{title:(0,a.$Gg)(c,20),trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:g.handleSubmit(y),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{onClick:()=>f("addressRemove",{walletId:u,address:c}),children:"Remove address"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"small",form:g,children:"Save changes"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.hKn,{address:(null==m?void 0:m.address)||""}),(0,i.jsx)(a.Bau,{name:"description",form:g,fields:{description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}})]})})}let B={name:"",description:""};function U(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},{dataset:c}=(0,f.r)(),h=null==c?void 0:c.find(e=>e.id===u),p=(0,s.lT)(),m=(0,d.cI)({mode:"all",defaultValues:B}),{closeAndReset:v}=S({form:m,onOpenChange:l,defaultValues:B});(0,o.useEffect)(()=>{setTimeout(()=>{m.reset(h?{name:h.name,description:h.description}:B)},0)},[u]);let g=(0,o.useMemo)(()=>(null==c?void 0:c.reduce((e,t)=>t.name!==(null==h?void 0:h.name)?e.concat(t.name):e,[]))||[],[c,h]),y=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"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:g}),b=(0,o.useCallback)(async e=>{let t=await p.put({params:{id:u},payload:{...h,name:e.name,description:e.description}});t.error?(0,a.OHV)(t.error):v()},[u,p,h,v]);return(0,i.jsx)(a.VqE,{title:"".concat(null==h?void 0:h.name),trigger:r,open:n,onOpenChange:l,contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(b),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:m,children:"Save changes"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.__J,{children:"Type"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.Cts,{children:null==h?void 0:h.type})})]}),(0,i.jsx)(a.yEL,{name:"name",form:m,fields:y}),(0,i.jsx)(a.Bau,{name:"description",form:m,fields:y})]})})}var z=r(79381),H=r(39094),$=r(73866),W=r(27748);async function q(){let e=await Promise.all([$.Z.isSupported().then(async e=>{let t=await G();return e&&!t?"Bluetooth":null}),W.Z.isSupported().then(e=>e?"HID":null)]);return e.filter(e=>e)}async function G(){return navigator.brave&&await navigator.brave.isBrave()}function Z(e){let{title:t,details:r,actions:n,shouldVerify:o}=e,{device:s,disconnect:l}=(0,H.c)();return(0,i.jsx)(a.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[o?(0,i.jsxs)(i.Fragment,{children:[!(null==s?void 0:s.publicKey0)&&(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),!!(null==s?void 0:s.publicKey0)&&(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]})]}):(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}),(null==s?void 0:s.type)==="Bluetooth"&&(0,i.jsx)(a.ua7,{content:"Bluetooth",children:(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",children:(0,i.jsx)(c.Ya6,{})})}),(null==s?void 0:s.type)==="USB"&&(0,i.jsx)(a.ua7,{content:"USB",children:(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",children:(0,i.jsx)(c.Fhn,{size:16})})}),(null==s?void 0:s.type)==="HID"&&(0,i.jsx)(a.ua7,{content:"HID",children:(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",children:(0,i.jsx)(c.Pj_,{size:16})})}),(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",className:"ml-1",children:t})]}),(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[n,!!s&&(0,i.jsx)(a.zxk,{variant:"ghost",onClick:l,children:(0,i.jsx)(c.PcV,{})})]})]}),r]})})}let Y={transportType:""};function X(e){var t;let{shouldVerify:r}=e,{device:n,connect:s,verify:l,setError:u,waitingForUser:f}=(0,H.c)(),h=(0,d.cI)({mode:"all",defaultValues:Y}),p=h.watch("transportType"),m=!!(null==n?void 0:n.publicKey0),v=(0,z.ZP)("deviceConnect/supportedTransports",()=>q(),{revalidateOnFocus:!1});(0,o.useEffect)(()=>{v.data&&(h.setValue("transportType",v.data[0]),0===v.data.length&&u(Error("This browser does not support connecting to Ledger devices, please use a different browser.")))},[v.data]);let g=function(e){let{supportedTransports:t}=e;return{transportType:{type:"select",title:"Transport",placeholder:"Select a transport",options:t.map(e=>({value:e,label:e})),validation:{required:!0}}}}({supportedTransports:v.data||[]}),y=(0,o.useCallback)(async()=>{p&&s(p)},[s,p]),b=(0,o.useCallback)(async()=>{p&&await l()},[l,p]);return(0,i.jsx)("div",{className:"flex flex-col gap-1",children:n?r?m?(0,i.jsx)(Z,{shouldVerify:r,title:n.transport.deviceModel.productName,details:(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.XxW,{value:n.publicKey0,label:"public key 0",color:"subtle",maxLength:30})})}):(0,i.jsx)(Z,{shouldVerify:r,title:n.transport.deviceModel.productName,actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(a.zxk,{variant:"accent",onClick:b,children:[(0,i.jsx)(c.j7C,{}),"Verify"]})}),details:f?(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"To continue, approve public key verification on device."})]}):(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.nvN,{size:"14",children:"Unlock device, open the Sia app, and make sure Ledger Live is closed. Then start wallet verification to continue."})})}):(0,i.jsx)(Z,{shouldVerify:r,title:n.transport.deviceModel.productName}):(0,i.jsx)(Z,{shouldVerify:r,title:"Connect Ledger...",actions:(null===(t=v.data)||void 0===t?void 0:t.length)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.WyV,{name:"transportType",form:h,fields:g,group:!1}),(0,i.jsx)(a.zxk,{size:"small",onClick:y,children:"Connect"})]}):null,details:f?(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm in browser and on device..."}),(0,i.jsx)(a.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,i.jsx)(a.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 K={name:"",description:"",ledgerConnectedAndVerified:!1};function J(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eV(),u=(0,s.lT)(),c=(0,d.cI)({mode:"all",defaultValues:K}),{device:h,disconnect:p,error:m}=(0,H.c)();(0,o.useEffect)(()=>{r&&p()},[r]),(0,o.useEffect)(()=>{h&&h.publicKey0?c.setValue("ledgerConnectedAndVerified",!0):c.setValue("ledgerConnectedAndVerified",!1)},[c,h]),(0,o.useEffect)(()=>{m?c.setError("ledgerConnectedAndVerified",{message:m.message}):c.clearErrors("ledgerConnectedAndVerified")},[c,m]);let{dataset:v}=(0,f.r)(),b=(null==v?void 0:v.map(e=>e.name))||[],x=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"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:e=>e||"Ledger must be connected, unlocked, and verified"}}}}}({walletNames:b}),w=(0,s.yi)(),E=(0,o.useCallback)(async(e,t)=>{let{publicKey:r,address:n}=t,i=await w.put({params:{id:e,addr:n},payload:{index:0,publicKey:r}});if(i.error){(0,a.OHV)("Error saving address.");return}},[w]),j=(0,o.useCallback)(async e=>{if(!e.ledgerConnectedAndVerified||!h.publicKey0||!h.address0)return;let t=g(),r=await u.put({params:{id:t},payload:{type:"ledger",publicKey0:h.publicKey0,address0:h.address0,name:e.name,createdAt:new Date().getTime(),description:e.description}});r.error?(0,a.OHV)(r.error):(E(t,{publicKey:h.publicKey0,address:h.address0}),l("walletLedgerAddressGenerate",{walletId:t,walletJustCreated:!0}),c.reset(K))},[c,l,u,h,E]);return c.register("ledgerConnectedAndVerified",x.ledgerConnectedAndVerified.validation),(0,i.jsx)(a.VqE,{title:y.z.walletAddLedger.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(j),controls:(0,i.jsxs)("div",{className:"flex gap-2 pb-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:c,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddLedger.description}),(0,i.jsx)(a.yEL,{name:"name",form:c,fields:x}),(0,i.jsx)(a.Bau,{name:"description",form:c,fields:x}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Device",name:"ledgerConnectedAndVerified"}),(0,i.jsx)(a.cp7,{name:"ledgerConnectedAndVerified",form:c}),(0,i.jsx)(X,{shouldVerify:!0})]})]})})}let Q={name:"",description:"",mnemonic:""};function ee(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eV(),u=(0,d.cI)({mode:"all",defaultValues:Q}),{dataset:h}=(0,f.r)(),p=(null==h?void 0:h.map(e=>e.name))||[],m=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"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:e=>{let{error:t}=(0,w.x)().seedFromPhrase(e);return!t||"seed should be 12 word BIP39 mnemonic"}}}}}}({walletNames:p}),v=(0,s.lT)(),E=(0,o.useCallback)(async e=>{let t=g(),{seed:r}=(0,w.x)().seedFromPhrase(e.mnemonic),n=(0,b.blake2bHex)(r),i=await v.put({params:{id:t},payload:{type:"seed",seedHash:n,name:e.name,createdAt:new Date().getTime(),description:e.description}});i.error?(0,a.OHV)(i.error):(l("walletAddressesGenerate",{walletId:t}),u.reset(Q))},[u,l,v]);return(0,i.jsx)(a.VqE,{title:y.z.walletAddRecover.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:u.handleSubmit(E),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:u,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddRecover.description}),(0,i.jsx)(a.yEL,{name:"name",form:u,fields:m}),(0,i.jsx)(a.Bau,{name:"description",form:u,fields:m}),(0,i.jsx)(x,{icon:(0,i.jsx)(c.fwm,{}),description:(0,i.jsx)(i.Fragment,{children:"Enter the seed mnemonic for the wallet you are recovering."}),children:(0,i.jsx)(a.Bau,{form:u,fields:m,name:"mnemonic"})})]})})}let et={name:"",description:""};function er(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eV(),u=(0,s.lT)(),c=(0,d.cI)({mode:"all",defaultValues:et}),{dataset:h}=(0,f.r)(),p=(null==h?void 0:h.map(e=>e.name))||[],m=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"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:p}),v=(0,o.useCallback)(async e=>{let t=g(),r=await u.put({params:{id:t},payload:{type:"watch",name:e.name,description:e.description,createdAt:new Date().getTime()}});r.error?(0,a.OHV)(r.error):(l("walletAddressesAdd",{walletId:t}),c.reset(et))},[c,l,u]);return(0,i.jsx)(a.VqE,{title:y.z.walletAddWatch.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(v),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:c,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddWatch.description}),(0,i.jsx)(a.yEL,{name:"name",form:c,fields:m}),(0,i.jsx)(a.Bau,{name:"description",form:c,fields:m})]})})}var en=r(96206),ei=r(75652),eo=r.n(ei);let ea={addresses:""};function es(e){return eo()(e.trim().split(/[^0-9a-fA-F]+/).map(e=>e).filter(e=>!!e))}function el(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},{dataset:c}=(0,f.r)(),h=null==c?void 0:c.find(e=>e.id===u),p=(0,d.cI)({mode:"all",defaultValues:ea}),{handleOpenChange:m,closeAndReset:v}=S({form:p,onOpenChange:l,defaultValues:ea}),g=(0,s.yi)(),y=(0,o.useCallback)(async e=>{let t=es(e),r=t.length;for(let e=0;e0?"Not all addresses were saved.":""));return}}1===r?(0,a.OPV)("Successfully added 1 address."):(0,a.OPV)("Successfully added ".concat(r," addresses.")),v()},[u,g,v]),b=(0,o.useCallback)(e=>y(e.addresses),[y]),x=p.watch("addresses"),w=es(x).length;return(0,i.jsx)(a.VqE,{title:"Wallet ".concat(null==h?void 0:h.name,": add addresses"),trigger:r,open:n,onOpenChange:m,contentVariants:{className:"w-[500px]"},onSubmit:p.handleSubmit(b),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.ZqQ,{form:p,variant:"accent",size:"medium",children:0===w?"Add addresses":1===w?"Add 1 address":"Add ".concat(w.toLocaleString()," addresses")})}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,i.jsx)(a.nvN,{size:"14",children:"Enter multiple addresses separated by spaces or commas."}),(0,i.jsx)(a.Bau,{form:p,fields:{addresses:{type:"text",title:"Addresses",placeholder:"91acbc0feb9e20d538db1f8a509d508362d1b1f3d725d9b6639306531d770c1ef9eb637b4903\nb58849e347356878bb0098908191550ff3e46cc35ed166d0c571fe184d2f17b835747991c266\nb811a04859809fe081884c10d50ca069f1429112ba4a8dc9181c95de41f7eca01416923daa6d\n03442c5643c1deb15c60104ca6ad80fa9563c67c8334f0bbe968b01cb9b8f81c8103a7a202c0\n",validation:{required:"required",validate:{valid:e=>{let t=es(e||"");for(let e=0;e{let e=await h.delete({params:{id:u,addr:c}});e.error?(0,a.OHV)(e.error):((0,a.OPV)("Address permanently removed."),p.reset(),f())},[p,u,c,h,f]),v=(0,o.useMemo)(()=>({address:{type:"text",title:"Address",placeholder:c,validation:{required:"required",validate:{equals:e=>(0,a.I13)(e)===(0,a.I13)(c)||"address does not match"}}}}),[c]),g=(0,a.WsO)(v);return(0,i.jsx)(a.VqE,{title:"Remove address",trigger:r,open:n,onOpenChange:e=>{e||p.reset(eu),l(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit(m,g),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)(a.nvN,{size:"14",children:["Are you sure you would like to permanently remove the address"," ",(0,i.jsxs)(a.EKh,{children:[(0,a.I13)(c).slice(0,12),"..."]}),"?"]}),(0,i.jsx)(a.nvN,{size:"14",children:"Enter the address name to confirm the removal."}),(0,i.jsx)(a.yEL,{name:"address",form:p,fields:v}),(0,i.jsx)(a.ZqQ,{variant:"red",form:p,children:"Remove"})]})})}let ed=(0,en.qN)(.00393),ef={address:"",siacoin:void 0,includeFee:!1};function eh(e){let{address:t,siacoin:r,fee:n,transactionId:o}=e,s=r.plus(n);return(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Destination"}),(0,i.jsx)(a.XxW,{value:t,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:s,variant:"value",dynamicUnits:!1})})]}),o&&(0,i.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,i.jsx)(a.XxW,{value:o,type:"transaction"})]})]})}function ep(e){let{transaction:t,toSign:r,addresses:n,siacoinOutputs:i}=e;if(!n)return{error:"No addresses"};if(!i)return{error:"No outputs"};for(let e of r){let r=(0,a.I13)(e),{utxo:o,address:s,error:l}=em({id:r,addresses:n,siacoinOutputs:i});if(l)return{error:l};let u=t.siacoinInputs.find(e=>(0,a.I13)(e.parentID)===(0,a.I13)(o.ID));u.unlockConditions={timelock:0,publicKeys:[s.publicKey],signaturesRequired:1},t.signatures||(t.signatures=[]),t.signatures.push({parentID:r,publicKeyIndex:0,timelock:0,coveredFields:{wholeTransaction:!0}})}return{}}function em(e){let{id:t,addresses:r,siacoinOutputs:n}=e,i=(0,a.I13)(t),o=n.find(e=>(0,a.I13)(e.ID)===i);if(!o)return{error:"Missing utxo"};let s=r.find(e=>(0,a.I13)(e.address)===(0,a.I13)(o.address));return s?void 0===s.index?{error:"Missing address index"}:s.publicKey?{utxo:o,address:s}:{error:"Missing address public key"}:{error:"Missing address"}}let ev={mnemonic:""};function eg(e){let{data:{address:t,siacoin:r,fee:n},transactionId:o}=e;return(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(eh,{address:t,siacoin:r,fee:n,transactionId:o}),(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,i.jsx)(a.xvT,{children:(0,i.jsx)(c.Z$8,{})}),(0,i.jsx)(a.xvT,{children:"Transaction successfully broadcasted."})]})]})}let ey={address:"",siacoin:new(k())(0),fee:new(k())(0)};function eb(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},c=(0,s.tM)({disabled:!u,params:{id:u}}),h=(0,o.useMemo)(()=>{var e;return new(k())((null===(e=c.data)||void 0===e?void 0:e.siacoins)||0)},[c.data]),[p,m]=(0,o.useState)("compose"),[v,g]=(0,o.useState)(),[y,b]=(0,o.useState)(ey),x=function(e){let{balance:t,onComplete:r}=e,n=(0,d.cI)({mode:"all",defaultValues:ef}),s=function(e){let{balance:t,fee:r}=e;return{address:{type:"text",title:"Address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",validation:{required:"required",validate:{valid:e=>(0,en.At)(e)||"invalid address"}}},siacoin:{type:"text",title:"Siacoin",placeholder:"100",validation:{required:"required",validate:{gtz:e=>!new(k())(e||0).isZero()||"must be greater than zero",balance:e=>t.gte((0,en.qN)(e||0).plus(r))||"not enough funds in wallet"}}},includeFee:{type:"boolean",title:"",validation:{}}}}({balance:t,fee:ed}),l=(0,o.useCallback)(async e=>{if(!e.siacoin)return;let n=e.includeFee?(0,en.qN)(e.siacoin).minus(ed):(0,en.qN)(e.siacoin);t&&r({address:e.address,siacoin:n,fee:ed})},[r,t]),u=(0,o.useMemo)(()=>n.handleSubmit(l),[n,l]),c=n.watch("siacoin"),f=n.watch("includeFee"),h=(0,en.qN)(c||0),p=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.yEL,{size:"medium",form:n,fields:s,name:"address",autoComplete:"off"}),(0,i.jsx)(a.qGu,{size:"medium",form:n,fields:s,name:"siacoin"}),(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)(a.QBj,{size:"small",form:n,fields:s,name:"includeFee",children:[(0,i.jsx)(a.xvT,{children:"Include fee"}),(0,i.jsx)(a.Yqd,{children:"Include or exclude the network fee from the above transaction value."})]}),(0,i.jsx)("div",{className:"flex flex-1"})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",children:"Network fee"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:ed,variant:"value",dynamicUnits:!1})})]}),(0,i.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",children:"Total"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:f?h:h.plus(ed),variant:"value",dynamicUnits:!1})})]})]})]});return{form:n,el:p,handleSubmit:u,reset:()=>n.reset(ef)}}({balance:h,onComplete:e=>{b(t=>({...t,address:e.address,siacoin:e.siacoin,fee:e.fee})),m("send")}}),E=function(e){let{walletId:t,data:r,onConfirm:n}=e,l=function(){var e;let{wallet:t,saveWalletSeed:r}=(0,f.r)(),n=null==t?void 0:t.id,i=(0,s.Vg)({disabled:!n,params:{id:n}}),{dataset:l}=N({id:n}),u=(0,s.ek)(),c=(0,s.gM)(),d=(0,s.gU)(),h=(0,s.ys)(),p=(0,s.zQ)(),m=(0,o.useCallback)(async e=>{let t=await p.post({params:{id:n},payload:{siacoinOutputs:e}});t.error&&(0,a.OHV)(t.error)},[n,p]),v=(0,o.useCallback)(async e=>{var t,o,s;let{seed:f,address:p,siacoin:v,fee:g}=e;if(!l)return;let y=await d.post({params:{id:n},payload:{amount:v.plus(g).toString(),changeAddress:l[0].address,transaction:{minerFees:[g.toString()],siacoinOutputs:[{value:v.toString(),address:p}]}}});if(y.error)return{error:y.error};let b=function(e){let{seed:t,transaction:r,toSign:n,cs:i,cn:o,addresses:s,siacoinOutputs:l}=e;if(!i)return{error:"No consensus state"};if(!s)return{error:"No addresses"};if(!l)return{error:"No outputs"};let{error:u}=ep({transaction:r,toSign:n,addresses:s,siacoinOutputs:l});if(u)return{error:u};for(let[e,u]of n.entries()){let n=(0,a.I13)(u),{address:c,error:d}=em({id:n,addresses:s,siacoinOutputs:l});if(d)return{error:d};let f=(0,w.x)().privateKeyFromSeed(t,c.index);if(f.error)return{error:f.error};let{transaction:h,error:p}=(0,w.x)().signTransaction(JSON.stringify(i),JSON.stringify(o),JSON.stringify(r),e,f.privateKey);if(p)return{error:p};r=h}return{transaction:r}}({seed:f,transaction:null===(t=y.data)||void 0===t?void 0:t.transaction,toSign:null===(o=y.data)||void 0===o?void 0:o.toSign,cs:u.data,cn:c.data,addresses:l,siacoinOutputs:null===(s=i.data)||void 0===s?void 0:s.siacoinOutputs});if(b.error)return m(y.data.transaction.siacoinInputs.map(e=>e.parentID)),{error:b.error};r(n,f);let x=await h.post({payload:[b.transaction]});return x.error?(m(y.data.transaction.siacoinInputs.map(e=>e.parentID)),{error:x.error}):{}},[m,l,d,n,u.data,c.data,null===(e=i.data)||void 0===e?void 0:e.siacoinOutputs,r,h]);return v}(),{isSeedCached:u,getSeedFromCacheOrForm:c}=_(t),{dataset:h}=(0,f.r)(),p=null==h?void 0:h.find(e=>e.id===t),m=null==p?void 0:p.seedHash,{address:v,siacoin:g,fee:y}=r||{},b=(0,d.cI)({mode:"all",defaultValues:ev}),[x,E]=(0,o.useState)("password"),j=(0,o.useMemo)(()=>(function(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n,isSeedCached:i}=e;return{mnemonic:i?{title:"Seed",type:"text",validation:{}}:A({seedHash:t,setMnemonicFieldType:n,mnemonicFieldType:r})}})({mnemonicFieldType:x,setMnemonicFieldType:E,seedHash:m,isSeedCached:u}),[x,E,m,u]),S=(0,o.useCallback)(async e=>{let t=c(e);if(t.error){(0,a.OHV)(t.error);return}let{error:r}=await l({seed:t.seed,address:v,siacoin:g,fee:y});if(r){(0,a.OHV)(r);return}n({})},[c,l,v,y,g,n]),C=(0,a.WsO)(j),k=(0,o.useMemo)(()=>b.handleSubmit(S,C),[b,S,C]),O=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(T,{walletId:t,name:"mnemonic",form:b,fields:j,actionText:"complete the transaction"}),(0,i.jsx)(eh,{address:v,siacoin:g,fee:y})]});return{form:b,el:O,handleSubmit:k,reset:()=>b.reset(ev)}}({walletId:u,data:y,onConfirm:e=>{let{transactionId:t}=e;g(t),m("done")}}),j=(0,o.useMemo)(()=>"compose"===p?{submitLabel:"Generate transaction",form:x.form,handleSubmit:x.handleSubmit,reset:x.reset}:"send"===p?{submitLabel:"Sign and broadcast transaction",form:E.form,handleSubmit:E.handleSubmit,reset:E.reset}:void 0,[p,x,E]);return(0,i.jsx)(a.VqE,{trigger:r,open:n,onOpenChange:e=>{e||(x.reset(),E.reset(),m("compose")),l(e)},title:"Send siacoin",onSubmit:j?j.handleSubmit:void 0,controls:(null==j?void 0:j.form)&&(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.ZqQ,{form:j.form,children:j.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.tIK,{onChange:e=>m(e),activeStep:p,steps:[{id:"compose",label:"Compose"},{id:"send",label:"Send"},{id:"done",label:"Complete"}]}),(0,i.jsx)(a.Z0O,{className:"w-full mt-4"}),"compose"===p&&x.el,"send"===p&&E.el,"done"===p&&(0,i.jsx)(eg,{data:y,transactionId:v})]})})}let ex=(0,en.qN)(.00393),ew={address:"",siacoin:void 0,includeFee:!1};function eE(e){let{address:t,siacoin:r,fee:n,transactionId:o}=e,s=r.plus(n);return(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Destination"}),(0,i.jsx)(a.XxW,{value:t,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:s,variant:"value",dynamicUnits:!1})})]}),o&&(0,i.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,i.jsx)(a.XxW,{value:o,type:"transaction"})]})]})}function ej(e){let{title:t,isSigned:r,isConnected:n,details:o,actions:s}=e;return(0,i.jsx)(a.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[r?(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):n?(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}):(0,i.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}),(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",className:"ml-1",children:t})]}),(0,i.jsx)("div",{className:"flex gap-1 justify-between items-center",children:s})]}),o]})})}function eS(e){let{waitingForUser:t,isConnected:r,isSigned:n,sign:o}=e;return(0,i.jsx)("div",{className:"flex flex-col gap-1",children:n?(0,i.jsx)(ej,{isConnected:r,isSigned:n,title:"Transaction"}):r&&t?(0,i.jsx)(ej,{isConnected:r,isSigned:n,title:"Transaction",details:(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"To continue, approve signature on device."})]})}):r?(0,i.jsx)(ej,{isConnected:r,isSigned:n,title:"Transaction",actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.zxk,{size:"small",onClick:o,children:"Sign"})})}):(0,i.jsx)(ej,{isConnected:r,isSigned:n,title:"Transaction",details:(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"Connect device to start signing."})})})})}var eC=r(48834).lW;async function ek(e){let{device:t,transaction:r,toSign:n,addresses:i,siacoinOutputs:o}=e;if(!i)return{error:"No addresses"};if(!o)return{error:"No outputs"};let{error:s}=ep({transaction:r,toSign:n,addresses:i,siacoinOutputs:o});if(s)return{error:s};for(let[e,s]of n.entries()){let n=(0,a.I13)(s),{address:l,error:u}=em({id:n,addresses:i,siacoinOutputs:o});if(u)return{error:u};let{error:c}=await eA({device:t,transaction:r,signatureIndex:e,keyIndex:l.index});if(c)return{error:c}}return{transaction:r}}async function eA(e){let t,{device:r,transaction:n,signatureIndex:i,keyIndex:o}=e,{encodedTransaction:a,error:s}=(0,w.x)().encodeTransaction(JSON.stringify(n));if(s)return{error:s};let l=eC.from(a,"utf-8"),u=await r.sia.getVersion(),c=0>function(e,t){let r=/[^0-9.]/gi,n=e.replace(r,"").split("."),i=t.replace(r,"").split("."),o=Math.max(n.length,i.length);for(let e=0;er)return 1}return 0}(u,"0.4.5");try{t=c?await r.sia.signTransactionV044(l,i,o):await r.sia.signTransaction(l,i,o,0)}catch(e){return{error:e.message}}return n.signatures[i].signature=t,{transaction:n}}let eO={isConnected:!1,isSigned:!1};function eT(e){let{data:{address:t,siacoin:r,fee:n},transactionId:o}=e;return(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(eE,{address:t,siacoin:r,fee:n,transactionId:o}),(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,i.jsx)(a.xvT,{children:(0,i.jsx)(c.Z$8,{})}),(0,i.jsx)(a.xvT,{children:"Transaction successfully broadcasted."})]})]})}let e_={address:"",siacoin:new(k())(0),fee:new(k())(0),includeFee:!1};function eM(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},[c,h]=(0,o.useState)("compose"),[p,m]=(0,o.useState)(),[v,g]=(0,o.useState)(e_),y=(0,s.tM)({disabled:!u,params:{id:u}}),b=(0,o.useMemo)(()=>{var e;return new(k())((null===(e=y.data)||void 0===e?void 0:e.siacoins)||0)},[y.data]),x=function(e){let{balance:t,onComplete:r}=e,n=(0,d.cI)({mode:"all",defaultValues:ew}),s=function(e){let{balance:t,fee:r}=e;return{address:{type:"text",title:"Address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",validation:{required:"required",validate:{valid:e=>(0,en.At)(e)||"invalid address"}}},siacoin:{type:"text",title:"Siacoin",placeholder:"100",validation:{required:"required",validate:{gtz:e=>!new(k())(e||0).isZero()||"must be greater than zero",balance:e=>t.gte((0,en.qN)(e||0).plus(r))||"not enough funds in wallet"}}},includeFee:{type:"boolean",title:"",validation:{}}}}({balance:t,fee:ex}),l=(0,o.useCallback)(async e=>{if(!e.siacoin)return;let n=e.includeFee?(0,en.qN)(e.siacoin).minus(ex):(0,en.qN)(e.siacoin);t&&r({includeFee:e.includeFee,address:e.address,fee:ex,siacoin:n})},[r,t]),u=(0,o.useMemo)(()=>n.handleSubmit(l),[n,l]),c=n.watch("siacoin"),f=n.watch("includeFee"),h=(0,en.qN)(c||0),p=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.yEL,{size:"medium",form:n,fields:s,name:"address",autoComplete:"off"}),(0,i.jsx)(a.qGu,{size:"medium",form:n,fields:s,name:"siacoin"}),(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)(a.QBj,{size:"small",form:n,fields:s,name:"includeFee",children:[(0,i.jsx)(a.xvT,{children:"Include fee"}),(0,i.jsx)(a.Yqd,{children:"Include or exclude the network fee from the above transaction value."})]}),(0,i.jsx)("div",{className:"flex flex-1"})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",children:"Network fee"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:ex,variant:"value",dynamicUnits:!1})})]}),(0,i.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",children:"Total"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:f?h:h.plus(ex),variant:"value",dynamicUnits:!1})})]})]})]});return{form:n,el:p,handleSubmit:u,reset:()=>n.reset(ew)}}({balance:b,onComplete:e=>{g(t=>({...t,...e})),h("send")}}),w=function(e){let{data:t,onConfirm:r}=e,{address:n,siacoin:l,fee:u}=t||{},c=(0,d.cI)({mode:"all",defaultValues:eO}),h=c.watch("isConnected"),p=c.watch("isSigned"),{device:m,error:v}=(0,H.c)(),{fundAndSign:g,broadcast:y,cancel:b}=function(){var e;let{wallet:t}=(0,f.r)(),r=null==t?void 0:t.id,n=(0,s.Vg)({disabled:!r,params:{id:r}}),{dataset:i}=N({id:r}),l=(0,s.gU)(),u=(0,s.ys)(),c=(0,s.zQ)(),d=(0,o.useCallback)(async e=>{let t=e.siacoinInputs.map(e=>e.parentID),n=await c.post({params:{id:r},payload:{siacoinOutputs:t}});n.error&&(0,a.OHV)(n.error)},[r,c]),h=(0,o.useCallback)(async e=>{let{address:t,siacoin:n,fee:o}=e;if(!i)return{error:"No addresses"};let a=await l.post({params:{id:r},payload:{amount:n.plus(o).toString(),changeAddress:i[0].address,transaction:{minerFees:[o.toString()],siacoinOutputs:[{value:n.toString(),address:t}]}}});return a.error?{error:a.error}:{fundedTransaction:a.data.transaction,toSign:a.data.toSign}},[i,l,r]),{device:p}=(0,H.c)(),m=(0,o.useCallback)(async e=>{var t;let{fundedTransaction:r,toSign:o}=e;if(!p||!r)return;let a=await ek({device:p,transaction:r,toSign:o,addresses:i,siacoinOutputs:null===(t=n.data)||void 0===t?void 0:t.siacoinOutputs});return(console.log(a),a.error)?(d(r),{error:a.error}):{signedTransaction:a.transaction}},[p,i,null===(e=n.data)||void 0===e?void 0:e.siacoinOutputs,d]),v=(0,o.useCallback)(async e=>{let{signedTransaction:t}=e;if(!t)return{error:"No signed transaction"};let r=await u.post({payload:[t]});return r.error?(d(t),{error:r.error}):{}},[d,u]),g=(0,o.useCallback)(async e=>{let{address:t,siacoin:r,fee:n}=e,{fundedTransaction:i,toSign:o,error:a}=await h({address:t,siacoin:r,fee:n});if(a)return{fundedTransaction:i,error:a};let{signedTransaction:s,error:l}=await m({fundedTransaction:i,toSign:o});return l?(d(i),{fundedTransaction:i,error:l}):{signedTransaction:s}},[h,m,d]);return{fundAndSign:g,broadcast:v,cancel:d}}(),[x,w]=(0,o.useState)(!1),[E,j]=(0,o.useState)();(0,o.useEffect)(()=>{m?c.setValue("isConnected",!0):(w(!1),c.setValue("isConnected",!1))},[c,m]),(0,o.useEffect)(()=>{v?c.setError("isConnected",{message:v.message}):c.clearErrors("isConnected")},[c,v]),(0,o.useEffect)(()=>{E||c.setValue("isSigned",!1)},[c,E]);let S=(0,o.useMemo)(()=>({isConnected:{type:"boolean",title:"",validation:{validate:{isConnected:e=>e||"Ledger must be connected"}}},isSigned:{type:"boolean",title:"",validation:{validate:{isSigned:e=>e||"Transaction must be signed"}}}}),[]),C=(0,o.useCallback)(async e=>{if(!e.isConnected)return;let{error:t}=await y({signedTransaction:E});if(t){(0,a.OHV)(t);return}r({})},[y,E,r]),k=(0,a.WsO)(S),A=(0,o.useMemo)(()=>c.handleSubmit(C,k),[c,C,k]),O=(0,o.useCallback)(async()=>{w(!0);let{signedTransaction:e,error:t}=await g({address:n,siacoin:l,fee:u});t?(0,a.OHV)(t):(j(e),c.setValue("isSigned",!0)),w(!1)},[c,g,n,l,u]),T=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Device",name:"isConnected"}),(0,i.jsx)(a.cp7,{name:"isConnected",form:c}),(0,i.jsx)(X,{})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Signature",name:"isSigned"}),(0,i.jsx)(a.cp7,{name:"isSigned",form:c}),(0,i.jsx)(eS,{waitingForUser:x,isConnected:h,isSigned:p,sign:O})]})]}),(0,i.jsx)(eE,{address:n,siacoin:l,fee:u})]});return{form:c,el:T,handleSubmit:A,cancel:()=>{E&&b(E)},reset:()=>c.reset(eO)}}({walletId:u,data:v,onConfirm:e=>{let{transactionId:t}=e;m(t),h("done")}}),E=(0,o.useMemo)(()=>"compose"===c?{submitLabel:"Generate transaction",form:x.form,handleSubmit:x.handleSubmit,reset:x.reset}:"send"===c?{submitLabel:"Sign and broadcast transaction",form:w.form,handleSubmit:w.handleSubmit,reset:w.reset}:void 0,[c,x,w]);return(0,i.jsx)(a.VqE,{trigger:r,open:n,onOpenChange:e=>{e||(x.reset(),w.reset(),w.cancel(),h("compose")),l(e)},title:"Send siacoin",onSubmit:E?E.handleSubmit:void 0,controls:(null==E?void 0:E.form)&&(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.ZqQ,{form:E.form,children:E.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.tIK,{onChange:e=>h(e),activeStep:c,steps:[{id:"compose",label:"Compose"},{id:"send",label:"Sign & Send"},{id:"done",label:"Complete"}]}),(0,i.jsx)(a.Z0O,{className:"w-full mt-4"}),"compose"===c&&x.el,"send"===c&&w.el,"done"===c&&(0,i.jsx)(eT,{data:v,transactionId:p})]})})}function eN(e){let{params:t,trigger:r,open:n,onOpenChange:s}=e,{walletId:l}=t||{},{dataset:u,saveWalletSeed:c}=(0,f.r)(),h=null==u?void 0:u.find(e=>e.id===l),p={mnemonic:""},[m,v]=(0,o.useState)("password"),g=(0,d.cI)({mode:"all",defaultValues:p}),{handleOpenChange:y,closeAndReset:b}=S({form:g,onOpenChange:s,defaultValues:p}),x=function(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n}=e;return{mnemonic:A({seedHash:t,setMnemonicFieldType:n,mnemonicFieldType:r})}}({seedHash:null==h?void 0:h.seedHash,mnemonicFieldType:m,setMnemonicFieldType:v}),E=(0,o.useCallback)(e=>{let{seed:t}=(0,w.x)().seedFromPhrase(e.mnemonic);c(l,t),b()},[l,c,b]),j=(0,a.WsO)(x);return(0,i.jsx)(a.VqE,{title:"Unlock wallet: ".concat(null==h?void 0:h.name),trigger:r,open:n,onOpenChange:y,contentVariants:{className:"w-[500px]"},onSubmit:g.handleSubmit(E,j),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.ZqQ,{form:g,variant:"accent",size:"medium",children:"Continue"})}),children:(0,i.jsx)(T,{walletId:null==h?void 0:h.id,form:g,fields:x,name:"mnemonic"})})}function eR(e){let{open:t,onOpenChange:r}=e,{walletAutoLockTimeout:n,setWalletAutoLockTimeout:o,setWalletAutoLockEnabled:s,walletAutoLockEnabled:l}=(0,f.r)();return(0,i.jsx)(a.DLL,{open:t,onOpenChange:r,securityEl:(0,i.jsx)(a.bZj,{children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)(a.xvT,{children:(0,i.jsx)(c.RdX,{})}),(0,i.jsx)(a.X6q,{size:"20",className:"flex-1",children:"Lock wallets"}),(0,i.jsx)(a.rsf,{size:"medium",checked:l,onCheckedChange:e=>s(e)}),(0,i.jsxs)(a.PhF,{disabled:!l,value:String(n),onChange:e=>{o(Number(e.currentTarget.value))},children:[(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(5),children:"5 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(10),children:"10 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(20),children:"20 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(30),children:"30 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(60),children:"1 hour"})]})]}),(0,i.jsx)(a.nvN,{size:"14",children:"Automatically lock each wallet after a certain period of inactivity."})]})})})}function eP(e){let{title:t,isNew:r,address:n,details:o,actions:s,remove:l}=e;return(0,i.jsx)(a.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[n?r?(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):(0,i.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}):(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",className:"ml-1",children:t})]}),(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[s,r&&(0,i.jsx)(a.zxk,{variant:"ghost",onClick:l,children:(0,i.jsx)(c.PcV,{})})]})]}),o]})})}function eL(e){let{index:t,address:r,isNew:n,setAddress:s,remove:l}=e,{device:u,error:c,setError:d}=(0,H.c)(),[f,h]=(0,o.useState)(!1),p=(0,o.useCallback)(async()=>{if(u){if(c){(0,a.OHV)(c.message);return}try{h(!0);let e=await u.sia.verifyStandardAddress(t);s({index:t,address:e.address,publicKey:e.publicKey})}catch(e){d(e),console.log(e)}h(!1)}},[t,u,c,d,s]);return(0,i.jsx)("div",{className:"flex flex-col gap-1",children:r?(0,i.jsx)(eP,{title:"Address ".concat(t),isNew:n,remove:l,address:r,details:(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.XxW,{value:r,label:"public key 0",color:"subtle",maxLength:30})})}):f?(0,i.jsx)(eP,{title:"Address ".concat(t),isNew:n,remove:l,details:(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"To continue, approve address generation on device."})]})}):(0,i.jsx)(eP,{title:"Address ".concat(t),isNew:n,remove:l,actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.zxk,{size:"small",onClick:p,children:"Generate"})})})})}function eD(e){return{isNew:!0,address:"",publicKey:"",index:e}}function eI(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u,walletJustCreated:c}=t||{},{dataset:h,lastIndex:p,datasetCount:m}=N({id:u}),{dataset:v}=(0,f.r)(),g=null==v?void 0:v.find(e=>e.id===u),y=p+1,b={ledgerConnected:!1,index:new(k())(y),count:new(k())(1)},x=(0,d.cI)({mode:"all",defaultValues:b}),{disconnect:w,error:E}=(0,H.c)();(0,o.useEffect)(()=>{!c&&n&&w()},[n]),(0,o.useEffect)(()=>{x.formState.isSubmitting||x.setValue("index",new(k())(y))},[y]);let{handleOpenChange:j,closeAndReset:C}=S({form:x,onOpenChange:l,defaultValues:b}),A=x.watch("index"),O=x.watch("count"),T={ledgerConnected:{type:"boolean",title:"",validation:{validate:{ledgerConnected:e=>e||"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}}},_=(0,s.yi)();(0,o.useEffect)(()=>{E?x.setError("ledgerConnected",{message:E.message}):x.clearErrors("ledgerConnected")},[x,E]);let[M,R]=(0,o.useState)({});(0,o.useEffect)(()=>{n&&c&&R({0:eD(0)})},[n]);let P=(0,o.useCallback)(()=>{if(!A||!O)return;let e={...M};for(let t=A.toNumber();t{R(t=>{let r={...t};return delete r[e],r})},[]),D=(0,o.useCallback)(e=>{let{index:t,address:r,publicKey:n}=e;R(e=>{let i={...e};return i[t]={...i[t],address:r,publicKey:n},i})},[R]),I=(0,o.useMemo)(()=>{let e={};for(let[t,{address:r,publicKey:n}]of Object.entries(M)){let i=null==h?void 0:h.find(e=>e.index===Number(t));e[t]={isNew:!i,index:Number(t),address:(null==i?void 0:i.address)||r,publicKey:(null==i?void 0:i.publicKey)||n}}return e},[h,M]),F=(0,o.useMemo)(()=>Object.entries(I).filter(e=>{let[t,r]=e;return r.isNew&&r.address}).map(e=>{let[t,r]=e;return r}),[I]),V=(0,o.useCallback)(async()=>{let e=F.length;for(let[t,{address:r,publicKey:n,index:i}]of F.entries()){let o=await _.put({params:{id:u,addr:r},payload:{index:i,publicKey:n}});if(o.error){1===e?(0,a.OHV)("Error saving address."):(0,a.OHV)("Error saving addresses. ".concat(t>0?"Not all addresses were saved.":""));return}}1===e?(0,a.OPV)("Successfully added 1 address."):(0,a.OPV)("Successfully added ".concat(e," addresses."))},[_,u,F]),B=(0,o.useCallback)(async()=>{if(0===F.length){(0,a.OHV)("Add and generate addresses with your Ledger device to continue.");return}await V(),R({}),C()},[F,V,C]);return(0,i.jsx)(a.VqE,{title:"Wallet ".concat(null==g?void 0:g.name,": generate addresses"),trigger:r,open:n,onOpenChange:j,contentVariants:{className:"w-[500px]"},onSubmit:x.handleSubmit(B),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsxs)(a.ZqQ,{form:x,variant:"accent",size:"medium",children:["Save ",F.length," ",1===F.length?"address":"addresses"]})}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)(a.xvT,{children:["Wallet currently has ",m," ",1===m?"address":"addresses"," with a highest index of"," ",p,". Select a start index and the number of sequential addresses you would like to generate."]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Device",name:"ledgerConnected"}),(0,i.jsx)(a.cp7,{name:"ledgerConnected",form:x}),(0,i.jsx)(X,{})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsxs)("div",{className:"flex gap-2 w-full pt-3 items-end",children:[(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:T,name:"index"})}),(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:T,name:"count"})}),(0,i.jsx)(a.zxk,{onClick:P,children:"Add"})]}),(0,i.jsx)("div",{className:"flex flex-col gap-1",children:Object.entries(I).map(e=>{let[t,{address:r,isNew:n}]=e;return(0,i.jsx)(eL,{isNew:n,address:r,setAddress:D,index:Number(t),remove:()=>L(Number(t))},t)})})]})]})})}let eF=(0,o.createContext)({}),eV=()=>(0,o.useContext)(eF);function eB(e){let{children:t}=e,r=function(){let[e,t]=(0,o.useState)(),[r,n]=(0,o.useState)({}),i=(0,o.useCallback)((e,r)=>{n(t=>({...t,[e]:r})),t(e)},[n,t]),a=(0,o.useCallback)(()=>{n(t=>({...t,[e]:void 0})),t(void 0)},[t,n,e]),s=(0,o.useCallback)(e=>{e||a()},[a]);return{dialog:e,params:r,openDialog:i,confirm,closeDialog:a,onOpenChange:s}}();return(0,i.jsx)(eF.Provider,{value:r,children:t})}function eU(){let{openDialog:e,onOpenChange:t,closeDialog:r,dialog:n,params:o}=eV(),l=(0,s.Wl)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eR,{open:"settings"===n,onOpenChange:t}),(0,i.jsx)(u,{open:"walletAddType"===n,params:o.walletAddType,onOpenChange:t=>t?e(n,o.walletAddType):r()}),(0,i.jsx)(j,{open:"walletAddNew"===n,params:o.walletAddNew,onOpenChange:t=>t?e(n,o.walletAddNew):r()}),(0,i.jsx)(ee,{open:"walletAddRecover"===n,params:o.walletAddRecover,onOpenChange:t=>t?e(n,o.walletAddRecover):r()}),(0,i.jsx)(J,{open:"walletAddLedger"===n,params:o.walletAddLedger,onOpenChange:t=>t?e(n,o.walletAddLedger):r()}),(0,i.jsx)(er,{open:"walletAddWatch"===n,params:o.walletAddWatch,onOpenChange:t=>t?e(n,o.walletAddWatch):r()}),(0,i.jsx)(R,{open:"walletAddressesGenerate"===n,params:o.walletAddressesGenerate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eI,{open:"walletLedgerAddressGenerate"===n,params:o.walletLedgerAddressGenerate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(el,{open:"walletAddressesAdd"===n,params:o.walletAddressesAdd,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(I,{open:"walletRemove"===n,params:o.walletRemove,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(U,{open:"walletUpdate"===n,params:o.walletUpdate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eN,{open:"walletUnlock"===n,params:o.walletUnlock,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(V,{open:"addressUpdate"===n,params:o.addressUpdate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(ec,{open:"addressRemove"===n,params:o.addressRemove,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(a.D_D,{open:"connectPeer"===n,params:o.connectPeer,connect:e=>l.post({payload:e}),onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eb,{open:"walletSendSiacoinSeed"===n,params:o.walletSendSiacoinSeed,onOpenChange:t=>t?e(n,o.walletSendSiacoinSeed):r()}),(0,i.jsx)(eM,{open:"walletSendSiacoinLedger"===n,params:o.walletSendSiacoinLedger,onOpenChange:t=>t?e(n,o.walletSendSiacoinLedger):r()}),(0,i.jsx)(a.QHy,{open:"confirm"===n,params:o.confirm,onOpenChange:t=>t?e(n,o.confirm):r()})]})}},51660:function(e,t,r){"use strict";r.d(t,{Yl:function(){return v},hI:function(){return m}});var n=r(52322),i=r(74766),o=r(41345),a=r(2784);let s=["type","height","timestamp","amount","fee"],l=[];var u=r(96206);let c=[{id:"type",label:"type",category:"general",fixed:!0,render:e=>{let{data:{type:t}}=e;return(0,n.jsx)(i.xvT,{weight:"medium",ellipsis:!0,children:t})}},{id:"height",label:"height",category:"general",render:e=>{let{data:{height:t,pending:r}}=e;return r?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,n.jsx)(i.xgg,{})}):t?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:t.toLocaleString()}):null}},{id:"maturityHeight",label:"maturity height",category:"general",render:e=>{let{data:{maturityHeight:t}}=e;return t?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:t.toLocaleString()}):null}},{id:"timestamp",label:"timestamp",category:"general",render:e=>{let{data:{timestamp:t,pending:r}}=e;return r?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,n.jsx)(i.xgg,{})}):(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,u.rN)(t,{timeStyle:"short"})})}},{id:"amount",label:"amount",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{amount:t}}=e;return t?(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t}):null}},{id:"fee",label:"fee",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{fee:t}}=e;return t?(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",variant:"value",value:t}):null}},{id:"transactionId",label:"transaction ID",category:"general",render:e=>{let{data:{transactionId:t}}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"transaction ID"}):null}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{contractId:t}}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"contract ID"}):null}},{id:"outputId",label:"output ID",category:"general",render:e=>{let{data:{outputId:t}}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"output ID"}):null}},{id:"netAddress",label:"net address",category:"general",render:e=>{let{data:{netAddress:t}}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,type:"ip"}):null}},{id:"publicKey",label:"public key",category:"general",render:e=>{let{data:{publicKey:t}}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"public key"}):null}}];var d=r(5632),f=r(6391),h=r.n(f);let p=(0,a.createContext)({}),m=()=>(0,a.useContext)(p);function v(e){let{children:t}=e,r=function(){let e=(0,d.useRouter)(),t=e.query.id,r=Number(e.query.limit||100),n=Number(e.query.offset||0),{filters:u,setFilter:f,removeFilter:p,removeLastFilter:m,resetFilters:v}=(0,i.Uu5)(),g=(0,o.jy)({disabled:!t,params:{id:t}}),y=(0,o.sG)({disabled:!t,params:{limit:r,offset:n,id:t}}),b=(0,o.He)(),x=(0,a.useCallback)(async()=>{b.post({params:{id:t},payload:0})},[b,t]);(0,a.useEffect)(()=>{t&&x()},[t]);let w=(0,a.useMemo)(()=>{if(!y.data||!g.data)return null;let e=g.data.map(e=>({id:e.ID,timestamp:0,pending:!0,type:e.type,amount:new(h())(e.received).minus(e.sent)})),t=y.data.map((e,t)=>{let r=new(h())(0);if("siacoin transfer"===e.type){var n,i,o,a;let t=(null===(i=e.val)||void 0===i?void 0:null===(n=i.inputs)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t.value),new(h())(0)))||new(h())(0),s=(null===(a=e.val)||void 0===a?void 0:null===(o=a.outputs)||void 0===o?void 0:o.reduce((e,t)=>e.plus(t.value),new(h())(0)))||new(h())(0);r=s.minus(t)}let s=String(t),l={id:s,type:e.type,timestamp:new Date(e.timestamp).getTime(),height:e.index.height,pending:!1,amount:r};return"maturityHeight"in e.val&&(l.maturityHeight=e.val.maturityHeight),"fee"in e.val&&(l.fee=new(h())(e.val.fee)),"contractID"in e.val&&(l.contractId=e.val.contractID),"transactionID"in e.val&&(l.id+=e.val.transactionID,l.transactionId=e.val.transactionID),"outputID"in e.val&&(l.id+=e.val.outputID,l.outputId=e.val.outputID),"netAddress"in e.val&&(l.netAddress=e.val.netAddress),"publicKey"in e.val&&(l.publicKey=e.val.publicKey),l});return[...e.reverse(),...t]},[y.data,g.data]),{configurableColumns:E,enabledColumns:j,sortableColumns:S,toggleColumnVisibility:C,setColumnsVisible:k,setColumnsHidden:A,toggleSort:O,setSortDirection:T,setSortField:_,sortField:M,sortDirection:N,resetDefaultColumnVisibility:R}=(0,i.oy6)("walletd/v0/events",{columns:c,columnsDefaultVisible:s,sortOptions:l,defaultSortField:"id"}),P=(0,a.useMemo)(()=>c.filter(e=>e.fixed||j.includes(e.id)),[j]),L=y.isValidating||g.isValidating,D=y.error||g.error,I=(0,i.c2j)(w,L,D,u);return{dataState:I,error:y.error,pageCount:(null==w?void 0:w.length)||0,columns:P,dataset:w,configurableColumns:E,enabledColumns:j,sortableColumns:S,toggleColumnVisibility:C,setColumnsVisible:k,setColumnsHidden:A,toggleSort:O,setSortDirection:T,setSortField:_,sortField:M,sortDirection:N,resetDefaultColumnVisibility:R,filters:u,setFilter:f,removeFilter:p,removeLastFilter:m,resetFilters:v,offset:n,limit:r}}();return(0,n.jsx)(p.Provider,{value:r,children:t})}},39094:function(e,t,r){"use strict";r.d(t,{c:function(){return c},d:function(){return d}});var n=r(52322),i=r(73866),o=r(27748),a=r(35415),s=r.n(a),l=r(2784);let u=(0,l.createContext)({}),c=()=>(0,l.useContext)(u);function d(e){let{children:t}=e,r=function(){let[e,t]=(0,l.useState)(!1),[r,n]=(0,l.useState)(),[a,u]=(0,l.useState)(),c=(0,l.useCallback)(()=>{if(r){try{r.sia.close(),u(void 0)}catch(e){console.log(e)}n(void 0)}},[r]),d=(0,l.useCallback)(async e=>{let r=null;t(!0);try{switch(e){case"HID":(r=await o.Z.openConnected())||(r=await o.Z.create());break;case"Bluetooth":r=await i.Z.create();break;default:throw Error("Unsupported transport method: ".concat(e))}if(r){u(void 0);let i=new(s())(r);n({type:e,sia:i,transport:r}),t(!1)}}catch(e){u(e),t(!1)}},[]),f=(0,l.useCallback)(async()=>{if(!r){u(Error("No device connected"));return}t(!0);try{let e=await r.sia.verifyPublicKey(0);return u(void 0),n(t=>({...t,publicKey0:e.publicKey,address0:e.address})),t(!1),e}catch(e){t(!1),u(e)}},[r]);return(0,l.useEffect)(()=>{if(!(null==r?void 0:r.transport))return;let e=setInterval(async()=>{(null==r?void 0:r.transport._disconnectEmitted)&&n(void 0)},2e3);return()=>clearInterval(e)},[null==r?void 0:r.transport]),{connect:d,verify:f,disconnect:c,device:r,error:a,setError:u,waitingForUser:e}}();return(0,n.jsx)(u.Provider,{value:r,children:t})}},6110:function(e,t,r){"use strict";r.d(t,{k:function(){return S},r:function(){return j}});var n=r(52322),i=r(74766),o=r(41345),a=r(2784),s=r(81336),l=r(20876),u=r(96206),c=r(8822),d=r(22038),f=r(6391),h=r.n(f),p=r(18250);let m=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,n.jsx)(p.g,{trigger:(0,n.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,n.jsx)(l.iG7,{})}),contentProps:{align:"start"},wallet:t})}},{id:"details",label:"name",category:"general",fixed:!0,render:e=>{let{data:{id:t,name:r,description:o}}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(i.xvT,{weight:"bold",ellipsis:!0,children:r||t}),o&&(0,n.jsx)(i.ua7,{content:(0,n.jsx)("pre",{children:(0,n.jsx)(i.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:o})}),children:(0,n.jsx)(i.nvN,{size:"12",children:o.split("\n")[0]})})]})}},{id:"balance",label:"balance",category:"general",contentClassName:"justify-end",render:function(e){let{data:{id:t}}=e,r=(0,o.tM)({params:{id:t}});return r.data?(0,n.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",variant:"value",value:new(h())(r.data.siacoins)}),!!r.data.siafunds&&(0,n.jsx)(i.Sby,{size:"12",variant:"value",value:r.data.siafunds})]}):null}},{id:"type",label:"type",category:"general",render:e=>{var t,r;let{data:{type:o}}=e;return(0,n.jsx)(i.ua7,{content:null===(t=d._[o])||void 0===t?void 0:t.title,children:(0,n.jsxs)(i.Cts,{interactive:!1,className:"flex gap-0.5 items-center",children:[(0,n.jsx)(i.xvT,{color:"subtle",className:"scale-75 relative top-px",children:null===(r=d._[o])||void 0===r?void 0:r.icon}),o]})})}},{id:"status",label:"status",category:"general",render:e=>{let{data:{type:t,status:r,activityAt:o,unlock:a,lock:s},context:{walletAutoLockEnabled:u,walletAutoLockTimeout:d}}=e;if("seed"===t){let e=new Date().getTime()-o,t=Math.max(d-e,0),f=(0,c.l)(t),h=u?"The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ".concat(f.amount.toFixed(0)," more ").concat(f.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,n.jsx)(i.zxk,{tip:"unlocked"===r?h:"The wallet is currently locked.",color:"unlocked"===r?"contrast":"verySubtle",variant:"ghost",onClick:e=>{e.stopPropagation(),"unlocked"===r?s():a()},children:"unlocked"===r?(0,n.jsx)(l.VmF,{}):(0,n.jsx)(l.Lur,{})})}return null}},{id:"createdAt",label:"created on",category:"general",render:e=>{let{data:{createdAt:t}}=e;return t?(0,n.jsx)(i.xvT,{size:"12",children:(0,u.rN)(t,{dateStyle:"medium"})}):null}}];var v=r(5632),g=r(71930),y=r(27429),b=r(92762),x=r(83753),w=r(2850);let E=(0,a.createContext)({}),j=()=>(0,a.useContext)(E);function S(e){let{children:t}=e,r=function(){let e=(0,o.rB)(),t=(0,v.useRouter)(),{openDialog:r}=(0,x.Rh)(),{setOnLockCallback:n}=(0,w.Hv)(),{seedCache:l,walletActivityAt:u,saveWalletSeed:c,lockAllWallets:d,walletAutoLockTimeout:f,setWalletAutoLockTimeout:h,setWalletAutoLockEnabled:p,walletAutoLockEnabled:E}=function(){let[e,t]=(0,b.Z)("v0/wallets/walletAutoLockEnabled",{defaultValue:!0}),[r,n]=(0,b.Z)("v0/wallets/walletAutoLockTimeout",{defaultValue:(0,i.sWj)(5)}),[o,s]=(0,a.useState)({}),[l,u]=(0,a.useState)({}),c=(0,a.useMemo)(()=>Object.keys(l).length,[l]),d=(0,a.useCallback)(e=>{s(t=>({...t,[e]:new Date().getTime()}))},[s]),f=(0,a.useCallback)((e,t)=>{u(r=>({...r,[e]:t})),t&&d(e)},[u,d]),h=(0,a.useCallback)(()=>{if(!e)return;let t=new Date().getTime(),n=t-r;for(let[e,t]of Object.entries(l))if(t){let t=o[e]||0;t{u({})},[u]),m=(0,v.useRouter)(),x=(0,a.useCallback)(()=>{if(m.pathname.startsWith(g._.wallet.base)){let e=m.query.id;d(e)}},[m,d]);return(0,y.Yp)({onAction:x,throttle:5e3,eventsThrottle:5e3}),(0,a.useEffect)(()=>{if(!e)return;let t=setInterval(()=>{h()},5e3);return()=>{clearInterval(t)}},[e]),{walletActivityAt:o,updateWalletActivityAt:d,seedCache:l,saveWalletSeed:f,lockAllWallets:p,seedCount:c,walletAutoLockTimeout:r,setWalletAutoLockTimeout:n,setWalletAutoLockEnabled:t,walletAutoLockEnabled:e}}();(0,a.useEffect)(()=>{n("wallets",()=>{d()})},[]);let j=(0,a.useMemo)(()=>{if(!e.data)return null;let n=Object.entries(e.data||{}).map(e=>{let[n,i]=e;return{id:n,name:i.name,seed:l[n],status:l[n]?"unlocked":"locked",activityAt:u[n],seedHash:i.seedHash,description:i.description,createdAt:i.createdAt||0,type:i.type,unlock:()=>r("walletUnlock",{walletId:n}),lock:()=>c(n,void 0),onClick:()=>t.push({pathname:g._.wallet.view,query:{id:n}})}});return n},[t,e.data,l,u,r,c]),S=null==j?void 0:j.find(e=>e.id===t.query.id),{filters:C,setFilter:k,removeFilter:A,removeLastFilter:O,resetFilters:T}=(0,i.Wdu)(),{configurableColumns:_,enabledColumns:M,sortableColumns:N,toggleColumnVisibility:R,setColumnsVisible:P,setColumnsHidden:L,toggleSort:D,setSortDirection:I,setSortField:F,sortField:V,sortDirection:B,resetDefaultColumnVisibility:U}=(0,i.oy6)("walletd/v0/wallets",{columns:m,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),z=(0,i._4u)({dataset:j,filters:C,sortField:V,sortDirection:B}),H=(0,a.useMemo)(()=>m.filter(e=>e.fixed||M.includes(e.id)),[M]),$=(0,i.c2j)(j,e.isValidating,e.error,C),W=(0,a.useMemo)(()=>({walletAutoLockTimeout:f,walletAutoLockEnabled:E}),[E,f]);return{dataState:$,error:e.error,datasetCount:(null==z?void 0:z.length)||0,unlockedCount:(null==j?void 0:j.filter(e=>e.seed).length)||0,columns:H,dataset:z,context:W,wallet:S,configurableColumns:_,enabledColumns:M,sortableColumns:N,toggleColumnVisibility:R,setColumnsVisible:P,setColumnsHidden:L,toggleSort:D,setSortDirection:I,setSortField:F,sortField:V,filters:C,setFilter:k,removeFilter:A,removeLastFilter:O,resetFilters:T,sortDirection:B,resetDefaultColumnVisibility:U,saveWalletSeed:c,lockAllWallets:d,walletAutoLockTimeout:f,setWalletAutoLockTimeout:h,setWalletAutoLockEnabled:p,walletAutoLockEnabled:E}}();return(0,n.jsx)(E.Provider,{value:r,children:t})}},81336:function(e,t,r){"use strict";r.d(t,{Fo:function(){return o},gd:function(){return n},nw:function(){return i}});let n=["actions","details","balance","type","status","createdAt"],i="name",o=[{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"}]},8822:function(e,t,r){"use strict";function n(e){return!e||e<1e3?{amount:0,units:"seconds"}:(e/=1e3)<60?{amount:Math.floor(100*e)/100,units:"seconds"}:{amount:Math.floor(e/60*100)/100,units:"minutes"}}r.d(t,{l:function(){return n}})},74236:function(e,t,r){"use strict";function n(){return r.g.walletWasm}async function i(){WebAssembly.instantiateStreaming||(WebAssembly.instantiateStreaming=async(e,t)=>{let r=await (await e).arrayBuffer();return await WebAssembly.instantiate(r,t)});let e=function(){let e=()=>{let e=Error("not implemented");return e.code="ENOSYS",e};if(!globalThis.fs){let t="";globalThis.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(e,n){t+=r.decode(n);let i=t.lastIndexOf("\n");return -1!=i&&(t=t.substring(i+1)),n.length},write(t,r,n,i,o,a){if(0!==n||i!==r.length||null!==o){a(e());return}let s=this.writeSync(t,r);a(null,s)},chmod(t,r,n){n(e())},chown(t,r,n,i){i(e())},close(t,r){r(e())},fchmod(t,r,n){n(e())},fchown(t,r,n,i){i(e())},fstat(t,r){r(e())},fsync(e,t){t(null)},ftruncate(t,r,n){n(e())},lchown(t,r,n,i){i(e())},link(t,r,n){n(e())},lstat(t,r){r(e())},mkdir(t,r,n){n(e())},open(t,r,n,i){i(e())},read(t,r,n,i,o,a){a(e())},readdir(t,r){r(e())},readlink(t,r){r(e())},rename(t,r,n){n(e())},rmdir(t,r){r(e())},stat(t,r){r(e())},symlink(t,r,n){n(e())},truncate(t,r,n){n(e())},unlink(t,r){r(e())},utimes(t,r,n,i){i(e())}}}if(globalThis.process||(globalThis.process={getuid:()=>-1,getgid:()=>-1,geteuid:()=>-1,getegid:()=>-1,getgroups(){throw e()},pid:-1,ppid:-1,umask(){throw e()},cwd(){throw e()},chdir(){throw e()}}),!globalThis.crypto)throw Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");if(!globalThis.performance)throw Error("globalThis.performance is not available, polyfill required (performance.now only)");if(!globalThis.TextEncoder)throw Error("globalThis.TextEncoder is not available, polyfill required");if(!globalThis.TextDecoder)throw Error("globalThis.TextDecoder is not available, polyfill required");let t=new TextEncoder("utf-8"),r=new TextDecoder("utf-8");return class{async run(e){if(!(e instanceof WebAssembly.Instance))throw Error("Go.run: WebAssembly.Instance expected");this._inst=e,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,globalThis,this],this._goRefCounts=Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[globalThis,5],[this,6]]),this._idPool=[],this.exited=!1;let r=4096,n=e=>{let n=r,i=t.encode(e+"\x00");return new Uint8Array(this.mem.buffer,r,i.length).set(i),(r+=i.length)%8!=0&&(r+=8-r%8),n},i=this.argv.length,o=[];this.argv.forEach(e=>{o.push(n(e))}),o.push(0);let a=Object.keys(this.env).sort();a.forEach(e=>{o.push(n("".concat(e,"=").concat(this.env[e])))}),o.push(0);let s=r;if(o.forEach(e=>{this.mem.setUint32(r,e,!0),this.mem.setUint32(r+4,0,!0),r+=8}),r>=12288)throw Error("total length of command line and environment variables exceeds limit");this._inst.exports.run(i,s),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(e){let t=this;return function(){let r={id:e,this:this,args:arguments};return t._pendingEvent=r,t._resume(),r.result}}constructor(){this.argv=["js"],this.env={},this.exit=e=>{0!==e&&console.warn("exit code:",e)},this._exitPromise=new Promise(e=>{this._resolveExitPromise=e}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;let e=(e,t)=>{this.mem.setUint32(e+0,t,!0),this.mem.setUint32(e+4,Math.floor(t/4294967296),!0)},n=e=>{let t=this.mem.getUint32(e+0,!0),r=this.mem.getInt32(e+4,!0);return t+4294967296*r},i=e=>{let t=this.mem.getFloat64(e,!0);if(0===t)return;if(!isNaN(t))return t;let r=this.mem.getUint32(e,!0);return this._values[r]},o=(e,t)=>{if("number"==typeof t&&0!==t){if(isNaN(t)){this.mem.setUint32(e+4,2146959360,!0),this.mem.setUint32(e,0,!0);return}this.mem.setFloat64(e,t,!0);return}if(void 0===t){this.mem.setFloat64(e,0,!0);return}let r=this._ids.get(t);void 0===r&&(void 0===(r=this._idPool.pop())&&(r=this._values.length),this._values[r]=t,this._goRefCounts[r]=0,this._ids.set(t,r)),this._goRefCounts[r]++;let n=0;switch(typeof t){case"object":null!==t&&(n=1);break;case"string":n=2;break;case"symbol":n=3;break;case"function":n=4}this.mem.setUint32(e+4,2146959360|n,!0),this.mem.setUint32(e,r,!0)},a=e=>{let t=n(e+0),r=n(e+8);return new Uint8Array(this._inst.exports.mem.buffer,t,r)},s=e=>{let t=n(e+0),r=n(e+8),o=Array(r);for(let e=0;e{let t=n(e+0),i=n(e+8);return r.decode(new DataView(this._inst.exports.mem.buffer,t,i))},u=Date.now()-performance.now();this.importObject={go:{"runtime.wasmExit":e=>{e>>>=0;let t=this.mem.getInt32(e+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(t)},"runtime.wasmWrite":e=>{e>>>=0;let t=n(e+8),r=n(e+16),i=this.mem.getInt32(e+24,!0);fs.writeSync(t,new Uint8Array(this._inst.exports.mem.buffer,r,i))},"runtime.resetMemoryDataView":e=>{this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":t=>{e((t>>>=0)+8,(u+performance.now())*1e6)},"runtime.walltime":t=>{t>>>=0;let r=new Date().getTime();e(t+8,r/1e3),this.mem.setInt32(t+16,r%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":e=>{e>>>=0;let t=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(t,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(t);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},n(e+8)+1)),this.mem.setInt32(e+16,t,!0)},"runtime.clearTimeoutEvent":e=>{e>>>=0;let t=this.mem.getInt32(e+8,!0);clearTimeout(this._scheduledTimeouts.get(t)),this._scheduledTimeouts.delete(t)},"runtime.getRandomData":e=>{e>>>=0,crypto.getRandomValues(a(e+8))},"syscall/js.finalizeRef":e=>{e>>>=0;let t=this.mem.getUint32(e+8,!0);if(this._goRefCounts[t]--,0===this._goRefCounts[t]){let e=this._values[t];this._values[t]=null,this._ids.delete(e),this._idPool.push(t)}},"syscall/js.stringVal":e=>{o((e>>>=0)+24,l(e+8))},"syscall/js.valueGet":e=>{e>>>=0;let t=Reflect.get(i(e+8),l(e+16));o((e=this._inst.exports.getsp()>>>0)+32,t)},"syscall/js.valueSet":e=>{e>>>=0,Reflect.set(i(e+8),l(e+16),i(e+32))},"syscall/js.valueDelete":e=>{e>>>=0,Reflect.deleteProperty(i(e+8),l(e+16))},"syscall/js.valueIndex":e=>{o((e>>>=0)+24,Reflect.get(i(e+8),n(e+16)))},"syscall/js.valueSetIndex":e=>{e>>>=0,Reflect.set(i(e+8),n(e+16),i(e+24))},"syscall/js.valueCall":e=>{e>>>=0;try{let t=i(e+8),r=Reflect.get(t,l(e+16)),n=s(e+32),a=Reflect.apply(r,t,n);e=this._inst.exports.getsp()>>>0,o(e+56,a),this.mem.setUint8(e+64,1)}catch(t){o((e=this._inst.exports.getsp()>>>0)+56,t),this.mem.setUint8(e+64,0)}},"syscall/js.valueInvoke":e=>{e>>>=0;try{let t=i(e+8),r=s(e+16),n=Reflect.apply(t,void 0,r);e=this._inst.exports.getsp()>>>0,o(e+40,n),this.mem.setUint8(e+48,1)}catch(t){o((e=this._inst.exports.getsp()>>>0)+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueNew":e=>{e>>>=0;try{let t=i(e+8),r=s(e+16),n=Reflect.construct(t,r);e=this._inst.exports.getsp()>>>0,o(e+40,n),this.mem.setUint8(e+48,1)}catch(t){o((e=this._inst.exports.getsp()>>>0)+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueLength":t=>{e((t>>>=0)+16,parseInt(i(t+8).length))},"syscall/js.valuePrepareString":r=>{r>>>=0;let n=t.encode(String(i(r+8)));o(r+16,n),e(r+24,n.length)},"syscall/js.valueLoadString":e=>{e>>>=0;let t=i(e+8);a(e+16).set(t)},"syscall/js.valueInstanceOf":e=>{e>>>=0,this.mem.setUint8(e+24,i(e+8) instanceof i(e+16)?1:0)},"syscall/js.copyBytesToGo":t=>{t>>>=0;let r=a(t+8),n=i(t+32);if(!(n instanceof Uint8Array||n instanceof Uint8ClampedArray)){this.mem.setUint8(t+48,0);return}let o=n.subarray(0,r.length);r.set(o),e(t+40,o.length),this.mem.setUint8(t+48,1)},"syscall/js.copyBytesToJS":t=>{t>>>=0;let r=i(t+8),n=a(t+16);if(!(r instanceof Uint8Array||r instanceof Uint8ClampedArray)){this.mem.setUint8(t+48,0);return}let o=n.subarray(0,r.length);r.set(o),e(t+40,o.length),this.mem.setUint8(t+48,1)},debug:e=>{console.log(e)}}}}}}(),t=new e,r=fetch("/walletd.wasm");try{let e=await WebAssembly.instantiateStreaming(r,t.importObject);return t.run(e.instance),{}}catch(e){return console.log(e),{error:e.message}}}r.d(t,{x:function(){return n},J:function(){return i}})},15610:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return x}});var n=r(52322);r(37832);var i=r(74766),o=r(83753),a=r(2784),s=r(6110),l=r(45283),u=r(51660),c=r(39094);function d(e){let{children:t}=e;return(0,n.jsx)(o.Tu,{children:(0,n.jsx)(c.d,{children:(0,n.jsx)(s.k,{children:(0,n.jsx)(l.OZ,{children:(0,n.jsxs)(u.Yl,{children:[(0,n.jsx)(o.xQ,{}),t]})})})})})}var f=r(74236),h=r(71930),p=r(1240),m=r.n(p),v=r(49854),g=r.n(v),y=r(82851);let b=(0,y.cx)(m().variable,g().variable);function x(e){let{Component:t,pageProps:r}=e;return(0,a.useEffect)(()=>{let e=async()=>{let{error:e}=await (0,f.J)();e&&(0,i.OHV)("Error initializing WASM. This browser is not supported.",{duration:6e4})};e()},[]),(0,n.jsx)(i.PD$,{className:b,fallback:r.fallback,passwordProtectRequestHooks:!0,lockRoutes:h._,children:(0,n.jsx)(d,{children:(0,n.jsx)(t,{...r})})})}},74766:function(e,t,r){"use strict";let n,i,o,a,s;r.d(t,{bZj:function(){return lh},tU3:function(){return Sy},zXq:function(){return SM},juT:function(){return Sc},Cts:function(){return lk},WVB:function(){return dZ},zxk:function(){return lc},EKh:function(){return lO},QHy:function(){return O1},HfT:function(){return O3},ncR:function(){return jK},VqE:function(){return cb},h_2:function(){return dQ},Xiv:function(){return d0},Juw:function(){return d1},KpP:function(){return d2},cp7:function(){return jQ},Qyk:function(){return jJ},jIp:function(){return O8},WyV:function(){return Te},qGu:function(){return O5},QBj:function(){return O9},yEL:function(){return SA},Bau:function(){return O7},ZqQ:function(){return j2},X6q:function(){return d8},Yqd:function(){return hx},__J:function(){return fa},rUS:function(){return fc},Qjf:function(){return fd},xgg:function(){return wN},kFS:function(){return dY},FzK:function(){return O0},Clw:function(){return dG},PD$:function(){return To},Wxm:function(){return hS},wFK:function(){return Sr},s_4:function(){return re},nvN:function(){return t7},u5Q:function(){return OK},j4H:function(){return hw},J2e:function(){return fL},tIK:function(){return OO},PhF:function(){return hj},Wh3:function(){return pA},Z0O:function(){return dz},DLL:function(){return OX},KJW:function(){return Sp},rsf:function(){return hV},D_D:function(){return OU},iA_:function(){return Se},t6k:function(){return O6},xvT:function(){return t8},ua7:function(){return ll},XxW:function(){return jS},YKL:function(){return jk},ho9:function(){return jT},Sby:function(){return jC},hKn:function(){return OH},vQq:function(){return jy},ytg:function(){return Oq},sWj:function(){return OW},I13:function(){return jx},OHV:function(){return jm},OPV:function(){return jp},$Gg:function(){return jb},_4u:function(){return Tf},Wdu:function(){return Td},c2j:function(){return Sb},WsO:function(){return Sk},Uu5:function(){return Th},oy6:function(){return Tc}});var l,u,c,d,f,h,p,m,v,g,y,b,x=r(52322),w=r(2784),E=r.t(w,2);function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;tn,Object.values(n));return(0,w.createElement)(r.Provider,{value:i},t)}return n.displayName=e+"Provider",[n,function(n){let i=(0,w.useContext)(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}]}function C(e,t=[]){let r=[],n=()=>{let t=r.map(e=>(0,w.createContext)(e));return function(r){let n=(null==r?void 0:r[e])||t;return(0,w.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=(0,w.createContext)(n),o=r.length;function a(t){let{scope:r,children:n,...a}=t,s=(null==r?void 0:r[e][o])||i,l=(0,w.useMemo)(()=>a,Object.values(a));return(0,w.createElement)(s.Provider,{value:l},n)}return r=[...r,n],a.displayName=t+"Provider",[a,function(r,a){let s=(null==a?void 0:a[e][o])||i,l=(0,w.useContext)(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e),o=i[`__scope${n}`];return{...t,...o}},{});return(0,w.useMemo)(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}function k(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function A(...e){return(0,w.useCallback)(k(...e),e)}let O=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e,i=w.Children.toArray(r),o=i.find(M);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:w.Children.count(e)>1?w.Children.only(null):(0,w.isValidElement)(e)?e.props.children:null);return(0,w.createElement)(T,j({},n,{ref:t}),(0,w.isValidElement)(e)?(0,w.cloneElement)(e,void 0,r):null)}return(0,w.createElement)(T,j({},n,{ref:t}),r)});O.displayName="Slot";let T=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,w.isValidElement)(r)?(0,w.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n],a=/^on[A-Z]/.test(n);a?r[n]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:k(t,r.ref)}):w.Children.count(r)>1?w.Children.only(null):null});T.displayName="SlotClone";let _=({children:e})=>(0,w.createElement)(w.Fragment,null,e);function M(e){return(0,w.isValidElement)(e)&&e.type===_}function N(e){let t=e+"CollectionProvider",[r,n]=C(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=w.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(a,r),s=A(t,i.collectionRef);return w.createElement(O,{ref:s},n)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=w.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=w.useRef(null),s=A(t,a),c=o(l,r);return w.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),w.createElement(O,{[u]:"",ref:s},n)});return[{Provider:e=>{let{scope:t,children:r}=e,n=w.useRef(null),o=w.useRef(new Map).current;return w.createElement(i,{scope:t,itemMap:o,collectionRef:n},r)},Slot:s,ItemSlot:c},function(t){let r=o(e+"CollectionConsumer",t),n=w.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),n=Array.from(r.itemMap.values()),i=n.sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current));return i},[r.collectionRef,r.itemMap]);return n},n]}function R(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function P(e){let t=(0,w.useRef)(e);return(0,w.useEffect)(()=>{t.current=e}),(0,w.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}function L({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=(0,w.useState)(e),[n]=r,i=(0,w.useRef)(n),o=P(t);return(0,w.useEffect)(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,a=o?e:n,s=P(r),l=(0,w.useCallback)(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else i(t)},[o,e,i,s]);return[a,l]}var D=r(28316);let I=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,w.forwardRef)((e,r)=>{let{asChild:n,...i}=e,o=n?O:t;return(0,w.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,w.createElement)(o,j({},i,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function F(e,t){e&&(0,D.flushSync)(()=>e.dispatchEvent(t))}let V=(null==globalThis?void 0:globalThis.document)?w.useLayoutEffect:()=>{},B=e=>{let{present:t,children:r}=e,n=function(e){var t;let[r,n]=(0,w.useState)(),i=(0,w.useRef)({}),o=(0,w.useRef)(e),a=(0,w.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,w.useReducer)((e,r)=>{let n=t[e][r];return null!=n?n:e},s));return(0,w.useEffect)(()=>{let e=U(i.current);a.current="mounted"===l?e:"none"},[l]),V(()=>{let t=i.current,r=o.current,n=r!==e;if(n){let n=a.current,i=U(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):r&&n!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),V(()=>{if(r){let e=e=>{let t=U(i.current),n=t.includes(e.animationName);e.target===r&&n&&(0,D.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(a.current=U(i.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,w.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}(t),i="function"==typeof r?r({present:n.isPresent}):w.Children.only(r),o=A(n.ref,i.ref),a="function"==typeof r;return a||n.isPresent?(0,w.cloneElement)(i,{ref:o}):null};function U(e){return(null==e?void 0:e.animationName)||"none"}B.displayName="Presence";let z=E["useId".toString()]||(()=>void 0),H=0;function $(e){let[t,r]=w.useState(z());return V(()=>{e||r(e=>null!=e?e:String(H++))},[e]),e||(t?`radix-${t}`:"")}let W="Collapsible",[q,G]=C(W),[Z,Y]=q(W),X=((e,t)=>{let{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=L({prop:n,defaultProp:i,onChange:a});return(0,w.createElement)(Z,{scope:r,disabled:o,contentId:$(),open:l,onOpenToggle:(0,w.useCallback)(()=>u(e=>!e),[u])},(0,w.createElement)(I.div,j({"data-state":J(l),"data-disabled":o?"":void 0},s,{ref:t})))},"CollapsibleContent"),K=((e,t)=>{let{forceMount:r,...n}=e,i=Y(X,e.__scopeCollapsible);return(0,w.createElement)(B,{present:r||i.open},({present:e})=>(0,w.createElement)(K,j({},n,{ref:t,present:e})))},(0,w.forwardRef)((e,t)=>{let{__scopeCollapsible:r,present:n,children:i,...o}=e,a=Y(X,r),[s,l]=(0,w.useState)(n),u=(0,w.useRef)(null),c=A(t,u),d=(0,w.useRef)(0),f=d.current,h=(0,w.useRef)(0),p=h.current,m=a.open||s,v=(0,w.useRef)(m),g=(0,w.useRef)();return(0,w.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),V(()=>{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(n)}},[a.open,n]),(0,w.createElement)(I.div,j({"data-state":J(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 J(e){return e?"open":"closed"}let Q="Accordion",ee=["Home","End","ArrowDown","ArrowUp"],[et,er,en]=N(Q),[ei,eo]=C(Q,[en,G]),ea=(G(),w.forwardRef((e,t)=>{let{type:r,...n}=e;return w.createElement(et.Provider,{scope:e.__scopeAccordion},"multiple"===r?w.createElement(ef,j({},n,{ref:t})):w.createElement(ed,j({},n,{ref:t})))}));ea.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[es,el]=ei(Q),[eu,ec]=ei(Q,{collapsible:!1}),ed=w.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=L({prop:r,defaultProp:n,onChange:i});return w.createElement(es,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:w.useCallback(()=>o&&l(""),[o,l])},w.createElement(eu,{scope:e.__scopeAccordion,collapsible:o},w.createElement(em,j({},a,{ref:t}))))}),ef=w.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},...o}=e,[a=[],s]=L({prop:r,defaultProp:n,onChange:i}),l=w.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=w.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return w.createElement(es,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},w.createElement(eu,{scope:e.__scopeAccordion,collapsible:!0},w.createElement(em,j({},o,{ref:t}))))}),[eh,ep]=ei(Q),em=w.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:n,...i}=e,o=w.useRef(null),a=A(o,t),s=er(r),l=R(e.onKeyDown,e=>{var t;if(!ee.includes(e.key))return;let r=e.target,n=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=n.findIndex(e=>e.ref.current===r),o=n.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)}let l=a%o;null===(t=n[l].ref.current)||void 0===t||t.focus()});return w.createElement(eh,{scope:r,disabled:n},w.createElement(et.Slot,{scope:r},w.createElement(I.div,j({},i,{ref:a,onKeyDown:n?void 0:l}))))}),[ev,eg]=ei("AccordionItem");var ey=r(82851);let eb="dismissableLayer.update",ex=(0,w.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ew=(0,w.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=(0,w.useContext)(ex),[d,f]=(0,w.useState)(null),[,h]=(0,w.useState)({}),p=A(t,e=>f(e)),m=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),y=d?m.indexOf(d):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=y>=g,E=function(e){let t=P(e),r=(0,w.useRef)(!1),n=(0,w.useRef)(()=>{});return(0,w.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function i(){ej("dismissableLayer.pointerDownOutside",t,r,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",n.current),n.current=i,document.addEventListener("click",n.current,{once:!0})):i()}r.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",n.current)}},[t]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,r=[...c.branches].some(e=>e.contains(t));!x||r||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==l||l())}),S=function(e){let t=P(e),r=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=e=>{e.target&&!r.current&&ej("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,r=[...c.branches].some(e=>e.contains(t));r||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())});return!function(e){let t=P(e);(0,w.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=y===c.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),(0,w.useEffect)(()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(n=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),eE(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=n)}},[d,r,c]),(0,w.useEffect)(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),eE())},[d,c]),(0,w.useEffect)(()=>{let e=()=>h({});return document.addEventListener(eb,e),()=>document.removeEventListener(eb,e)},[]),(0,w.createElement)(I.div,j({},u,{ref:p,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,S.onFocusCapture),onBlurCapture:R(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,E.onPointerDownCapture)}))});function eE(){let e=new CustomEvent(eb);document.dispatchEvent(e)}function ej(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?F(i,o):i.dispatchEvent(o)}function eS(e){return e.split("-")[0]}function eC(e){return e.split("-")[1]}function ek(e){return["top","bottom"].includes(eS(e))?"x":"y"}function eA(e){return"y"===e?"height":"width"}function eO(e,t,r){let n,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=ek(t),u=eA(l),c=i[u]/2-o[u]/2,d="x"===l;switch(eS(t)){case"top":n={x:a,y:i.y-o.height};break;case"bottom":n={x:a,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:s};break;case"left":n={x:i.x-o.width,y:s};break;default:n={x:i.x,y:i.y}}switch(eC(t)){case"start":n[l]-=c*(r&&d?-1:1);break;case"end":n[l]+=c*(r&&d?-1:1)}return n}let eT=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=eO(l,n,s),d=n,f={},h=0;for(let r=0;r({name:"arrow",options:e,async fn(t){let{element:r,padding:n=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==r)return{};let u=e_(n),c={x:i,y:o},d=ek(a),f=eC(a),h=eA(d),p=await l.getDimensions(r),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(r)),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),S=eP(w,eR(j,E)),C=("start"===f?u[m]:u[v])>0&&j!==S&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(C?jeD[e])}let eF={start:"end",end:"start"};function eV(e){return e.replace(/start|end/g,e=>eF[e])}let eB=["top","right","bottom","left"];eB.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eU=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,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=eS(a),b=p||(y!==u&&v?function(e){let t=eI(e);return[eV(e),t,eV(t)]}(u):[eI(u)]),x=[u,...b],w=await eN(t,g),E=[],j=(null==(r=s.flip)?void 0:r.overflows)||[];if(f&&E.push(w[y]),h){let{main:e,cross:t}=function(e,t,r){void 0===r&&(r=!1);let n=eC(e),i=ek(e),o=eA(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=eI(a)),{main:a,cross:eI(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!=(n=null==(i=s.flip)?void 0:i.index)?n:0)+1,t=x[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let r="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&&(r=e);break}case"initialPlacement":r=u}if(a!==r)return{reset:{placement:r}}}return{}}}};function ez(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eH(e){return eB.some(t=>e[t]>=0)}let e$=function(e){let{strategy:t="referenceHidden",...r}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:n}=e;switch(t){case"referenceHidden":{let t=ez(await eN(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eH(t)}}}case"escaped":{let t=ez(await eN(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:eH(t)}}}default:return{}}}}},eW=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:r,y:n}=t,i=await async function(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=eS(r),s=eC(r),l="x"===ek(r),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:r+i.x,y:n+i.y,data:i}}}};function eq(e){return"x"===e?"y":"x"}let eG=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=e,u={x:r,y:n},c=await eN(t,l),d=ek(eS(i)),f=eq(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=eP(h+c["y"===d?"top":"left"],eR(h,h-c[e]))}a&&(p=eP(p+c["y"===f?"top":"left"],eR(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-r,y:m.y-n}}}}},eZ=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:r,y:n},d=ek(i),f=eq(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,r=o.reference[d]+o.reference[e]-v.mainAxis;hr&&(h=r)}if(u){var g,y,b,x;let e="y"===d?"width":"height",t=["top","left"].includes(eS(i)),r=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),n=o.reference[f]+o.reference[e]+(t?0:null!=(b=null==(x=a.offset)?void 0:x[f])?b:0)-(t?v.crossAxis:0);pn&&(p=n)}return{[d]:h,[f]:p}}}};function eY(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eX(e){if(null==e)return window;if(!eY(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eK(e){return eX(e).getComputedStyle(e)}function eJ(e){return eY(e)?"":e?(e.nodeName||"").toLowerCase():""}function eQ(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function e0(e){return e instanceof eX(e).HTMLElement}function e1(e){return e instanceof eX(e).Element}function e2(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eX(e).ShadowRoot||e instanceof ShadowRoot)}function e4(e){let{overflow:t,overflowX:r,overflowY:n}=eK(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function e3(e){let t=/firefox/i.test(eQ()),r=eK(e);return"none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||["transform","perspective"].includes(r.willChange)||t&&"filter"===r.willChange||t&&!!r.filter&&"none"!==r.filter}function e6(){return!/^((?!chrome|android).)*safari/i.test(eQ())}let e5=Math.min,e8=Math.max,e7=Math.round;function e9(e,t,r){var n,i,o,a;void 0===t&&(t=!1),void 0===r&&(r=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&e0(e)&&(l=e.offsetWidth>0&&e7(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&e7(s.height)/e.offsetHeight||1);let c=e1(e)?eX(e):window,d=!e6()&&r,f=(s.left+(d&&null!=(n=null==(i=c.visualViewport)?void 0:i.offsetLeft)?n: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 te(e){return((e instanceof eX(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function tt(e){return e1(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tr(e){return e9(te(e)).left+tt(e).scrollLeft}function tn(e){return"html"===eJ(e)?e:e.assignedSlot||e.parentNode||(e2(e)?e.host:null)||te(e)}function ti(e){return e0(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function to(e){let t=eX(e),r=ti(e);for(;r&&["table","td","th"].includes(eJ(r))&&"static"===getComputedStyle(r).position;)r=ti(r);return r&&("html"===eJ(r)||"body"===eJ(r)&&"static"===getComputedStyle(r).position&&!e3(r))?t:r||function(e){let t=tn(e);for(e2(t)&&(t=t.host);e0(t)&&!["html","body"].includes(eJ(t));){if(e3(t))return t;t=t.parentNode}return null}(e)||t}function ta(e){if(e0(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e9(e);return{width:t.width,height:t.height}}function ts(e,t){var r;void 0===t&&(t=[]);let n=function e(t){let r=tn(t);return["html","body","#document"].includes(eJ(r))?t.ownerDocument.body:e0(r)&&e4(r)?r:e(r)}(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=eX(n),a=i?[o].concat(o.visualViewport||[],e4(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(ts(a))}function tl(e,t,r){return"viewport"===t?eM(function(e,t){let r=eX(e),n=te(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=e6();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,r)):e1(t)?function(e,t){let r=e9(e,!1,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft;return{top:n,left:i,x:i,y:n,right:i+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,r):eM(function(e){var t;let r=te(e),n=tt(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=e8(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=e8(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+tr(e),l=-n.scrollTop;return"rtl"===eK(i||r).direction&&(s+=e8(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(te(e)))}let tu={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?function(e){let t=ts(e),r=["absolute","fixed"].includes(eK(e).position)&&e0(e)?to(e):e;return e1(r)?t.filter(e=>e1(e)&&function(e,t){let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&e2(r)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(e,r)&&"body"!==eJ(e)):[]}(t):[].concat(r),n],a=o[0],s=o.reduce((e,r)=>{let n=tl(t,r,i);return e.top=e8(n.top,e.top),e.right=e5(n.right,e.right),e.bottom=e5(n.bottom,e.bottom),e.left=e8(n.left,e.left),e},tl(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:r,strategy:n}=e,i=e0(r),o=te(r);if(r===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==n)&&(("body"!==eJ(r)||e4(o))&&(a=tt(r)),e0(r))){let e=e9(r,!0);s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:e1,getDimensions:ta,getOffsetParent:to,getDocumentElement:te,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:function(e,t,r){let n=e0(t),i=te(t),o=e9(e,n&&function(e){let t=e9(e);return e7(t.width)!==e.offsetWidth||e7(t.height)!==e.offsetHeight}(t),"fixed"===r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(n||!n&&"fixed"!==r){if(("body"!==eJ(t)||e4(i))&&(a=tt(t)),e0(t)){let e=e9(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=tr(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,to(r),n),floating:{...ta(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eK(e).direction};function tc(e,t,r,n){void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=n,l=i&&!s,u=o&&!s,c=l||u?[...e1(e)?ts(e):[],...ts(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let d,f=null;if(a){let n=!0;f=new ResizeObserver(()=>{n||r(),n=!1}),e1(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e9(e):null;return s&&function t(){let n=e9(e);h&&(n.x!==h.x||n.y!==h.y||n.width!==h.width||n.height!==h.height)&&r(),h=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let td=(e,t,r)=>eT(e,t,{platform:tu,...r});var tf="undefined"!=typeof document?w.useLayoutEffect:w.useEffect;function th(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=w.useRef(null),a=w.useRef(null),s=function(e){let t=w.useRef(e);return tf(()=>{t.current=e}),t}(i),l=w.useRef(null),[u,c]=w.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[d,f]=w.useState(t);!function e(t,r){let n,i,o;if(t===r)return!0;if(typeof t!=typeof r)return!1;if("function"==typeof t&&t.toString()===r.toString())return!0;if(t&&r&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){let n=o[i];if(("_owner"!==n||!t.$$typeof)&&!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}(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=w.useCallback(()=>{o.current&&a.current&&td(o.current,a.current,{middleware:d,placement:r,strategy:n}).then(e=>{p.current&&D.flushSync(()=>{c(e)})})},[d,r,n]);tf(()=>{p.current&&h()},[h]);let p=w.useRef(!1);tf(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=w.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=w.useCallback(e=>{o.current=e,m()},[m]),g=w.useCallback(e=>{a.current=e,m()},[m]),y=w.useMemo(()=>({reference:o,floating:a}),[]);return w.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tp=e=>{let{element:t,padding:r}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return eL({element:t.current,padding:r}).fn(e)}else if(t)return eL({element:t,padding:r}).fn(e);return{}}}},tm=(0,w.forwardRef)((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,w.createElement)(I.svg,j({},o,{ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:(0,w.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tv(e){let[t,r]=(0,w.useState)(void 0);return V(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,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;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}let tg="Popper",[ty,tb]=C(tg),[tx,tw]=ty(tg),tE=(0,w.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,o=tw("PopperAnchor",r),a=(0,w.useRef)(null),s=A(t,a);return(0,w.useEffect)(()=>{o.onAnchorChange((null==n?void 0:n.current)||a.current)}),n?null:(0,w.createElement)(I.div,j({},i,{ref:s}))}),tj="PopperContent",[tS,tC]=ty(tj),[tk,tA]=ty(tj,{hasParent:!1,positionUpdateFns:new Set}),tO=(0,w.forwardRef)((e,t)=>{var r,n,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,...E}=e,j=tw(tj,c),[S,C]=(0,w.useState)(null),k=A(t,e=>C(e)),[O,T]=(0,w.useState)(null),_=tv(O),M=null!==(r=null==_?void 0:_.width)&&void 0!==r?r:0,N=null!==(n=null==_?void 0:_.height)&&void 0!==n?n:0,R="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(v)?v:[v],L=P.length>0,D={padding:R,boundary:P.filter(tN),altBoundary:L},{reference:F,floating:B,strategy:U,x:z,y:H,placement:$,middlewareData:W,update:q}=th({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tc,middleware:[eW({mainAxis:f+N,alignmentAxis:p}),x?eG({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eZ():void 0,...D}):void 0,O?tp({element:O,padding:m}):void 0,x?eU({...D}):void 0,tR({arrowWidth:M,arrowHeight:N}),b?e$({strategy:"referenceHidden"}):void 0].filter(tM)});V(()=>{F(j.anchor)},[F,j.anchor]);let G=null!==z&&null!==H,[Z,Y]=tP($),X=null===(i=W.arrow)||void 0===i?void 0:i.x,K=null===(o=W.arrow)||void 0===o?void 0:o.y,J=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[Q,ee]=(0,w.useState)();V(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:et,positionUpdateFns:er}=tA(tj,c),en=!et;(0,w.useLayoutEffect)(()=>{if(!en)return er.add(q),()=>{er.delete(q)}},[en,er,q]),(0,w.useLayoutEffect)(()=>{en&&G&&Array.from(er).reverse().forEach(e=>requestAnimationFrame(e))},[en,G,er]);let ei={"data-side":Z,"data-align":Y,...E,ref:k,style:{...E.style,animation:G?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,w.createElement)("div",{ref:B,"data-radix-popper-content-wrapper":"",style:{position:U,left:0,top:0,transform:G?`translate3d(${Math.round(z)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,w.createElement)(tS,{scope:c,placedSide:Z,onArrowChange:T,arrowX:X,arrowY:K,shouldHideArrow:J},en?(0,w.createElement)(tk,{scope:c,hasParent:!0,positionUpdateFns:er},(0,w.createElement)(I.div,ei)):(0,w.createElement)(I.div,ei)))}),tT={top:"bottom",right:"left",bottom:"top",left:"right"},t_=(0,w.forwardRef)(function(e,t){let{__scopePopper:r,...n}=e,i=tC("PopperArrow",r),o=tT[i.placedSide];return(0,w.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,w.createElement)(tm,j({},n,{ref:t,style:{...n.style,display:"block"}})))});function tM(e){return void 0!==e}function tN(e){return null!==e}let tR=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=tP(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(n=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==n?n: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 tP(e){let[t,r="center"]=e.split("-");return[t,r]}let tL=e=>{let{__scopePopper:t,children:r}=e,[n,i]=(0,w.useState)(null);return(0,w.createElement)(tx,{scope:t,anchor:n,onAnchorChange:i},r)},tD=(0,w.forwardRef)((e,t)=>{var r;let{container:n=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...i}=e;return n?D.createPortal((0,w.createElement)(I.div,j({},i,{ref:t})),n):null}),tI=(0,w.forwardRef)((e,t)=>(0,w.createElement)(I.span,j({},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}}))),[tF,tV]=C("Tooltip",[tb]),tB=tb(),tU="tooltip.open",[tz,tH]=tF("TooltipProvider"),t$="Tooltip",[tW,tq]=tF(t$),tG="TooltipTrigger",tZ=(0,w.forwardRef)((e,t)=>{let{__scopeTooltip:r,...n}=e,i=tq(tG,r),o=tH(tG,r),a=tB(r),s=(0,w.useRef)(null),l=A(t,s,i.onTriggerChange),u=(0,w.useRef)(!1),c=(0,w.useRef)(!1),d=(0,w.useCallback)(()=>u.current=!1,[]);return(0,w.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,w.createElement)(tE,j({asChild:!0},a),(0,w.createElement)(I.button,j({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},n,{ref:l,onPointerMove:R(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:R(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:R(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:R(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:R(e.onBlur,i.onClose),onClick:R(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tY="TooltipPortal",[tX,tK]=tF(tY,{forceMount:void 0}),tJ="TooltipContent",tQ=(0,w.forwardRef)((e,t)=>{let r=tK(tJ,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,a=tq(tJ,e.__scopeTooltip);return(0,w.createElement)(B,{present:n||a.open},a.disableHoverableContent?(0,w.createElement)(t4,j({side:i},o,{ref:t})):(0,w.createElement)(t0,j({side:i},o,{ref:t})))}),t0=(0,w.forwardRef)((e,t)=>{let r=tq(tJ,e.__scopeTooltip),n=tH(tJ,e.__scopeTooltip),i=(0,w.useRef)(null),o=A(t,i),[a,s]=(0,w.useState)(null),{trigger:l,onClose:u}=r,c=i.current,{onPointerInTransitChange:d}=n,f=(0,w.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,w.useCallback)((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:return null}}(n,r.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect()),u=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 r=0;r=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([a,...l]);s(u),d(!0)},[d]);return(0,w.useEffect)(()=>()=>f(),[f]),(0,w.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,w.useEffect)(()=>{if(a){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(l-a)*(n-s)/(u-s)+a;c&&(i=!i)}return i}(r,a);n?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,w.createElement)(t4,j({},e,{ref:o}))}),[t1,t2]=tF(t$,{isInside:!1}),t4=(0,w.forwardRef)((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tq(tJ,r),u=tB(r),{onClose:c}=l;return(0,w.useEffect)(()=>(document.addEventListener(tU,c),()=>document.removeEventListener(tU,c)),[c]),(0,w.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,w.createElement)(ew,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,w.createElement)(tO,j({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,w.createElement)(_,null,n),(0,w.createElement)(t1,{scope:r,isInside:!0},(0,w.createElement)(tI,{id:l.contentId,role:"tooltip"},i||n))))}),t3=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tH(t$,e.__scopeTooltip),u=tB(t),[c,d]=(0,w.useState)(null),f=$(),h=(0,w.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,w.useRef)(!1),[g=!1,y]=L({prop:n,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(tU))):l.onClose(),null==o||o(e)}}),b=(0,w.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),x=(0,w.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),E=(0,w.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,w.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,w.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,w.createElement)(tL,u,(0,w.createElement)(tW,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,w.useCallback)(()=>{l.isOpenDelayed?j():x()},[l.isOpenDelayed,j,x]),onTriggerLeave:(0,w.useCallback)(()=>{p?E():window.clearTimeout(h.current)},[E,p]),onOpen:x,onClose:E,disableHoverableContent:p},r))},t6=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=tq(tY,t);return(0,w.createElement)(tX,{scope:t,forceMount:r},(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(tD,{asChild:!0,container:i},n)))},t5=(0,ey.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"}}),t8=w.forwardRef((e,t)=>{let{tag:r="span",className:n,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,x.jsx)(r,{ref:t,className:(0,ey.cx)(n,t5({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t7=w.forwardRef((e,t)=>{let{size:r="18",...n}=e;return(0,x.jsx)(t8,{tag:"p",...n,ref:t,weight:"regular",scaleSize:r,color:"subtle",className:(0,ey.cx)("leading-relaxed md:leading-relaxed",e.className)})}),t9=(0,ey.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),re=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{ref:t,className:t9({className:r}),...n})});var rt=r(34406);let rr=(void 0===rt||rt.env,"production"),rn=1/60*1e3,ri="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ro="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(ri()),rn),ra=!0,rs=!1,rl=!1,ru={delta:0,timestamp:0},rc=["read","update","preRender","render","postRender"],rd=rc.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:r;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;rrs=!0),e),{}),rf=rc.reduce((e,t)=>{let r=rd[t];return e[t]=(e,t=!1,n=!1)=>(rs||rg(),r.schedule(e,t,n)),e},{}),rh=rc.reduce((e,t)=>(e[t]=rd[t].cancel,e),{}),rp=rc.reduce((e,t)=>(e[t]=()=>rd[t].process(ru),e),{}),rm=e=>rd[e].process(ru),rv=e=>{rs=!1,ru.delta=ra?rn:Math.max(Math.min(e-ru.timestamp,40),1),ru.timestamp=e,rl=!0,rc.forEach(rm),rl=!1,rs&&(ra=!1,ro(rv))},rg=()=>{rs=!0,ra=!0,rl||ro(rv)},ry=()=>ru,rb="undefined"!=typeof document,rx=rb?w.useLayoutEffect:w.useEffect;function rw(){let e=(0,w.useRef)(!1);return rx(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let rE=(0,w.createContext)(null);function rj(e){let t=(0,w.useRef)(null);return null===t.current&&(t.current=e()),t.current}class rS extends w.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 rC({children:e,isPresent:t}){let r=(0,w.useId)(),n=(0,w.useRef)(null),i=(0,w.useRef)({width:0,height:0,top:0,left:0});return(0,w.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!n.current||!e||!o)return;n.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${e}px !important; + height: ${o}px !important; + top: ${a}px !important; + left: ${s}px !important; + } + `),()=>{document.head.removeChild(l)}},[t]),w.createElement(rS,{isPresent:t,childRef:n,sizeRef:i},w.cloneElement(e,{ref:n}))}let rk=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=rj(rA),l=(0,w.useId)(),u=(0,w.useMemo)(()=>({id:l,initial:t,isPresent:r,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;n&&n()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[r]);return(0,w.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[r]),w.useEffect(()=>{r||s.size||!n||n()},[r]),"popLayout"===a&&(e=w.createElement(rC,{isPresent:r},e)),w.createElement(rE.Provider,{value:u},e)};function rA(){return new Map}let rO=(0,w.createContext)({});function rT(e){return(0,w.useEffect)(()=>()=>e(),[])}let r_=new Set;function rM(e,t,r){e||r_.has(t)||(console.warn(t),r&&console.warn(r),r_.add(t))}let rN=e=>e.key||"",rR=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",rM(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=rw(),[t,r]=(0,w.useState)(0),n=(0,w.useCallback)(()=>{e.current&&r(t+1)},[t]),i=(0,w.useCallback)(()=>rf.postRender(n),[n]);return[i,t]}(),l=(0,w.useContext)(rO).forceRender;l&&(s=l);let u=rw(),c=function(e){let t=[];return w.Children.forEach(e,e=>{(0,w.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,w.useRef)(d),p=(0,w.useRef)(new Map).current,m=(0,w.useRef)(!0);if(rx(()=>{m.current=!1,function(e,t){e.forEach(e=>{let r=rN(e);t.set(r,e)})}(c,p),h.current=d}),rT(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return w.createElement(w.Fragment,null,d.map(e=>w.createElement(rk,{key:rN(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(rN),g=c.map(rN),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let r=p.get(e);if(!r)return;let i=v.indexOf(e);d.splice(i,0,w.createElement(rk,{key:rN(r),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(),n&&n()}},custom:t,presenceAffectsLayout:o,mode:a},r))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:w.createElement(rk,{key:rN(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==rr&&"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.'),w.createElement(w.Fragment,null,f.size?d:d.map(e=>(0,w.cloneElement)(e)))},rP=(0,w.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),rL=(0,w.createContext)({}),rD=(0,w.createContext)({strict:!1});function rI(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function rF(e){return"string"==typeof e||Array.isArray(e)}function rV(e){return"object"==typeof e&&"function"==typeof e.start}let rB=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function rU(e){return rV(e.animate)||rB.some(t=>rF(e[t]))}function rz(e){return!!(rU(e)||e.variants)}function rH(e){return Array.isArray(e)?e.join(" "):e}let r$=e=>({isEnabled:t=>e.some(e=>!!t[e])}),rW={measureLayout:r$(["layout","layoutId","drag"]),animation:r$(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:r$(["exit"]),drag:r$(["drag","dragControls"]),focus:r$(["whileFocus"]),hover:r$(["whileHover","onHoverStart","onHoverEnd"]),tap:r$(["whileTap","onTap","onTapStart","onTapCancel"]),pan:r$(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:r$(["whileInView","onViewportEnter","onViewportLeave"])},rq={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rG=1;class rZ extends w.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let rY=(0,w.createContext)({}),rX=Symbol.for("motionComponentSymbol"),rK=["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 rJ(e){if("string"!=typeof e||e.includes("-"));else if(rK.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let rQ={},r0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r1=new Set(r0);function r2(e,{layout:t,layoutId:r}){return r1.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!rQ[e]||"opacity"===e)}let r4=e=>!!(null==e?void 0:e.getVelocity),r3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},r6=(e,t)=>r0.indexOf(e)-r0.indexOf(t);function r5(e){return e.startsWith("--")}let r8=(e,t)=>t&&"number"==typeof e?t.transform(e):e,r7=(e,t)=>r=>Math.max(Math.min(r,t),e),r9=e=>e%1?Number(e.toFixed(5)):e,ne=/(-)?([\d]*\.?[\d])+/g,nt=/(#[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,nr=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function nn(e){return"string"==typeof e}let ni=e=>({test:t=>nn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),no=ni("deg"),na=ni("%"),ns=ni("px"),nl=ni("vh"),nu=ni("vw"),nc=Object.assign(Object.assign({},na),{parse:e=>na.parse(e)/100,transform:e=>na.transform(100*e)}),nd={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},nf=Object.assign(Object.assign({},nd),{transform:r7(0,1)}),nh=Object.assign(Object.assign({},nd),{default:1}),np={...nd,transform:Math.round},nm={borderWidth:ns,borderTopWidth:ns,borderRightWidth:ns,borderBottomWidth:ns,borderLeftWidth:ns,borderRadius:ns,radius:ns,borderTopLeftRadius:ns,borderTopRightRadius:ns,borderBottomRightRadius:ns,borderBottomLeftRadius:ns,width:ns,maxWidth:ns,height:ns,maxHeight:ns,size:ns,top:ns,right:ns,bottom:ns,left:ns,padding:ns,paddingTop:ns,paddingRight:ns,paddingBottom:ns,paddingLeft:ns,margin:ns,marginTop:ns,marginRight:ns,marginBottom:ns,marginLeft:ns,rotate:no,rotateX:no,rotateY:no,rotateZ:no,scale:nh,scaleX:nh,scaleY:nh,scaleZ:nh,skew:no,skewX:no,skewY:no,distance:ns,translateX:ns,translateY:ns,translateZ:ns,x:ns,y:ns,z:ns,perspective:ns,transformPerspective:ns,opacity:nf,originX:nc,originY:nc,originZ:ns,zIndex:np,fillOpacity:nf,strokeOpacity:nf,numOctaves:np};function nv(e,t,r,n){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 r=t[e];if(r5(e)){o[e]=r;continue}let n=nm[e],f=r8(r,n);if(r1.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;r!==(n.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||n?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,o){let a="";for(let r of(t.sort(r6),t))a+=`${r3[r]||r}(${e[r]}) `;return r&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):n&&i&&(a="none"),a}(e,r,d,n):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:r=0}=l;i.transformOrigin=`${e} ${t} ${r}`}}let ng=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ny(e,t,r){for(let n in t)r4(t[n])||r2(n,r)||(e[n]=t[n])}function nb(e,t,r){let n={},i=function(e,t,r){let n=e.style||{},i={};return ny(i,n,e),Object.assign(i,function({transformTemplate:e},t,r){return(0,w.useMemo)(()=>{let n=ng();return nv(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),e.transformValues?e.transformValues(i):i}(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),n.style=i,n}let nx=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 nw(e){return nx.has(e)}let nE=e=>!nw(e);try{(wI=require("@emotion/is-prop-valid").default)&&(nE=e=>e.startsWith("on")?!nw(e):wI(e))}catch(e){}function nj(e,t,r){return"string"==typeof e?e:ns.transform(t+r*e)}let nS={offset:"stroke-dashoffset",array:"stroke-dasharray"},nC={offset:"strokeDashoffset",array:"strokeDasharray"};function nk(e,{attrX:t,attrY:r,originX:n,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){nv(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!==n||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,r){let n=nj(t,e.x,e.width),i=nj(r,e.y,e.height);return`${n} ${i}`}(h,void 0!==n?n:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==o&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?nS:nC;e[o.offset]=ns.transform(-n);let a=ns.transform(t),s=ns.transform(r);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let nA=()=>({...ng(),attrs:{}});function nO(e,t){let r=(0,w.useMemo)(()=>{let r=nA();return nk(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};ny(t,e.style,e),r.style={...t,...r.style}}return r}let nT=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function n_(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let nM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function nN(e,t,r,n){for(let r in n_(e,t,void 0,n),t.attrs)e.setAttribute(nM.has(r)?r:nT(r),t.attrs[r])}function nR(e){let{style:t}=e,r={};for(let n in t)(r4(t[n])||r2(n,e))&&(r[n]=t[n]);return r}function nP(e){let t=nR(e);for(let r in e)if(r4(e[r])){let n="x"===r||"y"===r?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}function nL(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}let nD=e=>Array.isArray(e),nI=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),nF=e=>nD(e)?e[e.length-1]||0:e;function nV(e){let t=r4(e)?e.get():e;return nI(t)?t.toValue():t}let nB=e=>(t,r)=>{let n=(0,w.useContext)(rL),i=(0,w.useContext)(rE),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let a={latestValues:function(e,t,r,n){let i={},o=n(e);for(let e in o)i[e]=nV(o[e]);let{initial:a,animate:s}=e,l=rU(e),u=rz(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!rV(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let r=nL(e,t);if(!r)return;let{transitionEnd:n,transition:o,...a}=r;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 n)i[e]=n[e]})}return i}(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a})(e,t,n,i);return r?o():rj(o)},nU={useVisualState:nB({scrapeMotionValuesFromProps:nP,createRenderState:nA,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}nk(r,n,{enableHardwareAcceleration:!1},e.transformTemplate),nN(t,r)}})},nz={useVisualState:nB({scrapeMotionValuesFromProps:nR,createRenderState:ng})};function nH(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function n$(e,t,r,n){(0,w.useEffect)(()=>{let i=e.current;if(r&&i)return nH(i,t,r,n)},[e,t,r,n])}function nW(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function nq(e){let t=!!e.touches;return t}(wF=wZ||(wZ={})).Animate="animate",wF.Hover="whileHover",wF.Tap="whileTap",wF.Drag="whileDrag",wF.Focus="whileFocus",wF.InView="whileInView",wF.Exit="exit";let nG={pageX:0,pageY:0};function nZ(e,t="page"){return{point:nq(e)?function(e,t="page"){let r=e.touches[0]||e.changedTouches[0],n=r||nG;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 nY=(e,t=!1)=>{let r=t=>e(t,nZ(t));return t?e=>{let t=e instanceof MouseEvent,n=!t||t&&0===e.button;n&&r(e)}:r},nX=()=>rb&&null===window.onpointerdown,nK=()=>rb&&null===window.ontouchstart,nJ=()=>rb&&null===window.onmousedown,nQ={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},n0={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function n1(e){if(nX());else if(nK())return n0[e];else if(nJ())return nQ[e];return e}function n2(e,t,r,n){return nH(e,n1(t),nY(r,"pointerdown"===t),n)}function n4(e,t,r,n){return n$(e,n1(t),r&&nY(r,"pointerdown"===t),n)}function n3(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let n6=n3("dragHorizontal"),n5=n3("dragVertical");function n8(e){let t=!1;if("y"===e)t=n5();else if("x"===e)t=n6();else{let e=n6(),r=n5();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function n7(){let e=n8(!0);return!e||(e(),!1)}function n9(e,t,r){return(n,i)=>{!(!nW(n)||n7())&&(e.animationState&&e.animationState.setActive(wZ.Hover,t),r&&r(n,i))}}let ie=(e,t)=>!!t&&(e===t||ie(e,t.parentElement)),it=(e,t)=>r=>t(e(r)),ir=(...e)=>e.reduce(it),ii=new WeakMap,io=new WeakMap,ia=e=>{let t=ii.get(e.target);t&&t(e)},is=e=>{e.forEach(ia)},il={some:0,all:1};function iu(e,t,r,{root:n,margin:i,amount:o="some",once:a}){(0,w.useEffect)(()=>{if(!e||!r.current)return;let s={root:null==n?void 0:n.current,rootMargin:i,threshold:"number"==typeof o?o:il[o]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;io.has(r)||io.set(r,{});let n=io.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(is,{root:e,...t})),n[i]}(t);return ii.set(e,r),n.observe(e),()=>{ii.delete(e),n.unobserve(e)}}(r.current,s,e=>{let{isIntersecting:n}=e;if(t.isInView===n||(t.isInView=n,a&&!n&&t.hasEnteredView))return;n&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(wZ.InView,n);let i=r.getProps(),o=n?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,n,i,o])}function ic(e,t,r,{fallback:n=!0}){(0,w.useEffect)(()=>{e&&n&&("production"!==rr&&rM(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=r.getProps();e&&e(null),r.animationState&&r.animationState.setActive(wZ.InView,!0)}))},[e])}let id=e=>t=>(e(t),null),ih={inView:id(function({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){let o=(0,w.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||r||n);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?ic:iu;s(a,o.current,e,i)}),tap:id(function({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:i}){let o=e||t||r||n,a=(0,w.useRef)(!1),s=(0,w.useRef)(null),l={passive:!(t||e||r||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(wZ.Tap,!1),!n7()}function d(t,n){c()&&(ie(i.current,t.target)?e&&e(t,n):r&&r(t,n))}function f(e,t){c()&&r&&r(e,t)}function h(e,r){u(),!a.current&&(a.current=!0,s.current=ir(n2(window,"pointerup",d,l),n2(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(wZ.Tap,!0),t&&t(e,r))}n4(i,"pointerdown",o?h:void 0,l),rT(u)}),focus:id(function({whileFocus:e,visualElement:t}){let{animationState:r}=t;n$(t,"focus",e?()=>{r&&r.setActive(wZ.Focus,!0)}:void 0),n$(t,"blur",e?()=>{r&&r.setActive(wZ.Focus,!1)}:void 0)}),hover:id(function({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){n4(n,"pointerenter",e||r?n9(n,!0,e):void 0,{passive:!e}),n4(n,"pointerleave",t||r?n9(n,!1,t):void 0,{passive:!t})})};function ip(){let e=(0,w.useContext)(rE);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,w.useId)();return(0,w.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}function im(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;nt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var ig=function(){},iy=function(){};let ib=(e,t,r)=>Math.min(Math.max(r,e),t);function ix(e,t){return e*Math.sqrt(1-t*t)}let iw=["duration","bounce"],iE=["stiffness","damping","mass"];function ij(e,t){return t.some(t=>void 0!==e[t])}function iS(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=iv(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(!ij(e,iE)&&ij(e,iw)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;ig(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ib(.05,1,a),e=ib(.01,10,e/1e3),a<1?(i=t=>{let n=t*a,i=n*e,o=ix(t,a),s=Math.exp(-i);return .001-(n-r)/o*s},o=t=>{let n=t*a,o=n*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ix(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*r+r-s)*l)/u}):(i=t=>{let n=Math.exp(-t*e),i=(t-r)*e+1;return -.001+n*i},o=t=>{let n=Math.exp(-t*e),i=(r-t)*(e*e);return n*i});let s=5/e,l=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=iC,p=iC;function m(){let e=c?-(c/1e3):0,n=r-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(r-t)/100,.4)),o<1){let t=ix(a,o);h=i=>{let s=Math.exp(-o*a*i);return r-s*((e+o*a*n)/t*Math.sin(t*i)+n*Math.cos(t*i))},p=r=>{let i=Math.exp(-o*a*r);return o*a*i*(Math.sin(t*r)*(e+o*a*n)/t+n*Math.cos(t*r))-i*(Math.cos(t*r)*(e+o*a*n)-t*n*Math.sin(t*r))}}else if(1===o)h=t=>r-Math.exp(-a*t)*(n+(e+a*n)*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 r-s*((e+o*a*n)*Math.sinh(l)+t*n*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(o)<=n,l=Math.abs(r-t)<=i;a.done=s&&l}return a.value=a.done?r:t,a},flipTarget:()=>{c=-c,[t,r]=[r,t],m()}}}iS.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iC=e=>0,ik=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},iA=(e,t,r)=>-r*e+r*t+e,iO=(e,t)=>r=>!!(nn(r)&&nr.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),iT=(e,t,r)=>n=>{if(!nn(n))return n;let[i,o,a,s]=n.match(ne);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},i_=r7(0,255),iM=Object.assign(Object.assign({},nd),{transform:e=>Math.round(i_(e))}),iN={test:iO("rgb","red"),parse:iT("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+iM.transform(e)+", "+iM.transform(t)+", "+iM.transform(r)+", "+r9(nf.transform(n))+")"},iR={test:iO("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:iN.transform},iP={test:iO("hsl","hue"),parse:iT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+na.transform(r9(t))+", "+na.transform(r9(r))+", "+r9(nf.transform(n))+")"};function iL(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function iD({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=iL(s,n,e+1/3),o=iL(s,n,e),a=iL(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}let iI=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},iF=[iR,iN,iP],iV=e=>iF.find(t=>t.test(e)),iB=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,iU=(e,t)=>{let r=iV(e),n=iV(t);iy(!!r,iB(e)),iy(!!n,iB(t));let i=r.parse(e),o=n.parse(t);r===iP&&(i=iD(i),r=iN),n===iP&&(o=iD(o),n=iN);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iI(i[t],o[t],e));return a.alpha=iA(i.alpha,o.alpha,e),r.transform(a)}},iz={test:e=>iN.test(e)||iR.test(e)||iP.test(e),parse:e=>iN.test(e)?iN.parse(e):iP.test(e)?iP.parse(e):iR.parse(e),transform:e=>nn(e)?e:e.hasOwnProperty("red")?iN.transform(e):iP.transform(e)},iH="${c}",i$="${n}";function iW(e){"number"==typeof e&&(e=`${e}`);let t=[],r=0,n=e.match(nt);n&&(r=n.length,e=e.replace(nt,iH),t.push(...n.map(iz.parse)));let i=e.match(ne);return i&&(e=e.replace(ne,i$),t.push(...i.map(nd.parse))),{values:t,numColors:r,tokenised:e}}function iq(e){return iW(e).values}function iG(e){let{values:t,numColors:r,tokenised:n}=iW(e),i=t.length;return e=>{let t=n;for(let n=0;n"number"==typeof e?0:e,iY={test:function(e){var t,r,n,i;return isNaN(e)&&nn(e)&&(null!==(r=null===(t=e.match(ne))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(i=null===(n=e.match(nt))||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0},parse:iq,createTransformer:iG,getAnimatableNone:function(e){let t=iq(e),r=iG(e);return r(t.map(iZ))}},iX=e=>"number"==typeof e;function iK(e,t){return iX(e)?r=>iA(e,t,r):iz.test(e)?iU(e,t):i1(e,t)}let iJ=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>iK(e,t[r]));return e=>{for(let t=0;t{let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=iK(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}};function i0(e){let t=iY.parse(e),r=t.length,n=0,i=0,o=0;for(let e=0;e{let r=iY.createTransformer(t),n=i0(e),i=i0(t),o=n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers;return o?ir(iJ(n.parsed,i.parsed),r):(ig(!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.`),r=>`${r>0?t:e}`)},i2=(e,t)=>r=>iA(e,t,r);function i4(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;iy(o===t.length,"Both input and output ranges must be the same length"),iy(!n||!Array.isArray(n)||n.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,r){var n;let i=[],o=r||("number"==typeof(n=e[0])?i2:"string"==typeof n?iz.test(n)?iU:i1:Array.isArray(n)?iJ:"object"==typeof n?iQ:void 0),a=e.length-1;for(let r=0;rr(ik(e,t,n))}(e,a):function(e,t){let r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let t=1;for(;ti)&&t!==n;t++);o=t-1}let s=ik(e[o],e[o+1],i);return t[o](s)}}(e,a);return r?t=>s(ib(e[0],e[o-1],t)):s}let i3=e=>t=>1-e(1-t),i6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i5=e=>t=>t*t*((e+1)*t-e),i8=4/11,i7=8/11,i9=e=>e,oe=e=>Math.pow(e,2),ot=i3(oe),or=i6(oe),on=e=>1-Math.sin(Math.acos(e)),oi=i3(on),oo=i6(oi),oa=i5(1.525),os=i3(oa),ol=i6(oa),ou=(e=>{let t=i5(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),oc=4356/361,od=35442/1805,of=16061/1805,oh=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==r?r/(t-1):0)}(a)).map(e=>e*i);function l(){return i4(s,a,{ease:Array.isArray(r)?r:a.map(()=>r||or).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 ov={keyframes:om,spring:iS,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=r*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/n);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function og(e,t,r=0){return e-t-r}let oy=e=>{let t=({delta:t})=>e(t);return{start:()=>rf.update(t,!0),stop:()=>rh.update(t)}};function ob(e){let t,r,n;var i,{from:o,autoplay:a=!0,driver:s=oy,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iv(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 om;if(ov[e.type])return ov[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 iS;return om}(g);(null===(i=j.needsInterpolation)||void 0===i?void 0:i.call(j,o,y))&&(n=i4([0,100],[o,y],{clamp:!1}),o=0,y=100);let S=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=S.next(Math.max(0,l));r=e.value,n&&(r=n(r)),w=E?e.done:l<=0}if(null==v||v(r),w){if(0===b&&(null!=x||(x=l)),b=o+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,r=0,n=!0){return n?og(t+-e,t,r):t-(e-t)+r}(l,x,d,E=b%2==0):(l=og(l,x,d),"mirror"===c&&S.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let ox=e=>1e3*e,ow=(e,t)=>1-3*t+3*e,oE=(e,t)=>3*t-6*e,oj=e=>3*e,oS=(e,t,r)=>((ow(t,r)*e+oE(t,r))*e+oj(t))*e,oC=(e,t,r)=>3*ow(t,r)*e*e+2*oE(t,r)*e+oj(t),ok={linear:i9,easeIn:oe,easeInOut:or,easeOut:ot,circIn:on,circInOut:oo,circOut:oi,backIn:oa,backInOut:ol,backOut:os,anticipate:ou,bounceIn:op,bounceInOut:e=>e<.5?.5*(1-oh(1-2*e)):.5*oh(2*e-1)+.5,bounceOut:oh},oA=e=>{if(Array.isArray(e)){iy(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return function(e,t,r,n){if(e===t&&r===n)return i9;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oS(.1*t,e,r);return o=>0===o||1===o?o:oS(function(t){let n=0,o=1;for(;10!==o&&i[o]<=t;++o)n+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=n+.1*a,l=oC(s,e,r);return l>=.001?function(e,t,r,n){for(let i=0;i<8;++i){let i=oC(t,r,n);if(0===i)break;let o=oS(t,r,n)-e;t-=o/i}return t}(t,s,e,r):0===l?s:function(e,t,r,n,i){let o,a;let s=0;do(o=oS(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,n,n+.1,e,r)}(o),t,n)}(t,r,n,i)}return"string"==typeof e?(iy(void 0!==ok[e],`Invalid easing type '${e}'`),ok[e]):e},oO=e=>Array.isArray(e)&&"number"!=typeof e[0],oT=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iY.test(t)&&!t.startsWith("url(")),o_=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oM=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),oN=()=>({type:"keyframes",ease:"linear",duration:.3}),oR=e=>({type:"keyframes",duration:.8,values:e}),oP={x:o_,y:o_,z:o_,rotate:o_,rotateX:o_,rotateY:o_,rotateZ:o_,scaleX:oM,scaleY:oM,scale:oM,opacity:oN,backgroundColor:oN,color:oN,default:oM},oL=(e,t)=>({to:t,...(nD(t)?oR:oP[e]||oP.default)(t)}),oD=new Set(["brightness","contrast","saturate","opacity"]);function oI(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(ne)||[];if(!n)return e;let i=r.replace(n,""),o=oD.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let oF=/([a-z-]*)\(.*?\)/g,oV=Object.assign(Object.assign({},iY),{getAnimatableNone:e=>{let t=e.match(oF);return t?t.map(oI).join(" "):e}}),oB={...nm,color:iz,backgroundColor:iz,outlineColor:iz,fill:iz,stroke:iz,borderColor:iz,borderTopColor:iz,borderRightColor:iz,borderBottomColor:iz,borderLeftColor:iz,filter:oV,WebkitFilter:oV},oU=e=>oB[e];function oz(e,t){var r;let n=oU(e);return n!==oV&&(n=iY),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}let oH={current:!1};function o$(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(rh.read(n),e(o-t))};return rf.read(n,!0),()=>rh.read(n)}let oW=!1;function oq(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oG(e){return"number"==typeof e?0:oz("",e)}function oZ(e,t){return e[t]||e.default||e}function oY(e,t,r,n={}){return oH.current&&(n={type:!1}),t.start(i=>{let o,a;let s=function(e,t,r,n,i){let o=oZ(n,e)||{},a=void 0!==o.from?o.from:t.get(),s=oT(e,r);"none"===a&&s&&"string"==typeof r?a=oz(e,r):oq(a)&&"string"==typeof r?a=oG(r):!Array.isArray(r)&&oq(r)&&"string"==typeof a&&(r=oG(a));let l=oT(e,a);return ig(l===s,`You are trying to animate ${e} from "${a}" to "${r}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${r} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var n;let s={from:a,to:r,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:r,max:n,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!==r&&en}function v(e){return void 0===r?n:void 0===n?r:Math.abs(r-e){var r;null==d||d(t),null===(r=e.onUpdate)||void 0===r||r.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 n,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===r?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var r;n=a,a=e,t=(r=ry().delta)?(e-n)*(1e3/r):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):ob({...(n=o,Array.isArray(s.to)&&void 0===n.duration&&(n.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:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(n)&&(n={...n,...oL(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:r,flip:n,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=ox(o.duration)),o.repeatDelay&&(a.repeatDelay=ox(o.repeatDelay)),e&&(a.ease=oO(e)?e.map(oA):oA(e)),"tween"===o.type&&(a.type="keyframes"),(r||i||n)&&(ig(!oW,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oW=!0,r?a.repeatType="reverse":i?a.repeatType="loop":n&&(a.repeatType="mirror"),a.repeat=i||r||n||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(n)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=nF(r);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,r,n,i),l=function(e,t){var r,n;let i=oZ(e,t)||{};return null!==(n=null!==(r=i.delay)&&void 0!==r?r:e.delay)&&void 0!==n?n:0}(n,e),u=()=>o=s();return l?a=o$(u,ox(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oX=e=>/^\-?\d*\.?\d+$/.test(e),oK=e=>/^0[^.\s]+$/.test(e);function oJ(e,t){-1===e.indexOf(t)&&e.push(t)}function oQ(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class o0{constructor(){this.subscriptions=[]}add(e){return oJ(this.subscriptions,e),()=>oQ(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i!isNaN(parseFloat(e));class o2{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new o0,this.velocityUpdateSubscribers=new o0,this.renderSubscribers=new o0,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:r,timestamp:n}=ry();this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,rf.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=()=>rf.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=o1(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)?e*(1e3/t):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 o4(e){return new o2(e)}let o3=e=>t=>t.test(e),o6=[nd,ns,na,no,nu,nl,{test:e=>"auto"===e,parse:e=>e}],o5=e=>o6.find(o3(e)),o8=[...o6,iz,iY],o7=e=>o8.find(o3(e));function o9(e,t,r){let n=e.getProps();return nL(n,t,void 0!==r?r:n.custom,function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}function ae(e){return!!(r4(e)&&e.add)}function at(e,t,r={}){var n;let i=o9(e,t,r.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let a=i?()=>ar(e,i,r):()=>Promise.resolve(),s=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?(n=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(an).forEach((e,n)=>{a.push(at(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+n,a,s,r)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(r.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function ar(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");n&&(a=n);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let n=e.getValue(t),i=l[t];if(!n||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(d,t))continue;let o={delay:r,...a};e.shouldReduceMotion&&r1.has(t)&&(o={...o,type:!1,delay:0});let s=oY(t,n,i,o);ae(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let r=o9(e,t),{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};for(let t in o={...o,...n}){let r=nF(o[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,o4(r))}}(e,s)})}function an(e,t){return e.sortNodePosition(t)}let ai=[wZ.Animate,wZ.InView,wZ.Focus,wZ.Hover,wZ.Tap,wZ.Drag,wZ.Exit],ao=[...ai].reverse(),aa=ai.length;function as(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let al={animation:id(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>at(e,t,r));n=Promise.all(i)}else if("string"==typeof t)n=at(e,t,r);else{let i="function"==typeof t?o9(e,t,r.custom):t;n=ar(e,i,r)}return n.then(()=>e.notify("AnimationComplete",t))})(e,t,r))),r={[wZ.Animate]:as(!0),[wZ.InView]:as(),[wZ.Hover]:as(),[wZ.Tap]:as(),[wZ.Drag]:as(),[wZ.Focus]:as(),[wZ.Exit]:as()},n=!0,i=(t,r)=>{let n=o9(e,r);if(n){let{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}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],S=j.reduce(i,{});!1===b&&(S={});let{prevResolvedValues:C={}}=v,k={...C,...S},A=e=>{E=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in k){let t=S[e],r=C[e];h.hasOwnProperty(e)||(t!==r?nD(t)&&nD(r)?!im(t,r)||w?A(e):v.protectedKeys[e]=!0:void 0!==t?A(e):f.add(e):void 0!==t&&f.has(e)?A(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=S,v.isActive&&(h={...h,...S}),n&&e.blockInitialAnimation&&(E=!1),E&&!x&&d.push(...j.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(r=>{let n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)}),d.push({animation:t})}let m=!!d.length;return n&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let s=o(i,t);for(let e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e)),rV(t)&&(0,w.useEffect)(()=>t.subscribe(e),[t])}),exit:id(e=>{let{custom:t,visualElement:r}=e,[n,i]=ip(),o=(0,w.useContext)(rE);(0,w.useEffect)(()=>{r.isPresent=n;let e=r.animationState&&r.animationState.setActive(wZ.Exit,!n,{custom:o&&o.custom||t});e&&!n&&e.then(i)},[n])})},au=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),ac=e=>au(e)&&e.hasOwnProperty("z"),ad=(e,t)=>Math.abs(e-t);function af(e,t){if(iX(e)&&iX(t))return ad(e,t);if(au(e)&&au(t)){let r=ad(e.x,t.x),n=ad(e.y,t.y),i=ac(e)&&ac(t)?ad(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}class ah{constructor(e,t,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=av(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=af(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=ry();this.history.push({...n,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=ap(t,this.transformPagePoint),nW(e)&&0===e.buttons){this.handlePointerUp(e,t);return}rf.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n}=this.handlers,i=av(ap(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},nq(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=r;let n=nZ(e),i=ap(n,this.transformPagePoint),{point:o}=i,{timestamp:a}=ry();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,av(i,this.history)),this.removeListeners=ir(n2(window,"pointermove",this.handlePointerMove),n2(window,"pointerup",this.handlePointerUp),n2(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),rh.update(this.updatePoint)}}function ap(e,t){return t?{point:t(e.point)}:e}function am(e,t){return{x:e.x-t.x,y:e.y-t.y}}function av({point:e},t){return{point:e,delta:am(e,ag(t)),offset:am(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=ag(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>ox(.1)));)r--;if(!n)return{x:0,y:0};let o=(i.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function ag(e){return e[e.length-1]}function ay(e){return e.max-e.min}function ab(e,t=0,r=.01){return af(e,t)({translate:0,scale:1,origin:0,originPoint:0}),a_=()=>({x:aT(),y:aT()}),aM=()=>({min:0,max:0}),aN=()=>({x:aM(),y:aM()});function aR(e){return[e("x"),e("y")]}function aP({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function aL(e){return void 0===e||1===e}function aD({scale:e,scaleX:t,scaleY:r}){return!aL(e)||!aL(t)||!aL(r)}function aI(e){return aD(e)||aF(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aF(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function aV(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function aB(e,t=0,r=1,n,i){e.min=aV(e.min,t,r,n,i),e.max=aV(e.max,t,r,n,i)}function aU(e,{x:t,y:r}){aB(e.x,t.translate,t.scale,t.originPoint),aB(e.y,r.translate,r.scale,r.originPoint)}function az(e,t){e.min=e.min+t,e.max=e.max+t}function aH(e,t,[r,n,i]){let o=void 0!==t[i]?t[i]:.5,a=iA(e.min,e.max,o);aB(e,t[r],t[n],a,t.scale)}let a$=["x","scaleX","originX"],aW=["y","scaleY","originY"];function aq(e,t){aH(e.x,t,a$),aH(e.y,t,aW)}function aG(e,t){return aP(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let aZ=new WeakMap;class aY{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=aN(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new ah(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(nZ(e,"page").point)},onStart:(e,t)=>{var r;let{drag:n,dragPropagation:i,onDragStart:o}=this.getProps();(!n||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=n8(n),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),aR(e=>{var t,r;let n=this.getAxisMotionValue(e).get()||0;if(na.test(n)){let i=null===(r=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];if(i){let e=ay(i);n=e*(parseFloat(n)/100)}}this.originPoint[e]=n}),null==o||o(e,t),null===(r=this.visualElement.animationState)||void 0===r||r.setActive(wZ.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(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 r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);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:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(wZ.Drag,!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!aX(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&er&&(e=n?iA(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:r}=this.visualElement.projection||{},n=this.constraints;e&&rI(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:aC(e.x,r,i),y:aC(e.y,t,n)}}(r.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:aA(e,"left","right"),y:aA(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&aR(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!rI(t))return!1;let n=t.current;iy(null!==n,"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,r){let n=aG(e,r),{scroll:i}=t;return i&&(az(n.x,i.x),az(n.y,i.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a={x:ak((e=i.layout.actual).x,o.x),y:ak(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=aP(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=aR(a=>{var l;if(!aX(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:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return oY(e,r,0,t)}stopAnimation(){aR(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,r;let n="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)}snapToCursor(e){aR(t=>{let{drag:r}=this.getProps();if(!aX(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.actual[t];i.set(e[t]-iA(r,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!rI(r)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};aR(e=>{let t=this.getAxisMotionValue(e);if(t){let r=t.get();i[e]=function(e,t){let r=.5,n=ay(e),i=ay(t);return i>n?r=ik(t.min,t.max-n,e.min):n>i&&(r=ik(e.min,e.max-i,t.min)),ib(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=n.root)||void 0===e||e.updateScroll(),n.updateLayout(),this.resolveConstraints(),aR(e=>{if(!aX(e,t,null))return;let r=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];r.set(iA(n,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aZ.set(this.visualElement,this);let t=this.visualElement.current,r=n2(t,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();rI(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),n();let a=nH(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(aR(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),r(),o(),null==s||s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function aX(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let aK={pan:id(function({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:i}){let o=e||t||r||n,a=(0,w.useRef)(null),{transformPagePoint:s}=(0,w.useContext)(rP),l={onSessionStart:n,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,r&&r(e,t)}};(0,w.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),n4(i,"pointerdown",o&&function(e){a.current=new ah(e,l,{transformPagePoint:s})}),rT(()=>a.current&&a.current.end())}),drag:id(function(e){let{dragControls:t,visualElement:r}=e,n=rj(()=>new aY(r));(0,w.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,w.useEffect)(()=>n.addListeners(),[n])})};function aJ(e){return"string"==typeof e&&e.startsWith("var(--")}let aQ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function a0(e,t,r=1){iy(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=function(e){let t=aQ.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():aJ(i)?a0(i,t,r+1):i}let a1=new Set(["width","height","top","left","right","bottom","x","y"]),a2=e=>a1.has(e),a4=e=>Object.keys(e).some(a2),a3=(e,t)=>{e.set(t,!1),e.set(t)},a6=e=>e===nd||e===ns;(wV=wY||(wY={})).width="width",wV.height="height",wV.left="left",wV.right="right",wV.top="top",wV.bottom="bottom";let a5=(e,t)=>parseFloat(e.split(", ")[t]),a8=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return a5(i[1],t);{let t=n.match(/^matrix\((.+)\)$/);return t?a5(t[1],e):0}},a7=new Set(["x","y","z"]),a9=r0.filter(e=>!a7.has(e)),se={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:a8(4,13),y:a8(5,14)},st=(e,t,r)=>{let n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach(e=>{s[e]=se[e](n,o)}),t.render();let l=t.measureViewportBox();return r.forEach(r=>{let n=t.getValue(r);a3(n,s[r]),e[r]=se[r](l,o)}),e},sr=(e,t,r={},n={})=>{t={...t},n={...n};let i=Object.keys(t).filter(a2),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=r[i],d=o5(c),f=t[i];if(nD(f)){let e=f.length,t=null===f[0]?1:0;d=o5(c=f[t]);for(let r=t;r{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],a3(u,f))}}),!s.length)return{target:t,transitionEnd:n};{let r=s.indexOf("height")>=0?window.pageYOffset:null,i=st(t,e,s);return o.length&&o.forEach(([t,r])=>{e.getValue(t).set(r)}),e.render(),rb&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}},sn=(e,t,r,n)=>{var i,o;let a=function(e,{...t},r){let n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};for(let i in r&&(r={...r}),e.values.forEach(e=>{let t=e.get();if(!aJ(t))return;let r=a0(t,n);r&&e.set(r)}),t){let e=t[i];if(!aJ(e))continue;let o=a0(e,n);o&&(t[i]=o,r&&void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return t=a.target,n=a.transitionEnd,i=t,o=n,a4(i)?sr(e,i,r,o):{target:i,transitionEnd:o}},si={current:null},so={current:!1},sa=Object.keys(rW),ss=sa.length,sl=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class su{constructor({parent:e,props:t,reducedMotionConfig:r,visualState:n},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=()=>rf.render(this.render,!1,!0);let{latestValues:o,renderState:a}=n;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=r,this.options=i,this.isControllingVariants=rU(t),this.isVariantNode=rz(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]&&r4(t)&&(t.set(o[e],!1),ae(s)&&s.add(e))}if(t.values)for(let e in t.values){let r=t.values[e];void 0!==o[e]&&r4(r)&&r.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)),so.current||function(){if(so.current=!0,rb){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>si.current=e.matches;e.addListener(t),t()}else si.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||si.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,r;for(let n in null===(e=this.projection)||void 0===e||e.unmount(),rh.update(this.notifyUpdate),rh.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(r=this.parent)||void 0===r||r.children.delete(this),this.events)this.events[n].clear();this.current=null}bindToMotionValue(e,t){let r=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&rf.update(this.notifyUpdate,!1,!0)}),n=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,r,n,i,o){let a=[];"production"!==rr&&r&&t&&iy(!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 r?r:"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):aN()}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;tr.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 r=this.values.get(e);return void 0===r&&void 0!==t&&(r=o4(t),this.addValue(e,r)),r}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:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=nL(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||r4(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new o0),this.events[e].add(t)}notify(e,...t){var r;null===(r=this.events[e])||void 0===r||r.notify(...t)}}let sc=["initial",...ai],sd=sc.length;class sf extends su{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},i){let o=function(e,t,r){var n;let i={};for(let o in e){let e=function(e,t){if(!t)return;let r=t[e]||t.default||t;return r.from}(o,t);i[o]=void 0!==e?e:null===(n=r.getValue(o))||void 0===n?void 0:n.get()}return i}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),o&&(o=n(o))),i){!function(e,t,r){var n,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;srJ(e)?new sp(t,{enableHardwareAcceleration:!1}):new sh(t,{enableHardwareAcceleration:!0});function sv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sg={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ns.test(e))return e;e=parseFloat(e)}let r=sv(e,t.target.x),n=sv(e,t.target.y);return`${r}% ${n}%`}},sy="_$css",sb={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=e.includes("var("),o=[];i&&(e=e.replace(aQ,e=>(o.push(e),sy)));let a=iY.parse(e);if(a.length>5)return n;let s=iY.createTransformer(e),l="number"!=typeof a[0]?1:0,u=r.x.scale*t.x,c=r.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=iA(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(sy,()=>{let t=o[e];return e++,t})}return f}};class sx extends w.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(rQ,sw),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rq.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||rf.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:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(n),(null==r?void 0:r.deregister)&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sw={borderRadius:{...sg,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sg,borderTopRightRadius:sg,borderBottomLeftRadius:sg,borderBottomRightRadius:sg,boxShadow:sb},sE=["TopLeft","TopRight","BottomLeft","BottomRight"],sj=sE.length,sS=e=>"string"==typeof e?parseFloat(e):e,sC=e=>"number"==typeof e||ns.test(e);function sk(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}let sA=sT(0,.5,oi),sO=sT(.5,.95,i9);function sT(e,t,r){return n=>nt?1:r(ik(e,t,n))}function s_(e,t){e.min=t.min,e.max=t.max}function sM(e,t){s_(e.x,t.x),s_(e.y,t.y)}function sN(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function sR(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(na.test(t)){t=parseFloat(t);let e=iA(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=iA(o.min,o.max,n);e===o&&(s-=t),e.min=sN(e.min,t,r,s,i),e.max=sN(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}let sP=["x","scaleX","originX"],sL=["y","scaleY","originY"];function sD(e,t,r,n){sR(e.x,t,sP,null==r?void 0:r.x,null==n?void 0:n.x),sR(e.y,t,sL,null==r?void 0:r.y,null==n?void 0:n.y)}function sI(e){return 0===e.translate&&1===e.scale}function sF(e){return sI(e.x)&&sI(e.y)}function sV(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 sB(e){return ay(e.x)/ay(e.y)}class sU{constructor(){this.members=[]}add(e){oJ(this.members,e),e.scheduleRender()}remove(e){if(oQ(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 r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var r;let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,r,n,i,o;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(o=null===(n=e.resumingFrom)||void 0===n?void 0:(i=n.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 sz(e,t,r){let n=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${n}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,r){let{rotate:e,rotateX:t,rotateY:n}=r;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),n&&(o+=`rotateY(${n}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 sH=(e,t)=>e.depth-t.depth;class s${constructor(){this.children=[],this.isDirty=!1}add(e){oJ(this.children,e),this.isDirty=!0}remove(e){oQ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sH),this.isDirty=!1,this.children.forEach(e)}}let sW=["","X","Y","Z"];function sq({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e,r={},n=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(sQ),this.nodes.forEach(s0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=r,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=o$(n,250),rq.hasAnimatedSinceResize&&(rq.hasAnimatedSinceResize=!1,this.nodes.forEach(sJ))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{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:s5,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sV(this.targetLayout,n)||r,p=!t&&r;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={...oZ(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sJ(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=n})}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,rh.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(s1))}willUpdate(e=!0){var t,r,n;if(this.root.isUpdateBlocked()){null===(r=(t=this.options).onExitComplete)||void 0===r||r.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));s9(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===(r=this.getStack())||void 0===r?void 0:r.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(s6));this.animationProgress=0,this.mixTargetDelta=t=>{var r,n,d;let f=t/1e3;s4(a.x,e.x,f),s4(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(r=this.relativeParent)||void 0===r?void 0:r.layout)&&(aS(s,this.layout.actual,this.relativeParent.layout.actual),n=this.relativeTarget,d=this.relativeTargetOrigin,s3(n.x,d.x,s.x,f),s3(n.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,r,n,i,o){var a,s,l,u;i?(e.opacity=iA(0,null!==(a=r.opacity)&&void 0!==a?a:1,sA(n)),e.opacityExit=iA(null!==(s=t.opacity)&&void 0!==s?s:1,0,sO(n))):o&&(e.opacity=iA(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=r.opacity)&&void 0!==u?u:1,n));for(let i=0;i{rq.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r={}){let n=r4(e)?e:o4(e);return oY("",n,1e3,r),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}(0,0,{...e,onUpdate:t=>{var r;this.mixTargetDelta(t),null===(r=e.onUpdate)||void 0===r||r.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:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&le(this.options.animationType,this.layout.actual,n.actual)){r=this.target||aN();let t=ay(this.layout.actual.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=ay(this.layout.actual.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}sM(t,r),aq(t,i),aw(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var r,n,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new sU);let o=this.sharedNodes.get(e);o.add(t),t.promote({transition:null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.transition,preserveFollowOpacity:null===(i=null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(n,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:r}={}){let n=this.getStack();n&&n.promote(this,r),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,r={};for(let n=0;n{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(sX),this.root.sharedNodes.clear()}}}function sG(e){e.updateLayout()}function sZ(e){var t,r,n;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:r}=e.layout,{animationType:n}=e.options;"size"===n?aR(e=>{let r=i.isShared?i.measured[e]:i.layout[e],n=ay(r);r.min=t[e].min,r.max=r.min+n}):le(n,i.layout,t)&&aR(e=>{let r=i.isShared?i.measured[e]:i.layout[e],n=ay(t[e]);r.max=r.min+n});let o=a_();aw(o,t,i.layout);let a=a_();i.isShared?aw(a,e.applyTransform(r,!0),i.measured):aw(a,t,i.layout);let s=!sF(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:e,layout:n}=r;if(e&&n){let r=aN();aS(r,i.layout,e.layout);let o=aN();aS(o,t,n.actual),sV(r,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(n=(r=e.options).onExitComplete)||void 0===n||n.call(r));e.options.transition=void 0}function sY(e){e.clearSnapshot()}function sX(e){e.clearMeasurements()}function sK(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sJ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function sQ(e){e.resolveTargetDelta()}function s0(e){e.calcProjection()}function s1(e){e.resetRotation()}function s2(e){e.removeLeadSnapshot()}function s4(e,t,r){e.translate=iA(t.translate,0,r),e.scale=iA(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function s3(e,t,r,n){e.min=iA(t.min,r.min,n),e.max=iA(t.max,r.max,n)}function s6(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let s5={duration:.45,ease:[.4,0,.1,1]};function s8(e,t){let r=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){r=e.path[t];break}let n=r&&r!==e.root?r.instance:document,i=n.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s7(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function s9(e){s7(e.x),s7(e.y)}function le(e,t,r){return"position"===e||"preserve-aspect"===e&&!function(e,t,r=.1){return af(e,t)<=r}(sB(t),sB(r),.2)}let lt=sq({attachResizeListener:(e,t)=>nH(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lr={current:void 0},ln=sq({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lr.current){let e=new lt(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),lr.current=e}return lr.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),li={...al,...ih,...aK,measureLayout:function(e){let[t,r]=ip(),n=(0,w.useContext)(rO);return w.createElement(sx,{...e,layoutGroup:n,switchLayoutGroup:(0,w.useContext)(rY),isPresent:t,safeToRemove:r})}},lo=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?rW.projectionNodeConstructor=e[t]:rW[t].Component=e[t]}(e);let a=(0,w.forwardRef)(function(a,s){var l;let u={...(0,w.useContext)(rP),...a,layoutId:function({layoutId:e}){let t=(0,w.useContext)(rO).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:r}=function(e,t){if(rU(e)){let{initial:t,animate:r}=e;return{initial:!1===t||rF(t)?t:void 0,animate:rF(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,w.useContext)(rL));return(0,w.useMemo)(()=>({initial:t,animate:r}),[rH(t),rH(r)])}(a),h=c?void 0:rj(()=>{if(rq.hasEverUpdated)return rG++}),p=i(a,c);if(!c&&rb){f.visualElement=function(e,t,r,n){let i=(0,w.useContext)(rL).visualElement,o=(0,w.useContext)(rD),a=(0,w.useContext)(rE),s=(0,w.useContext)(rP).reducedMotion,l=(0,w.useRef)();n=n||o.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:i,props:r,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return rx(()=>{u&&u.render()}),(0,w.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),rx(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let n=(0,w.useContext)(rD).strict,i=(0,w.useContext)(rY);f.visualElement&&(d=f.visualElement.loadFeatures(u,n,e,h,r||rW.projectionNodeConstructor,i))}return w.createElement(rZ,{visualElement:f.visualElement,props:u},d,w.createElement(rL.Provider,{value:f},n(o,a,h,(l=f.visualElement,(0,w.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):rI(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[rX]=o,a}(e(t,r))}if("undefined"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},r,n,i){let o=rJ(e)?nU:nz;return{...o,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,i,{latestValues:o},a)=>{let s=rJ(t)?nO:nb,l=s(r,o,a),u=function(e,t,r){let n={};for(let i in e)(nE(i)||!0===r&&nw(i)||!t&&!nw(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),c={...u,...l,ref:i};return n&&(c["data-projection-id"]=n),(0,w.createElement)(t,c)}}(t),createVisualElement:n,projectionNodeConstructor:i,Component:e}})(e,t,li,sm,ln));function la(e){let{open:t,onOpenChange:r}=e,[n,i]=(0,w.useState)(!1),o=(0,w.useMemo)(()=>r?t:n,[r,n,t]),a=(0,w.useCallback)(e=>{r?r(e):i(e)},[r]);return{open:o,onOpenChange:a}}let ls={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 ll(e){let{children:t,content:r,defaultOpen:n,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=la({open:i,onOpenChange:o});return(0,x.jsxs)(t3,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:n,onOpenChange:c,children:[(0,x.jsx)(tZ,{asChild:!0,children:t}),(0,x.jsx)(rR,{children:r&&u?(0,x.jsx)(t6,{forceMount:!0,children:(0,x.jsx)(tQ,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,x.jsx)(lo.div,{variants:ls,initial:"init",animate:"show",exit:"exit",className:(0,ey.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,x.jsx)("div",{className:(0,ey.cx)("py-1 px-2","max-w-xs","overflow-hidden",t9()),children:(0,x.jsx)(t7,{size:"12",children:r})})})})}):null})]})}let lu=(0,ey.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"}}),lc=w.forwardRef((e,t)=>{let{variant:r,size:n,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,x.jsx)(ll,{content:u,align:c,side:d,children:(0,x.jsx)("button",{ref:t,type:h,disabled:a,className:lu({variant:r,size:n,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,x.jsx)("button",{ref:t,disabled:a,type:h,className:lu({variant:r,size:n,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var ld=r(20876);(0,ey.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let lf=(0,ey.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lh=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{...n,className:lf({className:r}),ref:t})}),lp="Avatar",[lm,lv]=C(lp),[lg,ly]=lm(lp),lb=(0,w.forwardRef)((e,t)=>{let{__scopeAvatar:r,...n}=e,[i,o]=(0,w.useState)("idle");return(0,w.createElement)(lg,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,w.createElement)(I.span,j({},n,{ref:t})))}),lx=(0,w.forwardRef)((e,t)=>{let{__scopeAvatar:r,src:n,onLoadingStatusChange:i=()=>{},...o}=e,a=ly("AvatarImage",r),s=function(e){let[t,r]=(0,w.useState)("idle");return(0,w.useEffect)(()=>{if(!e){r("error");return}let t=!0,n=new window.Image,i=e=>()=>{t&&r(e)};return r("loading"),n.onload=i("loaded"),n.onerror=i("error"),n.src=e,()=>{t=!1}},[e]),t}(n),l=P(e=>{i(e),a.onImageLoadingStatusChange(e)});return V(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,w.createElement)(I.img,j({},o,{ref:t,src:n})):null}),lw=(0,w.forwardRef)((e,t)=>{let{__scopeAvatar:r,delayMs:n,...i}=e,o=ly("AvatarFallback",r),[a,s]=(0,w.useState)(void 0===n);return(0,w.useEffect)(()=>{if(void 0!==n){let e=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(e)}},[n]),a&&"loaded"!==o.imageLoadingStatus?(0,w.createElement)(I.span,j({},i,{ref:t})):null}),lE=(0,ey.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"}}),lj=(0,ey.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lS=w.forwardRef((e,t)=>{let{alt:r,src:n,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,x.jsx)("div",{className:(0,ey.cx)("relative h-fit w-fit",c),children:(0,x.jsxs)(lb,{...d,ref:t,className:lE({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,x.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,x.jsx)(lx,{alt:r,src:n,className:"flex object-cover h-full align-middle w-full"}),(0,x.jsx)(lw,{className:lj({size:o}),children:i})]})})}),lC=(0,ey.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{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"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}}),lk=w.forwardRef((e,t)=>{let{variant:r,interactive:n,rounded:i,className:o,...a}=e;return(0,x.jsx)("div",{...a,className:lC({variant:r,interactive:n,rounded:i,className:o}),ref:t})}),lA=(0,ey.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"}}),lO=w.forwardRef((e,t)=>{let{color:r,className:n,...i}=e;return(0,x.jsx)("code",{...i,className:lA({color:r,className:n}),ref:t})}),lT=(0,ey.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"]),l_=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{ref:t,className:lT({className:r}),...n})});(0,ey.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 lM=(0,ey.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"}}),lN=w.forwardRef((e,t)=>{let{className:r,pad:n,size:i,...o}=e;return(0,x.jsx)("div",{ref:t,...o,className:lM({size:i,pad:n,className:r})})}),lR="focusScope.autoFocusOnMount",lP="focusScope.autoFocusOnUnmount",lL={bubbles:!1,cancelable:!0},lD=(0,w.forwardRef)((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=(0,w.useState)(null),u=P(i),c=P(o),d=(0,w.useRef)(null),f=A(t,e=>l(e)),h=(0,w.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,w.useEffect)(()=>{if(n){function e(e){if(h.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:lV(d.current,{select:!0})}function t(e){h.paused||!s||s.contains(e.relatedTarget)||lV(d.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[n,s,h.paused]),(0,w.useEffect)(()=>{if(s){lB.add(h);let e=document.activeElement,t=s.contains(e);if(!t){let t=new CustomEvent(lR,lL);s.addEventListener(lR,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(lV(n,{select:t}),document.activeElement!==r)return}(lI(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&lV(s))}return()=>{s.removeEventListener(lR,u),setTimeout(()=>{let t=new CustomEvent(lP,lL);s.addEventListener(lP,c),s.dispatchEvent(t),t.defaultPrevented||lV(null!=e?e:document.body,{select:!0}),s.removeEventListener(lP,c),lB.remove(h)},0)}}},[s,u,c,h]);let p=(0,w.useCallback)(e=>{if(!r&&!n||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[n,o]=function(e){let t=lI(e),r=lF(t,e),n=lF(t.reverse(),e);return[r,n]}(t),a=n&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===n&&(e.preventDefault(),r&&lV(o,{select:!0})):(e.preventDefault(),r&&lV(n,{select:!0})):i===t&&e.preventDefault()}},[r,n,h.paused]);return(0,w.createElement)(I.div,j({tabIndex:-1},a,{ref:f,onKeyDown:p}))});function lI(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function lF(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function lV(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}let lB=(s=[],{add(e){let t=s[0];e!==t&&(null==t||t.pause()),(s=lU(s,e)).unshift(e)},remove(e){var t;null===(t=(s=lU(s,e))[0])||void 0===t||t.resume()}});function lU(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}let lz=0;function lH(){(0,w.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:l$()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:l$()),lz++,()=>{1===lz&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),lz--}},[])}function l$(){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}var lW=function(){return(lW=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}"function"==typeof SuppressedError&&SuppressedError;var lG="right-scroll-bar-position",lZ="width-before-scroll-bar",lY=(void 0===wB&&(wB={}),(void 0===wU&&(wU=function(e){return e}),wz=[],wH=!1,w$={read:function(){if(wH)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return wz.length?wz[wz.length-1]:null},useMedium:function(e){var t=wU(e,wH);return wz.push(t),function(){wz=wz.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(wH=!0;wz.length;){var t=wz;wz=[],t.forEach(e)}wz={push:function(t){return e(t)},filter:function(){return wz}}},assignMedium:function(e){wH=!0;var t=[];if(wz.length){var r=wz;wz=[],r.forEach(e),t=wz}var n=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(n)};i(),wz={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),wz}}}}).options=lW({async:!0,ssr:!1},wB),w$),lX=function(){},lK=w.forwardRef(function(e,t){var r,n,i,o=w.useRef(null),a=w.useState({onScrollCapture:lX,onWheelCapture:lX,onTouchMoveCapture:lX}),s=a[0],l=a[1],u=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,h=e.enabled,p=e.shards,m=e.sideCar,v=e.noIsolation,g=e.inert,y=e.allowPinchZoom,b=e.as,x=void 0===b?"div":b,E=lq(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),j=(r=[o,t],n=function(e){return r.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,w.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,i.facade),S=lW(lW({},E),s);return w.createElement(w.Fragment,null,h&&w.createElement(m,{sideCar:lY,removeScrollBar:f,shards:p,noIsolation:v,inert:g,setCallbacks:l,allowPinchZoom:!!y,lockRef:o}),u?w.cloneElement(w.Children.only(c),lW(lW({},S),{ref:j})):w.createElement(x,lW({},S,{className:d,ref:j}),c))});lK.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},lK.classNames={fullWidth:lZ,zeroRight:lG};var lJ=function(e){var t=e.sideCar,r=lq(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return w.createElement(n,lW({},r))};lJ.isSideCarExport=!0;var lQ=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wX||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},l0=function(){var e=lQ();return function(t,r){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},l1=function(){var e=l0();return function(t){return e(t.styles,t.dynamic),null}},l2={left:0,top:0,right:0,gap:0},l4=function(e){return parseInt(e||"",10)||0},l3=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[l4(r),l4(n),l4(i)]},l6=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return l2;var t=l3(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},l5=l1(),l8=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(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(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(lG," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(lZ," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(lG," .").concat(lG," {\n right: 0 ").concat(n,";\n }\n \n .").concat(lZ," .").concat(lZ," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},l7=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n,o=w.useMemo(function(){return l6(i)},[i]);return w.createElement(l5,{styles:l8(o,!t,i,r?"":"!important")})},l9=!1;if("undefined"!=typeof window)try{var ue=Object.defineProperty({},"passive",{get:function(){return l9=!0,!0}});window.addEventListener("test",ue,ue),window.removeEventListener("test",ue,ue)}catch(e){l9=!1}var ut=!!l9&&{passive:!1},ur=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},un=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},ui=function(e,t){var r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),uo(e,r)){var n=ua(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body);return!1},uo=function(e,t){return"v"===e?ur(t):un(t)},ua=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},us=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=ua(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&uo(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},ul=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},uu=function(e){return[e.deltaX,e.deltaY]},uc=function(e){return e&&"current"in e?e.current:e},ud=0,uf=[],uh=(lY.useMedium(function(e){var t=w.useRef([]),r=w.useRef([0,0]),n=w.useRef(),i=w.useState(ud++)[0],o=w.useState(function(){return l1()})[0],a=w.useRef(e);w.useEffect(function(){a.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;iMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ui(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=ui(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var h=n.current||i;return us(h,t,e,"h"===h?l:u,!0)},[]),l=w.useCallback(function(e){if(uf.length&&uf[uf.length-1]===o){var r="deltaY"in e?uu(e):ul(e),n=t.current.filter(function(t){var n;return t.name===e.type&&t.target===e.target&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.preventDefault();return}if(!n){var i=(a.current.shards||[]).map(uc).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),u=w.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=w.useCallback(function(e){r.current=ul(e),n.current=void 0},[]),d=w.useCallback(function(t){u(t.type,uu(t),t.target,s(t,e.lockRef.current))},[]),f=w.useCallback(function(t){u(t.type,ul(t),t.target,s(t,e.lockRef.current))},[]);w.useEffect(function(){return uf.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ut),document.addEventListener("touchmove",l,ut),document.addEventListener("touchstart",c,ut),function(){uf=uf.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,ut),document.removeEventListener("touchmove",l,ut),document.removeEventListener("touchstart",c,ut)}},[]);var h=e.removeScrollBar,p=e.inert;return w.createElement(w.Fragment,null,p?w.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?w.createElement(l7,{gapMode:"margin"}):null)}),lJ),up=w.forwardRef(function(e,t){return w.createElement(lK,lW({},e,{ref:t,sideCar:uh}))});up.classNames=lK.classNames;var um=new WeakMap,uv=new WeakMap,ug={},uy=0,ub=function(e,t,r){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===r&&(r="data-aria-hidden");var n=Array.isArray(e)?e:[e];ug[r]||(ug[r]=new WeakMap);var i=ug[r],o=[],a=new Set,s=function(e){!e||a.has(e)||(a.add(e),s(e.parentNode))};n.forEach(s);var l=function(e){!e||n.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))l(e);else{var t=e.getAttribute("aria-hidden"),n=null!==t&&"false"!==t,s=(um.get(e)||0)+1,u=(i.get(e)||0)+1;um.set(e,s),i.set(e,u),o.push(e),1===s&&n&&uv.set(e,!0),1===u&&e.setAttribute(r,"true"),n||e.setAttribute("aria-hidden","true")}})};return l(t),a.clear(),uy++,function(){o.forEach(function(e){var t=um.get(e)-1,n=i.get(e)-1;um.set(e,t),i.set(e,n),t||(uv.has(e)||e.removeAttribute("aria-hidden"),uv.delete(e)),n||e.removeAttribute(r)}),--uy||(um=new WeakMap,um=new WeakMap,uv=new WeakMap,ug={})}};let ux="Dialog",[uw,uE]=C(ux),[uj,uS]=uw(ux),uC=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=uS("DialogTrigger",r),o=A(t,i.triggerRef);return(0,w.createElement)(I.button,j({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":uU(i.open)},n,{ref:o,onClick:R(e.onClick,i.onOpenToggle)}))}),uk="DialogPortal",[uA,uO]=uw(uk,{forceMount:void 0}),uT="DialogOverlay",u_=(0,w.forwardRef)((e,t)=>{let r=uO(uT,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=uS(uT,e.__scopeDialog);return o.modal?(0,w.createElement)(B,{present:n||o.open},(0,w.createElement)(uM,j({},i,{ref:t}))):null}),uM=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=uS(uT,r);return(0,w.createElement)(up,{as:O,allowPinchZoom:!0,shards:[i.contentRef]},(0,w.createElement)(I.div,j({"data-state":uU(i.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),uN="DialogContent",uR=(0,w.forwardRef)((e,t)=>{let r=uO(uN,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=uS(uN,e.__scopeDialog);return(0,w.createElement)(B,{present:n||o.open},o.modal?(0,w.createElement)(uP,j({},i,{ref:t})):(0,w.createElement)(uL,j({},i,{ref:t})))}),uP=(0,w.forwardRef)((e,t)=>{let r=uS(uN,e.__scopeDialog),n=(0,w.useRef)(null),i=A(t,r.contentRef,n);return(0,w.useEffect)(()=>{let e=n.current;if(e)return ub(e)},[]),(0,w.createElement)(uD,j({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;n&&e.preventDefault()}),onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault())}))}),uL=(0,w.forwardRef)((e,t)=>{let r=uS(uN,e.__scopeDialog),n=(0,w.useRef)(!1);return(0,w.createElement)(uD,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current||null===(o=r.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),n.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current=!0);let a=t.target,s=null===(o=r.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),uD=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,s=uS(uN,r),l=(0,w.useRef)(null),u=A(t,l);return lH(),(0,w.createElement)(w.Fragment,null,(0,w.createElement)(lD,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,w.createElement)(ew,j({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":uU(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),uI="DialogTitle",uF=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=uS(uI,r);return(0,w.createElement)(I.h2,j({id:i.titleId},n,{ref:t}))}),uV=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=uS("DialogDescription",r);return(0,w.createElement)(I.p,j({id:i.descriptionId},n,{ref:t}))}),uB=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=uS("DialogClose",r);return(0,w.createElement)(I.button,j({type:"button"},n,{ref:t,onClick:R(e.onClick,()=>i.onOpenChange(!1))}))});function uU(e){return e?"open":"closed"}let[uz,uH]=S("DialogTitleWarning",{contentName:uN,titleName:uI,docsSlug:"dialog"}),u$=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,s=(0,w.useRef)(null),l=(0,w.useRef)(null),[u=!1,c]=L({prop:n,defaultProp:i,onChange:o});return(0,w.createElement)(uj,{scope:t,triggerRef:s,contentRef:l,contentId:$(),titleId:$(),descriptionId:$(),open:u,onOpenChange:c,onOpenToggle:(0,w.useCallback)(()=>c(e=>!e),[c]),modal:a},r)},uW=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=uS(uk,t);return(0,w.createElement)(uA,{scope:t,forceMount:r},w.Children.map(n,e=>(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(tD,{asChild:!0,container:i},e))))},uq=(0,w.createContext)(void 0);function uG(e){let t=(0,w.useContext)(uq);return e||t||"ltr"}let uZ="ScrollArea",[uY,uX]=C(uZ),[uK,uJ]=uY(uZ),uQ=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,w.useState)(null),[u,c]=(0,w.useState)(null),[d,f]=(0,w.useState)(null),[h,p]=(0,w.useState)(null),[m,v]=(0,w.useState)(null),[g,y]=(0,w.useState)(0),[b,x]=(0,w.useState)(0),[E,S]=(0,w.useState)(!1),[C,k]=(0,w.useState)(!1),O=A(t,e=>l(e)),T=uG(i);return(0,w.createElement)(uK,{scope:r,type:n,dir:T,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:E,onScrollbarXEnabledChange:S,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:C,onScrollbarYEnabledChange:k,onCornerWidthChange:y,onCornerHeightChange:x},(0,w.createElement)(I.div,j({dir:T},a,{ref:O,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),u0=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,children:n,...i}=e,o=uJ("ScrollAreaViewport",r),a=(0,w.useRef)(null),s=A(t,a,o.onViewportChange);return(0,w.createElement)(w.Fragment,null,(0,w.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,w.createElement)(I.div,j({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,w.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),u1="ScrollAreaScrollbar",u2=(0,w.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,i=uJ(u1,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,w.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,w.createElement)(u4,j({},n,{ref:t,forceMount:r})):"scroll"===i.type?(0,w.createElement)(u3,j({},n,{ref:t,forceMount:r})):"auto"===i.type?(0,w.createElement)(u6,j({},n,{ref:t,forceMount:r})):"always"===i.type?(0,w.createElement)(u5,j({},n,{ref:t})):null}),u4=(0,w.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,i=uJ(u1,e.__scopeScrollArea),[o,a]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),a(!0)},n=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,w.createElement)(B,{present:r||o},(0,w.createElement)(u6,j({"data-state":o?"visible":"hidden"},n,{ref:t})))}),u3=(0,w.forwardRef)((e,t)=>{var r;let{forceMount:n,...i}=e,o=uJ(u1,e.__scopeScrollArea),a="horizontal"===e.orientation,s=cp(()=>u("SCROLL_END"),100),[l,u]=(r={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,w.useReducer)((e,t)=>{let n=r[e][t];return null!=n?n:e},"hidden"));return(0,w.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,w.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t],i=r!==n;i&&(u("SCROLL"),s()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[o.viewport,a,u,s]),(0,w.createElement)(B,{present:n||"hidden"!==l},(0,w.createElement)(u5,j({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:R(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:R(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),u6=(0,w.forwardRef)((e,t)=>{let r=uJ(u1,e.__scopeScrollArea),{forceMount:n,...i}=e,[o,a]=(0,w.useState)(!1),s="horizontal"===e.orientation,l=cp(()=>{if(r.viewport){let e=r.viewport.offsetWidth{let{orientation:r="vertical",...n}=e,i=uJ(u1,e.__scopeScrollArea),o=(0,w.useRef)(null),a=(0,w.useRef)(0),[s,l]=(0,w.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=cu(s.viewport,s.content),c={...n,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,r,n="ltr"){let i=cc(r),o=t||i/2,a=r.scrollbar.paddingStart+o,s=r.scrollbar.size-r.scrollbar.paddingEnd-(i-o),l=r.content-r.viewport,u=cf([a,s],"ltr"===n?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===r?(0,w.createElement)(u8,j({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=cd(e,s,i.dir);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===r?(0,w.createElement)(u7,j({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=cd(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),u8=(0,w.forwardRef)((e,t)=>{let{sizes:r,onSizesChange:n,...i}=e,o=uJ(u1,e.__scopeScrollArea),[a,s]=(0,w.useState)(),l=(0,w.useRef)(null),u=A(t,l,o.onScrollbarXChange);return(0,w.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,w.createElement)(ct,j({"data-orientation":"horizontal"},i,{ref:u,sizes:r,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":cc(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(o.viewport){let n=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),n>0&&n{l.current&&o.viewport&&a&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:cl(a.paddingLeft),paddingEnd:cl(a.paddingRight)}})}}))}),u7=(0,w.forwardRef)((e,t)=>{let{sizes:r,onSizesChange:n,...i}=e,o=uJ(u1,e.__scopeScrollArea),[a,s]=(0,w.useState)(),l=(0,w.useRef)(null),u=A(t,l,o.onScrollbarYChange);return(0,w.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,w.createElement)(ct,j({"data-orientation":"vertical"},i,{ref:u,sizes:r,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":cc(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(o.viewport){let n=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),n>0&&n{l.current&&o.viewport&&a&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:cl(a.paddingTop),paddingEnd:cl(a.paddingBottom)}})}}))}),[u9,ce]=uY(u1),ct=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=uJ(u1,r),[p,m]=(0,w.useState)(null),v=A(t,e=>m(e)),g=(0,w.useRef)(null),y=(0,w.useRef)(""),b=h.viewport,x=n.content-n.viewport,E=P(c),S=P(l),C=cp(d,10);function k(e){if(g.current){let t=e.clientX-g.current.left,r=e.clientY-g.current.top;u({x:t,y:r})}}return(0,w.useEffect)(()=>{let e=e=>{let t=e.target,r=null==p?void 0:p.contains(t);r&&E(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,x,E]),(0,w.useEffect)(S,[n,S]),cm(p,C),cm(h.content,C),(0,w.createElement)(u9,{scope:r,scrollbar:p,hasThumb:i,onThumbChange:P(o),onThumbPointerUp:P(a),onThumbPositionChange:S,onThumbPointerDown:P(s)},(0,w.createElement)(I.div,j({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:R(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k(e)}}),onPointerMove:R(e.onPointerMove,k),onPointerUp:R(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),cr="ScrollAreaThumb",cn=(0,w.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,i=ce(cr,e.__scopeScrollArea);return(0,w.createElement)(B,{present:r||i.hasThumb},(0,w.createElement)(ci,j({ref:t},n)))}),ci=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,style:n,...i}=e,o=uJ(cr,r),a=ce(cr,r),{onThumbPositionChange:s}=a,l=A(t,e=>a.onThumbChange(e)),u=(0,w.useRef)(),c=cp(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,w.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=ch(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,w.createElement)(I.div,j({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:R(e.onPointerDownCapture,e=>{let t=e.target,r=t.getBoundingClientRect(),n=e.clientX-r.left,i=e.clientY-r.top;a.onThumbPointerDown({x:n,y:i})}),onPointerUp:R(e.onPointerUp,a.onThumbPointerUp)}))}),co="ScrollAreaCorner",ca=(0,w.forwardRef)((e,t)=>{let r=uJ(co,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY),i="scroll"!==r.type&&n;return i?(0,w.createElement)(cs,j({},e,{ref:t})):null}),cs=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,...n}=e,i=uJ(co,r),[o,a]=(0,w.useState)(0),[s,l]=(0,w.useState)(0);return cm(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),cm(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,w.createElement)(I.div,j({},n,{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 cl(e){return e?parseInt(e,10):0}function cu(e,t){let r=e/t;return isNaN(r)?0:r}function cc(e){let t=cu(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function cd(e,t,r="ltr"){let n=cc(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===r?[0,a]:[-1*a,0],l=function(e,[t,r]){return Math.min(r,Math.max(t,e))}(e,s),u=cf([0,a],[0,o-n]);return u(l)}function cf(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}let ch=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=r.left!==o.left,s=r.top!==o.top;(a||s)&&t(),r=o,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function cp(e,t){let r=P(e),n=(0,w.useRef)(0);return(0,w.useEffect)(()=>()=>window.clearTimeout(n.current),[]),(0,w.useCallback)(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function cm(e,t){let r=P(t);V(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}let cv=w.forwardRef((e,t)=>{let{id:r,className:n,style:i,children:o,keyToResetScrollbars:a}=e;return(0,x.jsxs)(uQ,{className:(0,ey.cx)("w-full h-full overflow-hidden",n),style:i,children:[(0,x.jsx)(u0,{id:r,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,x.jsx)(u2,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,x.jsx)(cn,{className:(0,ey.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,x.jsx)(u2,{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,x.jsx)(cn,{className:(0,ey.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,x.jsx)(ca,{className:"bg-black/70"})]})}),cg=(0,ey.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),cy={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cb=w.forwardRef((e,t)=>{let{trigger:r,rootProps:n,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}=la({open:i,onOpenChange:o});return(0,x.jsxs)(u$,{open:v,onOpenChange:g,...n,children:[r&&(0,x.jsx)(uC,{asChild:!0,children:r}),(0,x.jsx)(rR,{children:v?(0,x.jsx)(uW,{forceMount:!0,children:(0,x.jsx)(uR,{asChild:!0,forceMount:!0,ref:t,children:(0,x.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,x.jsx)(u_,{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,x.jsx)(lo.div,{variants:cy,initial:"init",animate:"show",exit:"exit",className:cg(u),children:(0,x.jsx)(cE,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function cx(e){let{className:t}=e;return(0,x.jsx)(uB,{asChild:!0,type:"button",children:(0,x.jsx)("div",{className:(0,ey.cx)("appearance-none",t),children:(0,x.jsx)(lc,{size:"small",variant:"ghost",type:"button",children:(0,x.jsx)(ld.QN4,{})})})})}let cw=(0,ey.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[t9()],none:""}},defaultVariants:{variant:"default"}}),cE=w.forwardRef((e,t)=>{let{children:r,onSubmit:n,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,r]=(0,w.useState)(0),n=(0,w.useRef)(null);return(0,w.useLayoutEffect)(()=>{if(!n.current)return;let e=n.current,t=()=>r(e.clientHeight);t(),n.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:n,height:t}}([r,o]),[h,p]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,x.jsxs)(n?"form":"div",{onSubmit:n,ref:t,className:cw(s),children:[i&&(0,x.jsx)(uF,{className:cj({showSeparator:h}),children:i}),(0,x.jsx)(cv,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,x.jsxs)("div",{ref:d,className:(0,ey.cx)("p-4",u),children:[o&&(0,x.jsx)(uV,{className:cS(),children:o}),r]})}),a&&(0,x.jsx)(cC,{separator:h,children:a}),(0,x.jsx)(cx,{className:l||"absolute top-3.5 right-2"})]})}),cj=(0,ey.j)(["pt-4 pb-2 px-4 w-full",t5({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),cS=(0,ey.j)([t5({color:"subtle",size:"14"}),"py-2"]);function cC(e){let{children:t,separator:r=!0}=e;return(0,x.jsx)("div",{className:(0,ey.cx)("py-2 mx-3",r?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}let ck="rovingFocusGroup.onEntryFocus",cA={bubbles:!1,cancelable:!0},cO="RovingFocusGroup",[cT,c_,cM]=N(cO),[cN,cR]=C(cO,[cM]),[cP,cL]=cN(cO),cD=(0,w.forwardRef)((e,t)=>(0,w.createElement)(cT.Provider,{scope:e.__scopeRovingFocusGroup},(0,w.createElement)(cT.Slot,{scope:e.__scopeRovingFocusGroup},(0,w.createElement)(cI,j({},e,{ref:t}))))),cI=(0,w.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,w.useRef)(null),f=A(t,d),h=uG(o),[p=null,m]=L({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,w.useState)(!1),y=P(u),b=c_(r),x=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ck,y),()=>e.removeEventListener(ck,y)},[y]),(0,w.createElement)(cP,{scope:r,orientation:n,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,w.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,w.useCallback)(()=>g(!0),[])},(0,w.createElement)(I.div,j({tabIndex:v?-1:0,"data-orientation":n},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:R(e.onMouseDown,()=>{x.current=!0}),onFocus:R(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ck,cA);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable),t=e.find(e=>e.active),r=e.find(e=>e.id===p),n=[t,r,...e].filter(Boolean),i=n.map(e=>e.ref.current);cB(i)}}x.current=!1}),onBlur:R(e.onBlur,()=>g(!1))})))}),cF=(0,w.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,...o}=e,a=$(),s=cL("RovingFocusGroupItem",r),l=s.currentTabStopId===a,u=c_(r);return(0,w.createElement)(cT.ItemSlot,{scope:r,id:a,focusable:n,active:i},(0,w.createElement)(I.span,j({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:R(e.onMouseDown,e=>{n?s.onItemFocus(a):e.preventDefault()}),onFocus:R(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:R(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return cV[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(r=o,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>cB(o))}})})))}),cV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function cB(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}let cU=["Enter"," "],cz=["ArrowUp","PageDown","End"],cH=["ArrowDown","PageUp","Home",...cz],c$={ltr:[...cU,"ArrowRight"],rtl:[...cU,"ArrowLeft"]},cW={ltr:["ArrowLeft"],rtl:["ArrowRight"]},cq="Menu",[cG,cZ,cY]=N(cq),[cX,cK]=C(cq,[cY,tb,cR]),cJ=tb(),cQ=cR(),[c0,c1]=cX(cq),[c2,c4]=cX(cq),c3=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e,i=cJ(r);return(0,w.createElement)(tE,j({},i,n,{ref:t}))}),c6="MenuPortal",[c5,c8]=cX(c6,{forceMount:void 0}),c7="MenuContent",[c9,de]=cX(c7),dt=(0,w.forwardRef)((e,t)=>{let r=c8(c7,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=c1(c7,e.__scopeMenu),a=c4(c7,e.__scopeMenu);return(0,w.createElement)(cG.Provider,{scope:e.__scopeMenu},(0,w.createElement)(B,{present:n||o.open},(0,w.createElement)(cG.Slot,{scope:e.__scopeMenu},a.modal?(0,w.createElement)(dr,j({},i,{ref:t})):(0,w.createElement)(dn,j({},i,{ref:t})))))}),dr=(0,w.forwardRef)((e,t)=>{let r=c1(c7,e.__scopeMenu),n=(0,w.useRef)(null),i=A(t,n);return(0,w.useEffect)(()=>{let e=n.current;if(e)return ub(e)},[]),(0,w.createElement)(di,j({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),dn=(0,w.forwardRef)((e,t)=>{let r=c1(c7,e.__scopeMenu);return(0,w.createElement)(di,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),di=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=c1(c7,r),v=c4(c7,r),g=cJ(r),y=cQ(r),b=cZ(r),[x,E]=(0,w.useState)(null),S=(0,w.useRef)(null),C=A(t,S,m.onContentChange),k=(0,w.useRef)(0),T=(0,w.useRef)(""),_=(0,w.useRef)(0),M=(0,w.useRef)(null),N=(0,w.useRef)("right"),P=(0,w.useRef)(0),L=h?up:w.Fragment,D=h?{as:O,allowPinchZoom:!0}:void 0,I=e=>{var t,r;let n=T.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=i.map(e=>e.textValue),l=function(e,t,r){var n;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=r?e.indexOf(r):-1,s=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==r));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==r?u:void 0}(s,n,a),u=null===(r=i.find(e=>e.textValue===l))||void 0===r?void 0:r.ref.current;!function e(t){T.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())};(0,w.useEffect)(()=>()=>window.clearTimeout(k.current),[]),lH();let F=(0,w.useCallback)(e=>{var t,r;let n=N.current===(null===(t=M.current)||void 0===t?void 0:t.side);return n&&function(e,t){if(!t)return!1;let r={x:e.clientX,y:e.clientY};return function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(l-a)*(n-s)/(u-s)+a;c&&(i=!i)}return i}(r,t)}(e,null===(r=M.current)||void 0===r?void 0:r.area)},[]);return(0,w.createElement)(c9,{scope:r,searchRef:T,onItemEnter:(0,w.useCallback)(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:(0,w.useCallback)(e=>{var t;F(e)||(null===(t=S.current)||void 0===t||t.focus(),E(null))},[F]),onTriggerLeave:(0,w.useCallback)(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:_,onPointerGraceIntentChange:(0,w.useCallback)(e=>{M.current=e},[])},(0,w.createElement)(L,D,(0,w.createElement)(lD,{asChild:!0,trapped:i,onMountAutoFocus:R(o,e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,w.createElement)(ew,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,w.createElement)(cD,j({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:n,currentTabStopId:x,onCurrentTabStopIdChange:E,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,w.createElement)(tO,j({role:"menu","aria-orientation":"vertical","data-state":dx(m.open),dir:v.dir},g,p,{ref:C,style:{outline:"none",...p.style},onKeyDown:R(p.onKeyDown,e=>{let t=e.target,r=t.closest('[role="menu"]')===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;r&&("Tab"===e.key&&e.preventDefault(),!n&&i&&I(e.key));let o=S.current;if(e.target!==o||!cH.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);cz.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(s)}),onBlur:R(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),T.current="")}),onPointerMove:R(e.onPointerMove,dE(e=>{let t=e.target,r=P.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>P.current?"right":"left";N.current=t,P.current=e.clientX}}))})))))))}),da=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,w.createElement)(I.div,j({role:"group"},n,{ref:t}))}),ds=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,w.createElement)(I.div,j({},n,{ref:t}))}),dl="MenuItem",du="menu.itemSelect",dc=(0,w.forwardRef)((e,t)=>{let{disabled:r=!1,onSelect:n,...i}=e,o=(0,w.useRef)(null),a=c4(dl,e.__scopeMenu),s=de(dl,e.__scopeMenu),l=A(t,o),u=(0,w.useRef)(!1);return(0,w.createElement)(dd,j({},i,{ref:l,disabled:r,onClick:R(e.onClick,()=>{let e=o.current;if(!r&&e){let t=new CustomEvent(du,{bubbles:!0,cancelable:!0});e.addEventListener(du,e=>null==n?void 0:n(e),{once:!0}),F(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),u.current=!0},onPointerUp:R(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:R(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!r&&(!t||" "!==e.key)&&cU.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),dd=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:i,...o}=e,a=de(dl,r),s=cQ(r),l=(0,w.useRef)(null),u=A(t,l),[c,d]=(0,w.useState)(!1),[f,h]=(0,w.useState)("");return(0,w.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,w.createElement)(cG.ItemSlot,{scope:r,disabled:n,textValue:null!=i?i:f},(0,w.createElement)(cF,j({asChild:!0},s,{focusable:!n}),(0,w.createElement)(I.div,j({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},o,{ref:u,onPointerMove:R(e.onPointerMove,dE(e=>{if(n)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:R(e.onPointerLeave,dE(e=>a.onItemLeave(e))),onFocus:R(e.onFocus,()=>d(!0)),onBlur:R(e.onBlur,()=>d(!1))}))))}),[df,dh]=((e,t)=>{let{checked:r=!1,onCheckedChange:n,...i}=e;return(0,w.createElement)(dm,{scope:e.__scopeMenu,checked:r},(0,w.createElement)(dc,j({role:"menuitemcheckbox","aria-checked":r},i,{ref:t,"data-state":dw(r),onSelect:R(i.onSelect,()=>null==n?void 0:n(!r),{checkForDefaultPrevented:!1})})))},cX("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),dp=((e,t)=>{let{value:r,onValueChange:n,...i}=e,o=P(n);return(0,w.createElement)(df,{scope:e.__scopeMenu,value:r,onValueChange:o},(0,w.createElement)(da,j({},i,{ref:t})))},"MenuItemIndicator"),[dm,dv]=cX(dp,{checked:!1}),[dg,dy]=((e,t)=>{let{__scopeMenu:r,forceMount:n,...i}=e,o=dv(dp,r);return(0,w.createElement)(B,{present:n||o.checked},(0,w.createElement)(I.span,j({},i,{ref:t,"data-state":dw(o.checked)})))},cX("MenuSub")),db="MenuSubTrigger";function dx(e){return e?"open":"closed"}function dw(e){return e?"checked":"unchecked"}function dE(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let r=c1(db,e.__scopeMenu),n=c4(db,e.__scopeMenu),i=dy(db,e.__scopeMenu),o=de(db,e.__scopeMenu),a=(0,w.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,w.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,w.useEffect)(()=>c,[c]),(0,w.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,w.createElement)(c3,j({asChild:!0},u),(0,w.createElement)(dd,j({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":dx(r.open)},e,{ref:k(t,i.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:R(e.onPointerMove,dE(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{r.onOpenChange(!0),c()},100))})),onPointerLeave:R(e.onPointerLeave,dE(e=>{var t,n;c();let i=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(n=r.content)||void 0===n?void 0:n.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:R(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&c$[n.dir].includes(t.key)){var a;r.onOpenChange(!0),null===(a=r.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let r=c8(c7,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=c1(c7,e.__scopeMenu),a=c4(c7,e.__scopeMenu),s=dy("MenuSubContent",e.__scopeMenu),l=(0,w.useRef)(null),u=A(t,l);return(0,w.createElement)(cG.Provider,{scope:e.__scopeMenu},(0,w.createElement)(B,{present:n||o.open},(0,w.createElement)(cG.Slot,{scope:e.__scopeMenu},(0,w.createElement)(di,j({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:R(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:R(e.onEscapeKeyDown,a.onClose),onKeyDown:R(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=cW[a.dir].includes(e.key);if(t&&r){var n;o.onOpenChange(!1),null===(n=s.trigger)||void 0===n||n.focus(),e.preventDefault()}})})))))};let dj=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:o,modal:a=!0}=e,s=cJ(t),[l,u]=(0,w.useState)(null),c=(0,w.useRef)(!1),d=P(o),f=uG(i);return(0,w.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,w.createElement)(tL,s,(0,w.createElement)(c0,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u},(0,w.createElement)(c2,{scope:t,onClose:(0,w.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},n)))},dS=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=c1(c6,t);return(0,w.createElement)(c5,{scope:t,forceMount:r},(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(tD,{asChild:!0,container:i},n)))},dC="DropdownMenu",[dk,dA]=C(dC,[cK]),dO=cK(),[dT,d_]=dk(dC),dM=(0,w.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,o=d_("DropdownMenuTrigger",r),a=dO(r);return(0,w.createElement)(c3,j({asChild:!0},a),(0,w.createElement)(I.button,j({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":n?"":void 0,disabled:n},i,{ref:k(t,o.triggerRef),onPointerDown:R(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:R(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),dN=(0,w.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=d_("DropdownMenuContent",r),o=dO(r),a=(0,w.useRef)(!1);return(0,w.createElement)(dt,j({id:i.contentId,"aria-labelledby":i.triggerId},o,n,{ref:t,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:R(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!i.modal||n)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),dR=(0,w.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=dO(r);return(0,w.createElement)(ds,j({},i,n,{ref:t}))}),dP=(0,w.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=dO(r);return(0,w.createElement)(dc,j({},i,n,{ref:t}))}),dL=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=dO(t),u=(0,w.useRef)(null),[c=!1,d]=L({prop:i,defaultProp:o,onChange:a});return(0,w.createElement)(dT,{scope:t,triggerId:$(),triggerRef:u,contentId:$(),open:c,onOpenChange:d,onOpenToggle:(0,w.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,w.createElement)(dj,j({},l,{open:c,onOpenChange:d,dir:n,modal:s}),r))},dD=e=>{let{__scopeDropdownMenu:t,...r}=e,n=dO(t);return(0,w.createElement)(dS,j({},n,r))},dI="horizontal",dF=["horizontal","vertical"],dV=(0,w.forwardRef)((e,t)=>{let{decorative:r,orientation:n=dI,...i}=e,o=dB(n)?n:dI;return(0,w.createElement)(I.div,j({"data-orientation":o},r?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function dB(e){return dF.includes(e)}dV.propTypes={orientation(e,t,r){let n=e[t],i=String(n);return n&&!dB(n)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${r}\`, expected one of: + - horizontal + - vertical + +Defaulting to \`${dI}\`.`):null}};let dU=(0,ey.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"}}),dz=w.forwardRef((e,t)=>{let{variant:r,color:n,className:i,...o}=e;return(0,x.jsx)(dV,{ref:t,className:dU({variant:r,color:n,className:i}),...o})}),dH=function(){let{className:e,font:t,color:r="subtle",weight:n="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ey.cx)(t5({font:t,color:r,weight:n,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},d$=function(){let{className:e,font:t,color:r="contrast",weight:n="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ey.cx)(dH({font:t,color:r,weight:n,size:i,scaleSize:o,noWrap:a,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"])},dW=e=>{let{className:t,font:r,color:n="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return t5({font:r,color:n,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},dq=e=>(0,ey.cx)(["h-px","my-2","mx-1.5",e]),dG=w.forwardRef((e,t)=>{let{className:r,color:n,...i}=e;return(0,x.jsx)(dz,{ref:t,className:dq(r),...i})}),dZ=w.forwardRef((e,t)=>{let{className:r,font:n,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,x.jsx)("div",{ref:t,className:(0,ey.cx)(dH({className:r,font:n,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),dY=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{ref:t,className:(0,ey.cx)(["ml-auto","pl-5",r]),...n})}),dX=(0,ey.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"]),dK=e=>(0,ey.cx)(t9(),(0,ey.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),dJ={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dQ=w.forwardRef((e,t)=>{let{trigger:r,children:n,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=la({open:s,onOpenChange:l});return(0,x.jsxs)(dL,{open:u,onOpenChange:c,...i,children:[(0,x.jsx)(dM,{asChild:!0,children:r}),(0,x.jsx)(rR,{children:u?(0,x.jsx)(dD,{forceMount:!0,children:(0,x.jsx)(dN,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(lo.div,{variants:dJ,initial:"init",animate:"show",exit:"exit",className:dX(),children:(0,x.jsx)("div",{className:dK(a),children:n})})})}):null})]})}),d0=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)(dP,{ref:t,className:d$({className:r}),...n})}),d1=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)(dR,{ref:t,className:(0,ey.cx)("px-1.5",dW({className:r})),...n})}),d2=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{ref:t,className:(0,ey.cx)(["pr-2","opacity-70 group-hover:opacity-100",r]),...n})});var d4=r(39097),d3=r.n(d4);let d6={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},d5={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"},d8=w.forwardRef((e,t)=>{let{size:r="24",className:n,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=d6[r];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,x.jsxs)("div",{className:(0,ey.cx)("relative flex flex-col gap-6 items-start",n),children:[(0,x.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,x.jsxs)(d3(),{href:"#".concat(e),className:"relative group",children:[(0,x.jsx)(t8,{className:"hidden group-hover:block",children:(0,x.jsx)(ld.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,x.jsx)(t8,{as:u,...l,ref:t,weight:"none",className:(0,ey.cx)("proportional-nums inline-block",d5[r]),children:o})]})]})}return(0,x.jsx)("div",{className:(0,ey.cx)("flex flex-col gap-6 items-start",n),children:(0,x.jsx)(t8,{as:u,...l,ref:t,weight:"none",className:(0,ey.cx)("proportional-nums inline-block",d5[r],n),children:o})})});var d7=r(96577),d9=r.n(d7);let fe=(0,ey.j)(["rounded"]);function ft(e){let{className:t,...r}=e;return(0,x.jsx)(d9(),{className:fe({className:t}),...r})}let[fr,fn]=S("Label",{id:void 0,controlRef:{current:null}}),fi=(0,w.forwardRef)((e,t)=>{let{htmlFor:r,id:n,...i}=e,o=(0,w.useRef)(null),a=(0,w.useRef)(null),s=A(t,a),l=$(n);return(0,w.useEffect)(()=>{if(r){let e=document.getElementById(r),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),r=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",r),o.current=e,()=>{var r;let n=null===(r=t())||void 0===r?void 0:r.replace(l,"");""===n?e.removeAttribute("aria-labelledby"):n&&e.setAttribute("aria-labelledby",n)}}}},[l,r]),(0,w.createElement)(fr,{id:l,controlRef:o},(0,w.createElement)(I.span,j({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var r;null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var r;if(null===(r=e.onClick)||void 0===r||r.call(e,t),!o.current||t.defaultPrevented)return;let n=o.current.contains(t.target),i=!0===t.isTrusted;!n&&i&&(o.current.click(),o.current.focus())}})))}),fo=e=>{let t=fn("LabelConsumer"),{controlRef:r}=t;return(0,w.useEffect)(()=>{e&&(r.current=e)},[e,r]),t.id},fa=w.forwardRef((e,t)=>{let{font:r,size:n="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,x.jsx)(fi,{ref:t,...c,className:dW({font:r,size:n,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),fl=(0,ey.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"}}),fu=e=>{let{font:t,size:r,scaleSize:n,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,ey.cx)(t5({scaleSize:n,size:r,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),fl({disabled:u,underline:l}),c)},fc=w.forwardRef((e,t)=>{let{href:r,font:n,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,w.useCallback)(e=>{m&&(r||e.preventDefault(),m(e))},[m,r]);return(0,x.jsx)(d3(),{href:r||"#",ref:t,className:fu({font:n,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),fd=w.forwardRef((e,t)=>{let{href:r,disabled:n,variant:i,size:o,state:a,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,w.useCallback)(e=>{h&&(r||e.preventDefault(),h(e))},[h,r]);return c?(0,x.jsx)(ll,{content:c,children:(0,x.jsx)(d3(),{href:r||"#",ref:t,className:lu({variant:i,size:o,state:a,rounded:s,disabled:n,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}):(0,x.jsx)(d3(),{href:r||"#",ref:t,className:lu({variant:i,size:o,state:a,rounded:s,disabled:n,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}),ff={src:"/_next/static/media/logo.0e2362ab.png"};function fh(e){let{size:t=30,className:r}=e;return(0,x.jsx)(ft,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:r})}let fp="Popover",[fm,fv]=C(fp,[tb]),fg=tb(),[fy,fb]=fm(fp),fx=(0,w.forwardRef)((e,t)=>{let{__scopePopover:r,...n}=e,i=fb("PopoverTrigger",r),o=fg(r),a=A(t,i.triggerRef),s=(0,w.createElement)(I.button,j({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":fT(i.open)},n,{ref:a,onClick:R(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,w.createElement)(tE,j({asChild:!0},o),s)}),fw="PopoverPortal",[fE,fj]=fm(fw,{forceMount:void 0}),fS="PopoverContent",fC=(0,w.forwardRef)((e,t)=>{let r=fj(fS,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,o=fb(fS,e.__scopePopover);return(0,w.createElement)(B,{present:n||o.open},o.modal?(0,w.createElement)(fk,j({},i,{ref:t})):(0,w.createElement)(fA,j({},i,{ref:t})))}),fk=(0,w.forwardRef)((e,t)=>{let r=fb(fS,e.__scopePopover),n=(0,w.useRef)(null),i=A(t,n),o=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=n.current;if(e)return ub(e)},[]),(0,w.createElement)(up,{as:O,allowPinchZoom:!0},(0,w.createElement)(fO,j({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;o.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),fA=(0,w.forwardRef)((e,t)=>{let r=fb(fS,e.__scopePopover),n=(0,w.useRef)(!1);return(0,w.createElement)(fO,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current||null===(o=r.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),n.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current=!0);let a=t.target,s=null===(o=r.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),fO=(0,w.forwardRef)((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=fb(fS,r),h=fg(r);return lH(),(0,w.createElement)(lD,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,w.createElement)(ew,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,w.createElement)(tO,j({"data-state":fT(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 fT(e){return e?"open":"closed"}let f_=e=>{let{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=fg(t),l=(0,w.useRef)(null),[u,c]=(0,w.useState)(!1),[d=!1,f]=L({prop:n,defaultProp:i,onChange:o});return(0,w.createElement)(tL,s,(0,w.createElement)(fy,{scope:t,contentId:$(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,w.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,w.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,w.useCallback)(()=>c(!1),[]),modal:a},r))},fM=e=>{let{__scopePopover:t,forceMount:r,children:n,container:i}=e,o=fb(fw,t);return(0,w.createElement)(fE,{scope:t,forceMount:r},(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(tD,{asChild:!0,container:i},n)))},fN=(0,ey.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"]),fR=(0,ey.cx)(t9(),(0,ey.j)(["py-1","px-1"])()),fP={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},fL=w.forwardRef((e,t)=>{let{trigger:r,children:n,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=la({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(f_,{open:a,onOpenChange:s,...i,children:[(0,x.jsx)(fx,{asChild:!0,children:r}),(0,x.jsx)(rR,{children:a?(0,x.jsx)(fM,{forceMount:!0,children:(0,x.jsx)(fC,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(lo.div,{variants:fP,initial:"init",animate:"show",exit:"exit",className:fN(),children:(0,x.jsx)(cv,{className:fR,children:n})})})}):null})]})}),fD="Progress",[fI,fF]=C(fD),[fV,fB]=fI(fD),fU=(0,w.forwardRef)((e,t)=>{let{__scopeProgress:r,value:n,max:i,getValueLabel:o=fH,...a}=e,s=fq(i)?i:100,l=fG(n,s)?n:null,u=fW(l)?o(l,s):void 0;return(0,w.createElement)(fV,{scope:r,value:l,max:s},(0,w.createElement)(I.div,j({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":fW(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":f$(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});fU.propTypes={max(e,t,r){let n=e[t],i=String(n);return n&&!fq(n)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,r){let n=e[t],i=String(n),o=fq(e.max)?e.max:100;return null==n||fG(n,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${r}\`. 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 fz=(0,w.forwardRef)((e,t)=>{var r;let{__scopeProgress:n,...i}=e,o=fB("ProgressIndicator",n);return(0,w.createElement)(I.div,j({"data-state":f$(o.value,o.max),"data-value":null!==(r=o.value)&&void 0!==r?r:void 0,"data-max":o.max},i,{ref:t}))});function fH(e,t){return`${Math.round(e/t*100)}%`}function f$(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function fW(e){return"number"==typeof e}function fq(e){return fW(e)&&!isNaN(e)&&e>0}function fG(e,t){return fW(e)&&!isNaN(e)&&e<=t&&e>=0}let fZ=(0,ey.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"}}),fY=w.forwardRef((e,t)=>{let{label:r,variant:n,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,x.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,x.jsx)(fU,{...s,ref:t,value:o,max:a,className:fZ({variant:n,className:i}),children:(0,x.jsx)(fz,{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,"%)")}})}),r&&(0,x.jsx)(t8,{color:"subtle",size:"12",ellipsis:!0,children:r})]})});(0,ey.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"}}),(0,ey.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"}});let fX=(0,ey.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",t5(),"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"}}),fK=w.forwardRef((e,t)=>{let{size:r,variant:n,state:i,cursor:o,className:a,...s}=e;return(0,x.jsx)("textarea",{ref:t,className:fX({size:r,variant:n,state:i,cursor:o,className:a}),...s})}),fJ=(0,ey.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"}}),fQ=w.forwardRef((e,t)=>{let{variant:r,size:n,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,x.jsx)("input",{ref:t,className:fJ({variant:r,size:n,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var f0=function(){return(f0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1){if(e.includes(t)){var n=e.split(t),i=n[0],o=n[1];if(o.length>r)return""+i+t+o.slice(0,r)}var a=e.length>r?RegExp("(\\d+)(\\d{"+r+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},f9=function(e,t){var r=t.groupSeparator,n=t.decimalSeparator,i=RegExp("\\d([^"+f2(void 0===r?",":r)+f2(void 0===n?".":n)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},he=function(e){var t=e.value,r=e.decimalSeparator,n=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?f2(a)+"?":"")+"\\d").test(t),c="."!==r?ht(t,r,u):t,d=hr((n?new Intl.NumberFormat(n.locale,n.currency?{style:"currency",currency:n.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=f9(d,f0({},e)),h=t.slice(-1)===r?r:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&r&&(d=d.includes(r)?d.replace(RegExp("(\\d+)("+f2(r)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+r+p+f):""+d+r+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},ht=function(e,t,r){var n=e;return t&&"."!==t&&(n=n.replace(RegExp(f2(t),"g"),"."),r&&"-"===t&&(n="-"+n.slice(1))),n},hr=function(e,t){var r=t.prefix,n=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&r?"minusSign"===l?[u,r]:"currency"===l?f1(f1([],e),[r]):[r,u]:"currency"===l?r?e:f1(f1([],e),[u]):"group"===l?s?e:f1(f1([],e),[void 0!==n?n:u]):"decimal"===l?void 0!==o&&0===o?e:f1(f1([],e),[void 0!==i?i:u]):"fraction"===l?f1(f1([],e),[void 0!==o?u.slice(0,o):u]):f1(f1([],e),[u])},[""]).join("")},hn={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},hi=function(e){var t=e||{},r=t.locale,n=t.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,r){return"currency"===t.type?0===r?f0(f0({},e),{currencySymbol:t.value,prefix:t.value}):f0(f0({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?f0(f0({},e),{groupSeparator:t.value}):"decimal"===t.type?f0(f0({},e),{decimalSeparator:t.value}):e},hn)},ho=function(e){return RegExp(/\d/,"gi").test(e)},ha=function(e,t,r){if(void 0===t&&(t="."),void 0===r||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var n=e.split(t),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.lengtht.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(A&&ho(A))throw Error("decimalSeparator cannot be a number");if(O&&ho(O))throw Error("groupSeparator cannot be a number");var D=(0,w.useMemo)(function(){return hi(b)},[b]),I=A||D.decimalSeparator||"",F=O||D.groupSeparator||"";if(I&&F&&I===F&&!1===C)throw Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:I,groupSeparator:F,disableGroupSeparators:C,intlConfig:b,prefix:g||D.prefix,suffix:y},B={decimalSeparator:I,groupSeparator:F,allowDecimals:void 0===r||r,decimalsLimit:l||p||2,allowNegativeValue:void 0===n||n,disableAbbreviations:void 0!==k&&k,prefix:g||D.prefix,transformRawValue:P},U=null!=u?he(f0(f0({},V),{decimalScale:v,value:String(u)})):null!=f?he(f0(f0({},V),{decimalScale:v,value:String(f)})):"",z=(0,w.useState)(U),H=z[0],$=z[1],W=(0,w.useState)(!1),q=W[0],G=W[1],Z=(0,w.useState)(0),Y=Z[0],X=Z[1],K=(0,w.useState)(0),J=K[0],Q=K[1],ee=(0,w.useState)(null),et=ee[0],er=ee[1],en=t||(0,w.useRef)(null),ei=function(e,t){G(!0);var r=hs({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:F}),n=r.modifiedValue,i=r.cursorPosition,a=f8(f0({value:n},B));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===I){h&&h(void 0,o,{float:null,formatted:"",value:""}),$(a);return}var s=parseFloat(a.replace(I,".")),l=he(f0({value:a},V));if(null!=i){var u=i+(l.length-e.length);X(u=u<=0?g?g.length:0:u),Q(J+1)}$(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,w.useEffect)(function(){q&&"-"!==H&&en&&"object"==typeof en&&en.current&&en.current.setSelectionRange(Y,Y)},[H,Y,en,q,J]);var eo=f0({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),T&&T(e)},onBlur:function(e){var t=e.target.value,r=f8(f0({value:t},B));if("-"===r||!r){$(""),M&&M(e);return}var n=ha(f7(r,I,p),I,void 0!==v?v:p),i=parseFloat(n.replace(I,".")),a=he(f0(f0({},V),{value:n}));h&&h(n,o,{float:i,formatted:a,value:n}),$(a),M&&M(e)},onFocus:function(e){return _&&_(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(er(t),x&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),X(H.length);var r=parseFloat(null!=f?String(f).replace(I,"."):f8(f0({value:H},B)))||0,n="ArrowUp"===t?r+x:r-x;if(void 0!==E&&nj)return;var i=String(x).includes(".")?Number(String(x).split(".")[1].length):void 0;ei(String(i?n.toFixed(i):n).replace(".",I))}N&&N(e)},onKeyUp:function(e){var t=e.key,r=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var n=f9(H,{groupSeparator:F,decimalSeparator:I});if(n&&r&&r>H.length-n.length&&en&&"object"==typeof en&&en.current){var i=H.length-n.length;en.current.setSelectionRange(i,i)}}R&&R(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||I&&H===I?H:he(f0(f0({},V),{decimalScale:q?void 0:v,value:String(f)})),ref:en},L);return s?w.createElement(s,f0({},eo)):w.createElement("input",f0({},eo))});function hu(e){let{units:t,variant:r,size:n="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,w.useState)();return(0,w.useEffect)(()=>{h(navigator.language)},[]),(0,x.jsxs)("div",{className:"relative",children:[(0,x.jsx)(hl,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,className:(0,ey.cx)(fJ({variant:r,size:n,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,x.jsx)("div",{className:(0,ey.cx)("flex items-center absolute top-0 h-full","small"===n?"right-2":"","medium"===n?"right-3":"","large"===n?"right-3":""),children:(0,x.jsx)(t8,{size:"12",weight:"medium",color:"subtle",children:t})})]})}hl.displayName="CurrencyInput";var hc=r(6391),hd=r.n(hc);function hf(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let hh=(0,w.forwardRef)(function(e,t){let{value:r,placeholder:n=new(hd())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,w.useMemo)(()=>new(hd())(r),[r]),[p,m]=(0,w.useState)(""),v=(0,w.useMemo)(()=>hp(p),[p]),g=(0,w.useCallback)(e=>{o&&o((e=hp(e))&&!isNaN(Number(e))?new(hd())(e):void 0)},[o]),y=(0,w.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,w.useEffect)(()=>{if(!h.isEqualTo(v)){let e=hf(h,i);m(e)}},[h]),(0,x.jsx)(hu,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:n.isNaN()?"":hf(n,i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>y(e||"")})});function hp(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var hm=r(2850);function hv(e){let{settings:t}=(0,hm.Hv)();return(0,hm.Nf)({api:"https://api.siacentral.com/v2",...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}r(98537);let hg=new(hd())(0),hy=(0,w.forwardRef)(function(e,t){let{sc:r,placeholder:n=new(hd())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,w.useMemo)(()=>new(hd())(void 0===r?NaN:r),[r]),{settings:g}=(0,hm.Hv)(),y=hv({config:{swr:{revalidateOnFocus:!1}}}),b=(0,w.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(hd())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||hg):hg},[y.data,g]),[E,j]=(0,w.useState)(),[S,C]=(0,w.useState)(""),[k,A]=(0,w.useState)(""),O=(0,w.useMemo)(()=>hb(S),[S]),T=(0,w.useMemo)(()=>hb(k),[k]),_=(0,w.useCallback)(e=>{a&&a((e=hb(e))&&!isNaN(Number(e))?new(hd())(e):void 0)},[a]),M=(0,w.useCallback)(e=>{let t=hf(e,i);A(t)},[A,i]),N=(0,w.useCallback)(e=>{let t=hf(e,o);return C(t),_(t),t},[C,o,_]),R=(0,w.useCallback)(e=>{C(e),_(e)},[C,_]),P=(0,w.useCallback)(e=>{let t=new(hd())(e).times(b);M(t)},[M,b]),L=(0,w.useCallback)(e=>{let t=new(hd())(e).dividedBy(b);N(t)},[N,b]),[D,I]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{if(!v.isEqualTo(O)){let e=hf(v,o);C(e),"fiat"!==E&&P(e)}D||I(!0)},[v]),(0,w.useEffect)(()=>{D&&P(O)},[b]),(0,w.useEffect)(()=>{"sc"===E&&P(O)},[O]),(0,w.useEffect)(()=>{"fiat"===E&&L(T)},[T]),(0,x.jsxs)("div",{ref:t,className:(0,ey.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,x.jsx)(hu,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:hf(n,o),units:l,value:"NaN"!==S?S:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{j(void 0),h&&h(e)},onFocus:e=>{j("sc"),p&&p(e)},onValueChange:e=>{R(e||"")}}),u&&g.siaCentral&&(0,x.jsx)(hu,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==k?k:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(b?b.times(n).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{j("fiat"),p&&p(e)},onBlur:e=>{j(void 0),h&&h(e)},onValueChange:e=>{A(e||"")}})]})});function hb(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function hx(e){let{children:t}=e;return(0,x.jsx)(ll,{content:t,children:(0,x.jsx)("div",{className:"relative flex items-center inline mx-1",children:(0,x.jsx)(t8,{color:"subtle",children:(0,x.jsx)(ld.RdX,{className:"scale-75"})})})})}function hw(e){let{values:t,options:r,onChange:n}=e;return(0,x.jsx)("div",{className:"flex flex-wrap gap-1",children:r.map(e=>(0,x.jsx)(lc,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{n(e.value)},children:e.label},e.value))})}let hE=(0,ey.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"}}),hj=w.forwardRef((e,t)=>{let{size:r,state:n,icon:i,className:o,...a}=e;return(0,x.jsxs)("div",{className:hE({size:r,state:n,className:o}),children:[i,(0,x.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,x.jsx)(ld.Cp0,{className:"pointer-events-none scale-75"})]})}),hS=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("option",{ref:t,...n,className:(0,ey.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",r)})}),hC=(0,ey.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function hk(e){let{className:t}=e;return(0,x.jsx)("div",{className:hC({className:t})})}function hA(e){let t=(0,w.useRef)({value:e,previous:e});return(0,w.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,ey.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}});let hO="Switch",[hT,h_]=C(hO),[hM,hN]=hT(hO),hR=(0,w.forwardRef)((e,t)=>{let{__scopeSwitch:r,"aria-labelledby":n,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,w.useState)(null),p=A(t,e=>h(e)),m=fo(f),v=(0,w.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=L({prop:o,defaultProp:a,onChange:c});return(0,w.createElement)(hM,{scope:r,checked:y,disabled:l},(0,w.createElement)(I.button,j({type:"button",role:"switch","aria-checked":y,"aria-labelledby":n||m,"aria-required":s,"data-state":hD(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:R(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,w.createElement)(hL,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),hP=(0,w.forwardRef)((e,t)=>{let{__scopeSwitch:r,...n}=e,i=hN("SwitchThumb",r);return(0,w.createElement)(I.span,j({"data-state":hD(i.checked),"data-disabled":i.disabled?"":void 0},n,{ref:t}))}),hL=e=>{let{control:t,checked:r,bubbles:n=!0,...i}=e,o=(0,w.useRef)(null),a=hA(r),s=tv(t);return(0,w.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==r&&s){let t=new Event("click",{bubbles:n});s.call(e,r),e.dispatchEvent(t)}},[a,r,n]),(0,w.createElement)("input",j({type:"checkbox","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function hD(e){return e?"checked":"unchecked"}let hI=(0,ey.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"}}),hF=(0,ey.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,w.forwardRef)((e,t)=>{let{size:r,state:n,className:i,children:o,...a}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(hR,{className:hF({size:r,state:n,className:i}),...a,ref:t,children:(0,x.jsx)(hP,{className:hI({size:r})})}),o&&(0,x.jsx)(t8,{color:a.disabled?"subtle":"contrast",children:o})]})}),hB=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e,i=w.Children.toArray(r),o=i.find(hH);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:w.Children.count(e)>1?w.Children.only(null):(0,w.isValidElement)(e)?e.props.children:null);return(0,w.createElement)(hU,j({},n,{ref:t}),(0,w.isValidElement)(e)?(0,w.cloneElement)(e,void 0,r):null)}return(0,w.createElement)(hU,j({},n,{ref:t}),r)});hB.displayName="Slot";let hU=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,w.isValidElement)(r)?(0,w.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n],a=/^on[A-Z]/.test(n);a?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:k(t,r.ref)}):w.Children.count(r)>1?w.Children.only(null):null});hU.displayName="SlotClone";let hz=({children:e})=>(0,w.createElement)(w.Fragment,null,e);function hH(e){return(0,w.isValidElement)(e)&&e.type===hz}let h$=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,w.forwardRef)((e,r)=>{let{asChild:n,...i}=e,o=n?hB:t;return(0,w.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,w.createElement)(o,j({},i,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),hW=(0,w.forwardRef)((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,w.createElement)(h$.svg,j({},o,{ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:(0,w.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hq="Popper",[hG,hZ]=C(hq),[hY,hX]=hG(hq),hK=(0,w.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,o=hX("PopperAnchor",r),a=(0,w.useRef)(null),s=A(t,a);return(0,w.useEffect)(()=>{o.onAnchorChange((null==n?void 0:n.current)||a.current)}),n?null:(0,w.createElement)(h$.div,j({},i,{ref:s}))}),hJ="PopperContent",[hQ,h0]=hG(hJ),[h1,h2]=hG(hJ,{hasParent:!1,positionUpdateFns:new Set}),h4=(0,w.forwardRef)((e,t)=>{var r,n,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:E=!0,onPlaced:j,...S}=e,C=hX(hJ,d),[k,O]=(0,w.useState)(null),T=A(t,e=>O(e)),[_,M]=(0,w.useState)(null),N=tv(_),R=null!==(r=null==N?void 0:N.width)&&void 0!==r?r:0,L=null!==(n=null==N?void 0:N.height)&&void 0!==n?n:0,D="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},I=Array.isArray(g)?g:[g],F=I.length>0,B={padding:D,boundary:I.filter(h5),altBoundary:F},{reference:U,floating:z,strategy:H,x:$,y:W,placement:q,middlewareData:G,update:Z}=th({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tc,middleware:[h8(),eW({mainAxis:h+L,alignmentAxis:m}),E?eG({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?eZ():void 0,...B}):void 0,_?tp({element:_,padding:v}):void 0,E?eU({...B}):void 0,{name:"size",options:c={...B,apply:({elements:e,availableWidth:t,availableHeight:r})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${r}px`)}},async fn(e){let t,r;let{placement:n,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await eN(e,l),d=eS(n),f=eC(n);"top"===d||"bottom"===d?(t=d,r=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(r=d,t="end"===f?"top":"bottom");let h=eP(u.left,0),p=eP(u.right,0),m=eP(u.top,0),v=eP(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(n)?2*(0!==m||0!==v?m+v:eP(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(n)?2*(0!==h||0!==p?h+p:eP(u.left,u.right)):u[r])},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}}:{}}},h7({arrowWidth:R,arrowHeight:L}),x?e$({strategy:"referenceHidden"}):void 0].filter(h6)});V(()=>{U(C.anchor)},[U,C.anchor]);let Y=null!==$&&null!==W,[X,K]=h9(q),J=P(j);V(()=>{Y&&(null==J||J())},[Y,J]);let Q=null===(i=G.arrow)||void 0===i?void 0:i.x,ee=null===(o=G.arrow)||void 0===o?void 0:o.y,et=(null===(a=G.arrow)||void 0===a?void 0:a.centerOffset)!==0,[er,en]=(0,w.useState)();V(()=>{k&&en(window.getComputedStyle(k).zIndex)},[k]);let{hasParent:ei,positionUpdateFns:eo}=h2(hJ,d),ea=!ei;(0,w.useLayoutEffect)(()=>{if(!ea)return eo.add(Z),()=>{eo.delete(Z)}},[ea,eo,Z]),V(()=>{ea&&Y&&Array.from(eo).reverse().forEach(e=>requestAnimationFrame(e))},[ea,Y,eo]);let es={"data-side":X,"data-align":K,...S,ref:T,style:{...S.style,animation:Y?void 0:"none",opacity:null!==(s=G.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,w.createElement)("div",{ref:z,"data-radix-popper-content-wrapper":"",style:{position:H,left:0,top:0,transform:Y?`translate3d(${Math.round($)}px, ${Math.round(W)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null===(l=G.transformOrigin)||void 0===l?void 0:l.x,null===(u=G.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,w.createElement)(hQ,{scope:d,placedSide:X,onArrowChange:M,arrowX:Q,arrowY:ee,shouldHideArrow:et},ea?(0,w.createElement)(h1,{scope:d,hasParent:!0,positionUpdateFns:eo},(0,w.createElement)(h$.div,es)):(0,w.createElement)(h$.div,es)))}),h3={top:"bottom",right:"left",bottom:"top",left:"right"};function h6(e){return void 0!==e}function h5(e){return null!==e}let h8=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:r}=e,{width:n,height:i}=t.reference;return r.floating.style.setProperty("--radix-popper-anchor-width",`${n}px`),r.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),h7=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=h9(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(n=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==n?n: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 h9(e){let[t,r="center"]=e.split("-");return[t,r]}let pe=e=>{let{__scopePopper:t,children:r}=e,[n,i]=(0,w.useState)(null);return(0,w.createElement)(hY,{scope:t,anchor:n,onAnchorChange:i},r)},pt=(0,w.forwardRef)((e,t)=>{var r;let{container:n=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...i}=e;return n?D.createPortal((0,w.createElement)(h$.div,j({},i,{ref:t})),n):null}),pr="dismissableLayer.update",pn=(0,w.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pi=(0,w.forwardRef)((e,t)=>{var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,w.useContext)(pn),[f,h]=(0,w.useState)(null),p=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null==globalThis?void 0:globalThis.document,[,m]=(0,w.useState)({}),v=A(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,S=x>=b,C=function(e,t=null==globalThis?void 0:globalThis.document){let r=P(e),n=(0,w.useRef)(!1),i=(0,w.useRef)(()=>{});return(0,w.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function o(){pa("dismissableLayer.pointerDownOutside",r,n,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));!S||r||(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 r=P(e),n=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=e=>{e.target&&!n.current&&pa("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));r||(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 r=P(e);(0,w.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[r,t])}(e=>{let t=x===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,w.useEffect)(()=>{if(f)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(i=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),po(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=i)}},[f,p,n,d]),(0,w.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),po())},[f,d]),(0,w.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pr,e),()=>document.removeEventListener(pr,e)},[]),(0,w.createElement)(h$.div,j({},c,{ref:v,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,k.onFocusCapture),onBlurCapture:R(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,C.onPointerDownCapture)}))});function po(){let e=new CustomEvent(pr);document.dispatchEvent(e)}function pa(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});(t&&i.addEventListener(e,t,{once:!0}),n)?i&&(0,D.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let ps="HoverCard",[pl,pu]=C(ps,[hZ]),pc=hZ(),[pd,pf]=pl(ps),ph=(0,w.forwardRef)((e,t)=>{let{__scopeHoverCard:r,...n}=e,i=pf("HoverCardTrigger",r),o=pc(r);return(0,w.createElement)(hK,j({asChild:!0},o),(0,w.createElement)(h$.a,j({"data-state":i.open?"open":"closed"},n,{ref:t,onPointerEnter:R(e.onPointerEnter,px(i.onOpen)),onPointerLeave:R(e.onPointerLeave,px(i.onClose)),onFocus:R(e.onFocus,i.onOpen),onBlur:R(e.onBlur,i.onClose),onTouchStart:R(e.onTouchStart,e=>e.preventDefault())})))}),pp="HoverCardPortal",[pm,pv]=pl(pp,{forceMount:void 0}),pg="HoverCardContent",py=(0,w.forwardRef)((e,t)=>{let r=pv(pg,e.__scopeHoverCard),{forceMount:n=r.forceMount,...i}=e,o=pf(pg,e.__scopeHoverCard);return(0,w.createElement)(B,{present:n||o.open},(0,w.createElement)(pb,j({"data-state":o.open?"open":"closed"},i,{onPointerEnter:R(e.onPointerEnter,px(o.onOpen)),onPointerLeave:R(e.onPointerLeave,px(o.onClose)),ref:t})))}),pb=(0,w.forwardRef)((e,t)=>{let{__scopeHoverCard:r,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,...l}=e,u=pf(pg,r),c=pc(r),d=(0,w.useRef)(null),f=A(t,d),[h,p]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{if(h){let e=document.body;return o=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=o,e.style.webkitUserSelect=o}}},[h]),(0,w.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(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,w.useEffect)(()=>{if(d.current){let e=function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t}(d.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,w.createElement)(pi,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:R(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,w.createElement)(h4,j({},c,l,{onPointerDown:R(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 px(e){return t=>"touch"===t.pointerType?void 0:e()}let pw=e=>{let{__scopeHoverCard:t,children:r,open:n,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=pc(t),u=(0,w.useRef)(0),c=(0,w.useRef)(0),d=(0,w.useRef)(!1),f=(0,w.useRef)(!1),[h=!1,p]=L({prop:n,defaultProp:i,onChange:o}),m=(0,w.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,w.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,w.useCallback)(()=>p(!1),[p]);return(0,w.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,w.createElement)(pd,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,w.createElement)(pe,l,r))},pE=e=>{let{__scopeHoverCard:t,forceMount:r,children:n,container:i}=e,o=pf(pp,t);return(0,w.createElement)(pm,{scope:t,forceMount:r},(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(pt,{asChild:!0,container:i},n)))},pj=(0,ey.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"]),pS=(0,ey.cx)(t9(),"max-w-sm","py-0.5","px-1"),pC={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},pk=w.forwardRef((e,t)=>{let{trigger:r,children:n,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=la({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(pw,{open:l,onOpenChange:u,...i,children:[r&&(0,x.jsx)(ph,{asChild:!0,children:r}),(0,x.jsx)(rR,{children:l?(0,x.jsx)(pE,{forceMount:!0,children:(0,x.jsx)(py,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,x.jsx)(lo.div,{variants:pC,initial:"init",animate:"show",exit:"exit",className:pj(),children:(0,x.jsx)("div",{className:(0,ey.cx)(pS,a),children:n})})})}):null})]})}),pA=w.forwardRef((e,t)=>(0,x.jsx)("button",{...e,ref:t,className:(0,ey.cx)("select-none flex items-center gap-4 rounded py-4 px-4","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-200 dark:bg-graydark-50","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","disabled:opacity-50")}));function pO(e,t=[]){let r=[],n=()=>{let t=r.map(e=>(0,w.createContext)(e));return function(r){let n=(null==r?void 0:r[e])||t;return(0,w.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=(0,w.createContext)(n),o=r.length;function a(t){let{scope:r,children:n,...a}=t,s=(null==r?void 0:r[e][o])||i,l=(0,w.useMemo)(()=>a,Object.values(a));return(0,w.createElement)(s.Provider,{value:l},n)}return r=[...r,n],a.displayName=t+"Provider",[a,function(r,a){let s=(null==a?void 0:a[e][o])||i,l=(0,w.useContext)(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e),o=i[`__scope${n}`];return{...t,...o}},{});return(0,w.useMemo)(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}function pT(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function p_(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pM(...e){return(0,w.useCallback)(p_(...e),e)}let pN=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e,i=w.Children.toArray(r),o=i.find(pL);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:w.Children.count(e)>1?w.Children.only(null):(0,w.isValidElement)(e)?e.props.children:null);return(0,w.createElement)(pR,j({},n,{ref:t}),(0,w.isValidElement)(e)?(0,w.cloneElement)(e,void 0,r):null)}return(0,w.createElement)(pR,j({},n,{ref:t}),r)});pN.displayName="Slot";let pR=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,w.isValidElement)(r)?(0,w.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n],a=/^on[A-Z]/.test(n);a?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?p_(t,r.ref):r.ref}):w.Children.count(r)>1?w.Children.only(null):null});pR.displayName="SlotClone";let pP=({children:e})=>(0,w.createElement)(w.Fragment,null,e);function pL(e){return(0,w.isValidElement)(e)&&e.type===pP}let pD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,w.forwardRef)((e,r)=>{let{asChild:n,...i}=e,o=n?pN:t;return(0,w.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,w.createElement)(o,j({},i,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function pI(e){let t=(0,w.useRef)(e);return(0,w.useEffect)(()=>{t.current=e}),(0,w.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}let pF=(null==globalThis?void 0:globalThis.document)?w.useLayoutEffect:()=>{},pV=e=>{let{present:t,children:r}=e,n=function(e){var t;let[r,n]=(0,w.useState)(),i=(0,w.useRef)({}),o=(0,w.useRef)(e),a=(0,w.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,w.useReducer)((e,r)=>{let n=t[e][r];return null!=n?n:e},s));return(0,w.useEffect)(()=>{let e=pB(i.current);a.current="mounted"===l?e:"none"},[l]),pF(()=>{let t=i.current,r=o.current,n=r!==e;if(n){let n=a.current,i=pB(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):r&&n!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),pF(()=>{if(r){let e=e=>{let t=pB(i.current),n=t.includes(e.animationName);e.target===r&&n&&(0,D.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(a.current=pB(i.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,w.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}(t),i="function"==typeof r?r({present:n.isPresent}):w.Children.only(r),o=pM(n.ref,i.ref),a="function"==typeof r;return a||n.isPresent?(0,w.cloneElement)(i,{ref:o}):null};function pB(e){return(null==e?void 0:e.animationName)||"none"}pV.displayName="Presence";let pU=E["useId".toString()]||(()=>void 0),pz=0;function pH(e){let t=e+"CollectionProvider",[r,n]=pO(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=w.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(a,r),s=pM(t,i.collectionRef);return w.createElement(pN,{ref:s},n)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=w.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=w.useRef(null),s=pM(t,a),c=o(l,r);return w.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),w.createElement(pN,{[u]:"",ref:s},n)});return[{Provider:e=>{let{scope:t,children:r}=e,n=w.useRef(null),o=w.useRef(new Map).current;return w.createElement(i,{scope:t,itemMap:o,collectionRef:n},r)},Slot:s,ItemSlot:c},function(t){let r=o(e+"CollectionConsumer",t),n=w.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),n=Array.from(r.itemMap.values()),i=n.sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current));return i},[r.collectionRef,r.itemMap]);return n},n]}let p$="dismissableLayer.update",pW=(0,w.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pq=(0,w.forwardRef)((e,t)=>{var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,w.useContext)(pW),[f,h]=(0,w.useState)(null),p=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null==globalThis?void 0:globalThis.document,[,m]=(0,w.useState)({}),v=pM(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,S=x>=b,C=function(e,t=null==globalThis?void 0:globalThis.document){let r=pI(e),n=(0,w.useRef)(!1),i=(0,w.useRef)(()=>{});return(0,w.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function o(){pZ("dismissableLayer.pointerDownOutside",r,n,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));!S||r||(null==o||o(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),k=function(e,t=null==globalThis?void 0:globalThis.document){let r=pI(e),n=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=e=>{e.target&&!n.current&&pZ("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));r||(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 r=pI(e);(0,w.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[r,t])}(e=>{let t=x===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,w.useEffect)(()=>{if(f)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(a=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pG(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=a)}},[f,p,n,d]),(0,w.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pG())},[f,d]),(0,w.useEffect)(()=>{let e=()=>m({});return document.addEventListener(p$,e),()=>document.removeEventListener(p$,e)},[]),(0,w.createElement)(pD.div,j({},c,{ref:v,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:pT(e.onFocusCapture,k.onFocusCapture),onBlurCapture:pT(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pT(e.onPointerDownCapture,C.onPointerDownCapture)}))});function pG(){let e=new CustomEvent(p$);document.dispatchEvent(e)}function pZ(e,t,r,{discrete:n}){var i,o;let a=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?(i=a,o=s,i&&(0,D.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,w.createElement)(pD.span,j({},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 pY="NavigationMenu",[pX,pK,pJ]=pH(pY),[pQ,p0,p1]=pH(pY),[p2,p4]=pO(pY,[pJ,p1]),[p3,p6]=p2(pY),[p5,p8]=p2(pY),[p7,p9]=p2("NavigationMenuItem"),me=((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=p6("NavigationMenuIndicator",r),o=pK(r),[a,s]=(0,w.useState)(null),[l,u]=(0,w.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,w.useEffect)(()=>{var e;let t=o(),r=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;r&&s(r)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return ma(a,f),ma(i.indicatorTrack,f),l?(0,w.createElement)(pD.div,j({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},n,{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)`},...n.style}})):null},"NavigationMenuContent"),mt=((e,t)=>{let r=p6(me,e.__scopeNavigationMenu),{onViewportContentChange:n,onViewportContentRemove:i}=r;return pF(()=>{n(e.value,{ref:t,...e})},[e,t,n]),pF(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),mr=(0,w.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,value:n,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=p6(me,r),d=(0,w.useRef)(null),f=pM(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,n),p=function(e,t){return`${e}-content-${t}`}(c.baseId,n),m=pK(r),v=(0,w.useRef)(null),{onItemDismiss:g}=c;(0,w.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(mt,t),()=>e.removeEventListener(mt,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,w.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let r=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=n===c.value,a=i===t.indexOf(n);if(!o&&!a)return v.current;let s=(()=>{if(r!==i){if(o&&-1!==i)return r>i?"from-end":"from-start";if(a&&-1!==r)return r>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,n]);return(0,w.createElement)(mn,{asChild:!0},(0,w.createElement)(pq,j({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(mt,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:pT(e.onFocusOutside,e=>{var t;l();let r=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(r)&&e.preventDefault()}),onPointerDownOutside:pT(e.onPointerDownOutside,e=>{var t;let r=e.target,n=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(r)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(r));(n||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:pT(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,r="Tab"===e.key&&!t;if(r){let t=function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(e.currentTarget),r=document.activeElement,i=t.findIndex(e=>e===r),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(mo(s))e.preventDefault();else{var n;null===(n=o.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:pT(e.onEscapeKeyDown,e=>{a.current=!0})})))}),mn=((e,t)=>{let{__scopeNavigationMenu:r,children:n,...i}=e,o=p6("NavigationMenuViewport",r),a=pM(t,o.onViewportChange),s=p8(me,e.__scopeNavigationMenu),[l,u]=(0,w.useState)(null),[c,d]=(0,w.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 ma(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,w.createElement)(pD.div,j({"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:pT(e.onPointerEnter,o.onContentEnter),onPointerLeave:pT(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:r,...n}])=>{let i=m===e;return(0,w.createElement)(pV,{key:e,present:r||i},(0,w.createElement)(mr,j({},n,{ref:p_(t,e=>{i&&e&&d(e)})})))}))},(0,w.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=p6("FocusGroup",r);return(0,w.createElement)(pQ.Provider,{scope:r},(0,w.createElement)(pQ.Slot,{scope:r},(0,w.createElement)(pD.div,j({dir:i.dir},n,{ref:t}))))})),mi=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=p0(r),o=p6("FocusGroupItem",r);return(0,w.createElement)(pQ.ItemSlot,{scope:r},(0,w.createElement)(pD.button,j({},n,{ref:t,onKeyDown:pT(e.onKeyDown,e=>{let t=["Home","End",...mi].includes(e.key);if(t){let t=i().map(e=>e.ref.current),r="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([r,"ArrowUp","End"].includes(e.key)&&t.reverse(),mi.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>mo(t)),e.preventDefault()}})})))};function mo(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ma(e,t){let r=pI(t);pF(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}let ms=["light","dark"],ml="(prefers-color-scheme: dark)",mu="undefined"==typeof window,mc=(0,w.createContext)(void 0),md={setTheme:e=>{},themes:[]},mf=()=>{var e;return null!==(e=(0,w.useContext)(mc))&&void 0!==e?e:md},mh=e=>(0,w.useContext)(mc)?w.createElement(w.Fragment,null,e.children):w.createElement(mm,e),mp=["light","dark"],mm=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:i="theme",themes:o=mp,defaultTheme:a=r?"system":"light",attribute:s="data-theme",value:l,children:u,nonce:c})=>{let[d,f]=(0,w.useState)(()=>mg(i,a)),[h,p]=(0,w.useState)(()=>mg(i)),m=l?Object.values(l):o,v=(0,w.useCallback)(e=>{let i=e;if(!i)return;"system"===e&&r&&(i=mb());let o=l?l[i]:i,u=t?my():null,c=document.documentElement;if("class"===s?(c.classList.remove(...m),o&&c.classList.add(o)):o?c.setAttribute(s,o):c.removeAttribute(s),n){let e=ms.includes(a)?a:null,t=ms.includes(i)?i:e;c.style.colorScheme=t}null==u||u()},[]),g=(0,w.useCallback)(e=>{f(e);try{localStorage.setItem(i,e)}catch(e){}},[e]),y=(0,w.useCallback)(t=>{let n=mb(t);p(n),"system"===d&&r&&!e&&v("system")},[d,e]);(0,w.useEffect)(()=>{let e=window.matchMedia(ml);return e.addListener(y),y(e),()=>e.removeListener(y)},[y]),(0,w.useEffect)(()=>{let e=e=>{e.key===i&&g(e.newValue||a)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[g]),(0,w.useEffect)(()=>{v(null!=e?e:d)},[e,d]);let b=(0,w.useMemo)(()=>({theme:d,setTheme:g,forcedTheme:e,resolvedTheme:"system"===d?h:d,themes:r?[...o,"system"]:o,systemTheme:r?h:void 0}),[d,g,e,h,r,o]);return w.createElement(mc.Provider,{value:b},w.createElement(mv,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:n,storageKey:i,themes:o,defaultTheme:a,attribute:s,value:l,children:u,attrs:m,nonce:c}),u)},mv=(0,w.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:o,value:a,attrs:s,nonce:l})=>{let u="system"===o,c="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${s.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,d=i?ms.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(e,t=!1,n=!0)=>{let o=a?a[e]:e,s=t?e+"|| ''":`'${o}'`,l="";return i&&n&&!t&&ms.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||o?`c.add(${s})`:"null":o&&(l+=`d[s](n,${s})`),l},h=e?`!function(){${c}${f(e)}}()`:n?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${ml}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}${u?"":"else{"+f(o,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${d}}catch(t){}}();`;return w.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})},()=>!0),mg=(e,t)=>{let r;if(!mu){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},my=()=>{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)}},mb=e=>(e||(e=window.matchMedia(ml)),e.matches?"dark":"light"),mx="Radio",[mw,mE]=C(mx),[mj,mS]=mw(mx),mC=(0,w.forwardRef)((e,t)=>{let{__scopeRadio:r,"aria-labelledby":n,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,w.useState)(null),h=A(t,e=>f(e)),p=fo(d),m=(0,w.useRef)(!1),v=!d||!!d.closest("form");return(0,w.createElement)(mj,{scope:r,checked:o,disabled:s},(0,w.createElement)(I.button,j({type:"button",role:"radio","aria-checked":o,"aria-labelledby":n||p,"data-state":mA(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:R(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,w.createElement)(mk,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),mk=((e,t)=>{let{__scopeRadio:r,forceMount:n,...i}=e,o=mS("RadioIndicator",r);return(0,w.createElement)(B,{present:n||o.checked},(0,w.createElement)(I.span,j({"data-state":mA(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))},e=>{let{control:t,checked:r,bubbles:n=!0,...i}=e,o=(0,w.useRef)(null),a=hA(r),s=tv(t);return(0,w.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==r&&s){let t=new Event("click",{bubbles:n});s.call(e,r),e.dispatchEvent(t)}},[a,r,n]),(0,w.createElement)("input",j({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))});function mA(e){return e?"checked":"unchecked"}let mO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],mT="RadioGroup",[m_,mM]=C(mT,[cR,mE]),mN=cR(),mR=mE(),[mP,mL]=m_(mT),mD=(0,w.forwardRef)((e,t)=>{let{__scopeRadioGroup:r,name:n,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=fo(),p=mN(r),m=uG(u),[v,g]=L({prop:a,defaultProp:o,onChange:d});return(0,w.createElement)(mP,{scope:r,name:n,required:s,value:v,onValueChange:g},(0,w.createElement)(cD,j({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,w.createElement)(I.div,j({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),mI=(0,w.forwardRef)((e,t)=>{let{__scopeRadioGroup:r,disabled:n,...i}=e,o=mL("RadioGroupItem",r),a=mN(r),s=mR(r),l=(0,w.useRef)(null),u=A(t,l),c=o.value===i.value,d=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=e=>{mO.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,w.createElement)(cF,j({asChild:!0},a,{focusable:!n,active:c}),(0,w.createElement)(mC,j({disabled:n,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:R(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:R(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),mF=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)(mI,{...n,ref:t,className:(0,ey.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",r)})});function mV(e){let{className:t,tooltipClassName:r,tabIndex:n}=e,{theme:i,setTheme:o}=mf();return(0,x.jsxs)(mD,{value:i,tabIndex:n,className:(0,ey.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,x.jsx)(mF,{value:"system",children:(0,x.jsx)(ll,{className:r,sideOffset:16,content:"System",children:(0,x.jsx)(ld.$Iz,{})})}),(0,x.jsx)(mF,{value:"light",children:(0,x.jsx)(ll,{className:r,sideOffset:16,content:"Light",children:(0,x.jsx)(ld.JaG,{})})}),(0,x.jsx)(mF,{value:"dark",children:(0,x.jsx)(ll,{className:r,sideOffset:16,content:"Dark",children:(0,x.jsx)(ld.osk,{})})})]})}var mB=r(72779),mU=r.n(mB),mz=["className","innerRef"];function mH(){return(mH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,mz);return w.createElement("rect",mH({ref:r,className:mU()("visx-bar",t)},n))}var mW=["from","to","fill","className","innerRef"];function mq(){return(mq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,mW),u=r.x===i.x||r.y===i.y;return w.createElement("line",mq({ref:s,className:mU()("visx-line",a),x1:r.x,y1:r.y,x2:i.x,y2:i.y,fill:void 0===o?"transparent":o,shapeRendering:u?"crispEdges":"auto"},l))}var mZ=r(13980),mY=r.n(mZ),mX=r(47440),mK=["top","left","transform","className","children","innerRef"];function mJ(){return(mJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,mK);return w.createElement("g",mJ({ref:a,className:mU()("visx-group",i),transform:n||"translate("+(void 0===r?0:r)+", "+(void 0===t?0:t)+")"},s),o)}mQ.propTypes={top:mY().number,left:mY().number,transform:mY().string,className:mY().string,children:mY().node,innerRef:mY().oneOfType([mY().string,mY().func,mY().object])};var m0=r(19067);function m1(e,t){return"ticks"in e?e.ticks(t):e.domain().filter(function(e,r,n){return null==t||n.length<=t||r%Math.round((n.length-1)/t)==0})}function m2(e){if(("function"==typeof e||"object"==typeof e&&e)&&"valueOf"in e){var t=e.valueOf();if("number"==typeof t)return t}return e}function m4(e){return"bandwidth"in e?e.bandwidth():0}var m3=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function m6(){return(m6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,m3),g=null!=m?m:m1(n,void 0===f?10:f),y=(null!=p?p:0)+m4(n)/2,b=g.map(function(e,t){var r,o=(null!=(r=m2(n(e)))?r:0)+y;return{index:t,from:new m0.Z({x:0,y:o}),to:new m0.Z({x:i,y:o})}});return w.createElement(mQ,{className:mU()("visx-rows",c),top:void 0===t?0:t,left:void 0===r?0:r},d?d({lines:b}):b.map(function(e){var t=e.from,r=e.to,n=e.index;return w.createElement(mX.Z,m6({key:"row-line-"+n,from:t,to:r,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}m5.propTypes={tickValues:mY().array,width:mY().number.isRequired};var m8=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function m7(){return(m7=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,m8),g=null!=p?p:m1(n,void 0===d?10:d),y=(null!=h?h:0)+m4(n)/2,b=g.map(function(e,t){var r,o=(null!=(r=m2(n(e)))?r:0)+y;return{index:t,from:new m0.Z({x:o,y:0}),to:new m0.Z({x:o,y:i})}});return w.createElement(mQ,{className:mU()("visx-columns",c),top:void 0===t?0:t,left:void 0===r?0:r},m?m({lines:b}):b.map(function(e){var t=e.from,r=e.to,n=e.index;return w.createElement(mX.Z,m7({key:"column-line-"+n,from:t,to:r,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}m9.propTypes={tickValues:mY().array,height:mY().number.isRequired};var ve=Math.sqrt(50),vt=Math.sqrt(10),vr=Math.sqrt(2);function vn(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=ve?i*=10:o>=vt?i*=5:o>=vr&&(i*=2),t0))return s;do s.push(a=new Date(+r)),t(r,o),e(r);while(a=t)for(;e(t),!r(t);)t.setTime(t-1)},function(e,n){if(e>=e){if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}})},r&&(i.count=function(t,n){return vl.setTime(+t),vu.setTime(+n),e(vl),e(vu),Math.floor(r(vl,vu))},i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(n?function(t){return n(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var vd=vc(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});vd.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?vc(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):vd:null},vd.range;var vf=vc(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()});vf.range;var vh=vc(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()});vh.range;var vp=vc(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});vp.range;var vm=vc(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/vi,e=>e.getDate()-1);function vv(e){return vc(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())*6e4)/vo})}vm.range;var vg=vv(0),vy=vv(1),vb=vv(2),vx=vv(3),vw=vv(4),vE=vv(5),vj=vv(6);vg.range,vy.range,vb.range,vx.range,vw.range,vE.range,vj.range;var vS=vc(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()});vS.range;var vC=vc(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()});vC.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vc(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null},vC.range;var vk=vc(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()});vk.range;var vA=vc(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()});vA.range;var vO=vc(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/vi},function(e){return e.getUTCDate()-1});function vT(e){return vc(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/vo})}vO.range;var v_=vT(0),vM=vT(1),vN=vT(2),vR=vT(3),vP=vT(4),vL=vT(5),vD=vT(6);v_.range,vM.range,vN.range,vR.range,vP.range,vL.range,vD.range;var vI=vc(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});vI.range;var vF=vc(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});function vV(e,t,r,n,i,o){let a=[[vf,1,1e3],[vf,5,5e3],[vf,15,15e3],[vf,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,vi],[n,2,2*vi],[r,1,vo],[t,1,va],[t,3,3*va],[e,1,vs]];function s(t,r,n){let i=Math.abs(r-t)/n,o=(function(e){let t=e,r=e;function n(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;0>r(e[o],t)?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>{var n;return(n=e(t))r?1:n>=r?0:NaN}),{left:n,center:function(e,r,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=n(e,r,i,o-1);return a>i&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;r(e[o],t)>0?i=o:n=o+1}return n}}})(([,,e])=>e).right(a,i);if(o===a.length)return e.every(vn(t/vs,r/vs,n));if(0===o)return vd.every(Math.max(vn(t,r,n),1));let[s,l]=a[i/a[o-1][2]0?vc(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null},vF.range;let[vB,vU]=vV(vF,vI,v_,vO,vA,vk),[vz,vH]=vV(vC,vS,vg,vm,vp,vh);function v$(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function vW(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function vq(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var vG={"-":"",_:" ",0:"0"},vZ=/^\s*\d+/,vY=/^%/,vX=/[\\^$*+?|[\]().{}]/g;function vK(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o[e.toLowerCase(),t]))}function v1(e,t,r){var n=vZ.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function v2(e,t,r){var n=vZ.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function v4(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function v3(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function v6(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function v5(e,t,r){var n=vZ.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function v8(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function v7(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function v9(e,t,r){var n=vZ.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function ge(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function gt(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function gr(e,t,r){var n=vZ.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function gn(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function gi(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function go(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function ga(e,t,r){var n=vZ.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function gs(e,t,r){var n=vZ.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function gl(e,t,r){var n=vY.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function gu(e,t,r){var n=vZ.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function gc(e,t,r){var n=vZ.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function gd(e,t){return vK(e.getDate(),t,2)}function gf(e,t){return vK(e.getHours(),t,2)}function gh(e,t){return vK(e.getHours()%12||12,t,2)}function gp(e,t){return vK(1+vm.count(vC(e),e),t,3)}function gm(e,t){return vK(e.getMilliseconds(),t,3)}function gv(e,t){return gm(e,t)+"000"}function gg(e,t){return vK(e.getMonth()+1,t,2)}function gy(e,t){return vK(e.getMinutes(),t,2)}function gb(e,t){return vK(e.getSeconds(),t,2)}function gx(e){var t=e.getDay();return 0===t?7:t}function gw(e,t){return vK(vg.count(vC(e)-1,e),t,2)}function gE(e){var t=e.getDay();return t>=4||0===t?vw(e):vw.ceil(e)}function gj(e,t){return e=gE(e),vK(vw.count(vC(e),e)+(4===vC(e).getDay()),t,2)}function gS(e){return e.getDay()}function gC(e,t){return vK(vy.count(vC(e)-1,e),t,2)}function gk(e,t){return vK(e.getFullYear()%100,t,2)}function gA(e,t){return vK((e=gE(e)).getFullYear()%100,t,2)}function gO(e,t){return vK(e.getFullYear()%1e4,t,4)}function gT(e,t){var r=e.getDay();return vK((e=r>=4||0===r?vw(e):vw.ceil(e)).getFullYear()%1e4,t,4)}function g_(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vK(t/60|0,"0",2)+vK(t%60,"0",2)}function gM(e,t){return vK(e.getUTCDate(),t,2)}function gN(e,t){return vK(e.getUTCHours(),t,2)}function gR(e,t){return vK(e.getUTCHours()%12||12,t,2)}function gP(e,t){return vK(1+vO.count(vF(e),e),t,3)}function gL(e,t){return vK(e.getUTCMilliseconds(),t,3)}function gD(e,t){return gL(e,t)+"000"}function gI(e,t){return vK(e.getUTCMonth()+1,t,2)}function gF(e,t){return vK(e.getUTCMinutes(),t,2)}function gV(e,t){return vK(e.getUTCSeconds(),t,2)}function gB(e){var t=e.getUTCDay();return 0===t?7:t}function gU(e,t){return vK(v_.count(vF(e)-1,e),t,2)}function gz(e){var t=e.getUTCDay();return t>=4||0===t?vP(e):vP.ceil(e)}function gH(e,t){return e=gz(e),vK(vP.count(vF(e),e)+(4===vF(e).getUTCDay()),t,2)}function g$(e){return e.getUTCDay()}function gW(e,t){return vK(vM.count(vF(e)-1,e),t,2)}function gq(e,t){return vK(e.getUTCFullYear()%100,t,2)}function gG(e,t){return vK((e=gz(e)).getUTCFullYear()%100,t,2)}function gZ(e,t){return vK(e.getUTCFullYear()%1e4,t,4)}function gY(e,t){var r=e.getUTCDay();return vK((e=r>=4||0===r?vP(e):vP.ceil(e)).getUTCFullYear()%1e4,t,4)}function gX(){return"+0000"}function gK(){return"%"}function gJ(e){return+e}function gQ(e){return Math.floor(+e/1e3)}function g0(e,t){return et?1:e>=t?0:NaN}function g1(e){let t=e,r=e;function n(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;0>r(e[o],t)?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>g0(e(t),r)),{left:n,center:function(e,r,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=n(e,r,i,o-1);return a>i&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;r(e[o],t)>0?i=o:n=o+1}return n}}}wJ=(wK=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=vQ(i),c=v0(i),d=vQ(o),f=v0(o),h=vQ(a),p=v0(a),m=vQ(s),v=v0(s),g=vQ(l),y=v0(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:gd,e:gd,f:gv,g:gA,G:gT,H:gf,I:gh,j:gp,L:gm,m:gg,M:gy,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:gJ,s:gQ,S:gb,u:gx,U:gw,V:gj,w:gS,W:gC,x:null,X:null,y:gk,Y:gO,Z:g_,"%":gK},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:gM,e:gM,f:gD,g:gG,G:gY,H:gN,I:gR,j:gP,L:gL,m:gI,M:gF,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:gJ,s:gQ,S:gV,u:gB,U:gU,V:gH,w:g$,W:gW,x:null,X:null,y:gq,Y:gZ,Z:gX,"%":gK},w={a:function(e,t,r){var n=h.exec(t.slice(r));return n?(e.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=f.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=g.exec(t.slice(r));return n?(e.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return S(e,t,r,n)},d:gt,e:gt,f:gs,g:v8,G:v5,H:gn,I:gn,j:gr,L:ga,m:ge,M:gi,p:function(e,t,r){var n=u.exec(t.slice(r));return n?(e.p=c.get(n[0].toLowerCase()),r+n[0].length):-1},q:v9,Q:gu,s:gc,S:go,u:v2,U:v4,V:v3,w:v1,W:v6,x:function(e,t,n){return S(e,r,t,n)},X:function(e,t,r){return S(e,n,t,r)},y:v8,Y:v5,Z:v7,"%":gl};function E(e,t){return function(r){var n,i,o,a=[],s=-1,l=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++s53)return null;"w"in o||(o.w=1),"Z"in o?(n=(i=(n=vW(vq(o.y,0,1))).getUTCDay())>4||0===i?vM.ceil(n):vM(n),n=vO.offset(n,(o.V-1)*7),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(n=(i=(n=v$(vq(o.y,0,1))).getDay())>4||0===i?vy.ceil(n):vy(n),n=vm.offset(n,(o.V-1)*7),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?vW(vq(o.y,0,1)).getUTCDay():v$(vq(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,vW(o)):v$(o)}}function S(e,t,r,n){for(var i,o,a=0,s=t.length,l=r.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=w[(i=t.charAt(a++))in vG?t.charAt(a++):i])||(n=o(e,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return b.x=E(r,b),b.X=E(n,b),b.c=E(t,b),x.x=E(r,x),x.X=E(n,x),x.c=E(t,x),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=j(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=j(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,wK.parse,wK.utcFormat,wK.utcParse;let g2=g1(g0),g4=g2.right;function g3(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function g6(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function g5(){}g2.left,g1(function(e){return null===e?NaN:+e}).center;var g8="\\s*([+-]?\\d+)\\s*",g7="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",g9="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ye=/^#([0-9a-f]{3,8})$/,yt=RegExp("^rgb\\("+[g8,g8,g8]+"\\)$"),yr=RegExp("^rgb\\("+[g9,g9,g9]+"\\)$"),yn=RegExp("^rgba\\("+[g8,g8,g8,g7]+"\\)$"),yi=RegExp("^rgba\\("+[g9,g9,g9,g7]+"\\)$"),yo=RegExp("^hsl\\("+[g7,g9,g9]+"\\)$"),ya=RegExp("^hsla\\("+[g7,g9,g9,g7]+"\\)$"),ys={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 yl(){return this.rgb().formatHex()}function yu(){return this.rgb().formatRgb()}function yc(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ye.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?yd(t):3===r?new ym(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?yf(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?yf(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=yt.exec(e))?new ym(t[1],t[2],t[3],1):(t=yr.exec(e))?new ym(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=yn.exec(e))?yf(t[1],t[2],t[3],t[4]):(t=yi.exec(e))?yf(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=yo.exec(e))?yb(t[1],t[2]/100,t[3]/100,1):(t=ya.exec(e))?yb(t[1],t[2]/100,t[3]/100,t[4]):ys.hasOwnProperty(e)?yd(ys[e]):"transparent"===e?new ym(NaN,NaN,NaN,0):null}function yd(e){return new ym(e>>16&255,e>>8&255,255&e,1)}function yf(e,t,r,n){return n<=0&&(e=t=r=NaN),new ym(e,t,r,n)}function yh(e){return(e instanceof g5||(e=yc(e)),e)?(e=e.rgb(),new ym(e.r,e.g,e.b,e.opacity)):new ym}function yp(e,t,r,n){return 1==arguments.length?yh(e):new ym(e,t,r,null==n?1:n)}function ym(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function yv(){return"#"+yy(this.r)+yy(this.g)+yy(this.b)}function yg(){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 yy(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function yb(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new yE(e,t,r,n)}function yx(e){if(e instanceof yE)return new yE(e.h,e.s,e.l,e.opacity);if(e instanceof g5||(e=yc(e)),!e)return new yE;if(e instanceof yE)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+(r0&&l<1?0:a,new yE(a,s,l,e.opacity)}function yw(e,t,r,n){return 1==arguments.length?yx(e):new yE(e,t,r,null==n?1:n)}function yE(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function yj(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function yS(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}function yC(e){return function(){return e}}function yk(e,t){return function(r){return e+r*t}}function yA(e,t){var r=t-e;return r?yk(e,r>180||r<-180?r-360*Math.round(r/360):r):yC(isNaN(e)?t:e)}function yO(e,t){var r=t-e;return r?yk(e,r):yC(isNaN(e)?t:e)}g3(g5,yc,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:yl,formatHex:yl,formatHsl:function(){return yx(this).formatHsl()},formatRgb:yu,toString:yu}),g3(ym,yp,g6(g5,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ym(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ym(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:yv,formatHex:yv,formatRgb:yg,toString:yg})),g3(yE,yw,g6(g5,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new yE(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new yE(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new ym(yj(e>=240?e-240:e+120,i,n),yj(e,i,n),yj(e<120?e+240:e-120,i,n),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+")")}}));var yT=function e(t){var r,n=1==(r=+(r=t))?yO:function(e,t){var n,i,o;return t-e?(n=e,i=t,n=Math.pow(n,o=r),i=Math.pow(i,o)-n,o=1/o,function(e){return Math.pow(n+e*i,o)}):yC(isNaN(e)?t:e)};function i(e,t){var r=n((e=yp(e)).r,(t=yp(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=yO(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function y_(e){return function(t){var r,n,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(r=0;r=1?(r=1,t-1):Math.floor(r*t),i=e[n],o=e[n+1],a=n>0?e[n-1]:2*i-o,s=ns&&(a=t.slice(s,a),u[l]?u[l]+=a:u[++l]=a),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:yM(i,o)})),s=yR.lastIndex;return st&&(r=e,e=t,t=r),u=function(r){return Math.max(e,Math.min(t,r))}),n=l>2?yB:yV,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?r:(i||(i=n(a.map(e),s,l)))(e(u(t)))}return d.invert=function(r){return u(t((o||(o=n(s,a.map(e),yM)))(r)))},d.domain=function(e){return arguments.length?(a=Array.from(e,yL),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=yP,c()},d.clamp=function(e){return arguments.length?(u=!!e||yI,c()):u!==yI},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(r=e,d):r},function(r,n){return e=r,t=n,c()}})()(yI,yI)}function yH(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function y$(e){return new Date(e)}function yW(e){return e instanceof Date?+e:+new Date(+e)}var yq=Math.PI/180,yG=180/Math.PI,yZ=4/29,yY=6/29,yX=3*(6/29)*(6/29),yK=6/29*(6/29)*(6/29);function yJ(e){if(e instanceof y0)return new y0(e.l,e.a,e.b,e.opacity);if(e instanceof y5)return y8(e);e instanceof ym||(e=yh(e));var t,r,n=y3(e.r),i=y3(e.g),o=y3(e.b),a=y1((.2225045*n+.7168786*i+.0606169*o)/1);return n===i&&i===o?t=r=a:(t=y1((.4360747*n+.3850649*i+.1430804*o)/.96422),r=y1((.0139322*n+.0971045*i+.7141733*o)/.82521)),new y0(116*a-16,500*(t-a),200*(a-r),e.opacity)}function yQ(e,t,r,n){return 1==arguments.length?yJ(e):new y0(e,t,r,null==n?1:n)}function y0(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function y1(e){return e>yK?Math.pow(e,1/3):e/yX+yZ}function y2(e){return e>yY?e*e*e:yX*(e-yZ)}function y4(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function y3(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function y6(e,t,r,n){return 1==arguments.length?function(e){if(e instanceof y5)return new y5(e.h,e.c,e.l,e.opacity);if(e instanceof y0||(e=yJ(e)),0===e.a&&0===e.b)return new y5(NaN,0=0?(o>=bg?10:o>=by?5:o>=bb?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=bg?10:o>=by?5:o>=bb?2:1)}var bw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bE(e){var t;if(!(t=bw.exec(e)))throw Error("invalid format: "+e);return new bj({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 bj(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+""}function bS(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function bC(e){return(e=bS(Math.abs(e)))?e[1]:NaN}function bk(e,t){var r=bS(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}bE.prototype=bj.prototype,bj.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};var bA={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},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)=>bk(100*e,t),r:bk,s:function(e,t){var r=bS(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(wQ=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+Array(1-o).join("0")+bS(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function bO(e){return e}var bT=Array.prototype.map,b_=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];w1=(w0=function(e){var t,r,n,i=void 0===e.grouping||void 0===e.thousands?bO:(t=bT.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[a=(a+1)%t.length];return o.reverse().join(r)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?bO:(n=bT.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return n[+e]})}),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=bE(e)).fill,r=e.align,n=e.sign,f=e.symbol,h=e.zero,p=e.width,m=e.comma,v=e.precision,g=e.trim,y=e.type;"n"===y?(m=!0,y="g"):bA[y]||(void 0===v&&(v=12),g=!0,y="g"),(h||"0"===t&&"="===r)&&(h=!0,t="0",r="=");var b="$"===f?o:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===f?a:/[%p]/.test(y)?u:"",w=bA[y],E=/[defgprs%]/.test(y);function j(e){var o,a,u,f=b,j=x;if("c"===y)j=w(e)+j,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:w(Math.abs(e),v),g&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==n&&(S=!1),f=(S?"("===n?n:c:"-"===n||"("===n?"":n)+f,j=("s"===y?b_[8+wQ/3]:"")+j+(S&&"("===n?")":""),E){for(o=-1,a=e.length;++o(u=e.charCodeAt(o))||u>57){j=(46===u?s+e.slice(o+1):e.slice(o))+j,e=e.slice(0,o);break}}}m&&!h&&(e=i(e,1/0));var C=f.length+e.length+j.length,k=C>1)+f+e+j+k.slice(C);break;default:e=k+f+e+j}return l(e)}return v=void 0===v?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return e+""},j}return{format:f,formatPrefix:function(e,t){var r=f(((e=bE(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(bC(t)/3))),i=Math.pow(10,-n),o=b_[8+n/3];return function(e){return r(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,w2=w0.formatPrefix;var bM=bp("domain","range","reverse","clamp","interpolate","nice","round","zero");function bN(e){return bM(function e(){var t,r=yz();return r.copy=function(){return yU(r,e())},yH.apply(r,arguments),t=r.domain,r.ticks=function(e){var r=t();return function(e,t,r){var n,i,o,a,s=-1;if(r=+r,(e=+e)==(t=+t)&&r>0)return[e];if((n=t0){let r=Math.round(e/a),n=Math.round(t/a);for(r*at&&--n,o=Array(i=n-r+1);++st&&--n,o=Array(i=n-r+1);++s=bg?a*=10:s>=by?a*=5:s>=bb&&(a*=2),t0;){if((i=bx(l,u,e))===n)return o[a]=l,o[s]=u,t(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else if(i<0)l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i;else break;n=i}return r},r}(),e)}function bR(e){var t=e.id,r=e.width,n=e.height,i=e.children;return w.createElement("defs",null,w.createElement("pattern",{id:t,width:r,height:n,patternUnits:"userSpaceOnUse"},i))}bR.propTypes={id:mY().string.isRequired,width:mY().number.isRequired,height:mY().number.isRequired,children:mY().node.isRequired};var bP={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function bL(e){var t=e.id,r=e.width,n=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 w.createElement(bR,{id:t,width:r,height:n},!!h&&w.createElement("rect",{className:mU()("visx-pattern-line-background"),width:r,height:n,fill:h}),m.map(function(e,r){return w.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+r,className:mU()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case bP.horizontal:return"M 0,"+t/2+" l "+t+",0";case bP.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 bP.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 bP.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:n}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}bL.propTypes={id:mY().string.isRequired,width:mY().number.isRequired,height:mY().number.isRequired,className:mY().string,background:mY().string,stroke:mY().string,strokeWidth:mY().oneOfType([mY().number,mY().string]),strokeDasharray:mY().oneOfType([mY().string,mY().number]),strokeLinecap:mY().oneOf(["square","butt","round","inherit"]),shapeRendering:mY().oneOfType([mY().string,mY().number]),orientation:mY().array};var bD=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function bI(){return(bI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,bD);return w.createElement("div",bI({ref:t,className:mU()("visx-tooltip",r),style:bI({top:null==n||null==l?n:n+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function bB(){return(bB=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,bW),g=!1,y=!1;if(u&&l){var b=void 0===n?0:n,x=void 0===f?0:f;if(l.width){var E=b+o+u.width-l.width,j=u.width-b-o;g=E>0&&E>j}else{var S=b+o+u.width-window.innerWidth,C=u.width-b-o;g=S>0&&S>C}if(l.height){var k=x+s+u.height-l.height,A=u.height-x-s;y=k>0&&k>A}else y=x+s+u.height>window.innerHeight;b=g?b-u.width-o:b+o,x=y?x-u.height-s:x+s,t="translate("+(b=Math.round(b))+"px, "+(x=Math.round(x))+"px)"}return w.createElement(bV,bq({ref:m,style:bq({left:0,top:0,transform:t},!p&&d)},v),w.createElement(b$,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},r))}bG.propTypes={nodeRef:mY().oneOfType([mY().string,mY().func,mY().object])};var bZ=((wW=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},r.nodeRef=w.createRef(),r.getRects=r.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,bU(t,e);var r=t.prototype;return r.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:D.findDOMNode(this),this.setState(function(){return t.getRects()})},r.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():bz,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():bz}},r.render=function(){return w.createElement(bG,bB({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(w.PureComponent)).displayName="withBoundingRects("+(bG.displayName||"")+")",wW),bY=r(99985);function bX(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var r=e.range(),n=r[0],i=r[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-n)/Math.abs(i-n);if(a>0)for(;t>n+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-n),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return b6({},t,{isBrushing:!0,extent:b6({},t.extent,{x0:n+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,r=e.updateBrush,n=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||r(function(e){var t=b6({},e,{isBrushing:!1,start:b6({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:b6({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return n&&n(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,b5(t,e),t.prototype.render=function(){var e=this.props,t=e.width,r=e.height,n=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 w.createElement(bY.Z,{width:t,height:r,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 w.createElement("g",null,h&&w.createElement("rect",{width:n,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:b8}),w.createElement("rect",b6({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:r,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}(w.Component);function b9(){return(b9=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-r),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-n);return b9({},e,{isBrushing:!0,extent:b9({},e.extent,{x0:r+s,y0:n+c,x1:o+s,y1:a+c})})}),"select"===i&&r.updateBrush(function(e){var t=e.start,n=t.x,i=t.y,o={x:Math.min(Math.max(n+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=r.getExtent(s,o);return b9({},e,{end:o,extent:a})})}},r.getExtent=function(e,t){var n=r.props,i=n.brushDirection,o=n.width,a=n.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)}},r.handleDragStart=function(e){var t=r.props,n=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=b9({},c);n&&n(c),r.updateBrush(function(t){return b9({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?bJ(e.event):void 0})})},r.handleBrushStart=function(e){var t=r.props,n=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(n){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;n({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},r.handleDragMove=function(e){var t=r.props,n=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-n-s,y:(e.y||0)+e.dy-i-l};r.updateBrush(function(e){var t=e.start,n=r.getExtent(t,u);return b9({},e,{end:u,extent:n})})}},r.handleDragEnd=function(){var e=r.props,t=e.onBrushEnd,n=e.resetOnEnd;e.useWindowMoveEvents||r.updateBrush(function(e){var i=e.extent,o=b9({},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),n&&r.reset(),o})},r.getBrushWidth=function(){var e=r.state.extent,t=e.x0,n=e.x1;return Math.max(Math.max(t,n)-Math.min(t,n),0)},r.getBrushHeight=function(){var e=r.state.extent,t=e.y1,n=e.y0;return Math.max(Math.max(n,t)-Math.min(n,t),0)},r.handles=function(){var e=r.props.handleSize,t=r.state.extent,n=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=r.getBrushWidth(),u=r.getBrushHeight();return{top:{x:n-s,y:o-s,height:e,width:l+e},bottom:{x:n-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:n-s,y:o-s,height:u+e,width:e}}},r.corners=function(){var e=r.props.handleSize,t=r.state.extent,n=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(n,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(n,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(n,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(n,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},r.updateBrush=function(e){var t=r.props.onChange;r.setState(e,function(){t&&t(r.state)})},r.reset=function(){var e=r.props,t=e.width,n=e.height;r.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:n},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},r.handleBrushingTypeChange=function(e,t){r.updateBrush(function(r){var n=b9({},r,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(n.brushPageOffset=t),n})};var r,n=t.initialBrushPosition,i=n?r.getExtent(n.start,n.end):{x0:-1,x1:-1,y0:-1,y1:-1};return r.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:r.props.width,y0:0,y1:r.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,xe(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(r){var n=r.start,i=r.end,o=r.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;n={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(n,i)}return{start:n,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},r.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},r.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},r.render=function(){var e=this,t=this.state,r=t.start,n=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,E=this.handles(),j=this.corners(),S=this.getBrushWidth(),C=this.getBrushHeight(),k=new Set(p);return w.createElement(mQ,{className:"visx-brush",top:o,left:a},w.createElement(bY.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 r=t.dragStart,n=t.isDragging,i=t.dragMove,o=t.dragEnd;return w.createElement(m$,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var r=e.mouseUpTime-e.mouseDownTime;h&&r=0||(i[r]=e[r]);return i}(e,xs),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"),w.createElement("defs",null,w.createElement("linearGradient",xl({id:r,x1:g,y1:b,x2:y,y2:x,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&w.createElement("stop",{offset:void 0===u?"0%":u,stopColor:n,stopOpacity:void 0===c?1:c}),!t&&w.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}function xc(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function xd(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function xf(){return 0}function xh(e,t){let r,n;if(void 0===t)for(let t of e)null!=t&&(void 0===r?t>=t&&(r=n=t):(r>t&&(r=t),n=o&&(r=n=o):(r>o&&(r=o),n=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r=i)&&(r=i)}return r}xu.propTypes={id:mY().string.isRequired,from:mY().string,to:mY().string,x1:mY().oneOfType([mY().string,mY().number]),x2:mY().oneOfType([mY().string,mY().number]),y1:mY().oneOfType([mY().string,mY().number]),y2:mY().oneOfType([mY().string,mY().number]),fromOffset:mY().oneOfType([mY().string,mY().number]),fromOpacity:mY().oneOfType([mY().string,mY().number]),toOffset:mY().oneOfType([mY().string,mY().number]),toOpacity:mY().oneOfType([mY().string,mY().number]),rotate:mY().oneOfType([mY().string,mY().number]),transform:mY().string,children:mY().node,vertical:mY().bool};var xm=r(12436),xv=r.n(xm),xg=Math.PI,xy=2*xg,xb=xy-1e-6;function xx(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function xw(){return new xx}function xE(e){return function(){return e}}function xj(e){this._context=e}function xS(e){return new xj(e)}function xC(e){return e[0]}function xk(e){return e[1]}xx.prototype=xw.prototype={constructor:xx,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(e,t,r,n,i,o){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,r,n,i){e=+e,t=+t,r=+r,n=+n,i=+i;var o=this._x1,a=this._y1,s=r-e,l=n-t,u=o-e,c=a-t,d=u*u+c*c;if(i<0)throw Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>1e-6){if(Math.abs(c*s-l*u)>1e-6&&i){var f=r-o,h=n-a,p=s*s+l*l,m=Math.sqrt(p),v=Math.sqrt(d),g=i*Math.tan((xg-Math.acos((p+d-(f*f+h*h))/(2*m*v)))/2),y=g/v,b=g/m;Math.abs(y-1)>1e-6&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>u*h)+","+(this._x1=e+b*s)+","+(this._y1=t+b*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,r,n,i,o){e=+e,t=+t,r=+r,o=!!o;var a=r*Math.cos(n),s=r*Math.sin(n),l=e+a,u=t+s,c=1^o,d=o?n-i:i-n;if(r<0)throw Error("negative radius: "+r);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),r&&(d<0&&(d=d%xy+xy),d>xb?this._+="A"+r+","+r+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+r+","+r+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>1e-6&&(this._+="A"+r+","+r+",0,"+ +(d>=xg)+","+c+","+(this._x1=e+r*Math.cos(i))+","+(this._y1=t+r*Math.sin(i))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}},xj.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)}}};var xA=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function xO(){return(xO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,xA),A=(r=(t={x:d,x0:f,x1:h,defined:void 0===x?function(){return!0}:x,curve:j}).x,n=t.x0,i=t.x1,o=t.y,a=t.y0,s=t.y1,l=t.defined,u=t.curve,c=function(){var e=xC,t=null,r=xE(0),n=xk,i=xE(!0),o=null,a=xS,s=null;function l(l){var u,c,d,f,h,p=l.length,m=!1,v=Array(p),g=Array(p);for(null==o&&(s=a(h=xw())),u=0;u<=p;++u){if(!(u=c;--d)s.point(v[d],g[d]);s.lineEnd(),s.areaEnd()}}m&&(v[u]=+e(f,u,l),g[u]=+r(f,u,l),s.point(t?+t(f,u,l):v[u],n?+n(f,u,l):g[u]))}if(h)return s=null,h+""||null}function u(){return(function(){var e=xC,t=xk,r=xE(!0),n=null,i=xS,o=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==n&&(o=i(u=xw())),s=0;s<=c;++s)!(s=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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}},xL.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:xP(this,this._t0,xR(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=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,xP(this,xR(this,r=xN(this,e,t)),r);break;default:xP(this,this._t0,r=xN(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},((function(e){this._context=new xD(e)}).prototype=Object.create(xL.prototype)).point=function(e,t){xL.prototype.point.call(this,t,e)},xD.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,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};var xF=["id","markerWidth","markerHeight","markerUnits","children"];function xV(){return(xV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,xF);return w.createElement("defs",null,w.createElement("marker",xV({id:t,markerWidth:void 0===r?3:r,markerHeight:void 0===n?3:n,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}xB.propTypes={id:mY().string.isRequired,size:mY().number,markerWidth:mY().oneOfType([mY().string,mY().number]),markerHeight:mY().oneOfType([mY().string,mY().number]),markerUnits:mY().string,refX:mY().oneOfType([mY().string,mY().number]),refY:mY().oneOfType([mY().string,mY().number]),strokeWidth:mY().number,children:mY().node.isRequired};var xU=["id","size","strokeWidth"];function xz(){return(xz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,xU),s=2*n+o,l=s/2;return w.createElement(xB,xz({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),w.createElement("circle",{r:n,cx:l,cy:l}))}var x$=r(32718),xW=r.n(x$),xq=r(30733),xG=r.n(xq),xZ="__react_svg_text_measurement_id",xY=xG()(function(e,t){try{var r=document.getElementById(xZ);if(!r){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("aria-hidden","true"),n.style.width="0",n.style.height="0",n.style.position="absolute",n.style.top="-100%",n.style.left="-100%",(r=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",xZ),n.appendChild(r),document.body.appendChild(n)}return Object.assign(r.style,t),r.textContent=e,r.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)}),xX=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function xK(e){return"number"==typeof e}function xJ(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}var xQ=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function x0(){return(x0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,xQ)),P=R.x,L=void 0===P?0:P,D=R.fontSize,I=(r=void 0===(t=e.verticalAnchor)?"end":t,i=void 0!==(n=e.scaleToFit)&&n,o=e.angle,a=e.width,l=void 0===(s=e.lineHeight)?"1em":s,c=void 0===(u=e.capHeight)?"0.71em":u,d=e.children,f=e.style,m=void 0===(p=(h=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,xX)).x)?0:p,g=void 0===(v=h.y)?0:v,y=!xJ(m)||!xJ(g),x=(b=(0,w.useMemo)(function(){return{wordsWithWidth:(null==d?[]:d.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:xY(e,f)||0}}),spaceWidth:xY("\xa0",f)||0}},[d,f])).wordsWithWidth,E=b.spaceWidth,j=(0,w.useMemo)(function(){return y?[]:a||i?x.reduce(function(e,t){var r=t.word,n=t.wordWidth,o=e[e.length-1];return o&&(null==a||i||(o.width||0)+n+E0){var t=j[0].width||1,r="shrink-only"===i?Math.min(a/t,1):a/t,n=m-r*m,s=g-r*g;e.push("matrix("+r+", 0, 0, "+r+", "+n+", "+s+")")}return o&&e.push("rotate("+o+", "+m+", "+g+")"),e.length>0?e.join(" "):""},[y,m,g,a,i,j,o]),{wordsByLines:j,startDy:S,transform:C}),F=I.wordsByLines,V=I.startDy,B=I.transform;return w.createElement("svg",{ref:T,x:void 0===k?0:k,y:void 0===A?0:A,fontSize:D,style:x1},F.length>0?w.createElement("text",x0({ref:_,transform:B},R,{textAnchor:void 0===O?"start":O}),F.map(function(e,t){return w.createElement("tspan",{key:t,x:L,dy:0===t?V:N},e.words.join(" "))})):null)}var x4={top:"top",left:"left",bottom:"bottom"};function x3(){return(x3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,wr),S=null!=g?g:"tickFormat"in v?v.tickFormat():x9,C=h===x4.left,k=h===x4.top,A=k||h===x4.bottom,O=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var r=e.bandwidth();return"center"===t&&(r/=2),e.round()&&(r=Math.round(r)),function(t){var n=e(t);return"number"==typeof n?n+r:n}}return e}(v),T=C||k?-1:1,_=v.range(),M=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:wt({start:0,end:0},t)),N=we({x:Number(_[0])+.5-M.start,y:0},A),R=we({x:Number(_[_.length-1])+.5+M.end,y:0},A),P=(null!=x?x:m1(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),L=P.map(function(e){var t=e.value,r=e.index,n=m2(O(t));return{value:t,index:r,from:we({x:n,y:0},A),to:we({x:n,y:b*T},A),formattedValue:S(t,r,P)}});return w.createElement(mQ,{className:mU()("visx-axis",i),top:void 0===E?0:E,left:void 0===u?0:u},n(wn({},j,{axisFromPoint:N,axisToPoint:R,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:A,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:S,tickLength:b,tickPosition:O,tickSign:T,ticks:L})))}var wo=["axisClassName","labelOffset","tickLabelProps","tickLength"];function wa(){return(wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,wo);return w.createElement(wi,wa({axisClassName:mU()("visx-axis-bottom",t),labelOffset:void 0===r?8:r,orientation:x4.bottom,tickLabelProps:void 0===n?ws:n,tickLength:void 0===i?8:i},o))}var wu=["axisClassName","labelOffset","tickLabelProps","tickLength"];function wc(){return(wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,wu);return w.createElement(wi,wc({axisClassName:mU()("visx-axis-left",t),labelOffset:void 0===r?36:r,orientation:x4.left,tickLabelProps:void 0===n?wd:n,tickLength:void 0===i?8:i},o))}let wh=e=>new Date((null==e?void 0:e.timestamp)||0),wp=e=>(null==e?void 0:e.value)||0,wm="var(--colors-hiContrast)",wv={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:wm},wg={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:wm};function wy(e){let{data:t,gradientColor:r,width:n,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 n<10?null:(0,x.jsxs)(mQ,{left:d||o.left,top:c||o.top,children:[(0,x.jsx)(xH,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,x.jsx)(xu,{id:"gradient",from:r,fromOpacity:1,to:r,toOpacity:.2}),(0,x.jsx)(xT,{data:t,x:e=>a(wh(e))||0,y:e=>s(wp(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?xM:xI}),!l&&(0,x.jsx)(wl,{top:i,scale:a,numTicks:n>520?10:5,stroke:wm,tickStroke:wm,tickLabelProps:()=>wv}),!u&&(0,x.jsx)(wf,{scale:s,numTicks:5,stroke:wm,tickStroke:wm,tickLabelProps:()=>wg}),h]})}var wb=r(6692);let wx={inherit:wb.inherit,current:wb.current,transparent:wb.transparent,black:wb.black,white:wb.white,slate:wb.slate,zinc:wb.zinc,neutral:wb.neutral,stone:wb.stone,red:wb.red,orange:wb.orange,amber:wb.amber,yellow:wb.yellow,lime:wb.lime,green:wb.green,emerald:wb.emerald,teal:wb.teal,cyan:wb.cyan,sky:wb.sky,blue:wb.blue,indigo:wb.indigo,violet:wb.violet,purple:wb.purple,fuchsia:wb.fuchsia,pink:wb.pink,rose:wb.rose,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 ww=r(96206);let wE={top:10,bottom:15,left:10,right:10},wj="brush_pattern",wS="brush_gradient",wC=xv()(e=>e(),15),wk=function(e){let t,r,n;function i(e,n,i=0,o=e.length){if(i>>1;0>r(e[t],n)?i=t+1:o=t}while(ixc(e(t),r),n=(t,r)=>e(t)-r):(t=e===xc||e===xd?e:xf,r=e,n=e),{left:i,center:function(e,t,r=0,o=e.length){let a=i(e,t,r,o-1);return a>r&&n(e[a-1],t)>-n(e[a],t)?a-1:a},right:function(e,n,i=0,o=e.length){if(i>>1;0>=r(e[t],n)?i=t+1:o=t}while(inew Date((null==e?void 0:e.timestamp)||0)).left;void 0===wq&&(wq={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===wG&&(wG=function(e,t){return w.createElement("div",t,e)}),r(3440);var wA={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"]},wO=wA.gray[7];function wT(){return(wT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:r}=e;return(0,x.jsxs)("div",{ref:t,className:(0,ey.cx)("flex gap-1 items-center",r),children:[(0,x.jsx)(wR,{}),(0,x.jsx)(wR,{}),(0,x.jsx)(wR,{})]})});function wR(){return(0,x.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"})}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function wP(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function wL(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||El,Ec=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ed=/\/\*[^]*?\*\/|\s\s+|\n/g,Ef=(e,t)=>{let r="",n="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?r=o+" "+a+";":n+="f"==o[1]?Ef(a,o):o+"{"+Ef(a,"k"==o[1]?"":t)+"}":"object"==typeof a?n+=Ef(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+=Ef.p?Ef.p(o,a):o+":"+a+";")}return r+(t&&i?t+"{"+i+"}":i)+n},Eh={},Ep=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+Ep(e[r]);return t}return e},Em=(e,t,r,n,i)=>{var o;let a=Ep(e),s=Eh[a]||(Eh[a]=(e=>{let t=0,r=11;for(;t>>0;return"go"+r})(a));if(!Eh[s]){let t=a!==e?e:(e=>{let t,r=[{}];for(;t=Ec.exec(e.replace(Ed,""));)t[4]?r.shift():t[3]?r.unshift(r[0][t[3]]=r[0][t[3]]||{}):r[0][t[1]]=t[2];return r[0]})(e);Eh[s]=Ef(i?{["@keyframes "+s]:t}:t,r?"":"."+s)}return o=Eh[s],-1==t.data.indexOf(o)&&(t.data=n?o+t.data:t.data+o),s},Ev=(e,t,r)=>e.reduce((e,n,i)=>{let o=t[i];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":Ef(e,""):!1===e?"":e}return e+n+(null==o?"":o)},"");function Eg(e){let t=this||{},r=e.call?e(t.p):e;return Em(r.unshift?r.raw?Ev(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,Eu(t.target),t.g,t.o,t.k)}Eg.bind({g:1});let Ey,Eb,Ex,Ew=Eg.bind({k:1});function EE(e,t){let r=this||{};return function(){let n=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;r.p=Object.assign({theme:Eb&&Eb()},s),r.o=/ *go\d+/.test(l),s.className=Eg.apply(r,n)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),Ex&&u[0]&&Ex(s),Ey(u,s)}return t?t(i):i}}function Ej(){return(Ej=Object.assign||function(e){for(var t=1;t-1&&EN.splice(e,1)}},[r]);var i=r.toasts.map(function(t){var r,n,i;return Ej({},e,e[t.type],t,{duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==(n=e)?void 0:n.duration)||EL[t.type],style:Ej({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return Ej({},r,{toasts:i})},EI=function(e){return function(t,r){var n,i=(void 0===(n=e)&&(n="blank"),Ej({createdAt:Date.now(),visible:!0,type:n,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},r,{id:(null==r?void 0:r.id)||Ek()}));return EP({type:g.UPSERT_TOAST,toast:i}),i.id}},EF=function(e,t){return EI("blank")(e,t)};EF.error=EI("error"),EF.success=EI("success"),EF.loading=EI("loading"),EF.custom=EI("custom"),EF.dismiss=function(e){EP({type:g.DISMISS_TOAST,toastId:e})},EF.remove=function(e){return EP({type:g.REMOVE_TOAST,toastId:e})},EF.promise=function(e,t,r){var n=EF.loading(t.loading,Ej({},r,null==r?void 0:r.loading));return e.then(function(e){return EF.success(EC(t.success,e),Ej({id:n},r,null==r?void 0:r.success)),e}).catch(function(e){EF.error(EC(t.error,e),Ej({id:n},r,null==r?void 0:r.error))}),e};var EV=function(e){var t=ED(e),r=t.toasts,n=t.pausedAt;(0,w.useEffect)(function(){if(!n){var e=Date.now(),t=r.map(function(t){if(t.duration!==1/0){var r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(r<0){t.visible&&EF.dismiss(t.id);return}return setTimeout(function(){return EF.dismiss(t.id)},r)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[r,n]);var i=(0,w.useMemo)(function(){return{startPause:function(){EP({type:g.START_PAUSE,time:Date.now()})},endPause:function(){n&&EP({type:g.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return EP({type:g.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var n,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=r.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return ju=function(){return e},e}d=w.createElement,Ef.p=void 0,Ey=d,Eb=void 0,Ex=void 0;var jc=function(e,t){var r=e.includes("top"),n=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return Ej({left:0,right:0,display:"flex",position:"absolute",transition:EA()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(r?1:-1)+"px)"},r?{top:0}:{bottom:0},n)},jd=Eg(ju()),jf=function(e){var t=e.reverseOrder,r=e.position,n=void 0===r?"top-center":r,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=EV(i),c=u.toasts,d=u.handlers;return(0,w.createElement)("div",{style:Ej({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 r,i=e.position||n,s=jc(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:n})),l=e.height?void 0:(r=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){r(e.getBoundingClientRect())})});return(0,w.createElement)("div",{ref:l,className:e.visible?jd:"",key:e.id,style:s},"custom"===e.type?EC(e.message,e):a?a(e):(0,w.createElement)(jl,{toast:e,position:i}))}))};let jh=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};EF((0,x.jsx)(t8,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),jv(t))},jp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};EF.success((0,x.jsx)(t8,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),jv(t))},jm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};EF.error((0,x.jsx)(t8,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),jv(t))};function jv(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,ey.cx)(t9(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(ld.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(ld.Jsc,{className:"w-5 text-red-600"})})},...t}}function jg(){return(0,x.jsx)(jf,{toastOptions:jv()})}let jy=(e,t)=>{let r=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";jh(r),function(e){wP(this,void 0,void 0,function(){return wL(this,function(t){var r;if(w9)return wD("Using `navigator.clipboard.writeText()`."),[2,w9(e)];if(!function(e){return wP(this,void 0,void 0,function(){var t;return wL(this,function(r){var n,i,o,a,s,l,u,c;if(t="text/plain"in e,"undefined"==typeof ClipboardEvent&&void 0!==Et.clipboardData&&void 0!==Et.clipboardData.setData){if(!t)throw Error("No `text/plain` value was specified.");if(n=e["text/plain"],Et.clipboardData.setData("Text",n))return[2,!0];throw Error("Copying failed, possibly because the user rejected it.")}return Ei(e)?(wD("regular execCopy worked"),[2,!0]):navigator.userAgent.indexOf("Edge")>-1?(wD('UA "Edge" => assuming success'),[2,!0]):Eo(document.body,e)?(wD("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=Eo(i,e),document.body.removeChild(i),o)?(wD("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],wD("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(wD("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),Ea(u),c=document.execCommand("copy"),Es(),document.body.removeChild(s),c)?(wD("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((r={})["text/plain"]=e,r)))throw Error("writeText() failed");return[2]})})}(e)};function jb(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function jx(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^key:/,"")}let jw={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",ip:"IP"},jE={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 jj(e){return e?jw[e]:void 0}function jS(e){let{value:t,displayValue:r,type:n,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d}=e,f=i||jj(n),h=a||("ip"===n?20:12),p=jx(t),m=r||p,v="".concat(null==m?void 0:m.slice(0,h)).concat(((null==m?void 0:m.length)||0)>h?"...":"");return(0,x.jsxs)("div",{className:(0,ey.cx)("flex items-center",d),children:[o?(0,x.jsx)(fc,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}):(0,x.jsx)(t8,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}),(0,x.jsx)("div",{className:"ml-1 flex items-center",children:(0,x.jsx)(lc,{variant:"ghost",size:"none",onClick:e=>{e.stopPropagation(),jy(p,f)},children:(0,x.jsx)(t8,{color:c,children:(0,x.jsx)(ld.olJ,{className:"10"===s?"scale-75":"scale-90"})})})})]})}function jC(e){let{value:t,size:r,scaleSize:n,tooltip:i="",variant:o="change"}=e,a=(0,ww.yF)(String(t),{units:"SF"});return(0,x.jsx)(ll,{content:(i?"".concat(i," "):"")+a,children:(0,x.jsxs)(t8,{size:r,scaleSize:n,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function jk(e){let{value:t,size:r,scaleSize:n,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,x.jsxs)(t8,{size:r,scaleSize:n,weight:"medium",font:"mono",ellipsis:!0,color:h,children:["change"===o?"".concat(f).concat((0,ww.Vz)(t.absoluteValue(),{fixed:s,dynamicUnits:l})):(0,ww.Vz)(t,{fixed:s,dynamicUnits:l,hastingUnits:u}),(0,x.jsx)(t8,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:c?"".concat(c):""})]});return d?(0,x.jsx)(ll,{content:(i?"".concat(i," "):"")+(0,ww.Vz)(t,{fixed:16,dynamicUnits:!1}),children:p}):p}function jA(e){let{sc:t,size:r,scaleSize:n,color:i,tooltip:o="",variant:a="change",fixed:s,fixedTip:l=20,showTooltip:u=!0}=e,c=hv(),{settings:{currency:d}}=(0,hm.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(hd())(c.data.rates.sc[d.id]||1).times(t).div(1e24),m=void 0!==s?s:d.fixed,v=(0,x.jsx)(t8,{size:r,scaleSize:n,weight:"medium",font:"mono",ellipsis:!0,color:h,children:"".concat(f).concat(d.prefix).concat(jO(p.absoluteValue(),m))});return u?(0,x.jsx)(ll,{content:(o?"".concat(o," "):"")+"".concat(f).concat(d.prefix).concat(jO(p.absoluteValue(),l)),children:v}):v}function jO(e,t){let[r,n]=e.toFixed(t).split("."),i=new Intl.NumberFormat().format(parseInt(r));return n?"".concat(i).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(n):i}function jT(e){let{value:t,size:r,scaleSize:n,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,hm.Hv)(),v=hv(),g=(0,w.useMemo)(()=>(0,x.jsx)(jk,{value:t,size:r,color:h&&"row"===p&&"bothPreferFiat"===m?"subtle":void 0,scaleSize:n,tooltip:i,variant:o,fixed:a,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,r,n,i,o,a,u,c,d,f,m,h,p]),y=(0,w.useMemo)(()=>(0,x.jsx)(jA,{sc:t,size:r,color:h&&"row"===p&&"bothPreferSc"===m?"subtle":void 0,scaleSize:n,tooltip:i,variant:o,fixed:s,fixedTip:l,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,r,n,i,o,s,l,u,c,d,f,m,h,p]);return"sc"!==m&&v.data?"fiat"===m?y:"bothPreferSc"===m?h?(0,x.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[g,y]}):g:"bothPreferFiat"===m?h?(0,x.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[y,g]}):y:g:g}var j_=r(61258),jM=r.n(j_);function jN(e){let{skeletonCount:t=10}=e;return(0,x.jsx)(x.Fragment,{children:jM()(t,e=>(0,x.jsxs)("div",{className:(0,ey.cx)("relative flex gap-4 p-3.5",(0,ey.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,x.jsx)(hk,{className:"w-[60px] h-[50px]"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,x.jsx)(hk,{className:"w-[90%] h-[20px]"}),(0,x.jsx)(hk,{className:"w-[140px] h-[14px]"})]})]},e))})}function jR(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function jP(e){jR(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))}function jL(e,t){jR(2,arguments);var r=jP(e),n=jP(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}var jD={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},jI={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 jF(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var jV={date:jF({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jF({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:jF({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},jB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function jU(e){return function(t,r){var n,i=r||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;n=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;n=e.values[l]||e.values[s]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function jz(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.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 r=0;r0?"in "+n:n+" ago":n},formatLong:jV,formatRelative:function(e,t,r,n){return jB[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:jU({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:jU({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:jU({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:jU({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:jU({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:(f={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]:{},r=e.match(f.matchPattern);if(!r)return null;var n=r[0],i=e.match(f.parsePattern);if(!i)return null;var o=f.valueCallback?f.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(n.length)}}),era:jz({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:jz({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:jz({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:jz({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:jz({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 j$(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 jW=r(23779),jq=r.n(jW);function jG(e){let{type:t,label:r,initials:n,href:i,src:o,shape:a}=e,s=(0,x.jsx)(lS,{interactive:!!i,fallback:n||t&&(t||r||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,x.jsx)(fc,{href:i,underline:"none",children:s}),u=l||s;return t?(0,x.jsx)(ll,{content:r||jj(t),children:(0,x.jsx)("div",{className:"",children:u})}):u}function jZ(e){let{label:t,type:r,avatar:n,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,x.jsxs)("div",{className:(0,ey.cx)("flex gap-4 p-4",(0,ey.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,x.jsx)(jG,{label:t,type:r,shape:i,src:n,initials:o||(r||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function jY(e){var t;let r=e.sc,n=e.sf,i=e.hash&&(0,x.jsx)(jS,{value:e.hash,type:e.type,label:e.label,href:e.href,color:"subtle"}),o=e.label||"transaction"===e.type&&e.txType&&((t=e.txType)?jE[t]:void 0)||jj(e.type),a=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(o)?jq()(o):o;return(0,x.jsx)(jZ,{...e,children:(0,x.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,x.jsx)(t8,{color:"subtle",weight:"semibold",children:(0,x.jsx)(fc,{href:e.blockHref,underline:"none",children:(0,ww.yF)(e.height)})}),(0,x.jsx)(t8,{weight:"medium",children:a||i})]}),(0,x.jsx)("div",{className:"flex-1"}),!!r&&(0,x.jsx)(jT,{variant:e.scVariant,value:r}),!!n&&(0,x.jsx)(jC,{variant:e.sfVariant,value:n})]}),(0,x.jsxs)("div",{className:"flex justify-between w-full",children:[(0,x.jsx)("div",{className:"flex gap-1",children:!!a&&i}),(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(t8,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,x.jsx)(t8,{color:"verySubtle",children:(0,x.jsx)(ld.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,x.jsx)(t8,{color:"subtle",children:function(e,t){var r,n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};jR(2,arguments);var a=o.locale||jH;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=jL(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 r in t=t||{})Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}({},o);l.addSuffix=!!o.addSuffix,l.comparison=s,s>0?(r=jP(t),n=jP(e)):(r=jP(e),n=jP(t));var u=function(e,t,r){jR(2,arguments);var n,i=function(e,t){return jR(2,arguments),jP(e).getTime()-jP(t).getTime()}(e,t)/1e3;return((n=null==r?void 0:r.roundingMethod)?jD[n]:jD.trunc)(i)}(n,r),c=Math.round((u-(j$(n)-j$(r))/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){var d=Math.round(c/60);return a.formatDistance("aboutXHours",d,l)}if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200){var f=Math.round(c/1440);return a.formatDistance("xDays",f,l)}if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){jR(2,arguments);var r,n=jP(e),i=jP(t),o=jL(n,i),a=Math.abs(function(e,t){jR(2,arguments);var r=jP(e),n=jP(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(n,i));if(a<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var s=jL(n,i)===-o;(function(e){jR(1,arguments);var t=jP(e);return(function(e){jR(1,arguments);var t=jP(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){jR(1,arguments);var t=jP(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t})(t).getTime()})(jP(e))&&1===a&&1===jL(e,i)&&(s=!1),r=o*(a-Number(s))}return 0===r?0:r}(n,r))<12){var h=Math.round(c/43200);return a.formatDistance("xMonths",h,l)}var p=i%12,m=Math.floor(i/12);return p<3?a.formatDistance("aboutXYears",m,l):p<9?a.formatDistance("overXYears",m,l):a.formatDistance("almostXYears",m+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function jX(e){let{title:t,actions:r,entities:n,emptyState:i,emptyMessage:o,skeletonCount:a=10,children:s}=e;return(0,x.jsx)(re,{children:(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||r)&&(0,x.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,x.jsx)(d8,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,x.jsx)("div",{className:"flex-1"}),r]}),(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(null==n?void 0:n.length)===0&&(i||(0,x.jsx)("div",{className:(0,ey.cx)("flex items-center justify-center h-[84px]",(0,ey.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,x.jsx)(t8,{size:"18",color:"subtle",children:o||"No results"})})),s||(null==n?void 0:n.map((e,t)=>(0,x.jsx)(jY,{...e},e.hash||e.label||t)))||(0,x.jsx)(jN,{skeletonCount:a})]})]})})}function jK(e){let{label:t,entityType:r,entityValue:n,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,x.jsx)(t8,{color:"subtle",size:"12",className:"h-6",children:d});return(0,x.jsx)(re,{children:(0,x.jsx)("div",{className:(0,ey.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,x.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,x.jsx)(t8,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?jq()(t):t}),i]}),(0,x.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,x.jsx)(hk,{className:"h-12 w-[150px]"}):(0,x.jsxs)(x.Fragment,{children:[void 0!==u&&(0,x.jsx)(jT,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,x.jsx)(jC,{scaleSize:h,variant:"value",value:c}),r&&(n?(0,x.jsx)(jS,{scaleSize:h,label:jj(r),href:o,value:n,displayValue:"block"===r&&n?Number(n).toLocaleString():n,className:"relative top-0.5"}):(0,x.jsx)(t8,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,x.jsx)(jS,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,x.jsx)(t8,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,x.jsx)("div",{className:"mt-1",children:p?(0,x.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,x.jsx)(hk,{className:"h-4 w-[100px]"})}):f?(0,x.jsx)(ll,{content:f,children:v}):v}):null]})]})})})}function jJ(e){let{title:t,actions:r,name:n}=e;return(0,x.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,x.jsx)(fa,{htmlFor:n,noWrap:!0,children:t}):null,r]})}function jQ(e){var t;let{form:r,name:n}=e,i=r.formState.errors[n],o=null===(t=r.formState.errors[n])||void 0===t?void 0:t.message;return i?(0,x.jsx)(t8,{size:"14",color:"red",children:o}):null}function j0(e){let{form:t,title:r,actions:n,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return r||s?(0,x.jsxs)("div",{className:(0,ey.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,x.jsx)(jJ,{name:i,title:r,actions:n}),(0,x.jsx)(jQ,{form:t,name:i})]}):null}function j1(e){let{children:t,...r}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(j0,{...r}),t]})}function j2(e){let{form:t,size:r="medium",variant:n="accent",children:i}=e;return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(lc,{size:r,variant:n,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,x.jsx)(wN,{}):i})})}function j4(e){let{formik:t,title:r,name:n,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,x.jsx)(j7,{formik:t,title:r,name:n,children:"number"===g?(0,x.jsx)(j6,{formik:t,name:n,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,x.jsx)(j5,{formik:t,name:n,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,x.jsx)(j3,{formik:t,name:n,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function j3(e){let{formik:t,name:r,placeholder:n,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,x.jsx)(fQ,{id:r,name:r,autoComplete:i,disabled:o,spellCheck:l,placeholder:n,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[r]||"",...c})}function j6(e){let{formik:t,name:r,units:n,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,x.jsx)(hh,{id:r,units:n,name:r,placeholder:new(hd())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(r,e),value:t.values[r],...d})}function j5(e){let{formik:t,name:r,disabled:n,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,x.jsx)(hy,{id:r,name:r,disabled:n,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(r),sc:new(hd())(t.values[r]),placeholder:new(hd())(a),onChange:e=>t.setFieldValue(r,null==e?void 0:e.toString()),...c})}function j8(e){var t,r;let{formik:n,title:i,name:o,withStatusError:a=!1,className:s}=e,l=n.errors[o]&&n.touched[o]||a&&(null===(t=n.status)||void 0===t?void 0:t.error),u=n.errors[o]||a&&(null===(r=n.status)||void 0===r?void 0:r.error);return(i||l)&&(0,x.jsxs)("div",{className:(0,ey.cx)("flex justify-between items-center gap-4",s),children:[i?(0,x.jsx)(fa,{htmlFor:o,children:i}):(0,x.jsx)("div",{}),l&&(0,x.jsx)(t8,{size:"14",color:"red",children:u})]})}function j7(e){let{children:t,...r}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(j8,{...r}),t]})}function j9(e){var t;let{formik:r,size:n="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,x.jsxs)(x.Fragment,{children:[o&&(null===(t=r.status)||void 0===t?void 0:t.error)&&(0,x.jsx)(t8,{color:"red",children:r.status.error}),(0,x.jsx)(lc,{size:n,variant:i,state:r.isSubmitting?"waiting":void 0,type:"submit",children:r.isSubmitting?(0,x.jsx)(wN,{}):a})]})}function Se(e){let{columns:t,data:r,context:n,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==r?void 0:r.length)||(m="skeleton"),(null==r?void 0:r.length)&&(m="currentData");let v=(0,w.useCallback)((e,r,n)=>(0,ey.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",n?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",r),[t]),g=(0,w.useCallback)((e,t)=>(0,ey.cx)("flex items-center",t),[]);return(0,x.jsxs)(re,{children:[(0,x.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,x.jsx)("thead",{className:(0,ey.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,x.jsx)("tr",{children:t.map((e,t)=>{let{id:r,icon:n,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(r))&&!!s,h=i===r;return(0,x.jsx)("th",{className:(0,ey.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,x.jsx)("div",{className:(0,ey.cx)("overflow-hidden","py-3"),children:(0,x.jsxs)("div",{onClick:()=>{f&&s(r)},className:(0,ey.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,x.jsx)(ll,{content:u,children:(0,x.jsxs)(t8,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[n?(0,x.jsx)("div",{children:n}):null,(0,x.jsx)(t8,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,x.jsx)(t8,{color:"contrast",children:"asc"===o?(0,x.jsx)(ld.kqg,{className:"scale-75"}):(0,x.jsx)(ld.EMN,{className:"scale-75"})}),f&&!h&&(0,x.jsx)(t8,{color:"verySubtle",children:(0,x.jsx)(ld.kqg,{className:"scale-75"})})]})})},r)})})}),(0,x.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,x.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:r,summary:n,contentClassName:i,cellClassName:o}=e;return(0,x.jsx)("td",{className:v(t,o,!1),children:(0,x.jsx)("div",{className:g(t,i),children:n&&n()})},r)})}),"currentData"===m&&(null==r?void 0:r.map(e=>(0,x.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,ey.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,r)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,x.jsx)("td",{className:(0,ey.cx)(v(r,s,!1),h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,x.jsx)("div",{className:(0,ey.cx)(g(r,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,x.jsx)(o,{data:e,context:n})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&jM()(c).map(e=>(0,x.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:r,contentClassName:n,cellClassName:i}=e;return(0,x.jsx)("td",{className:v(t,i,!1),children:(0,x.jsx)("div",{className:(0,ey.cx)(g(t,n),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(r))})},e))]})]}),"emptyState"===m&&f]})}var St=r(5632);function Sr(e){let{offset:t,limit:r,pageTotal:n,isLoading:i}=e,o=(0,St.useRouter)(),a=Math.min(t+r,t+n);return(0,x.jsxs)(l_,{children:[(0,x.jsx)(lc,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,x.jsx)("div",{className:"flex scale-[0.65]",children:(0,x.jsx)(ld.XJM,{})})}),(0,x.jsx)(lc,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-r,0)}}),children:(0,x.jsx)(ld.bdU,{})}),i?(0,x.jsx)(lc,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,x.jsx)(wN,{className:"px-2"})}):n?(0,x.jsxs)(lc,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",a]}):(0,x.jsx)(lc,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,x.jsx)(lc,{icon:"contrast",disabled:n!==r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+r}}),children:(0,x.jsx)(ld.VUy,{})})]})}function Sn(e){let{title:t,nav:r,stats:n,actions:i}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.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,x.jsx)(t8,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,x.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,x.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:r}),(0,x.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),n&&(0,x.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:n})]})}let Si=("string"==typeof(h={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:h}:h).src;function So(e){let{children:t}=e;return(0,x.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,x.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(Si,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var Sa=r(97729),Ss=r.n(Sa);function Sl(e){let{appName:t,title:r,children:n}=e,i=r?"".concat(t," - ").concat(r):t;return(0,x.jsxs)(Ss(),{children:[(0,x.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,x.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,x.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,x.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,x.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,x.jsx)("meta",{name:"theme-color",content:"#ffffff"}),n,(0,x.jsx)("title",{children:i})]})}function Su(e){let{appName:t,title:r,children:n}=e;return(0,x.jsxs)("div",{className:"h-screen",children:[(0,x.jsx)(Sl,{appName:t,title:r}),n]})}function Sc(e){let{appName:t,title:r,children:n,filters:i,actions:o}=e;return(0,x.jsxs)(Su,{appName:t,title:r,children:[(0,x.jsx)(So,{}),(0,x.jsx)("div",{className:"flex h-full",children:(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(Sn,{nav:i,actions:o}),(0,x.jsx)("div",{className:"flex-1",children:(0,x.jsx)(lN,{className:"h-full",children:n})})]})})]})}function Sd(e){let{side:t,balanceSc:r,children:n}=e;return r?(0,x.jsx)(ll,{side:t,content:(0,x.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(t8,{children:"spendable"}),(0,x.jsx)(t8,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(jT,{displayBoth:!0,variant:"value",value:r.spendable})})]}),(0,x.jsx)(dz,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(t8,{children:"confirmed"}),(0,x.jsx)(t8,{color:"subtle",children:"All confirmed outputs."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(jT,{displayBoth:!0,variant:"value",value:r.confirmed})})]}),(0,x.jsx)(dz,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(t8,{children:"unconfirmed"}),(0,x.jsx)(t8,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(jT,{displayBoth:!0,variant:"value",value:r.unconfirmed})})]})]}),children:(0,x.jsx)("div",{children:n})}):null}function Sf(e){let{balanceSc:t,isSynced:r,syncingMessage:n}=e;if(!t)return null;let i=(0,x.jsx)(jT,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return r?(0,x.jsx)(Sd,{side:"right",balanceSc:t,children:i}):(0,x.jsx)(ll,{side:"right",content:n||"Blockchain is syncing, balance may be incorrect.",children:(0,x.jsx)("div",{children:i})})}var Sh=r(82876);function Sp(e){let{title:t,children:r,route:n,onClick:i}=e,o=(0,Sh.usePathname)(),a=n&&("/"===n?o===n:null==o?void 0:o.startsWith(n));return n?(0,x.jsx)(fc,{href:n,className:"no-underline",children:(0,x.jsx)(ll,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(lc,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:r})})}):(0,x.jsx)(ll,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(lc,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:r})})}function Sm(e){let{walletBalanceSc:t,isSynced:r,routes:n}=e;return(0,x.jsx)(Sp,{title:"Wallet",route:n.wallet.view,children:(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,x.jsx)(ld.oaN,{}),r&&t&&(0,x.jsx)(Sf,{isSynced:r,balanceSc:t})]})})}function Sv(e){let{routes:t,profile:r,isSynced:n,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,x.jsx)(re,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,x.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,x.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:r||(0,x.jsx)(fh,{size:30})}),(0,x.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,x.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,x.jsx)("div",{className:"flex-1"}),(0,x.jsx)(dz,{className:"w-full"}),i&&(0,x.jsx)(Sm,{routes:t,isSynced:n,walletBalanceSc:o}),(0,x.jsx)(Sp,{title:"Blockchain node",route:t.node.index,children:(0,x.jsx)(ld.kBK,{})}),(0,x.jsx)(Sp,{title:"App preferences",onClick:()=>s(),children:(0,x.jsx)(ld.UG6,{})}),(0,x.jsx)(Sp,{title:"Lock app",onClick:a,children:(0,x.jsx)(ld.mBM,{})})]})]})})}var Sg=r(27429);function Sy(e){let{appName:t,title:r,navTitle:n,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:E}=(0,hm.Hv)();return!function(e){let{lock:t,route:r,routes:n}=e,{isConnected:i,isValidating:o}=function(e){let{route:t}=e,r=(0,hm.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!r.error,isValidating:r.isValidating}}({route:r}),{settings:a}=(0,hm.Hv)(),s=(0,St.useRouter)();(0,w.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(n.login),r=!a.password||!i;if(e&&r){t();return}},[s,a.password,i,o])}({lock:b,route:f,routes:v}),!function(e){let{enabled:t,lock:r,lockTimeout:n}=e,i=(0,w.useCallback)(()=>{r()},[r]);(0,Sg.Yp)({disabled:!t,onIdle:i,timeout:n,throttle:5e3,eventsThrottle:5e3})}({enabled:!!E.autoLock,lockTimeout:E.autoLockTimeout,lock:b}),(0,x.jsxs)(Su,{appName:t,title:r,children:[(0,x.jsx)(So,{}),(0,x.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,x.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,x.jsx)(Sv,{routes:v,profile:i,openSettings:y,lock:b,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,x.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,x.jsx)(Sn,{title:void 0===n?r:n,nav:s,actions:l,stats:u}),g?(0,x.jsx)(cv,{className:"z-0",children:(0,x.jsx)(lN,{size:o,pad:!1,children:(0,x.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,x.jsx)(lN,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function Sb(e,t,r,n){let[i,o]=(0,w.useState)();return(0,w.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,w.useMemo)(()=>r?"error":void 0===i||i>0&&!e?"loading":0===i?0===n.length?"noneYet":"noneMatchingFilters":void 0,[e,i,r,n])}var Sx=r(89644),Sw=r.n(Sx),SE=r(63955),Sj=r(45861),SS=r.n(Sj);function SC(e){let{form:t,field:r,name:n}=e,i=t.watch(n),o=t.formState.touchedFields[n]&&!!t.formState.errors[n],{ref:a,onChange:s,onBlur:l}=t.register(n,r.validation),u=(0,w.useCallback)(e=>{var n;s(e),null===(n=r.trigger)||void 0===n||n.forEach(e=>t.trigger(e))},[s,t,r]),c=(0,w.useCallback)((e,i)=>{var o;t.setValue(n,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=r.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[n,t,r]);return{ref:a,name:n,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function Sk(e){return(0,w.useCallback)(t=>{jm(SS()(t).map(t=>{let[r,n]=t;return"".concat(e[r].title||r,": ").concat(null==n?void 0:n.message)}).join(", "))},[e])}function SA(e){let{name:t,form:r,fields:n,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=n[t],{ref:c,onChange:d,onBlur:f,error:h}=SC({name:t,form:r,field:u}),p=(0,x.jsx)(fQ,{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":r.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,x.jsx)(j1,{title:u.title,actions:u.actions,name:t,form:r,children:p}):p}var SO=r(829),ST=r.n(SO);async function S_(e){let{api:t,route:r,password:n}=e;try{return await Sw().get("".concat(t,"/api").concat(r),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(n))},timeout:1e4}),{}}catch(r){let e=r.code,t=r.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 SM(e){let{appName:t,route:r,routes:n}=e,i=(0,St.useRouter)(),{settings:o,setSettings:a}=(0,hm.Hv)(),{allowCustomApi:s}=o,l=(0,w.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,SE.cI)({mode:"onBlur",defaultValues:l});(0,w.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,w.useCallback)(async e=>{let t="";if(s){let r=new URL(e.api);t="".concat(r.protocol,"//").concat(r.host)}let{error:c}=await S_({api:t,route:r,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):n.home),u.reset(l))},[s,u,i,n,o,a,l,r]),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=Sk(d),h=u.formState.errors.api||u.formState.errors.password,p=ST()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:r}]=e;return-r}).map(e=>{let[t]=e;return t});return(0,x.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,x.jsx)(re,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(t8,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsx)(dQ,{trigger:(0,x.jsx)(lc,{icon:"hover",variant:"ghost",children:(0,x.jsx)(ld.shL,{})}),children:(0,x.jsx)(d0,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,x.jsx)(dz,{className:"w-full mt-2 mb-3"}),(0,x.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,x.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,x.jsxs)(l_,{children:[(0,x.jsx)(SA,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,x.jsx)(dQ,{trigger:(0,x.jsx)(lc,{type:"button",children:(0,x.jsx)(ld.wGX,{})}),children:p.map(e=>(0,x.jsx)(d0,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,x.jsx)(SA,{name:"password",form:u,fields:d,group:!1}),h&&(0,x.jsx)(t8,{size:"14",color:"red",children:h.message}),(0,x.jsx)(j2,{size:"small",form:u,children:"Unlock"})]})})]})})})}var SN=r(78435),SR=r.n(SN),SP=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==SL},SL="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function SD(e,t){return!1!==t.clone&&t.isMergeableObject(e)?SF(Array.isArray(e)?[]:{},e,t):e}function SI(e,t,r){return e.concat(t).map(function(e){return SD(e,r)})}function SF(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||SI,r.isMergeableObject=r.isMergeableObject||SP;var n,i,o=Array.isArray(t);return o!==Array.isArray(e)?SD(t,r):o?r.arrayMerge(e,t,r):(i={},(n=r).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=SD(e[t],n)}),Object.keys(t).forEach(function(r){n.isMergeableObject(t[r])&&e[r]?i[r]=SF(e[r],t[r],n):i[r]=SD(t[r],n)}),i)}SF.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return SF(e,r,t)},{})};var SV=SF,SB="object"==typeof global&&global&&global.Object===Object&&global,SU="object"==typeof self&&self&&self.Object===Object&&self,Sz=SB||SU||Function("return this")(),SH=Sz.Symbol,S$=Object.prototype,SW=S$.hasOwnProperty,Sq=S$.toString,SG=SH?SH.toStringTag:void 0,SZ=function(e){var t=SW.call(e,SG),r=e[SG];try{e[SG]=void 0;var n=!0}catch(e){}var i=Sq.call(e);return n&&(t?e[SG]=r:delete e[SG]),i},SY=Object.prototype.toString,SX=SH?SH.toStringTag:void 0,SK=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":SX&&SX in Object(e)?SZ(e):SY.call(e)},SJ=function(e,t){return function(r){return e(t(r))}},SQ=SJ(Object.getPrototypeOf,Object),S0=function(e){return null!=e&&"object"==typeof e},S1=Object.prototype,S2=Function.prototype.toString,S4=S1.hasOwnProperty,S3=S2.call(Object),S6=function(e){if(!S0(e)||"[object Object]"!=SK(e))return!1;var t=SQ(e);if(null===t)return!0;var r=S4.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&S2.call(r)==S3},S5=function(e,t){return e===t||e!=e&&t!=t},S8=function(e,t){for(var r=e.length;r--;)if(S5(e[r][0],t))return r;return -1},S7=Array.prototype.splice;function S9(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},S9.prototype.set=function(e,t){var r=this.__data__,n=S8(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var Ce=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ct=function(e){if(!Ce(e))return!1;var t=SK(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Cr=Sz["__core-js_shared__"],Cn=(p=/[^.]+$/.exec(Cr&&Cr.keys&&Cr.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",Ci=Function.prototype.toString,Co=function(e){if(null!=e){try{return Ci.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ca=/^\[object .+?Constructor\]$/,Cs=Object.prototype,Cl=Function.prototype.toString,Cu=Cs.hasOwnProperty,Cc=RegExp("^"+Cl.call(Cu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Cd=function(e,t){var r,n=null==e?void 0:e[t];return Ce(r=n)&&(!Cn||!(Cn in r))&&(Ct(r)?Cc:Ca).test(Co(r))?n:void 0},Cf=Cd(Sz,"Map"),Ch=Cd(Object,"create"),Cp=Object.prototype.hasOwnProperty,Cm=Object.prototype.hasOwnProperty;function Cv(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},CU={};CU["[object Float32Array]"]=CU["[object Float64Array]"]=CU["[object Int8Array]"]=CU["[object Int16Array]"]=CU["[object Int32Array]"]=CU["[object Uint8Array]"]=CU["[object Uint8ClampedArray]"]=CU["[object Uint16Array]"]=CU["[object Uint32Array]"]=!0,CU["[object Arguments]"]=CU["[object Array]"]=CU["[object ArrayBuffer]"]=CU["[object Boolean]"]=CU["[object DataView]"]=CU["[object Date]"]=CU["[object Error]"]=CU["[object Function]"]=CU["[object Map]"]=CU["[object Number]"]=CU["[object Object]"]=CU["[object RegExp]"]=CU["[object Set]"]=CU["[object String]"]=CU["[object WeakMap]"]=!1;var Cz=function(e){return function(t){return e(t)}},CH="object"==typeof exports&&exports&&!exports.nodeType&&exports,C$=CH&&"object"==typeof module&&module&&!module.nodeType&&module,CW=C$&&C$.exports===CH&&SB.process,Cq=function(){try{var e=C$&&C$.require&&C$.require("util").types;if(e)return e;return CW&&CW.binding&&CW.binding("util")}catch(e){}}(),CG=Cq&&Cq.isTypedArray,CZ=CG?Cz(CG):function(e){return S0(e)&&CB(e.length)&&!!CU[SK(e)]},CY=Object.prototype.hasOwnProperty,CX=function(e,t){var r=CR(e),n=!r&&CN(e),i=!r&&!n&&CI(e),o=!r&&!n&&!i&&CZ(e),a=r||n||i||o,s=a?CA(e.length,String):[],l=s.length;for(var u in e)(t||CY.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||CV(u,l)))&&s.push(u);return s},CK=Object.prototype,CJ=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||CK)},CQ=SJ(Object.keys,Object),C0=Object.prototype.hasOwnProperty,C1=function(e){if(!CJ(e))return CQ(e);var t=[];for(var r in Object(e))C0.call(e,r)&&"constructor"!=r&&t.push(r);return t},C2=function(e){return null!=e&&CB(e.length)&&!Ct(e)},C4=function(e){return C2(e)?CX(e):C1(e)},C3=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},C6=Object.prototype.hasOwnProperty,C5=function(e){if(!Ce(e))return C3(e);var t=CJ(e),r=[];for(var n in e)"constructor"==n&&(t||!C6.call(e,n))||r.push(n);return r},C8=function(e){return C2(e)?CX(e,!0):C5(e)},C7="object"==typeof exports&&exports&&!exports.nodeType&&exports,C9=C7&&"object"==typeof module&&module&&!module.nodeType&&module,ke=C9&&C9.exports===C7?Sz.Buffer:void 0,kt=ke?ke.allocUnsafe:void 0,kr=function(e,t){if(t)return e.slice();var r=e.length,n=kt?kt(r):new e.constructor(r);return e.copy(n),n},kn=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r=0||(i[r]=e[r]);return i}function Ao(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(73463);var Aa=function(e){return Array.isArray(e)&&0===e.length},As=function(e){return"function"==typeof e},Al=function(e){return null!==e&&"object"==typeof e},Au=function(e){return"[object String]"===Object.prototype.toString.call(e)},Ac=function(e){return Al(e)&&As(e.then)};function Ad(e,t,r,n){void 0===n&&(n=0);for(var i=At(t);e&&n=0?[]:{}}}return(0===o?e:i)[a[o]]===r?e:(void 0===r?delete i[a[o]]:i[a[o]]=r,0===o&&void 0===r&&delete n[a[o]],n)}var Ah=(0,w.createContext)(void 0);function Ap(e,t){switch(t.type){case"SET_VALUES":return An({},e,{values:t.payload});case"SET_TOUCHED":return An({},e,{touched:t.payload});case"SET_ERRORS":if(SR()(e.errors,t.payload))return e;return An({},e,{errors:t.payload});case"SET_STATUS":return An({},e,{status:t.payload});case"SET_ISSUBMITTING":return An({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return An({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return An({},e,{values:Af(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return An({},e,{touched:Af(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return An({},e,{errors:Af(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return An({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return An({},e,{touched:function e(t,r,n,i){void 0===n&&(n=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);oe?t:e},0);return Array.from(An({},e,{length:t+1}))};(function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var i=r.props,o=i.name;(0,i.formik.setFormikState)(function(r){var i="function"==typeof n?n:e,a="function"==typeof t?t:e,s=Af(r.values,o,e(Ad(r.values,o))),l=n?i(Ad(r.errors,o)):void 0,u=t?a(Ad(r.touched,o)):void 0;return Aa(l)&&(l=void 0),Aa(u)&&(u=void 0),An({},r,{values:s,errors:n?Af(r.errors,o,l):r.errors,touched:t?Af(r.touched,o,u):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat(AS(t),[kK(e,5)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return Aw(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return Ax(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return AE(r,e,t)},function(t){return AE(t,e,null)},function(t){return AE(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return Aj(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(Ao(r)),r.pop=r.pop.bind(Ao(r)),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!SR()(Ad(e.formik.values,e.name),Ad(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?AS(r):[];return t||(t=n[e]),As(n.splice)&&n.splice(e,1),n},!0,!0),t},r.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},r.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,r=t.component,n=t.render,i=t.children,o=t.name,a=Ai(t.formik,["validate","validationSchema"]),s=An({},e,{form:a,name:o});return r?(0,w.createElement)(r,s):n?n(s):i?"function"==typeof i?i(s):0===w.Children.count(i)?null:w.Children.only(i):null},t})(w.Component).defaultProps={validateOnChange:!0};try{y=Map}catch(e){}try{b=Set}catch(e){}function AC(e){return function e(t,r,n){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(AC);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){r.push(t);var i=Object.create(t);for(var o in n.push(i),t){var a=r.findIndex(function(e){return e===t[o]});i[o]=a>-1?n[a]:e(t[o],r,n)}return i}return t}(e,[],[])}let Ak=Object.prototype.toString,AA=Error.prototype.toString,AO=RegExp.prototype.toString,AT="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",A_=/^Symbol\((.*)\)(.*)$/;function AM(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return AT.call(e).replace(A_,"Symbol($1)");let n=Ak.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+AA.call(e)+"]":"RegExp"===n?AO.call(e):null}function AN(e,t){let r=AM(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=AM(this[e],t);return null!==n?n:r},2)}let AR={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:r,originalValue:n})=>{let i=null!=n&&n!==r,o=`${e} must be a \`${t}\` type, but the final value was: \`${AN(r,!0)}\``+(i?` (cast from the value \`${AN(n,!0)}\`).`:".");return null===r&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},AP={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"},AL={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"},AD={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},AI={noUnknown:"${path} field has unspecified keys: ${unknown}"},AF={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:AR,string:AP,number:AL,date:AD,object:AI,array:AF,boolean:{isValue:"${path} field must be ${value}"}});var AV=r(93352),AB=r.n(AV),AU=e=>e&&e.__isYupSchema__,Az=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!AB()(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:r,then:n,otherwise:i}=t,o="function"==typeof r?r:(...e)=>e.every(e=>e===r);this.fn=function(...e){let t=e.pop(),r=e.pop(),a=o(...e)?n:i;if(a)return"function"==typeof a?a(r):r.concat(a.resolve(t))}}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn.apply(e,r.concat(e,t));if(void 0===n||n===e)return e;if(!AU(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}};function AH(e){return null==e?[]:[].concat(e)}function A$(){return(A$=Object.assign||function(e){for(var t=1;tAN(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n){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=r,this.type=n,this.errors=[],this.inner=[],AH(e).forEach(e=>{Aq.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,Aq)}}let AG=e=>{let t=!1;return(...r)=>{t||(t=!0,e(...r))}};function AZ(e,t){let{endEarly:r,tests:n,args:i,value:o,errors:a,sort:s,path:l}=e,u=AG(t),c=n.length,d=[];if(a=a||[],!c)return a.length?u(new Aq(a,o,l)):u(null,o);for(let e=0;e=0||(i[r]=e[r]);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 AQ.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=AX()(A0({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),r=new Aq(Aq.formatError(e.message||p,t),i,t.path,e.type||d);return r.params=t,r}let b=A0({path:o,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=>{Aq.isError(e)?r(e):e?r(null,e):r(y())}).catch(r)}catch(e){r(e)}return}try{var x;if(n=f.call(b,i,b),"function"==typeof(null==(x=n)?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){r(e);return}Aq.isError(n)?r(n):n?r(null,n):r(y())}return t.OPTIONS=e,t}AQ.prototype.__isYupRef=!0;let A2=e=>e.substr(0,e.length-1).substr(1);class A4{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,r)=>t.concat(AQ.isRef(r)?e(r):r),[])}add(e){AQ.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){AQ.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new A4;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let r=this.clone();return e.list.forEach(e=>r.add(e)),e.refs.forEach(e=>r.add(e)),t.list.forEach(e=>r.delete(e)),t.refs.forEach(e=>r.delete(e)),r}}function A3(){return(A3=Object.assign||function(e){for(var t=1;t{this.typeError(AR.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=A3({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=A3({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=AC(A3({},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 r=e(this);return this._mutate=t,r}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(),r=A3({},this.spec,t.spec);return t.spec=r,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 r=t.conditions;(t=t.clone()).conditions=[],t=(t=r.reduce((t,r)=>r.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let r=this.resolve(A3({value:e},t)),n=r._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==r.isType(n)){let i=AN(e),o=AN(n);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}". + +attempted value: ${i} +`+(o!==i?`result of cast: ${o}`:""))}return n}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault()),r}_validate(e,t={},r){let{sync:n,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,A3({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:n,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),AZ({args:c,value:u,path:i,sync:n,tests:d,endEarly:l},e=>{if(e)return void r(e,u);AZ({tests:this.tests.concat(f),args:c,path:i,sync:n,value:u,endEarly:l},r)})}validate(e,t,r){let n=this.resolve(A3({},t,{value:e}));return"function"==typeof r?n._validate(e,t,r):new Promise((r,i)=>n._validate(e,t,(e,t)=>{e?i(e):r(t)}))}validateSync(e,t){let r;return this.resolve(A3({},t,{value:e}))._validate(e,A3({},t,{sync:!0}),(e,t)=>{if(e)throw e;r=t}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(Aq.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(Aq.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):AC(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=AR.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=AR.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=AR.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=A1(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==n.OPTIONS.test),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=AH(e).map(e=>new AQ(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push(new Az(n,t)),r}typeError(e){let t=this.clone();return t._typeError=A1({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=AR.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r._whitelistError=A1({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}notOneOf(e,t=AR.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r._blacklistError=A1({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:r}=e.spec,n={meta:r,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,r)=>r.findIndex(t=>t.name===e.name)===t)};return n}}for(let e of(A6.prototype.__isYupSchema__=!0,["validate","validateSync"]))A6.prototype[`${e}At`]=function(t,r,n={}){let{parent:i,parentPath:o,schema:a}=function(e,t,r,n=r){let i,o,a;return t?((0,AK.forEach)(t,(s,l,u)=>{let c=l?A2(s):s;if((e=e.resolve({context:n,parent:i,value:r})).innerType){let n=u?parseInt(c,10):0;if(r&&n>=r.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=r,r=r&&r[n],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=r,r=r&&r[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,r,n.context);return a[e](i&&i[o],A3({},n,{parent:i,path:t}))};for(let e of["equals","is"])A6.prototype[e]=A6.prototype.oneOf;for(let e of["not","nope"])A6.prototype[e]=A6.prototype.notOneOf;A6.prototype.optional=A6.prototype.notRequired,A6.prototype;var A5=e=>null==e;let A8=/^((([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,A7=/^((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,A9=/^(?:[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,Oe=e=>A5(e)||e===e.trim(),Ot=({}).toString();function Or(){return new On}class On extends A6{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===Ot?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=AP.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return A5(t)||t.length===this.resolve(e)}})}min(e,t=AP.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return A5(t)||t.length>=this.resolve(e)}})}max(e,t=AP.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return A5(t)||t.length<=this.resolve(e)}})}matches(e,t){let r,n,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:r,name:n}=t:r=t),this.test({name:n||"matches",message:r||AP.matches,params:{regex:e},test:t=>A5(t)||""===t&&i||-1!==t.search(e)})}email(e=AP.email){return this.matches(A8,{name:"email",message:e,excludeEmptyString:!0})}url(e=AP.url){return this.matches(A7,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=AP.uuid){return this.matches(A9,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=AP.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:Oe})}lowercase(e=AP.lowercase){return this.transform(e=>A5(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>A5(e)||e===e.toLowerCase()})}uppercase(e=AP.uppercase){return this.transform(e=>A5(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>A5(e)||e===e.toUpperCase()})}}Or.prototype=On.prototype;let Oi=e=>e!=+e;function Oo(){return new Oa}class Oa extends A6{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&&!Oi(e)}min(e,t=AL.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return A5(t)||t>=this.resolve(e)}})}max(e,t=AL.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return A5(t)||t<=this.resolve(e)}})}lessThan(e,t=AL.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return A5(t)||tthis.resolve(e)}})}positive(e=AL.positive){return this.moreThan(0,e)}negative(e=AL.negative){return this.lessThan(0,e)}integer(e=AL.integer){return this.test({name:"integer",message:e,test:e=>A5(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>A5(e)?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>A5(t)?t:Math[e](t))}}Oo.prototype=Oa.prototype;var Os=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let Ol=new Date(""),Ou=e=>"[object Date]"===Object.prototype.toString.call(e);function Oc(){return new Od}class Od extends A6{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,r,n=[1,4,5,6,7,10,11],i=0;if(r=Os.exec(e)){for(var o,a=0;o=n[a];++a)r[o]=+r[o]||0;r[2]=(+r[2]||1)-1,r[3]=+r[3]||1,r[7]=r[7]?String(r[7]).substr(0,3):0,(void 0===r[8]||""===r[8])&&(void 0===r[9]||""===r[9])?t=+new Date(r[1],r[2],r[3],r[4],r[5],r[6],r[7]):("Z"!==r[8]&&void 0!==r[9]&&(i=60*r[10]+r[11],"+"===r[9]&&(i=0-i)),t=Date.UTC(r[1],r[2],r[3],r[4],r[5]+i,r[6],r[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?Ol:new Date(e)})})}_typeCheck(e){return Ou(e)&&!isNaN(e.getTime())}prepareParam(e,t){let r;if(AQ.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=AD.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return A5(e)||e>=this.resolve(r)}})}max(e,t=AD.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return A5(e)||e<=this.resolve(r)}})}}Od.INVALID_DATE=Ol,Oc.prototype=Od.prototype,Oc.INVALID_DATE=Ol;var Of=r(57370),Oh=r.n(Of),Op=r(96009),Om=r.n(Op),Ov=r(19950),Og=r.n(Ov),Oy=r(95159),Ob=r.n(Oy);function Ox(e,t){let r=1/0;return e.some((e,n)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return r=n,!0}),r}function Ow(e){return(t,r)=>Ox(e,t)-Ox(e,r)}function OE(){return(OE=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),OS=Ow([]);class OC extends A6{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=OS,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 Oj(e)||"function"==typeof e}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault();if(!this._typeCheck(n))return n;let i=this.fields,o=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,a=this._nodes.concat(Object.keys(n).filter(e=>-1===this._nodes.indexOf(e))),s={},l=OE({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let r=i[e],a=AB()(n,e);if(r){let i;let o=n[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(r=r.resolve({value:o,context:t.context,parent:s}))?r.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in n;continue}void 0!==(i=t.__validating&&c?n[e]:r.cast(n[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=n[e]);s[e]!==n[e]&&(u=!0)}return u?s:n}_validate(e,t={},r){let n=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!Aq.isError(e)||s)return void r(e,u);n.push(e)}if(!l||!Oj(u)){r(n[0]||null,u);return}a=a||u,AZ({sync:i,tests:this._nodes.map(e=>(r,n)=>{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],OE({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[e]}),n);return}n(null)}),value:u,errors:n,endEarly:s,sort:this._sortErrors,path:t.path},r)})}clone(e){let t=super.clone(e);return t.fields=OE({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[e,t]of Object.entries(this.fields)){let n=r[e];void 0===n?r[e]=t:n instanceof A6&&t instanceof A6&&(r[e]=t.concat(n))}return t.withMutation(()=>t.shape(r,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let r=this.fields[t];e[t]="default"in r?r.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let r=this.clone(),n=Object.assign(r.fields,e);return r.fields=n,r._sortErrors=Ow(Object.keys(n)),t.length&&(Array.isArray(t[0])||(t=[t]),r._excludedEdges=[...r._excludedEdges,...t]),r._nodes=function(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,AK.split)(e)[0];n.add(o),i.has(`${t}-${o}`)||r.push([t,o])}for(let t in e)if(AB()(e,t)){let r=e[t];n.add(t),AQ.isRef(r)&&r.isSibling?o(r.path,t):AU(r)&&"deps"in r&&r.deps.forEach(e=>o(e,t))}return Ob().array(Array.from(n),r).reverse()}(n,r._excludedEdges),r}pick(e){let t={};for(let r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),r=t.fields;for(let n of(t.fields={},e))delete r[n];return t.withMutation(()=>t.shape(r))}from(e,t,r){let n=(0,AK.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return AB()(i,e)&&(o=OE({},i),r||delete o[e],o[t]=n(i)),o})}noUnknown(e=!0,t=AI.noUnknown){"string"==typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let r;if(null==t)return!0;let n=(r=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===r.indexOf(e)));return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=AI.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&Og()(t,(t,r)=>e(r)))}camelCase(){return this.transformKeys(Om())}snakeCase(){return this.transformKeys(Oh())}constantCase(){return this.transformKeys(e=>Oh()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=AX()(this.fields,e=>e.describe()),e}}function Ok(e){return new OC(e)}function OA(){return(OA=Object.assign||function(e){for(var t=1;te.id===t),o=r.length-1;return(0,x.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,x.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,x.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),r.map((e,r)=>{let{id:a,label:s}=e,l=t===a,u=i>=r,c=r===o,d=0===r,f=u&&i!==o;return(0,x.jsxs)("div",{className:(0,ey.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(r/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&n(a)},children:[(0,x.jsx)(t8,{color:l?"contrast":"verySubtle",className:(0,ey.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,x.jsx)("div",{className:(0,ey.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,x.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}Ok.prototype=OC.prototype,(class extends A6{constructor(e){super({type:"array"}),this.innerType=void 0,this.innerType=e,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})})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){let r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1,i=r.map((e,r)=>{let i=this.innerType.cast(e,OA({},t,{path:`${t.path||""}[${r}]`}));return i!==e&&(n=!0),i});return n?i:r}_validate(e,t={},r){var n,i;let o=[],a=t.sync,s=t.path,l=this.innerType,u=null!=(n=t.abortEarly)?n:this.spec.abortEarly,c=null!=(i=t.recursive)?i:this.spec.recursive,d=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,n)=>{if(e){if(!Aq.isError(e)||u)return void r(e,n);o.push(e)}if(!c||!l||!this._typeCheck(n)){r(o[0]||null,n);return}d=d||n;let i=Array(n.length);for(let e=0;el.validate(r,a,t)}AZ({sync:a,path:s,value:n,errors:o,endEarly:u,tests:i},r)})}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(!AU(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+AN(e));return t.innerType=e,t}length(e,t=AF.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return A5(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||AF.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return A5(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||AF.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return A5(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,r,n)=>!e(t,r,n):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)}}).prototype,Ok().shape({address:Or().required("Required"),siacoin:Or().required("Required").test("greater than zero","Must be greater than zero",e=>!new(hd())(e||0).isZero())}),(0,ww.qN)(.00393),new(hd())(0);let OT="[a-fA-F\\d:]",O_=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(OT,")|(?<=").concat(OT,")(?=\\s|$))"):"",OM="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",ON="[a-fA-F\\d]{1,4}",OR="\n(?:\n(?:".concat(ON,":){7}(?:").concat(ON,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(ON,":){6}(?:").concat(OM,"|:").concat(ON,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(ON,":){5}(?::").concat(OM,"|(?::").concat(ON,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(ON,":){4}(?:(?::").concat(ON,"){0,1}:").concat(OM,"|(?::").concat(ON,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(ON,":){3}(?:(?::").concat(ON,"){0,2}:").concat(OM,"|(?::").concat(ON,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(ON,":){2}(?:(?::").concat(ON,"){0,3}:").concat(OM,"|(?::").concat(ON,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(ON,":){1}(?:(?::").concat(ON,"){0,4}:").concat(OM,"|(?::").concat(ON,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(ON,"){0,5}:").concat(OM,"|(?::").concat(ON,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),OP=new RegExp("(?:^".concat(OM,"$)|(?:^").concat(OR,"$)")),OL=new RegExp("^".concat(OM,"$")),OD=new RegExp("^".concat(OR,"$")),OI=e=>e&&e.exact?OP:RegExp("(?:".concat(O_(e)).concat(OM).concat(O_(e),")|(?:").concat(O_(e)).concat(OR).concat(O_(e),")"),"g");OI.v4=e=>e&&e.exact?OL:RegExp("".concat(O_(e)).concat(OM).concat(O_(e)),"g"),OI.v6=e=>e&&e.exact?OD:RegExp("".concat(O_(e)).concat(OR).concat(O_(e)),"g");let OF=()=>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"),OV={port:9981,ip:""},OB=Ok().shape({port:Oo().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:Or().required("Required").test("ip","Invalid hostname or IP address",e=>OF().test(e||""))});function OU(e){var t,r,n,i,o,a,s,l,u,c,d,f,h,p,m,v,g,y,b,E,j,S,C,k,A,O,T,_,M,N,R,P,L,D,I,F,V,B,U,z,H,$,W,q,G,Z,Y,X,K,J,Q,ee,et,er,en;let{trigger:ei,open:eo,connect:ea,onOpenChange:es}=e,el=(n=void 0===(r=(t={initialValues:OV,validationSchema:OB,onSubmit:async(e,t)=>{let r="".concat(e.ip,":").concat(e.port),n=await ea(r);if(n.error){let e=n.error.replace("invalid peer address: address ".concat(r,":"),"");t.setStatus({error:e})}else jh("Connected to peer"),t.resetForm(),es(!1)}}).validateOnChange)||r,o=void 0===(i=t.validateOnBlur)||i,s=void 0!==(a=t.validateOnMount)&&a,l=t.isInitialValid,c=void 0!==(u=t.enableReinitialize)&&u,d=t.onSubmit,f=Ai(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=An({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:d},f),p=(0,w.useRef)(h.initialValues),m=(0,w.useRef)(h.initialErrors||Am),v=(0,w.useRef)(h.initialTouched||Av),g=(0,w.useRef)(h.initialStatus),y=(0,w.useRef)(!1),b=(0,w.useRef)({}),(0,w.useEffect)(function(){return y.current=!0,function(){y.current=!1}},[]),j=(E=(0,w.useReducer)(Ap,{values:h.initialValues,errors:h.initialErrors||Am,touched:h.initialTouched||Av,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}))[0],S=E[1],C=(0,w.useCallback)(function(e,t){return new Promise(function(r,n){var i=h.validate(e,t);null==i?r(Am):Ac(i)?i.then(function(e){r(e||Am)},function(e){n(e)}):r(i)})},[h.validate]),k=(0,w.useCallback)(function(e,t){var r,n,i,o=h.validationSchema,a=As(o)?o(t):o,s=t&&a.validateAt?a.validateAt(t,e):(void 0===r&&(r=!1),void 0===n&&(n={}),i=function e(t){var r=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=String(n);!0===Array.isArray(t[i])?r[i]=t[i].map(function(t){return!0===Array.isArray(t)||S6(t)?e(t):""!==t?t:void 0}):S6(t[i])?r[i]=e(t[i]):r[i]=""!==t[i]?t[i]:void 0}return r}(e),a[r?"validateSync":"validate"](i,{abortEarly:!1,context:n}));return new Promise(function(e,t){s.then(function(){e(Am)},function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Af(t,e.path,e.message);for(var r=e.inner,n=Array.isArray(r),i=0,r=n?r:r[Symbol.iterator]();;){if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}var o,a=o;Ad(t,a.path)||(t=Af(t,a.path,a.message))}}return t}(r)):t(r)})})},[h.validationSchema]),A=(0,w.useCallback)(function(e,t){return new Promise(function(r){return r(b.current[e].validate(t))})},[]),O=(0,w.useCallback)(function(e){var t=Object.keys(b.current).filter(function(e){return As(b.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return A(t,Ad(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=Af(e,t[n],r)),e},{})})},[A]),T=(0,w.useCallback)(function(e){return Promise.all([O(e),h.validationSchema?k(e):{},h.validate?C(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return SV.all([t,r,n],{arrayMerge:Ag})})},[h.validate,h.validationSchema,O,C,k]),_=Ab(function(e){return void 0===e&&(e=j.values),S({type:"SET_ISVALIDATING",payload:!0}),T(e).then(function(e){return y.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e})}),(0,w.useEffect)(function(){s&&!0===y.current&&SR()(p.current,h.initialValues)&&_(p.current)},[s,_]),M=(0,w.useCallback)(function(e){var t=e&&e.values?e.values:p.current,r=e&&e.errors?e.errors:m.current?m.current:h.initialErrors||{},n=e&&e.touched?e.touched:v.current?v.current:h.initialTouched||{},i=e&&e.status?e.status:g.current?g.current:h.initialStatus;p.current=t,m.current=r,v.current=n,g.current=i;var o=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var a=h.onReset(j.values,X);Ac(a)?a.then(o):o()}else o()},[h.initialErrors,h.initialStatus,h.initialTouched]),(0,w.useEffect)(function(){!0===y.current&&!SR()(p.current,h.initialValues)&&(c&&(p.current=h.initialValues,M()),s&&_(p.current))},[c,h.initialValues,M,s,_]),(0,w.useEffect)(function(){c&&!0===y.current&&!SR()(m.current,h.initialErrors)&&(m.current=h.initialErrors||Am,S({type:"SET_ERRORS",payload:h.initialErrors||Am}))},[c,h.initialErrors]),(0,w.useEffect)(function(){c&&!0===y.current&&!SR()(v.current,h.initialTouched)&&(v.current=h.initialTouched||Av,S({type:"SET_TOUCHED",payload:h.initialTouched||Av}))},[c,h.initialTouched]),(0,w.useEffect)(function(){c&&!0===y.current&&!SR()(g.current,h.initialStatus)&&(g.current=h.initialStatus,S({type:"SET_STATUS",payload:h.initialStatus}))},[c,h.initialStatus,h.initialTouched]),N=Ab(function(e){if(b.current[e]&&As(b.current[e].validate)){var t=Ad(j.values,e),r=b.current[e].validate(t);return Ac(r)?(S({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return h.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),k(j.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),R=(0,w.useCallback)(function(e,t){var r=t.validate;b.current[e]={validate:r}},[]),P=(0,w.useCallback)(function(e){delete b.current[e]},[]),L=Ab(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?_(j.values):Promise.resolve()}),D=(0,w.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),I=Ab(function(e,t){var r=As(e)?e(j.values):e;return S({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?_(r):Promise.resolve()}),F=(0,w.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),V=Ab(function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?_(Af(j.values,e,t)):Promise.resolve()}),B=(0,w.useCallback)(function(e,t){var r,n=t,i=e;if(!Au(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;n=t||s||l,i=/number|range/.test(a)?isNaN(r=parseFloat(u))?"":r:/checkbox/.test(a)?function(e,t,r){if("boolean"==typeof e)return!!t;var n=[],i=!1,o=-1;if(Array.isArray(e))n=e,i=(o=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,o).concat(n.slice(o+1)):n}(Ad(j.values,n),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}n&&V(n,i)},[V,j.values]),U=Ab(function(e){if(Au(e))return function(t){return B(t,e)};B(e)}),z=Ab(function(e,t,r){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?_(j.values):Promise.resolve()}),H=(0,w.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,i=r.id;r.outerHTML,z(t||n||i,!0)},[z]),$=Ab(function(e){if(Au(e))return function(t){return H(t,e)};H(e)}),W=(0,w.useCallback)(function(e){As(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),q=(0,w.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),G=(0,w.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),Z=Ab(function(){return S({type:"SUBMIT_ATTEMPT"}),_().then(function(e){var t,r=e instanceof Error;if(!r&&0===Object.keys(e).length){try{if(t=K(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return y.current&&S({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(y.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(y.current&&(S({type:"SUBMIT_FAILURE"}),r))throw e})}),Y=Ab(function(e){e&&e.preventDefault&&As(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&As(e.stopPropagation)&&e.stopPropagation(),Z().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),X={resetForm:M,validateForm:_,validateField:N,setErrors:D,setFieldError:F,setFieldTouched:z,setFieldValue:V,setStatus:q,setSubmitting:G,setTouched:L,setValues:I,setFormikState:W,submitForm:Z},K=Ab(function(){return d(j.values,X)}),J=Ab(function(e){e&&e.preventDefault&&As(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&As(e.stopPropagation)&&e.stopPropagation(),M()}),Q=(0,w.useCallback)(function(e){return{value:Ad(j.values,e),error:Ad(j.errors,e),touched:!!Ad(j.touched,e),initialValue:Ad(p.current,e),initialTouched:!!Ad(v.current,e),initialError:Ad(m.current,e)}},[j.errors,j.touched,j.values]),ee=(0,w.useCallback)(function(e){return{setValue:function(t,r){return V(e,t,r)},setTouched:function(t,r){return z(e,t,r)},setError:function(t){return F(e,t)}}},[V,z,F]),et=(0,w.useCallback)(function(e){var t=Al(e),r=t?e.name:e,n=Ad(j.values,r),i={name:r,value:n,onChange:U,onBlur:$};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!n:(i.checked=!!(Array.isArray(n)&&~n.indexOf(a)),i.value=a):"radio"===o?(i.checked=n===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[$,U,j.values]),er=(0,w.useMemo)(function(){return!SR()(p.current,j.values)},[p.current,j.values]),en=(0,w.useMemo)(function(){return void 0!==l?er?j.errors&&0===Object.keys(j.errors).length:!1!==l&&As(l)?l(h):l:j.errors&&0===Object.keys(j.errors).length},[l,er,j.errors,h]),An({},j,{initialValues:p.current,initialErrors:m.current,initialTouched:v.current,initialStatus:g.current,handleBlur:$,handleChange:U,handleReset:J,handleSubmit:Y,resetForm:M,setErrors:D,setFormikState:W,setFieldTouched:z,setFieldValue:V,setFieldError:F,setStatus:q,setSubmitting:G,setTouched:L,setValues:I,submitForm:Z,validateForm:_,validateField:N,isValid:en,dirty:er,unregisterField:P,registerField:R,getFieldProps:et,getFieldMeta:Q,getFieldHelpers:ee,validateOnBlur:o,validateOnChange:n,validateOnMount:s}));return(0,x.jsx)(cb,{trigger:ei,title:"Connect peer",open:eo,onOpenChange:e=>{e||el.resetForm(),es(e)},contentVariants:{className:"w-[400px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t7,{size:"14",children:"Connect to a peer by IP address."}),(0,x.jsx)("form",{onSubmit:el.handleSubmit,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(j4,{formik:el,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,x.jsx)(j4,{formik:el,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,x.jsx)(j9,{formik:el,size:"medium",children:"Connect"})]})})]})})}Ok().shape({address:Or().required("Required"),description:Or().required("Required"),index:Oo().integer().required("Required")});var Oz=r(38001);function OH(e){let{title:t,description:r,address:n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,x.jsx)(d8,{size:"20",font:"mono",children:t}),r&&(0,x.jsx)(t8,{children:r}),(0,x.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,x.jsx)("div",{className:"absolute",children:(0,x.jsx)(Oz.Z,{size:200,value:n})})}),(0,x.jsx)(jS,{type:"address",value:n})]})}let O$={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"},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"};function OW(e){return 6e4*e}function Oq(e){return 36e5*e}function OG(){let{settings:e,setCurrency:t,currencyOptions:r}=(0,hm.Hv)();return(0,x.jsx)(hj,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:r.map(e=>{let{id:t,label:r}=e;return(0,x.jsx)(hS,{value:t,children:r},t)})})}let OZ=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function OY(){let{settings:e,setSettings:t}=(0,hm.Hv)();return(0,x.jsx)(hj,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:OZ.map(e=>{let{id:t,label:r}=e;return(0,x.jsx)(hS,{value:t,children:r},t)})})}function OX(e){let{open:t,onOpenChange:r,securityEl:n,showGpuSetting:i}=e,{settings:o,setSettings:a,gpu:s}=(0,hm.Hv)();return(0,x.jsx)(cb,{open:t,title:"App preferences",onOpenChange:r,contentVariants:{className:"w-[450px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,x.jsx)("div",{className:"flex flex-col gap-4",children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t8,{size:"16",weight:"bold",children:"Display"}),(0,x.jsx)(t7,{size:"14",children:"Configure visual and locale display preferences."}),(0,x.jsx)(lh,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsx)(d8,{size:"20",className:"flex-1",children:"Currency display"}),(0,x.jsx)(OY,{})]}),(0,x.jsx)(t7,{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,x.jsx)(lh,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsx)(d8,{size:"20",className:"flex-1",children:"Fiat"}),(0,x.jsx)(OG,{})]}),(0,x.jsx)(t7,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,x.jsx)(lh,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsx)(d8,{size:"20",className:"flex-1",children:"Theme"}),(0,x.jsx)(mV,{})]}),(0,x.jsx)(t7,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,x.jsx)(lh,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsx)(d8,{size:"20",className:"flex-1",children:"GPU"}),(0,x.jsx)(hV,{disabled:!s.canGpuRender,checked:s.canGpuRender&&s.isGpuEnabled,onCheckedChange:s.setIsGpuEnabled,size:"medium"})]}),(0,x.jsxs)(t7,{size:"14",children:["Enable features that require a GPU."," ",s.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,x.jsx)(dz,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(t8,{size:"16",weight:"bold",children:"Security"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t7,{size:"14",children:"Configure security preferences."}),(0,x.jsx)(lh,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsx)(d8,{size:"20",className:"flex-1",children:"Lock app"}),(0,x.jsx)(hV,{size:"medium",checked:o.autoLock,onCheckedChange:e=>a({autoLock:e})}),(0,x.jsxs)(hj,{disabled:!o.autoLock,value:String(o.autoLockTimeout),onChange:e=>{a({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,x.jsx)(hS,{value:OW(5),children:"5 minutes"}),(0,x.jsx)(hS,{value:OW(10),children:"10 minutes"}),(0,x.jsx)(hS,{value:OW(20),children:"20 minutes"}),(0,x.jsx)(hS,{value:OW(30),children:"30 minutes"}),(0,x.jsx)(hS,{value:OW(60),children:"1 hour"})]})]}),(0,x.jsx)(t7,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),n]})]}),(0,x.jsx)(dz,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(t8,{size:"16",weight:"bold",children:"Privacy"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t7,{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,x.jsx)(lh,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsx)(d8,{size:"20",className:"flex-1",children:"Sia Central"}),(0,x.jsx)(hV,{size:"medium",checked:o.siaCentral,onCheckedChange:e=>a({siaCentral:e})})]}),(0,x.jsx)(t7,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,x.jsx)(dz,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(t8,{size:"16",weight:"bold",children:"Help"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t7,{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,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)(fc,{href:O$.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(ld.lq1,{}),"Website"]}),(0,x.jsxs)(fc,{href:O$.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(ld.RdX,{}),"Docs"]}),(0,x.jsxs)(fc,{href:O$.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(ld.Sfn,{}),"About"]}),(0,x.jsxs)(fc,{href:O$.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(ld.b47,{}),"Discord"]})]})]})]})]})})}function OK(e){let{peers:t,connectPeer:r}=e;return(0,x.jsx)(jX,{title:"Peers",actions:(0,x.jsx)(lc,{onClick:r,children:"Connect"}),entities:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}var OJ=r(17335),OQ=r.n(OJ);function O0(e){let{label:t,columns:r,enabled:n,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===OQ()(r,n).length,s=OQ()(r,n).length===r.length;return(0,x.jsxs)(dZ,{children:[(0,x.jsx)(fa,{children:t}),(0,x.jsxs)(dY,{children:[(0,x.jsx)(lc,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(r)},children:(0,x.jsx)(ld.xVB,{})}),(0,x.jsx)(lc,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(r)},children:(0,x.jsx)(ld.pHg,{})})]})]})}function O1(e){let{open:t,params:r,trigger:n,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=r||{},c=(0,SE.cI)(),d=(0,w.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,x.jsx)(cb,{title:a,trigger:n,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,x.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,x.jsx)("div",{className:"flex gap-1 justify-end",children:(0,x.jsx)(j2,{variant:s,form:c,size:"small",children:l})})]})})})}function O2(e){let{name:t,peerCount:r,isSynced:n,nodeBlockHeight:i,connectPeer:o}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(t8,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsxs)("div",{className:"flex items-center",children:[r?(0,x.jsxs)(lc,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(r," connected peers"),children:[(0,x.jsx)(t8,{color:"subtle",children:r.toLocaleString()}),(0,x.jsx)(ld.RK4,{})]}):null,i&&n?(0,x.jsx)(ll,{content:"Blockchain is synced",children:(0,x.jsx)("div",{className:"relative left-2",children:(0,x.jsxs)(lc,{variant:"ghost",state:"waiting",children:[(0,x.jsx)(t8,{color:"subtle",children:i.toLocaleString()}),(0,x.jsx)(t8,{color:"green",children:(0,x.jsx)(ld.Y3p,{})})]})})}):null]})]})}function O4(e){let{nodeBlockHeight:t,networkBlockHeight:r,moreThan100BlocksToSync:n,percent:i}=e;return(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,x.jsx)(fY,{variant:"accent",value:t&&r?t:0,max:r||1,className:""}),(0,x.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,x.jsx)(t8,{color:"subtle",size:"10",children:"Syncing..."}),t&&r?n?(0,x.jsx)(t8,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(r.toLocaleString()," (").concat(i,"%)")}):(0,x.jsx)(t8,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function O3(e){let{name:t,peerCount:r,connectPeer:n,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,x.jsx)(pk,{rootProps:{openDelay:100},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,x.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,x.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,x.jsxs)(t8,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,x.jsx)(fh,{size:30})]}),children:(0,x.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[300px]",children:[(0,x.jsx)(O2,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:r,connectPeer:n}),i?(0,x.jsx)(dz,{className:"w-full mb-0.5"}):(0,x.jsx)(O4,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(t8,{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,x.jsx)(dz,{className:"w-full mb-1"})]}),c]})})}function O6(e){let{testnetName:t}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,x.jsx)(t8,{color:"lo",children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsxs)(t8,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function O5(e){let{name:t,form:r,fields:n,size:i="small"}=e,o=n[t],{average:a,suggestion:s,units:l,decimalsLimitSc:u=6,decimalsLimitFiat:c=6}=o,{setValue:d,value:f,error:h}=SC({name:t,field:o,form:r});return(0,x.jsx)(j1,{title:o.title,name:t,form:r,children:(0,x.jsx)(hy,{name:t,size:i,sc:f,units:l,decimalsLimitSc:u,decimalsLimitFiat:c,error:h,changed:r.formState.dirtyFields[t],placeholder:s||a,onChange:e=>{d(e,!0)},onBlur:()=>{d(f,!0)}})})}function O8(e){let{name:t,form:r,fields:n}=e,i=n[t],{placeholder:o,decimalsLimit:a=2,units:s}=i,{setValue:l,error:u,value:c}=SC({form:r,field:i,name:t});return(0,x.jsx)(j1,{title:i.title,name:t,form:r,wrap:!0,children:(0,x.jsx)(hh,{name:t,value:c,units:s,decimalsLimit:a,placeholder:o?new(hd())(o):void 0,state:u?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(hd())(e):void 0;l(t,!0)},onBlur:()=>{l(c,!0)}})})}function O7(e){let{name:t,form:r,fields:n}=e,i=n[t],{placeholder:o}=i,{ref:a,onChange:s,onBlur:l,error:u}=SC({name:t,form:r,field:i});return(0,x.jsx)(j1,{title:i.title,actions:i.actions,name:t,form:r,children:(0,x.jsx)(fK,{ref:a,name:t,placeholder:o,readOnly:i.readOnly,onClick:i.onClick,state:u?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:s,onBlur:l})})}function O9(e){let{name:t,form:r,fields:n,size:i="medium",group:o=!0,children:a}=e,s=n[t],{setValue:l,value:u,error:c}=SC({name:t,field:s,form:r}),d=(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,x.jsx)(hV,{name:t,size:i,checked:u,state:c?"invalid":r.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,x.jsx)(j1,{title:s.title,name:t,form:r,children:d}):d}function Te(e){let{name:t,form:r,fields:n,group:i=!0}=e,o=n[t],{options:a}=o,{ref:s,onChange:l,onBlur:u,error:c}=SC({name:t,form:r,field:o}),d=(0,x.jsx)(hj,{ref:s,name:t,size:"small",state:c?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:l,onBlur:u,children:null==a?void 0:a.map(e=>(0,x.jsx)(hS,{value:e.value,children:e.label},e.value))});return i?(0,x.jsx)(j1,{title:o.title,name:t,form:r,children:d}):d}var Tt=r(75652),Tr=r.n(Tt);ld.lg1,ld.eHR,ld.I$H,ld.KiD,ld.P5r,ld.CCF,ld.w9S,ld.EL$,ld.aPl,ld.wEY,ld.EOT,ld.kSc,ld.W$S,ld.lJ7,ld.ORH,ld.ka0,ld.BdP,ld.d19,ld.Mes,ld.VUg,ld.U_S,ld.T85;let Tn=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,w.useState)(!0),l=(0,w.useRef)(!1),u=(0,w.useRef)(0);return(0,w.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,w.createElement)(tz,{scope:t,isOpenDelayed:a,delayDuration:r,onOpen:(0,w.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,w.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:(0,w.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function Ti(e){let{children:t}=e,[r,n]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{n(!0)},[]),(0,x.jsx)("div",{children:r?t:null})}function To(e){let{className:t,passwordProtectRequestHooks:r,fallback:n,children:i,lockRoutes:o}=e;return(0,x.jsx)(Ti,{children:(0,x.jsx)(hm.kl,{fallback:n,children:(0,x.jsx)(mh,{attribute:"class",children:(0,x.jsx)(Tn,{children:(0,x.jsx)(hm.bW,{lockRoutes:o,passwordProtectRequestHooks:r,children:(0,x.jsxs)("div",{id:"root",className:t,children:[(0,x.jsx)(jg,{}),i]})})})})})})}var Ta=r(30898),Ts=r.n(Ta),Tl=r(92762);let Tu=[];function Tc(e,t){let{columns:r,columnsDefaultVisible:n,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:Tu,...t},[s,l]=(0,Tl.Z)("".concat(e,"/enabledColumns"),{defaultValue:n}),[u,c]=(0,Tl.Z)("".concat(e,"/sortField"),{defaultValue:i}),[d,f]=(0,Tl.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),h=(0,w.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),p=(0,w.useCallback)(e=>{l(t=>Tr()([...t,...e]))},[l]),m=(0,w.useCallback)(e=>{l(t=>OQ()(t,e))},[l]),v=(0,w.useCallback)(()=>{l(n)},[l,n]),g=(0,w.useCallback)(e=>{if(u!==e){c(e),f("asc");return}f(e=>"desc"===e?"asc":"desc")},[u,c,f]),y=(0,w.useMemo)(()=>r.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[r,a]),b=(0,w.useMemo)(()=>r.filter(e=>{let t=e.fixed||s.includes(e.id),r=null==a?void 0:a.includes(e.category||"");return t&&!r}).map(e=>e.id),[r,s,a]),x=(0,w.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return Ts()(e,b)},[o,b]);return{configurableColumns:y,enabledColumns:b,toggleColumnVisibility:h,toggleSort:g,setSortDirection:f,setSortField:c,sortableColumns:x,sortField:u,setColumnsVisible:p,setColumnsHidden:m,sortDirection:d,resetDefaultColumnVisibility:v}}function Td(){let e=(0,St.useRouter)(),[t,r]=(0,w.useState)([]),n=(0,w.useCallback)(t=>{r(e=>{let r=e.filter(e=>e.id!==t.id);return r.concat(t)}),e.replace({query:{}})},[e,r]),i=(0,w.useCallback)(()=>{r([]),e.replace({query:{}})},[e,r]),o=(0,w.useCallback)(t=>{r(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,r]),a=(0,w.useCallback)(()=>{t.length&&(r(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,r,t]);return{filters:t,setFilter:n,removeFilter:o,removeLastFilter:a,resetFilters:i}}function Tf(e){let{dataset:t,filters:r,sortField:n,sortDirection:i}=e;return(0,w.useMemo)(()=>{if(!t)return null;let e=Object.entries(r).map(e=>{let[t,r]=e;return r}),o=e.length?t.filter(t=>{for(let r of e)if(!r.fn(t))return!1;return!0}):t;return[...o=o.sort((e,t)=>{let r=e[n],o=t[n];return"desc"===i?r instanceof hd()&&o instanceof hd()?r.lte(o)?1:-1:r<=o?1:-1:r instanceof hd()&&o instanceof hd()?r.gte(o)?1:-1:r>=o?1:-1})]},[t,r,n,i])}function Th(){let e=(0,St.useRouter)(),[t,r]=(0,w.useState)([]),n=(0,w.useCallback)(t=>{r(e=>{let r=e.filter(e=>e.id!==t.id);return r.concat(t)}),e.replace({query:{}})},[e,r]),i=(0,w.useCallback)(()=>{r([]),e.replace({query:{}})},[e,r]),o=(0,w.useCallback)(t=>{r(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,r]),a=(0,w.useCallback)(()=>{t.length&&(r(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,r,t]);return{filters:t,setFilter:n,removeFilter:o,removeLastFilter:a,resetFilters:i}}new(hd())(0)},2850:function(e,t,r){"use strict";r.d(t,{bW:function(){return P},kl:function(){return U},gw:function(){return i},Tc:function(){return V},du:function(){return B},Hv:function(){return R},iv:function(){return F},Nf:function(){return I},mw:function(){return L},V1:function(){return D}});var n=r(79381);function i(e){return new Promise(t=>setTimeout(t,e))}var o=r(89644),a=r.n(o),s=r(2784);function l(e){return{...e,config:{...null==e?void 0:e.config}}}function u(e){return{...e,config:{...null==e?void 0:e.config}}}function c(e,t,r){return(null==r?void 0:r.api)||(null==t?void 0:t.api)||e.api}function d(e,t,r){var n,i;let o=function(e,t,r){var n,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(n=i.axios)||void 0===n?void 0:n.headers,...null==r?void 0:null===(a=r.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=c(e,t,r);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,r);return{responseType:"json",...null===(n=t.config)||void 0===n?void 0:n.axios,...null==r?void 0:null===(i=r.config)||void 0===i?void 0:i.axios,headers:o}}function f(e,t,r,n){if(!t)return null;let i=(null==r?void 0:r.params)||{};if(n&&n.params&&(i={...i,...n.params}),!(t=function(e,t){if(e&&t){let r=Object.keys(t);for(let n of r){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=c(e,r,n);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function h(e,t,r,n){let i=c(e,r,n);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var p=r(52322),m=r(82876),v=r(92762);function g(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}let y=["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 b(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 x="undefined"==typeof window,w=(()=>{if(x)return;let{userAgent:e,platform:t,maxTouchPoints:r}=window.navigator,n=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&r>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||n||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class E extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let j=[],S=[];function C(e){return null!=e}let k=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:r={},glContext:n,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>g(void 0,void 0,void 0,function*(){let a={};if(x)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==w?void 0:w.isIpad),isMobile:l=!!(null==w?void 0:w.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>g(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 E("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=r,{renderer:d}=r,f=(e,t,r,n,i)=>({device:i,fps:n,gpu:r,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=b(d)];else{var m;let e=n||function(e,t=!1){let r={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete r.powerPreference;let n=window.document.createElement("canvas"),i=n.getContext("webgl",r)||n.getContext("experimental-webgl",r);return null!=i?i:void 0}(null==w?void 0:w.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=b(d))?function(e,t,r){let n;if(!r)return[t];let i=function(e){let t=e.createShader(35633),r=e.createShader(35632),n=e.createProgram();if(!(r&&t&&n))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(r,"\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(r),e.attachShader(n,t),e.attachShader(n,r),e.linkProgram(n),e.detachShader(n,t),e.detachShader(n,r),e.deleteShader(t),e.deleteShader(r),e.useProgram(n);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(n,"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(n),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==w?void 0:w.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?n=l.filter(([,,e])=>e>=14):(n=l.filter(([,e])=>e===i)).length||(n=l),n.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return g(this,void 0,void 0,function*(){let r;let n=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let r of t)if(e.includes(r))return r})(e);if(!n)return;let i=`${l?"m":"d"}-${n}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{r=yield o}catch(e){if(e instanceof E)throw e;return}let d=function(e){var t;let r=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==r?void 0:r.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=r.filter(([,e])=>e===d);f.length||(f=r.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,r)=>0===t||e!==r[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,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,r]=e,n=t*r,i=Math.abs(x-n);ie===r?t-n:e-r);if(!v.length){let e=y.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,k,A,O]=v[0];if(-1===k)return f(0,"BLOCKLISTED",A,k,O);let T=l?e:t,_=0;for(let e=0;e=T[e]&&(_=e);return f(_,"BENCHMARK",A,k,O)}),A=(0,s.createContext)({}),O=()=>(0,s.useContext)(A);function T(e){let{children:t}=e,r=function(){let[e,t]=(0,s.useState)({}),r=(0,s.useCallback)((e,r)=>{t(t=>({...t,[e]:{key:e,...r}}))},[t]),n=(0,s.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,s.useCallback)(()=>{t({})},[t]),o=(0,s.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:r,removeWorkflow:n,resetWorkflows:i,workflows:o}}();return(0,p.jsx)(A.Provider,{value:r,children:t})}let _=[{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}],M={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:_[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},N=(0,s.createContext)({}),R=()=>(0,s.useContext)(N);function P(e){let{children:t,...r}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:r,defaultSettings:i}=e,o=(0,s.useMemo)(()=>({...M,...i}),[i]),[a,l]=(0,v.Z)("v0/settings",{defaultValue:o});(0,s.useEffect)(()=>{l(e=>({...o,...e}))},[]);let u=(0,s.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=O(),d=(0,s.useCallback)(e=>{l(t=>({...t,...e}))},[l]),f=(0,s.useCallback)(e=>{let t=_.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,m.useRouter)(),p=(0,m.usePathname)(),[g,y]=(0,s.useState)({}),b=(0,s.useCallback)((e,t)=>{y(r=>({...r,[e]:t}))},[y]),x=(0,s.useCallback)(()=>{for(let[e,t]of(r&&h.push("".concat(r.login,"?prev=").concat([r.login].includes(p)?r.home:p)),d({password:""}),c(),(0,n.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(g)))t&&t()},[h,r,d,c,g,p]),w=(0,s.useMemo)(()=>!!u.password,[u]),E=function(){let e=function(){var e,t;let r=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!r||!!r.matches}(),[t,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},l]=(0,v.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,s.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];l(r=>({...r,isGpuEnabled:e,hasUserSet:t}))},[l]),c=(0,s.useCallback)(async()=>{let e=!1;{let t=await k();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),r(!0)},[i,u,a]);return(0,s.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:n,isGpuEnabled:o,shouldRender:n&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:_,gpu:E,lock:x,isUnlocked:w,passwordProtectRequestHooks:t,setOnLockCallback:b}}(r);return(0,p.jsx)(N.Provider,{value:i,children:t})}function L(e,t){let{setWorkflow:r,removeWorkflow:i}=O(),{mutate:o}=(0,n.kY)(),{settings:s}=R(),c=l(e);return{post:async e=>{let n=u(e);try{let l;let u=d(s,c,n),p=f(s,c.route,c,n);if(!p)throw Error("No route");"payload"in n&&(l=n.payload);let m="".concat(p).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=h(s,p,e,n);r(m,{path:v,payload:l});let g=await a().post(p,l,u);return t&&await t(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=arguments.length>2?arguments[2]:void 0;return o(r=>{if("string"!=typeof r)return!1;let i=h(s,r,e,n);return t(i)},r,i)},n,g),i(m),{status:g.status,data:g.data}}catch(e){var l,p;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(p=e.response)||void 0===p?void 0:p.data)||e.message}}}}}function D(e,t){let{mutate:r}=(0,n.kY)(),{settings:i}=R(),{setWorkflow:o,removeWorkflow:s}=O(),c=l(e);return{put:async e=>{let n=u(e);try{let l;let u=d(i,c,n),p=f(i,c.route,c,n);if(!p)throw Error("No route");"payload"in n&&(l=n.payload);let m="".concat(p).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=h(i,p,e,n);o(m,{path:v,payload:l});let g=await a().put(p,l,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 r(r=>{if("string"!=typeof r)return!1;let o=h(i,r,e,n);return t(o)},o,a)},n,g),s(m),{status:g.status,data:g.data}}catch(e){var l,p;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(p=e.response)||void 0===p?void 0:p.data)||e.message}}}}}function I(e){var t,r,i;let o=(0,s.useMemo)(()=>({...e,config:{...null==e?void 0:e.config}}),[e]),{settings:l,passwordProtectRequestHooks:u}=R(),c=f(l,o.route,o,void 0);return(0,n.ZP)((r=e.standalone?"".concat(e.standalone,"/").concat(c):c,i=o.disabled||u&&!l.password,!r||i?null:r),async()=>{if(!o.route)throw Error("No route");let e=d(l,o,void 0);if(!c)throw Error("No route");try{let t=await a().get(c,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=o.config)||void 0===t?void 0:t.swr)}function F(e,t){let{mutate:r}=(0,n.kY)(),{settings:i}=R(),{setWorkflow:o,removeWorkflow:s}=O(),c=l(e);return{delete:async e=>{let n=u(e);try{let l=d(i,c,n),u=f(i,c.route,c,n);if(!u)throw Error("No route");let p=h(i,u,e,n);o(u,{path:p});let m=await a().delete(u,l);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 r(r=>{if("string"!=typeof r)return!1;let o=h(i,r,e,n);return t(o)},o,a)},n,m),s(u),{status:m.status,data:m.data}}catch(e){var l,p;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(p=e.response)||void 0===p?void 0:p.data)||e.message}}}}}function V(){return Math.round((new Date().getTime()-14336e8)/6e5)}function B(){return Math.round((new Date().getTime()-16736e8)/6e5)}function U(e){let{fallback:t,cacheProvider:r,children:i}=e;return(0,p.jsx)(T,{children:(0,p.jsx)(n.J$,{value:{fallback:t||{},provider:r},children:i})})}},20876:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.d(t,{aXP:function(){return tf},eHR:function(){return ty},xHM:function(){return tb},rW0:function(){return tx},osk:function(){return tw},JaG:function(){return tE},Ya6:function(){return tS},EMN:function(){return tM},bdU:function(){return tN},VUy:function(){return tR},Cp0:function(){return tP},kqg:function(){return tL},Mes:function(){return tD},Y3p:function(){return t$},Z$8:function(){return tH},tEK:function(){return tW},PcV:function(){return tG},QN4:function(){return tq},Jsc:function(){return tZ},wEY:function(){return tK},olJ:function(){return tJ},KiD:function(){return t0},Jrl:function(){return t4},aPl:function(){return t3},kBK:function(){return nw},Bpb:function(){return t5},iG7:function(){return rt},dr6:function(){return rr},d19:function(){return rn},w9S:function(){return ri},Hb6:function(){return rs},CCF:function(){return rl},UG6:function(){return nE},lq1:function(){return rc},Pj_:function(){return nC},K2o:function(){return nx},EL$:function(){return rf},BdP:function(){return rg},P5r:function(){return ry},RdX:function(){return rb},U_S:function(){return rx},POp:function(){return rj},kSc:function(){return rS},mBM:function(){return nb},Lur:function(){return rO},b47:function(){return rT},Sfn:function(){return r_},W$S:function(){return rD},T85:function(){return rI},Ckx:function(){return rF},EOT:function(){return rB},fDA:function(){return rV},RK4:function(){return rz},XJM:function(){return rq},j7C:function(){return rZ},ka0:function(){return rG},VUg:function(){return rJ},wGX:function(){return rQ},nt4:function(){return r0},Wet:function(){return r2},$Iz:function(){return r5},fwm:function(){return nA},shL:function(){return r8},hiv:function(){return r7},sZp:function(){return ne},lJ7:function(){return nj},ORH:function(){return ni},VmF:function(){return no},_Gh:function(){return na},Fhn:function(){return nS},R$y:function(){return nk},xVB:function(){return nd},pHg:function(){return nf},I$H:function(){return nh},oaN:function(){return ny},qdM:function(){return np},lg1:function(){return nv}});var a,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,E,j,S,C,k,A,O,T,_,M,N,R,P,L,D,I,F,V,B,U,z,H,$,W,q,G,Z,Y,X,K,J,Q,ee,et,er,en,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,eE,ej,eS,eC,ek,eA,eO,eT,e_,eM,eN,eR,eP,eL,eD,eI,eF,eV,eB,eU,ez,eH,e$,eW,eq,eG,eZ,eY,eX,eK,eJ,eQ,e0,e1,e2,e4,e3,e6,e5,e8,e7=["width","height","viewBox"],e9=["tabindex"],te={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tt=r(13980),tr=r.n(tt),tn=r(2784);function ti(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function to(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var tl=["className","children","tabIndex"],tu=["tabindex"],tc=tn.forwardRef(function(e,t){var r=e.className,n=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,r=e.height,n=e.viewBox,a=void 0===n?"0 0 ".concat(t," ").concat(r):n,s=o(e,e7),l=s.tabindex,u=o(s,e9),c=i(i(i({},te),u),{},{width:t,height:r,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}(to(to({},ts(e,tl)),{},{tabindex:a})),l=s.tabindex,u=ts(s,tu);return r&&(u.className=r),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tn.createElement("svg",u,n)});tc.displayName="Icon",tc.propTypes={"aria-hidden":tr().string,"aria-label":tr().string,"aria-labelledby":tr().string,children:tr().node,className:tr().string,height:tr().oneOfType([tr().number,tr().string]),preserveAspectRatio:tr().string,tabIndex:tr().string,viewBox:tr().string,width:tr().oneOfType([tr().number,tr().string]),xmlns:tr().string},tc.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var td=["children"],tf=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,td);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),a||(a=tn.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"})),r)}),th=["children"],tp=["children"],tm=["children"],tv=["children"],tg=["children"],ty=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,th);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),s||(s=tn.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tn.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),r)}),tb=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tp);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),u||(u=tn.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"})),r)}),tx=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tm);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),c||(c=tn.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"})),r)}),tw=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tv);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),d||(d=tn.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"})),r)}),tE=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tg);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),f||(f=tn.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),h||(h=tn.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),p||(p=tn.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),m||(m=tn.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),v||(v=tn.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),g||(g=tn.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),y||(y=tn.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),b||(b=tn.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),x||(x=tn.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"})),r)}),tj=["children"],tS=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tj);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),w||(w=tn.createElement("path",{d:"M16,30a1.06,1.06,0,0,1-.42-.09A1,1,0,0,1,15,29V18.41L8.41,25,7,23.59,14.59,16,7,8.41,8.41,7,15,13.59V3a1,1,0,0,1,.58-.91,1,1,0,0,1,1.07.15l7,6A1,1,0,0,1,24,9a1,1,0,0,1-.29.75L17.41,16l6.3,6.29A1,1,0,0,1,24,23a1,1,0,0,1-.35.72l-7,6A1,1,0,0,1,16,30Zm1-11.59v8.42l4.53-3.89ZM17,5.17v8.42l4.53-4.53Z"})),r)}),tC=["children"],tk=["children"],tA=["children"],tO=["children"],tT=["children"],t_=["children"],tM=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tC);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),E||(E=tn.createElement("path",{d:"M24 12L16 22 8 12z"})),r)}),tN=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tk);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),j||(j=tn.createElement("path",{d:"M20 24L10 16 20 8z"})),r)}),tR=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tA);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),S||(S=tn.createElement("path",{d:"M12 8L22 16 12 24z"})),r)}),tP=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tO);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),C||(C=tn.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),r)}),tL=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tT);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),k||(k=tn.createElement("path",{d:"M8 20L16 10 24 20z"})),r)}),tD=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t_);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),A||(A=tn.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"})),r)}),tI=["children"],tF=["children"],tV=["children"],tB=["children"],tU=["children"],tz=["children"],tH=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tI);return tn.createElement(tc,ta({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),O||(O=tn.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"})),T||(T=tn.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"})),r)}),t$=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tF);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),_||(_=tn.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"})),M||(M=tn.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"})),r)}),tW=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tV);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),N||(N=tn.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),R||(R=tn.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"})),r)}),tq=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tB);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),P||(P=tn.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"})),r)}),tG=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tU);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),L||(L=tn.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"})),r)}),tZ=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tz);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),D||(D=tn.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"})),I||(I=tn.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"})),r)}),tY=["children"],tX=["children"],tK=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tY);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),F||(F=tn.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"})),V||(V=tn.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),r)}),tJ=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tX);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),B||(B=tn.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"})),U||(U=tn.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),r)}),tQ=["children"],t0=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tQ);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),z||(z=tn.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"})),H||(H=tn.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"})),r)}),t1=["children"],t2=["children"],t4=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t1);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),$||($=tn.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),W||(W=tn.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),r)}),t3=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t2);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),q||(q=tn.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),G||(G=tn.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),r)}),t6=["children"],t5=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t6);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),Z||(Z=tn.createElement("circle",{cx:"16",cy:"16",r:"8"})),r)}),t8=["children"],t7=["children"],t9=["children"],re=["children"],rt=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t8);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),Y||(Y=tn.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),r)}),rr=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t7);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),X||(X=tn.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"})),r)}),rn=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t9);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),K||(K=tn.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"})),J||(J=tn.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),Q||(Q=tn.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),r)}),ri=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,re);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ee||(ee=tn.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"})),r)}),ro=["children"],ra=["children"],rs=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,ro);return tn.createElement(tc,ta({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),et||(et=tn.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"})),r)}),rl=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,ra);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),er||(er=tn.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"})),r)}),ru=["children"],rc=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,ru);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),en||(en=tn.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"})),ei||(ei=tn.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"})),r)}),rd=["children"],rf=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rd);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eo||(eo=tn.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"})),r)}),rh=["children"],rp=["children"],rm=["children"],rv=["children"],rg=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rh);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ea||(ea=tn.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"})),r)}),ry=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rp);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),es||(es=tn.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"})),r)}),rb=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rm);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),el||(el=tn.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"})),eu||(eu=tn.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"})),r)}),rx=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rv);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ec||(ec=tn.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"})),r)}),rw=["children"],rE=["children"],rj=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rw);return tn.createElement(tc,ta({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ed||(ed=tn.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"})),ef||(ef=tn.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"})),r)}),rS=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rE);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eh||(eh=tn.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"})),r)}),rC=["children"],rk=["children"],rA=["children"],rO=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rC);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ep||(ep=tn.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"})),r)}),rT=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rk);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),em||(em=tn.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=tn.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"})),r)}),r_=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rA);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eg||(eg=tn.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"})),r)}),rM=["children"],rN=["children"],rR=["children"],rP=["children"],rL=["children"],rD=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rM);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ey||(ey=tn.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=tn.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"})),r)}),rI=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rN);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ex||(ex=tn.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"})),r)}),rF=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rR);return tn.createElement(tc,ta({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ew||(ew=tn.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"})),eE||(eE=tn.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"})),r)}),rV=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rP);return tn.createElement(tc,ta({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ej||(ej=tn.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"})),eS||(eS=tn.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"})),r)}),rB=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rL);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eC||(eC=tn.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"})),ek||(ek=tn.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"})),r)}),rU=["children"],rz=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rU);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eA||(eA=tn.createElement("circle",{cx:"21",cy:"26",r:"2"})),eO||(eO=tn.createElement("circle",{cx:"21",cy:"6",r:"2"})),eT||(eT=tn.createElement("circle",{cx:"4",cy:"16",r:"2"})),e_||(e_=tn.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"})),r)}),rH=["children"],r$=["children"],rW=["children"],rq=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rH);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eM||(eM=tn.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),r)}),rG=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,r$);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eN||(eN=tn.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"})),eR||(eR=tn.createElement("circle",{cx:"22",cy:"10",r:"2"})),r)}),rZ=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rW);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eP||(eP=tn.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"})),eL||(eL=tn.createElement("circle",{cx:"22",cy:"10",r:"2"})),r)}),rY=["children"],rX=["children"],rK=["children"],rJ=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rY);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eD||(eD=tn.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"})),eI||(eI=tn.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"})),r)}),rQ=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rX);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eF||(eF=tn.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),eV||(eV=tn.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"})),r)}),r0=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rK);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eB||(eB=tn.createElement("path",{d:"M4,8c-1.2,0-2,0.8-2,2c0,1.2,0.8,2,2,2h3v1H4c-1.7,0-3-1.2-3-3c0-1.7,1.3-3,3-3l9.1,0l-2-2l0.7-0.7 L15,7.5l-3.2,3.2L11.1,10l2-2L4,8z"})),r)}),r1=["children"],r2=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,r1);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eU||(eU=tn.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"})),r)}),r4=["children"],r3=["children"],r6=["children"],r5=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,r4);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ez||(ez=tn.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"})),r)}),r8=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,r3);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eH||(eH=tn.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"})),e$||(e$=tn.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"})),r)}),r7=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,r6);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eW||(eW=tn.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"})),r)}),r9=["children"],ne=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,r9);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eq||(eq=tn.createElement("path",{d:"M25,2A11.01,11.01,0,0,0,14.7549,9.0244,6.9939,6.9939,0,0,0,9,6H6V9a7.0078,7.0078,0,0,0,7,7h1v9.0493a9.9229,9.9229,0,0,0-6.071,2.8794l1.414,1.4141a8,8,0,0,1,12.3086,1.2134l1.6616-1.1128A9.98,9.98,0,0,0,16,25.062V16h1A11.0125,11.0125,0,0,0,28,5V2ZM13,14A5.0057,5.0057,0,0,1,8,9V8H9a5.0054,5.0054,0,0,1,5,5v1ZM26,5a9.01,9.01,0,0,1-9,9H16V13a9.01,9.01,0,0,1,9-9h1Z"})),r)}),nt=["children"],nr=["children"],nn=["children"],ni=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nt);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eG||(eG=tn.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)"})),r)}),no=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nr);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eZ||(eZ=tn.createElement("path",{d:"M12,7H6V4c0-1.1,0.9-2,2-2s2,0.9,2,2h1c0-1.7-1.3-3-3-3S5,2.3,5,4v3H4C3.4,7,3,7.4,3,8v6c0,0.6,0.4,1,1,1h8c0.6,0,1-0.4,1-1 V8C13,7.4,12.6,7,12,7z M12,14H4V8h8V14z"})),r)}),na=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nn);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eY||(eY=tn.createElement("path",{d:"M24,15V6a2,2,0,0,0-2-2H10A2,2,0,0,0,8,6v9a2,2,0,0,0-2,2V28H8V17H24V28h2V17A2,2,0,0,0,24,15ZM10,6H22v9H10Z"})),eX||(eX=tn.createElement("path",{d:"M12 10H15V12H12zM17 10H20V12H17z"})),r)}),ns=["children"],nl=["children"],nu=["children"],nc=["children"],nd=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,ns);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eK||(eK=tn.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"})),eJ||(eJ=tn.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"})),r)}),nf=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nl);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eQ||(eQ=tn.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"})),e0||(e0=tn.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"})),r)}),nh=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nu);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e1||(e1=tn.createElement("path",{d:"M22 17H24V19H22z"})),e2||(e2=tn.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"})),r)}),np=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nc);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e4||(e4=tn.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"})),e3||(e3=tn.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"})),r)}),nm=["children"],nv=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nm);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e6||(e6=tn.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"})),e5||(e5=tn.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"})),e8||(e8=tn.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"})),r)}),ng=r(52322);function ny(e){let{size:t=24,className:r}=e;return(0,ng.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:r,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ng.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 nb(e){let{size:t=24}=e;return(0,ng.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ng.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 nx(e){let{size:t=24}=e;return(0,ng.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,ng.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 nw(e){let{size:t=24}=e;return(0,ng.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ng.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 nE(e){let{size:t=24}=e;return(0,ng.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,ng.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 nj(e){let{size:t=24}=e;return(0,ng.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,ng.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,ng.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,ng.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,ng.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,ng.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function nS(e){let{size:t=24}=e;return(0,ng.jsx)("svg",{width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:(0,ng.jsx)("path",{d:"M641.5 256c0 3.1-1.7 6.1-4.5 7.5L547.9 317c-1.4.8-2.8 1.4-4.5 1.4-1.4 0-3.1-.3-4.5-1.1-2.8-1.7-4.5-4.5-4.5-7.8v-35.6H295.7c25.3 39.6 40.5 106.9 69.6 106.9H392V354c0-5 3.9-8.9 8.9-8.9H490c5 0 8.9 3.9 8.9 8.9v89.1c0 5-3.9 8.9-8.9 8.9h-89.1c-5 0-8.9-3.9-8.9-8.9v-26.7h-26.7c-75.4 0-81.1-142.5-124.7-142.5H140.3c-8.1 30.6-35.9 53.5-69 53.5C32 327.3 0 295.3 0 256s32-71.3 71.3-71.3c33.1 0 61 22.8 69 53.5 39.1 0 43.9 9.5 74.6-60.4C255 88.7 273 95.7 323.8 95.7c7.5-20.9 27-35.6 50.4-35.6 29.5 0 53.5 23.9 53.5 53.5s-23.9 53.5-53.5 53.5c-23.4 0-42.9-14.8-50.4-35.6H294c-29.1 0-44.3 67.4-69.6 106.9h310.1v-35.6c0-3.3 1.7-6.1 4.5-7.8 2.8-1.7 6.4-1.4 8.9.3l89.1 53.5c2.8 1.1 4.5 4.1 4.5 7.2z"})})}function nC(e){let{size:t=24}=e;return(0,ng.jsx)("svg",{width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:(0,ng.jsx)("path",{d:"M192 64C86 64 0 150 0 256S86 448 192 448H448c106 0 192-86 192-192s-86-192-192-192H192zM496 168a40 40 0 1 1 0 80 40 40 0 1 1 0-80zM392 304a40 40 0 1 1 80 0 40 40 0 1 1 -80 0zM168 200c0-13.3 10.7-24 24-24s24 10.7 24 24v32h32c13.3 0 24 10.7 24 24s-10.7 24-24 24H216v32c0 13.3-10.7 24-24 24s-24-10.7-24-24V280H136c-13.3 0-24-10.7-24-24s10.7-24 24-24h32V200z"})})}function nk(){return(0,ng.jsx)("svg",{height:50,width:50,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,ng.jsxs)("g",{fill:"#32d66a",stroke:"none",children:[(0,ng.jsx)("path",{d:"M14,19H2a1,1,0,0,0,0,2H14a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,ng.jsx)("path",{d:"M14,27H2a1,1,0,0,0,0,2H14a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,ng.jsx)("path",{d:"M30,11H2a1,1,0,0,0,0,2H30a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,ng.jsx)("path",{d:"M2,5H30a1,1,0,0,0,0-2H2A1,1,0,0,0,2,5Z",fill:"#32d66a"}),(0,ng.jsx)("path",{d:"M25,17a7,7,0,1,0,7,7A7.008,7.008,0,0,0,25,17Zm-.293,9.707a1,1,0,0,1-1.414,0L20.586,24,22,22.586l2,2,4-4L29.414,22Z"})]})})}function nA(){return(0,ng.jsx)("svg",{height:50,width:50,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,ng.jsxs)("g",{fill:"#32d66a",stroke:"#32d66a",strokeLinecap:"square",strokeWidth:"2",children:[(0,ng.jsx)("path",{d:"M25,1,12.784,13.154a8.572,8.572,0,1,0,6.061,6.061L21,17V13h4V9h3l3-3V1Z",fill:"none",stroke:"#32d66a"}),(0,ng.jsx)("circle",{cx:"10",cy:"22",fill:"none",r:"3"})]})})}},41345:function(e,t,r){"use strict";r.d(t,{HE:function(){return u},gM:function(){return s},XC:function(){return o},ek:function(){return a},nH:function(){return l},Wl:function(){return d},cQ:function(){return c},ys:function(){return p},QL:function(){return h},lT:function(){return b},yi:function(){return E},XF:function(){return j},bd:function(){return y},tM:function(){return S},OZ:function(){return x},sG:function(){return C},gU:function(){return O},Vg:function(){return A},zQ:function(){return T},He:function(){return w},jy:function(){return k},rB:function(){return v}});var n=r(79381),i=r(2850);function o(e){return(0,i.Nf)({...e,route:"/consensus/tip"})}function a(e){return(0,i.Nf)({...e,route:"/consensus/tipstate"})}function s(e){return(0,i.Nf)({...e,route:"/consensus/network"})}function l(){let e=s({config:{swr:{revalidateOnFocus:!1}}}),t=(0,n.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.name)==="zen"?(0,i.du)():(0,i.Tc)()},{refreshInterval:6e4,keepPreviousData:!0});return t.data||0}let u="/syncer/peers";function c(e){return(0,i.Nf)({...e,route:u})}function d(e){return(0,i.mw)({...e,route:"/syncer/connect"},async e=>{e(e=>e===u)})}let f="/txpool/transactions";function h(e){return(0,i.Nf)({...e,route:f})}function p(e){return(0,i.mw)({...e,route:"/txpool/broadcast"},async e=>{await (0,i.gw)(2e3),e(e=>e.startsWith(f)||e.startsWith("/wallets"))})}let m="/wallets";function v(e){return(0,i.Nf)({...e,route:m})}let g="/wallets/:id/addresses";function y(e){return(0,i.Nf)({...e,route:g})}function b(e){return(0,i.V1)({...e,route:"/wallets/:id"},async e=>{e(e=>e.startsWith(m))})}function x(e){return(0,i.iv)({...e,route:"/wallets/:id"},async(e,t)=>{e(e=>e.startsWith(m.replace(":id",t.params.id)))})}function w(e){return(0,i.mw)({...e,route:"/wallets/:id/subscribe"})}function E(e){return(0,i.V1)({...e,route:"/wallets/:id/addresses/:addr"},async(e,t)=>{e(e=>e.startsWith("/wallets/:id".replace(":id",t.params.id)))})}function j(e){return(0,i.iv)({...e,route:"/wallets/:id/addresses/:addr"},async(e,t)=>{e(e=>e.startsWith(g.replace(":id",t.params.id)))})}function S(e){return(0,i.Nf)({...e,route:"/wallets/:id/balance"})}function C(e){return(0,i.Nf)({...e,route:"/wallets/:id/events"})}function k(e){return(0,i.Nf)({...e,route:"/wallets/:id/txpool"})}function A(e){return(0,i.Nf)({...e,route:"/wallets/:id/outputs"})}function O(e){return(0,i.mw)({...e,route:"/wallets/:id/fund"})}function T(e){return(0,i.mw)({...e,route:"/wallets/:id/release"})}},96206:function(e,t,r){"use strict";r.d(t,{rN:function(){return c},yF:function(){return u},Vz:function(){return p},ES:function(){return m},At:function(){return a},qN:function(){return f}});var n=r(81395),i=r(18149),o=r.n(i);function a(e){return 76===e.length&&function(e){let t=function(e){let t=[];for(let r=0;re.multipliedBy(a),new s.BigNumber(1)),n=u.dividedBy(o.multipliedBy(t));if(n.isLessThan(a)||e===p.length-1)return"".concat(c).concat(n.toFormat(r)," ").concat(p[e])}return""}function m(e){return e.toLocaleString()+" SF"}},2271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new 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)},26252:function(e,t,r){"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(43219),r(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)},55046:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{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 n=r(2784),i=r(60587),o=r(58839),a=r(26252),s=r(4424),l=r(44673),u=r(75903),c=r(47067),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,n.useContext)(o.SearchParamsContext),t=(0,n.useMemo)(()=>e?new h(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,n.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,n.useContext)(i.GlobalLayoutRouterContext),t=(0,n.useContext)(o.PathParamsContext);return e?function e(t,r){void 0===r&&(r={});let n=t[1];for(let t of Object.values(n)){let n=t[0],i=Array.isArray(n),o=i?n[1]:n;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===n[2]||"oc"===n[2]);a?r[n[0]]=n[1].split("/"):i&&(r[n[0]]=n[1]),r=e(t,r)}return r}(e.tree):t}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(i.LayoutRouterContext);return function e(t,r,n,i){let o;if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)o=t[1][r];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,r,!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)},47067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return n},isNotFoundError:function(){return i}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function i(e){return(null==e?void 0:e.digest)===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)},75903:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=r(7552),a="NEXT_REDIRECT";function s(e,t,r){void 0===r&&(r=!1);let n=Error(a);n.digest=a+";"+t+";"+e+";"+r;let i=o.requestAsyncStorage.getStore();return i&&(n.mutableCookies=i.mutableCookies),n}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,r,n,i]=e.digest.split(";",4);return t===a&&("replace"===r||"push"===r)&&"string"==typeof n&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(i=n||(n={})).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)},7552:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let n=r(2271),i=(0,n.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)},4424:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return 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)},23116:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},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}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(n=r||(r={})).AUTO="auto",n.FULL="full",n.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)},25146:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(67858),("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)},80920:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let n=r(43219),i=r(16794),o=i._(r(2784)),a=n._(r(28316)),s=n._(r(37412)),l=r(31918),u=r(97686),c=r(45802);r(84759);let d=r(54365),f=n._(r(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,r,n,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}})}function m(e){let[t,r]=o.version.split("."),n=parseInt(t,10),i=parseInt(r,10);return n>18||18===n&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,onLoad:E,onError:j,...S}=e;return o.default.createElement("img",{...S,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:n,src:r,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&p(e,f,y,b,x,v))},[r,f,y,b,x,j,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,b,x,v)},onError:e=>{w(!0),"empty"!==f&&x(!0),j&&j(e)}})});function g(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...m(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+r.src+r.srcSet+r.sizes,rel:"preload",href:r.srcSet?void 0:r.src,...n}))}let y=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(d.RouterContext),n=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||n||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:a,onLoadingComplete:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,b]=(0,o.useState)(!1),[x,w]=(0,o.useState)(!1),{props:E,meta:j}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:x});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...E,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:b,setShowAltText:w,ref:t}),j.priority?o.default.createElement(g,{isAppRouter:!r,imgAttributes:E}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13814:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let n=r(43219),i=n._(r(2784)),o=r(31068),a=r(33134),s=r(39585),l=r(51570),u=r(19868),c=r(54365),d=r(60587),f=r(93629),h=r(25146),p=r(10694),m=r(23116),v=new Set;function g(e,t,r,n,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let i=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,o=t+"%"+r+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,r,n);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let b=i.default.forwardRef(function(e,t){let r,n;let{href:s,as:v,children:b,prefetch:x=null,passHref:w,replace:E,shallow:j,scroll:S,locale:C,onClick:k,onMouseEnter:A,onTouchStart:O,legacyBehavior:T=!1,..._}=e;r=b,T&&("string"==typeof r||"number"==typeof r)&&(r=i.default.createElement("a",null,r));let M=i.default.useContext(c.RouterContext),N=i.default.useContext(d.AppRouterContext),R=null!=M?M:N,P=!M,L=!1!==x,D=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:I,as:F}=i.default.useMemo(()=>{if(!M){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(M,s,!0);return{href:e,as:v?(0,o.resolveHref)(M,v):t||e}},[M,s,v]),V=i.default.useRef(I),B=i.default.useRef(F);T&&(n=i.default.Children.only(r));let U=T?n&&"object"==typeof n&&n.ref:t,[z,H,$]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(B.current!==F||V.current!==I)&&($(),B.current=F,V.current=I),z(e),U&&("function"==typeof U?U(e):"object"==typeof U&&(U.current=e))},[F,U,I,$,z]);i.default.useEffect(()=>{R&&H&&L&&g(R,I,F,{locale:C},{kind:D},P)},[F,I,H,C,L,null==M?void 0:M.locale,R,P,D]);let q={ref:W,onClick(e){T||"function"!=typeof k||k(e),T&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,r,n,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](r,n,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](n||r,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,R,I,F,E,j,S,C,P,L)},onMouseEnter(e){T||"function"!=typeof A||A(e),T&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&(L||!P)&&g(R,I,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},P)},onTouchStart(e){T||"function"!=typeof O||O(e),T&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&(L||!P)&&g(R,I,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},P)}};if((0,l.isAbsoluteUrl)(F))q.href=F;else if(!T||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==C?C:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,h.getDomainLocale)(F,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(F,e,null==M?void 0:M.defaultLocale))}return T?i.default.cloneElement(n,q):i.default.createElement("a",{..._,...q},r)}),x=b;("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)},93629:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(2784),i=r(30857),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!o,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:o,elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,f.current]);let p=(0,n.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("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)},31918:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(84759);let n=r(69933),i=r(97686);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 r;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:S,fetchPriority:C,layout:k,objectFit:A,objectPosition:O,lazyBoundary:T,lazyRoot:_,...M}=e,{imgConf:N,showAltText:R,blurComplete:P,defaultLoader:L}=t,D=N||i.imageConfigDefault;if("allSizes"in D)s=D;else{let e=[...D.deviceSizes,...D.imageSizes].sort((e,t)=>e-t),t=D.deviceSizes.sort((e,t)=>e-t);s={...D,allSizes:e,deviceSizes:t}}let I=M.loader||L;delete M.loader,delete M.srcSet;let F="__next_img_default"in I;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=I;I=t=>{let{config:r,...n}=t;return e(n)}}if(k){"fill"===k&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[k];t&&!d&&(d=t)}let V="",B=a(g),U=a(y);if("object"==typeof(r=c)&&(o(r)||void 0!==r.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,S=S||e.blurDataURL,V=e.src,!b){if(B||U){if(B&&!U){let t=B/e.width;U=Math.round(e.height*t)}else if(!B&&U){let t=U/e.height;B=Math.round(e.width*t)}}else B=e.width,U=e.height}}let z=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:V)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,z=!1),s.unoptimized&&(f=!0),F&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(C="high");let H=a(v),$=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:A,objectPosition:O}:{},R?{}:{color:"transparent"},x),W=P||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:B,heightInt:U,blurWidth:l,blurHeight:u,blurDataURL:S||"",objectFit:$.objectFit})+'")':'url("'+j+'")',q=W?{backgroundSize:$.objectFit||"cover",backgroundPosition:$.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},G=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:B,quality:H,sizes:d,loader:I}),Z={...M,loading:z?"lazy":p,fetchPriority:C,width:B,height:U,decoding:"async",className:m,style:{...$,...q},sizes:G.sizes,srcSet:G.srcSet,src:G.src},Y={unoptimized:f,priority:h,placeholder:j,fill:b};return{props:Z,meta:Y}}},69933:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=n?40*n:t,l=i?40*i:r,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},81963:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let n=r(43219),i=r(31918),o=r(84759),a=r(80920),s=n._(r(2088)),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,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}},u=a.Image},2088:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:i}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},44673:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let n=r(16794),i=n._(r(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},49854:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},1240:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},97729:function(e,t,r){e.exports=r(37412)},96577:function(e,t,r){e.exports=r(81963)},39097:function(e,t,r){e.exports=r(13814)},82876:function(e,t,r){e.exports=r(55046)},5632:function(e,t,r){e.exports=r(60222)},24470:function(e){var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=r(),e.exports.createColors=r},34406:function(e){var t,r,n,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(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c1)for(var r=1;r=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var r=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\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(r)||[""]}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,r){for(var n=0,i=t.length,o=e;n>>7-e%8&1)==1},put:function(e,t){for(var r=0;r>>t-r-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,r){var n=r(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var r=0;r=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 r=-1;r<=7;r++)if(!(e+r<=-1)&&!(this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[e+r][t+n]=!0:this.modules[e+r][t+n]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=a.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},u.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var i=0;i>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},u.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=a.getBCHTypeInfo(r),i=0;i<15;i++){var o=!e&&(n>>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&&(n>>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 r=-1,n=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[n][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,n,s-l)&&(u=!u),this.modules[n][s-l]=u,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,r){for(var n=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,n)},l.createBytes=function(e,t){for(var r=0,n=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)},r=0;r<8;r++)t.EXP_TABLE[r]=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,r){switch(e){case a.PATTERN000:return(t+r)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return r%3==0;case a.PATTERN011:return(t+r)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case a.PATTERN101:return t*r%2+t*r%3==0;case a.PATTERN110:return(t*r%2+t*r%3)%2==0;case a.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),r=0;r5&&(r+=3+o-5)}for(var n=0;n{var n,i;n=e,i=function(e){var t,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=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:or)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*r);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&&r.amdO?define(["exports"],i):i((n="u">typeof globalThis?globalThis:n||self).fastUniqueNumbers={})},()=>(o||i((o={exports:{}}).exports,o),o.exports))())?c(p(a)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of h(t))m.call(e,r)||void 0===r||d(e,r,{get:()=>t[r],enumerable:!(n=f(t,r))||n.enumerable});return e})(a&&a.__esModule?s:d(s,"default",{value:a,enumerable:!0}),a)),g=e=>void 0!==e.method&&"call"===e.method,y=e=>null===e.error&&"number"==typeof e.id;l=e=>{let t=new Map([[0,()=>{}]]),r=new Map([[0,()=>{}]]),n=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(g(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=n.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=r.get(i);if("number"==typeof e){let t=n.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(),r.delete(i);else throw Error("The timer is in an undefined state.")}}else if(y(e)){let{id:i}=e,o=n.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;n.delete(i),"interval"===s?t.delete(a):r.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let r=(0,v.generateUniqueNumber)(n);n.set(r,{timerId:e,timerType:"interval"}),t.set(e,r),i.postMessage({id:r,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,v.generateUniqueNumber)(n);n.set(t,{timerId:e,timerType:"timeout"}),r.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,r)=>{let n=(0,v.generateUniqueNumber)(t);return t.set(n,()=>{e(),"function"==typeof t.get(n)&&i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}}),n},setTimeout:(e,t)=>{let n=(0,v.generateUniqueNumber)(r);return r.set(n,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:n,timerType:"timeout"}}),n}}},n=null,()=>{if(null!==n)return n;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 n=l(t),setTimeout(()=>URL.revokeObjectURL(t)),n};var b=(typeof window>"u"?"undefined":typeof window)=="object",x={setTimeout:b?setTimeout.bind(window):setTimeout,clearTimeout:b?clearTimeout.bind(window):clearTimeout,setInterval:b?setInterval.bind(window):setInterval,clearInterval:b?clearInterval.bind(window):clearInterval},w={},E=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,w[e]=w[e]||[],w[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),r=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(r,t),x.setTimeout(()=>{window.localStorage.removeItem(r)},500),w[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=w[this.name].indexOf(this);w[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)}},j=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:E;function S(){return Math.random().toString(36).substring(2)}var C=class{options;channel;token=S();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:r,action:n}=t.data;r!==this.token&&(0===n&&r>this.token&&(e=!0),1===n&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>x.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(r=>{let n=()=>{if(e)return;e=!0;try{x.clearInterval(t)}catch{}let n=this.intervals.indexOf(t);n>=0&&this.intervals.splice(n,1),this.channel.removeEventListener("message",i),r()};t=x.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&n()})};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=>x.clearInterval(e))}catch{}}}},k=class{channel;options;elector;token=S();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new j(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new C(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:r,data:n}=e.data;switch(t){case 3:this.registry.set(r,2);break;case 4:this.registry.delete(r);break;case 5:this.idle(r);break;case 6:this.active(r);break;case 7:this.prompt(r);break;case 8:this.start(r);break;case 9:this.reset(r);break;case 10:this.activate(r);break;case 11:this.pause(r);break;case 12:this.resume(r);break;case 13:this.options.onMessage(n)}}),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()}},A=b?document:null,O=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function T(e,t){let r=0;return function(...n){let i=new Date().getTime();if(!(i-rDate.now();function M({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:r=0,element:n=A,events:i=O,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:c=()=>{},onActive:d=()=>{},onAction:f=()=>{},onMessage:h=()=>{},debounce:p=0,throttle:m=0,eventsThrottle:v=200,startOnMount:g=!0,startManually:y=!1,stopOnIdle:w=!1,crossTab:E=!1,name:j="idle-timer",syncTimers:S=0,leaderElection:C=!1,disabled:M=!1}={}){let N=(0,u.useRef)(_()),R=(0,u.useRef)(_()),P=(0,u.useRef)(null),L=(0,u.useRef)(null),D=(0,u.useRef)(0),I=(0,u.useRef)(0),F=(0,u.useRef)(0),V=(0,u.useRef)(0),B=(0,u.useRef)(!1),U=(0,u.useRef)(!1),z=(0,u.useRef)(!1),H=(0,u.useRef)(!0),$=(0,u.useRef)(!1),W=(0,u.useRef)(null),q=(0,u.useRef)(null),G=(0,u.useRef)(e),Z=(0,u.useRef)(0);(0,u.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."),r&&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(r>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(r>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(r?(G.current=e-r,Z.current=r):(G.current=e,Z.current=t),!H.current){if(y||M)return;B.current&&(en.current(null,eF),q.current&&q.current.active()),ey()}},[e,t,r,y,M]);let Y=(0,u.useRef)(w);(0,u.useEffect)(()=>{Y.current=w},[w]);let X=(0,u.useRef)(a),K=(0,u.useRef)(n),J=(0,u.useRef)([...new Set([...i,...a]).values()]),Q=(0,u.useRef)(M);(0,u.useEffect)(()=>{Q.current=M,!H.current&&(M?ew():y||ey())},[M]);let ee=(0,u.useRef)(s);(0,u.useEffect)(()=>{ee.current=s},[s]);let et=(0,u.useRef)(l);(0,u.useEffect)(()=>{et.current=l},[l]);let er=(0,u.useRef)(c);(0,u.useEffect)(()=>{er.current=c},[c]);let en=(0,u.useRef)(d);(0,u.useEffect)(()=>{en.current=d},[d]);let ei=(0,u.useRef)(f);(0,u.useEffect)(()=>{ei.current=f},[f]);let eo=(0,u.useRef)(h);(0,u.useEffect)(()=>{eo.current=h},[h]);let ea=(0,u.useMemo)(()=>{let e=(e,t)=>ei.current(e,t);return p>0?function(e,t){let r;function n(...i){r&&clearTimeout(r),r=setTimeout(()=>{e(...i),r=null},t)}return n.cancel=function(){clearTimeout(r)},n}(e,p):m>0?T(e,m):e},[m,p]),es=(0,u.useRef)();(0,u.useEffect)(()=>{E&&S&&(es.current=T(()=>{q.current.active()},S))},[E,S]);let el=()=>{null!==W.current&&(x.clearTimeout(W.current),W.current=null)},eu=(e,t=!0)=>{el(),W.current=x.setTimeout(eh,e||G.current),t&&(L.current=_())},ec=e=>{U.current||B.current||(et.current(e,eF),ee.current({type:"active",prompted:!0},eF)),V.current=0,F.current=_(),U.current=!0,eu(Z.current,!1)},ed=()=>{el(),B.current||(er.current(null,eF),ee.current({type:"idle"},eF)),B.current=!0,P.current=_(),Y.current?eg():U.current&&(F.current=0,U.current=!1)},ef=e=>{el(),(B.current||U.current)&&(en.current(e,eF),ee.current({type:"active",prompted:!1},eF)),U.current=!1,F.current=0,B.current=!1,D.current+=_()-P.current,I.current+=_()-P.current,ev(),eu()},eh=e=>{if(!B.current){ea.cancel&&ea.cancel();let t=_()-L.current;if(!(G.current+Z.current0&&!U.current){q.current?q.current.prompt():ec(e);return}q.current?q.current.idle():ed();return}q.current?q.current.active():ef(e)},ep=e=>{if(g||L.current||(L.current=_(),en.current(null,eF)),ea(e,eF),U.current)return;if(el(),!B.current&&X.current.includes(e.type)){eh(e);return}let t=_()-L.current;if(B.current&&!w||!B.current&&t>=G.current){eh(e);return}z.current=!1,V.current=0,F.current=0,eu(),E&&S&&es.current()},em=(0,u.useRef)(ep);(0,u.useEffect)(()=>{let e=$.current;e&&eg(),v>0?em.current=T(ep,v):em.current=ep,e&&ev()},[v,m,p,ei,E,S]);let ev=()=>{b&&K.current&&($.current||(J.current.forEach(e=>{K.current.addEventListener(e,em.current,{capture:!0,passive:!0})}),$.current=!0))},eg=(e=!1)=>{b&&K.current&&($.current||e)&&(J.current.forEach(e=>{K.current.removeEventListener(e,em.current,{capture:!0})}),$.current=!1)},ey=(0,u.useCallback)(e=>!Q.current&&(el(),ev(),B.current=!1,U.current=!1,z.current=!1,V.current=0,F.current=0,q.current&&!e&&q.current.start(),eu(),!0),[W,B,Q,G,q]),eb=(0,u.useCallback)(e=>!Q.current&&(el(),ev(),R.current=_(),D.current+=_()-P.current,I.current+=_()-P.current,D.current=0,B.current=!1,U.current=!1,z.current=!1,V.current=0,F.current=0,q.current&&!e&&q.current.reset(),y||eu(),!0),[W,B,G,y,Q,q]),ex=(0,u.useCallback)(e=>!Q.current&&(el(),ev(),(B.current||U.current)&&ef(),B.current=!1,U.current=!1,z.current=!1,V.current=0,F.current=0,R.current=_(),q.current&&!e&&q.current.activate(),eu(),!0),[W,B,U,Q,G,q]),ew=(0,u.useCallback)((e=!1)=>!Q.current&&!z.current&&(V.current=eT(),z.current=!0,eg(),el(),q.current&&!e&&q.current.pause(),!0),[W,Q,q]),eE=(0,u.useCallback)((e=!1)=>!Q.current&&!!z.current&&(z.current=!1,U.current||ev(),B.current||eu(V.current),F.current&&(F.current=_()),q.current&&!e&&q.current.resume(),!0),[W,G,Q,V,q]),ej=(0,u.useCallback)((e,t)=>(q.current?(t&&eo.current(e,eF),q.current.message(e)):t&&eo.current(e,eF),!0),[h]),eS=(0,u.useCallback)(()=>B.current,[B]),eC=(0,u.useCallback)(()=>U.current,[U]),ek=(0,u.useCallback)(()=>q.current?q.current.isLeader:null,[q]),eA=(0,u.useCallback)(()=>q.current?q.current.isLastActive:null,[q]),eO=(0,u.useCallback)(()=>q.current?q.current.token:null,[q]),eT=(0,u.useCallback)(()=>{if(z.current)return V.current;let e=Math.floor((V.current?V.current:Z.current+G.current)-(L.current?_()-L.current:0));return e<0?0:Math.abs(e)},[G,Z,U,V,L]),e_=(0,u.useCallback)(()=>Math.round(_()-R.current),[R]),eM=(0,u.useCallback)(()=>Math.round(_()-N.current),[N]),eN=(0,u.useCallback)(()=>P.current?new Date(P.current):null,[P]),eR=(0,u.useCallback)(()=>L.current?new Date(L.current):null,[L]),eP=(0,u.useCallback)(()=>B.current?Math.round(_()-P.current+D.current):Math.round(D.current),[P,D]),eL=(0,u.useCallback)(()=>B.current?Math.round(_()-P.current+I.current):Math.round(I.current),[P,I]),eD=(0,u.useCallback)(()=>{let e=Math.round(e_()-eP());return e>=0?e:0},[P,D]),eI=(0,u.useCallback)(()=>{let e=Math.round(eM()-eL());return e>=0?e:0},[P,D]);(0,u.useEffect)(()=>{if(p>0&&m>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(x.setTimeout=o.setTimeout,x.clearTimeout=o.clearTimeout,x.setInterval=o.setInterval,x.clearInterval=o.clearInterval);let e=()=>{q.current&&q.current.close(),ea.cancel&&ea.cancel(),el(),eg(!0)};return b&&window.addEventListener("beforeunload",e),()=>{b&&window.removeEventListener("beforeunload",e),q.current&&q.current.close(),ea.cancel&&ea.cancel(),el(),eg(!0)}},[]),(0,u.useEffect)(()=>{q.current&&q.current.close(),E?q.current=new k({channelName:j,leaderElection:C,onPrompt:()=>{ec()},onIdle:()=>{ed()},onActive:()=>{ef()},onMessage:e=>{eo.current(e,eF)},start:ey,reset:eb,activate:ex,pause:ew,resume:eE}):q.current=null},[E,j,C,et,er,en,eo,ey,eb,ew,eE]),(0,u.useEffect)(()=>{H.current||(el(),eg(!0)),y||M||(g?ey():ev())},[y,g,M,H]),(0,u.useEffect)(()=>{if(!H.current){let e=[...new Set([...i,...a]).values()];eg(),J.current=e,K.current=n,X.current=a,y||M||(g?ey():ev())}},[n,JSON.stringify(i),JSON.stringify(a),H,M,y,g]),(0,u.useEffect)(()=>{H.current&&(H.current=!1)},[H]);let eF={message:ej,start:ey,reset:eb,activate:ex,pause:ew,resume:eE,isIdle:eS,isPrompted:eC,isLeader:ek,isLastActiveTab:eA,getTabId:eO,getRemainingTime:eT,getElapsedTime:e_,getTotalElapsedTime:eM,getLastIdleTime:eN,getLastActiveTime:eR,getIdleTime:eP,getTotalIdleTime:eL,getActiveTime:eD,getTotalActiveTime:eI,setOnPresenceChange:e=>{s=e,ee.current=e},setOnPrompt:e=>{l=e,et.current=e},setOnIdle:e=>{c=e,er.current=e},setOnActive:e=>{d=e,en.current=e},setOnAction:e=>{f=e,ei.current=e},setOnMessage:e=>{h=e,eo.current=e}};return eF}(0,u.createContext)(null).Consumer},72660:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(13980)),i=o(r(2784));function o(e){return e&&e.__esModule?e:{default:e}}var a={d:n.default.string.isRequired,fill:n.default.string.isRequired,transformX:n.default.number.isRequired,transformY:n.default.number.isRequired},s=function(e){var t=e.d,r=e.fill,n=e.transformX,o=e.transformY;return i.default.createElement("path",{d:t,fill:r,transform:"matrix("+[1,0,0,1,n,o]+")"})};s.propTypes=a,s.defaultProps={},t.default=s},76672:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",n({},s,{height:r,width:r,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,r){"use strict";var n=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(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,n({},f,{size:s}),p.map(function(e,n){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(n*m),s=Math.round((i+1)*m)-o,c=Math.round((n+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+n+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?r:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},32718:function(e,t,r){var n,i=r(58085),o=r(41964),a=r(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return n=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(r,o,l){if(n++>100)throw n=0,Error("Call stack overflow for "+l);if(""===r)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],r=[],n=/[\.0-9]([%a-z]+)/gi,i=n.exec(e);i;)i&&i[1]&&(-1===r.indexOf(i[1].toLowerCase())&&(t.push(i[1]),r.push(i[1].toLowerCase())),i=n.exec(e));return t}(r=function(t,r){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var n,o="",a=t;n=s.exec(a);){n[0].index>0&&(o+=a.substring(0,n[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,"",r);o+=l.pre+u,a=l.post}return o+a}(r,l));if(c.length>1||r.indexOf("var(")>-1)return o+"("+r+")";var d=c[0]||"";"%"===d&&(r=r.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=r.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+r+")"}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=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(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 r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},41964:function(e,t,r){var n=r(82294);e.exports=function e(t,r,i){return(function(e,t){var r=[],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=n("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");r.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return r})(t,r).reduce(function(n,o){var a,s;return n.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,r,i),s,t)))},t)}},7847:function(e,t,r){let n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i){if(!!t.loose===e.loose)return e;e=e.value}u("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){let t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=i;let o=r(71388),{safeRe:a,t:s}=r(94808),l=r(28117),u=r(10952),c=r(52435),d=r(66843)},66843:function(e,t,r){class n{constructor(e,t){if(t=a(t),e instanceof n){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new n(e.raw,t)}if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let t=(this.options.includePrerelease&&m)|(this.options.loose&&v),r=t+":"+e,n=o.get(r);if(n)return n;let i=this.options.loose,a=i?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];l("hyphen replace",e=e.replace(a,_(this.options.includePrerelease))),l("comparator trim",e=e.replace(c[d.COMPARATORTRIM],f)),l("tilde trim",e=e.replace(c[d.TILDETRIM],h)),l("caret trim",e=e.replace(c[d.CARETTRIM],p));let u=e.split(" ").map(e=>x(e,this.options)).join(" ").split(/\s+/).map(e=>T(e,this.options));i&&(u=u.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(c[d.COMPARATORLOOSE])))),l("range list",u);let y=new Map,b=u.map(e=>new s(e,this.options));for(let e of b){if(g(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");let w=[...y.values()];return o.set(r,w),w}intersects(e,t){if(!(e instanceof n))throw TypeError("a Range is required");return this.set.some(r=>b(r,t)&&e.set.some(e=>b(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,y=e=>""===e.value,b=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r},x=(e,t)=>(l("comp",e,t),l("caret",e=S(e,t)),l("tildes",e=E(e,t)),l("xrange",e=k(e,t)),l("stars",e=O(e,t)),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map(e=>j(e,t)).join(" "),j=(e,t)=>{let r=t.loose?c[d.TILDELOOSE]:c[d.TILDE];return e.replace(r,(t,r,n,i,o)=>{let a;return l("tilde",e,t,r,n,i,o),w(r)?a="":w(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:w(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(l("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,l("tilde return",a),a})},S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(" "),C=(e,t)=>{l("caret",e,t);let r=t.loose?c[d.CARETLOOSE]:c[d.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let s;return l("caret",e,t,r,i,o,a),w(r)?s="":w(i)?s=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(o)?s="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(l("replaceCaret pr",a),s="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(l("no pr"),s="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),l("caret return",s),s})},k=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>A(e,t)).join(" ")),A=(e,t)=>{e=e.trim();let r=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(r,(r,n,i,o,a,s)=>{l("xRange",e,r,n,i,o,a,s);let u=w(i),c=u||w(o),d=c||w(a);return"="===n&&d&&(n=""),s=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),"<"===n&&(s="-0"),r=`${n+i}.${o}.${a}${s}`):c?r=`>=${i}.0.0${s} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),l("xRange return",r),r})},O=(e,t)=>(l("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),T=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),_=e=>(t,r,n,i,o,a,s,l,u,c,d,f,h)=>`${r=w(n)?"":w(i)?`>=${n}.0.0${e?"-0":""}`:w(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=w(u)?"":w(c)?`<${+u+1}.0.0-0`:w(d)?`<${u}.${+c+1}.0-0`:f?`<=${u}.${c}.${d}-${f}`:e?`<${u}.${c}.${+d+1}-0`:`<=${l}`}`.trim(),M=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},52435:function(e,t,r){let n=r(10952),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(55558),{safeRe:a,t:s}=r(94808),l=r(71388),{compareIdentifiers:u}=r(14935);class c{constructor(e,t){if(t=l(t),e instanceof c){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},36694:function(e,t,r){let n=r(79943);e.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},28117:function(e,t,r){let n=r(33276),i=r(77893),o=r(16379),a=r(8463),s=r(21897),l=r(30506);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return i(e,r,u);case">":return o(e,r,u);case">=":return a(e,r,u);case"<":return s(e,r,u);case"<=":return l(e,r,u);default:throw TypeError(`Invalid operator: ${t}`)}}},98686:function(e,t,r){let n=r(52435),i=r(79943),{safeRe:o,t:a}=r(94808);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else r=e.match(o[a.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},65914:function(e,t,r){let n=r(52435);e.exports=(e,t,r)=>{let i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)}},55404:function(e,t,r){let n=r(92271);e.exports=(e,t)=>n(e,t,!0)},92271:function(e,t,r){let n=r(52435);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},66007:function(e,t,r){let n=r(79943);e.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),o=r.compare(i);if(0===o)return null;let a=o>0,s=a?r:i,l=a?i:r,u=!!s.prerelease.length,c=!!l.prerelease.length;if(c&&!u)return l.patch||l.minor?s.patch?"patch":s.minor?"minor":"major":"major";let d=u?"pre":"";return r.major!==i.major?d+"major":r.minor!==i.minor?d+"minor":r.patch!==i.patch?d+"patch":"prerelease"}},33276:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>0===n(e,t,r)},16379:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>n(e,t,r)>0},8463:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>n(e,t,r)>=0},86360:function(e,t,r){let n=r(52435);e.exports=(e,t,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,o).version}catch(e){return null}}},21897:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>0>n(e,t,r)},30506:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>0>=n(e,t,r)},14551:function(e,t,r){let n=r(52435);e.exports=(e,t)=>new n(e,t).major},469:function(e,t,r){let n=r(52435);e.exports=(e,t)=>new n(e,t).minor},77893:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>0!==n(e,t,r)},79943:function(e,t,r){let n=r(52435);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},54250:function(e,t,r){let n=r(52435);e.exports=(e,t)=>new n(e,t).patch},58204:function(e,t,r){let n=r(79943);e.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},70733:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>n(t,e,r)},72961:function(e,t,r){let n=r(65914);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},59844:function(e,t,r){let n=r(66843);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},51116:function(e,t,r){let n=r(65914);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},97230:function(e,t,r){let n=r(79943);e.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}},97699:function(e,t,r){let n=r(94808),i=r(55558),o=r(52435),a=r(14935),s=r(79943),l=r(97230),u=r(36694),c=r(86360),d=r(66007),f=r(14551),h=r(469),p=r(54250),m=r(58204),v=r(92271),g=r(70733),y=r(55404),b=r(65914),x=r(51116),w=r(72961),E=r(16379),j=r(21897),S=r(33276),C=r(77893),k=r(8463),A=r(30506),O=r(28117),T=r(98686),_=r(7847),M=r(66843),N=r(59844),R=r(48865),P=r(53727),L=r(14338),D=r(21542),I=r(36240),F=r(89106),V=r(90995),B=r(47805),U=r(22013),z=r(81338),H=r(53122);e.exports={parse:s,valid:l,clean:u,inc:c,diff:d,major:f,minor:h,patch:p,prerelease:m,compare:v,rcompare:g,compareLoose:y,compareBuild:b,sort:x,rsort:w,gt:E,lt:j,eq:S,neq:C,gte:k,lte:A,cmp:O,coerce:T,Comparator:_,Range:M,satisfies:N,toComparators:R,maxSatisfying:P,minSatisfying:L,minVersion:D,validRange:I,outside:F,gtr:V,ltr:B,intersects:U,simplifyRange:z,subset:H,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},55558:function(e){let t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},10952:function(e,t,r){var n=r(34406);let i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},14935:function(e){let t=/^[0-9]+$/,r=(e,r)=>{let n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:er(t,e)}},71388:function(e){let t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},94808:function(e,t,r){let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=r(55558),a=r(10952);t=e.exports={};let s=t.re=[],l=t.safeRe=[],u=t.src=[],c=t.t={},d=0,f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[f,i]],p=e=>{for(let[t,r]of h)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},m=(e,t,r)=>{let n=p(t),i=d++;a(e,i,t),c[e]=i,u[i]=t,s[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),m("MAINVERSION",`(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[c.NUMERICIDENTIFIER]}|${u[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[c.NUMERICIDENTIFIERLOOSE]}|${u[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${u[c.PRERELEASEIDENTIFIER]}(?:\\.${u[c.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[c.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${f}+`),m("BUILD",`(?:\\+(${u[c.BUILDIDENTIFIER]}(?:\\.${u[c.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[c.MAINVERSION]}${u[c.PRERELEASE]}?${u[c.BUILD]}?`),m("FULL",`^${u[c.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[c.MAINVERSIONLOOSE]}${u[c.PRERELEASELOOSE]}?${u[c.BUILD]}?`),m("LOOSE",`^${u[c.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[c.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:${u[c.PRERELEASE]})?${u[c.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:${u[c.PRERELEASELOOSE]})?${u[c.BUILD]}?)?)?`),m("XRANGE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAINLOOSE]}$`),m("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),m("COERCERTL",u[c.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${u[c.LONECARET]}${u[c.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[c.LONECARET]}${u[c.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[c.GTLT]}\\s*(${u[c.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]}|${u[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[c.XRANGEPLAIN]})\\s+-\\s+(${u[c.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[c.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},90995:function(e,t,r){let n=r(89106);e.exports=(e,t,r)=>n(e,t,">",r)},22013:function(e,t,r){let n=r(66843);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},47805:function(e,t,r){let n=r(89106);e.exports=(e,t,r)=>n(e,t,"<",r)},53727:function(e,t,r){let n=r(52435),i=r(66843);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||-1===a.compare(e))&&(o=e,a=new n(o,r))}),o}},14338:function(e,t,r){let n=r(52435),i=r(66843);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||1===a.compare(e))&&(o=e,a=new n(o,r))}),o}},21542:function(e,t,r){let n=r(52435),i=r(66843),o=r(16379);e.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r)||(r=new n("0.0.0-0"),e.test(r)))return r;r=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!r||o(r,a))&&(r=a)}return r&&e.test(r)?r:null}},89106:function(e,t,r){let n=r(52435),i=r(7847),{ANY:o}=i,a=r(66843),s=r(59844),l=r(16379),u=r(21897),c=r(30506),d=r(8463);e.exports=(e,t,r,f)=>{let h,p,m,v,g;switch(e=new n(e,f),t=new a(t,f),r){case">":h=l,p=c,m=u,v=">",g=">=";break;case"<":h=u,p=d,m=l,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(let r=0;r{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,h(e.semver,a.semver,f)?a=e:m(e.semver,s.semver,f)&&(s=e)}),a.operator===v||a.operator===g||(!s.operator||s.operator===v)&&p(e,s.semver)||s.operator===g&&m(e,s.semver))return!1}return!0}},81338:function(e,t,r){let n=r(59844),i=r(92271);e.exports=(e,t,r)=>{let o=[],a=null,s=null,l=e.sort((e,t)=>i(e,t,r));for(let e of l){let i=n(e,t,r);i?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null)}a&&o.push([a,null]);let u=[];for(let[e,t]of o)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");let c=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return c.length=0.0.0-0")],u=[new i(">=0.0.0")],c=(e,t,r)=>{let n,i,c,h,p,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?l:u}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=u}let g=new Set;for(let t of e)">"===t.operator||">="===t.operator?n=d(n,t,r):"<"===t.operator||"<="===t.operator?i=f(i,t,r):g.add(t.semver);if(g.size>1||n&&i&&((c=s(n.semver,i.semver,r))>0||0===c&&(">="!==n.operator||"<="!==i.operator)))return null;for(let e of g){if(n&&!a(e,String(n),r)||i&&!a(e,String(i),r))return null;for(let n of t)if(!a(e,String(n),r))return!1;return!0}let y=!!i&&!r.includePrerelease&&!!i.semver.prerelease.length&&i.semver,b=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(y&&1===y.prerelease.length&&"<"===i.operator&&0===y.prerelease[0]&&(y=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if((h=d(n,e,r))===e&&h!==n)return!1}else if(">="===n.operator&&!a(n.semver,String(e),r))return!1}if(i){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if((p=f(i,e,r))===e&&p!==i)return!1}else if("<="===i.operator&&!a(i.semver,String(e),r))return!1}if(!e.operator&&(i||n)&&0!==c)return!1}return(!n||!m||!!i||0===c)&&(!i||!v||!!n||0===c)&&!b&&!y},d=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e},f=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;r:for(let n of e.set){for(let e of t.set){let t=c(n,e,r);if(i=i||null!==t,t)continue r}if(i)return!1}return!0}},48865:function(e,t,r){let n=r(66843);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},36240:function(e,t,r){let n=r(66843);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},6692:function(e,t,r){let n=r(83128);e.exports=(n.__esModule?n:{default:n}).default},83128:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(n=r(37540))&&n.__esModule?n:{default:n};function o({version:e,from:t,to:r}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"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,r){"use strict";var n,i=r(34406);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{dim:()=>l,default:()=>u});let o=(n=r(24470))&&n.__esModule?n:{default:n},a=new Set;function s(e,t,r){(void 0===i||!i.env.JEST_WORKER_ID)&&(r&&a.has(r)||(r&&a.add(r),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 r=e.length,n=Array(r),i={},o=r,a=function(e){for(var t=new Map,r=0,n=e.length;r{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,r=!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,n.useRef)({item:null,parsed:t}),d=(0,n.useSyncExternalStore)((0,n.useCallback)(t=>{let r=r=>{e===r&&t()};return o.add(r),()=>{o.delete(r)}},[e]),()=>{var r;let n=null!==(r=s(()=>localStorage.getItem(e)))&&void 0!==r?r:null;if(i.has(e))c.current={item:n,parsed:i.get(e)};else if(n!==c.current.item){let e;try{e=null===n?t:l(n)}catch(r){e=t}c.current={item:n,parsed:e}}return c.current.parsed},()=>t),f=(0,n.useCallback)(t=>{let r=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(r)),i.delete(e)}catch(t){i.set(e,r)}a(e)},[e,u]);return(0,n.useEffect)(()=>{if(!r)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,r]),(0,n.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,r,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,r){"use strict";/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var n=r(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},43100:function(e,t,r){"use strict";e.exports=r(20452)},38268:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8006:function(e,t,r){"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,i=arguments.length;r1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,r=0,n="";rr=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],i=null==s?void 0:s[e];if(null===t)return null;let o=n(t)||n(i);return a[e][o]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]);return i(e,l,c,null==r?void 0:r.class,null==r?void 0:r.className)}},63955:function(e,t,r){"use strict";r.d(t,{cI:function(){return em}});var n=r(2784),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(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 r=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))&&(r||l(e))))return e;else if(t=r?[]:{},Array.isArray(e)||f(e))for(let r in e)t[r]=p(e[r]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,r)=>{if(!t||!l(e))return r;let n=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(n)||n===e?v(e[t])?r:e[t]:n};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"};n.createContext(null);var w=(e,t,r,n=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==b.all&&(t._proxyFormState[o]=!n||b.all),r&&(r[o]=!0),e[o])});return i},E=e=>l(e)&&!Object.keys(e).length,j=(e,t,r,n)=>{r(e);let{name:i,...o}=e;return E(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!n||b.all))},S=e=>Array.isArray(e)?e:[e],C=e=>"string"==typeof e,k=(e,t,r,n,i)=>C(e)?(n&&t.watch.add(e),g(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),g(r,e))):(n&&(t.watchAll=!0),r),A=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function T(e,t,r){let n=-1,i=A(t)?[t]:O(t),o=i.length,a=o-1;for(;++nt?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{};let M=(e,t,r)=>{for(let n of r||Object.keys(e)){let r=g(e,n);if(r){let{_f:e,...n}=r;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(n)&&M(n,t)}}};var N=e=>({isOnSubmit:!e||e===b.onSubmit,isOnBlur:e===b.onBlur,isOnChange:e===b.onChange,isOnAll:e===b.all,isOnTouch:e===b.onTouched}),R=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),P=(e,t,r)=>{let n=m(g(e,r));return T(n,"root",t[r]),T(e,r,n),e},L=e=>"boolean"==typeof e,D=e=>"file"===e.type,I=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)},V=e=>C(e),B=e=>"radio"===e.type,U=e=>e instanceof RegExp;let z={value:!1,isValid:!1},H={value:!0,isValid:!0};var $=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:z}return z};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 G(e,t,r="validate"){if(V(e)||Array.isArray(e)&&e.every(V)||L(e)&&!e)return{type:r,message:V(e)?e:"",ref:t}}var Z=e=>l(e)&&!U(e)?e:{value:e,message:""},Y=async(e,t,r,n,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:b,valueAsNumber:w,mount:j,disabled:S}=e._f,k=g(t,b);if(!j||S)return{};let A=u?u[0]:s,O=e=>{n&&A.reportValidity&&(A.setCustomValidity(L(e)?"":e||""),A.reportValidity())},T={},M=B(s),N=i(s),R=(w||D(s))&&v(s.value)&&v(k)||F(s)&&""===s.value||""===k||Array.isArray(k)&&!k.length,P=_.bind(null,b,r,T),z=(e,t,r,n=x.maxLength,i=x.minLength)=>{let o=e?t:r;T[b]={type:e?n:i,message:o,ref:s,...P(e?n:i,o)}};if(o?!Array.isArray(k)||!k.length:c&&(!(M||N)&&(R||a(k))||L(k)&&!k||N&&!$(u).isValid||M&&!q(u).isValid)){let{value:e,message:t}=V(c)?{value:!!c,message:c}:Z(c);if(e&&(T[b]={type:x.required,message:t,ref:A,...P(x.required,t)},!r))return O(t),T}if(!R&&(!a(h)||!a(p))){let e,t;let n=Z(p),i=Z(h);if(a(k)||isNaN(k)){let r=s.valueAsDate||new Date(k),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;C(n.value)&&k&&(e=a?o(k)>o(n.value):l?k>n.value:r>new Date(n.value)),C(i.value)&&k&&(t=a?o(k)n.value),a(i.value)||(t=r+e.value,i=!a(t.value)&&k.length<+t.value;if((n||i)&&(z(n,e.message,t.message),!r))return O(T[b].message),T}if(m&&!R&&C(k)){let{value:e,message:t}=Z(m);if(U(e)&&!k.match(e)&&(T[b]={type:x.pattern,message:t,ref:s,...P(x.pattern,t)},!r))return O(t),T}if(y){if(I(y)){let e=await y(k,t),n=G(e,A);if(n&&(T[b]={...n,...P(x.validate,n.message)},!r))return O(n.message),T}else if(l(y)){let e={};for(let n in y){if(!E(e)&&!r)break;let i=G(await y[n](k,t),A,n);i&&(e={...i,...P(n,i.message)},O(i.message),r&&(T[b]=e))}if(!E(e)&&(T[b]={ref:A,...e},!r))return T}}return O(!0),T};function X(e,t){let r=Array.isArray(t)?t:A(t)?[t]:O(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var J=e=>a(e)||!s(e);function Q(e,t){if(J(e)||J(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r){let r=e[i];if(!n.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(r)&&o(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!Q(r,e):r!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>B(e)||i(e),er=e=>F(e)&&e.isConnected,en=e=>{for(let t in e)if(I(e[t]))return!0;return!1};function ei(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!en(e[r])?(t[r]=Array.isArray(e[r])?[]:{},ei(e[r],t[r])):a(e[r])||(t[r]=!0);return t}var eo=(e,t)=>(function e(t,r,n){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!en(t[i])?v(r)||J(n[i])?n[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],a(r)?{}:r[i],n[i]):n[i]=!Q(t[i],r[i]);return n})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>v(e)?e:t?""===e?NaN:e?+e:e:r&&C(e)?new Date(e):n?n(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:D(t)?t.files:B(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?$(e.refs).value:ea(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,r,n)=>{let i={};for(let r of e){let e=g(t,r);e&&T(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},eu=e=>v(e)?e:U(e)?e.source:l(e)?U(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,r){let n=g(e,r);if(n||A(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),o=g(t,n),a=g(e,n);if(o&&!Array.isArray(o)&&r!==n)break;if(a&&a.type)return{name:n,error:a};i.pop()}return{name:r}}var ef=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?!n.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=n.useRef(),[r,s]=n.useState({isDirty:!1,isValidating:!1,isLoading:I(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:I(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let r,n={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:I(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(n.defaultValues)||l(n.values))&&p(n.defaultValues||n.values)||{},x=n.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},j={mount:new Set,unMount:new Set,array:new Set,watch:new Set},A=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},_={values:K(),array:K(),state:K()},V=e.resetOptions&&e.resetOptions.keepDirtyValues,B=N(n.mode),U=N(n.reValidateMode),z=n.criteriaMode===b.all,H=e=>t=>{clearTimeout(A),A=setTimeout(e,t)},$=async e=>{if(O.isValid||e){let e=n.resolver?E((await ei()).errors):await ev(c,!0);e!==s.isValid&&_.state.next({isValid:e})}},W=e=>O.isValidating&&_.state.next({isValidating:e}),q=(e,t)=>{T(s.errors,e,t),_.state.next({errors:s.errors})},G=(e,t,r,n)=>{let i=g(c,e);if(i){let o=g(x,e,v(r)?g(f,e):r);v(o)||n&&n.defaultChecked||t?T(x,e,t?o:es(i._f)):eb(e,o),w.mount&&$()}},Z=(e,t,r,n,i)=>{let o=!1,a=!1,l={name:e};if(!r||n){O.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let r=Q(g(f,e),t);a=g(s.dirtyFields,e),r?X(s.dirtyFields,e):T(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||O.dirtyFields&&!r!==a}if(r){let t=g(s.touchedFields,e);t||(T(s.touchedFields,e,r),l.touchedFields=s.touchedFields,o=o||O.touchedFields&&t!==r)}return o&&i&&_.state.next(l),o?l:{}},en=(t,n,i,o)=>{let a=g(s.errors,t),l=O.isValid&&L(n)&&s.isValid!==n;if(e.delayError&&i?(r=H(()=>q(t,i)))(e.delayError):(clearTimeout(A),r=null,i?T(s.errors,t,i):X(s.errors,t)),(i?!Q(a,i):a)||!E(o)||l){let e={...o,...l&&L(n)?{isValid:n}:{},errors:s.errors,name:t};s={...s,...e},_.state.next(e)}W(!1)},ei=async e=>n.resolver(x,n.context,el(e||j.mount,c,n.criteriaMode,n.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let r of e){let e=g(t,r);e?T(s.errors,r,e):X(s.errors,r)}else s.errors=t;return t},ev=async(e,t,r={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=j.array.has(e.name),a=await Y(o,x,z,n.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(r.valid=!1,t))break;t||(g(a,e.name)?i?P(s.errors,a,e.name):T(s.errors,e.name,a[e.name]):X(s.errors,e.name))}i&&await ev(i,t,r)}}return r.valid},eg=(e,t)=>(e&&t&&T(x,e,t),!Q(eS(),f)),ey=(e,t,r)=>k(e,j,{...w.mount?x:v(t)?f:C(e)?{[e]:t}:t},r,t),eb=(e,t,r={})=>{let n=g(c,e),o=t;if(n){let r=n._f;r&&(r.disabled||T(x,e,ea(t,r)),o=F(r.ref)&&a(t)?"":t,ee(r.ref)?[...r.ref.options].forEach(e=>e.selected=o.includes(e.value)):r.refs?i(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):r.refs[0]&&(r.refs[0].checked=!!o):r.refs.forEach(e=>e.checked=e.value===o):D(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||_.values.next({name:e,values:{...x}})))}(r.shouldDirty||r.shouldTouch)&&Z(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ej(e)},ex=(e,t,r)=>{for(let n in t){let i=t[n],a=`${e}.${n}`,s=g(c,a);!j.array.has(e)&&J(i)&&(!s||s._f)||o(i)?eb(a,i,r):ex(a,i,r)}},ew=(e,r,n={})=>{let i=g(c,e),o=j.array.has(e),l=p(r);T(x,e,l),o?(_.array.next({name:e,values:{...x}}),(O.isDirty||O.dirtyFields)&&n.shouldDirty&&_.state.next({name:e,dirtyFields:eo(f,x),isDirty:eg(e,l)})):!i||i._f||a(l)?eb(e,l,n):ex(e,l,n),R(e,j)&&_.state.next({...s}),_.values.next({name:e,values:{...x}}),w.mount||t()},eE=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!n.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,U,B),m=R(i,j,h);T(x,i,f),h?(a._f.onBlur&&a._f.onBlur(e),r&&r(0)):a._f.onChange&&a._f.onChange(e);let v=Z(i,f,h,!1),b=!E(v)||m;if(h||_.values.next({name:i,type:e.type,values:{...x}}),p)return O.isValid&&$(),b&&_.state.next({name:i,...m?{}:v});if(!h&&m&&_.state.next({...s}),W(!0),n.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),r=ed(e,c,t.name||i);l=r.error,i=r.name,d=E(e)}else l=(await Y(a,x,z,n.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(x,i,f))&&(l?d=!1:O.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&ej(a._f.deps),en(i,d,l,v))}},ej=async(e,t={})=>{let r,i;let o=S(e);if(W(!0),n.resolver){let t=await em(v(e)?e:o);r=E(t),i=e?!o.some(e=>g(t,e)):r}else e?((i=(await Promise.all(o.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&$():i=r=await ev(c);return _.state.next({...!C(e)||O.isValid&&r!==s.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&M(c,e=>e&&g(s.errors,e),e?o:j.mount),i},eS=e=>{let t={...f,...w.mount?x:{}};return v(e)?t:C(e)?g(t,e):e.map(e=>g(t,e))},eC=(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)}),ek=(e,t={})=>{for(let r of e?S(e):j.mount)j.mount.delete(r),j.array.delete(r),t.keepValue||(X(c,r),X(x,r)),t.keepError||X(s.errors,r),t.keepDirty||X(s.dirtyFields,r),t.keepTouched||X(s.touchedFields,r),n.shouldUnregister||t.keepDefaultValue||X(f,r);_.values.next({values:{...x}}),_.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||$()},eA=(e,t={})=>{let r=g(c,e),i=L(t.disabled);return T(c,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),j.mount.add(e),r?i&&T(x,e,t.disabled?void 0:g(x,e,es(r._f))):G(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.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:eE,onBlur:eE,ref:i=>{if(i){eA(e,t),r=g(c,e);let n=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(n),a=r._f.refs||[];(o?a.find(e=>e===n):n===r._f.ref)||(T(c,e,{_f:{...r._f,...o?{refs:[...a.filter(er),n,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),G(e,!1,void 0,n))}else(r=g(c,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(d(j.array,e)&&w.action)&&j.unMount.add(e)}}},eO=()=>n.shouldFocusError&&M(c,e=>e&&g(s.errors,e),j.mount),eT=(r,n={})=>{let i=r||f,o=p(i),a=r&&!E(r)?o:f;if(n.keepDefaultValues||(f=i),!n.keepValues){if(n.keepDirtyValues||V)for(let e of j.mount)g(s.dirtyFields,e)?T(a,e,g(x,e)):ew(e,g(a,e));else{if(h&&v(r))for(let e of j.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?n.keepDefaultValues?p(f):{}:o,_.array.next({values:{...a}}),_.values.next({values:{...a}})}j={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!O.isValid||!!n.keepIsValid,w.watch=!!e.shouldUnregister,_.state.next({submitCount:n.keepSubmitCount?s.submitCount:0,isDirty:n.keepDirty?s.isDirty:!!(n.keepDefaultValues&&!Q(r,f)),isSubmitted:!!n.keepIsSubmitted&&s.isSubmitted,dirtyFields:n.keepDirtyValues?s.dirtyFields:n.keepDefaultValues&&r?eo(f,r):{},touchedFields:n.keepTouched?s.touchedFields:{},errors:n.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},e_=(e,t)=>eT(I(e)?e(x):e,t);return{control:{register:eA,unregister:ek,getFieldState:eC,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:$,_removeUnmounted:()=>{for(let e of j.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!er(e)):!er(t._f.ref))&&ek(e)}j.unMount=new Set},_updateFieldArray:(e,t=[],r,n,i=!0,o=!0)=>{if(n&&r){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=r(g(c,e),n.argA,n.argB);i&&T(c,e,t)}if(o&&Array.isArray(g(s.errors,e))){let t=r(g(s.errors,e),n.argA,n.argB);i&&T(s.errors,e,t),eh(s.errors,e)}if(O.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=r(g(s.touchedFields,e),n.argA,n.argB);i&&T(s.touchedFields,e,t)}O.dirtyFields&&(s.dirtyFields=eo(f,x)),_.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else T(x,e,t)},_getFieldArray:t=>m(g(w.mount?x:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eT,_resetDefaultValues:()=>I(n.defaultValues)&&n.defaultValues().then(e=>{e_(e,n.resetOptions),_.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:_,_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 j},set _names(value){j=value},get _formState(){return s},set _formState(value){s=value},get _options(){return n},set _options(value){n={...n,...value}}},trigger:ej,register:eA,handleSubmit:(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let i=p(x);if(_.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);X(s.errors,"root"),E(s.errors)?(_.state.next({errors:{}}),await e(i,r)):(t&&await t({...s.errors},r),eO(),setTimeout(eO)),_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:E(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>I(e)?_.values.subscribe({next:r=>e(ey(void 0,t),r)}):ey(e,t,!0),setValue:ew,getValues:eS,reset:e_,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),T(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&&$()),_.state.next({...s}))},clearErrors:e=>{e&&S(e).forEach(e=>X(s.errors,e)),_.state.next({errors:e?s.errors:{}})},unregister:ek,setError:(e,t,r)=>{let n=(g(c,e,{_f:{}})._f||{}).ref;T(s.errors,e,{...t,ref:n}),_.state.next({name:e,errors:s.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},setFocus:(e,t={})=>{let r=g(c,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eC}}(e,()=>s(e=>({...e}))),formState:r});let c=t.current.control;return c._options=e,!function(e){let t=n.useRef(e);t.current=e,n.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{j(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),n.useEffect(()=>{e.values&&!Q(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),n.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(r,c),t.current}},79381:function(e,t,r){"use strict";r.d(t,{J$:function(){return J},ZP:function(){return Q},JG:function(){return U},kY:function(){return Z}});var n,i=r(2784),o=r(43100);let a=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 r=a.get(e);return[()=>e.get(t)||s,n=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),r[5](t,p(i,n),i||s)}},r[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},x=new WeakMap,w=0,E=e=>{let t,r;let n=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=x.get(e))return t;if(t=++w+"~",x.set(e,t),i==Array){for(r=0,t="@";r(g&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{let t=()=>{j=!0,e()},r=()=>{j=!1};return S("online",t),S("offline",r),()=>{C("online",t),C("offline",r)}}},A=!i.useId,O=!v||"Deno"in window,T=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),_=O?i.useEffect:i.useLayoutEffect,M="undefined"!=typeof navigator&&navigator.connection,N=!O&&M&&(["slow-2g","2g"].includes(M.effectiveType)||M.saveData),R=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)?E(e):"",t]},P=0,L=()=>++P;var D={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function I(...e){let[t,r,n,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.throwOnError;if(h(r)){let e=[],n=t.keys();for(let i=n.next();!i.done;i=n.next()){let n=i.value;!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n)}return Promise.all(e.map(g))}return g(r);async function g(r){let i;let[o]=R(r);if(!o)return;let[l,p]=b(t,o),[g,y,x]=a.get(t),w=g[o],E=()=>d&&(delete x[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return E();let j=n,S=L();y[o]=[S,0];let C=!f(u),k=l(),A=k.data,O=k._c,T=f(O)?A:O;if(C&&p({data:u=h(u)?u(T):u,_c:T}),h(j))try{j=j(T)}catch(e){i=e}if(j&&h(j.then)){if(j=await j.catch(e=>{i=e}),S!==y[o][0]){if(i)throw i;return j}i&&C&&m(i)&&(s=!0,p({data:j=T,_c:c}))}s&&!i&&(h(s)&&(j=s(j,T)),p({data:j,_c:c})),y[o][1]=L();let _=await E();if(p({_c:c}),i){if(v)throw i;return}return s?_:j}}let F=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},V=(e,t)=>{if(!a.has(e)){let r=p(k,t),n={},i=I.bind(c,e),o=u,s={},l=(e,t)=>{let r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=s[t];if(i)for(let e of i)e(r,n)},f=()=>{if(!a.has(e)&&(a.set(e,[n,{},{},{},i,d,l]),!O)){let t=r.initFocus(setTimeout.bind(c,F.bind(c,n,0))),i=r.initReconnect(setTimeout.bind(c,F.bind(c,n,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[B,U]=V(new Map),z=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,r,n,i)=>{let o=r.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(n,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:N?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:N?5e3:3e3,compare:(e,t)=>E(e)==E(t),isPaused:()=>!1,cache:B,mutate:U,fallback:{}},{isOnline:()=>j,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let r=p(e,t);if(t){let{use:n,fallback:i}=e,{use:o,fallback:a}=t;n&&o&&(r.use=n.concat(o)),i&&a&&(r.fallback=p(i,a))}return r},$=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],G=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Z=()=>p(z,(0,i.useContext)($)),Y=q.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let n=R(t)[0],[,,,i]=a.get(B),o=i[n];return o?(delete i[n],o):r(...e)});return e(t,i,n)}),X=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let K={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,r=(0,i.useContext)($),n=h(t),o=(0,i.useMemo)(()=>n?t(r):t,[n,r,t]),a=(0,i.useMemo)(()=>n?o:H(r,o),[n,r,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=V(s(a.cache||B),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),_(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)($.Provider,p(e,{value:a}))},"defaultValue",{value:z});var Q=(n=(e,t,r)=>{let{cache:n,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:x}=r,[w,E,j]=a.get(n),[S,C]=R(e),k=(0,i.useRef)(!1),M=(0,i.useRef)(!1),N=(0,i.useRef)(S),P=(0,i.useRef)(t),F=(0,i.useRef)(r),V=()=>F.current,B=()=>V().isVisible()&&V().isOnline(),[U,z,H,$]=b(n,S),W=(0,i.useRef)({}).current,q=f(u)?r.fallback[S]:u,G=(e,t)=>{let r=!0;for(let n in W)"data"===n?s(t[n],e[n])||f(e[n])&&s(t[n],ei)||(r=!1):t[n]!==e[n]&&(r=!1);return r},Z=(0,i.useMemo)(()=>{let e=!!S&&!!t&&(f(d)?!V().isPaused()&&!l&&(!!f(m)||m):d),r=t=>{let r=p(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=U(),i=$(),o=r(n),a=n===i?o:r(i),s=o;return[()=>{let e=r(U());return G(e,s)?s:s=e},()=>a]},[n,S]),Y=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(S,(t,r)=>{G(r,t)||e()}),[n,S]),Z[0],Z[1]),J=!k.current,Q=w[S]&&w[S].length>0,ee=Y.data,et=f(ee)?q:ee,er=Y.error,en=(0,i.useRef)(et),ei=x?f(ee)?en.current:ee:et,eo=(!Q||!!f(er))&&(J&&!f(d)?d:!V().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(S&&t&&J&&eo),es=f(Y.isValidating)?ea:Y.isValidating,el=f(Y.isLoading)?ea:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,n;let i=P.current;if(!S||!i||M.current||V().isPaused())return!1;let o=!0,a=e||{},l=!j[S]||!a.dedupe,u=()=>A?!M.current&&S===N.current&&k.current:S===N.current,d={isValidating:!1,isLoading:!1},p=()=>{z(d)},m=()=>{let e=j[S];e&&e[1]===n&&delete j[S]},v={isValidating:!0};f(U().data)&&(v.isLoading=!0);try{if(l&&(z(v),r.loadingTimeout&&f(U().data)&&setTimeout(()=>{o&&u()&&V().onLoadingSlow(S,r)},r.loadingTimeout),j[S]=[i(C),L()]),[t,n]=j[S],t=await t,l&&setTimeout(m,r.dedupingInterval),!j[S]||j[S][1]!==n)return l&&u()&&V().onDiscarded(S),!1;d.error=c;let e=E[S];if(!f(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return p(),l&&u()&&V().onDiscarded(S),!1;let a=U().data;d.data=s(a,t)?a:t,l&&u()&&V().onSuccess(t,S,r)}catch(r){m();let e=V(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=r,l&&u()&&(e.onError(r,S,e),(!0===t||h(t)&&t(r))&&B()&&e.onErrorRetry(r,S,e,e=>{let t=w[S];t&&t[0]&&t[0](D.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[S,n]),ec=(0,i.useCallback)((...e)=>I(n,N.current,...e),[]);if(_(()=>{P.current=t,F.current=r,f(ee)||(en.current=ee)}),_(()=>{if(!S)return;let e=eu.bind(c,K),t=0,r=X(S,w,(r,n={})=>{if(r==D.FOCUS_EVENT){let r=Date.now();V().revalidateOnFocus&&r>t&&B()&&(t=r+V().focusThrottleInterval,e())}else if(r==D.RECONNECT_EVENT)V().revalidateOnReconnect&&B()&&e();else if(r==D.MUTATE_EVENT)return eu();else if(r==D.ERROR_REVALIDATE_EVENT)return eu(n)});return M.current=!1,N.current=S,k.current=!0,z({_k:C}),eo&&(f(et)||O?e():T(e)),()=>{M.current=!0,r()}},[S]),_(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!U().error&&(g||V().isVisible())&&(y||V().isOnline())?eu(K).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,S]),(0,i.useDebugValue)(ei),l&&f(et)&&S){if(!A&&O)throw Error("Fallback data is required when using suspense in SSR.");throw P.current=t,F.current=r,M.current=!1,f(er)?eu(K):er}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,er},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=Z(),[r,i,o]=G(e),a=H(t,o),s=n,{use:l}=a,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(r,i||a.fetcher||null,a)})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(86570),t(60222)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/walletd/assets/_next/static/chunks/pages/_app-a514b5b9bac03704.js b/walletd/assets/_next/static/chunks/pages/_app-a514b5b9bac03704.js deleted file mode 100644 index 910c70ef5..000000000 --- a/walletd/assets/_next/static/chunks/pages/_app-a514b5b9bac03704.js +++ /dev/null @@ -1,76 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{75102:function(e,t,r){"use strict";r.d(t,{An:function(){return u},Ht:function(){return c},R7:function(){return p},RH:function(){return h}});var n,i,o=r(97699),a=r.n(o);(n=i||(i={})).blue="blue",n.nanoS="nanoS",n.nanoSP="nanoSP",n.nanoX="nanoX",n.stax="stax";let s={[i.blue]:{id:i.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:e=>4096},[i.nanoS]:{id:i.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:e=>{var t;return a().lt(null!==(t=a().coerce(e))&&void 0!==t?t:"","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:e=>32},[i.nanoX]:{id:i.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:e=>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:e=>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 l=Object.values(s),u=11415,c=e=>{let t=l.find(t=>t.legacyUsbProductId===e);if(t)return t;let r=e>>8,n=l.find(e=>e.productIdMM===r);return n},d=[],f={};for(let e in s){let t=s[e],{bluetoothSpec:r}=t;if(r)for(let e=0;ed,p=e=>f[e.toLowerCase()]},9341:function(e,t,r){"use strict";var n,i;r.d(t,{qX:function(){return c},vs:function(){return d},WC:function(){return m},PS:function(){return p},FB:function(){return f},wp:function(){return h},rZ:function(){return v}});let o={},a={},s=(e,t)=>{a[e]=t},l=e=>{class t extends Error{constructor(r,n,i){if(super(r||e,i),Object.setPrototypeOf(this,t.prototype),this.name=e,n)for(let e in n)this[e]=n[e];if(i&&"object"==typeof i&&"cause"in i&&!("cause"in this)){let e=i.cause;this.cause=e,"stack"in e&&(this.stack=this.stack+"\nCAUSE: "+e.stack)}}}return o[e]=t,t};l("AccountNameRequired"),l("AccountNotSupported"),l("AmountRequired"),l("BluetoothRequired"),l("BtcUnmatchedApp"),l("CantOpenDevice"),l("CashAddrNotSupported"),l("ClaimRewardsFeesWarning"),l("CurrencyNotSupported"),l("DeviceAppVerifyNotSupported"),l("DeviceGenuineSocketEarlyClose"),l("DeviceNotGenuine"),l("DeviceOnDashboardExpected"),l("DeviceOnDashboardUnexpected"),l("DeviceInOSUExpected"),l("DeviceHalted"),l("DeviceNameInvalid"),l("DeviceSocketFail"),l("DeviceSocketNoBulkStatus");let u=l("LockedDeviceError");l("UnresponsiveDeviceError");let c=l("DisconnectedDevice"),d=l("DisconnectedDeviceDuringOperation");l("DeviceExtractOnboardingStateError"),l("DeviceOnboardingStatePollingError"),l("EnpointConfig"),l("EthAppPleaseEnableContractData"),l("FeeEstimationFailed"),l("FirmwareNotRecognized"),l("HardResetFail"),l("InvalidXRPTag"),l("InvalidAddress"),l("InvalidNonce"),l("InvalidAddressBecauseDestinationIsAlsoSource"),l("LatestMCUInstalledError"),l("UnknownMCU"),l("LedgerAPIError"),l("LedgerAPIErrorWithMessage"),l("LedgerAPINotAvailable"),l("ManagerAppAlreadyInstalled"),l("ManagerAppRelyOnBTC"),l("ManagerAppDepInstallRequired"),l("ManagerAppDepUninstallRequired"),l("ManagerDeviceLocked"),l("ManagerFirmwareNotEnoughSpace"),l("ManagerNotEnoughSpace"),l("ManagerUninstallBTCDep"),l("NetworkDown"),l("NoAddressesFound"),l("NotEnoughBalance"),l("NotEnoughBalanceToDelegate"),l("NotEnoughBalanceInParentAccount"),l("NotEnoughSpendableBalance"),l("NotEnoughBalanceBecauseDestinationNotCreated"),l("NoAccessToCamera"),l("NotEnoughGas"),l("NotEnoughGasSwap"),l("NotSupportedLegacyAddress"),l("GasLessThanEstimate"),l("PriorityFeeTooLow"),l("PriorityFeeTooHigh"),l("PriorityFeeHigherThanMaxFee"),l("MaxFeeTooLow"),l("PasswordsDontMatch"),l("PasswordIncorrect"),l("RecommendSubAccountsToEmpty"),l("RecommendUndelegation"),l("TimeoutTagged"),l("UnexpectedBootloader"),l("MCUNotGenuineToDashboard"),l("RecipientRequired"),l("UnavailableTezosOriginatedAccountReceive"),l("UnavailableTezosOriginatedAccountSend"),l("UpdateFetchFileFail"),l("UpdateIncorrectHash"),l("UpdateIncorrectSig"),l("UpdateYourApp"),l("UserRefusedDeviceNameChange"),l("UserRefusedAddress"),l("UserRefusedFirmwareUpdate"),l("UserRefusedAllowManager"),l("UserRefusedOnDevice");let f=l("TransportOpenUserCancelled");l("TransportInterfaceNotAvailable");let h=l("TransportRaceCondition");l("TransportWebUSBGestureRequired"),l("TransactionHasBeenValidatedError"),l("DeviceShouldStayInApp"),l("WebsocketConnectionError"),l("WebsocketConnectionFailed"),l("WrongDeviceForAccount"),l("WrongAppForCurrency"),l("ETHAddressNonEIP"),l("CantScanQRCode"),l("FeeNotLoaded"),l("FeeRequired"),l("FeeTooHigh"),l("PendingOperation"),l("SyncError"),l("PairingFailed"),l("PeerRemovedPairing"),l("GenuineCheckFailed"),l("LedgerAPI4xx"),l("LedgerAPI5xx"),l("FirmwareOrAppUpdateRequired"),l("OpReturnSizeLimit"),l("DustLimit"),l("LanguageNotFound"),l("NoDBPathGiven"),l("DBWrongPassword"),l("DBNotReset"),(i=n||(n={})).Unknown="Unknown",i.LocationServicesDisabled="LocationServicesDisabled",i.LocationServicesUnauthorized="LocationServicesUnauthorized",i.BluetoothScanStartFailed="BluetoothScanStartFailed";class p extends Error{constructor(e,t){let r="TransportError";super(e||r),this.name=r,this.message=e,this.stack=Error(e).stack,this.id=t}}s("TransportError",e=>new p(e.message,e.id));let m={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 v(e){let t=Object.keys(m).find(t=>m[t]===e)||"UNKNOWN_ERROR",r=function(e){switch(e){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<=e&&e<=28671)return"Internal error, please report"}(e)||t,n=e.toString(16),i=`Ledger device: ${r} (0x${n})`;if(e===m.LOCKED_DEVICE)throw new u(i);this.name="TransportStatusError",this.message=i,this.stack=Error(i).stack,this.statusCode=e,this.statusText=t}v.prototype=Error(),s("TransportStatusError",e=>new v(e.statusCode))},73866:function(e,t,r){"use strict";r.d(t,{Z:function(){return eT}});var n,i=r(97790),o=r(9341),a=r(75102),s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function l(e,t){function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function u(e){return"function"==typeof e}var c=!1,d={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,c=value},get useDeprecatedSynchronousErrorHandling(){return c}};function f(e){setTimeout(function(){throw e},0)}var h={closed:!0,next:function(e){},error:function(e){if(d.useDeprecatedSynchronousErrorHandling)throw e;f(e)},complete:function(){}},p=Array.isArray||function(e){return e&&"number"==typeof e.length};function m(e){return null!==e&&"object"==typeof e}var v=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),g=function(){var e;function t(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return t.prototype.unsubscribe=function(){if(!this.closed){var e,r=this._parentOrParents,n=this._ctorUnsubscribe,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(null!==r)for(var a=0;a{let n=(function(e,t){let r=[];for(let n=0,i=t(0);nr-(0===e?5:3)).map((e,r)=>{let n=A.alloc(0===r?5:3);return n.writeUInt8(5,0),n.writeUInt16BE(r,1),0===r&&n.writeUInt16BE(t.length,3),A.concat([n,e])});return new j(t=>{let r=!1;return(function(){var t,i,o,a;return t=this,i=void 0,o=void 0,a=function*(){for(let t of n){if(r)return;yield e(t)}},new(o||(o=Promise))(function(e,r){function n(e){try{l(a.next(e))}catch(e){r(e)}}function s(e){try{l(a.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof o?r:new o(function(e){e(r)})).then(n,s)}l((a=a.apply(t,i||[])).next())})})().then(()=>{r=!0,t.complete()},e=>{r=!0,(0,k.c)("ble-error","sendAPDU failure "+String(e)),t.error(e)}),()=>{r||((0,k.c)("ble-verbose","sendAPDU interruption"),r=!0)}})};var _=r(48834).lW;let T=e=>j.create(t=>{let r=0,n=0,i=_.alloc(0),a=e.subscribe({complete:()=>{t.error(new o.qX),a.unsubscribe()},error:e=>{(0,k.c)("ble-error","in receiveAPDU "+String(e)),t.error(e),a.unsubscribe()},next:e=>{let s=e.readUInt8(0),l=e.readUInt16BE(1),u=e.slice(3);if(5!==s){t.error(new o.PS("Invalid tag "+s.toString(16),"InvalidTag"));return}if(r!==l){t.error(new o.PS("BLE: Invalid sequence number. discontinued chunk. Received "+l+" but expected "+r,"InvalidSequence"));return}if(0===l&&(n=u.readUInt16BE(0),u=u.slice(2)),r++,(i=_.concat([i,u])).length>n){t.error(new o.PS("BLE: received too much data. discontinued chunk. Received "+i.length+" but expected "+n,"BLETooMuchData"));return}i.length===n&&(t.next(i),t.complete(),a.unsubscribe())}});return()=>{a.unsubscribe()}});function M(e,t){return function(r){if("function"!=typeof e)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new N(e,t))}}var N=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new R(e,this.project,this.thisArg))},e}(),R=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return l(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(x),P=function(e){return function(t){for(var r=0,n=e.length;r0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(z);function W(){for(var e,t,r=[],n=0;n1&&"number"==typeof r[r.length-1]&&(i=r.pop())):"number"==typeof a&&(i=r.pop()),null===o&&1===r.length&&r[0]instanceof j)?r[0]:(void 0===(e=i)&&(e=Number.POSITIVE_INFINITY),function e(t,r,n){return(void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof r)?function(i){return i.pipe(e(function(e,n){return B(t(e,n)).pipe(M(function(t,i){return r(e,t,n,i)}))},n))}:("number"==typeof r&&(n=r),function(e){return e.lift(new H(t,n))})}(S,e))((t=o)?V(r,t):new j(P(r)))}var q=new j(function(e){return e.complete()});function G(){}var Z=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new Y(e,this.nextOrObserver,this.error,this.complete))},e}(),Y=function(e){function t(t,r,n,i){var o=e.call(this,t)||this;return o._tapNext=G,o._tapError=G,o._tapComplete=G,o._tapError=n||G,o._tapComplete=i||G,u(r)?(o._context=o,o._tapNext=r):r&&(o._context=r,o._tapNext=r.next||G,o._tapError=r.error||G,o._tapComplete=r.complete||G),o}return l(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()},t}(x),X=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),K=function(e){function t(t,r){var n=e.call(this)||this;return n.subject=t,n.subscriber=r,n.closed=!1,n}return l(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}},t}(g),J=function(e){function t(t){var r=e.call(this,t)||this;return r.destination=t,r}return l(t,e),t}(x),Q=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return l(t,e),t.prototype[b]=function(){return new J(this)},t.prototype.lift=function(e){var t=new ee(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new X;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),i=0;i1)){this.connection=null;return}var r=this.connection,n=e._connection;this.connection=null,n&&(!r||n===r)&&n.unsubscribe()},t}(x),ei={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(n=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return l(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return!e&&(this._isComplete=!1,(e=this._connection=new g).add(this.source.subscribe(new eo(this.getSubject(),this))),e.closed&&(this._connection=null,e=g.EMPTY)),e},t.prototype.refCount=function(){return et()(this)},t}(j).prototype)._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}},eo=function(e){function t(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return l(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(J),ea=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(e);return i.add(t.subscribe(n)),i},e}();function es(){return new Q}var el=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),eu=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new ec(e,this.predicate,this.thisArg))},e}(),ec=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return l(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}t&&this.destination.next(e)},t}(x),ed=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),ef=function(){function e(e){if(this.total=e,this.total<0)throw new ed}return e.prototype.call=function(e,t){return t.subscribe(new eh(e,this.total))},e}(),eh=function(e){function t(t,r){var n=e.call(this,t)||this;return n.total=r,n.count=0,n}return l(t,e),t.prototype._next=function(e){var t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))},t}(x),ep=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new em(e,this.defaultValue))},e}(),em=function(e){function t(t,r){var n=e.call(this,t)||this;return n.defaultValue=r,n.isEmpty=!0,n}return l(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(x),ev=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new eg(e,this.errorFactory))},e}(),eg=function(e){function t(t,r){var n=e.call(this,t)||this;return n.errorFactory=r,n.hasValue=!1,n}return l(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(x),ey=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new eb(e))},e}(),eb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype._next=function(e){},t}(x),ex=r(48834).lW;let ew=e=>j.create(t=>{function r(e){let r=e.target;r.value&&t.next(ex.from(r.value.buffer))}return(0,k.c)("ble-verbose","start monitor "+e.uuid),e.startNotifications().then(()=>{e.addEventListener("characteristicvaluechanged",r)}),()=>{(0,k.c)("ble-verbose","end monitor "+e.uuid),e.stopNotifications()}});var eE=r(48834).lW,eS=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};let ej=()=>{let{bluetooth:e}=navigator;if(void 0===e)throw Error("web bluetooth not supported");return e},eC=()=>j.create(e=>{let t=ej(),r=t=>{e.next(t.value)};t.addEventListener("availabilitychanged",r);let n=!1;return t.getAvailability().then(t=>{n||e.next(t)}),()=>{n=!0,t.removeEventListener("availabilitychanged",r)}}),ek={},eA=()=>({filters:(0,a.RH)().map(e=>({services:[e]}))}),eO=e=>eS(void 0,void 0,void 0,function*(){if(!e.gatt)throw Error("bluetooth gatt not found");let[t]=yield e.gatt.getPrimaryServices();if(!t)throw Error("bluetooth service not found");let r=(0,a.R7)(t.uuid);if(!r)throw Error("bluetooth service infos not found");return[t,r]});class e_ extends i.ZP{static listen(e){let t;(0,k.c)("ble-verbose","listen...");let r=ej();return r.requestDevice(eA()).then(r=>{t||(e.next({type:"add",descriptor:r}),e.complete())},t=>{e.error(new o.FB(t.message))}),{unsubscribe:function(){t=!0}}}static open(e){return eS(this,void 0,void 0,function*(){return function e(t,r){return eS(this,void 0,void 0,function*(){var n;let i;if("string"==typeof t){if(ek[t])return(0,k.c)("ble-verbose","Transport in cache, using that."),ek[t];let e=ej();i=yield e.requestDevice(eA())}else i=t;i.gatt.connected||((0,k.c)("ble-verbose","not connected. connecting..."),yield i.gatt.connect());let[a,s]=yield eO(i),{deviceModel:l,writeUuid:u,notifyUuid:c}=s,[d,f]=yield Promise.all([a.getCharacteristic(u),a.getCharacteristic(c)]),h=ew(f).pipe((n=e=>{(0,k.c)("ble-frame","<= "+e.toString("hex"))},function(e){return e.lift(new Z(n,void 0,void 0))}),function(e){var t;return et()(function(e){if("function"==typeof t)return e.lift(new ea(es,t));var r=Object.create(e,ei);return r.source=e,r.subjectFactory=es,r}(e))}),p=h.subscribe(),m=new e_(i,d,h,l);if(!i.gatt.connected)throw new o.qX;ek[m.id]=m;let v=e=>{console.log("onDisconnect!",e),delete ek[m.id],m.notYetDisconnected=!1,p.unsubscribe(),i.removeEventListener("gattserverdisconnected",v),(0,k.c)("ble-verbose",`BleTransport(${m.id}) disconnected`),m.emit("disconnect",e)};i.addEventListener("gattserverdisconnected",v);let g=Date.now();try{yield m.inferMTU()}finally{let e=Date.now();e-g<1e3&&(r=!1),r&&(yield i.gatt.disconnect(),yield new Promise(e=>setTimeout(e,4e3)))}return r?e(i,!1):m})}(e,!0)})}constructor(e,t,r,n){super(),this.mtuSize=20,this.notYetDisconnected=!0,this.write=e=>eS(this,void 0,void 0,function*(){(0,k.c)("ble-frame","=> "+e.toString("hex")),yield this.writeCharacteristic.writeValue(e)}),this.id=e.id,this.device=e,this.writeCharacteristic=t,this.notifyObservable=r,this.deviceModel=n,(0,k.c)("ble-verbose",`BleTransport(${String(this.id)}) new instance`)}inferMTU(){return eS(this,void 0,void 0,function*(){let e=23;if(yield this.exchangeAtomicImpl(()=>eS(this,void 0,void 0,function*(){try{var t;e=(yield W(this.notifyObservable.pipe(function(e,t){var r=arguments.length>=2;return function(t){var n,i,o;return t.pipe(e?(n=function(r,n){return e(r,n,t)},function(e){return e.lift(new eu(n,void 0))}):S,function(e){return e.lift(new ef(1))},r?(i=void 0,i=null,function(e){return e.lift(new ep(i))}):(o=function(){return new el},function(e){return e.lift(new ev(o))}))}}(e=>8===e.readUInt8(0)),M(e=>e.readUInt8(5))),(t=()=>B(this.write(eE.from([8,0,0,0,0]))),new j(function(e){var r,n,i;try{n=t()}catch(t){e.error(t);return}return(n?B(n):r?(i=r,new j(function(e){return i.schedule(function(){return e.complete()})})):q).subscribe(e)})).pipe(function(e){return e.lift(new ey)})).toPromise())+3}catch(e){throw(0,k.c)("ble-error","inferMTU got "+String(e)),this.device.gatt.disconnect(),e}})),e>23){let t=e-3;(0,k.c)("ble-verbose",`BleTransport(${String(this.id)}) mtu set to ${String(t)}`),this.mtuSize=t}return this.mtuSize})}exchange(e){return eS(this,void 0,void 0,function*(){let t=yield this.exchangeAtomicImpl(()=>eS(this,void 0,void 0,function*(){try{let t=e.toString("hex");(0,k.c)("apdu",`=> ${t}`);let r=yield W(this.notifyObservable.pipe(T),O(this.write,e,this.mtuSize)).toPromise(),n=r.toString("hex");return(0,k.c)("apdu",`<= ${n}`),r}catch(e){throw(0,k.c)("ble-error","exchange got "+String(e)),this.notYetDisconnected&&this.device.gatt.disconnect(),e}}));return t})}setScrambleKey(){}close(){return eS(this,void 0,void 0,function*(){this.exchangeBusyPromise&&(yield this.exchangeBusyPromise)})}}e_.isSupported=()=>Promise.resolve().then(ej).then(()=>!0,()=>!1),e_.observeAvailability=e=>eC().subscribe(e),e_.list=()=>Promise.resolve([]),e_.disconnect=e=>eS(void 0,void 0,void 0,function*(){(0,k.c)("ble-verbose",`user disconnect(${e})`);let t=ek[e];t&&t.device.gatt.disconnect()});var eT=e_},27748:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(97790),i=r(9341),o=r(48834).lW;let a={data:o.alloc(0),dataLength:0,sequence:0};var s=(e,t)=>({makeBlocks(r){let n=o.concat([function(e){let t=o.alloc(2);return t.writeUInt16BE(e,0),t}(r.length),r]),i=t-5,a=Math.ceil(n.length/i);n=o.concat([n,o.alloc(a*i-n.length+1).fill(0)]);let s=[];for(let t=0;ts&&(n=n.slice(0,s)),{data:n,dataLength:s,sequence:l}},getReducedResult(e){if(e&&e.dataLength===e.data.length)return e.data}}),l=r(75102),u=r(91288),c=r(48834).lW,d=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};let f=[{vendorId:l.An}],h=()=>{let{hid:e}=navigator;if(!e)throw new i.PS("navigator.hid is not supported","HIDNotSupported");return e};function p(){return d(this,void 0,void 0,function*(){let e=yield h().requestDevice({filters:f});return Array.isArray(e)?e:[e]})}function m(){return d(this,void 0,void 0,function*(){let e=yield h().getDevices();return e.filter(e=>e.vendorId===l.An)})}class v extends n.ZP{constructor(e){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(e=>{this.inputCallback=e}),this.onInputReport=e=>{let t=c.from(e.data.buffer);this.inputCallback?(this.inputCallback(t),this.inputCallback=null):this.inputs.push(t)},this._disconnectEmitted=!1,this._emitDisconnect=e=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",e))},this.exchange=e=>d(this,void 0,void 0,function*(){let t=yield this.exchangeAtomicImpl(()=>d(this,void 0,void 0,function*(){let t,r;let{channel:n,packetSize:i}=this;(0,u.c)("apdu","=> "+e.toString("hex"));let o=s(n,i),a=o.makeBlocks(e);for(let e=0;e{if(e&&e.message&&e.message.includes("write"))throw this._emitDisconnect(e),new i.vs(e.message);throw e});return t}),this.device=e,this.deviceModel="number"==typeof e.productId?(0,l.Ht)(e.productId):void 0,e.addEventListener("inputreport",this.onInputReport)}static request(){return d(this,void 0,void 0,function*(){let[e]=yield p();return v.open(e)})}static openConnected(){return d(this,void 0,void 0,function*(){let e=yield m();return 0===e.length?null:v.open(e[0])})}static open(e){return d(this,void 0,void 0,function*(){yield e.open();let t=new v(e),r=n=>{e===n.device&&(h().removeEventListener("disconnect",r),t._emitDisconnect(new i.qX))};return h().addEventListener("disconnect",r),t})}close(){return d(this,void 0,void 0,function*(){yield this.exchangeBusyPromise,this.device.removeEventListener("inputreport",this.onInputReport),yield this.device.close()})}setScrambleKey(){}}v.isSupported=()=>Promise.resolve(!!(window.navigator&&window.navigator.hid)),v.list=m,v.listen=e=>{let t=!1;return(function(){return d(this,void 0,void 0,function*(){let e=yield m();if(e.length>0)return e[0];let t=yield p();return t[0]})})().then(r=>{if(r){if(!t){let t="number"==typeof r.productId?(0,l.Ht)(r.productId):void 0;e.next({type:"add",descriptor:r,deviceModel:t}),e.complete()}}else e.error(new i.FB("Access denied to use Ledger device"))},t=>{e.error(new i.FB(t.message))}),{unsubscribe:function(){t=!0}}};var g=v},97790:function(e,t,r){"use strict";var n=r(22699),i=r.n(n),o=r(9341),a=r(48834).lW,s=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};class l{constructor(){this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new(i()),this.send=(e,t,r,n,i=a.alloc(0),l=[o.WC.OK])=>s(this,void 0,void 0,function*(){if(i.length>=256)throw new o.PS("data.length exceed 256 bytes limit. Got: "+i.length,"DataLengthTooBig");let s=yield this.exchange(a.concat([a.from([e,t,r,n]),a.from([i.length]),i])),u=s.readUInt16BE(s.length-2);if(!l.some(e=>e===u))throw new o.rZ(u);return s}),this.exchangeAtomicImpl=e=>s(this,void 0,void 0,function*(){let t;if(this.exchangeBusyPromise)throw new o.wp("An action was already pending on the Ledger device. Please deny or reconnect.");let r=new Promise(e=>{t=e});this.exchangeBusyPromise=r;let n=!1,i=setTimeout(()=>{n=!0,this.emit("unresponsive")},this.unresponsiveTimeout);try{let t=yield e();return n&&this.emit("responsive"),t}finally{clearTimeout(i),t&&t(),this.exchangeBusyPromise=null}}),this._appAPIlock=null}exchange(e){throw Error("exchange not implemented")}exchangeBulk(e,t){let r=!1;return s(this,void 0,void 0,function*(){if(!r)for(let n of e){let e=yield this.exchange(n);if(r)return;let i=e.readUInt16BE(e.length-2);if(i!==o.WC.OK)throw new o.rZ(i);t.next(e)}}).then(()=>!r&&t.complete(),e=>!r&&t.error(e)),{unsubscribe:()=>{r=!0}}}setScrambleKey(e){}close(){return Promise.resolve()}on(e,t){this._events.on(e,t)}off(e,t){this._events.removeListener(e,t)}emit(e,...t){this._events.emit(e,...t)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(e){this.exchangeTimeout=e}setExchangeUnresponsiveTimeout(e){this.unresponsiveTimeout=e}static create(e=3e3,t){return new Promise((r,n)=>{let i=!1,a=this.listen({next:t=>{i=!0,a&&a.unsubscribe(),s&&clearTimeout(s),this.open(t.descriptor,e).then(r,n)},error:e=>{s&&clearTimeout(s),n(e)},complete:()=>{s&&clearTimeout(s),i||n(new o.PS(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),s=t?setTimeout(()=>{a.unsubscribe(),n(new o.PS(this.ErrorMessage_ListenTimeout,"ListenTimeout"))},t):null})}decorateAppAPIMethods(e,t,r){for(let n of t)e[n]=this.decorateAppAPIMethod(n,e[n],e,r)}decorateAppAPIMethod(e,t,r,n){return(...i)=>s(this,void 0,void 0,function*(){let{_appAPIlock:a}=this;if(a)return Promise.reject(new o.PS("Ledger Device is busy (lock "+a+")","TransportLocked"));try{return this._appAPIlock=e,this.setScrambleKey(n),yield t.apply(r,i)}finally{this._appAPIlock=null}})}}l.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",l.ErrorMessage_NoDeviceFound="No Ledger device found",t.ZP=l},91288:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=0,i=[],o=function(e,t,r){var o={type:e,id:String(++n),date:new Date};t&&(o.message=t),r&&(o.data=r),function(e){for(var t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1] - * @license MIT - */let n=r(95766),i=r(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(I(e,Uint8Array)){let t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);let i=function(e){var t;if(s.isBuffer(e)){let t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){let t=e.length<0?0:0|h(e.length),r=a(t);for(let n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(i)return n?-1:P(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(o=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,i){T(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function S(e,t,r,n,i){T(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function j(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function C(e,t,r,n,o){return t=+t,r>>>=0,o||j(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,o){return t=+t,r>>>=0,o||j(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(s.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=V(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&N(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&N(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=V(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&N(e,this.length-8);let n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&N(e,this.length-8);let n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=V(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=V(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=V(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=V(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function T(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new A.ERR_OUT_OF_RANGE("value",n,e)}M(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&N(i,n.length-(o+1))}function M(e,t){if("number"!=typeof e)throw new A.ERR_INVALID_ARG_TYPE(t,"number",e)}function N(e,t,r){if(Math.floor(e)!==e)throw M(e,r),new A.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new A.ERR_BUFFER_OUT_OF_BOUNDS;throw new A.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}O("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),O("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=_(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=_(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let R=/[^+/0-9A-Za-z-_]/g;function P(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function L(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,r,n){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let F=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function V(e){return"undefined"==typeof BigInt?B:e}function B(){throw Error("BigInt not supported")}},52180:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",r=0;r>>18&63)+this._encodeByte(n>>>12&63)+this._encodeByte(n>>>6&63)+this._encodeByte(n>>>0&63)}var i=e.length-r;if(i>0){var n=e[r]<<16|(2===i?e[r+1]<<8:0);t+=this._encodeByte(n>>>18&63)+this._encodeByte(n>>>12&63),2===i?t+=this._encodeByte(n>>>6&63):t+=this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),r=e.length-t,n=new Uint8Array(this.maxDecodedLength(r)),i=0,o=0,a=0,s=0,l=0,u=0,c=0;o>>4,n[i++]=l<<4|u>>>2,n[i++]=u<<6|c,a|=256&s,a|=256&l,a|=256&u,a|=256&c;if(o>>4,a|=256&s,a|=256&l),o>>2,a|=256&u),o>>8&6)+(51-e>>>8&-75)+(61-e>>>8&-15)+(62-e>>>8&3))},e.prototype._decodeChar=function(e){return 256+((42-e&e-44)>>>8&-256+e-43+62)+((46-e&e-48)>>>8&-256+e-47+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var r=e.length-1;r>=0&&e[r]===this._paddingCharacter;r--)t++;if(e.length<4||t>2)throw Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=i;var o=new i;t.encode=function(e){return o.encode(e)},t.decode=function(e){return o.decode(e)};var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype._encodeByte=function(e){var t=e;return String.fromCharCode(t+=65+(25-e>>>8&6)+(51-e>>>8&-75)+(61-e>>>8&-13)+(62-e>>>8&49))},t.prototype._decodeChar=function(e){return 256+((44-e&e-46)>>>8&-256+e-45+62)+((94-e&e-96)>>>8&-256+e-95+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},t}(i);t.URLSafeCoder=a;var s=new a;t.encodeURLSafe=function(e){return s.encode(e)},t.decodeURLSafe=function(e){return s.decode(e)},t.encodedLength=function(e){return o.encodedLength(e)},t.maxDecodedLength=function(e){return o.maxDecodedLength(e)},t.decodedLength=function(e){return o.decodedLength(e)}},99985:function(e,t,r){"use strict";t.Z=s;var n=a(r(13980)),i=a(r(2784)),o=a(r(23442));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.captureDragArea,r=void 0===t||t,n=e.snapToPointer,a=e.children,s=e.dx,l=e.dy,u=e.height,c=e.onDragEnd,d=e.onDragMove,f=e.onDragStart,h=e.resetOnStart,p=e.width,m=e.x,v=e.y,g=e.isDragging,y=e.restrict,b=e.restrictToPath,x=(0,o.default)({resetOnStart:h,snapToPointer:void 0===n||n,onDragEnd:c,onDragMove:d,onDragStart:f,x:m,y:v,dx:s,dy:l,isDragging:g,restrict:y,restrictToPath:b});return i.default.createElement(i.default.Fragment,null,x.isDragging&&r&&i.default.createElement("rect",{width:p,height:u,onPointerDown:x.dragStart,onPointerMove:x.dragMove,onPointerUp:x.dragEnd,fill:"transparent"}),a(x))}s.propTypes={children:n.default.func.isRequired,width:n.default.number.isRequired,height:n.default.number.isRequired,captureDragArea:n.default.bool,isDragging:n.default.bool}},23442:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0===e?{}:e,r=t.resetOnStart,u=void 0!==r&&r,d=t.snapToPointer,f=void 0===d||d,h=t.onDragEnd,p=t.onDragMove,m=t.onDragStart,v=t.x,g=t.y,y=t.dx,b=t.dy,x=t.isDragging,w=t.restrict,E=void 0===w?{}:w,S=t.restrictToPath,j=(0,n.useRef)({x:v,y:g,dx:y,dy:b}),C=(0,a.default)({x:v,y:g,dx:null!=y?y:0,dy:null!=b?b:0,isDragging:!1}),k=C[0],A=C[1],O=(0,n.useState)(new i.Point({x:0,y:0})),_=O[0],T=O[1];(0,n.useEffect)(function(){(j.current.x!==v||j.current.y!==g||j.current.dx!==y||j.current.dy!==b)&&(j.current={x:v,y:g,dx:y,dy:b},A(function(e){return c({},e,{x:v,y:g,dx:null!=y?y:0,dy:null!=b?b:0})}))}),(0,n.useEffect)(function(){void 0!==x&&k.isDragging!==x&&A(function(e){return c({},e,{isDragging:x})})},[k.isDragging,x,A]);var M=(0,l.default)(S),N=(0,n.useCallback)(function(e){e.persist(),A(function(t){var r=t.x,n=t.y,a=t.dx,l=t.dy,c=new i.Point({x:((void 0===r?0:r)||0)+a,y:((void 0===n?0:n)||0)+l}),d=(0,o.localPoint)(e)||new i.Point({x:0,y:0}),h=f?d:c,p=(0,s.default)(h,M,E);return T((0,i.subtractPoints)(c,d)),{isDragging:!0,dx:u?0:t.dx,dy:u?0:t.dy,x:u?p.x:p.x-t.dx,y:u?p.y:p.y-t.dy}},m&&function(t){m(c({},t,{event:e}))})},[m,u,E,M,A,f]),R=(0,n.useCallback)(function(e){e.persist(),A(function(t){if(!t.isDragging)return t;var r=t.x,n=t.y,a=(0,o.localPoint)(e)||new i.Point({x:0,y:0}),l=f?a:(0,i.sumPoints)(a,_),u=(0,s.default)(l,M,E);return c({},t,{dx:u.x-(void 0===r?0:r),dy:u.y-(void 0===n?0:n)})},p&&function(t){t.isDragging&&p(c({},t,{event:e}))})},[A,p,f,_,M,E]),P=(0,n.useCallback)(function(e){e.persist(),A(function(e){return c({},e,{isDragging:!1})},h&&function(t){h(c({},t,{event:e}))})},[h,A]);return c({},k,{dragEnd:P,dragMove:R,dragStart:N})};var n=r(2784),i=r(61305),o=r(65319),a=u(r(37016)),s=u(r(60890)),l=u(r(32722));function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=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);!(n=a()).done;){var s=n.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,n.default)(e.x,null!=(o=r.xMin)?o:-1/0,null!=(a=r.xMax)?a:1/0),y:(0,n.default)(e.y,null!=(s=r.yMin)?s:-1/0,null!=(l=r.yMax)?l:1/0)}};var n=o(r(30968)),i=o(r(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){return(0,n.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,r){if(void 0===r&&(r=1),!e)return[];for(var n=[],i=e.getTotalLength(),o=0;o<=i;o+=r){var a=e.getPointAtLength(o).matrixTransform(t);n.push(a)}return n}(e,t)},[null==e?void 0:e.getTotalLength()])};var n=r(2784)},37016:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,n.useState)(e),r=t[0],i=t[1],o=(0,n.useRef)(null),a=(0,n.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,n.useLayoutEffect)(function(){o.current&&(o.current(r),o.current=null)},[r]),[r,a]};var n=r(2784)},65319:function(e,t,r){"use strict";r.r(t),r.d(t,{localPoint:function(){return n.Z},touchPoint:function(){return i.Z}});var n=r(91032),i=r(49833)},91032:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(49833),i=r(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,n.Z)(e,t);if((0,i.cO)(e)){var r=e.target;if(r)return(0,n.Z)(r,e)}return null}},49833:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(19067),i=r(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,r=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return r?{x:r.x+r.width/2,y:r.y+r.height/2}:o({},a)}(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=r.x,u.y=r.y,u=u.matrixTransform(l.inverse()),new n.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new n.Z({x:r.x-c.left-e.clientLeft,y:r.y-c.top-e.clientTop})}},44321:function(e,t,r){"use strict";function n(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(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)}r.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return n},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},19067:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=function(){function e(e){var t=e.x,r=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===r?0:r}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,r){"use strict";r.r(t),r.d(t,{Point:function(){return n.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var n=r(19067);function i(e,t){return new n.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new n.Z({x:e.x-t.x,y:e.y-t.y})}},47440:function(e,t,r){"use strict";t.Z=function(e){var t=e.from,r=void 0===t?{x:0,y:0}:t,a=e.to,l=void 0===a?{x:1,y:1}:a,u=e.fill,c=e.className,d=e.innerRef,f=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,o),h=r.x===l.x||r.y===l.y;return n.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:r.x,y1:r.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var n=a(r(2784)),i=a(r(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.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 r=Array(arguments.length),n=0;n=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([r]):a[t]=a[t]?a[t]+", "+r:r)}),a}},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,r){"use strict";var n=r(48834).lW,i=r(93044);e.exports=function(e,t){t=t||new FormData;var r=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return!function e(n,a){if(i.isPlainObject(n)||i.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),i.forEach(n,function(r,n){if(!i.isUndefined(r)){var s,l=a?a+"."+n:n;if(r&&!a&&"object"==typeof r){if(i.endsWith(n,"{}"))r=JSON.stringify(r);else if(i.endsWith(n,"[]")&&(s=i.toArray(r))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(r,l)}}),r.pop()}else t.append(a,o(n))}(e),t}},17525:function(e,t,r){"use strict";var n=r(29241).version,i=r(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new i(o(n," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,r){"use strict";var n,i,o=r(73644),a=Object.prototype.toString,s=(n=Object.create(null),function(e){var t=a.call(e);return n[t]||(n[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]"===a.call(e)}var b=l("URLSearchParams");function x(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r0;)a[o=n[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return -1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(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 r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},6391:function(e,t,r){var n;!function(i){"use strict";var o,a=/^-?(?:\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,r,n=1,i=e.length,o=e[0]+"";nu^r?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^r?1:-1;return l==u?0:l>u^r?1:-1}function m(e,t,r,n){if(er||e!==l(e))throw Error(u+(n||"Argument")+("number"==typeof e?er?" 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,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else tM?h.c=h.e=null:e.e=10;s/=10,o++);o>M?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return S(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,D.length,"Base"),10==t&&I)return z(h=new F(e),k+h.e+1,A);if(f=String(e),u="number"==typeof e){if(0*e!=0)return S(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(r=D.slice(0,t),o=s=0,d=f.length;sr.indexOf(n=f.charAt(s))){if("."==n){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return S(h,String(e),u,t)}u=!1,(o=(f=E(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=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((o=o-s-1)>M)h.c=h.e=null;else if(o=_)?g(l,a):y(l,a,"0");else if(o=(e=z(new F(e),t,r)).e,s=(l=h(e.c)).length,1==n||2==n&&(t<=o||o<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function B(e,t){for(var r,n=1,i=new F(e[0]);n=10;i/=10,n++);return(r=n+14*r-1)>M?e.c=e.e=null:r=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(n){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(n=n||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),n=r<4?(h||n)&&(0==r||r==(e.s<0?3:2)):h>5||5==h&&(4==r||n||6==r&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,n?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),n)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>M?e.c=e.e=null:e.e=_?g(t,r):y(t,r,"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,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(r=e[t],0,1e9,t),k=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(r=e[t],0,8,t),A=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(m(r[0],-1e9,0,t),m(r[1],0,1e9,t),O=r[0],_=r[1]):(m(r,-1e9,1e9,t),O=-(_=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)m(r[0],-1e9,-1,t),m(r[1],1,1e9,t),T=r[0],M=r[1];else if(m(r,-1e9,1e9,t),r)T=-(M=r<0?-r:r);else throw Error(u+t+" cannot be zero: "+r)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(r=e[t])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))N=r;else throw N=!r,Error(u+"crypto unavailable")}else N=r}else throw Error(u+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(r=e[t],0,9,t),R=r),e.hasOwnProperty(t="POW_PRECISION")&&(m(r=e[t],0,1e9,t),P=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))L=r;else throw Error(u+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(u+t+" invalid: "+r);I="0123456789"==r.slice(0,10),D=r}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:k,ROUNDING_MODE:A,EXPONENTIAL_AT:[O,_],RANGE:[T,M],CRYPTO:N,MODULO_MODE:R,POW_PRECISION:P,FORMAT:L,ALPHABET:D}},F.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!F.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t=1e14||r!==l(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},F.maximum=F.max=function(){return B(arguments,j.lt)},F.minimum=F.min=function(){return B(arguments,j.gt)},F.random=(r=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,n,i,o,a,c=0,f=[],h=new F(C);if(null==e?e=k:m(e,0,1e9),o=s(e/14),N){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw N=!1,Error(u+"crypto unavailable")}if(!N)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),F.sum=function(){for(var e=1,t=arguments,r=new F(t[0]);er-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,l,u,c,d,f,p,m,v=r.indexOf("."),g=k,b=A;for(v>=0&&(c=P,P=0,r=r.replace(".",""),f=(m=new F(n)).pow(r.length-v),P=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(r,n,i,a?(s=D,e):(s=e,D))).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=o,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])r=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,r="";v<=c;r+=s.charAt(p[v++]));r=y(r,u,s.charAt(0))}return r}}(),w=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,s){var u,c,d,h,p,m,v,g,y,b,x,w,E,S,j,C,k,A=n.s==i.s?1:-1,O=n.c,_=i.c;if(!O||!O[0]||!_||!_[0])return new F(n.s&&i.s&&(O?!_||O[0]!=_[0]:_)?O&&0==O[0]||!_?0*A:A/0:NaN);for(y=(g=new F(A)).c=[],A=o+(c=n.e-i.e)+1,s||(s=1e14,c=f(n.e/14)-f(i.e/14),A=A/14|0),d=0;_[d]==(O[d]||0);d++);if(_[d]>(O[d]||0)&&c--,A<0)y.push(1),h=!0;else{for(S=O.length,C=_.length,d=0,A+=2,(p=l(s/(_[0]+1)))>1&&(_=e(_,p,s),O=e(O,p,s),C=_.length,S=O.length),E=C,x=(b=O.slice(0,C)).length;x=s/2&&j++;do{if(p=0,(u=t(_,b,C,x))<0){if(w=b[0],C!=x&&(w=w*s+(b[1]||0)),(p=l(w/j))>1)for(p>=s&&(p=s-1),v=(m=e(_,p,s)).length,x=b.length;1==t(m,b,v,x);)p--,r(m,Ct(_,b,C,x);)p++,r(b,C=10;A/=10,d++);z(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,S=function(e,t,r,a){var s,l=r?t:t.replace(x,"");if(b.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!r&&(l=l.replace(n,function(e,t,r){return s="x"==(r=r.toLowerCase())?16:"b"==r?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new F(l,s);if(F.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},j.absoluteValue=j.abs=function(){var e=new F(this);return e.s<0&&(e.s=1),e},j.comparedTo=function(e,t){return p(this,new F(e,t))},j.decimalPlaces=j.dp=function(e,t){var r,n,i;if(null!=e)return m(e,0,1e9),null==t?t=A:m(t,0,8),z(new F(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-f(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},j.dividedBy=j.div=function(e,t){return w(this,new F(e,t),k,A)},j.dividedToIntegerBy=j.idiv=function(e,t){return w(this,new F(e,t),0,1)},j.exponentiatedBy=j.pow=function(e,t){var r,n,i,o,a,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);(n=!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 o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new F(d?1/o:o);P&&(o=s(P/14+2))}for(c?(r=new F(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new F(C);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):n&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(z(e=e.times(r),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?h:(d&&(h=C.div(h)),t?h.mod(t):o?z(h,P,A,a):h)},j.integerValue=function(e){var t=new F(this);return null==e?e=A:m(e,0,8),z(t,t.e+1,e)},j.isEqualTo=j.eq=function(e,t){return 0===p(this,new F(e,t))},j.isFinite=function(){return!!this.c},j.isGreaterThan=j.gt=function(e,t){return p(this,new F(e,t))>0},j.isGreaterThanOrEqualTo=j.gte=function(e,t){return 1===(t=p(this,new F(e,t)))||0===t},j.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},j.isLessThan=j.lt=function(e,t){return 0>p(this,new F(e,t))},j.isLessThanOrEqualTo=j.lte=function(e,t){return -1===(t=p(this,new F(e,t)))||0===t},j.isNaN=function(){return!this.s},j.isNegative=function(){return this.s<0},j.isPositive=function(){return this.s>0},j.isZero=function(){return!!this.c&&0==this.c[0]},j.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new F(e,t)).s,!a||!t)return new F(NaN);if(a!=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==A?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[r++]=0);for(t=1e14-1;n>a;){if(u[--n]=0;){for(r=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,r=((u=h*u+s%1e7*1e7+m[o]+r)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=r}return r?++n:m.splice(0,1),U(e,m,n)},j.negated=function(){var e=new F(this);return e.s=-e.s||null,e},j.plus=function(e,t){var r,n=this.s;if(t=(e=new F(e,t)).s,!n||!t)return new F(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new F(n/0);if(!a[0]||!s[0])return s[0]?e:new F(a[0]?this:0*n)}if(i=f(i),o=f(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),U(e,a,o)},j.precision=j.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=A:m(t,0,8),z(new F(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},j.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},j.squareRoot=j.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,l=k+4,u=new F("0.5");if(1!==a||!o||!o[0])return new F(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,r=new F(t)):r=new F(a+""),r.c[0]){for((a=(s=r.e)+l)<3&&(a=0);;)if(i=r,r=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(r.c)).slice(0,a)){if(r.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}n=d?c+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):c}return(r.prefix||"")+n+(r.suffix||"")},j.toFraction=function(e){var t,r,n,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new F(e)).isInteger()&&(s.c||1!==s.s)||s.lt(C)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new F(this);for(t=new F(C),c=r=new F(C),n=l=new F(C),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=M,M=1/0,s=new F(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=r.plus(f.times(n))).comparedTo(e);)r=n,n=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(r),n,0,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=this.s,o*=2,p=1>w(c,n,o,A).minus(this).abs().comparedTo(w(l,r,o,A).minus(this).abs())?[c,n]:[l,r],M=a,p},j.toNumber=function(){return+H(this)},j.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),V(this,e,t,2)},j.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=_?g(h(r.c),i):y(h(r.c),i,"0"):10===e&&I?t=y(h((r=z(new F(r),k+i+1,A)).c),r.e,"0"):(m(e,2,D.length,"Base"),t=E(y(h(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},j.valueOf=j.toJSON=function(){return H(this)},j._isBigNumber=!0,null!=t&&F.set(t),F}()).default=o.BigNumber=o,void 0!==(n=(function(){return o}).call(t,r,t,e))&&(e.exports=n)}(0)},70651:function(e,t,r){let n=r(7967);function i(e,t,r){let n=e[t]+e[r],i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=4294967296);let o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,r,n,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[n]^c[e],m=c[n+1]^c[e+1];c[n]=m,c[n+1]=p,i(c,r,n),p=c[t]^c[r],m=c[t+1]^c[r+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[n]^c[e],m=c[n+1]^c[e+1],c[n]=p>>>16^m<<16,c[n+1]=m>>>16^p<<16,i(c,r,n),p=c[t]^c[r],m=c[t+1]^c[r+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 r=0;for(r=0;r<16;r++)c[r]=e.h[r],c[r+16]=l[r];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),r=0;r<32;r++)d[r]=a(e.b,4*r);for(r=0;r<12;r++)s(0,8,16,24,u[16*r+0],u[16*r+1]),s(2,10,18,26,u[16*r+2],u[16*r+3]),s(4,12,20,28,u[16*r+4],u[16*r+5]),s(6,14,22,30,u[16*r+6],u[16*r+7]),s(0,10,20,30,u[16*r+8],u[16*r+9]),s(2,12,22,24,u[16*r+10],u[16*r+11]),s(4,14,16,26,u[16*r+12],u[16*r+13]),s(6,8,18,28,u[16*r+14],u[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^c[r]^c[r+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,r,n){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(r&&16!==r.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.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,r&&h.set(r,32),n&&h.set(n,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let r=0;r>2]>>8*(3&r);return t}function g(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));let a=p(r,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,r,i,o){let a=g(e,t,r,i,o);return n.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,r){let n=r(7967);function i(e,t,r,n,i,a){l[e]=l[e]+l[t]+i,l[n]=o(l[n]^l[e],16),l[r]=l[r]+l[n],l[t]=o(l[t]^l[r],12),l[e]=l[e]+l[t]+a,l[n]=o(l[n]^l[e],8),l[r]=l[r]+l[n],l[t]=o(l[t]^l[r],7)}function o(e,t){return e>>>t^e<<32-t}let a=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 r=0;for(r=0;r<8;r++)l[r]=e.h[r],l[r+8]=a[r];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),r=0;r<16;r++){var n,o;u[r]=(n=e.b)[o=4*r]^n[o+1]<<8^n[o+2]<<16^n[o+3]<<24}for(r=0;r<10;r++)i(0,4,8,12,u[s[16*r+0]],u[s[16*r+1]]),i(1,5,9,13,u[s[16*r+2]],u[s[16*r+3]]),i(2,6,10,14,u[s[16*r+4]],u[s[16*r+5]]),i(3,7,11,15,u[s[16*r+6]],u[s[16*r+7]]),i(0,5,10,15,u[s[16*r+8]],u[s[16*r+9]]),i(1,6,11,12,u[s[16*r+10]],u[s[16*r+11]]),i(2,7,8,13,u[s[16*r+12]],u[s[16*r+13]]),i(3,4,9,14,u[s[16*r+14]],u[s[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=l[r]^l[r+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let r=t?t.length:0;if(t&&!(r>0&&r<=32))throw Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(f(n,t),n.c=64),n}function f(e,t){for(let r=0;r>2]>>8*(3&r)&255;return t}function p(e,t,r){r=r||32,e=n.normalizeInput(e);let i=d(r,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,r){let i=p(e,t,r);return n.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,r){let n=r(70651),i=r(39962);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.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){let r=new TextEncoder;t=r.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,r,n){let i="\n"+e+" = ";for(let o=0;o - * @license MIT - */var n=r(95766),i=r(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(_(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(_(e,ArrayBuffer)||e&&_(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(_(e,SharedArrayBuffer)||e&&_(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var i=function(e){if(s.isBuffer(e)){var t,r=0|h(e.length),n=a(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||_(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(e).length;default:if(i)return n?-1:k(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function S(e,t,r,n,o){return t=+t,r>>>=0,o||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function j(e,t,r,n,o){return t=+t,r>>>=0,o||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);in.length?s.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(s.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),d=0;d>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return S(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return S(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function A(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function _(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},72779:function(e,t){var r;/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,console&&console.warn&&console.warn(u)}return e}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 d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var u=l.length,c=p(l,u),r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},73463:function(e,t,r){"use strict";var n=r(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),v=0;v */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<>1,c=-7,d=r?i-1:0,f=r?-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+=n;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:(h?-1:1)*(1/0);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*m}},39515:function(e,t,r){var n=r(38761)(r(37772),"DataView");e.exports=n},89612:function(e,t,r){var n=r(52118),i=r(96909),o=r(98138),a=r(4174),s=r(7942);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}},34893:function(e){e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n=200&&(d=l,f=!1,t=new n(t));t:for(;++c0&&o(c)?r>1?e(c,r-1,o,a,s):n(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,r){var n=r(55463)();e.exports=n},26548:function(e,t,r){var n=r(15308),i=r(90249);e.exports=function(e,t){return e&&n(e,t,i)}},13324:function(e,t,r){var n=r(17297),i=r(33812);e.exports=function(e,t){t=n(t,e);for(var r=0,o=t.length;null!=e&&r=120&&g.length>=120)?new n(h&&g):void 0}g=e[0];var y=-1,b=p[0];t:for(;++yi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new n}else p=t?[]:h;t:for(;++u=i?e:n(e,t,r)}},79882:function(e,t,r){var n=r(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},92175:function(e,t,r){e=r.nmd(e);var n=r(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},34727:function(e,t,r){var n=r(79882);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},70169:function(e,t,r){var n=r(50857),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,r){var n=r(79882);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},27520:function(e,t,r){var n=r(4795);e.exports=function(e,t){if(e!==t){var r=void 0!==e,i=null===e,o=e==e,a=n(e),s=void 0!==t,l=null===t,u=t==t,c=n(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!r&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==r[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++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&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,r){var n=r(22218);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},92411:function(e,t,r){var n=r(89612),i=r(80235),o=r(10326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},36417:function(e,t,r){var n=r(27937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,r){var n=r(27937);e.exports=function(e){return n(this,e).get(e)}},79493:function(e,t,r){var n=r(27937);e.exports=function(e){return n(this,e).has(e)}},24150:function(e,t,r){var n=r(27937);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},73477:function(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},77777:function(e,t,r){var n=r(30733);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},99191:function(e,t,r){var n=r(38761)(Object,"create");e.exports=n},54248:function(e,t,r){var n=r(60241)(Object.keys,Object);e.exports=n},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},4146:function(e,t,r){e=r.nmd(e);var n=r(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.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(r){return e(t(r))}}},43114:function(e,t,r){var n=r(49432),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},15243:function(e,t,r){var n=r(80235);e.exports=function(){this.__data__=new n,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},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,r){var n=r(80235),i=r(10326),o=r(96738);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},66024:function(e){e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n=t||r<0||v&&n>=c}function x(){var e,r,n,o=i();if(b(o))return w(o);f=setTimeout(x,(e=o-h,r=o-p,n=t-e,v?s(n,c-r):n))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function E(){var e,r=i(),n=b(r);if(l=arguments,u=this,h=r,n){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,n(r)&&(m=!!r.leading,c=(v="maxWait"in r)?a(o(r.maxWait)||0,t):c,g="trailing"in r?!!r.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,r){var n=r(61655),i=r(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,n).replace(a,"")}},17335:function(e,t,r){var n=r(85246),i=r(62034),o=r(36060),a=r(93746),s=o(function(e,t){return a(e)?n(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,r){e.exports=r(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,r){var n=r(62034);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},72579:function(e,t,r){var n=r(13324);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},3440:function(e,t,r){var n=r(13940),i=r(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,r){o.call(e,r)?e[r].push(t):n(e,r,[t])});e.exports=a},93352:function(e,t,r){var n=r(32726),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},95041:function(e,t,r){var n=r(20187),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},23059:function(e){e.exports=function(e){return e}},30898:function(e,t,r){var n=r(50343),i=r(88390),o=r(36060),a=r(5642),s=o(function(e){var t=n(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},79631:function(e,t,r){var n=r(15183),i=r(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n: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,r){var n=r(61049),i=r(61158);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},93746:function(e,t,r){var n=r(67878),i=r(15125);e.exports=function(e){return i(e)&&n(e)}},73226:function(e,t,r){e=r.nmd(e);var n=r(37772),i=r(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},18149:function(e,t,r){var n=r(88746);e.exports=function(e,t){return n(e,t)}},61049:function(e,t,r){var n=r(53366),i=r(29259);e.exports=function(e){if(!i(e))return!1;var t=n(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}},4714:function(e,t,r){var n=r(74511),i=r(47826),o=r(4146),a=o&&o.isMap,s=a?i(a):n;e.exports=s},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}},97030:function(e,t,r){var n=r(53366),i=r(47353),o=r(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==u}},43679:function(e,t,r){var n=r(8109),i=r(47826),o=r(4146),a=o&&o.isSet,s=a?i(a):n;e.exports=s},4795:function(e,t,r){var n=r(53366),i=r(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},77598:function(e,t,r){var n=r(35522),i=r(47826),o=r(4146),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},90249:function(e,t,r){var n=r(1634),i=r(86411),o=r(67878);e.exports=function(e){return o(e)?n(e):i(e)}},18582:function(e,t,r){var n=r(1634),i=r(18390),o=r(67878);e.exports=function(e){return o(e)?n(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},19950:function(e,t,r){var n=r(13940),i=r(26548),o=r(68286);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,t(e,i,o),e)}),r}},34519:function(e,t,r){var n=r(13940),i=r(26548),o=r(68286);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,i,t(e,i,o))}),r}},30733:function(e,t,r){var n=r(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},98537:function(e,t,r){var n=r(84565),i=r(97263)(function(e,t,r){n(e,t,r)});e.exports=i},34291:function(e){e.exports=function(){}},61100:function(e,t,r){var n=r(37772);e.exports=function(){return n.Date.now()}},17620:function(e,t,r){var n=r(50343),i=r(18874),o=r(29078),a=r(17297),s=r(752),l=r(48642),u=r(29097),c=r(76939),d=u(function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),r),u&&(r=i(r,7,l));for(var d=t.length;d--;)o(r,t[d]);return r});e.exports=d},65798:function(e,t,r){var n=r(20256),i=r(82952),o=r(21401),a=r(33812);e.exports=function(e){return o(e)?n(a(e)):i(e)}},57370:function(e,t,r){var n=r(34311)(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});e.exports=n},829:function(e,t,r){var n=r(62034),i=r(23813),o=r(36060),a=r(82406),s=o(function(e,t){if(null==e)return[];var r=t.length;return r>1&&a(e,t[0],t[1])?t=[]:r>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,n(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,r){var n=r(54073),i=r(29259);e.exports=function(e,t,r){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,r){var n=r(36473),i=r(89419),o=r(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var r=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=n(s,t);++r1,m=(e,t,r)=>{let n=e[f].get(t);if(n){let t=n.value;if(v(e,t)){if(y(e,n),!e[s])return}else r&&(e[h]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},v=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]},g=e=>{if(e[o]>e[i])for(let t=e[d].tail;e[o]>e[i]&&null!==t;){let r=t.prev;y(e,t),t=r}},y=(e,t)=>{if(t){let r=t.value;e[u]&&e[u](r.key,r.value),e[o]-=r.length,e[f].delete(r.key),e[d].removeNode(t)}};class b{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}let x=(e,t,r,n)=>{let i=r.value;v(e,i)&&(y(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[i]=e.max||1/0;let t=e.length||p;if(this[a]="function"!=typeof t?p:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[u]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[i]=e||1/0,g(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[l]=e,g(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[a]&&(this[a]=e,this[o]=0,this[d].forEach(e=>{e.length=this[a](e.value,e.key),this[o]+=e.length})),g(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){let n=r.prev;x(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){let n=r.next;x(this,e,r,t),r=n}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach(e=>this[u](e.key,e.value)),this[f]=new Map,this[d]=new n,this[o]=0}dump(){return this[d].map(e=>!v(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let n=r?Date.now():0,s=this[a](t,e);if(this[f].has(e)){if(s>this[i])return y(this,this[f].get(e)),!1;let a=this[f].get(e),l=a.value;return this[u]&&!this[c]&&this[u](e,l.value),l.now=n,l.maxAge=r,l.value=t,this[o]+=s-l.length,l.length=s,this.get(e),g(this),!0}let h=new b(e,t,s,n,r);return h.length>this[i]?(this[u]&&this[u](e,t),!1):(this[o]+=h.length,this[d].unshift(h),this[f].set(e,this[d].head),g(this),!0)}has(e){if(!this[f].has(e))return!1;let t=this[f].get(e).value;return!v(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){let e=this[d].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[f].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[f].forEach((e,t)=>m(this,t,!1))}}},53207:function(e,t,r){var n=r(96570);n.prototype.formulaEval=function(){"use strict";for(var e,t,r,n=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=n.pop(),t=n.pop(),n.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=n.pop(),t=n.pop(),r=n.pop(),n.push({value:i[o].show+"("+r.value+","+t.value+","+e.value+")",type:12}));return n[0].value},e.exports=n},66655:function(e,t,r){"use strict";var n=r(72346);function i(e,t){for(var r=0;rp.length-2?p.length-1:e.length-l;r>0;r--)if(void 0!==p[r])for(i=0;i0&&jr)s.push(e);else{for(;r>=i&&!c||c&&i1)throw new n.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},n.eval=function(e,t,r){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==r?this.lex(e,t).toPostfix().postfixEval(r):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=n},86570:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(13508)}])},70697:function(e,t,r){"use strict";r.d(t,{u:function(){return s}});var n=r(52322),i=r(25426),o=r(22038),a=r(83753);function s(){let{openDialog:e}=(0,a.Rh)();return(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,n.jsx)(l,{title:o.z.walletAddNew.title,description:o.z.walletAddNew.description,onSelect:()=>e("walletAddNew")}),(0,n.jsx)(l,{title:o.z.walletAddRecover.title,description:o.z.walletAddRecover.description,onSelect:()=>e("walletAddRecover")}),(0,n.jsx)(l,{title:o.z.walletAddWatch.title,description:o.z.walletAddWatch.description,onSelect:()=>e("walletAddWatch")}),(0,n.jsx)(l,{title:o.z.walletAddLedger.title,description:o.z.walletAddLedger.description,onSelect:()=>e("walletAddLedger")})]})}function l(e){let{title:t,description:r,disabled:o,onSelect:a}=e;return(0,n.jsx)(i.Wh3,{onClick:a,disabled:o,children:(0,n.jsxs)("div",{className:"flex flex-col gap-2 text-start",children:[(0,n.jsx)(i.X6q,{size:"20",children:t}),(0,n.jsx)(i.nvN,{size:"14",color:"subtle",children:r})]})})}},18250:function(e,t,r){"use strict";r.d(t,{g:function(){return s}});var n=r(52322),i=r(25426),o=r(20876),a=r(83753);function s(e){let{wallet:{id:t,type:r,status:s,lock:l,unlock:u},...c}=e,{openDialog:d}=(0,a.Rh)();return(0,n.jsxs)(i.h_2,{...c,children:[(0,n.jsx)(i.Juw,{children:"Actions"}),"seed"===r?"unlocked"===s?(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>l(),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.Lur,{})}),"Lock wallet"]}):(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>u(),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.VmF,{})}),"Unlock wallet"]}):null,(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>d("walletUpdate",{walletId:t}),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.dr6,{})}),"Edit wallet"]}),(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>d("walletRemove",{walletId:t}),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.Jrl,{})}),"Delete wallet"]})]})}},71930:function(e,t,r){"use strict";r.d(t,{_:function(){return i},h:function(){return o}});var n=r(41345);let i={home:"/",wallet:{base:"/wallets/",view:"/wallets/[id]",addresses:"/wallets/[id]/addresses"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},o=n.HE},22038:function(e,t,r){"use strict";r.d(t,{_:function(){return s},z:function(){return a}});var n=r(52322),i=r(25426),o=r(20876);let a={walletAddNew:{title:"Create a wallet",description:(0,n.jsxs)(n.Fragment,{children:["Generate a new wallet seed. The seed will never be sent to"," ",(0,n.jsx)(i.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddRecover:{title:"Recover a wallet",description:(0,n.jsxs)(n.Fragment,{children:["Restore a wallet from seed. The seed will never be sent to"," ",(0,n.jsx)(i.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddWatch:{title:"Add a watch-only wallet",description:(0,n.jsx)(n.Fragment,{children:"Create a watch-only wallet that tracks a set of addresses."})},walletAddLedger:{title:"Add a Ledger hardware wallet",description:(0,n.jsx)(n.Fragment,{children:"Add a Ledger hardware wallet. Transactions are signed with your hardware device."})}},s={seed:{title:"Seed-based wallet",icon:(0,n.jsx)(o.sZp,{})},watch:{title:"Watch-only wallet",icon:(0,n.jsx)(o.xVB,{})},ledger:{title:"Ledger hardware wallet",icon:(0,n.jsx)(o._Gh,{})}}},45283:function(e,t,r){"use strict";r.d(t,{OZ:function(){return m},Jz:function(){return p}});var n=r(52322),i=r(25426),o=r(41345),a=r(2784),s=r(81612),l=r(20876),u=r(83753);function c(e){let{address:{walletId:t,id:r,index:a},...s}=e,{openDialog:c}=(0,u.Rh)(),d=(0,o.XF)();return(0,n.jsxs)(i.h_2,{...s,children:[(0,n.jsx)(i.Juw,{children:"Actions"}),(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>c("confirm",{title:void 0!==a?"Remove address ".concat(a):"Remove address",action:"Remove",variant:"red",body:(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to remove the following address?"}),(0,n.jsxs)(i.nvN,{size:"14",font:"mono",children:[(0,i.I13)(r).slice(0,40),"..."]})]}),onConfirm:async()=>{let e=await d.delete({params:{id:t,addr:r}});e.error?(0,i.OHV)("Failed to delete address: ".concat(e.error)):(0,i.OPV)(void 0!==a?"Address ".concat(a," removed."):"Address removed.")}}),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(l.Jrl,{})}),"Remove address"]})]})}let d=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,n.jsx)(c,{trigger:(0,n.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,n.jsx)(l.iG7,{})}),contentProps:{align:"start"},address:t})}},{id:"address",label:"address",category:"general",fixed:!0,render:e=>{let{data:{address:t,description:r}}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(i.XxW,{maxLength:40,value:t,type:"address"}),r&&(0,n.jsx)(i.ua7,{content:(0,n.jsx)("pre",{children:(0,n.jsx)(i.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:r})}),children:(0,n.jsx)(i.nvN,{size:"12",children:r.split("\n")[0]})})]})}},{id:"index",label:"index",category:"general",render:e=>{let{data:{index:t}}=e;return void 0===t?null:(0,n.jsx)("div",{className:"flex flex-col gap-2",children:(0,n.jsx)(i.xvT,{children:t.toLocaleString()})})}}];var f=r(5632);let h=(0,a.createContext)({}),p=()=>(0,a.useContext)(h);function m(e){let{children:t}=e,r=function(){let{openDialog:e}=(0,u.Rh)(),t=(0,f.useRouter)(),r=t.query.id,n=(0,o.bd)({disabled:!r,params:{id:r}}),l=(0,a.useMemo)(()=>{if(!n.data)return null;let t=Object.entries(n.data||{}).map(t=>{let[n,i]=t;return{id:n,address:n,description:i.description,index:i.index,publicKey:i.publicKey,walletId:r,onClick:()=>e("addressUpdate",{walletId:r,address:n})}});return t},[n.data,e,r]),{filters:c,setFilter:h,removeFilter:p,removeLastFilter:m,resetFilters:v}=(0,i.Wdu)(),{configurableColumns:g,enabledColumns:y,sortableColumns:b,toggleColumnVisibility:x,setColumnsVisible:w,setColumnsHidden:E,toggleSort:S,setSortDirection:j,setSortField:C,sortField:k,sortDirection:A,resetDefaultColumnVisibility:O}=(0,i.oy6)("walletd/v0/addresses",{columns:d,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),_=(0,i._4u)({dataset:l,filters:c,sortField:k,sortDirection:A}),T=(0,a.useMemo)(()=>d.filter(e=>e.fixed||y.includes(e.id)),[y]),M=(0,i.c2j)(l,n.isValidating,n.error,c),N=(l||[]).reduce((e,t)=>{let{index:r}=t;return r>e?r:e},-1);return{dataState:M,error:n.error,datasetCount:(null==_?void 0:_.length)||0,columns:T,dataset:_,lastIndex:N,configurableColumns:g,enabledColumns:y,sortableColumns:b,toggleColumnVisibility:x,setColumnsVisible:w,setColumnsHidden:E,toggleSort:S,setSortDirection:j,setSortField:C,sortField:k,filters:c,setFilter:h,removeFilter:p,removeLastFilter:m,resetFilters:v,sortDirection:A,resetDefaultColumnVisibility:O}}();return(0,n.jsx)(h.Provider,{value:r,children:t})}},81612:function(e,t,r){"use strict";r.d(t,{Fo:function(){return o},gd:function(){return n},nw:function(){return i}});let n=["actions","address","index"],i="index",o=[{id:"address",label:"address",category:"general"},{id:"index",label:"index",category:"general"}]},83753:function(e,t,r){"use strict";let n;r.d(t,{Tu:function(){return eB},xQ:function(){return eU},Rh:function(){return eV}});var i=r(52322),o=r(2784),a=r(25426),s=r(41345),l=r(70697);function u(e){let{open:t,trigger:r,onOpenChange:n}=e;return(0,i.jsx)(a.VqE,{title:"Add Wallet",trigger:r,open:t,onOpenChange:n,contentVariants:{className:"max-w-[600px]"},children:(0,i.jsx)(l.u,{})})}var c=r(20876),d=r(63955),f=r(6110);let h="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var p={randomUUID:h};let m=new Uint8Array(16),v=[];for(let e=0;e<256;++e)v.push((e+256).toString(16).slice(1));var g=function(e,t,r){if(p.randomUUID&&!t&&!e)return p.randomUUID();e=e||{};let i=e.random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(m)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return function(e,t=0){return(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase()}(i)},y=r(22038),b=r(81395);function x(e){let{copySeed:t,children:r,icon:n,description:o}=e;return(0,i.jsxs)("div",{className:"",children:[r,(0,i.jsx)(a.s_4,{className:"mt-2",children:(0,i.jsxs)("div",{className:"flex gap-6 items-center py-4 px-4",children:[(0,i.jsx)("div",{className:"flex",children:n}),(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(a.nvN,{size:"14",children:o}),t&&(0,i.jsx)(a.zxk,{onClick:t,children:"Copy Seed to Clipboard"})]})]})})]})}var w=r(74236);let E={name:"",description:"",mnemonic:"",hasCopied:!1};function S(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eV(),u=(0,s.lT)(),h=(0,d.cI)({mode:"all",defaultValues:E}),p=h.watch("mnemonic"),m=(0,o.useCallback)(()=>{(0,a.vQq)(p,"seed"),h.setValue("hasCopied",!0,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),h.clearErrors(["mnemonic"])},[p,h]),v=(0,o.useCallback)(async()=>{let{phrase:e}=(0,w.x)().newSeedPhrase();h.setValue("hasCopied",!1),h.setValue("mnemonic",e),h.clearErrors(["hasCopied","mnemonic"])},[h]);(0,o.useEffect)(()=>{r&&v()},[r]);let{dataset:S}=(0,f.r)(),j=(null==S?void 0:S.map(e=>e.name))||[],C=function(e){let{walletNames:t,copySeed:r}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"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:e=>{e.currentTarget.select(),r()},readOnly:!0,placeholder:"",validation:{required:"required",validate:{valid:e=>{let{error:t}=(0,w.x)().seedFromPhrase(e);return!t||"seed should be 12 word BIP39 mnemonic"},copied:(e,t)=>t.hasCopied||"Copy seed to continue"}}},hasCopied:{type:"boolean",title:"",validation:{}}}}({walletNames:j,copySeed:m}),k=(0,o.useCallback)(async e=>{let t=g(),{seed:r}=(0,w.x)().seedFromPhrase(e.mnemonic),n=(0,b.blake2bHex)(r),i=await u.put({params:{id:t},payload:{type:"seed",seedHash:n,name:e.name,createdAt:new Date().getTime(),description:e.description}});i.error?(0,a.OHV)(i.error):(l("walletAddressesGenerate",{walletId:t}),h.reset(E))},[h,l,u]);return(0,i.jsx)(a.VqE,{title:y.z.walletAddNew.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:h.handleSubmit(k),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:h,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddNew.description}),(0,i.jsx)(a.yEL,{name:"name",form:h,fields:C}),(0,i.jsx)(a.Bau,{name:"description",form:h,fields:C}),(0,i.jsx)(x,{icon:(0,i.jsx)(c.fwm,{}),description:(0,i.jsx)(i.Fragment,{children:"This is the wallet's seed mnemonic. Make sure to save it somewhere secure."}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(a.Bau,{form:h,fields:C,name:"mnemonic"}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsxs)(a.zxk,{className:"flex-1",onClick:v,children:[(0,i.jsx)(c.nt4,{}),"Regenerate"]}),(0,i.jsxs)(a.zxk,{className:"flex-1",onClick:m,children:[(0,i.jsx)(c.olJ,{}),"Copy to clipboard"]})]})]})})]})})}function j(e){let{form:t,onOpenChange:r,defaultValues:n}=e,i=(0,o.useCallback)(()=>{t.reset(n)},[t,n]),a=(0,o.useCallback)(()=>{r(!1),t.reset(n)},[t,r,n]),s=(0,o.useCallback)(e=>{e||a()},[a]);return{reset:i,closeAndReset:a,handleOpenChange:s}}var C=r(6391),k=r.n(C);function A(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n}=e;return{type:r,title:"Seed",actions:(0,i.jsx)("div",{className:"flex gap-1",children:(0,i.jsx)(a.zxk,{tip:"password"===r?"Show seed":"Hide seed",tabIndex:-1,variant:"ghost",icon:"hover",onClick:()=>n("password"===r?"text":"password"),children:"password"===r?(0,i.jsx)(c.pHg,{}):(0,i.jsx)(c.xVB,{})})}),placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:e=>{let{error:t}=(0,w.x)().seedFromPhrase(e);return!t||"seed should be 12 word BIP39 mnemonic"},match:e=>{let{seed:r}=(0,w.x)().seedFromPhrase(e);return(0,b.blake2bHex)(r)===t||"seed does not match"}}}}}var O=r(8822);function _(e){let{walletId:t,name:r,form:n,fields:o,actionText:s}=e,{dataset:l,walletAutoLockEnabled:u,walletAutoLockTimeout:d}=(0,f.r)(),h=null==l?void 0:l.find(e=>e.id===t),p=null==h?void 0:h.seed,m=(0,O.l)(d),v=s?" and ".concat(s):"";return p?(0,i.jsx)(x,{icon:(0,i.jsx)(c.R$y,{}),description:u?(0,i.jsxs)(i.Fragment,{children:["The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ",m.amount," ",m.units,", manually locked, or the app is closed."]}):(0,i.jsx)(i.Fragment,{children:"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed."})}):(0,i.jsx)(x,{icon:(0,i.jsx)(c.R$y,{}),description:u?(0,i.jsxs)(i.Fragment,{children:["Enter your seed mnemonic to unlock the wallet",v,". The wallet will stay unlocked until it is inactive for"," ",m.amount," ",m.units,", manually locked, or the app is closed."]}):(0,i.jsxs)(i.Fragment,{children:["Enter your seed mnemonic to unlock the wallet and",v,". The wallet will stay unlocked until it is manually locked or the app is closed."]}),children:(0,i.jsx)(a.yEL,{form:n,fields:o,name:r})})}function T(e){let{dataset:t}=(0,f.r)(),r=null==t?void 0:t.find(t=>t.id===e),n=null==r?void 0:r.seed,i=!!n;return{cachedSeed:n,isSeedCached:i,getSeedFromCacheOrForm:e=>{let{mnemonic:t}=e;return i?{seed:n}:(0,w.x)().seedFromPhrase(t)}}}let M=[];function N(e){let{id:t}=e,r=(0,s.bd)({disabled:!t,params:{id:t}}),n=(0,o.useMemo)(()=>{if(!r.data)return null;let e=Object.entries(r.data||{}).map(e=>{let[r,n]=e;return{id:r,address:r,description:n.description,publicKey:n.publicKey,index:n.index,walletId:t}});return e},[r.data,t]),i=(0,a.c2j)(n,r.isValidating,r.error,M),l=(n||[]).reduce((e,t)=>{let{index:r}=t;return r>e?r:e},-1);return{dataState:i,error:r.error,datasetCount:(null==n?void 0:n.length)||0,dataset:n,lastIndex:l}}function R(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},{lastIndex:c}=N({id:u}),{dataset:h,saveWalletSeed:p}=(0,f.r)(),m=null==h?void 0:h.find(e=>e.id===u),v=c+1,g={mnemonic:"",index:new(k())(v),count:new(k())(1)},[y,b]=(0,o.useState)("password"),x=(0,d.cI)({mode:"all",defaultValues:g});(0,o.useEffect)(()=>{x.formState.isSubmitting||x.setValue("index",new(k())(v))},[v]);let{handleOpenChange:E,closeAndReset:S}=j({form:x,onOpenChange:l,defaultValues:g}),C=x.watch("mnemonic"),O=x.watch("index"),M=x.watch("count"),R=function(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n}=e;return{mnemonic:A({seedHash:t,setMnemonicFieldType:n,mnemonicFieldType:r}),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}}}}({seedHash:null==m?void 0:m.seedHash,mnemonicFieldType:y,setMnemonicFieldType:b}),P=(0,s.yi)(),{getSeedFromCacheOrForm:L}=T(u),D=(0,o.useCallback)(async(e,t,r)=>{let n=L({mnemonic:e});if(n.error){(0,a.OHV)(n.error);return}let{seed:i}=n;for(let e=t;e0?"Not all addresses were saved.":""));return}}1===r?(0,a.OPV)("Successfully generated 1 address."):(0,a.OPV)("Successfully generated ".concat(r," addresses.")),p(u,i),S()},[L,S,P,u,p]),I=(0,o.useCallback)(()=>D(C,O.toNumber(),M.toNumber()),[D,C,O,M]);return(0,i.jsxs)(a.VqE,{title:"Wallet ".concat(null==m?void 0:m.name,": generate addresses"),trigger:r,open:n,onOpenChange:E,contentVariants:{className:"w-[500px]"},onSubmit:x.handleSubmit(I),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.ZqQ,{form:x,variant:"accent",size:"medium",children:"Continue"})}),children:[(0,i.jsx)(_,{walletId:u,name:"mnemonic",form:x,fields:R,actionText:"generate addresses"}),(0,i.jsxs)("div",{className:"flex gap-2 w-full pt-3",children:[(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:R,name:"index"})}),(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:R,name:"count"})})]})]})}var P=r(5632),L=r(71930);let D={name:""};function I(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,u=(0,P.useRouter)(),{walletId:c}=t||{},{closeDialog:h}=eV(),{dataset:p}=(0,f.r)(),m=null==p?void 0:p.find(e=>e.id===c),v=(0,s.OZ)(),g=(0,d.cI)({mode:"all",defaultValues:D}),y=(0,o.useCallback)(async()=>{let e=await v.delete({params:{id:c}});e.error?(0,a.OHV)(e.error):((0,a.OPV)("Wallet permanently removed."),g.reset(),h(),u.push(L._.home))},[g,c,v,h,u]),b=(0,o.useMemo)(()=>{var e;return{name:{type:"text",title:"Name",placeholder:e=null==m?void 0:m.name,validation:{required:"required",validate:{equals:t=>t===e||"name does not match"}}}}},[m]),x=(0,a.WsO)(b);return(0,i.jsx)(a.VqE,{title:"Remove wallet",trigger:r,open:n,onOpenChange:e=>{e||g.reset(D),l(e)},contentVariants:{className:"w-[400px]"},onSubmit:g.handleSubmit(y,x),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)(a.nvN,{size:"14",children:["Are you sure you would like to permanently remove the wallet"," ",(0,i.jsx)(a.EKh,{children:null==m?void 0:m.name}),"?"]}),(0,i.jsx)(a.nvN,{size:"14",children:"Enter the wallet name to confirm the removal."}),(0,i.jsx)(a.yEL,{name:"name",form:g,fields:b}),(0,i.jsx)(a.ZqQ,{variant:"red",form:g,children:"Remove"})]})})}let F={description:""};function V(e){let{trigger:t,open:r,onOpenChange:n,params:l}=e,{walletId:u,address:c}=l||{},{openDialog:f,closeDialog:h}=eV(),{dataset:p}=N({id:u}),m=null==p?void 0:p.find(e=>e.id===c),v=(0,s.yi)(),g=(0,d.cI)({mode:"all",defaultValues:F});(0,o.useEffect)(()=>{g.reset(m?{description:m.description}:F)},[l]);let y=(0,o.useCallback)(async e=>{let t=await v.put({params:{id:u,addr:c},payload:{...m,description:e.description}});t.error?(0,a.OHV)(t.error):(h(),g.reset(F))},[u,c,g,v,m,h]);return(0,i.jsx)(a.VqE,{title:(0,a.$Gg)(c,20),trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:g.handleSubmit(y),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{onClick:()=>f("addressRemove",{walletId:u,address:c}),children:"Remove address"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"small",form:g,children:"Save changes"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.hKn,{address:(null==m?void 0:m.address)||""}),(0,i.jsx)(a.Bau,{name:"description",form:g,fields:{description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}})]})})}let B={name:"",description:""};function U(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},{dataset:c}=(0,f.r)(),h=null==c?void 0:c.find(e=>e.id===u),p=(0,s.lT)(),m=(0,d.cI)({mode:"all",defaultValues:B}),{closeAndReset:v}=j({form:m,onOpenChange:l,defaultValues:B});(0,o.useEffect)(()=>{setTimeout(()=>{m.reset(h?{name:h.name,description:h.description}:B)},0)},[u]);let g=(0,o.useMemo)(()=>(null==c?void 0:c.reduce((e,t)=>t.name!==(null==h?void 0:h.name)?e.concat(t.name):e,[]))||[],[c,h]),y=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"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:g}),b=(0,o.useCallback)(async e=>{let t=await p.put({params:{id:u},payload:{...h,name:e.name,description:e.description}});t.error?(0,a.OHV)(t.error):v()},[u,p,h,v]);return(0,i.jsx)(a.VqE,{title:"".concat(null==h?void 0:h.name),trigger:r,open:n,onOpenChange:l,contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(b),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:m,children:"Save changes"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.__J,{children:"Type"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.Cts,{children:null==h?void 0:h.type})})]}),(0,i.jsx)(a.yEL,{name:"name",form:m,fields:y}),(0,i.jsx)(a.Bau,{name:"description",form:m,fields:y})]})})}var z=r(79381),H=r(39094),$=r(73866),W=r(27748);async function q(){let e=await Promise.all([$.Z.isSupported().then(async e=>{let t=await G();return e&&!t?"Bluetooth":null}),W.Z.isSupported().then(e=>e?"HID":null)]);return e.filter(e=>e)}async function G(){return navigator.brave&&await navigator.brave.isBrave()}function Z(e){let{title:t,details:r,actions:n,shouldVerify:o}=e,{device:s,disconnect:l}=(0,H.c)();return(0,i.jsx)(a.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[o?(0,i.jsxs)(i.Fragment,{children:[!(null==s?void 0:s.publicKey0)&&(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),!!(null==s?void 0:s.publicKey0)&&(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]})]}):(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}),(null==s?void 0:s.type)==="Bluetooth"&&(0,i.jsx)(a.ua7,{content:"Bluetooth",children:(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",children:(0,i.jsx)(c.Ya6,{})})}),(null==s?void 0:s.type)==="USB"&&(0,i.jsx)(a.ua7,{content:"USB",children:(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",children:(0,i.jsx)(c.Fhn,{size:16})})}),(null==s?void 0:s.type)==="HID"&&(0,i.jsx)(a.ua7,{content:"HID",children:(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",children:(0,i.jsx)(c.Pj_,{size:16})})}),(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",className:"ml-1",children:t})]}),(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[n,!!s&&(0,i.jsx)(a.zxk,{variant:"ghost",onClick:l,children:(0,i.jsx)(c.PcV,{})})]})]}),r]})})}let Y={transportType:""};function X(e){var t;let{shouldVerify:r}=e,{device:n,connect:s,verify:l,setError:u,waitingForUser:f}=(0,H.c)(),h=(0,d.cI)({mode:"all",defaultValues:Y}),p=h.watch("transportType"),m=!!(null==n?void 0:n.publicKey0),v=(0,z.ZP)("deviceConnect/supportedTransports",()=>q(),{revalidateOnFocus:!1});(0,o.useEffect)(()=>{v.data&&(h.setValue("transportType",v.data[0]),0===v.data.length&&u(Error("This browser does not support connecting to Ledger devices, please use a different browser.")))},[v.data]);let g=function(e){let{supportedTransports:t}=e;return{transportType:{type:"select",title:"Transport",placeholder:"Select a transport",options:t.map(e=>({value:e,label:e})),validation:{required:!0}}}}({supportedTransports:v.data||[]}),y=(0,o.useCallback)(async()=>{p&&s(p)},[s,p]),b=(0,o.useCallback)(async()=>{p&&await l()},[l,p]);return(0,i.jsx)("div",{className:"flex flex-col gap-1",children:n?r?m?(0,i.jsx)(Z,{shouldVerify:r,title:n.transport.deviceModel.productName,details:(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.XxW,{value:n.publicKey0,label:"public key 0",color:"subtle",maxLength:30})})}):(0,i.jsx)(Z,{shouldVerify:r,title:n.transport.deviceModel.productName,actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(a.zxk,{variant:"accent",onClick:b,children:[(0,i.jsx)(c.j7C,{}),"Verify"]})}),details:f?(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"To continue, approve public key verification on device."})]}):(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.nvN,{size:"14",children:"Unlock device, open the Sia app, and make sure Ledger Live is closed. Then start wallet verification to continue."})})}):(0,i.jsx)(Z,{shouldVerify:r,title:n.transport.deviceModel.productName}):(0,i.jsx)(Z,{shouldVerify:r,title:"Connect Ledger...",actions:(null===(t=v.data)||void 0===t?void 0:t.length)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.WyV,{name:"transportType",form:h,fields:g,group:!1}),(0,i.jsx)(a.zxk,{size:"small",onClick:y,children:"Connect"})]}):null,details:f?(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm in browser and on device..."}),(0,i.jsx)(a.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,i.jsx)(a.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 K={name:"",description:"",ledgerConnectedAndVerified:!1};function J(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eV(),u=(0,s.lT)(),c=(0,d.cI)({mode:"all",defaultValues:K}),{device:h,disconnect:p,error:m}=(0,H.c)();(0,o.useEffect)(()=>{r&&p()},[r]),(0,o.useEffect)(()=>{h&&h.publicKey0?c.setValue("ledgerConnectedAndVerified",!0):c.setValue("ledgerConnectedAndVerified",!1)},[c,h]),(0,o.useEffect)(()=>{m?c.setError("ledgerConnectedAndVerified",{message:m.message}):c.clearErrors("ledgerConnectedAndVerified")},[c,m]);let{dataset:v}=(0,f.r)(),b=(null==v?void 0:v.map(e=>e.name))||[],x=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"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:e=>e||"Ledger must be connected, unlocked, and verified"}}}}}({walletNames:b}),w=(0,s.yi)(),E=(0,o.useCallback)(async(e,t)=>{let{publicKey:r,address:n}=t,i=await w.put({params:{id:e,addr:n},payload:{index:0,publicKey:r}});if(i.error){(0,a.OHV)("Error saving address.");return}},[w]),S=(0,o.useCallback)(async e=>{if(!e.ledgerConnectedAndVerified||!h.publicKey0||!h.address0)return;let t=g(),r=await u.put({params:{id:t},payload:{type:"ledger",publicKey0:h.publicKey0,address0:h.address0,name:e.name,createdAt:new Date().getTime(),description:e.description}});r.error?(0,a.OHV)(r.error):(E(t,{publicKey:h.publicKey0,address:h.address0}),l("walletLedgerAddressGenerate",{walletId:t,walletJustCreated:!0}),c.reset(K))},[c,l,u,h,E]);return c.register("ledgerConnectedAndVerified",x.ledgerConnectedAndVerified.validation),(0,i.jsx)(a.VqE,{title:y.z.walletAddLedger.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(S),controls:(0,i.jsxs)("div",{className:"flex gap-2 pb-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:c,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddLedger.description}),(0,i.jsx)(a.yEL,{name:"name",form:c,fields:x}),(0,i.jsx)(a.Bau,{name:"description",form:c,fields:x}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Device",name:"ledgerConnectedAndVerified"}),(0,i.jsx)(a.cp7,{name:"ledgerConnectedAndVerified",form:c}),(0,i.jsx)(X,{shouldVerify:!0})]})]})})}let Q={name:"",description:"",mnemonic:""};function ee(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eV(),u=(0,d.cI)({mode:"all",defaultValues:Q}),{dataset:h}=(0,f.r)(),p=(null==h?void 0:h.map(e=>e.name))||[],m=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"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:e=>{let{error:t}=(0,w.x)().seedFromPhrase(e);return!t||"seed should be 12 word BIP39 mnemonic"}}}}}}({walletNames:p}),v=(0,s.lT)(),E=(0,o.useCallback)(async e=>{let t=g(),{seed:r}=(0,w.x)().seedFromPhrase(e.mnemonic),n=(0,b.blake2bHex)(r),i=await v.put({params:{id:t},payload:{type:"seed",seedHash:n,name:e.name,createdAt:new Date().getTime(),description:e.description}});i.error?(0,a.OHV)(i.error):(l("walletAddressesGenerate",{walletId:t}),u.reset(Q))},[u,l,v]);return(0,i.jsx)(a.VqE,{title:y.z.walletAddRecover.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:u.handleSubmit(E),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:u,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddRecover.description}),(0,i.jsx)(a.yEL,{name:"name",form:u,fields:m}),(0,i.jsx)(a.Bau,{name:"description",form:u,fields:m}),(0,i.jsx)(x,{icon:(0,i.jsx)(c.fwm,{}),description:(0,i.jsx)(i.Fragment,{children:"Enter the seed mnemonic for the wallet you are recovering."}),children:(0,i.jsx)(a.Bau,{form:u,fields:m,name:"mnemonic"})})]})})}let et={name:"",description:""};function er(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eV(),u=(0,s.lT)(),c=(0,d.cI)({mode:"all",defaultValues:et}),{dataset:h}=(0,f.r)(),p=(null==h?void 0:h.map(e=>e.name))||[],m=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"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:p}),v=(0,o.useCallback)(async e=>{let t=g(),r=await u.put({params:{id:t},payload:{type:"watch",name:e.name,description:e.description,createdAt:new Date().getTime()}});r.error?(0,a.OHV)(r.error):(l("walletAddressesAdd",{walletId:t}),c.reset(et))},[c,l,u]);return(0,i.jsx)(a.VqE,{title:y.z.walletAddWatch.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(v),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:c,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddWatch.description}),(0,i.jsx)(a.yEL,{name:"name",form:c,fields:m}),(0,i.jsx)(a.Bau,{name:"description",form:c,fields:m})]})})}var en=r(96206),ei=r(75652),eo=r.n(ei);let ea={addresses:""};function es(e){return eo()(e.trim().split(/[^0-9a-fA-F]+/).map(e=>e).filter(e=>!!e))}function el(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},{dataset:c}=(0,f.r)(),h=null==c?void 0:c.find(e=>e.id===u),p=(0,d.cI)({mode:"all",defaultValues:ea}),{handleOpenChange:m,closeAndReset:v}=j({form:p,onOpenChange:l,defaultValues:ea}),g=(0,s.yi)(),y=(0,o.useCallback)(async e=>{let t=es(e),r=t.length;for(let e=0;e0?"Not all addresses were saved.":""));return}}1===r?(0,a.OPV)("Successfully added 1 address."):(0,a.OPV)("Successfully added ".concat(r," addresses.")),v()},[u,g,v]),b=(0,o.useCallback)(e=>y(e.addresses),[y]),x=p.watch("addresses"),w=es(x).length;return(0,i.jsx)(a.VqE,{title:"Wallet ".concat(null==h?void 0:h.name,": add addresses"),trigger:r,open:n,onOpenChange:m,contentVariants:{className:"w-[500px]"},onSubmit:p.handleSubmit(b),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.ZqQ,{form:p,variant:"accent",size:"medium",children:0===w?"Add addresses":1===w?"Add 1 address":"Add ".concat(w.toLocaleString()," addresses")})}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,i.jsx)(a.nvN,{size:"14",children:"Enter multiple addresses separated by spaces or commas."}),(0,i.jsx)(a.Bau,{form:p,fields:{addresses:{type:"text",title:"Addresses",placeholder:"91acbc0feb9e20d538db1f8a509d508362d1b1f3d725d9b6639306531d770c1ef9eb637b4903\nb58849e347356878bb0098908191550ff3e46cc35ed166d0c571fe184d2f17b835747991c266\nb811a04859809fe081884c10d50ca069f1429112ba4a8dc9181c95de41f7eca01416923daa6d\n03442c5643c1deb15c60104ca6ad80fa9563c67c8334f0bbe968b01cb9b8f81c8103a7a202c0\n",validation:{required:"required",validate:{valid:e=>{let t=es(e||"");for(let e=0;e{let e=await h.delete({params:{id:u,addr:c}});e.error?(0,a.OHV)(e.error):((0,a.OPV)("Address permanently removed."),p.reset(),f())},[p,u,c,h,f]),v=(0,o.useMemo)(()=>({address:{type:"text",title:"Address",placeholder:c,validation:{required:"required",validate:{equals:e=>(0,a.I13)(e)===(0,a.I13)(c)||"address does not match"}}}}),[c]),g=(0,a.WsO)(v);return(0,i.jsx)(a.VqE,{title:"Remove address",trigger:r,open:n,onOpenChange:e=>{e||p.reset(eu),l(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit(m,g),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)(a.nvN,{size:"14",children:["Are you sure you would like to permanently remove the address"," ",(0,i.jsxs)(a.EKh,{children:[(0,a.I13)(c).slice(0,12),"..."]}),"?"]}),(0,i.jsx)(a.nvN,{size:"14",children:"Enter the address name to confirm the removal."}),(0,i.jsx)(a.yEL,{name:"address",form:p,fields:v}),(0,i.jsx)(a.ZqQ,{variant:"red",form:p,children:"Remove"})]})})}let ed=(0,en.qN)(.00393),ef={address:"",siacoin:void 0,includeFee:!1};function eh(e){let{address:t,siacoin:r,fee:n,transactionId:o}=e,s=r.plus(n);return(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Destination"}),(0,i.jsx)(a.XxW,{value:t,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:s,variant:"value",dynamicUnits:!1})})]}),o&&(0,i.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,i.jsx)(a.XxW,{value:o,type:"transaction"})]})]})}function ep(e){let{transaction:t,toSign:r,addresses:n,siacoinOutputs:i}=e;if(!n)return{error:"No addresses"};if(!i)return{error:"No outputs"};for(let e of r){let r=(0,a.I13)(e),{utxo:o,address:s,error:l}=em({id:r,addresses:n,siacoinOutputs:i});if(l)return{error:l};let u=t.siacoinInputs.find(e=>(0,a.I13)(e.parentID)===(0,a.I13)(o.ID));u.unlockConditions={timelock:0,publicKeys:[s.publicKey],signaturesRequired:1},t.signatures||(t.signatures=[]),t.signatures.push({parentID:r,publicKeyIndex:0,timelock:0,coveredFields:{wholeTransaction:!0}})}return{}}function em(e){let{id:t,addresses:r,siacoinOutputs:n}=e,i=(0,a.I13)(t),o=n.find(e=>(0,a.I13)(e.ID)===i);if(!o)return{error:"Missing utxo"};let s=r.find(e=>(0,a.I13)(e.address)===(0,a.I13)(o.address));return s?void 0===s.index?{error:"Missing address index"}:s.publicKey?{utxo:o,address:s}:{error:"Missing address public key"}:{error:"Missing address"}}let ev={mnemonic:""};function eg(e){let{data:{address:t,siacoin:r,fee:n},transactionId:o}=e;return(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(eh,{address:t,siacoin:r,fee:n,transactionId:o}),(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,i.jsx)(a.xvT,{children:(0,i.jsx)(c.Z$8,{})}),(0,i.jsx)(a.xvT,{children:"Transaction successfully broadcasted."})]})]})}let ey={address:"",siacoin:new(k())(0),fee:new(k())(0)};function eb(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},c=(0,s.tM)({disabled:!u,params:{id:u}}),h=(0,o.useMemo)(()=>{var e;return new(k())((null===(e=c.data)||void 0===e?void 0:e.siacoins)||0)},[c.data]),[p,m]=(0,o.useState)("compose"),[v,g]=(0,o.useState)(),[y,b]=(0,o.useState)(ey),x=function(e){let{balance:t,onComplete:r}=e,n=(0,d.cI)({mode:"all",defaultValues:ef}),s=function(e){let{balance:t,fee:r}=e;return{address:{type:"text",title:"Address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",validation:{required:"required",validate:{valid:e=>(0,en.At)(e)||"invalid address"}}},siacoin:{type:"text",title:"Siacoin",placeholder:"100",validation:{required:"required",validate:{gtz:e=>!new(k())(e||0).isZero()||"must be greater than zero",balance:e=>t.gte((0,en.qN)(e||0).plus(r))||"not enough funds in wallet"}}},includeFee:{type:"boolean",title:"",validation:{}}}}({balance:t,fee:ed}),l=(0,o.useCallback)(async e=>{if(!e.siacoin)return;let n=e.includeFee?(0,en.qN)(e.siacoin).minus(ed):(0,en.qN)(e.siacoin);t&&r({address:e.address,siacoin:n,fee:ed})},[r,t]),u=(0,o.useMemo)(()=>n.handleSubmit(l),[n,l]),c=n.watch("siacoin"),f=n.watch("includeFee"),h=(0,en.qN)(c||0),p=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.yEL,{size:"medium",form:n,fields:s,name:"address",autoComplete:"off"}),(0,i.jsx)(a.qGu,{size:"medium",form:n,fields:s,name:"siacoin"}),(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)(a.QBj,{size:"small",form:n,fields:s,name:"includeFee",children:[(0,i.jsx)(a.xvT,{children:"Include fee"}),(0,i.jsx)(a.Yqd,{children:"Include or exclude the network fee from the above transaction value."})]}),(0,i.jsx)("div",{className:"flex flex-1"})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",children:"Network fee"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:ed,variant:"value",dynamicUnits:!1})})]}),(0,i.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",children:"Total"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:f?h:h.plus(ed),variant:"value",dynamicUnits:!1})})]})]})]});return{form:n,el:p,handleSubmit:u,reset:()=>n.reset(ef)}}({balance:h,onComplete:e=>{b(t=>({...t,address:e.address,siacoin:e.siacoin,fee:e.fee})),m("send")}}),E=function(e){let{walletId:t,data:r,onConfirm:n}=e,l=function(){var e;let{wallet:t,saveWalletSeed:r}=(0,f.r)(),n=null==t?void 0:t.id,i=(0,s.Vg)({disabled:!n,params:{id:n}}),{dataset:l}=N({id:n}),u=(0,s.ek)(),c=(0,s.gM)(),d=(0,s.gU)(),h=(0,s.ys)(),p=(0,s.zQ)(),m=(0,o.useCallback)(async e=>{let t=await p.post({params:{id:n},payload:{siacoinOutputs:e}});t.error&&(0,a.OHV)(t.error)},[n,p]),v=(0,o.useCallback)(async e=>{var t,o,s;let{seed:f,address:p,siacoin:v,fee:g}=e;if(!l)return;let y=await d.post({params:{id:n},payload:{amount:v.plus(g).toString(),changeAddress:l[0].address,transaction:{minerFees:[g.toString()],siacoinOutputs:[{value:v.toString(),address:p}]}}});if(y.error)return{error:y.error};let b=function(e){let{seed:t,transaction:r,toSign:n,cs:i,cn:o,addresses:s,siacoinOutputs:l}=e;if(!i)return{error:"No consensus state"};if(!s)return{error:"No addresses"};if(!l)return{error:"No outputs"};let{error:u}=ep({transaction:r,toSign:n,addresses:s,siacoinOutputs:l});if(u)return{error:u};for(let[e,u]of n.entries()){let n=(0,a.I13)(u),{address:c,error:d}=em({id:n,addresses:s,siacoinOutputs:l});if(d)return{error:d};let f=(0,w.x)().privateKeyFromSeed(t,c.index);if(f.error)return{error:f.error};let{transaction:h,error:p}=(0,w.x)().signTransaction(JSON.stringify(i),JSON.stringify(o),JSON.stringify(r),e,f.privateKey);if(p)return{error:p};r=h}return{transaction:r}}({seed:f,transaction:null===(t=y.data)||void 0===t?void 0:t.transaction,toSign:null===(o=y.data)||void 0===o?void 0:o.toSign,cs:u.data,cn:c.data,addresses:l,siacoinOutputs:null===(s=i.data)||void 0===s?void 0:s.siacoinOutputs});if(b.error)return m(y.data.transaction.siacoinInputs.map(e=>e.parentID)),{error:b.error};r(n,f);let x=await h.post({payload:[b.transaction]});return x.error?(m(y.data.transaction.siacoinInputs.map(e=>e.parentID)),{error:x.error}):{}},[m,l,d,n,u.data,c.data,null===(e=i.data)||void 0===e?void 0:e.siacoinOutputs,r,h]);return v}(),{isSeedCached:u,getSeedFromCacheOrForm:c}=T(t),{dataset:h}=(0,f.r)(),p=null==h?void 0:h.find(e=>e.id===t),m=null==p?void 0:p.seedHash,{address:v,siacoin:g,fee:y}=r||{},b=(0,d.cI)({mode:"all",defaultValues:ev}),[x,E]=(0,o.useState)("password"),S=(0,o.useMemo)(()=>(function(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n,isSeedCached:i}=e;return{mnemonic:i?{title:"Seed",type:"text",validation:{}}:A({seedHash:t,setMnemonicFieldType:n,mnemonicFieldType:r})}})({mnemonicFieldType:x,setMnemonicFieldType:E,seedHash:m,isSeedCached:u}),[x,E,m,u]),j=(0,o.useCallback)(async e=>{let t=c(e);if(t.error){(0,a.OHV)(t.error);return}let{error:r}=await l({seed:t.seed,address:v,siacoin:g,fee:y});if(r){(0,a.OHV)(r);return}n({})},[c,l,v,y,g,n]),C=(0,a.WsO)(S),k=(0,o.useMemo)(()=>b.handleSubmit(j,C),[b,j,C]),O=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(_,{walletId:t,name:"mnemonic",form:b,fields:S,actionText:"complete the transaction"}),(0,i.jsx)(eh,{address:v,siacoin:g,fee:y})]});return{form:b,el:O,handleSubmit:k,reset:()=>b.reset(ev)}}({walletId:u,data:y,onConfirm:e=>{let{transactionId:t}=e;g(t),m("done")}}),S=(0,o.useMemo)(()=>"compose"===p?{submitLabel:"Generate transaction",form:x.form,handleSubmit:x.handleSubmit,reset:x.reset}:"send"===p?{submitLabel:"Sign and broadcast transaction",form:E.form,handleSubmit:E.handleSubmit,reset:E.reset}:void 0,[p,x,E]);return(0,i.jsx)(a.VqE,{trigger:r,open:n,onOpenChange:e=>{e||(x.reset(),E.reset(),m("compose")),l(e)},title:"Send siacoin",onSubmit:S?S.handleSubmit:void 0,controls:(null==S?void 0:S.form)&&(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.ZqQ,{form:S.form,children:S.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.tIK,{onChange:e=>m(e),activeStep:p,steps:[{id:"compose",label:"Compose"},{id:"send",label:"Send"},{id:"done",label:"Complete"}]}),(0,i.jsx)(a.Z0O,{className:"w-full mt-4"}),"compose"===p&&x.el,"send"===p&&E.el,"done"===p&&(0,i.jsx)(eg,{data:y,transactionId:v})]})})}let ex=(0,en.qN)(.00393),ew={address:"",siacoin:void 0,includeFee:!1};function eE(e){let{address:t,siacoin:r,fee:n,transactionId:o}=e,s=r.plus(n);return(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Destination"}),(0,i.jsx)(a.XxW,{value:t,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:s,variant:"value",dynamicUnits:!1})})]}),o&&(0,i.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,i.jsx)(a.XxW,{value:o,type:"transaction"})]})]})}function eS(e){let{title:t,isSigned:r,isConnected:n,details:o,actions:s}=e;return(0,i.jsx)(a.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[r?(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):n?(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}):(0,i.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}),(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",className:"ml-1",children:t})]}),(0,i.jsx)("div",{className:"flex gap-1 justify-between items-center",children:s})]}),o]})})}function ej(e){let{waitingForUser:t,isConnected:r,isSigned:n,sign:o}=e;return(0,i.jsx)("div",{className:"flex flex-col gap-1",children:n?(0,i.jsx)(eS,{isConnected:r,isSigned:n,title:"Transaction"}):r&&t?(0,i.jsx)(eS,{isConnected:r,isSigned:n,title:"Transaction",details:(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"To continue, approve signature on device."})]})}):r?(0,i.jsx)(eS,{isConnected:r,isSigned:n,title:"Transaction",actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.zxk,{size:"small",onClick:o,children:"Sign"})})}):(0,i.jsx)(eS,{isConnected:r,isSigned:n,title:"Transaction",details:(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"Connect device to start signing."})})})})}var eC=r(48834).lW;async function ek(e){let{device:t,transaction:r,toSign:n,addresses:i,siacoinOutputs:o}=e;if(!i)return{error:"No addresses"};if(!o)return{error:"No outputs"};let{error:s}=ep({transaction:r,toSign:n,addresses:i,siacoinOutputs:o});if(s)return{error:s};for(let[e,s]of n.entries()){let n=(0,a.I13)(s),{address:l,error:u}=em({id:n,addresses:i,siacoinOutputs:o});if(u)return{error:u};let{error:c}=await eA({device:t,transaction:r,signatureIndex:e,keyIndex:l.index});if(c)return{error:c}}return{transaction:r}}async function eA(e){let t,{device:r,transaction:n,signatureIndex:i,keyIndex:o}=e,{encodedTransaction:a,error:s}=(0,w.x)().encodeTransaction(JSON.stringify(n));if(s)return{error:s};let l=eC.from(a,"utf-8"),u=await r.sia.getVersion(),c=0>function(e,t){let r=/[^0-9.]/gi,n=e.replace(r,"").split("."),i=t.replace(r,"").split("."),o=Math.max(n.length,i.length);for(let e=0;er)return 1}return 0}(u,"0.4.5");try{t=c?await r.sia.signTransactionV044(l,i,o):await r.sia.signTransaction(l,i,o,0)}catch(e){return{error:e.message}}return n.signatures[i].signature=t,{transaction:n}}let eO={isConnected:!1,isSigned:!1};function e_(e){let{data:{address:t,siacoin:r,fee:n},transactionId:o}=e;return(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(eE,{address:t,siacoin:r,fee:n,transactionId:o}),(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,i.jsx)(a.xvT,{children:(0,i.jsx)(c.Z$8,{})}),(0,i.jsx)(a.xvT,{children:"Transaction successfully broadcasted."})]})]})}let eT={address:"",siacoin:new(k())(0),fee:new(k())(0),includeFee:!1};function eM(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},[c,h]=(0,o.useState)("compose"),[p,m]=(0,o.useState)(),[v,g]=(0,o.useState)(eT),y=(0,s.tM)({disabled:!u,params:{id:u}}),b=(0,o.useMemo)(()=>{var e;return new(k())((null===(e=y.data)||void 0===e?void 0:e.siacoins)||0)},[y.data]),x=function(e){let{balance:t,onComplete:r}=e,n=(0,d.cI)({mode:"all",defaultValues:ew}),s=function(e){let{balance:t,fee:r}=e;return{address:{type:"text",title:"Address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",validation:{required:"required",validate:{valid:e=>(0,en.At)(e)||"invalid address"}}},siacoin:{type:"text",title:"Siacoin",placeholder:"100",validation:{required:"required",validate:{gtz:e=>!new(k())(e||0).isZero()||"must be greater than zero",balance:e=>t.gte((0,en.qN)(e||0).plus(r))||"not enough funds in wallet"}}},includeFee:{type:"boolean",title:"",validation:{}}}}({balance:t,fee:ex}),l=(0,o.useCallback)(async e=>{if(!e.siacoin)return;let n=e.includeFee?(0,en.qN)(e.siacoin).minus(ex):(0,en.qN)(e.siacoin);t&&r({includeFee:e.includeFee,address:e.address,fee:ex,siacoin:n})},[r,t]),u=(0,o.useMemo)(()=>n.handleSubmit(l),[n,l]),c=n.watch("siacoin"),f=n.watch("includeFee"),h=(0,en.qN)(c||0),p=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.yEL,{size:"medium",form:n,fields:s,name:"address",autoComplete:"off"}),(0,i.jsx)(a.qGu,{size:"medium",form:n,fields:s,name:"siacoin"}),(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)(a.QBj,{size:"small",form:n,fields:s,name:"includeFee",children:[(0,i.jsx)(a.xvT,{children:"Include fee"}),(0,i.jsx)(a.Yqd,{children:"Include or exclude the network fee from the above transaction value."})]}),(0,i.jsx)("div",{className:"flex flex-1"})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",children:"Network fee"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:ex,variant:"value",dynamicUnits:!1})})]}),(0,i.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",children:"Total"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:f?h:h.plus(ex),variant:"value",dynamicUnits:!1})})]})]})]});return{form:n,el:p,handleSubmit:u,reset:()=>n.reset(ew)}}({balance:b,onComplete:e=>{g(t=>({...t,...e})),h("send")}}),w=function(e){let{data:t,onConfirm:r}=e,{address:n,siacoin:l,fee:u}=t||{},c=(0,d.cI)({mode:"all",defaultValues:eO}),h=c.watch("isConnected"),p=c.watch("isSigned"),{device:m,error:v}=(0,H.c)(),{fundAndSign:g,broadcast:y,cancel:b}=function(){var e;let{wallet:t}=(0,f.r)(),r=null==t?void 0:t.id,n=(0,s.Vg)({disabled:!r,params:{id:r}}),{dataset:i}=N({id:r}),l=(0,s.gU)(),u=(0,s.ys)(),c=(0,s.zQ)(),d=(0,o.useCallback)(async e=>{let t=e.siacoinInputs.map(e=>e.parentID),n=await c.post({params:{id:r},payload:{siacoinOutputs:t}});n.error&&(0,a.OHV)(n.error)},[r,c]),h=(0,o.useCallback)(async e=>{let{address:t,siacoin:n,fee:o}=e;if(!i)return{error:"No addresses"};let a=await l.post({params:{id:r},payload:{amount:n.plus(o).toString(),changeAddress:i[0].address,transaction:{minerFees:[o.toString()],siacoinOutputs:[{value:n.toString(),address:t}]}}});return a.error?{error:a.error}:{fundedTransaction:a.data.transaction,toSign:a.data.toSign}},[i,l,r]),{device:p}=(0,H.c)(),m=(0,o.useCallback)(async e=>{var t;let{fundedTransaction:r,toSign:o}=e;if(!p||!r)return;let a=await ek({device:p,transaction:r,toSign:o,addresses:i,siacoinOutputs:null===(t=n.data)||void 0===t?void 0:t.siacoinOutputs});return(console.log(a),a.error)?(d(r),{error:a.error}):{signedTransaction:a.transaction}},[p,i,null===(e=n.data)||void 0===e?void 0:e.siacoinOutputs,d]),v=(0,o.useCallback)(async e=>{let{signedTransaction:t}=e;if(!t)return{error:"No signed transaction"};let r=await u.post({payload:[t]});return r.error?(d(t),{error:r.error}):{}},[d,u]),g=(0,o.useCallback)(async e=>{let{address:t,siacoin:r,fee:n}=e,{fundedTransaction:i,toSign:o,error:a}=await h({address:t,siacoin:r,fee:n});if(a)return{fundedTransaction:i,error:a};let{signedTransaction:s,error:l}=await m({fundedTransaction:i,toSign:o});return l?(d(i),{fundedTransaction:i,error:l}):{signedTransaction:s}},[h,m,d]);return{fundAndSign:g,broadcast:v,cancel:d}}(),[x,w]=(0,o.useState)(!1),[E,S]=(0,o.useState)();(0,o.useEffect)(()=>{m?c.setValue("isConnected",!0):(w(!1),c.setValue("isConnected",!1))},[c,m]),(0,o.useEffect)(()=>{v?c.setError("isConnected",{message:v.message}):c.clearErrors("isConnected")},[c,v]),(0,o.useEffect)(()=>{E||c.setValue("isSigned",!1)},[c,E]);let j=(0,o.useMemo)(()=>({isConnected:{type:"boolean",title:"",validation:{validate:{isConnected:e=>e||"Ledger must be connected"}}},isSigned:{type:"boolean",title:"",validation:{validate:{isSigned:e=>e||"Transaction must be signed"}}}}),[]),C=(0,o.useCallback)(async e=>{if(!e.isConnected)return;let{error:t}=await y({signedTransaction:E});if(t){(0,a.OHV)(t);return}r({})},[y,E,r]),k=(0,a.WsO)(j),A=(0,o.useMemo)(()=>c.handleSubmit(C,k),[c,C,k]),O=(0,o.useCallback)(async()=>{w(!0);let{signedTransaction:e,error:t}=await g({address:n,siacoin:l,fee:u});t?(0,a.OHV)(t):(S(e),c.setValue("isSigned",!0)),w(!1)},[c,g,n,l,u]),_=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Device",name:"isConnected"}),(0,i.jsx)(a.cp7,{name:"isConnected",form:c}),(0,i.jsx)(X,{})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Signature",name:"isSigned"}),(0,i.jsx)(a.cp7,{name:"isSigned",form:c}),(0,i.jsx)(ej,{waitingForUser:x,isConnected:h,isSigned:p,sign:O})]})]}),(0,i.jsx)(eE,{address:n,siacoin:l,fee:u})]});return{form:c,el:_,handleSubmit:A,cancel:()=>{E&&b(E)},reset:()=>c.reset(eO)}}({walletId:u,data:v,onConfirm:e=>{let{transactionId:t}=e;m(t),h("done")}}),E=(0,o.useMemo)(()=>"compose"===c?{submitLabel:"Generate transaction",form:x.form,handleSubmit:x.handleSubmit,reset:x.reset}:"send"===c?{submitLabel:"Sign and broadcast transaction",form:w.form,handleSubmit:w.handleSubmit,reset:w.reset}:void 0,[c,x,w]);return(0,i.jsx)(a.VqE,{trigger:r,open:n,onOpenChange:e=>{e||(x.reset(),w.reset(),w.cancel(),h("compose")),l(e)},title:"Send siacoin",onSubmit:E?E.handleSubmit:void 0,controls:(null==E?void 0:E.form)&&(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.ZqQ,{form:E.form,children:E.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.tIK,{onChange:e=>h(e),activeStep:c,steps:[{id:"compose",label:"Compose"},{id:"send",label:"Sign & Send"},{id:"done",label:"Complete"}]}),(0,i.jsx)(a.Z0O,{className:"w-full mt-4"}),"compose"===c&&x.el,"send"===c&&w.el,"done"===c&&(0,i.jsx)(e_,{data:v,transactionId:p})]})})}function eN(e){let{params:t,trigger:r,open:n,onOpenChange:s}=e,{walletId:l}=t||{},{dataset:u,saveWalletSeed:c}=(0,f.r)(),h=null==u?void 0:u.find(e=>e.id===l),p={mnemonic:""},[m,v]=(0,o.useState)("password"),g=(0,d.cI)({mode:"all",defaultValues:p}),{handleOpenChange:y,closeAndReset:b}=j({form:g,onOpenChange:s,defaultValues:p}),x=function(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n}=e;return{mnemonic:A({seedHash:t,setMnemonicFieldType:n,mnemonicFieldType:r})}}({seedHash:null==h?void 0:h.seedHash,mnemonicFieldType:m,setMnemonicFieldType:v}),E=(0,o.useCallback)(e=>{let{seed:t}=(0,w.x)().seedFromPhrase(e.mnemonic);c(l,t),b()},[l,c,b]),S=(0,a.WsO)(x);return(0,i.jsx)(a.VqE,{title:"Unlock wallet: ".concat(null==h?void 0:h.name),trigger:r,open:n,onOpenChange:y,contentVariants:{className:"w-[500px]"},onSubmit:g.handleSubmit(E,S),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.ZqQ,{form:g,variant:"accent",size:"medium",children:"Continue"})}),children:(0,i.jsx)(_,{walletId:null==h?void 0:h.id,form:g,fields:x,name:"mnemonic"})})}function eR(e){let{open:t,onOpenChange:r}=e,{walletAutoLockTimeout:n,setWalletAutoLockTimeout:o,setWalletAutoLockEnabled:s,walletAutoLockEnabled:l}=(0,f.r)();return(0,i.jsx)(a.DLL,{open:t,onOpenChange:r,securityEl:(0,i.jsx)(a.bZj,{children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)(a.xvT,{children:(0,i.jsx)(c.RdX,{})}),(0,i.jsx)(a.X6q,{size:"20",className:"flex-1",children:"Lock wallets"}),(0,i.jsx)(a.rsf,{size:"medium",checked:l,onCheckedChange:e=>s(e)}),(0,i.jsxs)(a.PhF,{disabled:!l,value:String(n),onChange:e=>{o(Number(e.currentTarget.value))},children:[(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(5),children:"5 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(10),children:"10 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(20),children:"20 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(30),children:"30 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(60),children:"1 hour"})]})]}),(0,i.jsx)(a.nvN,{size:"14",children:"Automatically lock each wallet after a certain period of inactivity."})]})})})}function eP(e){let{title:t,isNew:r,address:n,details:o,actions:s,remove:l}=e;return(0,i.jsx)(a.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[n?r?(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):(0,i.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}):(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",className:"ml-1",children:t})]}),(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[s,r&&(0,i.jsx)(a.zxk,{variant:"ghost",onClick:l,children:(0,i.jsx)(c.PcV,{})})]})]}),o]})})}function eL(e){let{index:t,address:r,isNew:n,setAddress:s,remove:l}=e,{device:u,error:c,setError:d}=(0,H.c)(),[f,h]=(0,o.useState)(!1),p=(0,o.useCallback)(async()=>{if(u){if(c){(0,a.OHV)(c.message);return}try{h(!0);let e=await u.sia.verifyStandardAddress(t);s({index:t,address:e.address,publicKey:e.publicKey})}catch(e){d(e),console.log(e)}h(!1)}},[t,u,c,d,s]);return(0,i.jsx)("div",{className:"flex flex-col gap-1",children:r?(0,i.jsx)(eP,{title:"Address ".concat(t),isNew:n,remove:l,address:r,details:(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.XxW,{value:r,label:"public key 0",color:"subtle",maxLength:30})})}):f?(0,i.jsx)(eP,{title:"Address ".concat(t),isNew:n,remove:l,details:(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"To continue, approve address generation on device."})]})}):(0,i.jsx)(eP,{title:"Address ".concat(t),isNew:n,remove:l,actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.zxk,{size:"small",onClick:p,children:"Generate"})})})})}function eD(e){return{isNew:!0,address:"",publicKey:"",index:e}}function eI(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u,walletJustCreated:c}=t||{},{dataset:h,lastIndex:p,datasetCount:m}=N({id:u}),{dataset:v}=(0,f.r)(),g=null==v?void 0:v.find(e=>e.id===u),y=p+1,b={ledgerConnected:!1,index:new(k())(y),count:new(k())(1)},x=(0,d.cI)({mode:"all",defaultValues:b}),{disconnect:w,error:E}=(0,H.c)();(0,o.useEffect)(()=>{!c&&n&&w()},[n]),(0,o.useEffect)(()=>{x.formState.isSubmitting||x.setValue("index",new(k())(y))},[y]);let{handleOpenChange:S,closeAndReset:C}=j({form:x,onOpenChange:l,defaultValues:b}),A=x.watch("index"),O=x.watch("count"),_={ledgerConnected:{type:"boolean",title:"",validation:{validate:{ledgerConnected:e=>e||"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}}},T=(0,s.yi)();(0,o.useEffect)(()=>{E?x.setError("ledgerConnected",{message:E.message}):x.clearErrors("ledgerConnected")},[x,E]);let[M,R]=(0,o.useState)({});(0,o.useEffect)(()=>{n&&c&&R({0:eD(0)})},[n]);let P=(0,o.useCallback)(()=>{if(!A||!O)return;let e={...M};for(let t=A.toNumber();t{R(t=>{let r={...t};return delete r[e],r})},[]),D=(0,o.useCallback)(e=>{let{index:t,address:r,publicKey:n}=e;R(e=>{let i={...e};return i[t]={...i[t],address:r,publicKey:n},i})},[R]),I=(0,o.useMemo)(()=>{let e={};for(let[t,{address:r,publicKey:n}]of Object.entries(M)){let i=null==h?void 0:h.find(e=>e.index===Number(t));e[t]={isNew:!i,index:Number(t),address:(null==i?void 0:i.address)||r,publicKey:(null==i?void 0:i.publicKey)||n}}return e},[h,M]),F=(0,o.useMemo)(()=>Object.entries(I).filter(e=>{let[t,r]=e;return r.isNew&&r.address}).map(e=>{let[t,r]=e;return r}),[I]),V=(0,o.useCallback)(async()=>{let e=F.length;for(let[t,{address:r,publicKey:n,index:i}]of F.entries()){let o=await T.put({params:{id:u,addr:r},payload:{index:i,publicKey:n}});if(o.error){1===e?(0,a.OHV)("Error saving address."):(0,a.OHV)("Error saving addresses. ".concat(t>0?"Not all addresses were saved.":""));return}}1===e?(0,a.OPV)("Successfully added 1 address."):(0,a.OPV)("Successfully added ".concat(e," addresses."))},[T,u,F]),B=(0,o.useCallback)(async()=>{if(0===F.length){(0,a.OHV)("Add and generate addresses with your Ledger device to continue.");return}await V(),R({}),C()},[F,V,C]);return(0,i.jsx)(a.VqE,{title:"Wallet ".concat(null==g?void 0:g.name,": generate addresses"),trigger:r,open:n,onOpenChange:S,contentVariants:{className:"w-[500px]"},onSubmit:x.handleSubmit(B),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsxs)(a.ZqQ,{form:x,variant:"accent",size:"medium",children:["Save ",F.length," ",1===F.length?"address":"addresses"]})}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)(a.xvT,{children:["Wallet currently has ",m," ",1===m?"address":"addresses"," with a highest index of"," ",p,". Select a start index and the number of sequential addresses you would like to generate."]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Device",name:"ledgerConnected"}),(0,i.jsx)(a.cp7,{name:"ledgerConnected",form:x}),(0,i.jsx)(X,{})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsxs)("div",{className:"flex gap-2 w-full pt-3 items-end",children:[(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:_,name:"index"})}),(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:_,name:"count"})}),(0,i.jsx)(a.zxk,{onClick:P,children:"Add"})]}),(0,i.jsx)("div",{className:"flex flex-col gap-1",children:Object.entries(I).map(e=>{let[t,{address:r,isNew:n}]=e;return(0,i.jsx)(eL,{isNew:n,address:r,setAddress:D,index:Number(t),remove:()=>L(Number(t))},t)})})]})]})})}let eF=(0,o.createContext)({}),eV=()=>(0,o.useContext)(eF);function eB(e){let{children:t}=e,r=function(){let[e,t]=(0,o.useState)(),[r,n]=(0,o.useState)({}),i=(0,o.useCallback)((e,r)=>{n(t=>({...t,[e]:r})),t(e)},[n,t]),a=(0,o.useCallback)(()=>{n(t=>({...t,[e]:void 0})),t(void 0)},[t,n,e]),s=(0,o.useCallback)(e=>{e||a()},[a]);return{dialog:e,params:r,openDialog:i,confirm,closeDialog:a,onOpenChange:s}}();return(0,i.jsx)(eF.Provider,{value:r,children:t})}function eU(){let{openDialog:e,onOpenChange:t,closeDialog:r,dialog:n,params:o}=eV(),l=(0,s.Wl)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eR,{open:"settings"===n,onOpenChange:t}),(0,i.jsx)(u,{open:"walletAddType"===n,params:o.walletAddType,onOpenChange:t=>t?e(n,o.walletAddType):r()}),(0,i.jsx)(S,{open:"walletAddNew"===n,params:o.walletAddNew,onOpenChange:t=>t?e(n,o.walletAddNew):r()}),(0,i.jsx)(ee,{open:"walletAddRecover"===n,params:o.walletAddRecover,onOpenChange:t=>t?e(n,o.walletAddRecover):r()}),(0,i.jsx)(J,{open:"walletAddLedger"===n,params:o.walletAddLedger,onOpenChange:t=>t?e(n,o.walletAddLedger):r()}),(0,i.jsx)(er,{open:"walletAddWatch"===n,params:o.walletAddWatch,onOpenChange:t=>t?e(n,o.walletAddWatch):r()}),(0,i.jsx)(R,{open:"walletAddressesGenerate"===n,params:o.walletAddressesGenerate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eI,{open:"walletLedgerAddressGenerate"===n,params:o.walletLedgerAddressGenerate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(el,{open:"walletAddressesAdd"===n,params:o.walletAddressesAdd,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(I,{open:"walletRemove"===n,params:o.walletRemove,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(U,{open:"walletUpdate"===n,params:o.walletUpdate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eN,{open:"walletUnlock"===n,params:o.walletUnlock,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(V,{open:"addressUpdate"===n,params:o.addressUpdate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(ec,{open:"addressRemove"===n,params:o.addressRemove,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(a.D_D,{open:"connectPeer"===n,params:o.connectPeer,connect:e=>l.post({payload:e}),onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eb,{open:"walletSendSiacoinSeed"===n,params:o.walletSendSiacoinSeed,onOpenChange:t=>t?e(n,o.walletSendSiacoinSeed):r()}),(0,i.jsx)(eM,{open:"walletSendSiacoinLedger"===n,params:o.walletSendSiacoinLedger,onOpenChange:t=>t?e(n,o.walletSendSiacoinLedger):r()}),(0,i.jsx)(a.QHy,{open:"confirm"===n,params:o.confirm,onOpenChange:t=>t?e(n,o.confirm):r()})]})}},51660:function(e,t,r){"use strict";r.d(t,{Yl:function(){return v},hI:function(){return m}});var n=r(52322),i=r(25426),o=r(41345),a=r(2784);let s=["type","height","timestamp","amount","fee"],l=[];var u=r(96206);let c=[{id:"type",label:"type",category:"general",fixed:!0,render:e=>{let{data:{type:t}}=e;return(0,n.jsx)(i.xvT,{weight:"medium",ellipsis:!0,children:t})}},{id:"height",label:"height",category:"general",render:e=>{let{data:{height:t,pending:r}}=e;return r?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,n.jsx)(i.xgg,{})}):t?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:t.toLocaleString()}):null}},{id:"maturityHeight",label:"maturity height",category:"general",render:e=>{let{data:{maturityHeight:t}}=e;return t?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:t.toLocaleString()}):null}},{id:"timestamp",label:"timestamp",category:"general",render:e=>{let{data:{timestamp:t,pending:r}}=e;return r?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,n.jsx)(i.xgg,{})}):(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,u.rN)(t,{timeStyle:"short"})})}},{id:"amount",label:"amount",category:"general",render:e=>{let{data:{amount:t}}=e;return t?(0,n.jsx)(i.YKL,{size:"12",value:t}):null}},{id:"fee",label:"fee",category:"general",render:e=>{let{data:{fee:t}}=e;return t?(0,n.jsx)(i.YKL,{size:"12",variant:"value",value:t}):null}},{id:"transactionId",label:"transaction ID",category:"general",render:e=>{let{data:{transactionId:t}}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"transaction ID"}):null}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{contractId:t}}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"contract ID"}):null}},{id:"outputId",label:"output ID",category:"general",render:e=>{let{data:{outputId:t}}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"output ID"}):null}},{id:"netAddress",label:"net address",category:"general",render:e=>{let{data:{netAddress:t}}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,type:"ip"}):null}},{id:"publicKey",label:"public key",category:"general",render:e=>{let{data:{publicKey:t}}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"public key"}):null}}];var d=r(5632),f=r(6391),h=r.n(f);let p=(0,a.createContext)({}),m=()=>(0,a.useContext)(p);function v(e){let{children:t}=e,r=function(){let e=(0,d.useRouter)(),t=e.query.id,r=Number(e.query.limit||100),n=Number(e.query.offset||0),{filters:u,setFilter:f,removeFilter:p,removeLastFilter:m,resetFilters:v}=(0,i.Uu5)(),g=(0,o.jy)({disabled:!t,params:{id:t}}),y=(0,o.sG)({disabled:!t,params:{limit:r,offset:n,id:t}}),b=(0,o.He)(),x=(0,a.useCallback)(async()=>{b.post({params:{id:t},payload:0})},[b,t]);(0,a.useEffect)(()=>{t&&x()},[t]);let w=(0,a.useMemo)(()=>{if(!y.data||!g.data)return null;let e=g.data.map(e=>({id:e.ID,timestamp:0,pending:!0,type:e.Type,amount:new(h())(e.Received).minus(e.Sent)})),t=y.data.map((e,t)=>{let r=new(h())(0);if("siacoin transfer"===e.Type){var n,i,o,a;let t=(null===(i=e.Val)||void 0===i?void 0:null===(n=i.Inputs)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t.value),new(h())(0)))||new(h())(0),s=(null===(a=e.Val)||void 0===a?void 0:null===(o=a.Outputs)||void 0===o?void 0:o.reduce((e,t)=>e.plus(t.value),new(h())(0)))||new(h())(0);r=s.minus(t)}let s=String(t),l={id:s,type:e.Type,timestamp:new Date(e.Timestamp).getTime(),height:e.Index.height,pending:!1,amount:r};return"MaturityHeight"in e.Val&&(l.maturityHeight=e.Val.MaturityHeight),"Fee"in e.Val&&(l.fee=new(h())(e.Val.Fee)),"ContractID"in e.Val&&(l.contractId=e.Val.ContractID),"TransactionID"in e.Val&&(l.id+=e.Val.TransactionID,l.transactionId=e.Val.TransactionID),"OutputID"in e.Val&&(l.id+=e.Val.OutputID,l.outputId=e.Val.OutputID),"NetAddress"in e.Val&&(l.netAddress=e.Val.NetAddress),"PublicKey"in e.Val&&(l.publicKey=e.Val.PublicKey),l});return[...e.reverse(),...t]},[y.data,g.data]),{configurableColumns:E,enabledColumns:S,sortableColumns:j,toggleColumnVisibility:C,setColumnsVisible:k,setColumnsHidden:A,toggleSort:O,setSortDirection:_,setSortField:T,sortField:M,sortDirection:N,resetDefaultColumnVisibility:R}=(0,i.oy6)("walletd/v0/events",{columns:c,columnsDefaultVisible:s,sortOptions:l,defaultSortField:"id"}),P=(0,a.useMemo)(()=>c.filter(e=>e.fixed||S.includes(e.id)),[S]),L=y.isValidating||g.isValidating,D=y.error||g.error,I=(0,i.c2j)(w,L,D,u);return{dataState:I,error:y.error,pageCount:(null==w?void 0:w.length)||0,columns:P,dataset:w,configurableColumns:E,enabledColumns:S,sortableColumns:j,toggleColumnVisibility:C,setColumnsVisible:k,setColumnsHidden:A,toggleSort:O,setSortDirection:_,setSortField:T,sortField:M,sortDirection:N,resetDefaultColumnVisibility:R,filters:u,setFilter:f,removeFilter:p,removeLastFilter:m,resetFilters:v,offset:n,limit:r}}();return(0,n.jsx)(p.Provider,{value:r,children:t})}},39094:function(e,t,r){"use strict";r.d(t,{c:function(){return c},d:function(){return d}});var n=r(52322),i=r(73866),o=r(27748),a=r(35415),s=r.n(a),l=r(2784);let u=(0,l.createContext)({}),c=()=>(0,l.useContext)(u);function d(e){let{children:t}=e,r=function(){let[e,t]=(0,l.useState)(!1),[r,n]=(0,l.useState)(),[a,u]=(0,l.useState)(),c=(0,l.useCallback)(()=>{if(r){try{r.sia.close(),u(void 0)}catch(e){console.log(e)}n(void 0)}},[r]),d=(0,l.useCallback)(async e=>{let r=null;t(!0);try{switch(e){case"HID":(r=await o.Z.openConnected())||(r=await o.Z.create());break;case"Bluetooth":r=await i.Z.create();break;default:throw Error("Unsupported transport method: ".concat(e))}if(r){u(void 0);let i=new(s())(r);n({type:e,sia:i,transport:r}),t(!1)}}catch(e){u(e),t(!1)}},[]),f=(0,l.useCallback)(async()=>{if(!r){u(Error("No device connected"));return}t(!0);try{let e=await r.sia.verifyPublicKey(0);return u(void 0),n(t=>({...t,publicKey0:e.publicKey,address0:e.address})),t(!1),e}catch(e){t(!1),u(e)}},[r]);return(0,l.useEffect)(()=>{if(!(null==r?void 0:r.transport))return;let e=setInterval(async()=>{(null==r?void 0:r.transport._disconnectEmitted)&&n(void 0)},2e3);return()=>clearInterval(e)},[null==r?void 0:r.transport]),{connect:d,verify:f,disconnect:c,device:r,error:a,setError:u,waitingForUser:e}}();return(0,n.jsx)(u.Provider,{value:r,children:t})}},6110:function(e,t,r){"use strict";r.d(t,{k:function(){return j},r:function(){return S}});var n=r(52322),i=r(25426),o=r(41345),a=r(2784),s=r(81336),l=r(20876),u=r(96206),c=r(8822),d=r(22038),f=r(6391),h=r.n(f),p=r(18250);let m=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,n.jsx)(p.g,{trigger:(0,n.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,n.jsx)(l.iG7,{})}),contentProps:{align:"start"},wallet:t})}},{id:"details",label:"name",category:"general",fixed:!0,render:e=>{let{data:{id:t,name:r,description:o}}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(i.xvT,{weight:"bold",ellipsis:!0,children:r||t}),o&&(0,n.jsx)(i.ua7,{content:(0,n.jsx)("pre",{children:(0,n.jsx)(i.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:o})}),children:(0,n.jsx)(i.nvN,{size:"12",children:o.split("\n")[0]})})]})}},{id:"balance",label:"balance",category:"general",contentClassName:"justify-end",render:function(e){let{data:{id:t}}=e,r=(0,o.tM)({params:{id:t}});return r.data?(0,n.jsxs)("div",{className:"flex flex-col gap-1 items-end",children:[(0,n.jsx)(i.YKL,{size:"12",variant:"value",value:new(h())(r.data.siacoins)}),!!r.data.siafunds&&(0,n.jsx)(i.Sby,{size:"12",variant:"value",value:r.data.siafunds})]}):null}},{id:"type",label:"type",category:"general",render:e=>{var t,r;let{data:{type:o}}=e;return(0,n.jsx)(i.ua7,{content:null===(t=d._[o])||void 0===t?void 0:t.title,children:(0,n.jsxs)(i.Cts,{interactive:!1,className:"flex gap-0.5 items-center",children:[(0,n.jsx)(i.xvT,{color:"subtle",className:"scale-75 relative top-px",children:null===(r=d._[o])||void 0===r?void 0:r.icon}),o]})})}},{id:"status",label:"status",category:"general",render:e=>{let{data:{type:t,status:r,activityAt:o,unlock:a,lock:s},context:{walletAutoLockEnabled:u,walletAutoLockTimeout:d}}=e;if("seed"===t){let e=new Date().getTime()-o,t=Math.max(d-e,0),f=(0,c.l)(t),h=u?"The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ".concat(f.amount.toFixed(0)," more ").concat(f.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,n.jsx)(i.zxk,{tip:"unlocked"===r?h:"The wallet is currently locked.",color:"unlocked"===r?"contrast":"verySubtle",variant:"ghost",onClick:e=>{e.stopPropagation(),"unlocked"===r?s():a()},children:"unlocked"===r?(0,n.jsx)(l.VmF,{}):(0,n.jsx)(l.Lur,{})})}return null}},{id:"createdAt",label:"created on",category:"general",render:e=>{let{data:{createdAt:t}}=e;return t?(0,n.jsx)(i.xvT,{size:"12",children:(0,u.rN)(t,{dateStyle:"medium"})}):null}}];var v=r(5632),g=r(71930),y=r(27429),b=r(92762),x=r(83753),w=r(2850);let E=(0,a.createContext)({}),S=()=>(0,a.useContext)(E);function j(e){let{children:t}=e,r=function(){let e=(0,o.rB)(),t=(0,v.useRouter)(),{openDialog:r}=(0,x.Rh)(),{setOnLockCallback:n}=(0,w.Hv)(),{seedCache:l,walletActivityAt:u,saveWalletSeed:c,lockAllWallets:d,walletAutoLockTimeout:f,setWalletAutoLockTimeout:h,setWalletAutoLockEnabled:p,walletAutoLockEnabled:E}=function(){let[e,t]=(0,b.Z)("v0/wallets/walletAutoLockEnabled",{defaultValue:!0}),[r,n]=(0,b.Z)("v0/wallets/walletAutoLockTimeout",{defaultValue:(0,i.sWj)(5)}),[o,s]=(0,a.useState)({}),[l,u]=(0,a.useState)({}),c=(0,a.useMemo)(()=>Object.keys(l).length,[l]),d=(0,a.useCallback)(e=>{s(t=>({...t,[e]:new Date().getTime()}))},[s]),f=(0,a.useCallback)((e,t)=>{u(r=>({...r,[e]:t})),t&&d(e)},[u,d]),h=(0,a.useCallback)(()=>{if(!e)return;let t=new Date().getTime(),n=t-r;for(let[e,t]of Object.entries(l))if(t){let t=o[e]||0;t{u({})},[u]),m=(0,v.useRouter)(),x=(0,a.useCallback)(()=>{if(m.pathname.startsWith(g._.wallet.base)){let e=m.query.id;d(e)}},[m,d]);return(0,y.Yp)({onAction:x,throttle:5e3,eventsThrottle:5e3}),(0,a.useEffect)(()=>{if(!e)return;let t=setInterval(()=>{h()},5e3);return()=>{clearInterval(t)}},[e]),{walletActivityAt:o,updateWalletActivityAt:d,seedCache:l,saveWalletSeed:f,lockAllWallets:p,seedCount:c,walletAutoLockTimeout:r,setWalletAutoLockTimeout:n,setWalletAutoLockEnabled:t,walletAutoLockEnabled:e}}();(0,a.useEffect)(()=>{n("wallets",()=>{d()})},[]);let S=(0,a.useMemo)(()=>{if(!e.data)return null;let n=Object.entries(e.data||{}).map(e=>{let[n,i]=e;return{id:n,name:i.name,seed:l[n],status:l[n]?"unlocked":"locked",activityAt:u[n],seedHash:i.seedHash,description:i.description,createdAt:i.createdAt||0,type:i.type,unlock:()=>r("walletUnlock",{walletId:n}),lock:()=>c(n,void 0),onClick:()=>t.push({pathname:g._.wallet.view,query:{id:n}})}});return n},[t,e.data,l,u,r,c]),j=null==S?void 0:S.find(e=>e.id===t.query.id),{filters:C,setFilter:k,removeFilter:A,removeLastFilter:O,resetFilters:_}=(0,i.Wdu)(),{configurableColumns:T,enabledColumns:M,sortableColumns:N,toggleColumnVisibility:R,setColumnsVisible:P,setColumnsHidden:L,toggleSort:D,setSortDirection:I,setSortField:F,sortField:V,sortDirection:B,resetDefaultColumnVisibility:U}=(0,i.oy6)("walletd/v0/wallets",{columns:m,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),z=(0,i._4u)({dataset:S,filters:C,sortField:V,sortDirection:B}),H=(0,a.useMemo)(()=>m.filter(e=>e.fixed||M.includes(e.id)),[M]),$=(0,i.c2j)(S,e.isValidating,e.error,C),W=(0,a.useMemo)(()=>({walletAutoLockTimeout:f,walletAutoLockEnabled:E}),[E,f]);return{dataState:$,error:e.error,datasetCount:(null==z?void 0:z.length)||0,unlockedCount:(null==S?void 0:S.filter(e=>e.seed).length)||0,columns:H,dataset:z,context:W,wallet:j,configurableColumns:T,enabledColumns:M,sortableColumns:N,toggleColumnVisibility:R,setColumnsVisible:P,setColumnsHidden:L,toggleSort:D,setSortDirection:I,setSortField:F,sortField:V,filters:C,setFilter:k,removeFilter:A,removeLastFilter:O,resetFilters:_,sortDirection:B,resetDefaultColumnVisibility:U,saveWalletSeed:c,lockAllWallets:d,walletAutoLockTimeout:f,setWalletAutoLockTimeout:h,setWalletAutoLockEnabled:p,walletAutoLockEnabled:E}}();return(0,n.jsx)(E.Provider,{value:r,children:t})}},81336:function(e,t,r){"use strict";r.d(t,{Fo:function(){return o},gd:function(){return n},nw:function(){return i}});let n=["actions","details","balance","type","status","createdAt"],i="name",o=[{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"}]},8822:function(e,t,r){"use strict";function n(e){return!e||e<1e3?{amount:0,units:"seconds"}:(e/=1e3)<60?{amount:Math.floor(100*e)/100,units:"seconds"}:{amount:Math.floor(e/60*100)/100,units:"minutes"}}r.d(t,{l:function(){return n}})},74236:function(e,t,r){"use strict";function n(){return r.g.walletWasm}async function i(){WebAssembly.instantiateStreaming||(WebAssembly.instantiateStreaming=async(e,t)=>{let r=await (await e).arrayBuffer();return await WebAssembly.instantiate(r,t)});let e=function(){let e=()=>{let e=Error("not implemented");return e.code="ENOSYS",e};if(!globalThis.fs){let t="";globalThis.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(e,n){t+=r.decode(n);let i=t.lastIndexOf("\n");return -1!=i&&(t=t.substring(i+1)),n.length},write(t,r,n,i,o,a){if(0!==n||i!==r.length||null!==o){a(e());return}let s=this.writeSync(t,r);a(null,s)},chmod(t,r,n){n(e())},chown(t,r,n,i){i(e())},close(t,r){r(e())},fchmod(t,r,n){n(e())},fchown(t,r,n,i){i(e())},fstat(t,r){r(e())},fsync(e,t){t(null)},ftruncate(t,r,n){n(e())},lchown(t,r,n,i){i(e())},link(t,r,n){n(e())},lstat(t,r){r(e())},mkdir(t,r,n){n(e())},open(t,r,n,i){i(e())},read(t,r,n,i,o,a){a(e())},readdir(t,r){r(e())},readlink(t,r){r(e())},rename(t,r,n){n(e())},rmdir(t,r){r(e())},stat(t,r){r(e())},symlink(t,r,n){n(e())},truncate(t,r,n){n(e())},unlink(t,r){r(e())},utimes(t,r,n,i){i(e())}}}if(globalThis.process||(globalThis.process={getuid:()=>-1,getgid:()=>-1,geteuid:()=>-1,getegid:()=>-1,getgroups(){throw e()},pid:-1,ppid:-1,umask(){throw e()},cwd(){throw e()},chdir(){throw e()}}),!globalThis.crypto)throw Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");if(!globalThis.performance)throw Error("globalThis.performance is not available, polyfill required (performance.now only)");if(!globalThis.TextEncoder)throw Error("globalThis.TextEncoder is not available, polyfill required");if(!globalThis.TextDecoder)throw Error("globalThis.TextDecoder is not available, polyfill required");let t=new TextEncoder("utf-8"),r=new TextDecoder("utf-8");return class{async run(e){if(!(e instanceof WebAssembly.Instance))throw Error("Go.run: WebAssembly.Instance expected");this._inst=e,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,globalThis,this],this._goRefCounts=Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[globalThis,5],[this,6]]),this._idPool=[],this.exited=!1;let r=4096,n=e=>{let n=r,i=t.encode(e+"\x00");return new Uint8Array(this.mem.buffer,r,i.length).set(i),(r+=i.length)%8!=0&&(r+=8-r%8),n},i=this.argv.length,o=[];this.argv.forEach(e=>{o.push(n(e))}),o.push(0);let a=Object.keys(this.env).sort();a.forEach(e=>{o.push(n("".concat(e,"=").concat(this.env[e])))}),o.push(0);let s=r;if(o.forEach(e=>{this.mem.setUint32(r,e,!0),this.mem.setUint32(r+4,0,!0),r+=8}),r>=12288)throw Error("total length of command line and environment variables exceeds limit");this._inst.exports.run(i,s),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(e){let t=this;return function(){let r={id:e,this:this,args:arguments};return t._pendingEvent=r,t._resume(),r.result}}constructor(){this.argv=["js"],this.env={},this.exit=e=>{0!==e&&console.warn("exit code:",e)},this._exitPromise=new Promise(e=>{this._resolveExitPromise=e}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;let e=(e,t)=>{this.mem.setUint32(e+0,t,!0),this.mem.setUint32(e+4,Math.floor(t/4294967296),!0)},n=e=>{let t=this.mem.getUint32(e+0,!0),r=this.mem.getInt32(e+4,!0);return t+4294967296*r},i=e=>{let t=this.mem.getFloat64(e,!0);if(0===t)return;if(!isNaN(t))return t;let r=this.mem.getUint32(e,!0);return this._values[r]},o=(e,t)=>{if("number"==typeof t&&0!==t){if(isNaN(t)){this.mem.setUint32(e+4,2146959360,!0),this.mem.setUint32(e,0,!0);return}this.mem.setFloat64(e,t,!0);return}if(void 0===t){this.mem.setFloat64(e,0,!0);return}let r=this._ids.get(t);void 0===r&&(void 0===(r=this._idPool.pop())&&(r=this._values.length),this._values[r]=t,this._goRefCounts[r]=0,this._ids.set(t,r)),this._goRefCounts[r]++;let n=0;switch(typeof t){case"object":null!==t&&(n=1);break;case"string":n=2;break;case"symbol":n=3;break;case"function":n=4}this.mem.setUint32(e+4,2146959360|n,!0),this.mem.setUint32(e,r,!0)},a=e=>{let t=n(e+0),r=n(e+8);return new Uint8Array(this._inst.exports.mem.buffer,t,r)},s=e=>{let t=n(e+0),r=n(e+8),o=Array(r);for(let e=0;e{let t=n(e+0),i=n(e+8);return r.decode(new DataView(this._inst.exports.mem.buffer,t,i))},u=Date.now()-performance.now();this.importObject={go:{"runtime.wasmExit":e=>{e>>>=0;let t=this.mem.getInt32(e+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(t)},"runtime.wasmWrite":e=>{e>>>=0;let t=n(e+8),r=n(e+16),i=this.mem.getInt32(e+24,!0);fs.writeSync(t,new Uint8Array(this._inst.exports.mem.buffer,r,i))},"runtime.resetMemoryDataView":e=>{this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":t=>{e((t>>>=0)+8,(u+performance.now())*1e6)},"runtime.walltime":t=>{t>>>=0;let r=new Date().getTime();e(t+8,r/1e3),this.mem.setInt32(t+16,r%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":e=>{e>>>=0;let t=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(t,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(t);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},n(e+8)+1)),this.mem.setInt32(e+16,t,!0)},"runtime.clearTimeoutEvent":e=>{e>>>=0;let t=this.mem.getInt32(e+8,!0);clearTimeout(this._scheduledTimeouts.get(t)),this._scheduledTimeouts.delete(t)},"runtime.getRandomData":e=>{e>>>=0,crypto.getRandomValues(a(e+8))},"syscall/js.finalizeRef":e=>{e>>>=0;let t=this.mem.getUint32(e+8,!0);if(this._goRefCounts[t]--,0===this._goRefCounts[t]){let e=this._values[t];this._values[t]=null,this._ids.delete(e),this._idPool.push(t)}},"syscall/js.stringVal":e=>{o((e>>>=0)+24,l(e+8))},"syscall/js.valueGet":e=>{e>>>=0;let t=Reflect.get(i(e+8),l(e+16));o((e=this._inst.exports.getsp()>>>0)+32,t)},"syscall/js.valueSet":e=>{e>>>=0,Reflect.set(i(e+8),l(e+16),i(e+32))},"syscall/js.valueDelete":e=>{e>>>=0,Reflect.deleteProperty(i(e+8),l(e+16))},"syscall/js.valueIndex":e=>{o((e>>>=0)+24,Reflect.get(i(e+8),n(e+16)))},"syscall/js.valueSetIndex":e=>{e>>>=0,Reflect.set(i(e+8),n(e+16),i(e+24))},"syscall/js.valueCall":e=>{e>>>=0;try{let t=i(e+8),r=Reflect.get(t,l(e+16)),n=s(e+32),a=Reflect.apply(r,t,n);e=this._inst.exports.getsp()>>>0,o(e+56,a),this.mem.setUint8(e+64,1)}catch(t){o((e=this._inst.exports.getsp()>>>0)+56,t),this.mem.setUint8(e+64,0)}},"syscall/js.valueInvoke":e=>{e>>>=0;try{let t=i(e+8),r=s(e+16),n=Reflect.apply(t,void 0,r);e=this._inst.exports.getsp()>>>0,o(e+40,n),this.mem.setUint8(e+48,1)}catch(t){o((e=this._inst.exports.getsp()>>>0)+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueNew":e=>{e>>>=0;try{let t=i(e+8),r=s(e+16),n=Reflect.construct(t,r);e=this._inst.exports.getsp()>>>0,o(e+40,n),this.mem.setUint8(e+48,1)}catch(t){o((e=this._inst.exports.getsp()>>>0)+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueLength":t=>{e((t>>>=0)+16,parseInt(i(t+8).length))},"syscall/js.valuePrepareString":r=>{r>>>=0;let n=t.encode(String(i(r+8)));o(r+16,n),e(r+24,n.length)},"syscall/js.valueLoadString":e=>{e>>>=0;let t=i(e+8);a(e+16).set(t)},"syscall/js.valueInstanceOf":e=>{e>>>=0,this.mem.setUint8(e+24,i(e+8) instanceof i(e+16)?1:0)},"syscall/js.copyBytesToGo":t=>{t>>>=0;let r=a(t+8),n=i(t+32);if(!(n instanceof Uint8Array||n instanceof Uint8ClampedArray)){this.mem.setUint8(t+48,0);return}let o=n.subarray(0,r.length);r.set(o),e(t+40,o.length),this.mem.setUint8(t+48,1)},"syscall/js.copyBytesToJS":t=>{t>>>=0;let r=i(t+8),n=a(t+16);if(!(r instanceof Uint8Array||r instanceof Uint8ClampedArray)){this.mem.setUint8(t+48,0);return}let o=n.subarray(0,r.length);r.set(o),e(t+40,o.length),this.mem.setUint8(t+48,1)},debug:e=>{console.log(e)}}}}}}(),t=new e,r=fetch("/walletd.wasm");try{let e=await WebAssembly.instantiateStreaming(r,t.importObject);return t.run(e.instance),{}}catch(e){return console.log(e),{error:e.message}}}r.d(t,{x:function(){return n},J:function(){return i}})},13508:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r(52322);r(37832);var i=r(25426),o=r(83753),a=r(2784),s=r(6110),l=r(45283),u=r(51660),c=r(39094);function d(e){let{children:t}=e;return(0,n.jsx)(o.Tu,{children:(0,n.jsx)(c.d,{children:(0,n.jsx)(s.k,{children:(0,n.jsx)(l.OZ,{children:(0,n.jsxs)(u.Yl,{children:[(0,n.jsx)(o.xQ,{}),t]})})})})})}var f=r(74236),h=r(71930);function p(e){let{Component:t,pageProps:r}=e;return(0,a.useEffect)(()=>{let e=async()=>{let{error:e}=await (0,f.J)();e&&(0,i.OHV)("Error initializing WASM. This browser is not supported.",{duration:6e4})};e()},[]),(0,n.jsx)(i.PD$,{fallback:r.fallback,passwordProtectRequestHooks:!0,lockRoutes:h._,children:(0,n.jsx)(d,{children:(0,n.jsx)(t,{...r})})})}},25426:function(e,t,r){"use strict";let n,i,o,a,s;r.d(t,{bZj:function(){return ly},tU3:function(){return jy},zXq:function(){return jM},juT:function(){return jd},Cts:function(){return lM},WVB:function(){return dQ},zxk:function(){return lm},EKh:function(){return lR},QHy:function(){return OQ},HfT:function(){return O2},ncR:function(){return SJ},VqE:function(){return cj},h_2:function(){return d3},Xiv:function(){return d5},Juw:function(){return d6},KpP:function(){return d8},cp7:function(){return S0},Qyk:function(){return SQ},jIp:function(){return O5},WyV:function(){return O7},qGu:function(){return O3},QBj:function(){return O8},yEL:function(){return jA},Bau:function(){return O6},ZqQ:function(){return S4},X6q:function(){return fr},Yqd:function(){return hj},__J:function(){return ff},rUS:function(){return fm},Qjf:function(){return fv},xgg:function(){return wD},kFS:function(){return d0},FzK:function(){return OJ},Clw:function(){return dJ},PD$:function(){return _n},Wxm:function(){return hO},wFK:function(){return jn},s_4:function(){return re},nvN:function(){return t7},u5Q:function(){return OY},j4H:function(){return hC},J2e:function(){return fB},tIK:function(){return OO},PhF:function(){return hA},Wh3:function(){return pM},Z0O:function(){return dG},DLL:function(){return OZ},KJW:function(){return jp},rsf:function(){return hH},D_D:function(){return OU},iA_:function(){return jt},t6k:function(){return O4},xvT:function(){return t8},ua7:function(){return lh},XxW:function(){return SO},YKL:function(){return ST},Sby:function(){return S_},hKn:function(){return OH},vQq:function(){return SE},ytg:function(){return Oq},sWj:function(){return OW},I13:function(){return Sj},OHV:function(){return Sb},OPV:function(){return Sy},$Gg:function(){return SS},_4u:function(){return _c},Wdu:function(){return _u},c2j:function(){return jb},WsO:function(){return jk},Uu5:function(){return _d},oy6:function(){return _l}});var l,u,c,d,f,h,p,m,v,g,y,b,x=r(52322),w=r(2784),E=r.t(w,2);function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;tn,Object.values(n));return(0,w.createElement)(r.Provider,{value:i},t)}return n.displayName=e+"Provider",[n,function(n){let i=(0,w.useContext)(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}]}function C(e,t=[]){let r=[],n=()=>{let t=r.map(e=>(0,w.createContext)(e));return function(r){let n=(null==r?void 0:r[e])||t;return(0,w.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=(0,w.createContext)(n),o=r.length;function a(t){let{scope:r,children:n,...a}=t,s=(null==r?void 0:r[e][o])||i,l=(0,w.useMemo)(()=>a,Object.values(a));return(0,w.createElement)(s.Provider,{value:l},n)}return r=[...r,n],a.displayName=t+"Provider",[a,function(r,a){let s=(null==a?void 0:a[e][o])||i,l=(0,w.useContext)(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e),o=i[`__scope${n}`];return{...t,...o}},{});return(0,w.useMemo)(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}function k(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function A(...e){return(0,w.useCallback)(k(...e),e)}let O=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e,i=w.Children.toArray(r),o=i.find(M);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:w.Children.count(e)>1?w.Children.only(null):(0,w.isValidElement)(e)?e.props.children:null);return(0,w.createElement)(_,S({},n,{ref:t}),(0,w.isValidElement)(e)?(0,w.cloneElement)(e,void 0,r):null)}return(0,w.createElement)(_,S({},n,{ref:t}),r)});O.displayName="Slot";let _=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,w.isValidElement)(r)?(0,w.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n],a=/^on[A-Z]/.test(n);a?r[n]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:k(t,r.ref)}):w.Children.count(r)>1?w.Children.only(null):null});_.displayName="SlotClone";let T=({children:e})=>(0,w.createElement)(w.Fragment,null,e);function M(e){return(0,w.isValidElement)(e)&&e.type===T}function N(e){let t=e+"CollectionProvider",[r,n]=C(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=w.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(a,r),s=A(t,i.collectionRef);return w.createElement(O,{ref:s},n)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=w.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=w.useRef(null),s=A(t,a),c=o(l,r);return w.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),w.createElement(O,{[u]:"",ref:s},n)});return[{Provider:e=>{let{scope:t,children:r}=e,n=w.useRef(null),o=w.useRef(new Map).current;return w.createElement(i,{scope:t,itemMap:o,collectionRef:n},r)},Slot:s,ItemSlot:c},function(t){let r=o(e+"CollectionConsumer",t),n=w.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),n=Array.from(r.itemMap.values()),i=n.sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current));return i},[r.collectionRef,r.itemMap]);return n},n]}function R(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function P(e){let t=(0,w.useRef)(e);return(0,w.useEffect)(()=>{t.current=e}),(0,w.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}function L({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=(0,w.useState)(e),[n]=r,i=(0,w.useRef)(n),o=P(t);return(0,w.useEffect)(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,a=o?e:n,s=P(r),l=(0,w.useCallback)(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else i(t)},[o,e,i,s]);return[a,l]}var D=r(28316);let I=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,w.forwardRef)((e,r)=>{let{asChild:n,...i}=e,o=n?O:t;return(0,w.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,w.createElement)(o,S({},i,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function F(e,t){e&&(0,D.flushSync)(()=>e.dispatchEvent(t))}let V=(null==globalThis?void 0:globalThis.document)?w.useLayoutEffect:()=>{},B=e=>{let{present:t,children:r}=e,n=function(e){var t;let[r,n]=(0,w.useState)(),i=(0,w.useRef)({}),o=(0,w.useRef)(e),a=(0,w.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,w.useReducer)((e,r)=>{let n=t[e][r];return null!=n?n:e},s));return(0,w.useEffect)(()=>{let e=U(i.current);a.current="mounted"===l?e:"none"},[l]),V(()=>{let t=i.current,r=o.current,n=r!==e;if(n){let n=a.current,i=U(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):r&&n!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),V(()=>{if(r){let e=e=>{let t=U(i.current),n=t.includes(e.animationName);e.target===r&&n&&(0,D.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(a.current=U(i.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,w.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}(t),i="function"==typeof r?r({present:n.isPresent}):w.Children.only(r),o=A(n.ref,i.ref),a="function"==typeof r;return a||n.isPresent?(0,w.cloneElement)(i,{ref:o}):null};function U(e){return(null==e?void 0:e.animationName)||"none"}B.displayName="Presence";let z=E["useId".toString()]||(()=>void 0),H=0;function $(e){let[t,r]=w.useState(z());return V(()=>{e||r(e=>null!=e?e:String(H++))},[e]),e||(t?`radix-${t}`:"")}let W="Collapsible",[q,G]=C(W),[Z,Y]=q(W),X=((e,t)=>{let{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=L({prop:n,defaultProp:i,onChange:a});return(0,w.createElement)(Z,{scope:r,disabled:o,contentId:$(),open:l,onOpenToggle:(0,w.useCallback)(()=>u(e=>!e),[u])},(0,w.createElement)(I.div,S({"data-state":J(l),"data-disabled":o?"":void 0},s,{ref:t})))},"CollapsibleContent"),K=((e,t)=>{let{forceMount:r,...n}=e,i=Y(X,e.__scopeCollapsible);return(0,w.createElement)(B,{present:r||i.open},({present:e})=>(0,w.createElement)(K,S({},n,{ref:t,present:e})))},(0,w.forwardRef)((e,t)=>{let{__scopeCollapsible:r,present:n,children:i,...o}=e,a=Y(X,r),[s,l]=(0,w.useState)(n),u=(0,w.useRef)(null),c=A(t,u),d=(0,w.useRef)(0),f=d.current,h=(0,w.useRef)(0),p=h.current,m=a.open||s,v=(0,w.useRef)(m),g=(0,w.useRef)();return(0,w.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),V(()=>{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(n)}},[a.open,n]),(0,w.createElement)(I.div,S({"data-state":J(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 J(e){return e?"open":"closed"}let Q="Accordion",ee=["Home","End","ArrowDown","ArrowUp"],[et,er,en]=N(Q),[ei,eo]=C(Q,[en,G]),ea=(G(),w.forwardRef((e,t)=>{let{type:r,...n}=e;return w.createElement(et.Provider,{scope:e.__scopeAccordion},"multiple"===r?w.createElement(ef,S({},n,{ref:t})):w.createElement(ed,S({},n,{ref:t})))}));ea.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[es,el]=ei(Q),[eu,ec]=ei(Q,{collapsible:!1}),ed=w.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=L({prop:r,defaultProp:n,onChange:i});return w.createElement(es,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:w.useCallback(()=>o&&l(""),[o,l])},w.createElement(eu,{scope:e.__scopeAccordion,collapsible:o},w.createElement(em,S({},a,{ref:t}))))}),ef=w.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},...o}=e,[a=[],s]=L({prop:r,defaultProp:n,onChange:i}),l=w.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=w.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return w.createElement(es,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},w.createElement(eu,{scope:e.__scopeAccordion,collapsible:!0},w.createElement(em,S({},o,{ref:t}))))}),[eh,ep]=ei(Q),em=w.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:n,...i}=e,o=w.useRef(null),a=A(o,t),s=er(r),l=R(e.onKeyDown,e=>{var t;if(!ee.includes(e.key))return;let r=e.target,n=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=n.findIndex(e=>e.ref.current===r),o=n.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)}let l=a%o;null===(t=n[l].ref.current)||void 0===t||t.focus()});return w.createElement(eh,{scope:r,disabled:n},w.createElement(et.Slot,{scope:r},w.createElement(I.div,S({},i,{ref:a,onKeyDown:n?void 0:l}))))}),[ev,eg]=ei("AccordionItem");var ey=r(82851);let eb="dismissableLayer.update",ex=(0,w.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ew=(0,w.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=(0,w.useContext)(ex),[d,f]=(0,w.useState)(null),[,h]=(0,w.useState)({}),p=A(t,e=>f(e)),m=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),y=d?m.indexOf(d):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=y>=g,E=function(e){let t=P(e),r=(0,w.useRef)(!1),n=(0,w.useRef)(()=>{});return(0,w.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function i(){eS("dismissableLayer.pointerDownOutside",t,r,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",n.current),n.current=i,document.addEventListener("click",n.current,{once:!0})):i()}r.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",n.current)}},[t]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,r=[...c.branches].some(e=>e.contains(t));!x||r||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==l||l())}),j=function(e){let t=P(e),r=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=e=>{e.target&&!r.current&&eS("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,r=[...c.branches].some(e=>e.contains(t));r||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())});return!function(e){let t=P(e);(0,w.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=y===c.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),(0,w.useEffect)(()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(n=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),eE(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=n)}},[d,r,c]),(0,w.useEffect)(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),eE())},[d,c]),(0,w.useEffect)(()=>{let e=()=>h({});return document.addEventListener(eb,e),()=>document.removeEventListener(eb,e)},[]),(0,w.createElement)(I.div,S({},u,{ref:p,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,j.onFocusCapture),onBlurCapture:R(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,E.onPointerDownCapture)}))});function eE(){let e=new CustomEvent(eb);document.dispatchEvent(e)}function eS(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?F(i,o):i.dispatchEvent(o)}function ej(e){return e.split("-")[0]}function eC(e){return e.split("-")[1]}function ek(e){return["top","bottom"].includes(ej(e))?"x":"y"}function eA(e){return"y"===e?"height":"width"}function eO(e,t,r){let n,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=ek(t),u=eA(l),c=i[u]/2-o[u]/2,d="x"===l;switch(ej(t)){case"top":n={x:a,y:i.y-o.height};break;case"bottom":n={x:a,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:s};break;case"left":n={x:i.x-o.width,y:s};break;default:n={x:i.x,y:i.y}}switch(eC(t)){case"start":n[l]-=c*(r&&d?-1:1);break;case"end":n[l]+=c*(r&&d?-1:1)}return n}let e_=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=eO(l,n,s),d=n,f={},h=0;for(let r=0;r({name:"arrow",options:e,async fn(t){let{element:r,padding:n=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==r)return{};let u=eT(n),c={x:i,y:o},d=ek(a),f=eC(a),h=eA(d),p=await l.getDimensions(r),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(r)),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],S=x/2-p[h]/2+(g/2-y/2),j=eP(w,eR(S,E)),C=("start"===f?u[m]:u[v])>0&&S!==j&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(C?SeD[e])}let eF={start:"end",end:"start"};function eV(e){return e.replace(/start|end/g,e=>eF[e])}let eB=["top","right","bottom","left"];eB.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eU=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,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=eI(e);return[eV(e),t,eV(t)]}(u):[eI(u)]),x=[u,...b],w=await eN(t,g),E=[],S=(null==(r=s.flip)?void 0:r.overflows)||[];if(f&&E.push(w[y]),h){let{main:e,cross:t}=function(e,t,r){void 0===r&&(r=!1);let n=eC(e),i=ek(e),o=eA(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=eI(a)),{main:a,cross:eI(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));E.push(w[e],w[t])}if(S=[...S,{placement:a,overflows:E}],!E.every(e=>e<=0)){let e=(null!=(n=null==(i=s.flip)?void 0:i.index)?n:0)+1,t=x[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let r="bottom";switch(m){case"bestFit":{let e=null==(o=S.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&&(r=e);break}case"initialPlacement":r=u}if(a!==r)return{reset:{placement:r}}}return{}}}};function ez(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eH(e){return eB.some(t=>e[t]>=0)}let e$=function(e){let{strategy:t="referenceHidden",...r}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:n}=e;switch(t){case"referenceHidden":{let t=ez(await eN(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eH(t)}}}case"escaped":{let t=ez(await eN(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:eH(t)}}}default:return{}}}}},eW=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:r,y:n}=t,i=await async function(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=ej(r),s=eC(r),l="x"===ek(r),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:r+i.x,y:n+i.y,data:i}}}};function eq(e){return"x"===e?"y":"x"}let eG=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=e,u={x:r,y:n},c=await eN(t,l),d=ek(ej(i)),f=eq(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=eP(h+c["y"===d?"top":"left"],eR(h,h-c[e]))}a&&(p=eP(p+c["y"===f?"top":"left"],eR(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-r,y:m.y-n}}}}},eZ=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:r,y:n},d=ek(i),f=eq(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,r=o.reference[d]+o.reference[e]-v.mainAxis;hr&&(h=r)}if(u){var g,y,b,x;let e="y"===d?"width":"height",t=["top","left"].includes(ej(i)),r=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),n=o.reference[f]+o.reference[e]+(t?0:null!=(b=null==(x=a.offset)?void 0:x[f])?b:0)-(t?v.crossAxis:0);pn&&(p=n)}return{[d]:h,[f]:p}}}};function eY(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eX(e){if(null==e)return window;if(!eY(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eK(e){return eX(e).getComputedStyle(e)}function eJ(e){return eY(e)?"":e?(e.nodeName||"").toLowerCase():""}function eQ(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function e0(e){return e instanceof eX(e).HTMLElement}function e1(e){return e instanceof eX(e).Element}function e2(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eX(e).ShadowRoot||e instanceof ShadowRoot)}function e4(e){let{overflow:t,overflowX:r,overflowY:n}=eK(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function e3(e){let t=/firefox/i.test(eQ()),r=eK(e);return"none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||["transform","perspective"].includes(r.willChange)||t&&"filter"===r.willChange||t&&!!r.filter&&"none"!==r.filter}function e5(){return!/^((?!chrome|android).)*safari/i.test(eQ())}let e6=Math.min,e8=Math.max,e7=Math.round;function e9(e,t,r){var n,i,o,a;void 0===t&&(t=!1),void 0===r&&(r=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&e0(e)&&(l=e.offsetWidth>0&&e7(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&e7(s.height)/e.offsetHeight||1);let c=e1(e)?eX(e):window,d=!e5()&&r,f=(s.left+(d&&null!=(n=null==(i=c.visualViewport)?void 0:i.offsetLeft)?n: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 te(e){return((e instanceof eX(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function tt(e){return e1(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tr(e){return e9(te(e)).left+tt(e).scrollLeft}function tn(e){return"html"===eJ(e)?e:e.assignedSlot||e.parentNode||(e2(e)?e.host:null)||te(e)}function ti(e){return e0(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function to(e){let t=eX(e),r=ti(e);for(;r&&["table","td","th"].includes(eJ(r))&&"static"===getComputedStyle(r).position;)r=ti(r);return r&&("html"===eJ(r)||"body"===eJ(r)&&"static"===getComputedStyle(r).position&&!e3(r))?t:r||function(e){let t=tn(e);for(e2(t)&&(t=t.host);e0(t)&&!["html","body"].includes(eJ(t));){if(e3(t))return t;t=t.parentNode}return null}(e)||t}function ta(e){if(e0(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e9(e);return{width:t.width,height:t.height}}function ts(e,t){var r;void 0===t&&(t=[]);let n=function e(t){let r=tn(t);return["html","body","#document"].includes(eJ(r))?t.ownerDocument.body:e0(r)&&e4(r)?r:e(r)}(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=eX(n),a=i?[o].concat(o.visualViewport||[],e4(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(ts(a))}function tl(e,t,r){return"viewport"===t?eM(function(e,t){let r=eX(e),n=te(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=e5();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,r)):e1(t)?function(e,t){let r=e9(e,!1,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft;return{top:n,left:i,x:i,y:n,right:i+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,r):eM(function(e){var t;let r=te(e),n=tt(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=e8(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=e8(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+tr(e),l=-n.scrollTop;return"rtl"===eK(i||r).direction&&(s+=e8(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(te(e)))}let tu={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?function(e){let t=ts(e),r=["absolute","fixed"].includes(eK(e).position)&&e0(e)?to(e):e;return e1(r)?t.filter(e=>e1(e)&&function(e,t){let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&e2(r)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(e,r)&&"body"!==eJ(e)):[]}(t):[].concat(r),n],a=o[0],s=o.reduce((e,r)=>{let n=tl(t,r,i);return e.top=e8(n.top,e.top),e.right=e6(n.right,e.right),e.bottom=e6(n.bottom,e.bottom),e.left=e8(n.left,e.left),e},tl(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:r,strategy:n}=e,i=e0(r),o=te(r);if(r===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==n)&&(("body"!==eJ(r)||e4(o))&&(a=tt(r)),e0(r))){let e=e9(r,!0);s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:e1,getDimensions:ta,getOffsetParent:to,getDocumentElement:te,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:function(e,t,r){let n=e0(t),i=te(t),o=e9(e,n&&function(e){let t=e9(e);return e7(t.width)!==e.offsetWidth||e7(t.height)!==e.offsetHeight}(t),"fixed"===r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(n||!n&&"fixed"!==r){if(("body"!==eJ(t)||e4(i))&&(a=tt(t)),e0(t)){let e=e9(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=tr(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,to(r),n),floating:{...ta(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eK(e).direction};function tc(e,t,r,n){void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=n,l=i&&!s,u=o&&!s,c=l||u?[...e1(e)?ts(e):[],...ts(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let d,f=null;if(a){let n=!0;f=new ResizeObserver(()=>{n||r(),n=!1}),e1(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e9(e):null;return s&&function t(){let n=e9(e);h&&(n.x!==h.x||n.y!==h.y||n.width!==h.width||n.height!==h.height)&&r(),h=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let td=(e,t,r)=>e_(e,t,{platform:tu,...r});var tf="undefined"!=typeof document?w.useLayoutEffect:w.useEffect;function th(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=w.useRef(null),a=w.useRef(null),s=function(e){let t=w.useRef(e);return tf(()=>{t.current=e}),t}(i),l=w.useRef(null),[u,c]=w.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[d,f]=w.useState(t);!function e(t,r){let n,i,o;if(t===r)return!0;if(typeof t!=typeof r)return!1;if("function"==typeof t&&t.toString()===r.toString())return!0;if(t&&r&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){let n=o[i];if(("_owner"!==n||!t.$$typeof)&&!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}(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=w.useCallback(()=>{o.current&&a.current&&td(o.current,a.current,{middleware:d,placement:r,strategy:n}).then(e=>{p.current&&D.flushSync(()=>{c(e)})})},[d,r,n]);tf(()=>{p.current&&h()},[h]);let p=w.useRef(!1);tf(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=w.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=w.useCallback(e=>{o.current=e,m()},[m]),g=w.useCallback(e=>{a.current=e,m()},[m]),y=w.useMemo(()=>({reference:o,floating:a}),[]);return w.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tp=e=>{let{element:t,padding:r}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return eL({element:t.current,padding:r}).fn(e)}else if(t)return eL({element:t,padding:r}).fn(e);return{}}}},tm=(0,w.forwardRef)((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,w.createElement)(I.svg,S({},o,{ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:(0,w.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tv(e){let[t,r]=(0,w.useState)(void 0);return V(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,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;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}let tg="Popper",[ty,tb]=C(tg),[tx,tw]=ty(tg),tE=(0,w.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,o=tw("PopperAnchor",r),a=(0,w.useRef)(null),s=A(t,a);return(0,w.useEffect)(()=>{o.onAnchorChange((null==n?void 0:n.current)||a.current)}),n?null:(0,w.createElement)(I.div,S({},i,{ref:s}))}),tS="PopperContent",[tj,tC]=ty(tS),[tk,tA]=ty(tS,{hasParent:!1,positionUpdateFns:new Set}),tO=(0,w.forwardRef)((e,t)=>{var r,n,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,...E}=e,S=tw(tS,c),[j,C]=(0,w.useState)(null),k=A(t,e=>C(e)),[O,_]=(0,w.useState)(null),T=tv(O),M=null!==(r=null==T?void 0:T.width)&&void 0!==r?r:0,N=null!==(n=null==T?void 0:T.height)&&void 0!==n?n:0,R="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(v)?v:[v],L=P.length>0,D={padding:R,boundary:P.filter(tN),altBoundary:L},{reference:F,floating:B,strategy:U,x:z,y:H,placement:$,middlewareData:W,update:q}=th({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tc,middleware:[eW({mainAxis:f+N,alignmentAxis:p}),x?eG({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eZ():void 0,...D}):void 0,O?tp({element:O,padding:m}):void 0,x?eU({...D}):void 0,tR({arrowWidth:M,arrowHeight:N}),b?e$({strategy:"referenceHidden"}):void 0].filter(tM)});V(()=>{F(S.anchor)},[F,S.anchor]);let G=null!==z&&null!==H,[Z,Y]=tP($),X=null===(i=W.arrow)||void 0===i?void 0:i.x,K=null===(o=W.arrow)||void 0===o?void 0:o.y,J=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[Q,ee]=(0,w.useState)();V(()=>{j&&ee(window.getComputedStyle(j).zIndex)},[j]);let{hasParent:et,positionUpdateFns:er}=tA(tS,c),en=!et;(0,w.useLayoutEffect)(()=>{if(!en)return er.add(q),()=>{er.delete(q)}},[en,er,q]),(0,w.useLayoutEffect)(()=>{en&&G&&Array.from(er).reverse().forEach(e=>requestAnimationFrame(e))},[en,G,er]);let ei={"data-side":Z,"data-align":Y,...E,ref:k,style:{...E.style,animation:G?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,w.createElement)("div",{ref:B,"data-radix-popper-content-wrapper":"",style:{position:U,left:0,top:0,transform:G?`translate3d(${Math.round(z)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,w.createElement)(tj,{scope:c,placedSide:Z,onArrowChange:_,arrowX:X,arrowY:K,shouldHideArrow:J},en?(0,w.createElement)(tk,{scope:c,hasParent:!0,positionUpdateFns:er},(0,w.createElement)(I.div,ei)):(0,w.createElement)(I.div,ei)))}),t_={top:"bottom",right:"left",bottom:"top",left:"right"},tT=(0,w.forwardRef)(function(e,t){let{__scopePopper:r,...n}=e,i=tC("PopperArrow",r),o=t_[i.placedSide];return(0,w.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,w.createElement)(tm,S({},n,{ref:t,style:{...n.style,display:"block"}})))});function tM(e){return void 0!==e}function tN(e){return null!==e}let tR=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=tP(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(n=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==n?n: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 tP(e){let[t,r="center"]=e.split("-");return[t,r]}let tL=e=>{let{__scopePopper:t,children:r}=e,[n,i]=(0,w.useState)(null);return(0,w.createElement)(tx,{scope:t,anchor:n,onAnchorChange:i},r)},tD=(0,w.forwardRef)((e,t)=>{var r;let{container:n=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...i}=e;return n?D.createPortal((0,w.createElement)(I.div,S({},i,{ref:t})),n):null}),tI=(0,w.forwardRef)((e,t)=>(0,w.createElement)(I.span,S({},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}}))),[tF,tV]=C("Tooltip",[tb]),tB=tb(),tU="tooltip.open",[tz,tH]=tF("TooltipProvider"),t$="Tooltip",[tW,tq]=tF(t$),tG="TooltipTrigger",tZ=(0,w.forwardRef)((e,t)=>{let{__scopeTooltip:r,...n}=e,i=tq(tG,r),o=tH(tG,r),a=tB(r),s=(0,w.useRef)(null),l=A(t,s,i.onTriggerChange),u=(0,w.useRef)(!1),c=(0,w.useRef)(!1),d=(0,w.useCallback)(()=>u.current=!1,[]);return(0,w.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,w.createElement)(tE,S({asChild:!0},a),(0,w.createElement)(I.button,S({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},n,{ref:l,onPointerMove:R(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:R(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:R(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:R(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:R(e.onBlur,i.onClose),onClick:R(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tY="TooltipPortal",[tX,tK]=tF(tY,{forceMount:void 0}),tJ="TooltipContent",tQ=(0,w.forwardRef)((e,t)=>{let r=tK(tJ,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,a=tq(tJ,e.__scopeTooltip);return(0,w.createElement)(B,{present:n||a.open},a.disableHoverableContent?(0,w.createElement)(t4,S({side:i},o,{ref:t})):(0,w.createElement)(t0,S({side:i},o,{ref:t})))}),t0=(0,w.forwardRef)((e,t)=>{let r=tq(tJ,e.__scopeTooltip),n=tH(tJ,e.__scopeTooltip),i=(0,w.useRef)(null),o=A(t,i),[a,s]=(0,w.useState)(null),{trigger:l,onClose:u}=r,c=i.current,{onPointerInTransitChange:d}=n,f=(0,w.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,w.useCallback)((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:return null}}(n,r.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect()),u=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 r=0;r=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([a,...l]);s(u),d(!0)},[d]);return(0,w.useEffect)(()=>()=>f(),[f]),(0,w.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,w.useEffect)(()=>{if(a){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(l-a)*(n-s)/(u-s)+a;c&&(i=!i)}return i}(r,a);n?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,w.createElement)(t4,S({},e,{ref:o}))}),[t1,t2]=tF(t$,{isInside:!1}),t4=(0,w.forwardRef)((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tq(tJ,r),u=tB(r),{onClose:c}=l;return(0,w.useEffect)(()=>(document.addEventListener(tU,c),()=>document.removeEventListener(tU,c)),[c]),(0,w.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,w.createElement)(ew,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,w.createElement)(tO,S({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,w.createElement)(T,null,n),(0,w.createElement)(t1,{scope:r,isInside:!0},(0,w.createElement)(tI,{id:l.contentId,role:"tooltip"},i||n))))}),t3=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tH(t$,e.__scopeTooltip),u=tB(t),[c,d]=(0,w.useState)(null),f=$(),h=(0,w.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,w.useRef)(!1),[g=!1,y]=L({prop:n,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(tU))):l.onClose(),null==o||o(e)}}),b=(0,w.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),x=(0,w.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),E=(0,w.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),S=(0,w.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,w.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,w.createElement)(tL,u,(0,w.createElement)(tW,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,w.useCallback)(()=>{l.isOpenDelayed?S():x()},[l.isOpenDelayed,S,x]),onTriggerLeave:(0,w.useCallback)(()=>{p?E():window.clearTimeout(h.current)},[E,p]),onOpen:x,onClose:E,disableHoverableContent:p},r))},t5=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=tq(tY,t);return(0,w.createElement)(tX,{scope:t,forceMount:r},(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(tD,{asChild:!0,container:i},n)))},t6=(0,ey.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"}}),t8=w.forwardRef((e,t)=>{let{tag:r="span",className:n,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,x.jsx)(r,{ref:t,className:(0,ey.cx)(n,t6({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t7=w.forwardRef((e,t)=>{let{size:r="18",...n}=e;return(0,x.jsx)(t8,{tag:"p",...n,ref:t,weight:"regular",scaleSize:r,color:"subtle",className:(0,ey.cx)("leading-relaxed md:leading-relaxed",e.className)})}),t9=(0,ey.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),re=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{ref:t,className:t9({className:r}),...n})});var rt=r(34406);let rr=(void 0===rt||rt.env,"production"),rn=1/60*1e3,ri="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ro="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(ri()),rn),ra=!0,rs=!1,rl=!1,ru={delta:0,timestamp:0},rc=["read","update","preRender","render","postRender"],rd=rc.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:r;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;rrs=!0),e),{}),rf=rc.reduce((e,t)=>{let r=rd[t];return e[t]=(e,t=!1,n=!1)=>(rs||rg(),r.schedule(e,t,n)),e},{}),rh=rc.reduce((e,t)=>(e[t]=rd[t].cancel,e),{}),rp=rc.reduce((e,t)=>(e[t]=()=>rd[t].process(ru),e),{}),rm=e=>rd[e].process(ru),rv=e=>{rs=!1,ru.delta=ra?rn:Math.max(Math.min(e-ru.timestamp,40),1),ru.timestamp=e,rl=!0,rc.forEach(rm),rl=!1,rs&&(ra=!1,ro(rv))},rg=()=>{rs=!0,ra=!0,rl||ro(rv)},ry=()=>ru,rb="undefined"!=typeof document,rx=rb?w.useLayoutEffect:w.useEffect;function rw(){let e=(0,w.useRef)(!1);return rx(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let rE=(0,w.createContext)(null);function rS(e){let t=(0,w.useRef)(null);return null===t.current&&(t.current=e()),t.current}class rj extends w.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 rC({children:e,isPresent:t}){let r=(0,w.useId)(),n=(0,w.useRef)(null),i=(0,w.useRef)({width:0,height:0,top:0,left:0});return(0,w.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!n.current||!e||!o)return;n.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${e}px !important; - height: ${o}px !important; - top: ${a}px !important; - left: ${s}px !important; - } - `),()=>{document.head.removeChild(l)}},[t]),w.createElement(rj,{isPresent:t,childRef:n,sizeRef:i},w.cloneElement(e,{ref:n}))}let rk=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=rS(rA),l=(0,w.useId)(),u=(0,w.useMemo)(()=>({id:l,initial:t,isPresent:r,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;n&&n()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[r]);return(0,w.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[r]),w.useEffect(()=>{r||s.size||!n||n()},[r]),"popLayout"===a&&(e=w.createElement(rC,{isPresent:r},e)),w.createElement(rE.Provider,{value:u},e)};function rA(){return new Map}let rO=(0,w.createContext)({});function r_(e){return(0,w.useEffect)(()=>()=>e(),[])}let rT=new Set;function rM(e,t,r){e||rT.has(t)||(console.warn(t),r&&console.warn(r),rT.add(t))}let rN=e=>e.key||"",rR=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",rM(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=rw(),[t,r]=(0,w.useState)(0),n=(0,w.useCallback)(()=>{e.current&&r(t+1)},[t]),i=(0,w.useCallback)(()=>rf.postRender(n),[n]);return[i,t]}(),l=(0,w.useContext)(rO).forceRender;l&&(s=l);let u=rw(),c=function(e){let t=[];return w.Children.forEach(e,e=>{(0,w.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,w.useRef)(d),p=(0,w.useRef)(new Map).current,m=(0,w.useRef)(!0);if(rx(()=>{m.current=!1,function(e,t){e.forEach(e=>{let r=rN(e);t.set(r,e)})}(c,p),h.current=d}),r_(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return w.createElement(w.Fragment,null,d.map(e=>w.createElement(rk,{key:rN(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(rN),g=c.map(rN),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let r=p.get(e);if(!r)return;let i=v.indexOf(e);d.splice(i,0,w.createElement(rk,{key:rN(r),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(),n&&n()}},custom:t,presenceAffectsLayout:o,mode:a},r))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:w.createElement(rk,{key:rN(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==rr&&"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.'),w.createElement(w.Fragment,null,f.size?d:d.map(e=>(0,w.cloneElement)(e)))},rP=(0,w.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),rL=(0,w.createContext)({}),rD=(0,w.createContext)({strict:!1});function rI(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function rF(e){return"string"==typeof e||Array.isArray(e)}function rV(e){return"object"==typeof e&&"function"==typeof e.start}let rB=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function rU(e){return rV(e.animate)||rB.some(t=>rF(e[t]))}function rz(e){return!!(rU(e)||e.variants)}function rH(e){return Array.isArray(e)?e.join(" "):e}let r$=e=>({isEnabled:t=>e.some(e=>!!t[e])}),rW={measureLayout:r$(["layout","layoutId","drag"]),animation:r$(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:r$(["exit"]),drag:r$(["drag","dragControls"]),focus:r$(["whileFocus"]),hover:r$(["whileHover","onHoverStart","onHoverEnd"]),tap:r$(["whileTap","onTap","onTapStart","onTapCancel"]),pan:r$(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:r$(["whileInView","onViewportEnter","onViewportLeave"])},rq={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rG=1;class rZ extends w.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let rY=(0,w.createContext)({}),rX=Symbol.for("motionComponentSymbol"),rK=["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 rJ(e){if("string"!=typeof e||e.includes("-"));else if(rK.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let rQ={},r0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r1=new Set(r0);function r2(e,{layout:t,layoutId:r}){return r1.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!rQ[e]||"opacity"===e)}let r4=e=>!!(null==e?void 0:e.getVelocity),r3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},r5=(e,t)=>r0.indexOf(e)-r0.indexOf(t);function r6(e){return e.startsWith("--")}let r8=(e,t)=>t&&"number"==typeof e?t.transform(e):e,r7=(e,t)=>r=>Math.max(Math.min(r,t),e),r9=e=>e%1?Number(e.toFixed(5)):e,ne=/(-)?([\d]*\.?[\d])+/g,nt=/(#[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,nr=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function nn(e){return"string"==typeof e}let ni=e=>({test:t=>nn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),no=ni("deg"),na=ni("%"),ns=ni("px"),nl=ni("vh"),nu=ni("vw"),nc=Object.assign(Object.assign({},na),{parse:e=>na.parse(e)/100,transform:e=>na.transform(100*e)}),nd={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},nf=Object.assign(Object.assign({},nd),{transform:r7(0,1)}),nh=Object.assign(Object.assign({},nd),{default:1}),np={...nd,transform:Math.round},nm={borderWidth:ns,borderTopWidth:ns,borderRightWidth:ns,borderBottomWidth:ns,borderLeftWidth:ns,borderRadius:ns,radius:ns,borderTopLeftRadius:ns,borderTopRightRadius:ns,borderBottomRightRadius:ns,borderBottomLeftRadius:ns,width:ns,maxWidth:ns,height:ns,maxHeight:ns,size:ns,top:ns,right:ns,bottom:ns,left:ns,padding:ns,paddingTop:ns,paddingRight:ns,paddingBottom:ns,paddingLeft:ns,margin:ns,marginTop:ns,marginRight:ns,marginBottom:ns,marginLeft:ns,rotate:no,rotateX:no,rotateY:no,rotateZ:no,scale:nh,scaleX:nh,scaleY:nh,scaleZ:nh,skew:no,skewX:no,skewY:no,distance:ns,translateX:ns,translateY:ns,translateZ:ns,x:ns,y:ns,z:ns,perspective:ns,transformPerspective:ns,opacity:nf,originX:nc,originY:nc,originZ:ns,zIndex:np,fillOpacity:nf,strokeOpacity:nf,numOctaves:np};function nv(e,t,r,n){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 r=t[e];if(r6(e)){o[e]=r;continue}let n=nm[e],f=r8(r,n);if(r1.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;r!==(n.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||n?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,o){let a="";for(let r of(t.sort(r5),t))a+=`${r3[r]||r}(${e[r]}) `;return r&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):n&&i&&(a="none"),a}(e,r,d,n):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:r=0}=l;i.transformOrigin=`${e} ${t} ${r}`}}let ng=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ny(e,t,r){for(let n in t)r4(t[n])||r2(n,r)||(e[n]=t[n])}function nb(e,t,r){let n={},i=function(e,t,r){let n=e.style||{},i={};return ny(i,n,e),Object.assign(i,function({transformTemplate:e},t,r){return(0,w.useMemo)(()=>{let n=ng();return nv(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),e.transformValues?e.transformValues(i):i}(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),n.style=i,n}let nx=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 nw(e){return nx.has(e)}let nE=e=>!nw(e);try{(wU=require("@emotion/is-prop-valid").default)&&(nE=e=>e.startsWith("on")?!nw(e):wU(e))}catch(e){}function nS(e,t,r){return"string"==typeof e?e:ns.transform(t+r*e)}let nj={offset:"stroke-dashoffset",array:"stroke-dasharray"},nC={offset:"strokeDashoffset",array:"strokeDasharray"};function nk(e,{attrX:t,attrY:r,originX:n,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){nv(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!==n||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,r){let n=nS(t,e.x,e.width),i=nS(r,e.y,e.height);return`${n} ${i}`}(h,void 0!==n?n:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==o&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?nj:nC;e[o.offset]=ns.transform(-n);let a=ns.transform(t),s=ns.transform(r);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let nA=()=>({...ng(),attrs:{}});function nO(e,t){let r=(0,w.useMemo)(()=>{let r=nA();return nk(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};ny(t,e.style,e),r.style={...t,...r.style}}return r}let n_=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function nT(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let nM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function nN(e,t,r,n){for(let r in nT(e,t,void 0,n),t.attrs)e.setAttribute(nM.has(r)?r:n_(r),t.attrs[r])}function nR(e){let{style:t}=e,r={};for(let n in t)(r4(t[n])||r2(n,e))&&(r[n]=t[n]);return r}function nP(e){let t=nR(e);for(let r in e)if(r4(e[r])){let n="x"===r||"y"===r?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}function nL(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}let nD=e=>Array.isArray(e),nI=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),nF=e=>nD(e)?e[e.length-1]||0:e;function nV(e){let t=r4(e)?e.get():e;return nI(t)?t.toValue():t}let nB=e=>(t,r)=>{let n=(0,w.useContext)(rL),i=(0,w.useContext)(rE),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let a={latestValues:function(e,t,r,n){let i={},o=n(e);for(let e in o)i[e]=nV(o[e]);let{initial:a,animate:s}=e,l=rU(e),u=rz(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!rV(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let r=nL(e,t);if(!r)return;let{transitionEnd:n,transition:o,...a}=r;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 n)i[e]=n[e]})}return i}(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a})(e,t,n,i);return r?o():rS(o)},nU={useVisualState:nB({scrapeMotionValuesFromProps:nP,createRenderState:nA,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}nk(r,n,{enableHardwareAcceleration:!1},e.transformTemplate),nN(t,r)}})},nz={useVisualState:nB({scrapeMotionValuesFromProps:nR,createRenderState:ng})};function nH(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function n$(e,t,r,n){(0,w.useEffect)(()=>{let i=e.current;if(r&&i)return nH(i,t,r,n)},[e,t,r,n])}function nW(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function nq(e){let t=!!e.touches;return t}(wz=wJ||(wJ={})).Animate="animate",wz.Hover="whileHover",wz.Tap="whileTap",wz.Drag="whileDrag",wz.Focus="whileFocus",wz.InView="whileInView",wz.Exit="exit";let nG={pageX:0,pageY:0};function nZ(e,t="page"){return{point:nq(e)?function(e,t="page"){let r=e.touches[0]||e.changedTouches[0],n=r||nG;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 nY=(e,t=!1)=>{let r=t=>e(t,nZ(t));return t?e=>{let t=e instanceof MouseEvent,n=!t||t&&0===e.button;n&&r(e)}:r},nX=()=>rb&&null===window.onpointerdown,nK=()=>rb&&null===window.ontouchstart,nJ=()=>rb&&null===window.onmousedown,nQ={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},n0={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function n1(e){if(nX());else if(nK())return n0[e];else if(nJ())return nQ[e];return e}function n2(e,t,r,n){return nH(e,n1(t),nY(r,"pointerdown"===t),n)}function n4(e,t,r,n){return n$(e,n1(t),r&&nY(r,"pointerdown"===t),n)}function n3(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let n5=n3("dragHorizontal"),n6=n3("dragVertical");function n8(e){let t=!1;if("y"===e)t=n6();else if("x"===e)t=n5();else{let e=n5(),r=n6();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function n7(){let e=n8(!0);return!e||(e(),!1)}function n9(e,t,r){return(n,i)=>{!(!nW(n)||n7())&&(e.animationState&&e.animationState.setActive(wJ.Hover,t),r&&r(n,i))}}let ie=(e,t)=>!!t&&(e===t||ie(e,t.parentElement)),it=(e,t)=>r=>t(e(r)),ir=(...e)=>e.reduce(it),ii=new WeakMap,io=new WeakMap,ia=e=>{let t=ii.get(e.target);t&&t(e)},is=e=>{e.forEach(ia)},il={some:0,all:1};function iu(e,t,r,{root:n,margin:i,amount:o="some",once:a}){(0,w.useEffect)(()=>{if(!e||!r.current)return;let s={root:null==n?void 0:n.current,rootMargin:i,threshold:"number"==typeof o?o:il[o]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;io.has(r)||io.set(r,{});let n=io.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(is,{root:e,...t})),n[i]}(t);return ii.set(e,r),n.observe(e),()=>{ii.delete(e),n.unobserve(e)}}(r.current,s,e=>{let{isIntersecting:n}=e;if(t.isInView===n||(t.isInView=n,a&&!n&&t.hasEnteredView))return;n&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(wJ.InView,n);let i=r.getProps(),o=n?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,n,i,o])}function ic(e,t,r,{fallback:n=!0}){(0,w.useEffect)(()=>{e&&n&&("production"!==rr&&rM(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=r.getProps();e&&e(null),r.animationState&&r.animationState.setActive(wJ.InView,!0)}))},[e])}let id=e=>t=>(e(t),null),ih={inView:id(function({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){let o=(0,w.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||r||n);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?ic:iu;s(a,o.current,e,i)}),tap:id(function({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:i}){let o=e||t||r||n,a=(0,w.useRef)(!1),s=(0,w.useRef)(null),l={passive:!(t||e||r||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(wJ.Tap,!1),!n7()}function d(t,n){c()&&(ie(i.current,t.target)?e&&e(t,n):r&&r(t,n))}function f(e,t){c()&&r&&r(e,t)}function h(e,r){u(),!a.current&&(a.current=!0,s.current=ir(n2(window,"pointerup",d,l),n2(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(wJ.Tap,!0),t&&t(e,r))}n4(i,"pointerdown",o?h:void 0,l),r_(u)}),focus:id(function({whileFocus:e,visualElement:t}){let{animationState:r}=t;n$(t,"focus",e?()=>{r&&r.setActive(wJ.Focus,!0)}:void 0),n$(t,"blur",e?()=>{r&&r.setActive(wJ.Focus,!1)}:void 0)}),hover:id(function({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){n4(n,"pointerenter",e||r?n9(n,!0,e):void 0,{passive:!e}),n4(n,"pointerleave",t||r?n9(n,!1,t):void 0,{passive:!t})})};function ip(){let e=(0,w.useContext)(rE);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,w.useId)();return(0,w.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}function im(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;nt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var ig=function(){},iy=function(){};let ib=(e,t,r)=>Math.min(Math.max(r,e),t);function ix(e,t){return e*Math.sqrt(1-t*t)}let iw=["duration","bounce"],iE=["stiffness","damping","mass"];function iS(e,t){return t.some(t=>void 0!==e[t])}function ij(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=iv(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(!iS(e,iE)&&iS(e,iw)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;ig(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ib(.05,1,a),e=ib(.01,10,e/1e3),a<1?(i=t=>{let n=t*a,i=n*e,o=ix(t,a),s=Math.exp(-i);return .001-(n-r)/o*s},o=t=>{let n=t*a,o=n*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ix(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*r+r-s)*l)/u}):(i=t=>{let n=Math.exp(-t*e),i=(t-r)*e+1;return -.001+n*i},o=t=>{let n=Math.exp(-t*e),i=(r-t)*(e*e);return n*i});let s=5/e,l=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=iC,p=iC;function m(){let e=c?-(c/1e3):0,n=r-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(r-t)/100,.4)),o<1){let t=ix(a,o);h=i=>{let s=Math.exp(-o*a*i);return r-s*((e+o*a*n)/t*Math.sin(t*i)+n*Math.cos(t*i))},p=r=>{let i=Math.exp(-o*a*r);return o*a*i*(Math.sin(t*r)*(e+o*a*n)/t+n*Math.cos(t*r))-i*(Math.cos(t*r)*(e+o*a*n)-t*n*Math.sin(t*r))}}else if(1===o)h=t=>r-Math.exp(-a*t)*(n+(e+a*n)*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 r-s*((e+o*a*n)*Math.sinh(l)+t*n*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(o)<=n,l=Math.abs(r-t)<=i;a.done=s&&l}return a.value=a.done?r:t,a},flipTarget:()=>{c=-c,[t,r]=[r,t],m()}}}ij.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iC=e=>0,ik=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},iA=(e,t,r)=>-r*e+r*t+e,iO=(e,t)=>r=>!!(nn(r)&&nr.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),i_=(e,t,r)=>n=>{if(!nn(n))return n;let[i,o,a,s]=n.match(ne);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},iT=r7(0,255),iM=Object.assign(Object.assign({},nd),{transform:e=>Math.round(iT(e))}),iN={test:iO("rgb","red"),parse:i_("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+iM.transform(e)+", "+iM.transform(t)+", "+iM.transform(r)+", "+r9(nf.transform(n))+")"},iR={test:iO("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:iN.transform},iP={test:iO("hsl","hue"),parse:i_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+na.transform(r9(t))+", "+na.transform(r9(r))+", "+r9(nf.transform(n))+")"};function iL(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function iD({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=iL(s,n,e+1/3),o=iL(s,n,e),a=iL(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}let iI=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},iF=[iR,iN,iP],iV=e=>iF.find(t=>t.test(e)),iB=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,iU=(e,t)=>{let r=iV(e),n=iV(t);iy(!!r,iB(e)),iy(!!n,iB(t));let i=r.parse(e),o=n.parse(t);r===iP&&(i=iD(i),r=iN),n===iP&&(o=iD(o),n=iN);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iI(i[t],o[t],e));return a.alpha=iA(i.alpha,o.alpha,e),r.transform(a)}},iz={test:e=>iN.test(e)||iR.test(e)||iP.test(e),parse:e=>iN.test(e)?iN.parse(e):iP.test(e)?iP.parse(e):iR.parse(e),transform:e=>nn(e)?e:e.hasOwnProperty("red")?iN.transform(e):iP.transform(e)},iH="${c}",i$="${n}";function iW(e){"number"==typeof e&&(e=`${e}`);let t=[],r=0,n=e.match(nt);n&&(r=n.length,e=e.replace(nt,iH),t.push(...n.map(iz.parse)));let i=e.match(ne);return i&&(e=e.replace(ne,i$),t.push(...i.map(nd.parse))),{values:t,numColors:r,tokenised:e}}function iq(e){return iW(e).values}function iG(e){let{values:t,numColors:r,tokenised:n}=iW(e),i=t.length;return e=>{let t=n;for(let n=0;n"number"==typeof e?0:e,iY={test:function(e){var t,r,n,i;return isNaN(e)&&nn(e)&&(null!==(r=null===(t=e.match(ne))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(i=null===(n=e.match(nt))||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0},parse:iq,createTransformer:iG,getAnimatableNone:function(e){let t=iq(e),r=iG(e);return r(t.map(iZ))}},iX=e=>"number"==typeof e;function iK(e,t){return iX(e)?r=>iA(e,t,r):iz.test(e)?iU(e,t):i1(e,t)}let iJ=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>iK(e,t[r]));return e=>{for(let t=0;t{let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=iK(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}};function i0(e){let t=iY.parse(e),r=t.length,n=0,i=0,o=0;for(let e=0;e{let r=iY.createTransformer(t),n=i0(e),i=i0(t),o=n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers;return o?ir(iJ(n.parsed,i.parsed),r):(ig(!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.`),r=>`${r>0?t:e}`)},i2=(e,t)=>r=>iA(e,t,r);function i4(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;iy(o===t.length,"Both input and output ranges must be the same length"),iy(!n||!Array.isArray(n)||n.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,r){var n;let i=[],o=r||("number"==typeof(n=e[0])?i2:"string"==typeof n?iz.test(n)?iU:i1:Array.isArray(n)?iJ:"object"==typeof n?iQ:void 0),a=e.length-1;for(let r=0;rr(ik(e,t,n))}(e,a):function(e,t){let r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let t=1;for(;ti)&&t!==n;t++);o=t-1}let s=ik(e[o],e[o+1],i);return t[o](s)}}(e,a);return r?t=>s(ib(e[0],e[o-1],t)):s}let i3=e=>t=>1-e(1-t),i5=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i6=e=>t=>t*t*((e+1)*t-e),i8=4/11,i7=8/11,i9=e=>e,oe=e=>Math.pow(e,2),ot=i3(oe),or=i5(oe),on=e=>1-Math.sin(Math.acos(e)),oi=i3(on),oo=i5(oi),oa=i6(1.525),os=i3(oa),ol=i5(oa),ou=(e=>{let t=i6(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),oc=4356/361,od=35442/1805,of=16061/1805,oh=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==r?r/(t-1):0)}(a)).map(e=>e*i);function l(){return i4(s,a,{ease:Array.isArray(r)?r:a.map(()=>r||or).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 ov={keyframes:om,spring:ij,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=r*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/n);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function og(e,t,r=0){return e-t-r}let oy=e=>{let t=({delta:t})=>e(t);return{start:()=>rf.update(t,!0),stop:()=>rh.update(t)}};function ob(e){let t,r,n;var i,{from:o,autoplay:a=!0,driver:s=oy,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iv(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,S=function(e){if(Array.isArray(e.to))return om;if(ov[e.type])return ov[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 ij;return om}(g);(null===(i=S.needsInterpolation)||void 0===i?void 0:i.call(S,o,y))&&(n=i4([0,100],[o,y],{clamp:!1}),o=0,y=100);let j=S(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=j.next(Math.max(0,l));r=e.value,n&&(r=n(r)),w=E?e.done:l<=0}if(null==v||v(r),w){if(0===b&&(null!=x||(x=l)),b=o+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,r=0,n=!0){return n?og(t+-e,t,r):t-(e-t)+r}(l,x,d,E=b%2==0):(l=og(l,x,d),"mirror"===c&&j.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let ox=e=>1e3*e,ow=(e,t)=>1-3*t+3*e,oE=(e,t)=>3*t-6*e,oS=e=>3*e,oj=(e,t,r)=>((ow(t,r)*e+oE(t,r))*e+oS(t))*e,oC=(e,t,r)=>3*ow(t,r)*e*e+2*oE(t,r)*e+oS(t),ok={linear:i9,easeIn:oe,easeInOut:or,easeOut:ot,circIn:on,circInOut:oo,circOut:oi,backIn:oa,backInOut:ol,backOut:os,anticipate:ou,bounceIn:op,bounceInOut:e=>e<.5?.5*(1-oh(1-2*e)):.5*oh(2*e-1)+.5,bounceOut:oh},oA=e=>{if(Array.isArray(e)){iy(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return function(e,t,r,n){if(e===t&&r===n)return i9;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oj(.1*t,e,r);return o=>0===o||1===o?o:oj(function(t){let n=0,o=1;for(;10!==o&&i[o]<=t;++o)n+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=n+.1*a,l=oC(s,e,r);return l>=.001?function(e,t,r,n){for(let i=0;i<8;++i){let i=oC(t,r,n);if(0===i)break;let o=oj(t,r,n)-e;t-=o/i}return t}(t,s,e,r):0===l?s:function(e,t,r,n,i){let o,a;let s=0;do(o=oj(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,n,n+.1,e,r)}(o),t,n)}(t,r,n,i)}return"string"==typeof e?(iy(void 0!==ok[e],`Invalid easing type '${e}'`),ok[e]):e},oO=e=>Array.isArray(e)&&"number"!=typeof e[0],o_=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iY.test(t)&&!t.startsWith("url(")),oT=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oM=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),oN=()=>({type:"keyframes",ease:"linear",duration:.3}),oR=e=>({type:"keyframes",duration:.8,values:e}),oP={x:oT,y:oT,z:oT,rotate:oT,rotateX:oT,rotateY:oT,rotateZ:oT,scaleX:oM,scaleY:oM,scale:oM,opacity:oN,backgroundColor:oN,color:oN,default:oM},oL=(e,t)=>({to:t,...(nD(t)?oR:oP[e]||oP.default)(t)}),oD=new Set(["brightness","contrast","saturate","opacity"]);function oI(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(ne)||[];if(!n)return e;let i=r.replace(n,""),o=oD.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let oF=/([a-z-]*)\(.*?\)/g,oV=Object.assign(Object.assign({},iY),{getAnimatableNone:e=>{let t=e.match(oF);return t?t.map(oI).join(" "):e}}),oB={...nm,color:iz,backgroundColor:iz,outlineColor:iz,fill:iz,stroke:iz,borderColor:iz,borderTopColor:iz,borderRightColor:iz,borderBottomColor:iz,borderLeftColor:iz,filter:oV,WebkitFilter:oV},oU=e=>oB[e];function oz(e,t){var r;let n=oU(e);return n!==oV&&(n=iY),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}let oH={current:!1};function o$(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(rh.read(n),e(o-t))};return rf.read(n,!0),()=>rh.read(n)}let oW=!1;function oq(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oG(e){return"number"==typeof e?0:oz("",e)}function oZ(e,t){return e[t]||e.default||e}function oY(e,t,r,n={}){return oH.current&&(n={type:!1}),t.start(i=>{let o,a;let s=function(e,t,r,n,i){let o=oZ(n,e)||{},a=void 0!==o.from?o.from:t.get(),s=o_(e,r);"none"===a&&s&&"string"==typeof r?a=oz(e,r):oq(a)&&"string"==typeof r?a=oG(r):!Array.isArray(r)&&oq(r)&&"string"==typeof a&&(r=oG(a));let l=o_(e,a);return ig(l===s,`You are trying to animate ${e} from "${a}" to "${r}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${r} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var n;let s={from:a,to:r,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:r,max:n,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!==r&&en}function v(e){return void 0===r?n:void 0===n?r:Math.abs(r-e){var r;null==d||d(t),null===(r=e.onUpdate)||void 0===r||r.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 n,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===r?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var r;n=a,a=e,t=(r=ry().delta)?(e-n)*(1e3/r):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):ob({...(n=o,Array.isArray(s.to)&&void 0===n.duration&&(n.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:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(n)&&(n={...n,...oL(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:r,flip:n,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=ox(o.duration)),o.repeatDelay&&(a.repeatDelay=ox(o.repeatDelay)),e&&(a.ease=oO(e)?e.map(oA):oA(e)),"tween"===o.type&&(a.type="keyframes"),(r||i||n)&&(ig(!oW,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oW=!0,r?a.repeatType="reverse":i?a.repeatType="loop":n&&(a.repeatType="mirror"),a.repeat=i||r||n||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(n)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=nF(r);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,r,n,i),l=function(e,t){var r,n;let i=oZ(e,t)||{};return null!==(n=null!==(r=i.delay)&&void 0!==r?r:e.delay)&&void 0!==n?n:0}(n,e),u=()=>o=s();return l?a=o$(u,ox(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oX=e=>/^\-?\d*\.?\d+$/.test(e),oK=e=>/^0[^.\s]+$/.test(e);function oJ(e,t){-1===e.indexOf(t)&&e.push(t)}function oQ(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class o0{constructor(){this.subscriptions=[]}add(e){return oJ(this.subscriptions,e),()=>oQ(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i!isNaN(parseFloat(e));class o2{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new o0,this.velocityUpdateSubscribers=new o0,this.renderSubscribers=new o0,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:r,timestamp:n}=ry();this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,rf.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=()=>rf.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=o1(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)?e*(1e3/t):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 o4(e){return new o2(e)}let o3=e=>t=>t.test(e),o5=[nd,ns,na,no,nu,nl,{test:e=>"auto"===e,parse:e=>e}],o6=e=>o5.find(o3(e)),o8=[...o5,iz,iY],o7=e=>o8.find(o3(e));function o9(e,t,r){let n=e.getProps();return nL(n,t,void 0!==r?r:n.custom,function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}function ae(e){return!!(r4(e)&&e.add)}function at(e,t,r={}){var n;let i=o9(e,t,r.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let a=i?()=>ar(e,i,r):()=>Promise.resolve(),s=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?(n=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(an).forEach((e,n)=>{a.push(at(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+n,a,s,r)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(r.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function ar(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");n&&(a=n);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let n=e.getValue(t),i=l[t];if(!n||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(d,t))continue;let o={delay:r,...a};e.shouldReduceMotion&&r1.has(t)&&(o={...o,type:!1,delay:0});let s=oY(t,n,i,o);ae(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let r=o9(e,t),{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};for(let t in o={...o,...n}){let r=nF(o[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,o4(r))}}(e,s)})}function an(e,t){return e.sortNodePosition(t)}let ai=[wJ.Animate,wJ.InView,wJ.Focus,wJ.Hover,wJ.Tap,wJ.Drag,wJ.Exit],ao=[...ai].reverse(),aa=ai.length;function as(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let al={animation:id(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>at(e,t,r));n=Promise.all(i)}else if("string"==typeof t)n=at(e,t,r);else{let i="function"==typeof t?o9(e,t,r.custom):t;n=ar(e,i,r)}return n.then(()=>e.notify("AnimationComplete",t))})(e,t,r))),r={[wJ.Animate]:as(!0),[wJ.InView]:as(),[wJ.Hover]:as(),[wJ.Tap]:as(),[wJ.Drag]:as(),[wJ.Focus]:as(),[wJ.Exit]:as()},n=!0,i=(t,r)=>{let n=o9(e,r);if(n){let{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}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,S=Array.isArray(g)?g:[g],j=S.reduce(i,{});!1===b&&(j={});let{prevResolvedValues:C={}}=v,k={...C,...j},A=e=>{E=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in k){let t=j[e],r=C[e];h.hasOwnProperty(e)||(t!==r?nD(t)&&nD(r)?!im(t,r)||w?A(e):v.protectedKeys[e]=!0:void 0!==t?A(e):f.add(e):void 0!==t&&f.has(e)?A(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=j,v.isActive&&(h={...h,...j}),n&&e.blockInitialAnimation&&(E=!1),E&&!x&&d.push(...S.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(r=>{let n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)}),d.push({animation:t})}let m=!!d.length;return n&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let s=o(i,t);for(let e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e)),rV(t)&&(0,w.useEffect)(()=>t.subscribe(e),[t])}),exit:id(e=>{let{custom:t,visualElement:r}=e,[n,i]=ip(),o=(0,w.useContext)(rE);(0,w.useEffect)(()=>{r.isPresent=n;let e=r.animationState&&r.animationState.setActive(wJ.Exit,!n,{custom:o&&o.custom||t});e&&!n&&e.then(i)},[n])})},au=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),ac=e=>au(e)&&e.hasOwnProperty("z"),ad=(e,t)=>Math.abs(e-t);function af(e,t){if(iX(e)&&iX(t))return ad(e,t);if(au(e)&&au(t)){let r=ad(e.x,t.x),n=ad(e.y,t.y),i=ac(e)&&ac(t)?ad(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}class ah{constructor(e,t,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=av(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=af(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=ry();this.history.push({...n,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=ap(t,this.transformPagePoint),nW(e)&&0===e.buttons){this.handlePointerUp(e,t);return}rf.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n}=this.handlers,i=av(ap(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},nq(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=r;let n=nZ(e),i=ap(n,this.transformPagePoint),{point:o}=i,{timestamp:a}=ry();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,av(i,this.history)),this.removeListeners=ir(n2(window,"pointermove",this.handlePointerMove),n2(window,"pointerup",this.handlePointerUp),n2(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),rh.update(this.updatePoint)}}function ap(e,t){return t?{point:t(e.point)}:e}function am(e,t){return{x:e.x-t.x,y:e.y-t.y}}function av({point:e},t){return{point:e,delta:am(e,ag(t)),offset:am(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=ag(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>ox(.1)));)r--;if(!n)return{x:0,y:0};let o=(i.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function ag(e){return e[e.length-1]}function ay(e){return e.max-e.min}function ab(e,t=0,r=.01){return af(e,t)({translate:0,scale:1,origin:0,originPoint:0}),aT=()=>({x:a_(),y:a_()}),aM=()=>({min:0,max:0}),aN=()=>({x:aM(),y:aM()});function aR(e){return[e("x"),e("y")]}function aP({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function aL(e){return void 0===e||1===e}function aD({scale:e,scaleX:t,scaleY:r}){return!aL(e)||!aL(t)||!aL(r)}function aI(e){return aD(e)||aF(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aF(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function aV(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function aB(e,t=0,r=1,n,i){e.min=aV(e.min,t,r,n,i),e.max=aV(e.max,t,r,n,i)}function aU(e,{x:t,y:r}){aB(e.x,t.translate,t.scale,t.originPoint),aB(e.y,r.translate,r.scale,r.originPoint)}function az(e,t){e.min=e.min+t,e.max=e.max+t}function aH(e,t,[r,n,i]){let o=void 0!==t[i]?t[i]:.5,a=iA(e.min,e.max,o);aB(e,t[r],t[n],a,t.scale)}let a$=["x","scaleX","originX"],aW=["y","scaleY","originY"];function aq(e,t){aH(e.x,t,a$),aH(e.y,t,aW)}function aG(e,t){return aP(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let aZ=new WeakMap;class aY{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=aN(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new ah(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(nZ(e,"page").point)},onStart:(e,t)=>{var r;let{drag:n,dragPropagation:i,onDragStart:o}=this.getProps();(!n||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=n8(n),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),aR(e=>{var t,r;let n=this.getAxisMotionValue(e).get()||0;if(na.test(n)){let i=null===(r=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];if(i){let e=ay(i);n=e*(parseFloat(n)/100)}}this.originPoint[e]=n}),null==o||o(e,t),null===(r=this.visualElement.animationState)||void 0===r||r.setActive(wJ.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(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 r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);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:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(wJ.Drag,!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!aX(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&er&&(e=n?iA(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:r}=this.visualElement.projection||{},n=this.constraints;e&&rI(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:aC(e.x,r,i),y:aC(e.y,t,n)}}(r.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:aA(e,"left","right"),y:aA(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&aR(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!rI(t))return!1;let n=t.current;iy(null!==n,"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,r){let n=aG(e,r),{scroll:i}=t;return i&&(az(n.x,i.x),az(n.y,i.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a={x:ak((e=i.layout.actual).x,o.x),y:ak(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=aP(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=aR(a=>{var l;if(!aX(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:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return oY(e,r,0,t)}stopAnimation(){aR(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,r;let n="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)}snapToCursor(e){aR(t=>{let{drag:r}=this.getProps();if(!aX(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.actual[t];i.set(e[t]-iA(r,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!rI(r)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};aR(e=>{let t=this.getAxisMotionValue(e);if(t){let r=t.get();i[e]=function(e,t){let r=.5,n=ay(e),i=ay(t);return i>n?r=ik(t.min,t.max-n,e.min):n>i&&(r=ik(e.min,e.max-i,t.min)),ib(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=n.root)||void 0===e||e.updateScroll(),n.updateLayout(),this.resolveConstraints(),aR(e=>{if(!aX(e,t,null))return;let r=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];r.set(iA(n,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aZ.set(this.visualElement,this);let t=this.visualElement.current,r=n2(t,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();rI(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),n();let a=nH(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(aR(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),r(),o(),null==s||s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function aX(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let aK={pan:id(function({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:i}){let o=e||t||r||n,a=(0,w.useRef)(null),{transformPagePoint:s}=(0,w.useContext)(rP),l={onSessionStart:n,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,r&&r(e,t)}};(0,w.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),n4(i,"pointerdown",o&&function(e){a.current=new ah(e,l,{transformPagePoint:s})}),r_(()=>a.current&&a.current.end())}),drag:id(function(e){let{dragControls:t,visualElement:r}=e,n=rS(()=>new aY(r));(0,w.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,w.useEffect)(()=>n.addListeners(),[n])})};function aJ(e){return"string"==typeof e&&e.startsWith("var(--")}let aQ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function a0(e,t,r=1){iy(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=function(e){let t=aQ.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():aJ(i)?a0(i,t,r+1):i}let a1=new Set(["width","height","top","left","right","bottom","x","y"]),a2=e=>a1.has(e),a4=e=>Object.keys(e).some(a2),a3=(e,t)=>{e.set(t,!1),e.set(t)},a5=e=>e===nd||e===ns;(wH=wQ||(wQ={})).width="width",wH.height="height",wH.left="left",wH.right="right",wH.top="top",wH.bottom="bottom";let a6=(e,t)=>parseFloat(e.split(", ")[t]),a8=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return a6(i[1],t);{let t=n.match(/^matrix\((.+)\)$/);return t?a6(t[1],e):0}},a7=new Set(["x","y","z"]),a9=r0.filter(e=>!a7.has(e)),se={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:a8(4,13),y:a8(5,14)},st=(e,t,r)=>{let n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach(e=>{s[e]=se[e](n,o)}),t.render();let l=t.measureViewportBox();return r.forEach(r=>{let n=t.getValue(r);a3(n,s[r]),e[r]=se[r](l,o)}),e},sr=(e,t,r={},n={})=>{t={...t},n={...n};let i=Object.keys(t).filter(a2),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=r[i],d=o6(c),f=t[i];if(nD(f)){let e=f.length,t=null===f[0]?1:0;d=o6(c=f[t]);for(let r=t;r{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],a3(u,f))}}),!s.length)return{target:t,transitionEnd:n};{let r=s.indexOf("height")>=0?window.pageYOffset:null,i=st(t,e,s);return o.length&&o.forEach(([t,r])=>{e.getValue(t).set(r)}),e.render(),rb&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}},sn=(e,t,r,n)=>{var i,o;let a=function(e,{...t},r){let n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};for(let i in r&&(r={...r}),e.values.forEach(e=>{let t=e.get();if(!aJ(t))return;let r=a0(t,n);r&&e.set(r)}),t){let e=t[i];if(!aJ(e))continue;let o=a0(e,n);o&&(t[i]=o,r&&void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return t=a.target,n=a.transitionEnd,i=t,o=n,a4(i)?sr(e,i,r,o):{target:i,transitionEnd:o}},si={current:null},so={current:!1},sa=Object.keys(rW),ss=sa.length,sl=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class su{constructor({parent:e,props:t,reducedMotionConfig:r,visualState:n},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=()=>rf.render(this.render,!1,!0);let{latestValues:o,renderState:a}=n;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=r,this.options=i,this.isControllingVariants=rU(t),this.isVariantNode=rz(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]&&r4(t)&&(t.set(o[e],!1),ae(s)&&s.add(e))}if(t.values)for(let e in t.values){let r=t.values[e];void 0!==o[e]&&r4(r)&&r.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)),so.current||function(){if(so.current=!0,rb){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>si.current=e.matches;e.addListener(t),t()}else si.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||si.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,r;for(let n in null===(e=this.projection)||void 0===e||e.unmount(),rh.update(this.notifyUpdate),rh.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(r=this.parent)||void 0===r||r.children.delete(this),this.events)this.events[n].clear();this.current=null}bindToMotionValue(e,t){let r=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&rf.update(this.notifyUpdate,!1,!0)}),n=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,r,n,i,o){let a=[];"production"!==rr&&r&&t&&iy(!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 r?r:"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):aN()}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;tr.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 r=this.values.get(e);return void 0===r&&void 0!==t&&(r=o4(t),this.addValue(e,r)),r}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:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=nL(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||r4(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new o0),this.events[e].add(t)}notify(e,...t){var r;null===(r=this.events[e])||void 0===r||r.notify(...t)}}let sc=["initial",...ai],sd=sc.length;class sf extends su{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},i){let o=function(e,t,r){var n;let i={};for(let o in e){let e=function(e,t){if(!t)return;let r=t[e]||t.default||t;return r.from}(o,t);i[o]=void 0!==e?e:null===(n=r.getValue(o))||void 0===n?void 0:n.get()}return i}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),o&&(o=n(o))),i){!function(e,t,r){var n,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;srJ(e)?new sp(t,{enableHardwareAcceleration:!1}):new sh(t,{enableHardwareAcceleration:!0});function sv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sg={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ns.test(e))return e;e=parseFloat(e)}let r=sv(e,t.target.x),n=sv(e,t.target.y);return`${r}% ${n}%`}},sy="_$css",sb={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=e.includes("var("),o=[];i&&(e=e.replace(aQ,e=>(o.push(e),sy)));let a=iY.parse(e);if(a.length>5)return n;let s=iY.createTransformer(e),l="number"!=typeof a[0]?1:0,u=r.x.scale*t.x,c=r.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=iA(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(sy,()=>{let t=o[e];return e++,t})}return f}};class sx extends w.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(rQ,sw),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rq.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||rf.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:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(n),(null==r?void 0:r.deregister)&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sw={borderRadius:{...sg,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sg,borderTopRightRadius:sg,borderBottomLeftRadius:sg,borderBottomRightRadius:sg,boxShadow:sb},sE=["TopLeft","TopRight","BottomLeft","BottomRight"],sS=sE.length,sj=e=>"string"==typeof e?parseFloat(e):e,sC=e=>"number"==typeof e||ns.test(e);function sk(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}let sA=s_(0,.5,oi),sO=s_(.5,.95,i9);function s_(e,t,r){return n=>nt?1:r(ik(e,t,n))}function sT(e,t){e.min=t.min,e.max=t.max}function sM(e,t){sT(e.x,t.x),sT(e.y,t.y)}function sN(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function sR(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(na.test(t)){t=parseFloat(t);let e=iA(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=iA(o.min,o.max,n);e===o&&(s-=t),e.min=sN(e.min,t,r,s,i),e.max=sN(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}let sP=["x","scaleX","originX"],sL=["y","scaleY","originY"];function sD(e,t,r,n){sR(e.x,t,sP,null==r?void 0:r.x,null==n?void 0:n.x),sR(e.y,t,sL,null==r?void 0:r.y,null==n?void 0:n.y)}function sI(e){return 0===e.translate&&1===e.scale}function sF(e){return sI(e.x)&&sI(e.y)}function sV(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 sB(e){return ay(e.x)/ay(e.y)}class sU{constructor(){this.members=[]}add(e){oJ(this.members,e),e.scheduleRender()}remove(e){if(oQ(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 r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var r;let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,r,n,i,o;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(o=null===(n=e.resumingFrom)||void 0===n?void 0:(i=n.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 sz(e,t,r){let n=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${n}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,r){let{rotate:e,rotateX:t,rotateY:n}=r;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),n&&(o+=`rotateY(${n}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 sH=(e,t)=>e.depth-t.depth;class s${constructor(){this.children=[],this.isDirty=!1}add(e){oJ(this.children,e),this.isDirty=!0}remove(e){oQ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sH),this.isDirty=!1,this.children.forEach(e)}}let sW=["","X","Y","Z"];function sq({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e,r={},n=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(sQ),this.nodes.forEach(s0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=r,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=o$(n,250),rq.hasAnimatedSinceResize&&(rq.hasAnimatedSinceResize=!1,this.nodes.forEach(sJ))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{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:s6,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sV(this.targetLayout,n)||r,p=!t&&r;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={...oZ(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sJ(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=n})}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,rh.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(s1))}willUpdate(e=!0){var t,r,n;if(this.root.isUpdateBlocked()){null===(r=(t=this.options).onExitComplete)||void 0===r||r.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));s9(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===(r=this.getStack())||void 0===r?void 0:r.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(s5));this.animationProgress=0,this.mixTargetDelta=t=>{var r,n,d;let f=t/1e3;s4(a.x,e.x,f),s4(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(r=this.relativeParent)||void 0===r?void 0:r.layout)&&(aj(s,this.layout.actual,this.relativeParent.layout.actual),n=this.relativeTarget,d=this.relativeTargetOrigin,s3(n.x,d.x,s.x,f),s3(n.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,r,n,i,o){var a,s,l,u;i?(e.opacity=iA(0,null!==(a=r.opacity)&&void 0!==a?a:1,sA(n)),e.opacityExit=iA(null!==(s=t.opacity)&&void 0!==s?s:1,0,sO(n))):o&&(e.opacity=iA(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=r.opacity)&&void 0!==u?u:1,n));for(let i=0;i{rq.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r={}){let n=r4(e)?e:o4(e);return oY("",n,1e3,r),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}(0,0,{...e,onUpdate:t=>{var r;this.mixTargetDelta(t),null===(r=e.onUpdate)||void 0===r||r.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:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&le(this.options.animationType,this.layout.actual,n.actual)){r=this.target||aN();let t=ay(this.layout.actual.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=ay(this.layout.actual.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}sM(t,r),aq(t,i),aw(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var r,n,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new sU);let o=this.sharedNodes.get(e);o.add(t),t.promote({transition:null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.transition,preserveFollowOpacity:null===(i=null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(n,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:r}={}){let n=this.getStack();n&&n.promote(this,r),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,r={};for(let n=0;n{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(sX),this.root.sharedNodes.clear()}}}function sG(e){e.updateLayout()}function sZ(e){var t,r,n;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:r}=e.layout,{animationType:n}=e.options;"size"===n?aR(e=>{let r=i.isShared?i.measured[e]:i.layout[e],n=ay(r);r.min=t[e].min,r.max=r.min+n}):le(n,i.layout,t)&&aR(e=>{let r=i.isShared?i.measured[e]:i.layout[e],n=ay(t[e]);r.max=r.min+n});let o=aT();aw(o,t,i.layout);let a=aT();i.isShared?aw(a,e.applyTransform(r,!0),i.measured):aw(a,t,i.layout);let s=!sF(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:e,layout:n}=r;if(e&&n){let r=aN();aj(r,i.layout,e.layout);let o=aN();aj(o,t,n.actual),sV(r,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(n=(r=e.options).onExitComplete)||void 0===n||n.call(r));e.options.transition=void 0}function sY(e){e.clearSnapshot()}function sX(e){e.clearMeasurements()}function sK(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sJ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function sQ(e){e.resolveTargetDelta()}function s0(e){e.calcProjection()}function s1(e){e.resetRotation()}function s2(e){e.removeLeadSnapshot()}function s4(e,t,r){e.translate=iA(t.translate,0,r),e.scale=iA(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function s3(e,t,r,n){e.min=iA(t.min,r.min,n),e.max=iA(t.max,r.max,n)}function s5(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let s6={duration:.45,ease:[.4,0,.1,1]};function s8(e,t){let r=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){r=e.path[t];break}let n=r&&r!==e.root?r.instance:document,i=n.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s7(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function s9(e){s7(e.x),s7(e.y)}function le(e,t,r){return"position"===e||"preserve-aspect"===e&&!function(e,t,r=.1){return af(e,t)<=r}(sB(t),sB(r),.2)}let lt=sq({attachResizeListener:(e,t)=>nH(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lr={current:void 0},ln=sq({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lr.current){let e=new lt(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),lr.current=e}return lr.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),li={...al,...ih,...aK,measureLayout:function(e){let[t,r]=ip(),n=(0,w.useContext)(rO);return w.createElement(sx,{...e,layoutGroup:n,switchLayoutGroup:(0,w.useContext)(rY),isPresent:t,safeToRemove:r})}},lo=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?rW.projectionNodeConstructor=e[t]:rW[t].Component=e[t]}(e);let a=(0,w.forwardRef)(function(a,s){var l;let u={...(0,w.useContext)(rP),...a,layoutId:function({layoutId:e}){let t=(0,w.useContext)(rO).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:r}=function(e,t){if(rU(e)){let{initial:t,animate:r}=e;return{initial:!1===t||rF(t)?t:void 0,animate:rF(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,w.useContext)(rL));return(0,w.useMemo)(()=>({initial:t,animate:r}),[rH(t),rH(r)])}(a),h=c?void 0:rS(()=>{if(rq.hasEverUpdated)return rG++}),p=i(a,c);if(!c&&rb){f.visualElement=function(e,t,r,n){let i=(0,w.useContext)(rL).visualElement,o=(0,w.useContext)(rD),a=(0,w.useContext)(rE),s=(0,w.useContext)(rP).reducedMotion,l=(0,w.useRef)();n=n||o.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:i,props:r,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return rx(()=>{u&&u.render()}),(0,w.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),rx(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let n=(0,w.useContext)(rD).strict,i=(0,w.useContext)(rY);f.visualElement&&(d=f.visualElement.loadFeatures(u,n,e,h,r||rW.projectionNodeConstructor,i))}return w.createElement(rZ,{visualElement:f.visualElement,props:u},d,w.createElement(rL.Provider,{value:f},n(o,a,h,(l=f.visualElement,(0,w.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):rI(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[rX]=o,a}(e(t,r))}if("undefined"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},r,n,i){let o=rJ(e)?nU:nz;return{...o,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,i,{latestValues:o},a)=>{let s=rJ(t)?nO:nb,l=s(r,o,a),u=function(e,t,r){let n={};for(let i in e)(nE(i)||!0===r&&nw(i)||!t&&!nw(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),c={...u,...l,ref:i};return n&&(c["data-projection-id"]=n),(0,w.createElement)(t,c)}}(t),createVisualElement:n,projectionNodeConstructor:i,Component:e}})(e,t,li,sm,ln));function la(e){let{open:t,onOpenChange:r}=e,[n,i]=(0,w.useState)(!1),o=(0,w.useMemo)(()=>r?t:n,[r,n,t]),a=(0,w.useCallback)(e=>{r?r(e):i(e)},[r]);return{open:o,onOpenChange:a}}var ls=r(35957),ll=r.n(ls),lu=r(276),lc=r.n(lu);let ld=(0,ey.cx)(ll().variable,lc().variable),lf={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 lh(e){let{children:t,content:r,defaultOpen:n,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=la({open:i,onOpenChange:o});return(0,x.jsxs)(t3,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:n,onOpenChange:c,children:[(0,x.jsx)(tZ,{asChild:!0,children:t}),(0,x.jsx)(rR,{children:r&&u?(0,x.jsx)(t5,{forceMount:!0,children:(0,x.jsx)(tQ,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,x.jsx)(lo.div,{variants:lf,initial:"init",animate:"show",exit:"exit",className:(0,ey.cx)(ld,"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,x.jsx)("div",{className:(0,ey.cx)("py-1 px-2","max-w-xs","overflow-hidden",t9()),children:(0,x.jsx)(t7,{size:"12",children:r})})})})}):null})]})}let lp=(0,ey.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=w.forwardRef((e,t)=>{let{variant:r,size:n,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,x.jsx)(lh,{content:u,align:c,side:d,children:(0,x.jsx)("button",{ref:t,type:h,disabled:a,className:lp({variant:r,size:n,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,x.jsx)("button",{ref:t,disabled:a,type:h,className:lp({variant:r,size:n,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lv=r(20876);(0,ey.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let lg=(0,ey.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),ly=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{...n,className:lg({className:r}),ref:t})}),lb="Avatar",[lx,lw]=C(lb),[lE,lS]=lx(lb),lj=(0,w.forwardRef)((e,t)=>{let{__scopeAvatar:r,...n}=e,[i,o]=(0,w.useState)("idle");return(0,w.createElement)(lE,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,w.createElement)(I.span,S({},n,{ref:t})))}),lC=(0,w.forwardRef)((e,t)=>{let{__scopeAvatar:r,src:n,onLoadingStatusChange:i=()=>{},...o}=e,a=lS("AvatarImage",r),s=function(e){let[t,r]=(0,w.useState)("idle");return(0,w.useEffect)(()=>{if(!e){r("error");return}let t=!0,n=new window.Image,i=e=>()=>{t&&r(e)};return r("loading"),n.onload=i("loaded"),n.onerror=i("error"),n.src=e,()=>{t=!1}},[e]),t}(n),l=P(e=>{i(e),a.onImageLoadingStatusChange(e)});return V(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,w.createElement)(I.img,S({},o,{ref:t,src:n})):null}),lk=(0,w.forwardRef)((e,t)=>{let{__scopeAvatar:r,delayMs:n,...i}=e,o=lS("AvatarFallback",r),[a,s]=(0,w.useState)(void 0===n);return(0,w.useEffect)(()=>{if(void 0!==n){let e=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(e)}},[n]),a&&"loaded"!==o.imageLoadingStatus?(0,w.createElement)(I.span,S({},i,{ref:t})):null}),lA=(0,ey.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"}}),lO=(0,ey.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),l_=w.forwardRef((e,t)=>{let{alt:r,src:n,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,x.jsx)("div",{className:(0,ey.cx)("relative h-fit w-fit",c),children:(0,x.jsxs)(lj,{...d,ref:t,className:lA({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,x.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,x.jsx)(lC,{alt:r,src:n,className:"flex object-cover h-full align-middle w-full"}),(0,x.jsx)(lk,{className:lO({size:o}),children:i})]})})}),lT=(0,ey.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{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"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}}),lM=w.forwardRef((e,t)=>{let{variant:r,interactive:n,rounded:i,className:o,...a}=e;return(0,x.jsx)("div",{...a,className:lT({variant:r,interactive:n,rounded:i,className:o}),ref:t})}),lN=(0,ey.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"}}),lR=w.forwardRef((e,t)=>{let{color:r,className:n,...i}=e;return(0,x.jsx)("code",{...i,className:lN({color:r,className:n}),ref:t})}),lP=(0,ey.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"]),lL=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{ref:t,className:lP({className:r}),...n})});(0,ey.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 lD=(0,ey.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"}}),lI=w.forwardRef((e,t)=>{let{className:r,pad:n,size:i,...o}=e;return(0,x.jsx)("div",{ref:t,...o,className:lD({size:i,pad:n,className:r})})}),lF="focusScope.autoFocusOnMount",lV="focusScope.autoFocusOnUnmount",lB={bubbles:!1,cancelable:!0},lU=(0,w.forwardRef)((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=(0,w.useState)(null),u=P(i),c=P(o),d=(0,w.useRef)(null),f=A(t,e=>l(e)),h=(0,w.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,w.useEffect)(()=>{if(n){function e(e){if(h.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:l$(d.current,{select:!0})}function t(e){h.paused||!s||s.contains(e.relatedTarget)||l$(d.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[n,s,h.paused]),(0,w.useEffect)(()=>{if(s){lW.add(h);let e=document.activeElement,t=s.contains(e);if(!t){let t=new CustomEvent(lF,lB);s.addEventListener(lF,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(l$(n,{select:t}),document.activeElement!==r)return}(lz(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&l$(s))}return()=>{s.removeEventListener(lF,u),setTimeout(()=>{let t=new CustomEvent(lV,lB);s.addEventListener(lV,c),s.dispatchEvent(t),t.defaultPrevented||l$(null!=e?e:document.body,{select:!0}),s.removeEventListener(lV,c),lW.remove(h)},0)}}},[s,u,c,h]);let p=(0,w.useCallback)(e=>{if(!r&&!n||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[n,o]=function(e){let t=lz(e),r=lH(t,e),n=lH(t.reverse(),e);return[r,n]}(t),a=n&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===n&&(e.preventDefault(),r&&l$(o,{select:!0})):(e.preventDefault(),r&&l$(n,{select:!0})):i===t&&e.preventDefault()}},[r,n,h.paused]);return(0,w.createElement)(I.div,S({tabIndex:-1},a,{ref:f,onKeyDown:p}))});function lz(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function lH(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function l$(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}let lW=(s=[],{add(e){let t=s[0];e!==t&&(null==t||t.pause()),(s=lq(s,e)).unshift(e)},remove(e){var t;null===(t=(s=lq(s,e))[0])||void 0===t||t.resume()}});function lq(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}let lG=0;function lZ(){(0,w.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:lY()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:lY()),lG++,()=>{1===lG&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),lG--}},[])}function lY(){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}var lX=function(){return(lX=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}"function"==typeof SuppressedError&&SuppressedError;var lJ="right-scroll-bar-position",lQ="width-before-scroll-bar",l0=(void 0===w$&&(w$={}),(void 0===wW&&(wW=function(e){return e}),wq=[],wG=!1,wZ={read:function(){if(wG)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return wq.length?wq[wq.length-1]:null},useMedium:function(e){var t=wW(e,wG);return wq.push(t),function(){wq=wq.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(wG=!0;wq.length;){var t=wq;wq=[],t.forEach(e)}wq={push:function(t){return e(t)},filter:function(){return wq}}},assignMedium:function(e){wG=!0;var t=[];if(wq.length){var r=wq;wq=[],r.forEach(e),t=wq}var n=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(n)};i(),wq={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),wq}}}}).options=lX({async:!0,ssr:!1},w$),wZ),l1=function(){},l2=w.forwardRef(function(e,t){var r,n,i,o=w.useRef(null),a=w.useState({onScrollCapture:l1,onWheelCapture:l1,onTouchMoveCapture:l1}),s=a[0],l=a[1],u=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,h=e.enabled,p=e.shards,m=e.sideCar,v=e.noIsolation,g=e.inert,y=e.allowPinchZoom,b=e.as,x=void 0===b?"div":b,E=lK(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=(r=[o,t],n=function(e){return r.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,w.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,i.facade),j=lX(lX({},E),s);return w.createElement(w.Fragment,null,h&&w.createElement(m,{sideCar:l0,removeScrollBar:f,shards:p,noIsolation:v,inert:g,setCallbacks:l,allowPinchZoom:!!y,lockRef:o}),u?w.cloneElement(w.Children.only(c),lX(lX({},j),{ref:S})):w.createElement(x,lX({},j,{className:d,ref:S}),c))});l2.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},l2.classNames={fullWidth:lQ,zeroRight:lJ};var l4=function(e){var t=e.sideCar,r=lK(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return w.createElement(n,lX({},r))};l4.isSideCarExport=!0;var l3=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=w0||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},l5=function(){var e=l3();return function(t,r){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},l6=function(){var e=l5();return function(t){return e(t.styles,t.dynamic),null}},l8={left:0,top:0,right:0,gap:0},l7=function(e){return parseInt(e||"",10)||0},l9=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[l7(r),l7(n),l7(i)]},ue=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return l8;var t=l9(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},ut=l6(),ur=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(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(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(lJ," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(lQ," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(lJ," .").concat(lJ," {\n right: 0 ").concat(n,";\n }\n \n .").concat(lQ," .").concat(lQ," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},un=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n,o=w.useMemo(function(){return ue(i)},[i]);return w.createElement(ut,{styles:ur(o,!t,i,r?"":"!important")})},ui=!1;if("undefined"!=typeof window)try{var uo=Object.defineProperty({},"passive",{get:function(){return ui=!0,!0}});window.addEventListener("test",uo,uo),window.removeEventListener("test",uo,uo)}catch(e){ui=!1}var ua=!!ui&&{passive:!1},us=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},ul=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},uu=function(e,t){var r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),uc(e,r)){var n=ud(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body);return!1},uc=function(e,t){return"v"===e?us(t):ul(t)},ud=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},uf=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=ud(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&uc(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},uh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},up=function(e){return[e.deltaX,e.deltaY]},um=function(e){return e&&"current"in e?e.current:e},uv=0,ug=[],uy=(l0.useMedium(function(e){var t=w.useRef([]),r=w.useRef([0,0]),n=w.useRef(),i=w.useState(uv++)[0],o=w.useState(function(){return l6()})[0],a=w.useRef(e);w.useEffect(function(){a.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;iMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=uu(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=uu(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var h=n.current||i;return uf(h,t,e,"h"===h?l:u,!0)},[]),l=w.useCallback(function(e){if(ug.length&&ug[ug.length-1]===o){var r="deltaY"in e?up(e):uh(e),n=t.current.filter(function(t){var n;return t.name===e.type&&t.target===e.target&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.preventDefault();return}if(!n){var i=(a.current.shards||[]).map(um).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),u=w.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=w.useCallback(function(e){r.current=uh(e),n.current=void 0},[]),d=w.useCallback(function(t){u(t.type,up(t),t.target,s(t,e.lockRef.current))},[]),f=w.useCallback(function(t){u(t.type,uh(t),t.target,s(t,e.lockRef.current))},[]);w.useEffect(function(){return ug.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ua),document.addEventListener("touchmove",l,ua),document.addEventListener("touchstart",c,ua),function(){ug=ug.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,ua),document.removeEventListener("touchmove",l,ua),document.removeEventListener("touchstart",c,ua)}},[]);var h=e.removeScrollBar,p=e.inert;return w.createElement(w.Fragment,null,p?w.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?w.createElement(un,{gapMode:"margin"}):null)}),l4),ub=w.forwardRef(function(e,t){return w.createElement(l2,lX({},e,{ref:t,sideCar:uy}))});ub.classNames=l2.classNames;var ux=new WeakMap,uw=new WeakMap,uE={},uS=0,uj=function(e,t,r){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===r&&(r="data-aria-hidden");var n=Array.isArray(e)?e:[e];uE[r]||(uE[r]=new WeakMap);var i=uE[r],o=[],a=new Set,s=function(e){!e||a.has(e)||(a.add(e),s(e.parentNode))};n.forEach(s);var l=function(e){!e||n.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))l(e);else{var t=e.getAttribute("aria-hidden"),n=null!==t&&"false"!==t,s=(ux.get(e)||0)+1,u=(i.get(e)||0)+1;ux.set(e,s),i.set(e,u),o.push(e),1===s&&n&&uw.set(e,!0),1===u&&e.setAttribute(r,"true"),n||e.setAttribute("aria-hidden","true")}})};return l(t),a.clear(),uS++,function(){o.forEach(function(e){var t=ux.get(e)-1,n=i.get(e)-1;ux.set(e,t),i.set(e,n),t||(uw.has(e)||e.removeAttribute("aria-hidden"),uw.delete(e)),n||e.removeAttribute(r)}),--uS||(ux=new WeakMap,ux=new WeakMap,uw=new WeakMap,uE={})}};let uC="Dialog",[uk,uA]=C(uC),[uO,u_]=uk(uC),uT=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=u_("DialogTrigger",r),o=A(t,i.triggerRef);return(0,w.createElement)(I.button,S({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":uq(i.open)},n,{ref:o,onClick:R(e.onClick,i.onOpenToggle)}))}),uM="DialogPortal",[uN,uR]=uk(uM,{forceMount:void 0}),uP="DialogOverlay",uL=(0,w.forwardRef)((e,t)=>{let r=uR(uP,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=u_(uP,e.__scopeDialog);return o.modal?(0,w.createElement)(B,{present:n||o.open},(0,w.createElement)(uD,S({},i,{ref:t}))):null}),uD=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=u_(uP,r);return(0,w.createElement)(ub,{as:O,allowPinchZoom:!0,shards:[i.contentRef]},(0,w.createElement)(I.div,S({"data-state":uq(i.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),uI="DialogContent",uF=(0,w.forwardRef)((e,t)=>{let r=uR(uI,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=u_(uI,e.__scopeDialog);return(0,w.createElement)(B,{present:n||o.open},o.modal?(0,w.createElement)(uV,S({},i,{ref:t})):(0,w.createElement)(uB,S({},i,{ref:t})))}),uV=(0,w.forwardRef)((e,t)=>{let r=u_(uI,e.__scopeDialog),n=(0,w.useRef)(null),i=A(t,r.contentRef,n);return(0,w.useEffect)(()=>{let e=n.current;if(e)return uj(e)},[]),(0,w.createElement)(uU,S({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;n&&e.preventDefault()}),onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault())}))}),uB=(0,w.forwardRef)((e,t)=>{let r=u_(uI,e.__scopeDialog),n=(0,w.useRef)(!1);return(0,w.createElement)(uU,S({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current||null===(o=r.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),n.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current=!0);let a=t.target,s=null===(o=r.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),uU=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,s=u_(uI,r),l=(0,w.useRef)(null),u=A(t,l);return lZ(),(0,w.createElement)(w.Fragment,null,(0,w.createElement)(lU,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,w.createElement)(ew,S({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":uq(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),uz="DialogTitle",uH=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=u_(uz,r);return(0,w.createElement)(I.h2,S({id:i.titleId},n,{ref:t}))}),u$=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=u_("DialogDescription",r);return(0,w.createElement)(I.p,S({id:i.descriptionId},n,{ref:t}))}),uW=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=u_("DialogClose",r);return(0,w.createElement)(I.button,S({type:"button"},n,{ref:t,onClick:R(e.onClick,()=>i.onOpenChange(!1))}))});function uq(e){return e?"open":"closed"}let[uG,uZ]=j("DialogTitleWarning",{contentName:uI,titleName:uz,docsSlug:"dialog"}),uY=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,s=(0,w.useRef)(null),l=(0,w.useRef)(null),[u=!1,c]=L({prop:n,defaultProp:i,onChange:o});return(0,w.createElement)(uO,{scope:t,triggerRef:s,contentRef:l,contentId:$(),titleId:$(),descriptionId:$(),open:u,onOpenChange:c,onOpenToggle:(0,w.useCallback)(()=>c(e=>!e),[c]),modal:a},r)},uX=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=u_(uM,t);return(0,w.createElement)(uN,{scope:t,forceMount:r},w.Children.map(n,e=>(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(tD,{asChild:!0,container:i},e))))},uK=(0,w.createContext)(void 0);function uJ(e){let t=(0,w.useContext)(uK);return e||t||"ltr"}let uQ="ScrollArea",[u0,u1]=C(uQ),[u2,u4]=u0(uQ),u3=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,w.useState)(null),[u,c]=(0,w.useState)(null),[d,f]=(0,w.useState)(null),[h,p]=(0,w.useState)(null),[m,v]=(0,w.useState)(null),[g,y]=(0,w.useState)(0),[b,x]=(0,w.useState)(0),[E,j]=(0,w.useState)(!1),[C,k]=(0,w.useState)(!1),O=A(t,e=>l(e)),_=uJ(i);return(0,w.createElement)(u2,{scope:r,type:n,dir:_,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:E,onScrollbarXEnabledChange:j,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:C,onScrollbarYEnabledChange:k,onCornerWidthChange:y,onCornerHeightChange:x},(0,w.createElement)(I.div,S({dir:_},a,{ref:O,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),u5=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,children:n,...i}=e,o=u4("ScrollAreaViewport",r),a=(0,w.useRef)(null),s=A(t,a,o.onViewportChange);return(0,w.createElement)(w.Fragment,null,(0,w.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,w.createElement)(I.div,S({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,w.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),u6="ScrollAreaScrollbar",u8=(0,w.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,i=u4(u6,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,w.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,w.createElement)(u7,S({},n,{ref:t,forceMount:r})):"scroll"===i.type?(0,w.createElement)(u9,S({},n,{ref:t,forceMount:r})):"auto"===i.type?(0,w.createElement)(ce,S({},n,{ref:t,forceMount:r})):"always"===i.type?(0,w.createElement)(ct,S({},n,{ref:t})):null}),u7=(0,w.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,i=u4(u6,e.__scopeScrollArea),[o,a]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),a(!0)},n=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,w.createElement)(B,{present:r||o},(0,w.createElement)(ce,S({"data-state":o?"visible":"hidden"},n,{ref:t})))}),u9=(0,w.forwardRef)((e,t)=>{var r;let{forceMount:n,...i}=e,o=u4(u6,e.__scopeScrollArea),a="horizontal"===e.orientation,s=cb(()=>u("SCROLL_END"),100),[l,u]=(r={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,w.useReducer)((e,t)=>{let n=r[e][t];return null!=n?n:e},"hidden"));return(0,w.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,w.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t],i=r!==n;i&&(u("SCROLL"),s()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[o.viewport,a,u,s]),(0,w.createElement)(B,{present:n||"hidden"!==l},(0,w.createElement)(ct,S({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:R(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:R(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),ce=(0,w.forwardRef)((e,t)=>{let r=u4(u6,e.__scopeScrollArea),{forceMount:n,...i}=e,[o,a]=(0,w.useState)(!1),s="horizontal"===e.orientation,l=cb(()=>{if(r.viewport){let e=r.viewport.offsetWidth{let{orientation:r="vertical",...n}=e,i=u4(u6,e.__scopeScrollArea),o=(0,w.useRef)(null),a=(0,w.useRef)(0),[s,l]=(0,w.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=cp(s.viewport,s.content),c={...n,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,r,n="ltr"){let i=cm(r),o=t||i/2,a=r.scrollbar.paddingStart+o,s=r.scrollbar.size-r.scrollbar.paddingEnd-(i-o),l=r.content-r.viewport,u=cg([a,s],"ltr"===n?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===r?(0,w.createElement)(cr,S({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=cv(e,s,i.dir);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===r?(0,w.createElement)(cn,S({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=cv(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),cr=(0,w.forwardRef)((e,t)=>{let{sizes:r,onSizesChange:n,...i}=e,o=u4(u6,e.__scopeScrollArea),[a,s]=(0,w.useState)(),l=(0,w.useRef)(null),u=A(t,l,o.onScrollbarXChange);return(0,w.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,w.createElement)(ca,S({"data-orientation":"horizontal"},i,{ref:u,sizes:r,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":cm(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(o.viewport){let n=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),n>0&&n{l.current&&o.viewport&&a&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:ch(a.paddingLeft),paddingEnd:ch(a.paddingRight)}})}}))}),cn=(0,w.forwardRef)((e,t)=>{let{sizes:r,onSizesChange:n,...i}=e,o=u4(u6,e.__scopeScrollArea),[a,s]=(0,w.useState)(),l=(0,w.useRef)(null),u=A(t,l,o.onScrollbarYChange);return(0,w.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,w.createElement)(ca,S({"data-orientation":"vertical"},i,{ref:u,sizes:r,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":cm(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(o.viewport){let n=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),n>0&&n{l.current&&o.viewport&&a&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:ch(a.paddingTop),paddingEnd:ch(a.paddingBottom)}})}}))}),[ci,co]=u0(u6),ca=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=u4(u6,r),[p,m]=(0,w.useState)(null),v=A(t,e=>m(e)),g=(0,w.useRef)(null),y=(0,w.useRef)(""),b=h.viewport,x=n.content-n.viewport,E=P(c),j=P(l),C=cb(d,10);function k(e){if(g.current){let t=e.clientX-g.current.left,r=e.clientY-g.current.top;u({x:t,y:r})}}return(0,w.useEffect)(()=>{let e=e=>{let t=e.target,r=null==p?void 0:p.contains(t);r&&E(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,x,E]),(0,w.useEffect)(j,[n,j]),cx(p,C),cx(h.content,C),(0,w.createElement)(ci,{scope:r,scrollbar:p,hasThumb:i,onThumbChange:P(o),onThumbPointerUp:P(a),onThumbPositionChange:j,onThumbPointerDown:P(s)},(0,w.createElement)(I.div,S({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:R(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k(e)}}),onPointerMove:R(e.onPointerMove,k),onPointerUp:R(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),cs="ScrollAreaThumb",cl=(0,w.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,i=co(cs,e.__scopeScrollArea);return(0,w.createElement)(B,{present:r||i.hasThumb},(0,w.createElement)(cu,S({ref:t},n)))}),cu=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,style:n,...i}=e,o=u4(cs,r),a=co(cs,r),{onThumbPositionChange:s}=a,l=A(t,e=>a.onThumbChange(e)),u=(0,w.useRef)(),c=cb(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,w.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=cy(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,w.createElement)(I.div,S({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:R(e.onPointerDownCapture,e=>{let t=e.target,r=t.getBoundingClientRect(),n=e.clientX-r.left,i=e.clientY-r.top;a.onThumbPointerDown({x:n,y:i})}),onPointerUp:R(e.onPointerUp,a.onThumbPointerUp)}))}),cc="ScrollAreaCorner",cd=(0,w.forwardRef)((e,t)=>{let r=u4(cc,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY),i="scroll"!==r.type&&n;return i?(0,w.createElement)(cf,S({},e,{ref:t})):null}),cf=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,...n}=e,i=u4(cc,r),[o,a]=(0,w.useState)(0),[s,l]=(0,w.useState)(0);return cx(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),cx(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,w.createElement)(I.div,S({},n,{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 ch(e){return e?parseInt(e,10):0}function cp(e,t){let r=e/t;return isNaN(r)?0:r}function cm(e){let t=cp(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function cv(e,t,r="ltr"){let n=cm(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===r?[0,a]:[-1*a,0],l=function(e,[t,r]){return Math.min(r,Math.max(t,e))}(e,s),u=cg([0,a],[0,o-n]);return u(l)}function cg(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}let cy=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=r.left!==o.left,s=r.top!==o.top;(a||s)&&t(),r=o,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function cb(e,t){let r=P(e),n=(0,w.useRef)(0);return(0,w.useEffect)(()=>()=>window.clearTimeout(n.current),[]),(0,w.useCallback)(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function cx(e,t){let r=P(t);V(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}let cw=w.forwardRef((e,t)=>{let{id:r,className:n,style:i,children:o,keyToResetScrollbars:a}=e;return(0,x.jsxs)(u3,{className:(0,ey.cx)("w-full h-full overflow-hidden",n),style:i,children:[(0,x.jsx)(u5,{id:r,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,x.jsx)(u8,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,x.jsx)(cl,{className:(0,ey.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,x.jsx)(u8,{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,x.jsx)(cl,{className:(0,ey.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,x.jsx)(cd,{className:"bg-black/70"})]})}),cE=(0,ey.j)([ld,"z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),cS={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cj=w.forwardRef((e,t)=>{let{trigger:r,rootProps:n,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}=la({open:i,onOpenChange:o});return(0,x.jsxs)(uY,{open:v,onOpenChange:g,...n,children:[r&&(0,x.jsx)(uT,{asChild:!0,children:r}),(0,x.jsx)(rR,{children:v?(0,x.jsx)(uX,{forceMount:!0,children:(0,x.jsx)(uF,{asChild:!0,forceMount:!0,ref:t,children:(0,x.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,x.jsx)(uL,{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,x.jsx)(lo.div,{variants:cS,initial:"init",animate:"show",exit:"exit",className:cE(u),children:(0,x.jsx)(cA,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function cC(e){let{className:t}=e;return(0,x.jsx)(uW,{asChild:!0,type:"button",children:(0,x.jsx)("div",{className:(0,ey.cx)("appearance-none",t),children:(0,x.jsx)(lm,{size:"small",variant:"ghost",type:"button",children:(0,x.jsx)(lv.QN4,{})})})})}let ck=(0,ey.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[t9()],none:""}},defaultVariants:{variant:"default"}}),cA=w.forwardRef((e,t)=>{let{children:r,onSubmit:n,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,r]=(0,w.useState)(0),n=(0,w.useRef)(null);return(0,w.useLayoutEffect)(()=>{if(!n.current)return;let e=n.current,t=()=>r(e.clientHeight);t(),n.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:n,height:t}}([r,o]),[h,p]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,x.jsxs)(n?"form":"div",{onSubmit:n,ref:t,className:ck(s),children:[i&&(0,x.jsx)(uH,{className:cO({showSeparator:h}),children:i}),(0,x.jsx)(cw,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,x.jsxs)("div",{ref:d,className:(0,ey.cx)("p-4",u),children:[o&&(0,x.jsx)(u$,{className:c_(),children:o}),r]})}),a&&(0,x.jsx)(cT,{separator:h,children:a}),(0,x.jsx)(cC,{className:l||"absolute top-3.5 right-2"})]})}),cO=(0,ey.j)(["pt-4 pb-2 px-4 w-full",t6({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),c_=(0,ey.j)([t6({color:"subtle",size:"14"}),"py-2"]);function cT(e){let{children:t,separator:r=!0}=e;return(0,x.jsx)("div",{className:(0,ey.cx)("py-2 mx-3",r?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}let cM="rovingFocusGroup.onEntryFocus",cN={bubbles:!1,cancelable:!0},cR="RovingFocusGroup",[cP,cL,cD]=N(cR),[cI,cF]=C(cR,[cD]),[cV,cB]=cI(cR),cU=(0,w.forwardRef)((e,t)=>(0,w.createElement)(cP.Provider,{scope:e.__scopeRovingFocusGroup},(0,w.createElement)(cP.Slot,{scope:e.__scopeRovingFocusGroup},(0,w.createElement)(cz,S({},e,{ref:t}))))),cz=(0,w.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,w.useRef)(null),f=A(t,d),h=uJ(o),[p=null,m]=L({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,w.useState)(!1),y=P(u),b=cL(r),x=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(cM,y),()=>e.removeEventListener(cM,y)},[y]),(0,w.createElement)(cV,{scope:r,orientation:n,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,w.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,w.useCallback)(()=>g(!0),[])},(0,w.createElement)(I.div,S({tabIndex:v?-1:0,"data-orientation":n},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:R(e.onMouseDown,()=>{x.current=!0}),onFocus:R(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(cM,cN);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable),t=e.find(e=>e.active),r=e.find(e=>e.id===p),n=[t,r,...e].filter(Boolean),i=n.map(e=>e.ref.current);cW(i)}}x.current=!1}),onBlur:R(e.onBlur,()=>g(!1))})))}),cH=(0,w.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,...o}=e,a=$(),s=cB("RovingFocusGroupItem",r),l=s.currentTabStopId===a,u=cL(r);return(0,w.createElement)(cP.ItemSlot,{scope:r,id:a,focusable:n,active:i},(0,w.createElement)(I.span,S({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:R(e.onMouseDown,e=>{n?s.onItemFocus(a):e.preventDefault()}),onFocus:R(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:R(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return c$[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(r=o,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>cW(o))}})})))}),c$={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function cW(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}let cq=["Enter"," "],cG=["ArrowUp","PageDown","End"],cZ=["ArrowDown","PageUp","Home",...cG],cY={ltr:[...cq,"ArrowRight"],rtl:[...cq,"ArrowLeft"]},cX={ltr:["ArrowLeft"],rtl:["ArrowRight"]},cK="Menu",[cJ,cQ,c0]=N(cK),[c1,c2]=C(cK,[c0,tb,cF]),c4=tb(),c3=cF(),[c5,c6]=c1(cK),[c8,c7]=c1(cK),c9=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e,i=c4(r);return(0,w.createElement)(tE,S({},i,n,{ref:t}))}),de="MenuPortal",[dt,dr]=c1(de,{forceMount:void 0}),dn="MenuContent",[di,da]=c1(dn),ds=(0,w.forwardRef)((e,t)=>{let r=dr(dn,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=c6(dn,e.__scopeMenu),a=c7(dn,e.__scopeMenu);return(0,w.createElement)(cJ.Provider,{scope:e.__scopeMenu},(0,w.createElement)(B,{present:n||o.open},(0,w.createElement)(cJ.Slot,{scope:e.__scopeMenu},a.modal?(0,w.createElement)(dl,S({},i,{ref:t})):(0,w.createElement)(du,S({},i,{ref:t})))))}),dl=(0,w.forwardRef)((e,t)=>{let r=c6(dn,e.__scopeMenu),n=(0,w.useRef)(null),i=A(t,n);return(0,w.useEffect)(()=>{let e=n.current;if(e)return uj(e)},[]),(0,w.createElement)(dc,S({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),du=(0,w.forwardRef)((e,t)=>{let r=c6(dn,e.__scopeMenu);return(0,w.createElement)(dc,S({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),dc=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=c6(dn,r),v=c7(dn,r),g=c4(r),y=c3(r),b=cQ(r),[x,E]=(0,w.useState)(null),j=(0,w.useRef)(null),C=A(t,j,m.onContentChange),k=(0,w.useRef)(0),_=(0,w.useRef)(""),T=(0,w.useRef)(0),M=(0,w.useRef)(null),N=(0,w.useRef)("right"),P=(0,w.useRef)(0),L=h?ub:w.Fragment,D=h?{as:O,allowPinchZoom:!0}:void 0,I=e=>{var t,r;let n=_.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=i.map(e=>e.textValue),l=function(e,t,r){var n;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=r?e.indexOf(r):-1,s=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==r));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==r?u:void 0}(s,n,a),u=null===(r=i.find(e=>e.textValue===l))||void 0===r?void 0:r.ref.current;!function e(t){_.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())};(0,w.useEffect)(()=>()=>window.clearTimeout(k.current),[]),lZ();let F=(0,w.useCallback)(e=>{var t,r;let n=N.current===(null===(t=M.current)||void 0===t?void 0:t.side);return n&&function(e,t){if(!t)return!1;let r={x:e.clientX,y:e.clientY};return function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(l-a)*(n-s)/(u-s)+a;c&&(i=!i)}return i}(r,t)}(e,null===(r=M.current)||void 0===r?void 0:r.area)},[]);return(0,w.createElement)(di,{scope:r,searchRef:_,onItemEnter:(0,w.useCallback)(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:(0,w.useCallback)(e=>{var t;F(e)||(null===(t=j.current)||void 0===t||t.focus(),E(null))},[F]),onTriggerLeave:(0,w.useCallback)(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:T,onPointerGraceIntentChange:(0,w.useCallback)(e=>{M.current=e},[])},(0,w.createElement)(L,D,(0,w.createElement)(lU,{asChild:!0,trapped:i,onMountAutoFocus:R(o,e=>{var t;e.preventDefault(),null===(t=j.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,w.createElement)(ew,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,w.createElement)(cU,S({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:n,currentTabStopId:x,onCurrentTabStopIdChange:E,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,w.createElement)(tO,S({role:"menu","aria-orientation":"vertical","data-state":dC(m.open),dir:v.dir},g,p,{ref:C,style:{outline:"none",...p.style},onKeyDown:R(p.onKeyDown,e=>{let t=e.target,r=t.closest('[role="menu"]')===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;r&&("Tab"===e.key&&e.preventDefault(),!n&&i&&I(e.key));let o=j.current;if(e.target!==o||!cZ.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);cG.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(s)}),onBlur:R(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),_.current="")}),onPointerMove:R(e.onPointerMove,dA(e=>{let t=e.target,r=P.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>P.current?"right":"left";N.current=t,P.current=e.clientX}}))})))))))}),dd=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,w.createElement)(I.div,S({role:"group"},n,{ref:t}))}),df=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,w.createElement)(I.div,S({},n,{ref:t}))}),dh="MenuItem",dp="menu.itemSelect",dm=(0,w.forwardRef)((e,t)=>{let{disabled:r=!1,onSelect:n,...i}=e,o=(0,w.useRef)(null),a=c7(dh,e.__scopeMenu),s=da(dh,e.__scopeMenu),l=A(t,o),u=(0,w.useRef)(!1);return(0,w.createElement)(dv,S({},i,{ref:l,disabled:r,onClick:R(e.onClick,()=>{let e=o.current;if(!r&&e){let t=new CustomEvent(dp,{bubbles:!0,cancelable:!0});e.addEventListener(dp,e=>null==n?void 0:n(e),{once:!0}),F(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),u.current=!0},onPointerUp:R(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:R(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!r&&(!t||" "!==e.key)&&cq.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),dv=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:i,...o}=e,a=da(dh,r),s=c3(r),l=(0,w.useRef)(null),u=A(t,l),[c,d]=(0,w.useState)(!1),[f,h]=(0,w.useState)("");return(0,w.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,w.createElement)(cJ.ItemSlot,{scope:r,disabled:n,textValue:null!=i?i:f},(0,w.createElement)(cH,S({asChild:!0},s,{focusable:!n}),(0,w.createElement)(I.div,S({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},o,{ref:u,onPointerMove:R(e.onPointerMove,dA(e=>{if(n)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:R(e.onPointerLeave,dA(e=>a.onItemLeave(e))),onFocus:R(e.onFocus,()=>d(!0)),onBlur:R(e.onBlur,()=>d(!1))}))))}),[dg,dy]=((e,t)=>{let{checked:r=!1,onCheckedChange:n,...i}=e;return(0,w.createElement)(dx,{scope:e.__scopeMenu,checked:r},(0,w.createElement)(dm,S({role:"menuitemcheckbox","aria-checked":r},i,{ref:t,"data-state":dk(r),onSelect:R(i.onSelect,()=>null==n?void 0:n(!r),{checkForDefaultPrevented:!1})})))},c1("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),db=((e,t)=>{let{value:r,onValueChange:n,...i}=e,o=P(n);return(0,w.createElement)(dg,{scope:e.__scopeMenu,value:r,onValueChange:o},(0,w.createElement)(dd,S({},i,{ref:t})))},"MenuItemIndicator"),[dx,dw]=c1(db,{checked:!1}),[dE,dS]=((e,t)=>{let{__scopeMenu:r,forceMount:n,...i}=e,o=dw(db,r);return(0,w.createElement)(B,{present:n||o.checked},(0,w.createElement)(I.span,S({},i,{ref:t,"data-state":dk(o.checked)})))},c1("MenuSub")),dj="MenuSubTrigger";function dC(e){return e?"open":"closed"}function dk(e){return e?"checked":"unchecked"}function dA(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let r=c6(dj,e.__scopeMenu),n=c7(dj,e.__scopeMenu),i=dS(dj,e.__scopeMenu),o=da(dj,e.__scopeMenu),a=(0,w.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,w.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,w.useEffect)(()=>c,[c]),(0,w.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,w.createElement)(c9,S({asChild:!0},u),(0,w.createElement)(dv,S({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":dC(r.open)},e,{ref:k(t,i.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:R(e.onPointerMove,dA(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{r.onOpenChange(!0),c()},100))})),onPointerLeave:R(e.onPointerLeave,dA(e=>{var t,n;c();let i=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(n=r.content)||void 0===n?void 0:n.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:R(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&cY[n.dir].includes(t.key)){var a;r.onOpenChange(!0),null===(a=r.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let r=dr(dn,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=c6(dn,e.__scopeMenu),a=c7(dn,e.__scopeMenu),s=dS("MenuSubContent",e.__scopeMenu),l=(0,w.useRef)(null),u=A(t,l);return(0,w.createElement)(cJ.Provider,{scope:e.__scopeMenu},(0,w.createElement)(B,{present:n||o.open},(0,w.createElement)(cJ.Slot,{scope:e.__scopeMenu},(0,w.createElement)(dc,S({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:R(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:R(e.onEscapeKeyDown,a.onClose),onKeyDown:R(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=cX[a.dir].includes(e.key);if(t&&r){var n;o.onOpenChange(!1),null===(n=s.trigger)||void 0===n||n.focus(),e.preventDefault()}})})))))};let dO=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:o,modal:a=!0}=e,s=c4(t),[l,u]=(0,w.useState)(null),c=(0,w.useRef)(!1),d=P(o),f=uJ(i);return(0,w.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,w.createElement)(tL,s,(0,w.createElement)(c5,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u},(0,w.createElement)(c8,{scope:t,onClose:(0,w.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},n)))},d_=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=c6(de,t);return(0,w.createElement)(dt,{scope:t,forceMount:r},(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(tD,{asChild:!0,container:i},n)))},dT="DropdownMenu",[dM,dN]=C(dT,[c2]),dR=c2(),[dP,dL]=dM(dT),dD=(0,w.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,o=dL("DropdownMenuTrigger",r),a=dR(r);return(0,w.createElement)(c9,S({asChild:!0},a),(0,w.createElement)(I.button,S({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":n?"":void 0,disabled:n},i,{ref:k(t,o.triggerRef),onPointerDown:R(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:R(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),dI=(0,w.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=dL("DropdownMenuContent",r),o=dR(r),a=(0,w.useRef)(!1);return(0,w.createElement)(ds,S({id:i.contentId,"aria-labelledby":i.triggerId},o,n,{ref:t,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:R(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!i.modal||n)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),dF=(0,w.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=dR(r);return(0,w.createElement)(df,S({},i,n,{ref:t}))}),dV=(0,w.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=dR(r);return(0,w.createElement)(dm,S({},i,n,{ref:t}))}),dB=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=dR(t),u=(0,w.useRef)(null),[c=!1,d]=L({prop:i,defaultProp:o,onChange:a});return(0,w.createElement)(dP,{scope:t,triggerId:$(),triggerRef:u,contentId:$(),open:c,onOpenChange:d,onOpenToggle:(0,w.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,w.createElement)(dO,S({},l,{open:c,onOpenChange:d,dir:n,modal:s}),r))},dU=e=>{let{__scopeDropdownMenu:t,...r}=e,n=dR(t);return(0,w.createElement)(d_,S({},n,r))},dz="horizontal",dH=["horizontal","vertical"],d$=(0,w.forwardRef)((e,t)=>{let{decorative:r,orientation:n=dz,...i}=e,o=dW(n)?n:dz;return(0,w.createElement)(I.div,S({"data-orientation":o},r?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function dW(e){return dH.includes(e)}d$.propTypes={orientation(e,t,r){let n=e[t],i=String(n);return n&&!dW(n)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${r}\`, expected one of: - - horizontal - - vertical - -Defaulting to \`${dz}\`.`):null}};let dq=(0,ey.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"}}),dG=w.forwardRef((e,t)=>{let{variant:r,color:n,className:i,...o}=e;return(0,x.jsx)(d$,{ref:t,className:dq({variant:r,color:n,className:i}),...o})}),dZ=function(){let{className:e,font:t,color:r="subtle",weight:n="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ey.cx)(t6({font:t,color:r,weight:n,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},dY=function(){let{className:e,font:t,color:r="contrast",weight:n="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ey.cx)(dZ({font:t,color:r,weight:n,size:i,scaleSize:o,noWrap:a,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"])},dX=e=>{let{className:t,font:r,color:n="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return t6({font:r,color:n,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},dK=e=>(0,ey.cx)(["h-px","my-2","mx-1.5",e]),dJ=w.forwardRef((e,t)=>{let{className:r,color:n,...i}=e;return(0,x.jsx)(dG,{ref:t,className:dK(r),...i})}),dQ=w.forwardRef((e,t)=>{let{className:r,font:n,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,x.jsx)("div",{ref:t,className:(0,ey.cx)(dZ({className:r,font:n,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),d0=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{ref:t,className:(0,ey.cx)(["ml-auto","pl-5",r]),...n})}),d1=(0,ey.j)([ld,"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"]),d2=e=>(0,ey.cx)(t9(),(0,ey.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),d4={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},d3=w.forwardRef((e,t)=>{let{trigger:r,children:n,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=la({open:s,onOpenChange:l});return(0,x.jsxs)(dB,{open:u,onOpenChange:c,...i,children:[(0,x.jsx)(dD,{asChild:!0,children:r}),(0,x.jsx)(rR,{children:u?(0,x.jsx)(dU,{forceMount:!0,children:(0,x.jsx)(dI,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(lo.div,{variants:d4,initial:"init",animate:"show",exit:"exit",className:d1(),children:(0,x.jsx)("div",{className:d2(a),children:n})})})}):null})]})}),d5=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)(dV,{ref:t,className:dY({className:r}),...n})}),d6=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)(dF,{ref:t,className:(0,ey.cx)("px-1.5",dX({className:r})),...n})}),d8=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{ref:t,className:(0,ey.cx)(["pr-2","opacity-70 group-hover:opacity-100",r]),...n})});var d7=r(39097),d9=r.n(d7);let fe={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},ft={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"},fr=w.forwardRef((e,t)=>{let{size:r="24",className:n,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=fe[r];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,x.jsxs)("div",{className:(0,ey.cx)("relative flex flex-col gap-6 items-start",n),children:[(0,x.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,x.jsxs)(d9(),{href:"#".concat(e),className:"relative group",children:[(0,x.jsx)(t8,{className:"hidden group-hover:block",children:(0,x.jsx)(lv.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,x.jsx)(t8,{as:u,...l,ref:t,weight:"none",className:(0,ey.cx)("proportional-nums inline-block",ft[r]),children:o})]})]})}return(0,x.jsx)("div",{className:(0,ey.cx)("flex flex-col gap-6 items-start",n),children:(0,x.jsx)(t8,{as:u,...l,ref:t,weight:"none",className:(0,ey.cx)("proportional-nums inline-block",ft[r],n),children:o})})});var fn=r(96577),fi=r.n(fn);let fo=(0,ey.j)(["rounded"]);function fa(e){let{className:t,...r}=e;return(0,x.jsx)(fi(),{className:fo({className:t}),...r})}let[fl,fu]=j("Label",{id:void 0,controlRef:{current:null}}),fc=(0,w.forwardRef)((e,t)=>{let{htmlFor:r,id:n,...i}=e,o=(0,w.useRef)(null),a=(0,w.useRef)(null),s=A(t,a),l=$(n);return(0,w.useEffect)(()=>{if(r){let e=document.getElementById(r),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),r=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",r),o.current=e,()=>{var r;let n=null===(r=t())||void 0===r?void 0:r.replace(l,"");""===n?e.removeAttribute("aria-labelledby"):n&&e.setAttribute("aria-labelledby",n)}}}},[l,r]),(0,w.createElement)(fl,{id:l,controlRef:o},(0,w.createElement)(I.span,S({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var r;null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var r;if(null===(r=e.onClick)||void 0===r||r.call(e,t),!o.current||t.defaultPrevented)return;let n=o.current.contains(t.target),i=!0===t.isTrusted;!n&&i&&(o.current.click(),o.current.focus())}})))}),fd=e=>{let t=fu("LabelConsumer"),{controlRef:r}=t;return(0,w.useEffect)(()=>{e&&(r.current=e)},[e,r]),t.id},ff=w.forwardRef((e,t)=>{let{font:r,size:n="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,x.jsx)(fc,{ref:t,...c,className:dX({font:r,size:n,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),fh=(0,ey.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"}}),fp=e=>{let{font:t,size:r,scaleSize:n,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,ey.cx)(t6({scaleSize:n,size:r,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),fh({disabled:u,underline:l}),c)},fm=w.forwardRef((e,t)=>{let{href:r,font:n,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,w.useCallback)(e=>{m&&(r||e.preventDefault(),m(e))},[m,r]);return(0,x.jsx)(d9(),{href:r||"#",ref:t,className:fp({font:n,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),fv=w.forwardRef((e,t)=>{let{href:r,disabled:n,variant:i,size:o,state:a,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,w.useCallback)(e=>{h&&(r||e.preventDefault(),h(e))},[h,r]);return c?(0,x.jsx)(lh,{content:c,children:(0,x.jsx)(d9(),{href:r||"#",ref:t,className:lp({variant:i,size:o,state:a,rounded:s,disabled:n,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}):(0,x.jsx)(d9(),{href:r||"#",ref:t,className:lp({variant:i,size:o,state:a,rounded:s,disabled:n,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}),fg={src:"/_next/static/media/logo.0e2362ab.png"};function fy(e){let{size:t=30,className:r}=e;return(0,x.jsx)(fa,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:r})}let fb="Popover",[fx,fw]=C(fb,[tb]),fE=tb(),[fS,fj]=fx(fb),fC=(0,w.forwardRef)((e,t)=>{let{__scopePopover:r,...n}=e,i=fj("PopoverTrigger",r),o=fE(r),a=A(t,i.triggerRef),s=(0,w.createElement)(I.button,S({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":fP(i.open)},n,{ref:a,onClick:R(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,w.createElement)(tE,S({asChild:!0},o),s)}),fk="PopoverPortal",[fA,fO]=fx(fk,{forceMount:void 0}),f_="PopoverContent",fT=(0,w.forwardRef)((e,t)=>{let r=fO(f_,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,o=fj(f_,e.__scopePopover);return(0,w.createElement)(B,{present:n||o.open},o.modal?(0,w.createElement)(fM,S({},i,{ref:t})):(0,w.createElement)(fN,S({},i,{ref:t})))}),fM=(0,w.forwardRef)((e,t)=>{let r=fj(f_,e.__scopePopover),n=(0,w.useRef)(null),i=A(t,n),o=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=n.current;if(e)return uj(e)},[]),(0,w.createElement)(ub,{as:O,allowPinchZoom:!0},(0,w.createElement)(fR,S({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;o.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),fN=(0,w.forwardRef)((e,t)=>{let r=fj(f_,e.__scopePopover),n=(0,w.useRef)(!1);return(0,w.createElement)(fR,S({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current||null===(o=r.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),n.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current=!0);let a=t.target,s=null===(o=r.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),fR=(0,w.forwardRef)((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=fj(f_,r),h=fE(r);return lZ(),(0,w.createElement)(lU,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,w.createElement)(ew,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,w.createElement)(tO,S({"data-state":fP(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 fP(e){return e?"open":"closed"}let fL=e=>{let{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=fE(t),l=(0,w.useRef)(null),[u,c]=(0,w.useState)(!1),[d=!1,f]=L({prop:n,defaultProp:i,onChange:o});return(0,w.createElement)(tL,s,(0,w.createElement)(fS,{scope:t,contentId:$(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,w.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,w.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,w.useCallback)(()=>c(!1),[]),modal:a},r))},fD=e=>{let{__scopePopover:t,forceMount:r,children:n,container:i}=e,o=fj(fk,t);return(0,w.createElement)(fA,{scope:t,forceMount:r},(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(tD,{asChild:!0,container:i},n)))},fI=(0,ey.j)([ld,"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"]),fF=(0,ey.cx)(t9(),(0,ey.j)(["py-1","px-1"])()),fV={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},fB=w.forwardRef((e,t)=>{let{trigger:r,children:n,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=la({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(fL,{open:a,onOpenChange:s,...i,children:[(0,x.jsx)(fC,{asChild:!0,children:r}),(0,x.jsx)(rR,{children:a?(0,x.jsx)(fD,{forceMount:!0,children:(0,x.jsx)(fT,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(lo.div,{variants:fV,initial:"init",animate:"show",exit:"exit",className:fI(),children:(0,x.jsx)(cw,{className:fF,children:n})})})}):null})]})}),fU="Progress",[fz,fH]=C(fU),[f$,fW]=fz(fU),fq=(0,w.forwardRef)((e,t)=>{let{__scopeProgress:r,value:n,max:i,getValueLabel:o=fZ,...a}=e,s=fK(i)?i:100,l=fJ(n,s)?n:null,u=fX(l)?o(l,s):void 0;return(0,w.createElement)(f$,{scope:r,value:l,max:s},(0,w.createElement)(I.div,S({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":fX(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":fY(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});fq.propTypes={max(e,t,r){let n=e[t],i=String(n);return n&&!fK(n)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,r){let n=e[t],i=String(n),o=fK(e.max)?e.max:100;return null==n||fJ(n,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${r}\`. 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 fG=(0,w.forwardRef)((e,t)=>{var r;let{__scopeProgress:n,...i}=e,o=fW("ProgressIndicator",n);return(0,w.createElement)(I.div,S({"data-state":fY(o.value,o.max),"data-value":null!==(r=o.value)&&void 0!==r?r:void 0,"data-max":o.max},i,{ref:t}))});function fZ(e,t){return`${Math.round(e/t*100)}%`}function fY(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function fX(e){return"number"==typeof e}function fK(e){return fX(e)&&!isNaN(e)&&e>0}function fJ(e,t){return fX(e)&&!isNaN(e)&&e<=t&&e>=0}let fQ=(0,ey.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"}}),f0=w.forwardRef((e,t)=>{let{label:r,variant:n,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,x.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,x.jsx)(fq,{...s,ref:t,value:o,max:a,className:fQ({variant:n,className:i}),children:(0,x.jsx)(fG,{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,"%)")}})}),r&&(0,x.jsx)(t8,{color:"subtle",size:"12",ellipsis:!0,children:r})]})});(0,ey.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"}}),(0,ey.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"}});let f1=(0,ey.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",t6(),"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"}}),f2=w.forwardRef((e,t)=>{let{size:r,variant:n,state:i,cursor:o,className:a,...s}=e;return(0,x.jsx)("textarea",{ref:t,className:f1({size:r,variant:n,state:i,cursor:o,className:a}),...s})}),f4=(0,ey.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"}}),f3=w.forwardRef((e,t)=>{let{variant:r,size:n,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,x.jsx)("input",{ref:t,className:f4({variant:r,size:n,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var f5=function(){return(f5=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1){if(e.includes(t)){var n=e.split(t),i=n[0],o=n[1];if(o.length>r)return""+i+t+o.slice(0,r)}var a=e.length>r?RegExp("(\\d+)(\\d{"+r+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},hi=function(e,t){var r=t.groupSeparator,n=t.decimalSeparator,i=RegExp("\\d([^"+f8(void 0===r?",":r)+f8(void 0===n?".":n)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},ho=function(e){var t=e.value,r=e.decimalSeparator,n=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?f8(a)+"?":"")+"\\d").test(t),c="."!==r?ha(t,r,u):t,d=hs((n?new Intl.NumberFormat(n.locale,n.currency?{style:"currency",currency:n.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=hi(d,f5({},e)),h=t.slice(-1)===r?r:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&r&&(d=d.includes(r)?d.replace(RegExp("(\\d+)("+f8(r)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+r+p+f):""+d+r+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},ha=function(e,t,r){var n=e;return t&&"."!==t&&(n=n.replace(RegExp(f8(t),"g"),"."),r&&"-"===t&&(n="-"+n.slice(1))),n},hs=function(e,t){var r=t.prefix,n=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&r?"minusSign"===l?[u,r]:"currency"===l?f6(f6([],e),[r]):[r,u]:"currency"===l?r?e:f6(f6([],e),[u]):"group"===l?s?e:f6(f6([],e),[void 0!==n?n:u]):"decimal"===l?void 0!==o&&0===o?e:f6(f6([],e),[void 0!==i?i:u]):"fraction"===l?f6(f6([],e),[void 0!==o?u.slice(0,o):u]):f6(f6([],e),[u])},[""]).join("")},hl={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},hu=function(e){var t=e||{},r=t.locale,n=t.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,r){return"currency"===t.type?0===r?f5(f5({},e),{currencySymbol:t.value,prefix:t.value}):f5(f5({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?f5(f5({},e),{groupSeparator:t.value}):"decimal"===t.type?f5(f5({},e),{decimalSeparator:t.value}):e},hl)},hc=function(e){return RegExp(/\d/,"gi").test(e)},hd=function(e,t,r){if(void 0===t&&(t="."),void 0===r||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var n=e.split(t),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.lengtht.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(A&&hc(A))throw Error("decimalSeparator cannot be a number");if(O&&hc(O))throw Error("groupSeparator cannot be a number");var D=(0,w.useMemo)(function(){return hu(b)},[b]),I=A||D.decimalSeparator||"",F=O||D.groupSeparator||"";if(I&&F&&I===F&&!1===C)throw Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:I,groupSeparator:F,disableGroupSeparators:C,intlConfig:b,prefix:g||D.prefix,suffix:y},B={decimalSeparator:I,groupSeparator:F,allowDecimals:void 0===r||r,decimalsLimit:l||p||2,allowNegativeValue:void 0===n||n,disableAbbreviations:void 0!==k&&k,prefix:g||D.prefix,transformRawValue:P},U=null!=u?ho(f5(f5({},V),{decimalScale:v,value:String(u)})):null!=f?ho(f5(f5({},V),{decimalScale:v,value:String(f)})):"",z=(0,w.useState)(U),H=z[0],$=z[1],W=(0,w.useState)(!1),q=W[0],G=W[1],Z=(0,w.useState)(0),Y=Z[0],X=Z[1],K=(0,w.useState)(0),J=K[0],Q=K[1],ee=(0,w.useState)(null),et=ee[0],er=ee[1],en=t||(0,w.useRef)(null),ei=function(e,t){G(!0);var r=hf({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:F}),n=r.modifiedValue,i=r.cursorPosition,a=hr(f5({value:n},B));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===I){h&&h(void 0,o,{float:null,formatted:"",value:""}),$(a);return}var s=parseFloat(a.replace(I,".")),l=ho(f5({value:a},V));if(null!=i){var u=i+(l.length-e.length);X(u=u<=0?g?g.length:0:u),Q(J+1)}$(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,w.useEffect)(function(){q&&"-"!==H&&en&&"object"==typeof en&&en.current&&en.current.setSelectionRange(Y,Y)},[H,Y,en,q,J]);var eo=f5({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),_&&_(e)},onBlur:function(e){var t=e.target.value,r=hr(f5({value:t},B));if("-"===r||!r){$(""),M&&M(e);return}var n=hd(hn(r,I,p),I,void 0!==v?v:p),i=parseFloat(n.replace(I,".")),a=ho(f5(f5({},V),{value:n}));h&&h(n,o,{float:i,formatted:a,value:n}),$(a),M&&M(e)},onFocus:function(e){return T&&T(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(er(t),x&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),X(H.length);var r=parseFloat(null!=f?String(f).replace(I,"."):hr(f5({value:H},B)))||0,n="ArrowUp"===t?r+x:r-x;if(void 0!==E&&nS)return;var i=String(x).includes(".")?Number(String(x).split(".")[1].length):void 0;ei(String(i?n.toFixed(i):n).replace(".",I))}N&&N(e)},onKeyUp:function(e){var t=e.key,r=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var n=hi(H,{groupSeparator:F,decimalSeparator:I});if(n&&r&&r>H.length-n.length&&en&&"object"==typeof en&&en.current){var i=H.length-n.length;en.current.setSelectionRange(i,i)}}R&&R(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||I&&H===I?H:ho(f5(f5({},V),{decimalScale:q?void 0:v,value:String(f)})),ref:en},L);return s?w.createElement(s,f5({},eo)):w.createElement("input",f5({},eo))});function hp(e){let{units:t,variant:r,size:n="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,w.useState)();return(0,w.useEffect)(()=>{h(navigator.language)},[]),(0,x.jsxs)("div",{className:"relative",children:[(0,x.jsx)(hh,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,className:(0,ey.cx)(f4({variant:r,size:n,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,x.jsx)("div",{className:(0,ey.cx)("flex items-center absolute top-0 h-full","small"===n?"right-2":"","medium"===n?"right-3":"","large"===n?"right-3":""),children:(0,x.jsx)(t8,{size:"12",weight:"medium",color:"subtle",children:t})})]})}hh.displayName="CurrencyInput";var hm=r(6391),hv=r.n(hm);function hg(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let hy=(0,w.forwardRef)(function(e,t){let{value:r,placeholder:n=new(hv())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,w.useMemo)(()=>new(hv())(r),[r]),[p,m]=(0,w.useState)(""),v=(0,w.useMemo)(()=>hb(p),[p]),g=(0,w.useCallback)(e=>{o&&o((e=hb(e))&&!isNaN(Number(e))?new(hv())(e):void 0)},[o]),y=(0,w.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,w.useEffect)(()=>{if(!h.isEqualTo(v)){let e=hg(h,i);m(e)}},[h]),(0,x.jsx)(hp,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:n.isNaN()?"":n.toFixed(i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>y(e||"")})});function hb(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var hx=r(2850);r(98537);let hw=new(hv())(0),hE=(0,w.forwardRef)(function(e,t){let{sc:r,placeholder:n=new(hv())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,w.useMemo)(()=>new(hv())(void 0===r?NaN:r),[r]),{settings:g}=(0,hx.Hv)(),y=function(e){let{settings:t}=(0,hx.Hv)();return(0,hx.Nf)({api:"https://api.siacentral.com/v2",...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}({config:{swr:{revalidateOnFocus:!1}}}),b=(0,w.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(hv())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||hw):hw},[y.data,g]),[E,S]=(0,w.useState)(),[j,C]=(0,w.useState)(""),[k,A]=(0,w.useState)(""),O=(0,w.useMemo)(()=>hS(j),[j]),_=(0,w.useMemo)(()=>hS(k),[k]),T=(0,w.useCallback)(e=>{a&&a((e=hS(e))&&!isNaN(Number(e))?new(hv())(e):void 0)},[a]),M=(0,w.useCallback)(e=>{let t=hg(e,i);A(t)},[A,i]),N=(0,w.useCallback)(e=>{let t=hg(e,o);return C(t),T(t),t},[C,o,T]),R=(0,w.useCallback)(e=>{C(e),T(e)},[C,T]),P=(0,w.useCallback)(e=>{let t=new(hv())(e).times(b);M(t)},[M,b]),L=(0,w.useCallback)(e=>{let t=new(hv())(e).dividedBy(b);N(t)},[N,b]),[D,I]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{if(!v.isEqualTo(O)){let e=hg(v,o);C(e),"fiat"!==E&&P(e)}D||I(!0)},[v]),(0,w.useEffect)(()=>{D&&P(O)},[b]),(0,w.useEffect)(()=>{"sc"===E&&P(O)},[O]),(0,w.useEffect)(()=>{"fiat"===E&&L(_)},[_]),(0,x.jsxs)("div",{ref:t,className:(0,ey.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,x.jsx)(hp,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:n.toFixed(o),units:l,value:"NaN"!==j?j:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{S(void 0),h&&h(e)},onFocus:e=>{S("sc"),p&&p(e)},onValueChange:e=>{R(e||"")}}),u&&g.siaCentral&&(0,x.jsx)(hp,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==k?k:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(b?b.times(n).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{S("fiat"),p&&p(e)},onBlur:e=>{S(void 0),h&&h(e)},onValueChange:e=>{A(e||"")}})]})});function hS(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function hj(e){let{children:t}=e;return(0,x.jsx)(lh,{content:t,children:(0,x.jsx)("div",{className:"relative flex items-center inline mx-1",children:(0,x.jsx)(t8,{color:"subtle",children:(0,x.jsx)(lv.RdX,{className:"scale-75"})})})})}function hC(e){let{values:t,options:r,onChange:n}=e;return(0,x.jsx)("div",{className:"flex flex-wrap gap-1",children:r.map(e=>(0,x.jsx)(lm,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{n(e.value)},children:e.label},e.value))})}let hk=(0,ey.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"}}),hA=w.forwardRef((e,t)=>{let{size:r,state:n,icon:i,className:o,...a}=e;return(0,x.jsxs)("div",{className:hk({size:r,state:n,className:o}),children:[i,(0,x.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,x.jsx)(lv.Cp0,{className:"pointer-events-none scale-75"})]})}),hO=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("option",{ref:t,...n,className:(0,ey.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",r)})}),h_=(0,ey.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function hT(e){let{className:t}=e;return(0,x.jsx)("div",{className:h_({className:t})})}function hM(e){let t=(0,w.useRef)({value:e,previous:e});return(0,w.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,ey.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}});let hN="Switch",[hR,hP]=C(hN),[hL,hD]=hR(hN),hI=(0,w.forwardRef)((e,t)=>{let{__scopeSwitch:r,"aria-labelledby":n,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,w.useState)(null),p=A(t,e=>h(e)),m=fd(f),v=(0,w.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=L({prop:o,defaultProp:a,onChange:c});return(0,w.createElement)(hL,{scope:r,checked:y,disabled:l},(0,w.createElement)(I.button,S({type:"button",role:"switch","aria-checked":y,"aria-labelledby":n||m,"aria-required":s,"data-state":hB(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:R(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,w.createElement)(hV,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),hF=(0,w.forwardRef)((e,t)=>{let{__scopeSwitch:r,...n}=e,i=hD("SwitchThumb",r);return(0,w.createElement)(I.span,S({"data-state":hB(i.checked),"data-disabled":i.disabled?"":void 0},n,{ref:t}))}),hV=e=>{let{control:t,checked:r,bubbles:n=!0,...i}=e,o=(0,w.useRef)(null),a=hM(r),s=tv(t);return(0,w.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==r&&s){let t=new Event("click",{bubbles:n});s.call(e,r),e.dispatchEvent(t)}},[a,r,n]),(0,w.createElement)("input",S({type:"checkbox","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function hB(e){return e?"checked":"unchecked"}let hU=(0,ey.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"}}),hz=(0,ey.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"}}),hH=(0,w.forwardRef)((e,t)=>{let{size:r,state:n,className:i,children:o,...a}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(hI,{className:hz({size:r,state:n,className:i}),...a,ref:t,children:(0,x.jsx)(hF,{className:hU({size:r})})}),o&&(0,x.jsx)(t8,{color:a.disabled?"subtle":"contrast",children:o})]})}),h$=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e,i=w.Children.toArray(r),o=i.find(hG);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:w.Children.count(e)>1?w.Children.only(null):(0,w.isValidElement)(e)?e.props.children:null);return(0,w.createElement)(hW,S({},n,{ref:t}),(0,w.isValidElement)(e)?(0,w.cloneElement)(e,void 0,r):null)}return(0,w.createElement)(hW,S({},n,{ref:t}),r)});h$.displayName="Slot";let hW=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,w.isValidElement)(r)?(0,w.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n],a=/^on[A-Z]/.test(n);a?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:k(t,r.ref)}):w.Children.count(r)>1?w.Children.only(null):null});hW.displayName="SlotClone";let hq=({children:e})=>(0,w.createElement)(w.Fragment,null,e);function hG(e){return(0,w.isValidElement)(e)&&e.type===hq}let hZ=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,w.forwardRef)((e,r)=>{let{asChild:n,...i}=e,o=n?h$:t;return(0,w.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,w.createElement)(o,S({},i,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),hY=(0,w.forwardRef)((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,w.createElement)(hZ.svg,S({},o,{ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:(0,w.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hX="Popper",[hK,hJ]=C(hX),[hQ,h0]=hK(hX),h1=(0,w.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,o=h0("PopperAnchor",r),a=(0,w.useRef)(null),s=A(t,a);return(0,w.useEffect)(()=>{o.onAnchorChange((null==n?void 0:n.current)||a.current)}),n?null:(0,w.createElement)(hZ.div,S({},i,{ref:s}))}),h2="PopperContent",[h4,h3]=hK(h2),[h5,h6]=hK(h2,{hasParent:!1,positionUpdateFns:new Set}),h8=(0,w.forwardRef)((e,t)=>{var r,n,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:E=!0,onPlaced:S,...j}=e,C=h0(h2,d),[k,O]=(0,w.useState)(null),_=A(t,e=>O(e)),[T,M]=(0,w.useState)(null),N=tv(T),R=null!==(r=null==N?void 0:N.width)&&void 0!==r?r:0,L=null!==(n=null==N?void 0:N.height)&&void 0!==n?n:0,D="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},I=Array.isArray(g)?g:[g],F=I.length>0,B={padding:D,boundary:I.filter(pe),altBoundary:F},{reference:U,floating:z,strategy:H,x:$,y:W,placement:q,middlewareData:G,update:Z}=th({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tc,middleware:[pt(),eW({mainAxis:h+L,alignmentAxis:m}),E?eG({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?eZ():void 0,...B}):void 0,T?tp({element:T,padding:v}):void 0,E?eU({...B}):void 0,{name:"size",options:c={...B,apply:({elements:e,availableWidth:t,availableHeight:r})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${r}px`)}},async fn(e){let t,r;let{placement:n,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await eN(e,l),d=ej(n),f=eC(n);"top"===d||"bottom"===d?(t=d,r=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(r=d,t="end"===f?"top":"bottom");let h=eP(u.left,0),p=eP(u.right,0),m=eP(u.top,0),v=eP(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(n)?2*(0!==m||0!==v?m+v:eP(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(n)?2*(0!==h||0!==p?h+p:eP(u.left,u.right)):u[r])},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}}:{}}},pr({arrowWidth:R,arrowHeight:L}),x?e$({strategy:"referenceHidden"}):void 0].filter(h9)});V(()=>{U(C.anchor)},[U,C.anchor]);let Y=null!==$&&null!==W,[X,K]=pn(q),J=P(S);V(()=>{Y&&(null==J||J())},[Y,J]);let Q=null===(i=G.arrow)||void 0===i?void 0:i.x,ee=null===(o=G.arrow)||void 0===o?void 0:o.y,et=(null===(a=G.arrow)||void 0===a?void 0:a.centerOffset)!==0,[er,en]=(0,w.useState)();V(()=>{k&&en(window.getComputedStyle(k).zIndex)},[k]);let{hasParent:ei,positionUpdateFns:eo}=h6(h2,d),ea=!ei;(0,w.useLayoutEffect)(()=>{if(!ea)return eo.add(Z),()=>{eo.delete(Z)}},[ea,eo,Z]),V(()=>{ea&&Y&&Array.from(eo).reverse().forEach(e=>requestAnimationFrame(e))},[ea,Y,eo]);let es={"data-side":X,"data-align":K,...j,ref:_,style:{...j.style,animation:Y?void 0:"none",opacity:null!==(s=G.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,w.createElement)("div",{ref:z,"data-radix-popper-content-wrapper":"",style:{position:H,left:0,top:0,transform:Y?`translate3d(${Math.round($)}px, ${Math.round(W)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null===(l=G.transformOrigin)||void 0===l?void 0:l.x,null===(u=G.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,w.createElement)(h4,{scope:d,placedSide:X,onArrowChange:M,arrowX:Q,arrowY:ee,shouldHideArrow:et},ea?(0,w.createElement)(h5,{scope:d,hasParent:!0,positionUpdateFns:eo},(0,w.createElement)(hZ.div,es)):(0,w.createElement)(hZ.div,es)))}),h7={top:"bottom",right:"left",bottom:"top",left:"right"};function h9(e){return void 0!==e}function pe(e){return null!==e}let pt=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:r}=e,{width:n,height:i}=t.reference;return r.floating.style.setProperty("--radix-popper-anchor-width",`${n}px`),r.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),pr=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=pn(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(n=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==n?n: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 pn(e){let[t,r="center"]=e.split("-");return[t,r]}let pi=e=>{let{__scopePopper:t,children:r}=e,[n,i]=(0,w.useState)(null);return(0,w.createElement)(hQ,{scope:t,anchor:n,onAnchorChange:i},r)},po=(0,w.forwardRef)((e,t)=>{var r;let{container:n=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...i}=e;return n?D.createPortal((0,w.createElement)(hZ.div,S({},i,{ref:t})),n):null}),pa="dismissableLayer.update",ps=(0,w.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pl=(0,w.forwardRef)((e,t)=>{var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,w.useContext)(ps),[f,h]=(0,w.useState)(null),p=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null==globalThis?void 0:globalThis.document,[,m]=(0,w.useState)({}),v=A(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,j=x>=b,C=function(e,t=null==globalThis?void 0:globalThis.document){let r=P(e),n=(0,w.useRef)(!1),i=(0,w.useRef)(()=>{});return(0,w.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function o(){pc("dismissableLayer.pointerDownOutside",r,n,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));!j||r||(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 r=P(e),n=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=e=>{e.target&&!n.current&&pc("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));r||(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 r=P(e);(0,w.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[r,t])}(e=>{let t=x===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,w.useEffect)(()=>{if(f)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(i=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pu(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=i)}},[f,p,n,d]),(0,w.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pu())},[f,d]),(0,w.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pa,e),()=>document.removeEventListener(pa,e)},[]),(0,w.createElement)(hZ.div,S({},c,{ref:v,style:{pointerEvents:E?j?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,k.onFocusCapture),onBlurCapture:R(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,C.onPointerDownCapture)}))});function pu(){let e=new CustomEvent(pa);document.dispatchEvent(e)}function pc(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});(t&&i.addEventListener(e,t,{once:!0}),n)?i&&(0,D.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let pd="HoverCard",[pf,ph]=C(pd,[hJ]),pp=hJ(),[pm,pv]=pf(pd),pg=(0,w.forwardRef)((e,t)=>{let{__scopeHoverCard:r,...n}=e,i=pv("HoverCardTrigger",r),o=pp(r);return(0,w.createElement)(h1,S({asChild:!0},o),(0,w.createElement)(hZ.a,S({"data-state":i.open?"open":"closed"},n,{ref:t,onPointerEnter:R(e.onPointerEnter,pj(i.onOpen)),onPointerLeave:R(e.onPointerLeave,pj(i.onClose)),onFocus:R(e.onFocus,i.onOpen),onBlur:R(e.onBlur,i.onClose),onTouchStart:R(e.onTouchStart,e=>e.preventDefault())})))}),py="HoverCardPortal",[pb,px]=pf(py,{forceMount:void 0}),pw="HoverCardContent",pE=(0,w.forwardRef)((e,t)=>{let r=px(pw,e.__scopeHoverCard),{forceMount:n=r.forceMount,...i}=e,o=pv(pw,e.__scopeHoverCard);return(0,w.createElement)(B,{present:n||o.open},(0,w.createElement)(pS,S({"data-state":o.open?"open":"closed"},i,{onPointerEnter:R(e.onPointerEnter,pj(o.onOpen)),onPointerLeave:R(e.onPointerLeave,pj(o.onClose)),ref:t})))}),pS=(0,w.forwardRef)((e,t)=>{let{__scopeHoverCard:r,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,...l}=e,u=pv(pw,r),c=pp(r),d=(0,w.useRef)(null),f=A(t,d),[h,p]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{if(h){let e=document.body;return o=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=o,e.style.webkitUserSelect=o}}},[h]),(0,w.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(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,w.useEffect)(()=>{if(d.current){let e=function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t}(d.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,w.createElement)(pl,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:R(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,w.createElement)(h8,S({},c,l,{onPointerDown:R(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 pj(e){return t=>"touch"===t.pointerType?void 0:e()}let pC=e=>{let{__scopeHoverCard:t,children:r,open:n,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=pp(t),u=(0,w.useRef)(0),c=(0,w.useRef)(0),d=(0,w.useRef)(!1),f=(0,w.useRef)(!1),[h=!1,p]=L({prop:n,defaultProp:i,onChange:o}),m=(0,w.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,w.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,w.useCallback)(()=>p(!1),[p]);return(0,w.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,w.createElement)(pm,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,w.createElement)(pi,l,r))},pk=e=>{let{__scopeHoverCard:t,forceMount:r,children:n,container:i}=e,o=pv(py,t);return(0,w.createElement)(pb,{scope:t,forceMount:r},(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(po,{asChild:!0,container:i},n)))},pA=(0,ey.j)([ld,"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"]),pO=(0,ey.cx)(t9(),"max-w-sm","py-0.5","px-1"),p_={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},pT=w.forwardRef((e,t)=>{let{trigger:r,children:n,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=la({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(pC,{open:l,onOpenChange:u,...i,children:[r&&(0,x.jsx)(pg,{asChild:!0,children:r}),(0,x.jsx)(rR,{children:l?(0,x.jsx)(pk,{forceMount:!0,children:(0,x.jsx)(pE,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,x.jsx)(lo.div,{variants:p_,initial:"init",animate:"show",exit:"exit",className:pA(),children:(0,x.jsx)("div",{className:(0,ey.cx)(pO,a),children:n})})})}):null})]})}),pM=w.forwardRef((e,t)=>(0,x.jsx)("button",{...e,ref:t,className:(0,ey.cx)("select-none flex items-center gap-4 rounded py-4 px-4","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-200 dark:bg-graydark-50","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","disabled:opacity-50")}));function pN(e,t=[]){let r=[],n=()=>{let t=r.map(e=>(0,w.createContext)(e));return function(r){let n=(null==r?void 0:r[e])||t;return(0,w.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=(0,w.createContext)(n),o=r.length;function a(t){let{scope:r,children:n,...a}=t,s=(null==r?void 0:r[e][o])||i,l=(0,w.useMemo)(()=>a,Object.values(a));return(0,w.createElement)(s.Provider,{value:l},n)}return r=[...r,n],a.displayName=t+"Provider",[a,function(r,a){let s=(null==a?void 0:a[e][o])||i,l=(0,w.useContext)(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e),o=i[`__scope${n}`];return{...t,...o}},{});return(0,w.useMemo)(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}function pR(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function pP(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pL(...e){return(0,w.useCallback)(pP(...e),e)}let pD=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e,i=w.Children.toArray(r),o=i.find(pV);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:w.Children.count(e)>1?w.Children.only(null):(0,w.isValidElement)(e)?e.props.children:null);return(0,w.createElement)(pI,S({},n,{ref:t}),(0,w.isValidElement)(e)?(0,w.cloneElement)(e,void 0,r):null)}return(0,w.createElement)(pI,S({},n,{ref:t}),r)});pD.displayName="Slot";let pI=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,w.isValidElement)(r)?(0,w.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n],a=/^on[A-Z]/.test(n);a?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?pP(t,r.ref):r.ref}):w.Children.count(r)>1?w.Children.only(null):null});pI.displayName="SlotClone";let pF=({children:e})=>(0,w.createElement)(w.Fragment,null,e);function pV(e){return(0,w.isValidElement)(e)&&e.type===pF}let pB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,w.forwardRef)((e,r)=>{let{asChild:n,...i}=e,o=n?pD:t;return(0,w.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,w.createElement)(o,S({},i,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function pU(e){let t=(0,w.useRef)(e);return(0,w.useEffect)(()=>{t.current=e}),(0,w.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}let pz=(null==globalThis?void 0:globalThis.document)?w.useLayoutEffect:()=>{},pH=e=>{let{present:t,children:r}=e,n=function(e){var t;let[r,n]=(0,w.useState)(),i=(0,w.useRef)({}),o=(0,w.useRef)(e),a=(0,w.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,w.useReducer)((e,r)=>{let n=t[e][r];return null!=n?n:e},s));return(0,w.useEffect)(()=>{let e=p$(i.current);a.current="mounted"===l?e:"none"},[l]),pz(()=>{let t=i.current,r=o.current,n=r!==e;if(n){let n=a.current,i=p$(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):r&&n!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),pz(()=>{if(r){let e=e=>{let t=p$(i.current),n=t.includes(e.animationName);e.target===r&&n&&(0,D.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(a.current=p$(i.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,w.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}(t),i="function"==typeof r?r({present:n.isPresent}):w.Children.only(r),o=pL(n.ref,i.ref),a="function"==typeof r;return a||n.isPresent?(0,w.cloneElement)(i,{ref:o}):null};function p$(e){return(null==e?void 0:e.animationName)||"none"}pH.displayName="Presence";let pW=E["useId".toString()]||(()=>void 0),pq=0;function pG(e){let t=e+"CollectionProvider",[r,n]=pN(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=w.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(a,r),s=pL(t,i.collectionRef);return w.createElement(pD,{ref:s},n)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=w.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=w.useRef(null),s=pL(t,a),c=o(l,r);return w.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),w.createElement(pD,{[u]:"",ref:s},n)});return[{Provider:e=>{let{scope:t,children:r}=e,n=w.useRef(null),o=w.useRef(new Map).current;return w.createElement(i,{scope:t,itemMap:o,collectionRef:n},r)},Slot:s,ItemSlot:c},function(t){let r=o(e+"CollectionConsumer",t),n=w.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),n=Array.from(r.itemMap.values()),i=n.sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current));return i},[r.collectionRef,r.itemMap]);return n},n]}let pZ="dismissableLayer.update",pY=(0,w.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pX=(0,w.forwardRef)((e,t)=>{var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,w.useContext)(pY),[f,h]=(0,w.useState)(null),p=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null==globalThis?void 0:globalThis.document,[,m]=(0,w.useState)({}),v=pL(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,j=x>=b,C=function(e,t=null==globalThis?void 0:globalThis.document){let r=pU(e),n=(0,w.useRef)(!1),i=(0,w.useRef)(()=>{});return(0,w.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function o(){pJ("dismissableLayer.pointerDownOutside",r,n,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));!j||r||(null==o||o(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),k=function(e,t=null==globalThis?void 0:globalThis.document){let r=pU(e),n=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=e=>{e.target&&!n.current&&pJ("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));r||(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 r=pU(e);(0,w.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[r,t])}(e=>{let t=x===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,w.useEffect)(()=>{if(f)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(a=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pK(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=a)}},[f,p,n,d]),(0,w.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pK())},[f,d]),(0,w.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pZ,e),()=>document.removeEventListener(pZ,e)},[]),(0,w.createElement)(pB.div,S({},c,{ref:v,style:{pointerEvents:E?j?"auto":"none":void 0,...e.style},onFocusCapture:pR(e.onFocusCapture,k.onFocusCapture),onBlurCapture:pR(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pR(e.onPointerDownCapture,C.onPointerDownCapture)}))});function pK(){let e=new CustomEvent(pZ);document.dispatchEvent(e)}function pJ(e,t,r,{discrete:n}){var i,o;let a=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?(i=a,o=s,i&&(0,D.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,w.createElement)(pB.span,S({},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 pQ="NavigationMenu",[p0,p1,p2]=pG(pQ),[p4,p3,p5]=pG(pQ),[p6,p8]=pN(pQ,[p2,p5]),[p7,p9]=p6(pQ),[me,mt]=p6(pQ),[mr,mn]=p6("NavigationMenuItem"),mi=((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=p9("NavigationMenuIndicator",r),o=p1(r),[a,s]=(0,w.useState)(null),[l,u]=(0,w.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,w.useEffect)(()=>{var e;let t=o(),r=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;r&&s(r)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return mc(a,f),mc(i.indicatorTrack,f),l?(0,w.createElement)(pB.div,S({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},n,{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)`},...n.style}})):null},"NavigationMenuContent"),mo=((e,t)=>{let r=p9(mi,e.__scopeNavigationMenu),{onViewportContentChange:n,onViewportContentRemove:i}=r;return pz(()=>{n(e.value,{ref:t,...e})},[e,t,n]),pz(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),ma=(0,w.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,value:n,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=p9(mi,r),d=(0,w.useRef)(null),f=pL(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,n),p=function(e,t){return`${e}-content-${t}`}(c.baseId,n),m=p1(r),v=(0,w.useRef)(null),{onItemDismiss:g}=c;(0,w.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(mo,t),()=>e.removeEventListener(mo,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,w.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let r=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=n===c.value,a=i===t.indexOf(n);if(!o&&!a)return v.current;let s=(()=>{if(r!==i){if(o&&-1!==i)return r>i?"from-end":"from-start";if(a&&-1!==r)return r>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,n]);return(0,w.createElement)(ms,{asChild:!0},(0,w.createElement)(pX,S({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(mo,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:pR(e.onFocusOutside,e=>{var t;l();let r=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(r)&&e.preventDefault()}),onPointerDownOutside:pR(e.onPointerDownOutside,e=>{var t;let r=e.target,n=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(r)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(r));(n||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:pR(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,r="Tab"===e.key&&!t;if(r){let t=function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(e.currentTarget),r=document.activeElement,i=t.findIndex(e=>e===r),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(mu(s))e.preventDefault();else{var n;null===(n=o.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:pR(e.onEscapeKeyDown,e=>{a.current=!0})})))}),ms=((e,t)=>{let{__scopeNavigationMenu:r,children:n,...i}=e,o=p9("NavigationMenuViewport",r),a=pL(t,o.onViewportChange),s=mt(mi,e.__scopeNavigationMenu),[l,u]=(0,w.useState)(null),[c,d]=(0,w.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 mc(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,w.createElement)(pB.div,S({"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:pR(e.onPointerEnter,o.onContentEnter),onPointerLeave:pR(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:r,...n}])=>{let i=m===e;return(0,w.createElement)(pH,{key:e,present:r||i},(0,w.createElement)(ma,S({},n,{ref:pP(t,e=>{i&&e&&d(e)})})))}))},(0,w.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=p9("FocusGroup",r);return(0,w.createElement)(p4.Provider,{scope:r},(0,w.createElement)(p4.Slot,{scope:r},(0,w.createElement)(pB.div,S({dir:i.dir},n,{ref:t}))))})),ml=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=p3(r),o=p9("FocusGroupItem",r);return(0,w.createElement)(p4.ItemSlot,{scope:r},(0,w.createElement)(pB.button,S({},n,{ref:t,onKeyDown:pR(e.onKeyDown,e=>{let t=["Home","End",...ml].includes(e.key);if(t){let t=i().map(e=>e.ref.current),r="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([r,"ArrowUp","End"].includes(e.key)&&t.reverse(),ml.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>mu(t)),e.preventDefault()}})})))};function mu(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function mc(e,t){let r=pU(t);pz(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}let md=["light","dark"],mf="(prefers-color-scheme: dark)",mh="undefined"==typeof window,mp=(0,w.createContext)(void 0),mm={setTheme:e=>{},themes:[]},mv=()=>{var e;return null!==(e=(0,w.useContext)(mp))&&void 0!==e?e:mm},mg=e=>(0,w.useContext)(mp)?w.createElement(w.Fragment,null,e.children):w.createElement(mb,e),my=["light","dark"],mb=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:i="theme",themes:o=my,defaultTheme:a=r?"system":"light",attribute:s="data-theme",value:l,children:u,nonce:c})=>{let[d,f]=(0,w.useState)(()=>mw(i,a)),[h,p]=(0,w.useState)(()=>mw(i)),m=l?Object.values(l):o,v=(0,w.useCallback)(e=>{let i=e;if(!i)return;"system"===e&&r&&(i=mS());let o=l?l[i]:i,u=t?mE():null,c=document.documentElement;if("class"===s?(c.classList.remove(...m),o&&c.classList.add(o)):o?c.setAttribute(s,o):c.removeAttribute(s),n){let e=md.includes(a)?a:null,t=md.includes(i)?i:e;c.style.colorScheme=t}null==u||u()},[]),g=(0,w.useCallback)(e=>{f(e);try{localStorage.setItem(i,e)}catch(e){}},[e]),y=(0,w.useCallback)(t=>{let n=mS(t);p(n),"system"===d&&r&&!e&&v("system")},[d,e]);(0,w.useEffect)(()=>{let e=window.matchMedia(mf);return e.addListener(y),y(e),()=>e.removeListener(y)},[y]),(0,w.useEffect)(()=>{let e=e=>{e.key===i&&g(e.newValue||a)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[g]),(0,w.useEffect)(()=>{v(null!=e?e:d)},[e,d]);let b=(0,w.useMemo)(()=>({theme:d,setTheme:g,forcedTheme:e,resolvedTheme:"system"===d?h:d,themes:r?[...o,"system"]:o,systemTheme:r?h:void 0}),[d,g,e,h,r,o]);return w.createElement(mp.Provider,{value:b},w.createElement(mx,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:n,storageKey:i,themes:o,defaultTheme:a,attribute:s,value:l,children:u,attrs:m,nonce:c}),u)},mx=(0,w.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:o,value:a,attrs:s,nonce:l})=>{let u="system"===o,c="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${s.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,d=i?md.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(e,t=!1,n=!0)=>{let o=a?a[e]:e,s=t?e+"|| ''":`'${o}'`,l="";return i&&n&&!t&&md.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||o?`c.add(${s})`:"null":o&&(l+=`d[s](n,${s})`),l},h=e?`!function(){${c}${f(e)}}()`:n?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${mf}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}${u?"":"else{"+f(o,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${d}}catch(t){}}();`;return w.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})},()=>!0),mw=(e,t)=>{let r;if(!mh){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},mE=()=>{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)}},mS=e=>(e||(e=window.matchMedia(mf)),e.matches?"dark":"light"),mj="Radio",[mC,mk]=C(mj),[mA,mO]=mC(mj),m_=(0,w.forwardRef)((e,t)=>{let{__scopeRadio:r,"aria-labelledby":n,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,w.useState)(null),h=A(t,e=>f(e)),p=fd(d),m=(0,w.useRef)(!1),v=!d||!!d.closest("form");return(0,w.createElement)(mA,{scope:r,checked:o,disabled:s},(0,w.createElement)(I.button,S({type:"button",role:"radio","aria-checked":o,"aria-labelledby":n||p,"data-state":mM(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:R(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,w.createElement)(mT,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),mT=((e,t)=>{let{__scopeRadio:r,forceMount:n,...i}=e,o=mO("RadioIndicator",r);return(0,w.createElement)(B,{present:n||o.checked},(0,w.createElement)(I.span,S({"data-state":mM(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))},e=>{let{control:t,checked:r,bubbles:n=!0,...i}=e,o=(0,w.useRef)(null),a=hM(r),s=tv(t);return(0,w.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==r&&s){let t=new Event("click",{bubbles:n});s.call(e,r),e.dispatchEvent(t)}},[a,r,n]),(0,w.createElement)("input",S({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))});function mM(e){return e?"checked":"unchecked"}let mN=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],mR="RadioGroup",[mP,mL]=C(mR,[cF,mk]),mD=cF(),mI=mk(),[mF,mV]=mP(mR),mB=(0,w.forwardRef)((e,t)=>{let{__scopeRadioGroup:r,name:n,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=fd(),p=mD(r),m=uJ(u),[v,g]=L({prop:a,defaultProp:o,onChange:d});return(0,w.createElement)(mF,{scope:r,name:n,required:s,value:v,onValueChange:g},(0,w.createElement)(cU,S({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,w.createElement)(I.div,S({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),mU=(0,w.forwardRef)((e,t)=>{let{__scopeRadioGroup:r,disabled:n,...i}=e,o=mV("RadioGroupItem",r),a=mD(r),s=mI(r),l=(0,w.useRef)(null),u=A(t,l),c=o.value===i.value,d=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=e=>{mN.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,w.createElement)(cH,S({asChild:!0},a,{focusable:!n,active:c}),(0,w.createElement)(m_,S({disabled:n,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:R(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:R(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),mz=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)(mU,{...n,ref:t,className:(0,ey.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",r)})});function mH(e){let{className:t,tooltipClassName:r,tabIndex:n}=e,{theme:i,setTheme:o}=mv();return(0,x.jsxs)(mB,{value:i,tabIndex:n,className:(0,ey.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,x.jsx)(mz,{value:"system",children:(0,x.jsx)(lh,{className:r,sideOffset:16,content:"System",children:(0,x.jsx)(lv.$Iz,{})})}),(0,x.jsx)(mz,{value:"light",children:(0,x.jsx)(lh,{className:r,sideOffset:16,content:"Light",children:(0,x.jsx)(lv.JaG,{})})}),(0,x.jsx)(mz,{value:"dark",children:(0,x.jsx)(lh,{className:r,sideOffset:16,content:"Dark",children:(0,x.jsx)(lv.osk,{})})})]})}var m$=r(72779),mW=r.n(m$),mq=["className","innerRef"];function mG(){return(mG=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,mq);return w.createElement("rect",mG({ref:r,className:mW()("visx-bar",t)},n))}var mY=["from","to","fill","className","innerRef"];function mX(){return(mX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,mY),u=r.x===i.x||r.y===i.y;return w.createElement("line",mX({ref:s,className:mW()("visx-line",a),x1:r.x,y1:r.y,x2:i.x,y2:i.y,fill:void 0===o?"transparent":o,shapeRendering:u?"crispEdges":"auto"},l))}var mJ=r(13980),mQ=r.n(mJ),m0=r(47440),m1=["top","left","transform","className","children","innerRef"];function m2(){return(m2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,m1);return w.createElement("g",m2({ref:a,className:mW()("visx-group",i),transform:n||"translate("+(void 0===r?0:r)+", "+(void 0===t?0:t)+")"},s),o)}m4.propTypes={top:mQ().number,left:mQ().number,transform:mQ().string,className:mQ().string,children:mQ().node,innerRef:mQ().oneOfType([mQ().string,mQ().func,mQ().object])};var m3=r(19067);function m5(e,t){return"ticks"in e?e.ticks(t):e.domain().filter(function(e,r,n){return null==t||n.length<=t||r%Math.round((n.length-1)/t)==0})}function m6(e){if(("function"==typeof e||"object"==typeof e&&e)&&"valueOf"in e){var t=e.valueOf();if("number"==typeof t)return t}return e}function m8(e){return"bandwidth"in e?e.bandwidth():0}var m7=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function m9(){return(m9=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,m7),g=null!=m?m:m5(n,void 0===f?10:f),y=(null!=p?p:0)+m8(n)/2,b=g.map(function(e,t){var r,o=(null!=(r=m6(n(e)))?r:0)+y;return{index:t,from:new m3.Z({x:0,y:o}),to:new m3.Z({x:i,y:o})}});return w.createElement(m4,{className:mW()("visx-rows",c),top:void 0===t?0:t,left:void 0===r?0:r},d?d({lines:b}):b.map(function(e){var t=e.from,r=e.to,n=e.index;return w.createElement(m0.Z,m9({key:"row-line-"+n,from:t,to:r,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}ve.propTypes={tickValues:mQ().array,width:mQ().number.isRequired};var vt=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function vr(){return(vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,vt),g=null!=p?p:m5(n,void 0===d?10:d),y=(null!=h?h:0)+m8(n)/2,b=g.map(function(e,t){var r,o=(null!=(r=m6(n(e)))?r:0)+y;return{index:t,from:new m3.Z({x:o,y:0}),to:new m3.Z({x:o,y:i})}});return w.createElement(m4,{className:mW()("visx-columns",c),top:void 0===t?0:t,left:void 0===r?0:r},m?m({lines:b}):b.map(function(e){var t=e.from,r=e.to,n=e.index;return w.createElement(m0.Z,vr({key:"column-line-"+n,from:t,to:r,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}vn.propTypes={tickValues:mQ().array,height:mQ().number.isRequired};var vi=Math.sqrt(50),vo=Math.sqrt(10),va=Math.sqrt(2);function vs(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=vi?i*=10:o>=vo?i*=5:o>=va&&(i*=2),t0))return s;do s.push(a=new Date(+r)),t(r,o),e(r);while(a=t)for(;e(t),!r(t);)t.setTime(t-1)},function(e,n){if(e>=e){if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}})},r&&(i.count=function(t,n){return vf.setTime(+t),vh.setTime(+n),e(vf),e(vh),Math.floor(r(vf,vh))},i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(n?function(t){return n(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var vm=vp(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});vm.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?vp(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):vm:null},vm.range;var vv=vp(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()});vv.range;var vg=vp(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()});vg.range;var vy=vp(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});vy.range;var vb=vp(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/vl,e=>e.getDate()-1);function vx(e){return vp(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())*6e4)/vu})}vb.range;var vw=vx(0),vE=vx(1),vS=vx(2),vj=vx(3),vC=vx(4),vk=vx(5),vA=vx(6);vw.range,vE.range,vS.range,vj.range,vC.range,vk.range,vA.range;var vO=vp(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()});vO.range;var v_=vp(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()});v_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vp(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null},v_.range;var vT=vp(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()});vT.range;var vM=vp(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()});vM.range;var vN=vp(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/vl},function(e){return e.getUTCDate()-1});function vR(e){return vp(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/vu})}vN.range;var vP=vR(0),vL=vR(1),vD=vR(2),vI=vR(3),vF=vR(4),vV=vR(5),vB=vR(6);vP.range,vL.range,vD.range,vI.range,vF.range,vV.range,vB.range;var vU=vp(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});vU.range;var vz=vp(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});function vH(e,t,r,n,i,o){let a=[[vv,1,1e3],[vv,5,5e3],[vv,15,15e3],[vv,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,vl],[n,2,2*vl],[r,1,vu],[t,1,vc],[t,3,3*vc],[e,1,vd]];function s(t,r,n){let i=Math.abs(r-t)/n,o=(function(e){let t=e,r=e;function n(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;0>r(e[o],t)?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>{var n;return(n=e(t))r?1:n>=r?0:NaN}),{left:n,center:function(e,r,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=n(e,r,i,o-1);return a>i&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;r(e[o],t)>0?i=o:n=o+1}return n}}})(([,,e])=>e).right(a,i);if(o===a.length)return e.every(vs(t/vd,r/vd,n));if(0===o)return vm.every(Math.max(vs(t,r,n),1));let[s,l]=a[i/a[o-1][2]0?vp(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null},vz.range;let[v$,vW]=vH(vz,vU,vP,vN,vM,vT),[vq,vG]=vH(v_,vO,vw,vb,vy,vg);function vZ(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function vY(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function vX(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var vK={"-":"",_:" ",0:"0"},vJ=/^\s*\d+/,vQ=/^%/,v0=/[\\^$*+?|[\]().{}]/g;function v1(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o[e.toLowerCase(),t]))}function v5(e,t,r){var n=vJ.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function v6(e,t,r){var n=vJ.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function v8(e,t,r){var n=vJ.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function v7(e,t,r){var n=vJ.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function v9(e,t,r){var n=vJ.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function ge(e,t,r){var n=vJ.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function gt(e,t,r){var n=vJ.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function gr(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function gn(e,t,r){var n=vJ.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function gi(e,t,r){var n=vJ.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function go(e,t,r){var n=vJ.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function ga(e,t,r){var n=vJ.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function gs(e,t,r){var n=vJ.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function gl(e,t,r){var n=vJ.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function gu(e,t,r){var n=vJ.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function gc(e,t,r){var n=vJ.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function gd(e,t,r){var n=vJ.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function gf(e,t,r){var n=vQ.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function gh(e,t,r){var n=vJ.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function gp(e,t,r){var n=vJ.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function gm(e,t){return v1(e.getDate(),t,2)}function gv(e,t){return v1(e.getHours(),t,2)}function gg(e,t){return v1(e.getHours()%12||12,t,2)}function gy(e,t){return v1(1+vb.count(v_(e),e),t,3)}function gb(e,t){return v1(e.getMilliseconds(),t,3)}function gx(e,t){return gb(e,t)+"000"}function gw(e,t){return v1(e.getMonth()+1,t,2)}function gE(e,t){return v1(e.getMinutes(),t,2)}function gS(e,t){return v1(e.getSeconds(),t,2)}function gj(e){var t=e.getDay();return 0===t?7:t}function gC(e,t){return v1(vw.count(v_(e)-1,e),t,2)}function gk(e){var t=e.getDay();return t>=4||0===t?vC(e):vC.ceil(e)}function gA(e,t){return e=gk(e),v1(vC.count(v_(e),e)+(4===v_(e).getDay()),t,2)}function gO(e){return e.getDay()}function g_(e,t){return v1(vE.count(v_(e)-1,e),t,2)}function gT(e,t){return v1(e.getFullYear()%100,t,2)}function gM(e,t){return v1((e=gk(e)).getFullYear()%100,t,2)}function gN(e,t){return v1(e.getFullYear()%1e4,t,4)}function gR(e,t){var r=e.getDay();return v1((e=r>=4||0===r?vC(e):vC.ceil(e)).getFullYear()%1e4,t,4)}function gP(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+v1(t/60|0,"0",2)+v1(t%60,"0",2)}function gL(e,t){return v1(e.getUTCDate(),t,2)}function gD(e,t){return v1(e.getUTCHours(),t,2)}function gI(e,t){return v1(e.getUTCHours()%12||12,t,2)}function gF(e,t){return v1(1+vN.count(vz(e),e),t,3)}function gV(e,t){return v1(e.getUTCMilliseconds(),t,3)}function gB(e,t){return gV(e,t)+"000"}function gU(e,t){return v1(e.getUTCMonth()+1,t,2)}function gz(e,t){return v1(e.getUTCMinutes(),t,2)}function gH(e,t){return v1(e.getUTCSeconds(),t,2)}function g$(e){var t=e.getUTCDay();return 0===t?7:t}function gW(e,t){return v1(vP.count(vz(e)-1,e),t,2)}function gq(e){var t=e.getUTCDay();return t>=4||0===t?vF(e):vF.ceil(e)}function gG(e,t){return e=gq(e),v1(vF.count(vz(e),e)+(4===vz(e).getUTCDay()),t,2)}function gZ(e){return e.getUTCDay()}function gY(e,t){return v1(vL.count(vz(e)-1,e),t,2)}function gX(e,t){return v1(e.getUTCFullYear()%100,t,2)}function gK(e,t){return v1((e=gq(e)).getUTCFullYear()%100,t,2)}function gJ(e,t){return v1(e.getUTCFullYear()%1e4,t,4)}function gQ(e,t){var r=e.getUTCDay();return v1((e=r>=4||0===r?vF(e):vF.ceil(e)).getUTCFullYear()%1e4,t,4)}function g0(){return"+0000"}function g1(){return"%"}function g2(e){return+e}function g4(e){return Math.floor(+e/1e3)}function g3(e,t){return et?1:e>=t?0:NaN}function g5(e){let t=e,r=e;function n(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;0>r(e[o],t)?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>g3(e(t),r)),{left:n,center:function(e,r,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=n(e,r,i,o-1);return a>i&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;r(e[o],t)>0?i=o:n=o+1}return n}}}w2=(w1=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=v4(i),c=v3(i),d=v4(o),f=v3(o),h=v4(a),p=v3(a),m=v4(s),v=v3(s),g=v4(l),y=v3(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:gm,e:gm,f:gx,g:gM,G:gR,H:gv,I:gg,j:gy,L:gb,m:gw,M:gE,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:g2,s:g4,S:gS,u:gj,U:gC,V:gA,w:gO,W:g_,x:null,X:null,y:gT,Y:gN,Z:gP,"%":g1},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:gL,e:gL,f:gB,g:gK,G:gQ,H:gD,I:gI,j:gF,L:gV,m:gU,M:gz,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:g2,s:g4,S:gH,u:g$,U:gW,V:gG,w:gZ,W:gY,x:null,X:null,y:gX,Y:gJ,Z:g0,"%":g1},w={a:function(e,t,r){var n=h.exec(t.slice(r));return n?(e.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=f.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=g.exec(t.slice(r));return n?(e.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return j(e,t,r,n)},d:go,e:go,f:gd,g:gt,G:ge,H:gs,I:gs,j:ga,L:gc,m:gi,M:gl,p:function(e,t,r){var n=u.exec(t.slice(r));return n?(e.p=c.get(n[0].toLowerCase()),r+n[0].length):-1},q:gn,Q:gh,s:gp,S:gu,u:v6,U:v8,V:v7,w:v5,W:v9,x:function(e,t,n){return j(e,r,t,n)},X:function(e,t,r){return j(e,n,t,r)},y:gt,Y:ge,Z:gr,"%":gf};function E(e,t){return function(r){var n,i,o,a=[],s=-1,l=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++s53)return null;"w"in o||(o.w=1),"Z"in o?(n=(i=(n=vY(vX(o.y,0,1))).getUTCDay())>4||0===i?vL.ceil(n):vL(n),n=vN.offset(n,(o.V-1)*7),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(n=(i=(n=vZ(vX(o.y,0,1))).getDay())>4||0===i?vE.ceil(n):vE(n),n=vb.offset(n,(o.V-1)*7),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?vY(vX(o.y,0,1)).getUTCDay():vZ(vX(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,vY(o)):vZ(o)}}function j(e,t,r,n){for(var i,o,a=0,s=t.length,l=r.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=w[(i=t.charAt(a++))in vK?t.charAt(a++):i])||(n=o(e,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return b.x=E(r,b),b.X=E(n,b),b.c=E(t,b),x.x=E(r,x),x.X=E(n,x),x.c=E(t,x),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(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,w1.parse,w1.utcFormat,w1.utcParse;let g6=g5(g3),g8=g6.right;function g7(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function g9(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ye(){}g6.left,g5(function(e){return null===e?NaN:+e}).center;var yt="\\s*([+-]?\\d+)\\s*",yr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",yn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yi=/^#([0-9a-f]{3,8})$/,yo=RegExp("^rgb\\("+[yt,yt,yt]+"\\)$"),ya=RegExp("^rgb\\("+[yn,yn,yn]+"\\)$"),ys=RegExp("^rgba\\("+[yt,yt,yt,yr]+"\\)$"),yl=RegExp("^rgba\\("+[yn,yn,yn,yr]+"\\)$"),yu=RegExp("^hsl\\("+[yr,yn,yn]+"\\)$"),yc=RegExp("^hsla\\("+[yr,yn,yn,yr]+"\\)$"),yd={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 yf(){return this.rgb().formatHex()}function yh(){return this.rgb().formatRgb()}function yp(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=yi.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ym(t):3===r?new yb(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?yv(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?yv(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=yo.exec(e))?new yb(t[1],t[2],t[3],1):(t=ya.exec(e))?new yb(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ys.exec(e))?yv(t[1],t[2],t[3],t[4]):(t=yl.exec(e))?yv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=yu.exec(e))?yS(t[1],t[2]/100,t[3]/100,1):(t=yc.exec(e))?yS(t[1],t[2]/100,t[3]/100,t[4]):yd.hasOwnProperty(e)?ym(yd[e]):"transparent"===e?new yb(NaN,NaN,NaN,0):null}function ym(e){return new yb(e>>16&255,e>>8&255,255&e,1)}function yv(e,t,r,n){return n<=0&&(e=t=r=NaN),new yb(e,t,r,n)}function yg(e){return(e instanceof ye||(e=yp(e)),e)?(e=e.rgb(),new yb(e.r,e.g,e.b,e.opacity)):new yb}function yy(e,t,r,n){return 1==arguments.length?yg(e):new yb(e,t,r,null==n?1:n)}function yb(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function yx(){return"#"+yE(this.r)+yE(this.g)+yE(this.b)}function yw(){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 yE(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function yS(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new yk(e,t,r,n)}function yj(e){if(e instanceof yk)return new yk(e.h,e.s,e.l,e.opacity);if(e instanceof ye||(e=yp(e)),!e)return new yk;if(e instanceof yk)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+(r0&&l<1?0:a,new yk(a,s,l,e.opacity)}function yC(e,t,r,n){return 1==arguments.length?yj(e):new yk(e,t,r,null==n?1:n)}function yk(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function yA(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function yO(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}function y_(e){return function(){return e}}function yT(e,t){return function(r){return e+r*t}}function yM(e,t){var r=t-e;return r?yT(e,r>180||r<-180?r-360*Math.round(r/360):r):y_(isNaN(e)?t:e)}function yN(e,t){var r=t-e;return r?yT(e,r):y_(isNaN(e)?t:e)}g7(ye,yp,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:yf,formatHex:yf,formatHsl:function(){return yj(this).formatHsl()},formatRgb:yh,toString:yh}),g7(yb,yy,g9(ye,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new yb(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new yb(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:yx,formatHex:yx,formatRgb:yw,toString:yw})),g7(yk,yC,g9(ye,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new yk(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new yk(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new yb(yA(e>=240?e-240:e+120,i,n),yA(e,i,n),yA(e<120?e+240:e-120,i,n),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+")")}}));var yR=function e(t){var r,n=1==(r=+(r=t))?yN:function(e,t){var n,i,o;return t-e?(n=e,i=t,n=Math.pow(n,o=r),i=Math.pow(i,o)-n,o=1/o,function(e){return Math.pow(n+e*i,o)}):y_(isNaN(e)?t:e)};function i(e,t){var r=n((e=yy(e)).r,(t=yy(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=yN(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function yP(e){return function(t){var r,n,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(r=0;r=1?(r=1,t-1):Math.floor(r*t),i=e[n],o=e[n+1],a=n>0?e[n-1]:2*i-o,s=ns&&(a=t.slice(s,a),u[l]?u[l]+=a:u[++l]=a),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:yL(i,o)})),s=yI.lastIndex;return st&&(r=e,e=t,t=r),u=function(r){return Math.max(e,Math.min(t,r))}),n=l>2?y$:yH,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?r:(i||(i=n(a.map(e),s,l)))(e(u(t)))}return d.invert=function(r){return u(t((o||(o=n(s,a.map(e),yL)))(r)))},d.domain=function(e){return arguments.length?(a=Array.from(e,yV),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=yF,c()},d.clamp=function(e){return arguments.length?(u=!!e||yU,c()):u!==yU},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(r=e,d):r},function(r,n){return e=r,t=n,c()}})()(yU,yU)}function yG(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function yZ(e){return new Date(e)}function yY(e){return e instanceof Date?+e:+new Date(+e)}var yX=Math.PI/180,yK=180/Math.PI,yJ=4/29,yQ=6/29,y0=3*(6/29)*(6/29),y1=6/29*(6/29)*(6/29);function y2(e){if(e instanceof y3)return new y3(e.l,e.a,e.b,e.opacity);if(e instanceof be)return bt(e);e instanceof yb||(e=yg(e));var t,r,n=y7(e.r),i=y7(e.g),o=y7(e.b),a=y5((.2225045*n+.7168786*i+.0606169*o)/1);return n===i&&i===o?t=r=a:(t=y5((.4360747*n+.3850649*i+.1430804*o)/.96422),r=y5((.0139322*n+.0971045*i+.7141733*o)/.82521)),new y3(116*a-16,500*(t-a),200*(a-r),e.opacity)}function y4(e,t,r,n){return 1==arguments.length?y2(e):new y3(e,t,r,null==n?1:n)}function y3(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function y5(e){return e>y1?Math.pow(e,1/3):e/y0+yJ}function y6(e){return e>yQ?e*e*e:y0*(e-yJ)}function y8(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function y7(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function y9(e,t,r,n){return 1==arguments.length?function(e){if(e instanceof be)return new be(e.h,e.c,e.l,e.opacity);if(e instanceof y3||(e=y2(e)),0===e.a&&0===e.b)return new be(NaN,0=0?(o>=bw?10:o>=bE?5:o>=bS?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=bw?10:o>=bE?5:o>=bS?2:1)}var bC=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bk(e){var t;if(!(t=bC.exec(e)))throw Error("invalid format: "+e);return new bA({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 bA(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+""}function bO(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function b_(e){return(e=bO(Math.abs(e)))?e[1]:NaN}function bT(e,t){var r=bO(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}bk.prototype=bA.prototype,bA.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};var bM={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},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)=>bT(100*e,t),r:bT,s:function(e,t){var r=bO(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(w4=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+Array(1-o).join("0")+bO(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function bN(e){return e}var bR=Array.prototype.map,bP=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];w5=(w3=function(e){var t,r,n,i=void 0===e.grouping||void 0===e.thousands?bN:(t=bR.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[a=(a+1)%t.length];return o.reverse().join(r)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?bN:(n=bR.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return n[+e]})}),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=bk(e)).fill,r=e.align,n=e.sign,f=e.symbol,h=e.zero,p=e.width,m=e.comma,v=e.precision,g=e.trim,y=e.type;"n"===y?(m=!0,y="g"):bM[y]||(void 0===v&&(v=12),g=!0,y="g"),(h||"0"===t&&"="===r)&&(h=!0,t="0",r="=");var b="$"===f?o:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===f?a:/[%p]/.test(y)?u:"",w=bM[y],E=/[defgprs%]/.test(y);function S(e){var o,a,u,f=b,S=x;if("c"===y)S=w(e)+S,e="";else{var j=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:w(Math.abs(e),v),g&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),j&&0==+e&&"+"!==n&&(j=!1),f=(j?"("===n?n:c:"-"===n||"("===n?"":n)+f,S=("s"===y?bP[8+w4/3]:"")+S+(j&&"("===n?")":""),E){for(o=-1,a=e.length;++o(u=e.charCodeAt(o))||u>57){S=(46===u?s+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}}m&&!h&&(e=i(e,1/0));var C=f.length+e.length+S.length,k=C>1)+f+e+S+k.slice(C);break;default:e=k+f+e+S}return l(e)}return v=void 0===v?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return e+""},S}return{format:f,formatPrefix:function(e,t){var r=f(((e=bk(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(b_(t)/3))),i=Math.pow(10,-n),o=bP[8+n/3];return function(e){return r(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,w6=w3.formatPrefix;var bL=by("domain","range","reverse","clamp","interpolate","nice","round","zero");function bD(e){return bL(function e(){var t,r=yq();return r.copy=function(){return yW(r,e())},yG.apply(r,arguments),t=r.domain,r.ticks=function(e){var r=t();return function(e,t,r){var n,i,o,a,s=-1;if(r=+r,(e=+e)==(t=+t)&&r>0)return[e];if((n=t0){let r=Math.round(e/a),n=Math.round(t/a);for(r*at&&--n,o=Array(i=n-r+1);++st&&--n,o=Array(i=n-r+1);++s=bw?a*=10:s>=bE?a*=5:s>=bS&&(a*=2),t0;){if((i=bj(l,u,e))===n)return o[a]=l,o[s]=u,t(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else if(i<0)l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i;else break;n=i}return r},r}(),e)}function bI(e){var t=e.id,r=e.width,n=e.height,i=e.children;return w.createElement("defs",null,w.createElement("pattern",{id:t,width:r,height:n,patternUnits:"userSpaceOnUse"},i))}bI.propTypes={id:mQ().string.isRequired,width:mQ().number.isRequired,height:mQ().number.isRequired,children:mQ().node.isRequired};var bF={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function bV(e){var t=e.id,r=e.width,n=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 w.createElement(bI,{id:t,width:r,height:n},!!h&&w.createElement("rect",{className:mW()("visx-pattern-line-background"),width:r,height:n,fill:h}),m.map(function(e,r){return w.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+r,className:mW()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case bF.horizontal:return"M 0,"+t/2+" l "+t+",0";case bF.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 bF.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 bF.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:n}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}bV.propTypes={id:mQ().string.isRequired,width:mQ().number.isRequired,height:mQ().number.isRequired,className:mQ().string,background:mQ().string,stroke:mQ().string,strokeWidth:mQ().oneOfType([mQ().number,mQ().string]),strokeDasharray:mQ().oneOfType([mQ().string,mQ().number]),strokeLinecap:mQ().oneOf(["square","butt","round","inherit"]),shapeRendering:mQ().oneOfType([mQ().string,mQ().number]),orientation:mQ().array};var bB=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function bU(){return(bU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,bB);return w.createElement("div",bU({ref:t,className:mW()("visx-tooltip",r),style:bU({top:null==n||null==l?n:n+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function b$(){return(b$=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,bY),g=!1,y=!1;if(u&&l){var b=void 0===n?0:n,x=void 0===f?0:f;if(l.width){var E=b+o+u.width-l.width,S=u.width-b-o;g=E>0&&E>S}else{var j=b+o+u.width-window.innerWidth,C=u.width-b-o;g=j>0&&j>C}if(l.height){var k=x+s+u.height-l.height,A=u.height-x-s;y=k>0&&k>A}else y=x+s+u.height>window.innerHeight;b=g?b-u.width-o:b+o,x=y?x-u.height-s:x+s,t="translate("+(b=Math.round(b))+"px, "+(x=Math.round(x))+"px)"}return w.createElement(bH,bX({ref:m,style:bX({left:0,top:0,transform:t},!p&&d)},v),w.createElement(bZ,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},r))}bK.propTypes={nodeRef:mQ().oneOfType([mQ().string,mQ().func,mQ().object])};var bJ=((wY=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},r.nodeRef=w.createRef(),r.getRects=r.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,bW(t,e);var r=t.prototype;return r.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:D.findDOMNode(this),this.setState(function(){return t.getRects()})},r.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():bq,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():bq}},r.render=function(){return w.createElement(bK,b$({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(w.PureComponent)).displayName="withBoundingRects("+(bK.displayName||"")+")",wY),bQ=r(99985);function b0(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var r=e.range(),n=r[0],i=r[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-n)/Math.abs(i-n);if(a>0)for(;t>n+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-n),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return b9({},t,{isBrushing:!0,extent:b9({},t.extent,{x0:n+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,r=e.updateBrush,n=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||r(function(e){var t=b9({},e,{isBrushing:!1,start:b9({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:b9({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return n&&n(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,xe(t,e),t.prototype.render=function(){var e=this.props,t=e.width,r=e.height,n=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 w.createElement(bQ.Z,{width:t,height:r,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 w.createElement("g",null,h&&w.createElement("rect",{width:n,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:xt}),w.createElement("rect",b9({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:r,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}(w.Component);function xn(){return(xn=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-r),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-n);return xn({},e,{isBrushing:!0,extent:xn({},e.extent,{x0:r+s,y0:n+c,x1:o+s,y1:a+c})})}),"select"===i&&r.updateBrush(function(e){var t=e.start,n=t.x,i=t.y,o={x:Math.min(Math.max(n+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=r.getExtent(s,o);return xn({},e,{end:o,extent:a})})}},r.getExtent=function(e,t){var n=r.props,i=n.brushDirection,o=n.width,a=n.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)}},r.handleDragStart=function(e){var t=r.props,n=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=xn({},c);n&&n(c),r.updateBrush(function(t){return xn({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?b2(e.event):void 0})})},r.handleBrushStart=function(e){var t=r.props,n=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(n){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;n({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},r.handleDragMove=function(e){var t=r.props,n=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-n-s,y:(e.y||0)+e.dy-i-l};r.updateBrush(function(e){var t=e.start,n=r.getExtent(t,u);return xn({},e,{end:u,extent:n})})}},r.handleDragEnd=function(){var e=r.props,t=e.onBrushEnd,n=e.resetOnEnd;e.useWindowMoveEvents||r.updateBrush(function(e){var i=e.extent,o=xn({},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),n&&r.reset(),o})},r.getBrushWidth=function(){var e=r.state.extent,t=e.x0,n=e.x1;return Math.max(Math.max(t,n)-Math.min(t,n),0)},r.getBrushHeight=function(){var e=r.state.extent,t=e.y1,n=e.y0;return Math.max(Math.max(n,t)-Math.min(n,t),0)},r.handles=function(){var e=r.props.handleSize,t=r.state.extent,n=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=r.getBrushWidth(),u=r.getBrushHeight();return{top:{x:n-s,y:o-s,height:e,width:l+e},bottom:{x:n-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:n-s,y:o-s,height:u+e,width:e}}},r.corners=function(){var e=r.props.handleSize,t=r.state.extent,n=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(n,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(n,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(n,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(n,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},r.updateBrush=function(e){var t=r.props.onChange;r.setState(e,function(){t&&t(r.state)})},r.reset=function(){var e=r.props,t=e.width,n=e.height;r.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:n},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},r.handleBrushingTypeChange=function(e,t){r.updateBrush(function(r){var n=xn({},r,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(n.brushPageOffset=t),n})};var r,n=t.initialBrushPosition,i=n?r.getExtent(n.start,n.end):{x0:-1,x1:-1,y0:-1,y1:-1};return r.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:r.props.width,y0:0,y1:r.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,xi(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(r){var n=r.start,i=r.end,o=r.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;n={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(n,i)}return{start:n,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},r.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},r.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},r.render=function(){var e=this,t=this.state,r=t.start,n=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,E=this.handles(),S=this.corners(),j=this.getBrushWidth(),C=this.getBrushHeight(),k=new Set(p);return w.createElement(m4,{className:"visx-brush",top:o,left:a},w.createElement(bQ.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 r=t.dragStart,n=t.isDragging,i=t.dragMove,o=t.dragEnd;return w.createElement(mZ,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var r=e.mouseUpTime-e.mouseDownTime;h&&r=0||(i[r]=e[r]);return i}(e,xd),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"),w.createElement("defs",null,w.createElement("linearGradient",xf({id:r,x1:g,y1:b,x2:y,y2:x,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&w.createElement("stop",{offset:void 0===u?"0%":u,stopColor:n,stopOpacity:void 0===c?1:c}),!t&&w.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}function xp(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function xm(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function xv(){return 0}function xg(e,t){let r,n;if(void 0===t)for(let t of e)null!=t&&(void 0===r?t>=t&&(r=n=t):(r>t&&(r=t),n=o&&(r=n=o):(r>o&&(r=o),n=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r=i)&&(r=i)}return r}xh.propTypes={id:mQ().string.isRequired,from:mQ().string,to:mQ().string,x1:mQ().oneOfType([mQ().string,mQ().number]),x2:mQ().oneOfType([mQ().string,mQ().number]),y1:mQ().oneOfType([mQ().string,mQ().number]),y2:mQ().oneOfType([mQ().string,mQ().number]),fromOffset:mQ().oneOfType([mQ().string,mQ().number]),fromOpacity:mQ().oneOfType([mQ().string,mQ().number]),toOffset:mQ().oneOfType([mQ().string,mQ().number]),toOpacity:mQ().oneOfType([mQ().string,mQ().number]),rotate:mQ().oneOfType([mQ().string,mQ().number]),transform:mQ().string,children:mQ().node,vertical:mQ().bool};var xb=r(12436),xx=r.n(xb),xw=Math.PI,xE=2*xw,xS=xE-1e-6;function xj(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function xC(){return new xj}function xk(e){return function(){return e}}function xA(e){this._context=e}function xO(e){return new xA(e)}function x_(e){return e[0]}function xT(e){return e[1]}xj.prototype=xC.prototype={constructor:xj,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(e,t,r,n,i,o){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,r,n,i){e=+e,t=+t,r=+r,n=+n,i=+i;var o=this._x1,a=this._y1,s=r-e,l=n-t,u=o-e,c=a-t,d=u*u+c*c;if(i<0)throw Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>1e-6){if(Math.abs(c*s-l*u)>1e-6&&i){var f=r-o,h=n-a,p=s*s+l*l,m=Math.sqrt(p),v=Math.sqrt(d),g=i*Math.tan((xw-Math.acos((p+d-(f*f+h*h))/(2*m*v)))/2),y=g/v,b=g/m;Math.abs(y-1)>1e-6&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>u*h)+","+(this._x1=e+b*s)+","+(this._y1=t+b*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,r,n,i,o){e=+e,t=+t,r=+r,o=!!o;var a=r*Math.cos(n),s=r*Math.sin(n),l=e+a,u=t+s,c=1^o,d=o?n-i:i-n;if(r<0)throw Error("negative radius: "+r);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),r&&(d<0&&(d=d%xE+xE),d>xS?this._+="A"+r+","+r+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+r+","+r+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>1e-6&&(this._+="A"+r+","+r+",0,"+ +(d>=xw)+","+c+","+(this._x1=e+r*Math.cos(i))+","+(this._y1=t+r*Math.sin(i))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}},xA.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)}}};var xM=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function xN(){return(xN=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,xM),A=(r=(t={x:d,x0:f,x1:h,defined:void 0===x?function(){return!0}:x,curve:S}).x,n=t.x0,i=t.x1,o=t.y,a=t.y0,s=t.y1,l=t.defined,u=t.curve,c=function(){var e=x_,t=null,r=xk(0),n=xT,i=xk(!0),o=null,a=xO,s=null;function l(l){var u,c,d,f,h,p=l.length,m=!1,v=Array(p),g=Array(p);for(null==o&&(s=a(h=xC())),u=0;u<=p;++u){if(!(u=c;--d)s.point(v[d],g[d]);s.lineEnd(),s.areaEnd()}}m&&(v[u]=+e(f,u,l),g[u]=+r(f,u,l),s.point(t?+t(f,u,l):v[u],n?+n(f,u,l):g[u]))}if(h)return s=null,h+""||null}function u(){return(function(){var e=x_,t=xT,r=xk(!0),n=null,i=xO,o=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==n&&(o=i(u=xC())),s=0;s<=c;++s)!(s=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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}},xV.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:xF(this,this._t0,xI(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=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,xF(this,xI(this,r=xD(this,e,t)),r);break;default:xF(this,this._t0,r=xD(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},((function(e){this._context=new xB(e)}).prototype=Object.create(xV.prototype)).point=function(e,t){xV.prototype.point.call(this,t,e)},xB.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,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};var xz=["id","markerWidth","markerHeight","markerUnits","children"];function xH(){return(xH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,xz);return w.createElement("defs",null,w.createElement("marker",xH({id:t,markerWidth:void 0===r?3:r,markerHeight:void 0===n?3:n,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}x$.propTypes={id:mQ().string.isRequired,size:mQ().number,markerWidth:mQ().oneOfType([mQ().string,mQ().number]),markerHeight:mQ().oneOfType([mQ().string,mQ().number]),markerUnits:mQ().string,refX:mQ().oneOfType([mQ().string,mQ().number]),refY:mQ().oneOfType([mQ().string,mQ().number]),strokeWidth:mQ().number,children:mQ().node.isRequired};var xW=["id","size","strokeWidth"];function xq(){return(xq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,xW),s=2*n+o,l=s/2;return w.createElement(x$,xq({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),w.createElement("circle",{r:n,cx:l,cy:l}))}var xZ=r(32718),xY=r.n(xZ),xX=r(30733),xK=r.n(xX),xJ="__react_svg_text_measurement_id",xQ=xK()(function(e,t){try{var r=document.getElementById(xJ);if(!r){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("aria-hidden","true"),n.style.width="0",n.style.height="0",n.style.position="absolute",n.style.top="-100%",n.style.left="-100%",(r=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",xJ),n.appendChild(r),document.body.appendChild(n)}return Object.assign(r.style,t),r.textContent=e,r.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)}),x0=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function x1(e){return"number"==typeof e}function x2(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}var x4=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function x3(){return(x3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,x4)),P=R.x,L=void 0===P?0:P,D=R.fontSize,I=(r=void 0===(t=e.verticalAnchor)?"end":t,i=void 0!==(n=e.scaleToFit)&&n,o=e.angle,a=e.width,l=void 0===(s=e.lineHeight)?"1em":s,c=void 0===(u=e.capHeight)?"0.71em":u,d=e.children,f=e.style,m=void 0===(p=(h=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,x0)).x)?0:p,g=void 0===(v=h.y)?0:v,y=!x2(m)||!x2(g),x=(b=(0,w.useMemo)(function(){return{wordsWithWidth:(null==d?[]:d.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:xQ(e,f)||0}}),spaceWidth:xQ("\xa0",f)||0}},[d,f])).wordsWithWidth,E=b.spaceWidth,S=(0,w.useMemo)(function(){return y?[]:a||i?x.reduce(function(e,t){var r=t.word,n=t.wordWidth,o=e[e.length-1];return o&&(null==a||i||(o.width||0)+n+E0){var t=S[0].width||1,r="shrink-only"===i?Math.min(a/t,1):a/t,n=m-r*m,s=g-r*g;e.push("matrix("+r+", 0, 0, "+r+", "+n+", "+s+")")}return o&&e.push("rotate("+o+", "+m+", "+g+")"),e.length>0?e.join(" "):""},[y,m,g,a,i,S,o]),{wordsByLines:S,startDy:j,transform:C}),F=I.wordsByLines,V=I.startDy,B=I.transform;return w.createElement("svg",{ref:_,x:void 0===k?0:k,y:void 0===A?0:A,fontSize:D,style:x5},F.length>0?w.createElement("text",x3({ref:T,transform:B},R,{textAnchor:void 0===O?"start":O}),F.map(function(e,t){return w.createElement("tspan",{key:t,x:L,dy:0===t?V:N},e.words.join(" "))})):null)}var x8={top:"top",left:"left",bottom:"bottom"};function x7(){return(x7=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,wa),j=null!=g?g:"tickFormat"in v?v.tickFormat():wn,C=h===x8.left,k=h===x8.top,A=k||h===x8.bottom,O=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var r=e.bandwidth();return"center"===t&&(r/=2),e.round()&&(r=Math.round(r)),function(t){var n=e(t);return"number"==typeof n?n+r:n}}return e}(v),_=C||k?-1:1,T=v.range(),M=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:wo({start:0,end:0},t)),N=wi({x:Number(T[0])+.5-M.start,y:0},A),R=wi({x:Number(T[T.length-1])+.5+M.end,y:0},A),P=(null!=x?x:m5(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),L=P.map(function(e){var t=e.value,r=e.index,n=m6(O(t));return{value:t,index:r,from:wi({x:n,y:0},A),to:wi({x:n,y:b*_},A),formattedValue:j(t,r,P)}});return w.createElement(m4,{className:mW()("visx-axis",i),top:void 0===E?0:E,left:void 0===u?0:u},n(ws({},S,{axisFromPoint:N,axisToPoint:R,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:A,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:j,tickLength:b,tickPosition:O,tickSign:_,ticks:L})))}var wu=["axisClassName","labelOffset","tickLabelProps","tickLength"];function wc(){return(wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,wu);return w.createElement(wl,wc({axisClassName:mW()("visx-axis-bottom",t),labelOffset:void 0===r?8:r,orientation:x8.bottom,tickLabelProps:void 0===n?wd:n,tickLength:void 0===i?8:i},o))}var wh=["axisClassName","labelOffset","tickLabelProps","tickLength"];function wp(){return(wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,wh);return w.createElement(wl,wp({axisClassName:mW()("visx-axis-left",t),labelOffset:void 0===r?36:r,orientation:x8.left,tickLabelProps:void 0===n?wm:n,tickLength:void 0===i?8:i},o))}let wg=e=>new Date((null==e?void 0:e.timestamp)||0),wy=e=>(null==e?void 0:e.value)||0,wb="var(--colors-hiContrast)",wx={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:wb},ww={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:wb};function wE(e){let{data:t,gradientColor:r,width:n,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 n<10?null:(0,x.jsxs)(m4,{left:d||o.left,top:c||o.top,children:[(0,x.jsx)(xG,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,x.jsx)(xh,{id:"gradient",from:r,fromOpacity:1,to:r,toOpacity:.2}),(0,x.jsx)(xR,{data:t,x:e=>a(wg(e))||0,y:e=>s(wy(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?xL:xU}),!l&&(0,x.jsx)(wf,{top:i,scale:a,numTicks:n>520?10:5,stroke:wb,tickStroke:wb,tickLabelProps:()=>wx}),!u&&(0,x.jsx)(wv,{scale:s,numTicks:5,stroke:wb,tickStroke:wb,tickLabelProps:()=>ww}),h]})}var wS=r(6692);let wj={inherit:wS.inherit,current:wS.current,transparent:wS.transparent,black:wS.black,white:wS.white,slate:wS.slate,zinc:wS.zinc,neutral:wS.neutral,stone:wS.stone,red:wS.red,orange:wS.orange,amber:wS.amber,yellow:wS.yellow,lime:wS.lime,green:wS.green,emerald:wS.emerald,teal:wS.teal,cyan:wS.cyan,sky:wS.sky,blue:wS.blue,indigo:wS.indigo,violet:wS.violet,purple:wS.purple,fuchsia:wS.fuchsia,pink:wS.pink,rose:wS.rose,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 wC=r(96206);let wk={top:10,bottom:15,left:10,right:10},wA="brush_pattern",wO="brush_gradient",w_=xx()(e=>e(),15),wT=function(e){let t,r,n;function i(e,n,i=0,o=e.length){if(i>>1;0>r(e[t],n)?i=t+1:o=t}while(ixp(e(t),r),n=(t,r)=>e(t)-r):(t=e===xp||e===xm?e:xv,r=e,n=e),{left:i,center:function(e,t,r=0,o=e.length){let a=i(e,t,r,o-1);return a>r&&n(e[a-1],t)>-n(e[a],t)?a-1:a},right:function(e,n,i=0,o=e.length){if(i>>1;0>=r(e[t],n)?i=t+1:o=t}while(inew Date((null==e?void 0:e.timestamp)||0)).left;void 0===wX&&(wX={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===wK&&(wK=function(e,t){return w.createElement("div",t,e)}),r(3440);var wM={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"]},wN=wM.gray[7];function wR(){return(wR=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:r}=e;return(0,x.jsxs)("div",{ref:t,className:(0,ey.cx)("flex gap-1 items-center",r),children:[(0,x.jsx)(wI,{}),(0,x.jsx)(wI,{}),(0,x.jsx)(wI,{})]})});function wI(){return(0,x.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"})}/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function wF(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function wV(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ef,Ep=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Em=/\/\*[^]*?\*\/|\s\s+|\n/g,Ev=(e,t)=>{let r="",n="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?r=o+" "+a+";":n+="f"==o[1]?Ev(a,o):o+"{"+Ev(a,"k"==o[1]?"":t)+"}":"object"==typeof a?n+=Ev(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+=Ev.p?Ev.p(o,a):o+":"+a+";")}return r+(t&&i?t+"{"+i+"}":i)+n},Eg={},Ey=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+Ey(e[r]);return t}return e},Eb=(e,t,r,n,i)=>{var o;let a=Ey(e),s=Eg[a]||(Eg[a]=(e=>{let t=0,r=11;for(;t>>0;return"go"+r})(a));if(!Eg[s]){let t=a!==e?e:(e=>{let t,r=[{}];for(;t=Ep.exec(e.replace(Em,""));)t[4]?r.shift():t[3]?r.unshift(r[0][t[3]]=r[0][t[3]]||{}):r[0][t[1]]=t[2];return r[0]})(e);Eg[s]=Ev(i?{["@keyframes "+s]:t}:t,r?"":"."+s)}return o=Eg[s],-1==t.data.indexOf(o)&&(t.data=n?o+t.data:t.data+o),s},Ex=(e,t,r)=>e.reduce((e,n,i)=>{let o=t[i];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":Ev(e,""):!1===e?"":e}return e+n+(null==o?"":o)},"");function Ew(e){let t=this||{},r=e.call?e(t.p):e;return Eb(r.unshift?r.raw?Ex(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,Eh(t.target),t.g,t.o,t.k)}Ew.bind({g:1});let EE,ES,Ej,EC=Ew.bind({k:1});function Ek(e,t){let r=this||{};return function(){let n=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;r.p=Object.assign({theme:ES&&ES()},s),r.o=/ *go\d+/.test(l),s.className=Ew.apply(r,n)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),Ej&&u[0]&&Ej(s),EE(u,s)}return t?t(i):i}}function EA(){return(EA=Object.assign||function(e){for(var t=1;t-1&&ED.splice(e,1)}},[r]);var i=r.toasts.map(function(t){var r,n,i;return EA({},e,e[t.type],t,{duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==(n=e)?void 0:n.duration)||EV[t.type],style:EA({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return EA({},r,{toasts:i})},EU=function(e){return function(t,r){var n,i=(void 0===(n=e)&&(n="blank"),EA({createdAt:Date.now(),visible:!0,type:n,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},r,{id:(null==r?void 0:r.id)||ET()}));return EF({type:g.UPSERT_TOAST,toast:i}),i.id}},Ez=function(e,t){return EU("blank")(e,t)};Ez.error=EU("error"),Ez.success=EU("success"),Ez.loading=EU("loading"),Ez.custom=EU("custom"),Ez.dismiss=function(e){EF({type:g.DISMISS_TOAST,toastId:e})},Ez.remove=function(e){return EF({type:g.REMOVE_TOAST,toastId:e})},Ez.promise=function(e,t,r){var n=Ez.loading(t.loading,EA({},r,null==r?void 0:r.loading));return e.then(function(e){return Ez.success(E_(t.success,e),EA({id:n},r,null==r?void 0:r.success)),e}).catch(function(e){Ez.error(E_(t.error,e),EA({id:n},r,null==r?void 0:r.error))}),e};var EH=function(e){var t=EB(e),r=t.toasts,n=t.pausedAt;(0,w.useEffect)(function(){if(!n){var e=Date.now(),t=r.map(function(t){if(t.duration!==1/0){var r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(r<0){t.visible&&Ez.dismiss(t.id);return}return setTimeout(function(){return Ez.dismiss(t.id)},r)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[r,n]);var i=(0,w.useMemo)(function(){return{startPause:function(){EF({type:g.START_PAUSE,time:Date.now()})},endPause:function(){n&&EF({type:g.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return EF({type:g.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var n,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=r.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return Sh=function(){return e},e}d=w.createElement,Ev.p=void 0,EE=d,ES=void 0,Ej=void 0;var Sp=function(e,t){var r=e.includes("top"),n=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return EA({left:0,right:0,display:"flex",position:"absolute",transition:EM()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(r?1:-1)+"px)"},r?{top:0}:{bottom:0},n)},Sm=Ew(Sh()),Sv=function(e){var t=e.reverseOrder,r=e.position,n=void 0===r?"top-center":r,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=EH(i),c=u.toasts,d=u.handlers;return(0,w.createElement)("div",{style:EA({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 r,i=e.position||n,s=Sp(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:n})),l=e.height?void 0:(r=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){r(e.getBoundingClientRect())})});return(0,w.createElement)("div",{ref:l,className:e.visible?Sm:"",key:e.id,style:s},"custom"===e.type?E_(e.message,e):a?a(e):(0,w.createElement)(Sf,{toast:e,position:i}))}))};let Sg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ez((0,x.jsx)(t8,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),Sx(t))},Sy=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ez.success((0,x.jsx)(t8,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),Sx(t))},Sb=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ez.error((0,x.jsx)(t8,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),Sx(t))};function Sx(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,ey.cx)(ld,t9(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(lv.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(lv.Jsc,{className:"w-5 text-red-600"})})},...t}}function Sw(){return(0,x.jsx)(Sv,{toastOptions:Sx()})}let SE=(e,t)=>{let r=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";Sg(r),function(e){wF(this,void 0,void 0,function(){return wV(this,function(t){var r;if(En)return wB("Using `navigator.clipboard.writeText()`."),[2,En(e)];if(!function(e){return wF(this,void 0,void 0,function(){var t;return wV(this,function(r){var n,i,o,a,s,l,u,c;if(t="text/plain"in e,"undefined"==typeof ClipboardEvent&&void 0!==Eo.clipboardData&&void 0!==Eo.clipboardData.setData){if(!t)throw Error("No `text/plain` value was specified.");if(n=e["text/plain"],Eo.clipboardData.setData("Text",n))return[2,!0];throw Error("Copying failed, possibly because the user rejected it.")}return El(e)?(wB("regular execCopy worked"),[2,!0]):navigator.userAgent.indexOf("Edge")>-1?(wB('UA "Edge" => assuming success'),[2,!0]):Eu(document.body,e)?(wB("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=Eu(i,e),document.body.removeChild(i),o)?(wB("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],wB("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(wB("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),Ec(u),c=document.execCommand("copy"),Ed(),document.body.removeChild(s),c)?(wB("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((r={})["text/plain"]=e,r)))throw Error("writeText() failed");return[2]})})}(e)};function SS(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function Sj(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^key:/,"")}let SC={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",ip:"IP"},Sk={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 SA(e){return e?SC[e]:void 0}function SO(e){let{value:t,displayValue:r,type:n,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d}=e,f=i||SA(n),h=a||("ip"===n?20:12),p=Sj(t),m=r||p,v="".concat(null==m?void 0:m.slice(0,h)).concat(((null==m?void 0:m.length)||0)>h?"...":"");return(0,x.jsxs)("div",{className:(0,ey.cx)("flex items-center",d),children:[o?(0,x.jsx)(fm,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}):(0,x.jsx)(t8,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}),(0,x.jsx)("div",{className:"ml-1 flex items-center",children:(0,x.jsx)(lm,{variant:"ghost",size:"none",onClick:e=>{e.stopPropagation(),SE(p,f)},children:(0,x.jsx)(t8,{color:c,children:(0,x.jsx)(lv.olJ,{className:"10"===s?"scale-75":"scale-90"})})})})]})}function S_(e){let{value:t,size:r,scaleSize:n,tooltip:i="",variant:o="change"}=e,a=(0,wC.yF)(String(t),{units:"SF"});return(0,x.jsx)(lh,{content:(i?"".concat(i," "):"")+a,children:(0,x.jsxs)(t8,{size:r,scaleSize:n,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function ST(e){let{value:t,size:r,scaleSize:n,tooltip:i="",variant:o="change",fixed:a=3,dynamicUnits:s=!0,extendedSuffix:l,showTooltip:u=!0}=e,c=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",d="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast",f=(0,x.jsxs)(t8,{size:r,scaleSize:n,weight:"medium",font:"mono",ellipsis:!0,color:d,children:["change"===o?"".concat(c).concat((0,wC.Vz)(t.absoluteValue(),{fixed:a,dynamicUnits:s})):(0,wC.Vz)(t,{fixed:a,dynamicUnits:s}),(0,x.jsx)(t8,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:l?"".concat(l):""})]});return u?(0,x.jsx)(lh,{content:(i?"".concat(i," "):"")+(0,wC.Vz)(t,{fixed:16,dynamicUnits:!1}),children:f}):f}var SM=r(61258),SN=r.n(SM);function SR(e){let{skeletonCount:t=10}=e;return(0,x.jsx)(x.Fragment,{children:SN()(t,e=>(0,x.jsxs)("div",{className:(0,ey.cx)("relative flex gap-4 p-3.5",(0,ey.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,x.jsx)(hT,{className:"w-[60px] h-[50px]"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,x.jsx)(hT,{className:"w-[90%] h-[20px]"}),(0,x.jsx)(hT,{className:"w-[140px] h-[14px]"})]})]},e))})}function SP(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function SL(e){SP(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))}function SD(e,t){SP(2,arguments);var r=SL(e),n=SL(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}var SI={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},SF={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 SV(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var SB={date:SV({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:SV({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:SV({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},SU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Sz(e){return function(t,r){var n,i=r||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;n=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;n=e.values[l]||e.values[s]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function SH(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.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 r=0;r0?"in "+n:n+" ago":n},formatLong:SB,formatRelative:function(e,t,r,n){return SU[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Sz({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Sz({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:Sz({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:Sz({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:Sz({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:(f={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]:{},r=e.match(f.matchPattern);if(!r)return null;var n=r[0],i=e.match(f.parsePattern);if(!i)return null;var o=f.valueCallback?f.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(n.length)}}),era:SH({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:SH({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:SH({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:SH({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:SH({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 SW(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 Sq=r(23779),SG=r.n(Sq);function SZ(e){let{type:t,label:r,initials:n,href:i,src:o,shape:a}=e,s=(0,x.jsx)(l_,{interactive:!!i,fallback:n||t&&(t||r||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,x.jsx)(fm,{href:i,underline:"none",children:s}),u=l||s;return t?(0,x.jsx)(lh,{content:r||SA(t),children:(0,x.jsx)("div",{className:"",children:u})}):u}function SY(e){let{label:t,type:r,avatar:n,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,x.jsxs)("div",{className:(0,ey.cx)("flex gap-4 p-4",(0,ey.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,x.jsx)(SZ,{label:t,type:r,shape:i,src:n,initials:o||(r||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function SX(e){var t;let r=e.sc,n=e.sf,i=e.hash&&(0,x.jsx)(SO,{value:e.hash,type:e.type,label:e.label,href:e.href,color:"subtle"}),o=e.label||"transaction"===e.type&&e.txType&&((t=e.txType)?Sk[t]:void 0)||SA(e.type),a=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(o)?SG()(o):o;return(0,x.jsx)(SY,{...e,children:(0,x.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,x.jsx)(t8,{color:"subtle",weight:"semibold",children:(0,x.jsx)(fm,{href:e.blockHref,underline:"none",children:(0,wC.yF)(e.height)})}),(0,x.jsx)(t8,{weight:"medium",children:a||i})]}),(0,x.jsx)("div",{className:"flex-1"}),!!r&&(0,x.jsx)(ST,{variant:e.scVariant,value:r}),!!n&&(0,x.jsx)(S_,{variant:e.sfVariant,value:n})]}),(0,x.jsxs)("div",{className:"flex justify-between w-full",children:[(0,x.jsx)("div",{className:"flex gap-1",children:!!a&&i}),(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(t8,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,x.jsx)(t8,{color:"verySubtle",children:(0,x.jsx)(lv.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,x.jsx)(t8,{color:"subtle",children:function(e,t){var r,n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};SP(2,arguments);var a=o.locale||S$;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=SD(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 r in t=t||{})Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}({},o);l.addSuffix=!!o.addSuffix,l.comparison=s,s>0?(r=SL(t),n=SL(e)):(r=SL(e),n=SL(t));var u=function(e,t,r){SP(2,arguments);var n,i=function(e,t){return SP(2,arguments),SL(e).getTime()-SL(t).getTime()}(e,t)/1e3;return((n=null==r?void 0:r.roundingMethod)?SI[n]:SI.trunc)(i)}(n,r),c=Math.round((u-(SW(n)-SW(r))/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){var d=Math.round(c/60);return a.formatDistance("aboutXHours",d,l)}if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200){var f=Math.round(c/1440);return a.formatDistance("xDays",f,l)}if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){SP(2,arguments);var r,n=SL(e),i=SL(t),o=SD(n,i),a=Math.abs(function(e,t){SP(2,arguments);var r=SL(e),n=SL(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(n,i));if(a<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var s=SD(n,i)===-o;(function(e){SP(1,arguments);var t=SL(e);return(function(e){SP(1,arguments);var t=SL(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){SP(1,arguments);var t=SL(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t})(t).getTime()})(SL(e))&&1===a&&1===SD(e,i)&&(s=!1),r=o*(a-Number(s))}return 0===r?0:r}(n,r))<12){var h=Math.round(c/43200);return a.formatDistance("xMonths",h,l)}var p=i%12,m=Math.floor(i/12);return p<3?a.formatDistance("aboutXYears",m,l):p<9?a.formatDistance("overXYears",m,l):a.formatDistance("almostXYears",m+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function SK(e){let{title:t,actions:r,entities:n,emptyMessage:i,skeletonCount:o=10,children:a}=e;return(0,x.jsx)(re,{children:(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||r)&&(0,x.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,x.jsx)(fr,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,x.jsx)("div",{className:"flex-1"}),r]}),(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(null==n?void 0:n.length)===0&&(0,x.jsx)("div",{className:(0,ey.cx)("flex items-center justify-center h-[84px]",(0,ey.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,x.jsx)(t8,{size:"18",color:"subtle",children:i||"No results"})}),a||(null==n?void 0:n.map((e,t)=>(0,x.jsx)(SX,{...e},e.hash||e.label||t)))||(0,x.jsx)(SR,{skeletonCount:o})]})]})})}function SJ(e){let{label:t,entityType:r,entityValue:n,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,x.jsx)(t8,{color:"subtle",size:"12",className:"h-6",children:d});return(0,x.jsx)(re,{children:(0,x.jsx)("div",{className:(0,ey.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,x.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,x.jsx)(t8,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?SG()(t):t}),i]}),(0,x.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,x.jsx)(hT,{className:"h-12 w-[150px]"}):(0,x.jsxs)(x.Fragment,{children:[void 0!==u&&(0,x.jsx)(ST,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,x.jsx)(S_,{scaleSize:h,variant:"value",value:c}),r&&(n?(0,x.jsx)(SO,{scaleSize:h,label:SA(r),href:o,value:n,displayValue:"block"===r&&n?Number(n).toLocaleString():n,className:"relative top-0.5"}):(0,x.jsx)(t8,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,x.jsx)(SO,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,x.jsx)(t8,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,x.jsx)("div",{className:"mt-1",children:p?(0,x.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,x.jsx)(hT,{className:"h-4 w-[100px]"})}):f?(0,x.jsx)(lh,{content:f,children:v}):v}):null]})]})})})}function SQ(e){let{title:t,actions:r,name:n}=e;return(0,x.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,x.jsx)(ff,{htmlFor:n,noWrap:!0,children:t}):null,r]})}function S0(e){var t;let{form:r,name:n}=e,i=r.formState.errors[n],o=null===(t=r.formState.errors[n])||void 0===t?void 0:t.message;return i?(0,x.jsx)(t8,{size:"14",color:"red",children:o}):null}function S1(e){let{form:t,title:r,actions:n,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return r||s?(0,x.jsxs)("div",{className:(0,ey.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,x.jsx)(SQ,{name:i,title:r,actions:n}),(0,x.jsx)(S0,{form:t,name:i})]}):null}function S2(e){let{children:t,...r}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(S1,{...r}),t]})}function S4(e){let{form:t,size:r="medium",variant:n="accent",children:i}=e;return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(lm,{size:r,variant:n,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,x.jsx)(wD,{}):i})})}function S3(e){let{formik:t,title:r,name:n,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,x.jsx)(S9,{formik:t,title:r,name:n,children:"number"===g?(0,x.jsx)(S6,{formik:t,name:n,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,x.jsx)(S8,{formik:t,name:n,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,x.jsx)(S5,{formik:t,name:n,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function S5(e){let{formik:t,name:r,placeholder:n,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,x.jsx)(f3,{id:r,name:r,autoComplete:i,disabled:o,spellCheck:l,placeholder:n,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[r]||"",...c})}function S6(e){let{formik:t,name:r,units:n,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,x.jsx)(hy,{id:r,units:n,name:r,placeholder:new(hv())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(r,e),value:t.values[r],...d})}function S8(e){let{formik:t,name:r,disabled:n,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,x.jsx)(hE,{id:r,name:r,disabled:n,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(r),sc:new(hv())(t.values[r]),placeholder:new(hv())(a),onChange:e=>t.setFieldValue(r,null==e?void 0:e.toString()),...c})}function S7(e){var t,r;let{formik:n,title:i,name:o,withStatusError:a=!1,className:s}=e,l=n.errors[o]&&n.touched[o]||a&&(null===(t=n.status)||void 0===t?void 0:t.error),u=n.errors[o]||a&&(null===(r=n.status)||void 0===r?void 0:r.error);return(i||l)&&(0,x.jsxs)("div",{className:(0,ey.cx)("flex justify-between items-center gap-4",s),children:[i?(0,x.jsx)(ff,{htmlFor:o,children:i}):(0,x.jsx)("div",{}),l&&(0,x.jsx)(t8,{size:"14",color:"red",children:u})]})}function S9(e){let{children:t,...r}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(S7,{...r}),t]})}function je(e){var t;let{formik:r,size:n="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,x.jsxs)(x.Fragment,{children:[o&&(null===(t=r.status)||void 0===t?void 0:t.error)&&(0,x.jsx)(t8,{color:"red",children:r.status.error}),(0,x.jsx)(lm,{size:n,variant:i,state:r.isSubmitting?"waiting":void 0,type:"submit",children:r.isSubmitting?(0,x.jsx)(wD,{}):a})]})}function jt(e){let{columns:t,data:r,context:n,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==r?void 0:r.length)||(m="skeleton"),(null==r?void 0:r.length)&&(m="currentData");let v=(0,w.useCallback)((e,r,n)=>(0,ey.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",n?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",r),[t]),g=(0,w.useCallback)((e,t)=>(0,ey.cx)("flex items-center",t),[]);return(0,x.jsxs)(re,{children:[(0,x.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,x.jsx)("thead",{className:(0,ey.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,x.jsx)("tr",{children:t.map((e,t)=>{let{id:r,icon:n,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(r))&&!!s,h=i===r;return(0,x.jsx)("th",{className:(0,ey.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,x.jsx)("div",{className:(0,ey.cx)("overflow-hidden","py-3"),children:(0,x.jsxs)("div",{onClick:()=>{f&&s(r)},className:(0,ey.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,x.jsx)(lh,{content:u,children:(0,x.jsxs)(t8,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[n?(0,x.jsx)("div",{children:n}):null,(0,x.jsx)(t8,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,x.jsx)(t8,{color:"contrast",children:"asc"===o?(0,x.jsx)(lv.kqg,{className:"scale-75"}):(0,x.jsx)(lv.EMN,{className:"scale-75"})}),f&&!h&&(0,x.jsx)(t8,{color:"verySubtle",children:(0,x.jsx)(lv.kqg,{className:"scale-75"})})]})})},r)})})}),(0,x.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,x.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:r,summary:n,contentClassName:i,cellClassName:o}=e;return(0,x.jsx)("td",{className:v(t,o,!1),children:(0,x.jsx)("div",{className:g(t,i),children:n&&n()})},r)})}),"currentData"===m&&(null==r?void 0:r.map(e=>(0,x.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,ey.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,r)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,x.jsx)("td",{className:(0,ey.cx)(v(r,s,!1),h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,x.jsx)("div",{className:(0,ey.cx)(g(r,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,x.jsx)(o,{data:e,context:n})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&SN()(c).map(e=>(0,x.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:r,contentClassName:n,cellClassName:i}=e;return(0,x.jsx)("td",{className:v(t,i,!1),children:(0,x.jsx)("div",{className:(0,ey.cx)(g(t,n),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(r))})},e))]})]}),"emptyState"===m&&f]})}var jr=r(5632);function jn(e){let{offset:t,limit:r,pageTotal:n,isLoading:i}=e,o=(0,jr.useRouter)(),a=Math.min(t+r,t+n);return(0,x.jsxs)(lL,{children:[(0,x.jsx)(lm,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,x.jsx)("div",{className:"flex scale-[0.65]",children:(0,x.jsx)(lv.XJM,{})})}),(0,x.jsx)(lm,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-r,0)}}),children:(0,x.jsx)(lv.bdU,{})}),i?(0,x.jsx)(lm,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,x.jsx)(wD,{className:"px-2"})}):n?(0,x.jsxs)(lm,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",a]}):(0,x.jsx)(lm,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,x.jsx)(lm,{icon:"contrast",disabled:n!==r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+r}}),children:(0,x.jsx)(lv.VUy,{})})]})}function ji(e){let{title:t,nav:r,stats:n,actions:i}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.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,x.jsx)(t8,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,x.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,x.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:r}),(0,x.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),n&&(0,x.jsx)("div",{className:"flex items-center gap-2 px-6 py-3 h-10 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:n})]})}let jo=("string"==typeof(h={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:h}:h).src;function ja(e){let{children:t}=e;return(0,x.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,x.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(jo,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var js=r(97729),jl=r.n(js);function ju(e){let{appName:t,title:r,children:n}=e,i=r?"".concat(t," - ").concat(r):t;return(0,x.jsxs)(jl(),{children:[(0,x.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,x.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,x.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,x.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,x.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,x.jsx)("meta",{name:"theme-color",content:"#ffffff"}),n,(0,x.jsx)("title",{children:i})]})}function jc(e){let{appName:t,title:r,children:n}=e;return(0,x.jsxs)("div",{className:"h-screen",children:[(0,x.jsx)(ju,{appName:t,title:r}),n]})}function jd(e){let{appName:t,title:r,children:n,filters:i,actions:o}=e;return(0,x.jsxs)(jc,{appName:t,title:r,children:[(0,x.jsx)(ja,{}),(0,x.jsx)("div",{className:"flex h-full",children:(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(ji,{nav:i,actions:o}),(0,x.jsx)("div",{className:"flex-1",children:(0,x.jsx)(lI,{className:"h-full",children:n})})]})})]})}function jf(e){let{size:t="12",wallet:{sc:r,sf:n}}=e;return(0,x.jsx)(t8,{size:t,weight:"medium",children:"".concat((0,wC.Vz)(r,{fixed:0})," ").concat(n&&n>0?" | ".concat((0,wC.ES)(n)):"")})}var jh=r(82876);function jp(e){let{title:t,children:r,route:n,onClick:i}=e,o=(0,jh.usePathname)(),a=n&&("/"===n?o===n:null==o?void 0:o.startsWith(n));return n?(0,x.jsx)(fm,{href:n,className:"no-underline",children:(0,x.jsx)(lh,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(lm,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:r})})}):(0,x.jsx)(lh,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(lm,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:r})})}function jm(e){let{walletBalance:t,isSynced:r,routes:n}=e;return(0,x.jsx)(jp,{title:"Wallet",route:n.wallet.view,children:(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,x.jsx)(lv.oaN,{}),r&&t&&(0,x.jsx)(jf,{wallet:{sc:t}})]})})}function jv(e){let{routes:t,profile:r,isSynced:n,showWallet:i=!0,walletBalance:o,lock:a,openSettings:s,children:l}=e;return(0,x.jsx)(re,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,x.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,x.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:r||(0,x.jsx)(fy,{size:30})}),(0,x.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,x.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,x.jsx)("div",{className:"flex-1"}),(0,x.jsx)(dG,{className:"w-full"}),i&&(0,x.jsx)(jm,{routes:t,isSynced:n,walletBalance:o}),(0,x.jsx)(jp,{title:"Blockchain node",route:t.node.index,children:(0,x.jsx)(lv.kBK,{})}),(0,x.jsx)(jp,{title:"App preferences",onClick:()=>s(),children:(0,x.jsx)(lv.UG6,{})}),(0,x.jsx)(jp,{title:"Lock app",onClick:a,children:(0,x.jsx)(lv.mBM,{})})]})]})})}var jg=r(27429);function jy(e){let{appName:t,title:r,navTitle:n,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalance:m,routes:v,scroll:g=!0,openSettings:y}=e,{lock:b,settings:E}=(0,hx.Hv)();return!function(e){let{lock:t,route:r,routes:n}=e,{isConnected:i,isValidating:o}=function(e){let{route:t}=e,r=(0,hx.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!r.error,isValidating:r.isValidating}}({route:r}),{settings:a}=(0,hx.Hv)(),s=(0,jr.useRouter)();(0,w.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(n.login),r=!a.password||!i;if(e&&r){t();return}},[s,a.password,i,o])}({lock:b,route:f,routes:v}),!function(e){let{enabled:t,lock:r,lockTimeout:n}=e,i=(0,w.useCallback)(()=>{r()},[r]);(0,jg.Yp)({disabled:!t,onIdle:i,timeout:n,throttle:5e3,eventsThrottle:5e3})}({enabled:!!E.autoLock,lockTimeout:E.autoLockTimeout,lock:b}),(0,x.jsxs)(jc,{appName:t,title:r,children:[(0,x.jsx)(ja,{}),(0,x.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,x.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,x.jsx)(jv,{routes:v,profile:i,openSettings:y,lock:b,showWallet:p,walletBalance:m,isSynced:h,children:d}),(0,x.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,x.jsx)(ji,{title:void 0===n?r:n,nav:s,actions:l,stats:u}),g?(0,x.jsx)(cw,{className:"z-0",children:(0,x.jsx)(lI,{size:o,pad:!1,children:(0,x.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,x.jsx)(lI,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function jb(e,t,r,n){let[i,o]=(0,w.useState)();return(0,w.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,w.useMemo)(()=>r?"error":void 0===i||i>0&&!e?"loading":0===i?0===n.length?"noneYet":"noneMatchingFilters":void 0,[e,i,r,n])}var jx=r(89644),jw=r.n(jx),jE=r(63955),jS=r(45861),jj=r.n(jS);function jC(e){let{form:t,field:r,name:n}=e,i=t.watch(n),o=t.formState.touchedFields[n]&&!!t.formState.errors[n],{ref:a,onChange:s,onBlur:l}=t.register(n,r.validation),u=(0,w.useCallback)(e=>{var n;s(e),null===(n=r.trigger)||void 0===n||n.forEach(e=>t.trigger(e))},[s,t,r]),c=(0,w.useCallback)((e,i)=>{var o;t.setValue(n,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=r.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[n,t,r]);return{ref:a,name:n,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function jk(e){return(0,w.useCallback)(t=>{Sb(jj()(t).map(t=>{let[r,n]=t;return"".concat(e[r].title||r,": ").concat(null==n?void 0:n.message)}).join(", "))},[e])}function jA(e){let{name:t,form:r,fields:n,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=n[t],{ref:c,onChange:d,onBlur:f,error:h}=jC({name:t,form:r,field:u}),p=(0,x.jsx)(f3,{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":r.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,x.jsx)(S2,{title:u.title,actions:u.actions,name:t,form:r,children:p}):p}var jO=r(829),j_=r.n(jO);async function jT(e){let{api:t,route:r,password:n}=e;try{return await jw().get("".concat(t,"/api").concat(r),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(n))},timeout:1e4}),{}}catch(r){let e=r.code,t=r.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 jM(e){let{appName:t,route:r,routes:n}=e,i=(0,jr.useRouter)(),{settings:o,setSettings:a}=(0,hx.Hv)(),{allowCustomApi:s}=o,l=(0,w.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,jE.cI)({mode:"onBlur",defaultValues:l});(0,w.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,w.useCallback)(async e=>{let t="";if(s){let r=new URL(e.api);t="".concat(r.protocol,"//").concat(r.host)}let{error:c}=await jT({api:t,route:r,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):n.home),u.reset(l))},[s,u,i,n,o,a,l,r]),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=jk(d),h=u.formState.errors.api||u.formState.errors.password,p=j_()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:r}]=e;return-r}).map(e=>{let[t]=e;return t});return(0,x.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,x.jsx)(re,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(t8,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsx)(d3,{trigger:(0,x.jsx)(lm,{icon:"hover",variant:"ghost",children:(0,x.jsx)(lv.shL,{})}),children:(0,x.jsx)(d5,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,x.jsx)(dG,{className:"w-full mt-2 mb-3"}),(0,x.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,x.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,x.jsxs)(lL,{children:[(0,x.jsx)(jA,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,x.jsx)(d3,{trigger:(0,x.jsx)(lm,{type:"button",children:(0,x.jsx)(lv.wGX,{})}),children:p.map(e=>(0,x.jsx)(d5,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,x.jsx)(jA,{name:"password",form:u,fields:d,group:!1}),h&&(0,x.jsx)(t8,{size:"14",color:"red",children:h.message}),(0,x.jsx)(S4,{size:"small",form:u,children:"Unlock"})]})})]})})})}var jN=r(78435),jR=r.n(jN),jP=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==jL},jL="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function jD(e,t){return!1!==t.clone&&t.isMergeableObject(e)?jF(Array.isArray(e)?[]:{},e,t):e}function jI(e,t,r){return e.concat(t).map(function(e){return jD(e,r)})}function jF(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||jI,r.isMergeableObject=r.isMergeableObject||jP;var n,i,o=Array.isArray(t);return o!==Array.isArray(e)?jD(t,r):o?r.arrayMerge(e,t,r):(i={},(n=r).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=jD(e[t],n)}),Object.keys(t).forEach(function(r){n.isMergeableObject(t[r])&&e[r]?i[r]=jF(e[r],t[r],n):i[r]=jD(t[r],n)}),i)}jF.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return jF(e,r,t)},{})};var jV=jF,jB="object"==typeof global&&global&&global.Object===Object&&global,jU="object"==typeof self&&self&&self.Object===Object&&self,jz=jB||jU||Function("return this")(),jH=jz.Symbol,j$=Object.prototype,jW=j$.hasOwnProperty,jq=j$.toString,jG=jH?jH.toStringTag:void 0,jZ=function(e){var t=jW.call(e,jG),r=e[jG];try{e[jG]=void 0;var n=!0}catch(e){}var i=jq.call(e);return n&&(t?e[jG]=r:delete e[jG]),i},jY=Object.prototype.toString,jX=jH?jH.toStringTag:void 0,jK=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":jX&&jX in Object(e)?jZ(e):jY.call(e)},jJ=function(e,t){return function(r){return e(t(r))}},jQ=jJ(Object.getPrototypeOf,Object),j0=function(e){return null!=e&&"object"==typeof e},j1=Object.prototype,j2=Function.prototype.toString,j4=j1.hasOwnProperty,j3=j2.call(Object),j5=function(e){if(!j0(e)||"[object Object]"!=jK(e))return!1;var t=jQ(e);if(null===t)return!0;var r=j4.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&j2.call(r)==j3},j6=function(e,t){return e===t||e!=e&&t!=t},j8=function(e,t){for(var r=e.length;r--;)if(j6(e[r][0],t))return r;return -1},j7=Array.prototype.splice;function j9(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},j9.prototype.set=function(e,t){var r=this.__data__,n=j8(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var Ce=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ct=function(e){if(!Ce(e))return!1;var t=jK(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Cr=jz["__core-js_shared__"],Cn=(p=/[^.]+$/.exec(Cr&&Cr.keys&&Cr.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",Ci=Function.prototype.toString,Co=function(e){if(null!=e){try{return Ci.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ca=/^\[object .+?Constructor\]$/,Cs=Object.prototype,Cl=Function.prototype.toString,Cu=Cs.hasOwnProperty,Cc=RegExp("^"+Cl.call(Cu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Cd=function(e,t){var r,n=null==e?void 0:e[t];return Ce(r=n)&&(!Cn||!(Cn in r))&&(Ct(r)?Cc:Ca).test(Co(r))?n:void 0},Cf=Cd(jz,"Map"),Ch=Cd(Object,"create"),Cp=Object.prototype.hasOwnProperty,Cm=Object.prototype.hasOwnProperty;function Cv(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},CU={};CU["[object Float32Array]"]=CU["[object Float64Array]"]=CU["[object Int8Array]"]=CU["[object Int16Array]"]=CU["[object Int32Array]"]=CU["[object Uint8Array]"]=CU["[object Uint8ClampedArray]"]=CU["[object Uint16Array]"]=CU["[object Uint32Array]"]=!0,CU["[object Arguments]"]=CU["[object Array]"]=CU["[object ArrayBuffer]"]=CU["[object Boolean]"]=CU["[object DataView]"]=CU["[object Date]"]=CU["[object Error]"]=CU["[object Function]"]=CU["[object Map]"]=CU["[object Number]"]=CU["[object Object]"]=CU["[object RegExp]"]=CU["[object Set]"]=CU["[object String]"]=CU["[object WeakMap]"]=!1;var Cz=function(e){return function(t){return e(t)}},CH="object"==typeof exports&&exports&&!exports.nodeType&&exports,C$=CH&&"object"==typeof module&&module&&!module.nodeType&&module,CW=C$&&C$.exports===CH&&jB.process,Cq=function(){try{var e=C$&&C$.require&&C$.require("util").types;if(e)return e;return CW&&CW.binding&&CW.binding("util")}catch(e){}}(),CG=Cq&&Cq.isTypedArray,CZ=CG?Cz(CG):function(e){return j0(e)&&CB(e.length)&&!!CU[jK(e)]},CY=Object.prototype.hasOwnProperty,CX=function(e,t){var r=CR(e),n=!r&&CN(e),i=!r&&!n&&CI(e),o=!r&&!n&&!i&&CZ(e),a=r||n||i||o,s=a?CA(e.length,String):[],l=s.length;for(var u in e)(t||CY.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||CV(u,l)))&&s.push(u);return s},CK=Object.prototype,CJ=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||CK)},CQ=jJ(Object.keys,Object),C0=Object.prototype.hasOwnProperty,C1=function(e){if(!CJ(e))return CQ(e);var t=[];for(var r in Object(e))C0.call(e,r)&&"constructor"!=r&&t.push(r);return t},C2=function(e){return null!=e&&CB(e.length)&&!Ct(e)},C4=function(e){return C2(e)?CX(e):C1(e)},C3=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},C5=Object.prototype.hasOwnProperty,C6=function(e){if(!Ce(e))return C3(e);var t=CJ(e),r=[];for(var n in e)"constructor"==n&&(t||!C5.call(e,n))||r.push(n);return r},C8=function(e){return C2(e)?CX(e,!0):C6(e)},C7="object"==typeof exports&&exports&&!exports.nodeType&&exports,C9=C7&&"object"==typeof module&&module&&!module.nodeType&&module,ke=C9&&C9.exports===C7?jz.Buffer:void 0,kt=ke?ke.allocUnsafe:void 0,kr=function(e,t){if(t)return e.slice();var r=e.length,n=kt?kt(r):new e.constructor(r);return e.copy(n),n},kn=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r=0||(i[r]=e[r]);return i}function Ao(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(73463);var Aa=function(e){return Array.isArray(e)&&0===e.length},As=function(e){return"function"==typeof e},Al=function(e){return null!==e&&"object"==typeof e},Au=function(e){return"[object String]"===Object.prototype.toString.call(e)},Ac=function(e){return Al(e)&&As(e.then)};function Ad(e,t,r,n){void 0===n&&(n=0);for(var i=At(t);e&&n=0?[]:{}}}return(0===o?e:i)[a[o]]===r?e:(void 0===r?delete i[a[o]]:i[a[o]]=r,0===o&&void 0===r&&delete n[a[o]],n)}var Ah=(0,w.createContext)(void 0);function Ap(e,t){switch(t.type){case"SET_VALUES":return An({},e,{values:t.payload});case"SET_TOUCHED":return An({},e,{touched:t.payload});case"SET_ERRORS":if(jR()(e.errors,t.payload))return e;return An({},e,{errors:t.payload});case"SET_STATUS":return An({},e,{status:t.payload});case"SET_ISSUBMITTING":return An({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return An({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return An({},e,{values:Af(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return An({},e,{touched:Af(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return An({},e,{errors:Af(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return An({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return An({},e,{touched:function e(t,r,n,i){void 0===n&&(n=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);oe?t:e},0);return Array.from(An({},e,{length:t+1}))};(function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var i=r.props,o=i.name;(0,i.formik.setFormikState)(function(r){var i="function"==typeof n?n:e,a="function"==typeof t?t:e,s=Af(r.values,o,e(Ad(r.values,o))),l=n?i(Ad(r.errors,o)):void 0,u=t?a(Ad(r.touched,o)):void 0;return Aa(l)&&(l=void 0),Aa(u)&&(u=void 0),An({},r,{values:s,errors:n?Af(r.errors,o,l):r.errors,touched:t?Af(r.touched,o,u):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat(Aj(t),[kK(e,5)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return Aw(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return Ax(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return AE(r,e,t)},function(t){return AE(t,e,null)},function(t){return AE(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return AS(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(Ao(r)),r.pop=r.pop.bind(Ao(r)),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!jR()(Ad(e.formik.values,e.name),Ad(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?Aj(r):[];return t||(t=n[e]),As(n.splice)&&n.splice(e,1),n},!0,!0),t},r.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},r.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,r=t.component,n=t.render,i=t.children,o=t.name,a=Ai(t.formik,["validate","validationSchema"]),s=An({},e,{form:a,name:o});return r?(0,w.createElement)(r,s):n?n(s):i?"function"==typeof i?i(s):0===w.Children.count(i)?null:w.Children.only(i):null},t})(w.Component).defaultProps={validateOnChange:!0};try{y=Map}catch(e){}try{b=Set}catch(e){}function AC(e){return function e(t,r,n){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(AC);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){r.push(t);var i=Object.create(t);for(var o in n.push(i),t){var a=r.findIndex(function(e){return e===t[o]});i[o]=a>-1?n[a]:e(t[o],r,n)}return i}return t}(e,[],[])}let Ak=Object.prototype.toString,AA=Error.prototype.toString,AO=RegExp.prototype.toString,A_="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",AT=/^Symbol\((.*)\)(.*)$/;function AM(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return A_.call(e).replace(AT,"Symbol($1)");let n=Ak.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+AA.call(e)+"]":"RegExp"===n?AO.call(e):null}function AN(e,t){let r=AM(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=AM(this[e],t);return null!==n?n:r},2)}let AR={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:r,originalValue:n})=>{let i=null!=n&&n!==r,o=`${e} must be a \`${t}\` type, but the final value was: \`${AN(r,!0)}\``+(i?` (cast from the value \`${AN(n,!0)}\`).`:".");return null===r&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},AP={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"},AL={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"},AD={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},AI={noUnknown:"${path} field has unspecified keys: ${unknown}"},AF={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:AR,string:AP,number:AL,date:AD,object:AI,array:AF,boolean:{isValue:"${path} field must be ${value}"}});var AV=r(93352),AB=r.n(AV),AU=e=>e&&e.__isYupSchema__,Az=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!AB()(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:r,then:n,otherwise:i}=t,o="function"==typeof r?r:(...e)=>e.every(e=>e===r);this.fn=function(...e){let t=e.pop(),r=e.pop(),a=o(...e)?n:i;if(a)return"function"==typeof a?a(r):r.concat(a.resolve(t))}}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn.apply(e,r.concat(e,t));if(void 0===n||n===e)return e;if(!AU(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}};function AH(e){return null==e?[]:[].concat(e)}function A$(){return(A$=Object.assign||function(e){for(var t=1;tAN(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n){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=r,this.type=n,this.errors=[],this.inner=[],AH(e).forEach(e=>{Aq.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,Aq)}}let AG=e=>{let t=!1;return(...r)=>{t||(t=!0,e(...r))}};function AZ(e,t){let{endEarly:r,tests:n,args:i,value:o,errors:a,sort:s,path:l}=e,u=AG(t),c=n.length,d=[];if(a=a||[],!c)return a.length?u(new Aq(a,o,l)):u(null,o);for(let e=0;e=0||(i[r]=e[r]);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 AQ.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=AX()(A0({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),r=new Aq(Aq.formatError(e.message||p,t),i,t.path,e.type||d);return r.params=t,r}let b=A0({path:o,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=>{Aq.isError(e)?r(e):e?r(null,e):r(y())}).catch(r)}catch(e){r(e)}return}try{var x;if(n=f.call(b,i,b),"function"==typeof(null==(x=n)?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){r(e);return}Aq.isError(n)?r(n):n?r(null,n):r(y())}return t.OPTIONS=e,t}AQ.prototype.__isYupRef=!0;let A2=e=>e.substr(0,e.length-1).substr(1);class A4{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,r)=>t.concat(AQ.isRef(r)?e(r):r),[])}add(e){AQ.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){AQ.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new A4;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let r=this.clone();return e.list.forEach(e=>r.add(e)),e.refs.forEach(e=>r.add(e)),t.list.forEach(e=>r.delete(e)),t.refs.forEach(e=>r.delete(e)),r}}function A3(){return(A3=Object.assign||function(e){for(var t=1;t{this.typeError(AR.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=A3({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=A3({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=AC(A3({},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 r=e(this);return this._mutate=t,r}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(),r=A3({},this.spec,t.spec);return t.spec=r,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 r=t.conditions;(t=t.clone()).conditions=[],t=(t=r.reduce((t,r)=>r.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let r=this.resolve(A3({value:e},t)),n=r._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==r.isType(n)){let i=AN(e),o=AN(n);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}". - -attempted value: ${i} -`+(o!==i?`result of cast: ${o}`:""))}return n}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault()),r}_validate(e,t={},r){let{sync:n,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,A3({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:n,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),AZ({args:c,value:u,path:i,sync:n,tests:d,endEarly:l},e=>{if(e)return void r(e,u);AZ({tests:this.tests.concat(f),args:c,path:i,sync:n,value:u,endEarly:l},r)})}validate(e,t,r){let n=this.resolve(A3({},t,{value:e}));return"function"==typeof r?n._validate(e,t,r):new Promise((r,i)=>n._validate(e,t,(e,t)=>{e?i(e):r(t)}))}validateSync(e,t){let r;return this.resolve(A3({},t,{value:e}))._validate(e,A3({},t,{sync:!0}),(e,t)=>{if(e)throw e;r=t}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(Aq.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(Aq.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):AC(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=AR.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=AR.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=AR.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=A1(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==n.OPTIONS.test),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=AH(e).map(e=>new AQ(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push(new Az(n,t)),r}typeError(e){let t=this.clone();return t._typeError=A1({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=AR.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r._whitelistError=A1({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}notOneOf(e,t=AR.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r._blacklistError=A1({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:r}=e.spec,n={meta:r,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,r)=>r.findIndex(t=>t.name===e.name)===t)};return n}}for(let e of(A5.prototype.__isYupSchema__=!0,["validate","validateSync"]))A5.prototype[`${e}At`]=function(t,r,n={}){let{parent:i,parentPath:o,schema:a}=function(e,t,r,n=r){let i,o,a;return t?((0,AK.forEach)(t,(s,l,u)=>{let c=l?A2(s):s;if((e=e.resolve({context:n,parent:i,value:r})).innerType){let n=u?parseInt(c,10):0;if(r&&n>=r.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=r,r=r&&r[n],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=r,r=r&&r[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,r,n.context);return a[e](i&&i[o],A3({},n,{parent:i,path:t}))};for(let e of["equals","is"])A5.prototype[e]=A5.prototype.oneOf;for(let e of["not","nope"])A5.prototype[e]=A5.prototype.notOneOf;A5.prototype.optional=A5.prototype.notRequired,A5.prototype;var A6=e=>null==e;let A8=/^((([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,A7=/^((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,A9=/^(?:[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,Oe=e=>A6(e)||e===e.trim(),Ot=({}).toString();function Or(){return new On}class On extends A5{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===Ot?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=AP.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return A6(t)||t.length===this.resolve(e)}})}min(e,t=AP.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return A6(t)||t.length>=this.resolve(e)}})}max(e,t=AP.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return A6(t)||t.length<=this.resolve(e)}})}matches(e,t){let r,n,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:r,name:n}=t:r=t),this.test({name:n||"matches",message:r||AP.matches,params:{regex:e},test:t=>A6(t)||""===t&&i||-1!==t.search(e)})}email(e=AP.email){return this.matches(A8,{name:"email",message:e,excludeEmptyString:!0})}url(e=AP.url){return this.matches(A7,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=AP.uuid){return this.matches(A9,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=AP.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:Oe})}lowercase(e=AP.lowercase){return this.transform(e=>A6(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>A6(e)||e===e.toLowerCase()})}uppercase(e=AP.uppercase){return this.transform(e=>A6(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>A6(e)||e===e.toUpperCase()})}}Or.prototype=On.prototype;let Oi=e=>e!=+e;function Oo(){return new Oa}class Oa extends A5{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&&!Oi(e)}min(e,t=AL.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return A6(t)||t>=this.resolve(e)}})}max(e,t=AL.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return A6(t)||t<=this.resolve(e)}})}lessThan(e,t=AL.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return A6(t)||tthis.resolve(e)}})}positive(e=AL.positive){return this.moreThan(0,e)}negative(e=AL.negative){return this.lessThan(0,e)}integer(e=AL.integer){return this.test({name:"integer",message:e,test:e=>A6(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>A6(e)?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>A6(t)?t:Math[e](t))}}Oo.prototype=Oa.prototype;var Os=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let Ol=new Date(""),Ou=e=>"[object Date]"===Object.prototype.toString.call(e);function Oc(){return new Od}class Od extends A5{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,r,n=[1,4,5,6,7,10,11],i=0;if(r=Os.exec(e)){for(var o,a=0;o=n[a];++a)r[o]=+r[o]||0;r[2]=(+r[2]||1)-1,r[3]=+r[3]||1,r[7]=r[7]?String(r[7]).substr(0,3):0,(void 0===r[8]||""===r[8])&&(void 0===r[9]||""===r[9])?t=+new Date(r[1],r[2],r[3],r[4],r[5],r[6],r[7]):("Z"!==r[8]&&void 0!==r[9]&&(i=60*r[10]+r[11],"+"===r[9]&&(i=0-i)),t=Date.UTC(r[1],r[2],r[3],r[4],r[5]+i,r[6],r[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?Ol:new Date(e)})})}_typeCheck(e){return Ou(e)&&!isNaN(e.getTime())}prepareParam(e,t){let r;if(AQ.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=AD.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return A6(e)||e>=this.resolve(r)}})}max(e,t=AD.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return A6(e)||e<=this.resolve(r)}})}}Od.INVALID_DATE=Ol,Oc.prototype=Od.prototype,Oc.INVALID_DATE=Ol;var Of=r(57370),Oh=r.n(Of),Op=r(96009),Om=r.n(Op),Ov=r(19950),Og=r.n(Ov),Oy=r(95159),Ob=r.n(Oy);function Ox(e,t){let r=1/0;return e.some((e,n)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return r=n,!0}),r}function Ow(e){return(t,r)=>Ox(e,t)-Ox(e,r)}function OE(){return(OE=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),Oj=Ow([]);class OC extends A5{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=Oj,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 OS(e)||"function"==typeof e}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault();if(!this._typeCheck(n))return n;let i=this.fields,o=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,a=this._nodes.concat(Object.keys(n).filter(e=>-1===this._nodes.indexOf(e))),s={},l=OE({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let r=i[e],a=AB()(n,e);if(r){let i;let o=n[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(r=r.resolve({value:o,context:t.context,parent:s}))?r.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in n;continue}void 0!==(i=t.__validating&&c?n[e]:r.cast(n[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=n[e]);s[e]!==n[e]&&(u=!0)}return u?s:n}_validate(e,t={},r){let n=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!Aq.isError(e)||s)return void r(e,u);n.push(e)}if(!l||!OS(u)){r(n[0]||null,u);return}a=a||u,AZ({sync:i,tests:this._nodes.map(e=>(r,n)=>{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],OE({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[e]}),n);return}n(null)}),value:u,errors:n,endEarly:s,sort:this._sortErrors,path:t.path},r)})}clone(e){let t=super.clone(e);return t.fields=OE({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[e,t]of Object.entries(this.fields)){let n=r[e];void 0===n?r[e]=t:n instanceof A5&&t instanceof A5&&(r[e]=t.concat(n))}return t.withMutation(()=>t.shape(r,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let r=this.fields[t];e[t]="default"in r?r.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let r=this.clone(),n=Object.assign(r.fields,e);return r.fields=n,r._sortErrors=Ow(Object.keys(n)),t.length&&(Array.isArray(t[0])||(t=[t]),r._excludedEdges=[...r._excludedEdges,...t]),r._nodes=function(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,AK.split)(e)[0];n.add(o),i.has(`${t}-${o}`)||r.push([t,o])}for(let t in e)if(AB()(e,t)){let r=e[t];n.add(t),AQ.isRef(r)&&r.isSibling?o(r.path,t):AU(r)&&"deps"in r&&r.deps.forEach(e=>o(e,t))}return Ob().array(Array.from(n),r).reverse()}(n,r._excludedEdges),r}pick(e){let t={};for(let r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),r=t.fields;for(let n of(t.fields={},e))delete r[n];return t.withMutation(()=>t.shape(r))}from(e,t,r){let n=(0,AK.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return AB()(i,e)&&(o=OE({},i),r||delete o[e],o[t]=n(i)),o})}noUnknown(e=!0,t=AI.noUnknown){"string"==typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let r;if(null==t)return!0;let n=(r=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===r.indexOf(e)));return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=AI.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&Og()(t,(t,r)=>e(r)))}camelCase(){return this.transformKeys(Om())}snakeCase(){return this.transformKeys(Oh())}constantCase(){return this.transformKeys(e=>Oh()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=AX()(this.fields,e=>e.describe()),e}}function Ok(e){return new OC(e)}function OA(){return(OA=Object.assign||function(e){for(var t=1;te.id===t),o=r.length-1;return(0,x.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,x.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,x.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),r.map((e,r)=>{let{id:a,label:s}=e,l=t===a,u=i>=r,c=r===o,d=0===r,f=u&&i!==o;return(0,x.jsxs)("div",{className:(0,ey.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(r/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&n(a)},children:[(0,x.jsx)(t8,{color:l?"contrast":"verySubtle",className:(0,ey.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,x.jsx)("div",{className:(0,ey.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,x.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}Ok.prototype=OC.prototype,(class extends A5{constructor(e){super({type:"array"}),this.innerType=void 0,this.innerType=e,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})})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){let r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1,i=r.map((e,r)=>{let i=this.innerType.cast(e,OA({},t,{path:`${t.path||""}[${r}]`}));return i!==e&&(n=!0),i});return n?i:r}_validate(e,t={},r){var n,i;let o=[],a=t.sync,s=t.path,l=this.innerType,u=null!=(n=t.abortEarly)?n:this.spec.abortEarly,c=null!=(i=t.recursive)?i:this.spec.recursive,d=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,n)=>{if(e){if(!Aq.isError(e)||u)return void r(e,n);o.push(e)}if(!c||!l||!this._typeCheck(n)){r(o[0]||null,n);return}d=d||n;let i=Array(n.length);for(let e=0;el.validate(r,a,t)}AZ({sync:a,path:s,value:n,errors:o,endEarly:u,tests:i},r)})}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(!AU(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+AN(e));return t.innerType=e,t}length(e,t=AF.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return A6(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||AF.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return A6(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||AF.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return A6(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,r,n)=>!e(t,r,n):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)}}).prototype,Ok().shape({address:Or().required("Required"),siacoin:Or().required("Required").test("greater than zero","Must be greater than zero",e=>!new(hv())(e||0).isZero())}),(0,wC.qN)(.00393),new(hv())(0);let O_="[a-fA-F\\d:]",OT=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(O_,")|(?<=").concat(O_,")(?=\\s|$))"):"",OM="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",ON="[a-fA-F\\d]{1,4}",OR="\n(?:\n(?:".concat(ON,":){7}(?:").concat(ON,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(ON,":){6}(?:").concat(OM,"|:").concat(ON,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(ON,":){5}(?::").concat(OM,"|(?::").concat(ON,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(ON,":){4}(?:(?::").concat(ON,"){0,1}:").concat(OM,"|(?::").concat(ON,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(ON,":){3}(?:(?::").concat(ON,"){0,2}:").concat(OM,"|(?::").concat(ON,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(ON,":){2}(?:(?::").concat(ON,"){0,3}:").concat(OM,"|(?::").concat(ON,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(ON,":){1}(?:(?::").concat(ON,"){0,4}:").concat(OM,"|(?::").concat(ON,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(ON,"){0,5}:").concat(OM,"|(?::").concat(ON,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),OP=new RegExp("(?:^".concat(OM,"$)|(?:^").concat(OR,"$)")),OL=new RegExp("^".concat(OM,"$")),OD=new RegExp("^".concat(OR,"$")),OI=e=>e&&e.exact?OP:RegExp("(?:".concat(OT(e)).concat(OM).concat(OT(e),")|(?:").concat(OT(e)).concat(OR).concat(OT(e),")"),"g");OI.v4=e=>e&&e.exact?OL:RegExp("".concat(OT(e)).concat(OM).concat(OT(e)),"g"),OI.v6=e=>e&&e.exact?OD:RegExp("".concat(OT(e)).concat(OR).concat(OT(e)),"g");let OF=()=>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"),OV={port:9981,ip:""},OB=Ok().shape({port:Oo().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:Or().required("Required").test("ip","Invalid hostname or IP address",e=>OF().test(e||""))});function OU(e){var t,r,n,i,o,a,s,l,u,c,d,f,h,p,m,v,g,y,b,E,S,j,C,k,A,O,_,T,M,N,R,P,L,D,I,F,V,B,U,z,H,$,W,q,G,Z,Y,X,K,J,Q,ee,et,er,en;let{trigger:ei,open:eo,connect:ea,onOpenChange:es}=e,el=(n=void 0===(r=(t={initialValues:OV,validationSchema:OB,onSubmit:async(e,t)=>{let r="".concat(e.ip,":").concat(e.port),n=await ea(r);if(n.error){let e=n.error.replace("invalid peer address: address ".concat(r,":"),"");t.setStatus({error:e})}else Sg("Connected to peer"),t.resetForm(),es(!1)}}).validateOnChange)||r,o=void 0===(i=t.validateOnBlur)||i,s=void 0!==(a=t.validateOnMount)&&a,l=t.isInitialValid,c=void 0!==(u=t.enableReinitialize)&&u,d=t.onSubmit,f=Ai(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=An({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:d},f),p=(0,w.useRef)(h.initialValues),m=(0,w.useRef)(h.initialErrors||Am),v=(0,w.useRef)(h.initialTouched||Av),g=(0,w.useRef)(h.initialStatus),y=(0,w.useRef)(!1),b=(0,w.useRef)({}),(0,w.useEffect)(function(){return y.current=!0,function(){y.current=!1}},[]),S=(E=(0,w.useReducer)(Ap,{values:h.initialValues,errors:h.initialErrors||Am,touched:h.initialTouched||Av,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}))[0],j=E[1],C=(0,w.useCallback)(function(e,t){return new Promise(function(r,n){var i=h.validate(e,t);null==i?r(Am):Ac(i)?i.then(function(e){r(e||Am)},function(e){n(e)}):r(i)})},[h.validate]),k=(0,w.useCallback)(function(e,t){var r,n,i,o=h.validationSchema,a=As(o)?o(t):o,s=t&&a.validateAt?a.validateAt(t,e):(void 0===r&&(r=!1),void 0===n&&(n={}),i=function e(t){var r=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=String(n);!0===Array.isArray(t[i])?r[i]=t[i].map(function(t){return!0===Array.isArray(t)||j5(t)?e(t):""!==t?t:void 0}):j5(t[i])?r[i]=e(t[i]):r[i]=""!==t[i]?t[i]:void 0}return r}(e),a[r?"validateSync":"validate"](i,{abortEarly:!1,context:n}));return new Promise(function(e,t){s.then(function(){e(Am)},function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Af(t,e.path,e.message);for(var r=e.inner,n=Array.isArray(r),i=0,r=n?r:r[Symbol.iterator]();;){if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}var o,a=o;Ad(t,a.path)||(t=Af(t,a.path,a.message))}}return t}(r)):t(r)})})},[h.validationSchema]),A=(0,w.useCallback)(function(e,t){return new Promise(function(r){return r(b.current[e].validate(t))})},[]),O=(0,w.useCallback)(function(e){var t=Object.keys(b.current).filter(function(e){return As(b.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return A(t,Ad(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=Af(e,t[n],r)),e},{})})},[A]),_=(0,w.useCallback)(function(e){return Promise.all([O(e),h.validationSchema?k(e):{},h.validate?C(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return jV.all([t,r,n],{arrayMerge:Ag})})},[h.validate,h.validationSchema,O,C,k]),T=Ab(function(e){return void 0===e&&(e=S.values),j({type:"SET_ISVALIDATING",payload:!0}),_(e).then(function(e){return y.current&&(j({type:"SET_ISVALIDATING",payload:!1}),j({type:"SET_ERRORS",payload:e})),e})}),(0,w.useEffect)(function(){s&&!0===y.current&&jR()(p.current,h.initialValues)&&T(p.current)},[s,T]),M=(0,w.useCallback)(function(e){var t=e&&e.values?e.values:p.current,r=e&&e.errors?e.errors:m.current?m.current:h.initialErrors||{},n=e&&e.touched?e.touched:v.current?v.current:h.initialTouched||{},i=e&&e.status?e.status:g.current?g.current:h.initialStatus;p.current=t,m.current=r,v.current=n,g.current=i;var o=function(){j({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var a=h.onReset(S.values,X);Ac(a)?a.then(o):o()}else o()},[h.initialErrors,h.initialStatus,h.initialTouched]),(0,w.useEffect)(function(){!0===y.current&&!jR()(p.current,h.initialValues)&&(c&&(p.current=h.initialValues,M()),s&&T(p.current))},[c,h.initialValues,M,s,T]),(0,w.useEffect)(function(){c&&!0===y.current&&!jR()(m.current,h.initialErrors)&&(m.current=h.initialErrors||Am,j({type:"SET_ERRORS",payload:h.initialErrors||Am}))},[c,h.initialErrors]),(0,w.useEffect)(function(){c&&!0===y.current&&!jR()(v.current,h.initialTouched)&&(v.current=h.initialTouched||Av,j({type:"SET_TOUCHED",payload:h.initialTouched||Av}))},[c,h.initialTouched]),(0,w.useEffect)(function(){c&&!0===y.current&&!jR()(g.current,h.initialStatus)&&(g.current=h.initialStatus,j({type:"SET_STATUS",payload:h.initialStatus}))},[c,h.initialStatus,h.initialTouched]),N=Ab(function(e){if(b.current[e]&&As(b.current[e].validate)){var t=Ad(S.values,e),r=b.current[e].validate(t);return Ac(r)?(j({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){j({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),j({type:"SET_ISVALIDATING",payload:!1})})):(j({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return h.validationSchema?(j({type:"SET_ISVALIDATING",payload:!0}),k(S.values,e).then(function(e){return e}).then(function(t){j({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),j({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),R=(0,w.useCallback)(function(e,t){var r=t.validate;b.current[e]={validate:r}},[]),P=(0,w.useCallback)(function(e){delete b.current[e]},[]),L=Ab(function(e,t){return j({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?T(S.values):Promise.resolve()}),D=(0,w.useCallback)(function(e){j({type:"SET_ERRORS",payload:e})},[]),I=Ab(function(e,t){var r=As(e)?e(S.values):e;return j({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?T(r):Promise.resolve()}),F=(0,w.useCallback)(function(e,t){j({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),V=Ab(function(e,t,r){return j({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?T(Af(S.values,e,t)):Promise.resolve()}),B=(0,w.useCallback)(function(e,t){var r,n=t,i=e;if(!Au(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;n=t||s||l,i=/number|range/.test(a)?isNaN(r=parseFloat(u))?"":r:/checkbox/.test(a)?function(e,t,r){if("boolean"==typeof e)return!!t;var n=[],i=!1,o=-1;if(Array.isArray(e))n=e,i=(o=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,o).concat(n.slice(o+1)):n}(Ad(S.values,n),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}n&&V(n,i)},[V,S.values]),U=Ab(function(e){if(Au(e))return function(t){return B(t,e)};B(e)}),z=Ab(function(e,t,r){return void 0===t&&(t=!0),j({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?T(S.values):Promise.resolve()}),H=(0,w.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,i=r.id;r.outerHTML,z(t||n||i,!0)},[z]),$=Ab(function(e){if(Au(e))return function(t){return H(t,e)};H(e)}),W=(0,w.useCallback)(function(e){As(e)?j({type:"SET_FORMIK_STATE",payload:e}):j({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),q=(0,w.useCallback)(function(e){j({type:"SET_STATUS",payload:e})},[]),G=(0,w.useCallback)(function(e){j({type:"SET_ISSUBMITTING",payload:e})},[]),Z=Ab(function(){return j({type:"SUBMIT_ATTEMPT"}),T().then(function(e){var t,r=e instanceof Error;if(!r&&0===Object.keys(e).length){try{if(t=K(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return y.current&&j({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(y.current)throw j({type:"SUBMIT_FAILURE"}),e})}if(y.current&&(j({type:"SUBMIT_FAILURE"}),r))throw e})}),Y=Ab(function(e){e&&e.preventDefault&&As(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&As(e.stopPropagation)&&e.stopPropagation(),Z().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),X={resetForm:M,validateForm:T,validateField:N,setErrors:D,setFieldError:F,setFieldTouched:z,setFieldValue:V,setStatus:q,setSubmitting:G,setTouched:L,setValues:I,setFormikState:W,submitForm:Z},K=Ab(function(){return d(S.values,X)}),J=Ab(function(e){e&&e.preventDefault&&As(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&As(e.stopPropagation)&&e.stopPropagation(),M()}),Q=(0,w.useCallback)(function(e){return{value:Ad(S.values,e),error:Ad(S.errors,e),touched:!!Ad(S.touched,e),initialValue:Ad(p.current,e),initialTouched:!!Ad(v.current,e),initialError:Ad(m.current,e)}},[S.errors,S.touched,S.values]),ee=(0,w.useCallback)(function(e){return{setValue:function(t,r){return V(e,t,r)},setTouched:function(t,r){return z(e,t,r)},setError:function(t){return F(e,t)}}},[V,z,F]),et=(0,w.useCallback)(function(e){var t=Al(e),r=t?e.name:e,n=Ad(S.values,r),i={name:r,value:n,onChange:U,onBlur:$};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!n:(i.checked=!!(Array.isArray(n)&&~n.indexOf(a)),i.value=a):"radio"===o?(i.checked=n===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[$,U,S.values]),er=(0,w.useMemo)(function(){return!jR()(p.current,S.values)},[p.current,S.values]),en=(0,w.useMemo)(function(){return void 0!==l?er?S.errors&&0===Object.keys(S.errors).length:!1!==l&&As(l)?l(h):l:S.errors&&0===Object.keys(S.errors).length},[l,er,S.errors,h]),An({},S,{initialValues:p.current,initialErrors:m.current,initialTouched:v.current,initialStatus:g.current,handleBlur:$,handleChange:U,handleReset:J,handleSubmit:Y,resetForm:M,setErrors:D,setFormikState:W,setFieldTouched:z,setFieldValue:V,setFieldError:F,setStatus:q,setSubmitting:G,setTouched:L,setValues:I,submitForm:Z,validateForm:T,validateField:N,isValid:en,dirty:er,unregisterField:P,registerField:R,getFieldProps:et,getFieldMeta:Q,getFieldHelpers:ee,validateOnBlur:o,validateOnChange:n,validateOnMount:s}));return(0,x.jsx)(cj,{trigger:ei,title:"Connect peer",open:eo,onOpenChange:e=>{e||el.resetForm(),es(e)},contentVariants:{className:"w-[400px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t7,{size:"14",children:"Connect to a peer by IP address."}),(0,x.jsx)("form",{onSubmit:el.handleSubmit,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(S3,{formik:el,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,x.jsx)(S3,{formik:el,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,x.jsx)(je,{formik:el,size:"medium",children:"Connect"})]})})]})})}Ok().shape({address:Or().required("Required"),description:Or().required("Required"),index:Oo().integer().required("Required")});var Oz=r(38001);function OH(e){let{title:t,description:r,address:n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,x.jsx)(fr,{size:"20",font:"mono",children:t}),r&&(0,x.jsx)(t8,{children:r}),(0,x.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,x.jsx)("div",{className:"absolute",children:(0,x.jsx)(Oz.Z,{size:200,value:n})})}),(0,x.jsx)(SO,{type:"address",value:n})]})}let O$={docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/your-sia-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"},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"};function OW(e){return 6e4*e}function Oq(e){return 36e5*e}function OG(){let{settings:e,setCurrency:t,currencyOptions:r}=(0,hx.Hv)();return(0,x.jsx)(hA,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:r.map(e=>{let{id:t,label:r}=e;return(0,x.jsx)(hO,{value:t,children:r},t)})})}function OZ(e){let{open:t,onOpenChange:r,securityEl:n}=e,{settings:i,setSettings:o,gpu:a}=(0,hx.Hv)();return(0,x.jsx)(cj,{open:t,title:"App preferences",onOpenChange:r,contentVariants:{className:"w-[450px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,x.jsx)("div",{className:"flex flex-col gap-4",children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t8,{size:"16",weight:"bold",children:"Display"}),(0,x.jsx)(t7,{size:"14",children:"Configure visual and locale display preferences."}),(0,x.jsx)(ly,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(lv.RdX,{})}),(0,x.jsx)(fr,{size:"20",className:"flex-1",children:"Currency"}),(0,x.jsx)(OG,{})]}),(0,x.jsx)(t7,{size:"14",children:"Select a currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,x.jsx)(ly,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(lv.RdX,{})}),(0,x.jsx)(fr,{size:"20",className:"flex-1",children:"Theme"}),(0,x.jsx)(mH,{})]}),(0,x.jsx)(t7,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),(0,x.jsx)(ly,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(lv.RdX,{})}),(0,x.jsx)(fr,{size:"20",className:"flex-1",children:"GPU"}),(0,x.jsx)(hH,{disabled:!a.canGpuRender,checked:a.canGpuRender&&a.isGpuEnabled,onCheckedChange:a.setIsGpuEnabled,size:"medium"})]}),(0,x.jsxs)(t7,{size:"14",children:["Enable features that require a GPU."," ",a.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,x.jsx)(dG,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(t8,{size:"16",weight:"bold",children:"Security"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t7,{size:"14",children:"Configure security preferences."}),(0,x.jsx)(ly,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(lv.RdX,{})}),(0,x.jsx)(fr,{size:"20",className:"flex-1",children:"Lock app"}),(0,x.jsx)(hH,{size:"medium",checked:i.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,x.jsxs)(hA,{disabled:!i.autoLock,value:String(i.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,x.jsx)(hO,{value:OW(5),children:"5 minutes"}),(0,x.jsx)(hO,{value:OW(10),children:"10 minutes"}),(0,x.jsx)(hO,{value:OW(20),children:"20 minutes"}),(0,x.jsx)(hO,{value:OW(30),children:"30 minutes"}),(0,x.jsx)(hO,{value:OW(60),children:"1 hour"})]})]}),(0,x.jsx)(t7,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),n]})]}),(0,x.jsx)(dG,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(t8,{size:"16",weight:"bold",children:"Privacy"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t7,{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,x.jsx)(ly,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(lv.RdX,{})}),(0,x.jsx)(fr,{size:"20",className:"flex-1",children:"Sia Central"}),(0,x.jsx)(hH,{size:"medium",checked:i.siaCentral,onCheckedChange:e=>o({siaCentral:e})})]}),(0,x.jsx)(t7,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,x.jsx)(dG,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(t8,{size:"16",weight:"bold",children:"Help"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t7,{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,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)(fm,{href:O$.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(lv.lq1,{}),"Website"]}),(0,x.jsxs)(fm,{href:O$.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(lv.RdX,{}),"Docs"]}),(0,x.jsxs)(fm,{href:O$.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(lv.Sfn,{}),"About"]}),(0,x.jsxs)(fm,{href:O$.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(lv.b47,{}),"Discord"]})]})]})]})]})})}function OY(e){let{peers:t,connectPeer:r}=e;return(0,x.jsx)(SK,{title:"Peers",actions:(0,x.jsx)(lm,{onClick:r,children:"Connect"}),entities:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}var OX=r(17335),OK=r.n(OX);function OJ(e){let{label:t,columns:r,enabled:n,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===OK()(r,n).length,s=OK()(r,n).length===r.length;return(0,x.jsxs)(dQ,{children:[(0,x.jsx)(ff,{children:t}),(0,x.jsxs)(d0,{children:[(0,x.jsx)(lm,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(r)},children:(0,x.jsx)(lv.xVB,{})}),(0,x.jsx)(lm,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(r)},children:(0,x.jsx)(lv.pHg,{})})]})]})}function OQ(e){let{open:t,params:r,trigger:n,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=r||{},c=(0,jE.cI)(),d=(0,w.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,x.jsx)(cj,{title:a,trigger:n,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,x.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,x.jsx)("div",{className:"flex gap-1 justify-end",children:(0,x.jsx)(S4,{variant:s,form:c,size:"small",children:l})})]})})})}function O0(e){let{name:t,peerCount:r,isSynced:n,nodeBlockHeight:i,connectPeer:o}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(t8,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsxs)("div",{className:"flex items-center",children:[r?(0,x.jsxs)(lm,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(r," connected peers"),children:[(0,x.jsx)(t8,{color:"subtle",children:r.toLocaleString()}),(0,x.jsx)(lv.RK4,{})]}):null,i&&n?(0,x.jsx)(lh,{content:"Blockchain is synced",children:(0,x.jsx)("div",{className:"relative left-2",children:(0,x.jsxs)(lm,{variant:"ghost",state:"waiting",children:[(0,x.jsx)(t8,{color:"subtle",children:i.toLocaleString()}),(0,x.jsx)(t8,{color:"green",children:(0,x.jsx)(lv.Y3p,{})})]})})}):null]})]})}function O1(e){let{nodeBlockHeight:t,networkBlockHeight:r,moreThan100BlocksToSync:n,percent:i}=e;return(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,x.jsx)(f0,{variant:"accent",value:t&&r?t:0,max:r||1,className:""}),(0,x.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,x.jsx)(t8,{color:"subtle",size:"10",children:"Syncing..."}),t&&r?n?(0,x.jsx)(t8,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(r.toLocaleString()," (").concat(i,"%)")}):(0,x.jsx)(t8,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function O2(e){let{name:t,peerCount:r,connectPeer:n,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,x.jsx)(pT,{rootProps:{openDelay:100},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,x.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,x.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,x.jsxs)(t8,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,x.jsx)(fy,{size:30})]}),children:(0,x.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[300px]",children:[(0,x.jsx)(O0,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:r,connectPeer:n}),i?(0,x.jsx)(dG,{className:"w-full mb-0.5"}):(0,x.jsx)(O1,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(t8,{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,x.jsx)(dG,{className:"w-full mb-1"})]}),c]})})}function O4(e){let{testnetName:t}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,x.jsx)(t8,{color:"lo",children:(0,x.jsx)(lv.RdX,{})}),(0,x.jsxs)(t8,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function O3(e){let{name:t,form:r,fields:n,size:i="small"}=e,o=n[t],{average:a,suggestion:s,units:l,decimalsLimitSc:u=6,decimalsLimitFiat:c=6}=o,{setValue:d,value:f,error:h}=jC({name:t,field:o,form:r});return(0,x.jsx)(S2,{title:o.title,name:t,form:r,children:(0,x.jsx)(hE,{name:t,size:i,sc:f,units:l,decimalsLimitSc:u,decimalsLimitFiat:c,error:h,changed:r.formState.dirtyFields[t],placeholder:s||a,onChange:e=>{d(e,!0)},onBlur:()=>{d(f,!0)}})})}function O5(e){let{name:t,form:r,fields:n}=e,i=n[t],{placeholder:o,decimalsLimit:a=2,units:s}=i,{setValue:l,error:u,value:c}=jC({form:r,field:i,name:t});return(0,x.jsx)(S2,{title:i.title,name:t,form:r,wrap:!0,children:(0,x.jsx)(hy,{name:t,value:c,units:s,decimalsLimit:a,placeholder:o?new(hv())(o):void 0,state:u?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(hv())(e):void 0;l(t,!0)},onBlur:()=>{l(c,!0)}})})}function O6(e){let{name:t,form:r,fields:n}=e,i=n[t],{placeholder:o}=i,{ref:a,onChange:s,onBlur:l,error:u}=jC({name:t,form:r,field:i});return(0,x.jsx)(S2,{title:i.title,actions:i.actions,name:t,form:r,children:(0,x.jsx)(f2,{ref:a,name:t,placeholder:o,readOnly:i.readOnly,onClick:i.onClick,state:u?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:s,onBlur:l})})}function O8(e){let{name:t,form:r,fields:n,size:i="medium",group:o=!0,children:a}=e,s=n[t],{setValue:l,value:u,error:c}=jC({name:t,field:s,form:r}),d=(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,x.jsx)(hH,{name:t,size:i,checked:u,state:c?"invalid":r.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,x.jsx)(S2,{title:s.title,name:t,form:r,children:d}):d}function O7(e){let{name:t,form:r,fields:n,group:i=!0}=e,o=n[t],{options:a}=o,{ref:s,onChange:l,onBlur:u,error:c}=jC({name:t,form:r,field:o}),d=(0,x.jsx)(hA,{ref:s,name:t,size:"small",state:c?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:l,onBlur:u,children:null==a?void 0:a.map(e=>(0,x.jsx)(hO,{value:e.value,children:e.label},e.value))});return i?(0,x.jsx)(S2,{title:o.title,name:t,form:r,children:d}):d}var O9=r(75652),_e=r.n(O9);lv.lg1,lv.eHR,lv.I$H,lv.KiD,lv.P5r,lv.CCF,lv.w9S,lv.EL$,lv.aPl,lv.wEY,lv.EOT,lv.kSc,lv.W$S,lv.lJ7,lv.ORH,lv.ka0,lv.BdP,lv.d19,lv.Mes,lv.VUg,lv.U_S,lv.T85;let _t=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,w.useState)(!0),l=(0,w.useRef)(!1),u=(0,w.useRef)(0);return(0,w.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,w.createElement)(tz,{scope:t,isOpenDelayed:a,delayDuration:r,onOpen:(0,w.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,w.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:(0,w.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function _r(e){let{children:t}=e,[r,n]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{n(!0)},[]),(0,x.jsx)("div",{children:r?t:null})}function _n(e){let{passwordProtectRequestHooks:t,fallback:r,children:n,lockRoutes:i}=e;return(0,x.jsx)(_r,{children:(0,x.jsx)(hx.kl,{fallback:r,children:(0,x.jsx)(mg,{attribute:"class",children:(0,x.jsx)(_t,{children:(0,x.jsx)(hx.bW,{lockRoutes:i,passwordProtectRequestHooks:t,children:(0,x.jsxs)("div",{id:"root",className:ld,children:[(0,x.jsx)(Sw,{}),n]})})})})})})}r(331);var _i=r(30898),_o=r.n(_i),_a=r(92762);let _s=[];function _l(e,t){let{columns:r,columnsDefaultVisible:n,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:_s,...t},[s,l]=(0,_a.Z)("".concat(e,"/enabledColumns"),{defaultValue:n}),[u,c]=(0,_a.Z)("".concat(e,"/sortField"),{defaultValue:i}),[d,f]=(0,_a.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),h=(0,w.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),p=(0,w.useCallback)(e=>{l(t=>_e()([...t,...e]))},[l]),m=(0,w.useCallback)(e=>{l(t=>OK()(t,e))},[l]),v=(0,w.useCallback)(()=>{l(n)},[l,n]),g=(0,w.useCallback)(e=>{if(u!==e){c(e),f("asc");return}f(e=>"desc"===e?"asc":"desc")},[u,c,f]),y=(0,w.useMemo)(()=>r.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[r,a]),b=(0,w.useMemo)(()=>r.filter(e=>{let t=e.fixed||s.includes(e.id),r=null==a?void 0:a.includes(e.category||"");return t&&!r}).map(e=>e.id),[r,s,a]),x=(0,w.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return _o()(e,b)},[o,b]);return{configurableColumns:y,enabledColumns:b,toggleColumnVisibility:h,toggleSort:g,setSortDirection:f,setSortField:c,sortableColumns:x,sortField:u,setColumnsVisible:p,setColumnsHidden:m,sortDirection:d,resetDefaultColumnVisibility:v}}function _u(){let e=(0,jr.useRouter)(),[t,r]=(0,w.useState)([]),n=(0,w.useCallback)(t=>{r(e=>{let r=e.filter(e=>e.id!==t.id);return r.concat(t)}),e.replace({query:{}})},[e,r]),i=(0,w.useCallback)(()=>{r([]),e.replace({query:{}})},[e,r]),o=(0,w.useCallback)(t=>{r(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,r]),a=(0,w.useCallback)(()=>{t.length&&(r(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,r,t]);return{filters:t,setFilter:n,removeFilter:o,removeLastFilter:a,resetFilters:i}}function _c(e){let{dataset:t,filters:r,sortField:n,sortDirection:i}=e;return(0,w.useMemo)(()=>{if(!t)return null;let e=Object.entries(r).map(e=>{let[t,r]=e;return r}),o=e.length?t.filter(t=>{for(let r of e)if(!r.fn(t))return!1;return!0}):t;return[...o=o.sort((e,t)=>{let r=e[n],o=t[n];return"desc"===i?r instanceof hv()&&o instanceof hv()?r.lte(o)?1:-1:r<=o?1:-1:r instanceof hv()&&o instanceof hv()?r.gte(o)?1:-1:r>=o?1:-1})]},[t,r,n,i])}function _d(){let e=(0,jr.useRouter)(),[t,r]=(0,w.useState)([]),n=(0,w.useCallback)(t=>{r(e=>{let r=e.filter(e=>e.id!==t.id);return r.concat(t)}),e.replace({query:{}})},[e,r]),i=(0,w.useCallback)(()=>{r([]),e.replace({query:{}})},[e,r]),o=(0,w.useCallback)(t=>{r(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,r]),a=(0,w.useCallback)(()=>{t.length&&(r(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,r,t]);return{filters:t,setFilter:n,removeFilter:o,removeLastFilter:a,resetFilters:i}}new(hv())(0)},2850:function(e,t,r){"use strict";r.d(t,{bW:function(){return P},kl:function(){return U},gw:function(){return i},Tc:function(){return V},du:function(){return B},Hv:function(){return R},iv:function(){return F},Nf:function(){return I},mw:function(){return L},V1:function(){return D}});var n=r(79381);function i(e){return new Promise(t=>setTimeout(t,e))}var o=r(89644),a=r.n(o),s=r(2784);function l(e){return{...e,config:{...null==e?void 0:e.config}}}function u(e){return{...e,config:{...null==e?void 0:e.config}}}function c(e,t,r){return(null==r?void 0:r.api)||(null==t?void 0:t.api)||e.api}function d(e,t,r){var n,i;let o=function(e,t,r){var n,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(n=i.axios)||void 0===n?void 0:n.headers,...null==r?void 0:null===(a=r.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=c(e,t,r);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,r);return{responseType:"json",...null===(n=t.config)||void 0===n?void 0:n.axios,...null==r?void 0:null===(i=r.config)||void 0===i?void 0:i.axios,headers:o}}function f(e,t,r,n){if(!t)return null;let i=(null==r?void 0:r.params)||{};if(n&&n.params&&(i={...i,...n.params}),!(t=function(e,t){if(e&&t){let r=Object.keys(t);for(let n of r){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=c(e,r,n);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function h(e,t,r,n){let i=c(e,r,n);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var p=r(52322),m=r(82876),v=r(92762);function g(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}let y=["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 b(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 x="undefined"==typeof window,w=(()=>{if(x)return;let{userAgent:e,platform:t,maxTouchPoints:r}=window.navigator,n=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&r>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||n||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class E extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let S=[],j=[];function C(e){return null!=e}let k=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:r={},glContext:n,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>g(void 0,void 0,void 0,function*(){let a={};if(x)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==w?void 0:w.isIpad),isMobile:l=!!(null==w?void 0:w.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>g(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 E("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=r,{renderer:d}=r,f=(e,t,r,n,i)=>({device:i,fps:n,gpu:r,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=b(d)];else{var m;let e=n||function(e,t=!1){let r={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete r.powerPreference;let n=window.document.createElement("canvas"),i=n.getContext("webgl",r)||n.getContext("experimental-webgl",r);return null!=i?i:void 0}(null==w?void 0:w.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=b(d))?function(e,t,r){let n;if(!r)return[t];let i=function(e){let t=e.createShader(35633),r=e.createShader(35632),n=e.createProgram();if(!(r&&t&&n))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(r,"\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(r),e.attachShader(n,t),e.attachShader(n,r),e.linkProgram(n),e.detachShader(n,t),e.detachShader(n,r),e.deleteShader(t),e.deleteShader(r),e.useProgram(n);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(n,"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(n),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==w?void 0:w.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?n=l.filter(([,,e])=>e>=14):(n=l.filter(([,e])=>e===i)).length||(n=l),n.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return g(this,void 0,void 0,function*(){let r;let n=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let r of t)if(e.includes(r))return r})(e);if(!n)return;let i=`${l?"m":"d"}-${n}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{r=yield o}catch(e){if(e instanceof E)throw e;return}let d=function(e){var t;let r=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==r?void 0:r.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=r.filter(([,e])=>e===d);f.length||(f=r.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,r)=>0===t||e!==r[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,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,r]=e,n=t*r,i=Math.abs(x-n);ie===r?t-n:e-r);if(!v.length){let e=y.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,k,A,O]=v[0];if(-1===k)return f(0,"BLOCKLISTED",A,k,O);let _=l?e:t,T=0;for(let e=0;e<_.length;e++)k>=_[e]&&(T=e);return f(T,"BENCHMARK",A,k,O)}),A=(0,s.createContext)({}),O=()=>(0,s.useContext)(A);function _(e){let{children:t}=e,r=function(){let[e,t]=(0,s.useState)({}),r=(0,s.useCallback)((e,r)=>{t(t=>({...t,[e]:{key:e,...r}}))},[t]),n=(0,s.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,s.useCallback)(()=>{t({})},[t]),o=(0,s.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:r,removeWorkflow:n,resetWorkflows:i,workflows:o}}();return(0,p.jsx)(A.Provider,{value:r,children:t})}let T=[{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}],M={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:T[0],recentApis:{},autoLock:!1,autoLockTimeout:6e5},N=(0,s.createContext)({}),R=()=>(0,s.useContext)(N);function P(e){let{children:t,...r}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:r,defaultSettings:i}=e,o=(0,s.useMemo)(()=>({...M,...i}),[i]),[a,l]=(0,v.Z)("v0/settings",{defaultValue:o});(0,s.useEffect)(()=>{l(e=>({...o,...e}))},[]);let u=(0,s.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=O(),d=(0,s.useCallback)(e=>{l(t=>({...t,...e}))},[l]),f=(0,s.useCallback)(e=>{let t=T.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,m.useRouter)(),p=(0,m.usePathname)(),[g,y]=(0,s.useState)({}),b=(0,s.useCallback)((e,t)=>{y(r=>({...r,[e]:t}))},[y]),x=(0,s.useCallback)(()=>{for(let[e,t]of(r&&h.push("".concat(r.login,"?prev=").concat([r.login].includes(p)?r.home:p)),d({password:""}),c(),(0,n.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(g)))t&&t()},[h,r,d,c,g,p]),w=(0,s.useMemo)(()=>!!u.password,[u]),E=function(){let e=function(){var e,t;let r=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!r||!!r.matches}(),[t,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},l]=(0,v.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,s.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];l(r=>({...r,isGpuEnabled:e,hasUserSet:t}))},[l]),c=(0,s.useCallback)(async()=>{let e=!1;{let t=await k();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),r(!0)},[i,u,a]);return(0,s.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:n,isGpuEnabled:o,shouldRender:n&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:T,gpu:E,lock:x,isUnlocked:w,passwordProtectRequestHooks:t,setOnLockCallback:b}}(r);return(0,p.jsx)(N.Provider,{value:i,children:t})}function L(e,t){let{setWorkflow:r,removeWorkflow:i}=O(),{mutate:o}=(0,n.kY)(),{settings:s}=R(),c=l(e);return{post:async e=>{let n=u(e);try{let l;let u=d(s,c,n),p=f(s,c.route,c,n);if(!p)throw Error("No route");"payload"in n&&(l=n.payload);let m="".concat(p).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=h(s,p,e,n);r(m,{path:v,payload:l});let g=await a().post(p,l,u);return t&&await t(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=arguments.length>2?arguments[2]:void 0;return o(r=>{if("string"!=typeof r)return!1;let i=h(s,r,e,n);return t(i)},r,i)},n,g),i(m),{status:g.status,data:g.data}}catch(e){var l,p;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(p=e.response)||void 0===p?void 0:p.data)||e.message}}}}}function D(e,t){let{mutate:r}=(0,n.kY)(),{settings:i}=R(),{setWorkflow:o,removeWorkflow:s}=O(),c=l(e);return{put:async e=>{let n=u(e);try{let l;let u=d(i,c,n),p=f(i,c.route,c,n);if(!p)throw Error("No route");"payload"in n&&(l=n.payload);let m="".concat(p).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=h(i,p,e,n);o(m,{path:v,payload:l});let g=await a().put(p,l,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 r(r=>{if("string"!=typeof r)return!1;let o=h(i,r,e,n);return t(o)},o,a)},n,g),s(m),{status:g.status,data:g.data}}catch(e){var l,p;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(p=e.response)||void 0===p?void 0:p.data)||e.message}}}}}function I(e){var t,r,i;let o=(0,s.useMemo)(()=>({...e,config:{...null==e?void 0:e.config}}),[e]),{settings:l,passwordProtectRequestHooks:u}=R(),c=f(l,o.route,o,void 0);return(0,n.ZP)((r=e.standalone?"".concat(e.standalone,"/").concat(c):c,i=o.disabled||u&&!l.password,!r||i?null:r),async()=>{if(!o.route)throw Error("No route");let e=d(l,o,void 0);if(!c)throw Error("No route");try{let t=await a().get(c,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=o.config)||void 0===t?void 0:t.swr)}function F(e,t){let{mutate:r}=(0,n.kY)(),{settings:i}=R(),{setWorkflow:o,removeWorkflow:s}=O(),c=l(e);return{delete:async e=>{let n=u(e);try{let l=d(i,c,n),u=f(i,c.route,c,n);if(!u)throw Error("No route");let p=h(i,u,e,n);o(u,{path:p});let m=await a().delete(u,l);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 r(r=>{if("string"!=typeof r)return!1;let o=h(i,r,e,n);return t(o)},o,a)},n,m),s(u),{status:m.status,data:m.data}}catch(e){var l,p;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(p=e.response)||void 0===p?void 0:p.data)||e.message}}}}}function V(){return Math.round((new Date().getTime()-14336e8)/6e5)}function B(){return Math.round((new Date().getTime()-16736e8)/6e5)}function U(e){let{fallback:t,cacheProvider:r,children:i}=e;return(0,p.jsx)(_,{children:(0,p.jsx)(n.J$,{value:{fallback:t||{},provider:r},children:i})})}},20876:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.d(t,{aXP:function(){return tf},eHR:function(){return ty},xHM:function(){return tb},rW0:function(){return tx},osk:function(){return tw},JaG:function(){return tE},Ya6:function(){return tj},EMN:function(){return tM},bdU:function(){return tN},VUy:function(){return tR},Cp0:function(){return tP},kqg:function(){return tL},Mes:function(){return tD},Y3p:function(){return t$},Z$8:function(){return tH},tEK:function(){return tW},PcV:function(){return tG},QN4:function(){return tq},Jsc:function(){return tZ},wEY:function(){return tK},olJ:function(){return tJ},KiD:function(){return t0},Jrl:function(){return t4},aPl:function(){return t3},kBK:function(){return nw},Bpb:function(){return t6},iG7:function(){return rt},dr6:function(){return rr},d19:function(){return rn},w9S:function(){return ri},Hb6:function(){return rs},CCF:function(){return rl},UG6:function(){return nE},lq1:function(){return rc},Pj_:function(){return nC},K2o:function(){return nx},EL$:function(){return rf},BdP:function(){return rg},P5r:function(){return ry},RdX:function(){return rb},U_S:function(){return rx},POp:function(){return rS},kSc:function(){return rj},mBM:function(){return nb},Lur:function(){return rO},b47:function(){return r_},Sfn:function(){return rT},W$S:function(){return rD},T85:function(){return rI},Ckx:function(){return rF},EOT:function(){return rB},fDA:function(){return rV},RK4:function(){return rz},XJM:function(){return rq},j7C:function(){return rZ},ka0:function(){return rG},VUg:function(){return rJ},wGX:function(){return rQ},nt4:function(){return r0},Wet:function(){return r2},$Iz:function(){return r6},fwm:function(){return nA},shL:function(){return r8},hiv:function(){return r7},sZp:function(){return ne},lJ7:function(){return nS},ORH:function(){return ni},VmF:function(){return no},_Gh:function(){return na},Fhn:function(){return nj},R$y:function(){return nk},xVB:function(){return nd},pHg:function(){return nf},I$H:function(){return nh},oaN:function(){return ny},qdM:function(){return np},lg1:function(){return nv}});var a,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,E,S,j,C,k,A,O,_,T,M,N,R,P,L,D,I,F,V,B,U,z,H,$,W,q,G,Z,Y,X,K,J,Q,ee,et,er,en,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,eE,eS,ej,eC,ek,eA,eO,e_,eT,eM,eN,eR,eP,eL,eD,eI,eF,eV,eB,eU,ez,eH,e$,eW,eq,eG,eZ,eY,eX,eK,eJ,eQ,e0,e1,e2,e4,e3,e5,e6,e8,e7=["width","height","viewBox"],e9=["tabindex"],te={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tt=r(13980),tr=r.n(tt),tn=r(2784);function ti(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function to(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var tl=["className","children","tabIndex"],tu=["tabindex"],tc=tn.forwardRef(function(e,t){var r=e.className,n=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,r=e.height,n=e.viewBox,a=void 0===n?"0 0 ".concat(t," ").concat(r):n,s=o(e,e7),l=s.tabindex,u=o(s,e9),c=i(i(i({},te),u),{},{width:t,height:r,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}(to(to({},ts(e,tl)),{},{tabindex:a})),l=s.tabindex,u=ts(s,tu);return r&&(u.className=r),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tn.createElement("svg",u,n)});tc.displayName="Icon",tc.propTypes={"aria-hidden":tr().string,"aria-label":tr().string,"aria-labelledby":tr().string,children:tr().node,className:tr().string,height:tr().oneOfType([tr().number,tr().string]),preserveAspectRatio:tr().string,tabIndex:tr().string,viewBox:tr().string,width:tr().oneOfType([tr().number,tr().string]),xmlns:tr().string},tc.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var td=["children"],tf=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,td);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),a||(a=tn.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"})),r)}),th=["children"],tp=["children"],tm=["children"],tv=["children"],tg=["children"],ty=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,th);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),s||(s=tn.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tn.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),r)}),tb=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tp);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),u||(u=tn.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"})),r)}),tx=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tm);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),c||(c=tn.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"})),r)}),tw=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tv);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),d||(d=tn.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"})),r)}),tE=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tg);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),f||(f=tn.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),h||(h=tn.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),p||(p=tn.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),m||(m=tn.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),v||(v=tn.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),g||(g=tn.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),y||(y=tn.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),b||(b=tn.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),x||(x=tn.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"})),r)}),tS=["children"],tj=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tS);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),w||(w=tn.createElement("path",{d:"M16,30a1.06,1.06,0,0,1-.42-.09A1,1,0,0,1,15,29V18.41L8.41,25,7,23.59,14.59,16,7,8.41,8.41,7,15,13.59V3a1,1,0,0,1,.58-.91,1,1,0,0,1,1.07.15l7,6A1,1,0,0,1,24,9a1,1,0,0,1-.29.75L17.41,16l6.3,6.29A1,1,0,0,1,24,23a1,1,0,0,1-.35.72l-7,6A1,1,0,0,1,16,30Zm1-11.59v8.42l4.53-3.89ZM17,5.17v8.42l4.53-4.53Z"})),r)}),tC=["children"],tk=["children"],tA=["children"],tO=["children"],t_=["children"],tT=["children"],tM=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tC);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),E||(E=tn.createElement("path",{d:"M24 12L16 22 8 12z"})),r)}),tN=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tk);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),S||(S=tn.createElement("path",{d:"M20 24L10 16 20 8z"})),r)}),tR=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tA);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),j||(j=tn.createElement("path",{d:"M12 8L22 16 12 24z"})),r)}),tP=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tO);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),C||(C=tn.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),r)}),tL=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t_);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),k||(k=tn.createElement("path",{d:"M8 20L16 10 24 20z"})),r)}),tD=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tT);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),A||(A=tn.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"})),r)}),tI=["children"],tF=["children"],tV=["children"],tB=["children"],tU=["children"],tz=["children"],tH=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tI);return tn.createElement(tc,ta({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),O||(O=tn.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"})),_||(_=tn.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"})),r)}),t$=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tF);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),T||(T=tn.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"})),M||(M=tn.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"})),r)}),tW=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tV);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),N||(N=tn.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),R||(R=tn.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"})),r)}),tq=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tB);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),P||(P=tn.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"})),r)}),tG=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tU);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),L||(L=tn.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"})),r)}),tZ=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tz);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),D||(D=tn.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"})),I||(I=tn.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"})),r)}),tY=["children"],tX=["children"],tK=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tY);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),F||(F=tn.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"})),V||(V=tn.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),r)}),tJ=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tX);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),B||(B=tn.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"})),U||(U=tn.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),r)}),tQ=["children"],t0=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,tQ);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),z||(z=tn.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"})),H||(H=tn.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"})),r)}),t1=["children"],t2=["children"],t4=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t1);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),$||($=tn.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),W||(W=tn.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),r)}),t3=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t2);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),q||(q=tn.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),G||(G=tn.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),r)}),t5=["children"],t6=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t5);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),Z||(Z=tn.createElement("circle",{cx:"16",cy:"16",r:"8"})),r)}),t8=["children"],t7=["children"],t9=["children"],re=["children"],rt=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t8);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),Y||(Y=tn.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),r)}),rr=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t7);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),X||(X=tn.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"})),r)}),rn=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,t9);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),K||(K=tn.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"})),J||(J=tn.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),Q||(Q=tn.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),r)}),ri=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,re);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ee||(ee=tn.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"})),r)}),ro=["children"],ra=["children"],rs=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,ro);return tn.createElement(tc,ta({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),et||(et=tn.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"})),r)}),rl=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,ra);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),er||(er=tn.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"})),r)}),ru=["children"],rc=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,ru);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),en||(en=tn.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"})),ei||(ei=tn.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"})),r)}),rd=["children"],rf=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rd);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eo||(eo=tn.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"})),r)}),rh=["children"],rp=["children"],rm=["children"],rv=["children"],rg=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rh);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ea||(ea=tn.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"})),r)}),ry=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rp);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),es||(es=tn.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"})),r)}),rb=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rm);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),el||(el=tn.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"})),eu||(eu=tn.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"})),r)}),rx=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rv);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ec||(ec=tn.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"})),r)}),rw=["children"],rE=["children"],rS=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rw);return tn.createElement(tc,ta({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ed||(ed=tn.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"})),ef||(ef=tn.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"})),r)}),rj=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rE);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eh||(eh=tn.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"})),r)}),rC=["children"],rk=["children"],rA=["children"],rO=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rC);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ep||(ep=tn.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"})),r)}),r_=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rk);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),em||(em=tn.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=tn.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"})),r)}),rT=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rA);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eg||(eg=tn.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"})),r)}),rM=["children"],rN=["children"],rR=["children"],rP=["children"],rL=["children"],rD=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rM);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ey||(ey=tn.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=tn.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"})),r)}),rI=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rN);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ex||(ex=tn.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"})),r)}),rF=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rR);return tn.createElement(tc,ta({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ew||(ew=tn.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"})),eE||(eE=tn.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"})),r)}),rV=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rP);return tn.createElement(tc,ta({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eS||(eS=tn.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"})),ej||(ej=tn.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"})),r)}),rB=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rL);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eC||(eC=tn.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"})),ek||(ek=tn.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"})),r)}),rU=["children"],rz=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rU);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eA||(eA=tn.createElement("circle",{cx:"21",cy:"26",r:"2"})),eO||(eO=tn.createElement("circle",{cx:"21",cy:"6",r:"2"})),e_||(e_=tn.createElement("circle",{cx:"4",cy:"16",r:"2"})),eT||(eT=tn.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"})),r)}),rH=["children"],r$=["children"],rW=["children"],rq=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rH);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eM||(eM=tn.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),r)}),rG=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,r$);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eN||(eN=tn.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"})),eR||(eR=tn.createElement("circle",{cx:"22",cy:"10",r:"2"})),r)}),rZ=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rW);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eP||(eP=tn.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"})),eL||(eL=tn.createElement("circle",{cx:"22",cy:"10",r:"2"})),r)}),rY=["children"],rX=["children"],rK=["children"],rJ=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rY);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eD||(eD=tn.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"})),eI||(eI=tn.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"})),r)}),rQ=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rX);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eF||(eF=tn.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),eV||(eV=tn.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"})),r)}),r0=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,rK);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eB||(eB=tn.createElement("path",{d:"M4,8c-1.2,0-2,0.8-2,2c0,1.2,0.8,2,2,2h3v1H4c-1.7,0-3-1.2-3-3c0-1.7,1.3-3,3-3l9.1,0l-2-2l0.7-0.7 L15,7.5l-3.2,3.2L11.1,10l2-2L4,8z"})),r)}),r1=["children"],r2=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,r1);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eU||(eU=tn.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"})),r)}),r4=["children"],r3=["children"],r5=["children"],r6=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,r4);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ez||(ez=tn.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"})),r)}),r8=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,r3);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eH||(eH=tn.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"})),e$||(e$=tn.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"})),r)}),r7=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,r5);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eW||(eW=tn.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"})),r)}),r9=["children"],ne=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,r9);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eq||(eq=tn.createElement("path",{d:"M25,2A11.01,11.01,0,0,0,14.7549,9.0244,6.9939,6.9939,0,0,0,9,6H6V9a7.0078,7.0078,0,0,0,7,7h1v9.0493a9.9229,9.9229,0,0,0-6.071,2.8794l1.414,1.4141a8,8,0,0,1,12.3086,1.2134l1.6616-1.1128A9.98,9.98,0,0,0,16,25.062V16h1A11.0125,11.0125,0,0,0,28,5V2ZM13,14A5.0057,5.0057,0,0,1,8,9V8H9a5.0054,5.0054,0,0,1,5,5v1ZM26,5a9.01,9.01,0,0,1-9,9H16V13a9.01,9.01,0,0,1,9-9h1Z"})),r)}),nt=["children"],nr=["children"],nn=["children"],ni=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nt);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eG||(eG=tn.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)"})),r)}),no=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nr);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eZ||(eZ=tn.createElement("path",{d:"M12,7H6V4c0-1.1,0.9-2,2-2s2,0.9,2,2h1c0-1.7-1.3-3-3-3S5,2.3,5,4v3H4C3.4,7,3,7.4,3,8v6c0,0.6,0.4,1,1,1h8c0.6,0,1-0.4,1-1 V8C13,7.4,12.6,7,12,7z M12,14H4V8h8V14z"})),r)}),na=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nn);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eY||(eY=tn.createElement("path",{d:"M24,15V6a2,2,0,0,0-2-2H10A2,2,0,0,0,8,6v9a2,2,0,0,0-2,2V28H8V17H24V28h2V17A2,2,0,0,0,24,15ZM10,6H22v9H10Z"})),eX||(eX=tn.createElement("path",{d:"M12 10H15V12H12zM17 10H20V12H17z"})),r)}),ns=["children"],nl=["children"],nu=["children"],nc=["children"],nd=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,ns);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eK||(eK=tn.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"})),eJ||(eJ=tn.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"})),r)}),nf=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nl);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eQ||(eQ=tn.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"})),e0||(e0=tn.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"})),r)}),nh=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nu);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e1||(e1=tn.createElement("path",{d:"M22 17H24V19H22z"})),e2||(e2=tn.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"})),r)}),np=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nc);return tn.createElement(tc,ta({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e4||(e4=tn.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"})),e3||(e3=tn.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"})),r)}),nm=["children"],nv=tn.forwardRef(function(e,t){var r=e.children,n=ts(e,nm);return tn.createElement(tc,ta({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e5||(e5=tn.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"})),e6||(e6=tn.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"})),e8||(e8=tn.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"})),r)}),ng=r(52322);function ny(e){let{size:t=24,className:r}=e;return(0,ng.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:r,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ng.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 nb(e){let{size:t=24}=e;return(0,ng.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ng.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 nx(e){let{size:t=24}=e;return(0,ng.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,ng.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 nw(e){let{size:t=24}=e;return(0,ng.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ng.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 nE(e){let{size:t=24}=e;return(0,ng.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,ng.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 nS(e){let{size:t=24}=e;return(0,ng.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,ng.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,ng.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,ng.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,ng.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,ng.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function nj(e){let{size:t=24}=e;return(0,ng.jsx)("svg",{width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:(0,ng.jsx)("path",{d:"M641.5 256c0 3.1-1.7 6.1-4.5 7.5L547.9 317c-1.4.8-2.8 1.4-4.5 1.4-1.4 0-3.1-.3-4.5-1.1-2.8-1.7-4.5-4.5-4.5-7.8v-35.6H295.7c25.3 39.6 40.5 106.9 69.6 106.9H392V354c0-5 3.9-8.9 8.9-8.9H490c5 0 8.9 3.9 8.9 8.9v89.1c0 5-3.9 8.9-8.9 8.9h-89.1c-5 0-8.9-3.9-8.9-8.9v-26.7h-26.7c-75.4 0-81.1-142.5-124.7-142.5H140.3c-8.1 30.6-35.9 53.5-69 53.5C32 327.3 0 295.3 0 256s32-71.3 71.3-71.3c33.1 0 61 22.8 69 53.5 39.1 0 43.9 9.5 74.6-60.4C255 88.7 273 95.7 323.8 95.7c7.5-20.9 27-35.6 50.4-35.6 29.5 0 53.5 23.9 53.5 53.5s-23.9 53.5-53.5 53.5c-23.4 0-42.9-14.8-50.4-35.6H294c-29.1 0-44.3 67.4-69.6 106.9h310.1v-35.6c0-3.3 1.7-6.1 4.5-7.8 2.8-1.7 6.4-1.4 8.9.3l89.1 53.5c2.8 1.1 4.5 4.1 4.5 7.2z"})})}function nC(e){let{size:t=24}=e;return(0,ng.jsx)("svg",{width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:(0,ng.jsx)("path",{d:"M192 64C86 64 0 150 0 256S86 448 192 448H448c106 0 192-86 192-192s-86-192-192-192H192zM496 168a40 40 0 1 1 0 80 40 40 0 1 1 0-80zM392 304a40 40 0 1 1 80 0 40 40 0 1 1 -80 0zM168 200c0-13.3 10.7-24 24-24s24 10.7 24 24v32h32c13.3 0 24 10.7 24 24s-10.7 24-24 24H216v32c0 13.3-10.7 24-24 24s-24-10.7-24-24V280H136c-13.3 0-24-10.7-24-24s10.7-24 24-24h32V200z"})})}function nk(){return(0,ng.jsx)("svg",{height:50,width:50,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,ng.jsxs)("g",{fill:"#32d66a",stroke:"none",children:[(0,ng.jsx)("path",{d:"M14,19H2a1,1,0,0,0,0,2H14a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,ng.jsx)("path",{d:"M14,27H2a1,1,0,0,0,0,2H14a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,ng.jsx)("path",{d:"M30,11H2a1,1,0,0,0,0,2H30a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,ng.jsx)("path",{d:"M2,5H30a1,1,0,0,0,0-2H2A1,1,0,0,0,2,5Z",fill:"#32d66a"}),(0,ng.jsx)("path",{d:"M25,17a7,7,0,1,0,7,7A7.008,7.008,0,0,0,25,17Zm-.293,9.707a1,1,0,0,1-1.414,0L20.586,24,22,22.586l2,2,4-4L29.414,22Z"})]})})}function nA(){return(0,ng.jsx)("svg",{height:50,width:50,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,ng.jsxs)("g",{fill:"#32d66a",stroke:"#32d66a",strokeLinecap:"square",strokeWidth:"2",children:[(0,ng.jsx)("path",{d:"M25,1,12.784,13.154a8.572,8.572,0,1,0,6.061,6.061L21,17V13h4V9h3l3-3V1Z",fill:"none",stroke:"#32d66a"}),(0,ng.jsx)("circle",{cx:"10",cy:"22",fill:"none",r:"3"})]})})}},41345:function(e,t,r){"use strict";r.d(t,{HE:function(){return u},gM:function(){return s},XC:function(){return o},ek:function(){return a},nH:function(){return l},Wl:function(){return d},cQ:function(){return c},ys:function(){return p},QL:function(){return h},lT:function(){return b},yi:function(){return E},XF:function(){return S},bd:function(){return y},tM:function(){return j},OZ:function(){return x},sG:function(){return C},gU:function(){return O},Vg:function(){return A},zQ:function(){return _},He:function(){return w},jy:function(){return k},rB:function(){return v}});var n=r(79381),i=r(2850);function o(e){return(0,i.Nf)({...e,route:"/consensus/tip"})}function a(e){return(0,i.Nf)({...e,route:"/consensus/tipstate"})}function s(e){return(0,i.Nf)({...e,route:"/consensus/network"})}function l(){let e=s({config:{swr:{revalidateOnFocus:!1}}}),t=(0,n.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.name)==="zen"?(0,i.du)():(0,i.Tc)()},{refreshInterval:6e4,keepPreviousData:!0});return t.data||0}let u="/syncer/peers";function c(e){return(0,i.Nf)({...e,route:u})}function d(e){return(0,i.mw)({...e,route:"/syncer/connect"},async e=>{e(e=>e===u)})}let f="/txpool/transactions";function h(e){return(0,i.Nf)({...e,route:f})}function p(e){return(0,i.mw)({...e,route:"/txpool/broadcast"},async e=>{await (0,i.gw)(2e3),e(e=>e.startsWith(f)||e.startsWith("/wallets"))})}let m="/wallets";function v(e){return(0,i.Nf)({...e,route:m})}let g="/wallets/:id/addresses";function y(e){return(0,i.Nf)({...e,route:g})}function b(e){return(0,i.V1)({...e,route:"/wallets/:id"},async e=>{e(e=>e.startsWith(m))})}function x(e){return(0,i.iv)({...e,route:"/wallets/:id"},async(e,t)=>{e(e=>e.startsWith(m.replace(":id",t.params.id)))})}function w(e){return(0,i.mw)({...e,route:"/wallets/:id/subscribe"})}function E(e){return(0,i.V1)({...e,route:"/wallets/:id/addresses/:addr"},async(e,t)=>{e(e=>e.startsWith("/wallets/:id".replace(":id",t.params.id)))})}function S(e){return(0,i.iv)({...e,route:"/wallets/:id/addresses/:addr"},async(e,t)=>{e(e=>e.startsWith(g.replace(":id",t.params.id)))})}function j(e){return(0,i.Nf)({...e,route:"/wallets/:id/balance"})}function C(e){return(0,i.Nf)({...e,route:"/wallets/:id/events"})}function k(e){return(0,i.Nf)({...e,route:"/wallets/:id/txpool"})}function A(e){return(0,i.Nf)({...e,route:"/wallets/:id/outputs"})}function O(e){return(0,i.mw)({...e,route:"/wallets/:id/fund"})}function _(e){return(0,i.mw)({...e,route:"/wallets/:id/release"})}},96206:function(e,t,r){"use strict";r.d(t,{rN:function(){return c},yF:function(){return u},Vz:function(){return p},ES:function(){return m},At:function(){return a},qN:function(){return f}});var n=r(81395),i=r(18149),o=r.n(i);function a(e){return 76===e.length&&function(e){let t=function(e){let t=[];for(let r=0;re.multipliedBy(a),new s.BigNumber(1)),n=u.dividedBy(o.multipliedBy(t));if(n.isLessThan(a)||e===p.length-1)return"".concat(c).concat(n.toFormat(r)," ").concat(p[e])}return""}function m(e){return e.toLocaleString()+" SF"}},2271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new 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)},26252:function(e,t,r){"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(43219),r(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)},55046:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{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 n=r(2784),i=r(60587),o=r(58839),a=r(26252),s=r(4424),l=r(44673),u=r(75903),c=r(47067),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,n.useContext)(o.SearchParamsContext),t=(0,n.useMemo)(()=>e?new h(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,n.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,n.useContext)(i.GlobalLayoutRouterContext),t=(0,n.useContext)(o.PathParamsContext);return e?function e(t,r){void 0===r&&(r={});let n=t[1];for(let t of Object.values(n)){let n=t[0],i=Array.isArray(n),o=i?n[1]:n;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===n[2]||"oc"===n[2]);a?r[n[0]]=n[1].split("/"):i&&(r[n[0]]=n[1]),r=e(t,r)}return r}(e.tree):t}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(i.LayoutRouterContext);return function e(t,r,n,i){let o;if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)o=t[1][r];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,r,!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)},47067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return n},isNotFoundError:function(){return i}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function i(e){return(null==e?void 0:e.digest)===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)},75903:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=r(7552),a="NEXT_REDIRECT";function s(e,t,r){void 0===r&&(r=!1);let n=Error(a);n.digest=a+";"+t+";"+e+";"+r;let i=o.requestAsyncStorage.getStore();return i&&(n.mutableCookies=i.mutableCookies),n}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,r,n,i]=e.digest.split(";",4);return t===a&&("replace"===r||"push"===r)&&"string"==typeof n&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(i=n||(n={})).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)},7552:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let n=r(2271),i=(0,n.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)},4424:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return 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)},23116:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},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}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(n=r||(r={})).AUTO="auto",n.FULL="full",n.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)},25146:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(67858),("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)},80920:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let n=r(43219),i=r(16794),o=i._(r(2784)),a=n._(r(28316)),s=n._(r(37412)),l=r(31918),u=r(97686),c=r(45802);r(84759);let d=r(54365),f=n._(r(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,r,n,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}})}function m(e){let[t,r]=o.version.split("."),n=parseInt(t,10),i=parseInt(r,10);return n>18||18===n&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,onLoad:E,onError:S,...j}=e;return o.default.createElement("img",{...j,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:n,src:r,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(S&&(e.src=e.src),e.complete&&p(e,f,y,b,x,v))},[r,f,y,b,x,S,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,b,x,v)},onError:e=>{w(!0),"empty"!==f&&x(!0),S&&S(e)}})});function g(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...m(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+r.src+r.srcSet+r.sizes,rel:"preload",href:r.srcSet?void 0:r.src,...n}))}let y=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(d.RouterContext),n=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||n||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:a,onLoadingComplete:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,b]=(0,o.useState)(!1),[x,w]=(0,o.useState)(!1),{props:E,meta:S}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:x});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...E,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:b,setShowAltText:w,ref:t}),S.priority?o.default.createElement(g,{isAppRouter:!r,imgAttributes:E}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13814:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let n=r(43219),i=n._(r(2784)),o=r(31068),a=r(33134),s=r(39585),l=r(51570),u=r(19868),c=r(54365),d=r(60587),f=r(93629),h=r(25146),p=r(10694),m=r(23116),v=new Set;function g(e,t,r,n,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let i=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,o=t+"%"+r+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,r,n);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let b=i.default.forwardRef(function(e,t){let r,n;let{href:s,as:v,children:b,prefetch:x=null,passHref:w,replace:E,shallow:S,scroll:j,locale:C,onClick:k,onMouseEnter:A,onTouchStart:O,legacyBehavior:_=!1,...T}=e;r=b,_&&("string"==typeof r||"number"==typeof r)&&(r=i.default.createElement("a",null,r));let M=i.default.useContext(c.RouterContext),N=i.default.useContext(d.AppRouterContext),R=null!=M?M:N,P=!M,L=!1!==x,D=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:I,as:F}=i.default.useMemo(()=>{if(!M){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(M,s,!0);return{href:e,as:v?(0,o.resolveHref)(M,v):t||e}},[M,s,v]),V=i.default.useRef(I),B=i.default.useRef(F);_&&(n=i.default.Children.only(r));let U=_?n&&"object"==typeof n&&n.ref:t,[z,H,$]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(B.current!==F||V.current!==I)&&($(),B.current=F,V.current=I),z(e),U&&("function"==typeof U?U(e):"object"==typeof U&&(U.current=e))},[F,U,I,$,z]);i.default.useEffect(()=>{R&&H&&L&&g(R,I,F,{locale:C},{kind:D},P)},[F,I,H,C,L,null==M?void 0:M.locale,R,P,D]);let q={ref:W,onClick(e){_||"function"!=typeof k||k(e),_&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,r,n,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](r,n,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](n||r,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,R,I,F,E,S,j,C,P,L)},onMouseEnter(e){_||"function"!=typeof A||A(e),_&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&(L||!P)&&g(R,I,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},P)},onTouchStart(e){_||"function"!=typeof O||O(e),_&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&(L||!P)&&g(R,I,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},P)}};if((0,l.isAbsoluteUrl)(F))q.href=F;else if(!_||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==C?C:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,h.getDomainLocale)(F,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(F,e,null==M?void 0:M.defaultLocale))}return _?i.default.cloneElement(n,q):i.default.createElement("a",{...T,...q},r)}),x=b;("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)},93629:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(2784),i=r(30857),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!o,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:o,elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,f.current]);let p=(0,n.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("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)},31256:function(e,t,r){"use strict";var n=r(48834).lW;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Head:function(){return y},NextScript:function(){return b},Html:function(){return x},Main:function(){return w},default:function(){return E}});let i=c(r(2784)),o=r(13150),a=r(95383),s=r(82809),l=c(r(10274)),u=r(15333);function c(e){return e&&e.__esModule?e:{default:e}}let d=new Set;function f(e,t,r){let n=(0,a.getPageFiles)(e,"/_app"),i=r?[]:(0,a.getPageFiles)(e,t);return{sharedFiles:n,pageFiles:i,allFiles:[...new Set([...n,...i])]}}function h(e,t){let{assetPrefix:r,buildManifest:n,assetQueryString:o,disableOptimizedLoading:a,crossOrigin:s}=e;return n.polyfillFiles.filter(e=>e.endsWith(".js")&&!e.endsWith(".module.js")).map(e=>i.default.createElement("script",{key:e,defer:!a,nonce:t.nonce,crossOrigin:t.crossOrigin||s,noModule:!0,src:"".concat(r,"/_next/").concat(e).concat(o)}))}function p(e){let{styles:t}=e;if(!t)return null;let r=Array.isArray(t)?t:[];if(t.props&&Array.isArray(t.props.children)){let e=e=>{var t,r;return null==e?void 0:null==(r=e.props)?void 0:null==(t=r.dangerouslySetInnerHTML)?void 0:t.__html};t.props.children.forEach(t=>{Array.isArray(t)?t.forEach(t=>e(t)&&r.push(t)):e(t)&&r.push(t)})}return i.default.createElement("style",{"amp-custom":"",dangerouslySetInnerHTML:{__html:r.map(e=>e.props.dangerouslySetInnerHTML.__html).join("").replace(/\/\*# sourceMappingURL=.*\*\//g,"").replace(/\/\*@ sourceURL=.*?\*\//g,"")}})}function m(e,t,r){let{dynamicImports:n,assetPrefix:o,isDevelopment:a,assetQueryString:s,disableOptimizedLoading:l,crossOrigin:u}=e;return n.map(e=>!e.endsWith(".js")||r.allFiles.includes(e)?null:i.default.createElement("script",{async:!a&&l,defer:!l,key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(s),nonce:t.nonce,crossOrigin:t.crossOrigin||u}))}function v(e,t,r){var n;let{assetPrefix:o,buildManifest:a,isDevelopment:s,assetQueryString:l,disableOptimizedLoading:u,crossOrigin:c}=e,d=r.allFiles.filter(e=>e.endsWith(".js")),f=null==(n=a.lowPriorityFiles)?void 0:n.filter(e=>e.endsWith(".js"));return[...d,...f].map(e=>i.default.createElement("script",{key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(l),nonce:t.nonce,async:!s&&u,defer:!u,crossOrigin:t.crossOrigin||c}))}function g(e,t){let{scriptLoader:r,disableOptimizedLoading:n,crossOrigin:o}=e,a=function(e,t){let{assetPrefix:r,scriptLoader:n,crossOrigin:o,nextScriptWorkers:a}=e;if(!a)return null;try{let{partytownSnippet:e}=require("@builder.io/partytown/integration"),a=Array.isArray(t.children)?t.children:[t.children],s=a.find(e=>{var t,r;return!!e&&!!e.props&&(null==e?void 0:null==(r=e.props)?void 0:null==(t=r.dangerouslySetInnerHTML)?void 0:t.__html.length)&&"data-partytown-config"in e.props});return i.default.createElement(i.default.Fragment,null,!s&&i.default.createElement("script",{"data-partytown-config":"",dangerouslySetInnerHTML:{__html:'\n partytown = {\n lib: "'.concat(r,'/_next/static/~partytown/"\n };\n ')}}),i.default.createElement("script",{"data-partytown":"",dangerouslySetInnerHTML:{__html:e()}}),(n.worker||[]).map((e,r)=>{let{strategy:n,src:a,children:s,dangerouslySetInnerHTML:l,...u}=e,c={};if(a)c.src=a;else if(l&&l.__html)c.dangerouslySetInnerHTML={__html:l.__html};else if(s)c.dangerouslySetInnerHTML={__html:"string"==typeof s?s:Array.isArray(s)?s.join(""):""};else throw Error("Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script");return i.default.createElement("script",{...c,...u,type:"text/partytown",key:a||r,nonce:t.nonce,"data-nscript":"worker",crossOrigin:t.crossOrigin||o})}))}catch(e){return(0,l.default)(e)&&"MODULE_NOT_FOUND"!==e.code&&console.warn("Warning: ".concat(e.message)),null}}(e,t),s=(r.beforeInteractive||[]).filter(e=>e.src).map((e,r)=>{var a;let{strategy:s,...l}=e;return i.default.createElement("script",{...l,key:l.src||r,defer:null!==(a=l.defer)&&void 0!==a?a:!n,nonce:t.nonce,"data-nscript":"beforeInteractive",crossOrigin:t.crossOrigin||o})});return i.default.createElement(i.default.Fragment,null,a,s)}class y extends i.default.Component{getCssLinks(e){let{assetPrefix:t,assetQueryString:r,dynamicImports:n,crossOrigin:o,optimizeCss:a,optimizeFonts:s}=this.context,l=e.allFiles.filter(e=>e.endsWith(".css")),u=new Set(e.sharedFiles),c=new Set([]),d=Array.from(new Set(n.filter(e=>e.endsWith(".css"))));if(d.length){let e=new Set(l);d=d.filter(t=>!(e.has(t)||u.has(t))),c=new Set(d),l.push(...d)}let f=[];return l.forEach(e=>{let n=u.has(e);a||f.push(i.default.createElement("link",{key:"".concat(e,"-preload"),nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(r),as:"style",crossOrigin:this.props.crossOrigin||o}));let s=c.has(e);f.push(i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"stylesheet",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(r),crossOrigin:this.props.crossOrigin||o,"data-n-g":s?void 0:n?"":void 0,"data-n-p":s?void 0:n?void 0:""}))}),s&&(f=this.makeStylesheetInert(f)),0===f.length?null:f}getPreloadDynamicChunks(){let{dynamicImports:e,assetPrefix:t,assetQueryString:r,crossOrigin:n}=this.context;return e.map(e=>e.endsWith(".js")?i.default.createElement("link",{rel:"preload",key:e,href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(r),as:"script",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||n}):null).filter(Boolean)}getPreloadMainLinks(e){let{assetPrefix:t,assetQueryString:r,scriptLoader:n,crossOrigin:o}=this.context,a=e.allFiles.filter(e=>e.endsWith(".js"));return[...(n.beforeInteractive||[]).map(e=>i.default.createElement("link",{key:e.src,nonce:this.props.nonce,rel:"preload",href:e.src,as:"script",crossOrigin:this.props.crossOrigin||o})),...a.map(e=>i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(r),as:"script",crossOrigin:this.props.crossOrigin||o}))]}getBeforeInteractiveInlineScripts(){let{scriptLoader:e}=this.context,{nonce:t,crossOrigin:r}=this.props;return(e.beforeInteractive||[]).filter(e=>!e.src&&(e.dangerouslySetInnerHTML||e.children)).map((e,n)=>{let{strategy:o,children:a,dangerouslySetInnerHTML:s,src:l,...u}=e,c="";return s&&s.__html?c=s.__html:a&&(c="string"==typeof a?a:Array.isArray(a)?a.join(""):""),i.default.createElement("script",{...u,dangerouslySetInnerHTML:{__html:c},key:u.id||n,nonce:t,"data-nscript":"beforeInteractive",crossOrigin:r||void 0})})}getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}makeStylesheetInert(e){return i.default.Children.map(e,e=>{var t,r;if((null==e?void 0:e.type)==="link"&&(null==e?void 0:null==(t=e.props)?void 0:t.href)&&o.OPTIMIZED_FONT_PROVIDERS.some(t=>{var r,n;let{url:i}=t;return null==e?void 0:null==(n=e.props)?void 0:null==(r=n.href)?void 0:r.startsWith(i)})){let t={...e.props||{},"data-href":e.props.href,href:void 0};return i.default.cloneElement(e,t)}if(null==e?void 0:null==(r=e.props)?void 0:r.children){let t={...e.props||{},children:this.makeStylesheetInert(e.props.children)};return i.default.cloneElement(e,t)}return e}).filter(Boolean)}render(){var e,t;let{styles:n,ampPath:o,inAmpMode:a,hybridAmp:s,canonicalBase:l,__NEXT_DATA__:u,dangerousAsPath:c,headTags:d,unstable_runtimeJS:h,unstable_JsPreload:m,disableOptimizedLoading:v,optimizeCss:g,optimizeFonts:y,assetPrefix:b,nextFontManifest:x}=this.context,w=!1===h,E=!1===m||!v;this.context.docComponentsRendered.Head=!0;let{head:S}=this.context,j=[],C=[];S&&(S.forEach(e=>{let t;this.context.strictNextHead&&(t=i.default.createElement("meta",{name:"next-head",content:"1"})),e&&"link"===e.type&&"preload"===e.props.rel&&"style"===e.props.as?(t&&j.push(t),j.push(e)):e&&(t&&("meta"!==e.type||!e.props.charSet)&&C.push(t),C.push(e))}),S=j.concat(C));let k=i.default.Children.toArray(this.props.children).filter(Boolean);y&&!a&&(k=this.makeStylesheetInert(k));let A=!1,O=!1;S=i.default.Children.map(S||[],e=>{if(!e)return e;let{type:t,props:r}=e;if(a){let n="";if("meta"===t&&"viewport"===r.name?n='name="viewport"':"link"===t&&"canonical"===r.rel?O=!0:"script"===t&&(r.src&&-1>r.src.indexOf("ampproject")||r.dangerouslySetInnerHTML&&(!r.type||"text/javascript"===r.type))&&(n="{n+=" ".concat(e,'="').concat(r[e],'"')}),n+="/>"),n)return console.warn('Found conflicting amp tag "'.concat(e.type,'" with conflicting prop ').concat(n," in ").concat(u.page,". https://nextjs.org/docs/messages/conflicting-amp-tag")),null}else"link"===t&&"amphtml"===r.rel&&(A=!0);return e});let _=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,a),T=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return{preconnect:null,preload:null};let n=e.pages["/_app"],o=e.pages[t],a=[...null!=n?n:[],...null!=o?o:[]],s=!!(0===a.length&&(n||o));return{preconnect:s?i.default.createElement("link",{"data-next-font":e.pagesUsingSizeAdjust?"size-adjust":"",rel:"preconnect",href:"/",crossOrigin:"anonymous"}):null,preload:a?a.map(e=>{let t=/\.(woff|woff2|eot|ttf|otf)$/.exec(e)[1];return i.default.createElement("link",{key:e,rel:"preload",href:"".concat(r,"/_next/").concat(encodeURI(e)),as:"font",type:"font/".concat(t),crossOrigin:"anonymous","data-next-font":e.includes("-s")?"size-adjust":""})}):null}}(x,c,b);return i.default.createElement("head",function(e){let{crossOrigin:t,nonce:r,...n}=e;return n}(this.props),this.context.isDevelopment&&i.default.createElement(i.default.Fragment,null,i.default.createElement("style",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0,dangerouslySetInnerHTML:{__html:"body{display:none}"}}),i.default.createElement("noscript",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0},i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{display:block}"}}))),S,this.context.strictNextHead?null:i.default.createElement("meta",{name:"next-head-count",content:i.default.Children.count(S||[]).toString()}),k,y&&i.default.createElement("meta",{name:"next-font-preconnect"}),T.preconnect,T.preload,a&&i.default.createElement(i.default.Fragment,null,i.default.createElement("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"}),!O&&i.default.createElement("link",{rel:"canonical",href:l+r(79505).cleanAmpPath(c)}),i.default.createElement("link",{rel:"preload",as:"script",href:"https://cdn.ampproject.org/v0.js"}),i.default.createElement(p,{styles:n}),i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}"}}),i.default.createElement("noscript",null,i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}"}})),i.default.createElement("script",{async:!0,src:"https://cdn.ampproject.org/v0.js"})),!a&&i.default.createElement(i.default.Fragment,null,!A&&s&&i.default.createElement("link",{rel:"amphtml",href:l+(o||"".concat(c).concat(c.includes("?")?"&":"?","amp=1"))}),this.getBeforeInteractiveInlineScripts(),!g&&this.getCssLinks(_),!g&&i.default.createElement("noscript",{"data-n-css":null!==(e=this.props.nonce)&&void 0!==e?e:""}),!w&&!E&&this.getPreloadDynamicChunks(),!w&&!E&&this.getPreloadMainLinks(_),!v&&!w&&this.getPolyfillScripts(),!v&&!w&&this.getPreNextScripts(),!v&&!w&&this.getDynamicChunks(_),!v&&!w&&this.getScripts(_),g&&this.getCssLinks(_),g&&i.default.createElement("noscript",{"data-n-css":null!==(t=this.props.nonce)&&void 0!==t?t:""}),this.context.isDevelopment&&i.default.createElement("noscript",{id:"__next_css__DO_NOT_USE__"}),n||null),i.default.createElement(i.default.Fragment,{},...d||[]))}}y.contextType=u.HtmlContext;class b extends i.default.Component{getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}static getInlineScriptSource(e){let{__NEXT_DATA__:t,largePageDataBytes:i}=e;try{let o=JSON.stringify(t);if(d.has(t.page))return(0,s.htmlEscapeJsonString)(o);let a=n.from(o).byteLength,l=r(16549).Z;return i&&a>i&&(d.add(t.page),console.warn('Warning: data for page "'.concat(t.page,'"').concat(t.page===e.dangerousAsPath?"":' (path "'.concat(e.dangerousAsPath,'")')," is ").concat(l(a)," which exceeds the threshold of ").concat(l(i),", this amount of data can reduce performance.\nSee more info here: https://nextjs.org/docs/messages/large-page-data"))),(0,s.htmlEscapeJsonString)(o)}catch(e){if((0,l.default)(e)&&-1!==e.message.indexOf("circular structure"))throw Error('Circular structure in "getInitialProps" result of page "'.concat(t.page,'". https://nextjs.org/docs/messages/circular-structure'));throw e}}render(){let{assetPrefix:e,inAmpMode:t,buildManifest:r,unstable_runtimeJS:n,docComponentsRendered:o,assetQueryString:a,disableOptimizedLoading:s,crossOrigin:l}=this.context,u=!1===n;if(o.NextScript=!0,t)return null;let c=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,t);return i.default.createElement(i.default.Fragment,null,!u&&r.devFiles?r.devFiles.map(t=>i.default.createElement("script",{key:t,src:"".concat(e,"/_next/").concat(encodeURI(t)).concat(a),nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l})):null,u?null:i.default.createElement("script",{id:"__NEXT_DATA__",type:"application/json",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l,dangerouslySetInnerHTML:{__html:b.getInlineScriptSource(this.context)}}),s&&!u&&this.getPolyfillScripts(),s&&!u&&this.getPreNextScripts(),s&&!u&&this.getDynamicChunks(c),s&&!u&&this.getScripts(c))}}function x(e){let{inAmpMode:t,docComponentsRendered:r,locale:n,scriptLoader:o,__NEXT_DATA__:a}=(0,u.useHtmlContext)();return r.Html=!0,!function(e,t,r){var n,o,a,s;if(!r.children)return;let l=[],u=Array.isArray(r.children)?r.children:[r.children],c=null==(o=u.find(e=>e.type===y))?void 0:null==(n=o.props)?void 0:n.children,d=null==(s=u.find(e=>"body"===e.type))?void 0:null==(a=s.props)?void 0:a.children,f=[...Array.isArray(c)?c:[c],...Array.isArray(d)?d:[d]];i.default.Children.forEach(f,t=>{var r;if(t&&(null==(r=t.type)?void 0:r.__nextScript)){if("beforeInteractive"===t.props.strategy){e.beforeInteractive=(e.beforeInteractive||[]).concat([{...t.props}]);return}if(["lazyOnload","afterInteractive","worker"].includes(t.props.strategy)){l.push(t.props);return}}}),t.scriptLoader=l}(o,a,e),i.default.createElement("html",{...e,lang:e.lang||n||void 0,amp:t?"":void 0,"data-ampdevmode":void 0})}function w(){let{docComponentsRendered:e}=(0,u.useHtmlContext)();return e.Main=!0,i.default.createElement("next-js-internal-body-render-target",null)}b.contextType=u.HtmlContext;class E extends i.default.Component{static getInitialProps(e){return e.defaultGetInitialProps(e)}render(){return i.default.createElement(x,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(b,null)))}}E[o.NEXT_BUILTIN_DOCUMENT]=function(){return i.default.createElement(x,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(b,null)))}},31918:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(84759);let n=r(69933),i=r(97686);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 r;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:S="empty",blurDataURL:j,fetchPriority:C,layout:k,objectFit:A,objectPosition:O,lazyBoundary:_,lazyRoot:T,...M}=e,{imgConf:N,showAltText:R,blurComplete:P,defaultLoader:L}=t,D=N||i.imageConfigDefault;if("allSizes"in D)s=D;else{let e=[...D.deviceSizes,...D.imageSizes].sort((e,t)=>e-t),t=D.deviceSizes.sort((e,t)=>e-t);s={...D,allSizes:e,deviceSizes:t}}let I=M.loader||L;delete M.loader,delete M.srcSet;let F="__next_img_default"in I;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=I;I=t=>{let{config:r,...n}=t;return e(n)}}if(k){"fill"===k&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[k];t&&!d&&(d=t)}let V="",B=a(g),U=a(y);if("object"==typeof(r=c)&&(o(r)||void 0!==r.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,j=j||e.blurDataURL,V=e.src,!b){if(B||U){if(B&&!U){let t=B/e.width;U=Math.round(e.height*t)}else if(!B&&U){let t=U/e.height;B=Math.round(e.width*t)}}else B=e.width,U=e.height}}let z=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:V)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,z=!1),s.unoptimized&&(f=!0),F&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(C="high");let H=a(v),$=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:A,objectPosition:O}:{},R?{}:{color:"transparent"},x),W=P||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:B,heightInt:U,blurWidth:l,blurHeight:u,blurDataURL:j||"",objectFit:$.objectFit})+'")':'url("'+S+'")',q=W?{backgroundSize:$.objectFit||"cover",backgroundPosition:$.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},G=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:B,quality:H,sizes:d,loader:I}),Z={...M,loading:z?"lazy":p,fetchPriority:C,width:B,height:U,decoding:"async",className:m,style:{...$,...q},sizes:G.sizes,srcSet:G.srcSet,src:G.src},Y={unoptimized:f,priority:h,placeholder:S,fill:b};return{props:Z,meta:Y}}},15333:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HtmlContext:function(){return i},useHtmlContext:function(){return o}});let n=r(2784),i=(0,n.createContext)(void 0);function o(){let e=(0,n.useContext)(i);if(!e)throw Error(" should not be imported outside of pages/_document.\nRead more: https://nextjs.org/docs/messages/no-document-import-in-page");return e}},69933:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=n?40*n:t,l=i?40*i:r,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},81963:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let n=r(43219),i=r(31918),o=r(84759),a=r(80920),s=n._(r(2088)),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,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}},u=a.Image},2088:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:i}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},72190:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(95523),i=r(17428),o=r(51570);function a(e){let t=/^\/index(\/|$)/.test(e)&&!(0,i.isDynamicRoute)(e)?"/index"+e:"/"===e?"/index":(0,n.ensureLeadingSlash)(e);{let{posix:e}=r(15153),n=e.normalize(t);if(n!==t)throw new o.NormalizeError("Requested and resolved page mismatch: "+t+" "+n)}return t}},44673:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let n=r(16794),i=n._(r(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},276:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},35957:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},15153:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var e,n,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?n=arguments[a]:(void 0===e&&(e=""),n=e),t(n),0!==n.length&&(i=n+"/"+i,o=47===n.charCodeAt(0));return(i=r(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;iu){if(47===r.charCodeAt(s+d))return r.slice(s+d+1);if(0===d)return r.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==r.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+r.slice(s+c):(s+=c,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var n,i=0,o=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!a){i=n+1;break}}else -1===l&&(a=!1,l=n+1),s>=0&&(u===r.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){i=n+1;break}}else -1===o&&(a=!1,o=n+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){n=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1)}return -1===r||-1===i||0===a||1===a&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){t(e);var r,n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=r;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(s,l)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//";var i=n(114);e.exports=i}()},16549:function(e,t){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return i}});let r=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],n=(e,t)=>{let r=e;return"string"==typeof t?r=e.toLocaleString(t):!0===t&&(r=e.toLocaleString()),r};function i(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);if((t=Object.assign({},t)).signed&&0===e)return" 0 B";let i=e<0,o=i?"-":t.signed?"+":"";if(i&&(e=-e),e<1){let r=n(e,t.locale);return o+r+" B"}let a=Math.min(Math.floor(Math.log10(e)/3),r.length-1);e=Number((e/Math.pow(1e3,a)).toPrecision(3));let s=n(e,t.locale),l=r[a];return o+s+" "+l}},95383:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPageFiles",{enumerable:!0,get:function(){return o}});let n=r(7005),i=r(72190);function o(e,t){let r=(0,n.denormalizePagePath)((0,i.normalizePagePath)(t));return e.pages[r]||(console.warn(`Could not find files for ${r} in .next/build-manifest.json`),[])}},82809:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ESCAPE_REGEX:function(){return n},htmlEscapeJsonString:function(){return i}});let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},n=/[&><\u2028\u2029]/g;function i(e){return e.replace(n,e=>r[e])}},79505:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isBlockedPage:function(){return i},cleanAmpPath:function(){return o},debounce:function(){return a}});let n=r(13150);function i(e){return n.BLOCKED_PAGES.includes(e)}function o(e){return e.match(/\?amp=(y|yes|true|1)/)&&(e=e.replace(/\?amp=(y|yes|true|1)&?/,"?")),e.match(/&=(y|yes|true|1)/)&&(e=e.replace(/&=(y|yes|true|1)/,"")),e=e.replace(/\?$/,"")}function a(e,t,r=1/0){let n,i,o;let a=0,s=0;function l(){let u=Date.now(),c=s+t-u;c<=0||a+r>=u?(n=void 0,e.apply(o,i)):n=setTimeout(l,c)}return function(...e){i=e,o=this,s=Date.now(),void 0===n&&(a=s,n=setTimeout(l,t))}}},331:function(e,t,r){r(31256)},97729:function(e,t,r){e.exports=r(37412)},96577:function(e,t,r){e.exports=r(81963)},39097:function(e,t,r){e.exports=r(13814)},82876:function(e,t,r){e.exports=r(55046)},5632:function(e,t,r){e.exports=r(60222)},24470:function(e){var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=r(),e.exports.createColors=r},34406:function(e){var t,r,n,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(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c1)for(var r=1;r=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var r=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\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(r)||[""]}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,r){for(var n=0,i=t.length,o=e;n>>7-e%8&1)==1},put:function(e,t){for(var r=0;r>>t-r-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,r){var n=r(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var r=0;r=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 r=-1;r<=7;r++)if(!(e+r<=-1)&&!(this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[e+r][t+n]=!0:this.modules[e+r][t+n]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=a.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},u.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var i=0;i>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},u.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=a.getBCHTypeInfo(r),i=0;i<15;i++){var o=!e&&(n>>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&&(n>>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 r=-1,n=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[n][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,n,s-l)&&(u=!u),this.modules[n][s-l]=u,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,r){for(var n=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,n)},l.createBytes=function(e,t){for(var r=0,n=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)},r=0;r<8;r++)t.EXP_TABLE[r]=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,r){switch(e){case a.PATTERN000:return(t+r)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return r%3==0;case a.PATTERN011:return(t+r)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case a.PATTERN101:return t*r%2+t*r%3==0;case a.PATTERN110:return(t*r%2+t*r%3)%2==0;case a.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),r=0;r5&&(r+=3+o-5)}for(var n=0;n{var n,i;n=e,i=function(e){var t,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=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:or)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*r);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&&r.amdO?define(["exports"],i):i((n="u">typeof globalThis?globalThis:n||self).fastUniqueNumbers={})},()=>(o||i((o={exports:{}}).exports,o),o.exports))())?c(p(a)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of h(t))m.call(e,r)||void 0===r||d(e,r,{get:()=>t[r],enumerable:!(n=f(t,r))||n.enumerable});return e})(a&&a.__esModule?s:d(s,"default",{value:a,enumerable:!0}),a)),g=e=>void 0!==e.method&&"call"===e.method,y=e=>null===e.error&&"number"==typeof e.id;l=e=>{let t=new Map([[0,()=>{}]]),r=new Map([[0,()=>{}]]),n=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(g(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=n.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=r.get(i);if("number"==typeof e){let t=n.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(),r.delete(i);else throw Error("The timer is in an undefined state.")}}else if(y(e)){let{id:i}=e,o=n.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;n.delete(i),"interval"===s?t.delete(a):r.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let r=(0,v.generateUniqueNumber)(n);n.set(r,{timerId:e,timerType:"interval"}),t.set(e,r),i.postMessage({id:r,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,v.generateUniqueNumber)(n);n.set(t,{timerId:e,timerType:"timeout"}),r.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,r)=>{let n=(0,v.generateUniqueNumber)(t);return t.set(n,()=>{e(),"function"==typeof t.get(n)&&i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}}),n},setTimeout:(e,t)=>{let n=(0,v.generateUniqueNumber)(r);return r.set(n,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:n,timerType:"timeout"}}),n}}},n=null,()=>{if(null!==n)return n;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 n=l(t),setTimeout(()=>URL.revokeObjectURL(t)),n};var b=(typeof window>"u"?"undefined":typeof window)=="object",x={setTimeout:b?setTimeout.bind(window):setTimeout,clearTimeout:b?clearTimeout.bind(window):clearTimeout,setInterval:b?setInterval.bind(window):setInterval,clearInterval:b?clearInterval.bind(window):clearInterval},w={},E=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,w[e]=w[e]||[],w[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),r=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(r,t),x.setTimeout(()=>{window.localStorage.removeItem(r)},500),w[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=w[this.name].indexOf(this);w[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)}},S=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:E;function j(){return Math.random().toString(36).substring(2)}var C=class{options;channel;token=j();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:r,action:n}=t.data;r!==this.token&&(0===n&&r>this.token&&(e=!0),1===n&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>x.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(r=>{let n=()=>{if(e)return;e=!0;try{x.clearInterval(t)}catch{}let n=this.intervals.indexOf(t);n>=0&&this.intervals.splice(n,1),this.channel.removeEventListener("message",i),r()};t=x.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&n()})};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=>x.clearInterval(e))}catch{}}}},k=class{channel;options;elector;token=j();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new S(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new C(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:r,data:n}=e.data;switch(t){case 3:this.registry.set(r,2);break;case 4:this.registry.delete(r);break;case 5:this.idle(r);break;case 6:this.active(r);break;case 7:this.prompt(r);break;case 8:this.start(r);break;case 9:this.reset(r);break;case 10:this.activate(r);break;case 11:this.pause(r);break;case 12:this.resume(r);break;case 13:this.options.onMessage(n)}}),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()}},A=b?document:null,O=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function _(e,t){let r=0;return function(...n){let i=new Date().getTime();if(!(i-rDate.now();function M({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:r=0,element:n=A,events:i=O,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:c=()=>{},onActive:d=()=>{},onAction:f=()=>{},onMessage:h=()=>{},debounce:p=0,throttle:m=0,eventsThrottle:v=200,startOnMount:g=!0,startManually:y=!1,stopOnIdle:w=!1,crossTab:E=!1,name:S="idle-timer",syncTimers:j=0,leaderElection:C=!1,disabled:M=!1}={}){let N=(0,u.useRef)(T()),R=(0,u.useRef)(T()),P=(0,u.useRef)(null),L=(0,u.useRef)(null),D=(0,u.useRef)(0),I=(0,u.useRef)(0),F=(0,u.useRef)(0),V=(0,u.useRef)(0),B=(0,u.useRef)(!1),U=(0,u.useRef)(!1),z=(0,u.useRef)(!1),H=(0,u.useRef)(!0),$=(0,u.useRef)(!1),W=(0,u.useRef)(null),q=(0,u.useRef)(null),G=(0,u.useRef)(e),Z=(0,u.useRef)(0);(0,u.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."),r&&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(r>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(r>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(r?(G.current=e-r,Z.current=r):(G.current=e,Z.current=t),!H.current){if(y||M)return;B.current&&(en.current(null,eF),q.current&&q.current.active()),ey()}},[e,t,r,y,M]);let Y=(0,u.useRef)(w);(0,u.useEffect)(()=>{Y.current=w},[w]);let X=(0,u.useRef)(a),K=(0,u.useRef)(n),J=(0,u.useRef)([...new Set([...i,...a]).values()]),Q=(0,u.useRef)(M);(0,u.useEffect)(()=>{Q.current=M,!H.current&&(M?ew():y||ey())},[M]);let ee=(0,u.useRef)(s);(0,u.useEffect)(()=>{ee.current=s},[s]);let et=(0,u.useRef)(l);(0,u.useEffect)(()=>{et.current=l},[l]);let er=(0,u.useRef)(c);(0,u.useEffect)(()=>{er.current=c},[c]);let en=(0,u.useRef)(d);(0,u.useEffect)(()=>{en.current=d},[d]);let ei=(0,u.useRef)(f);(0,u.useEffect)(()=>{ei.current=f},[f]);let eo=(0,u.useRef)(h);(0,u.useEffect)(()=>{eo.current=h},[h]);let ea=(0,u.useMemo)(()=>{let e=(e,t)=>ei.current(e,t);return p>0?function(e,t){let r;function n(...i){r&&clearTimeout(r),r=setTimeout(()=>{e(...i),r=null},t)}return n.cancel=function(){clearTimeout(r)},n}(e,p):m>0?_(e,m):e},[m,p]),es=(0,u.useRef)();(0,u.useEffect)(()=>{E&&j&&(es.current=_(()=>{q.current.active()},j))},[E,j]);let el=()=>{null!==W.current&&(x.clearTimeout(W.current),W.current=null)},eu=(e,t=!0)=>{el(),W.current=x.setTimeout(eh,e||G.current),t&&(L.current=T())},ec=e=>{U.current||B.current||(et.current(e,eF),ee.current({type:"active",prompted:!0},eF)),V.current=0,F.current=T(),U.current=!0,eu(Z.current,!1)},ed=()=>{el(),B.current||(er.current(null,eF),ee.current({type:"idle"},eF)),B.current=!0,P.current=T(),Y.current?eg():U.current&&(F.current=0,U.current=!1)},ef=e=>{el(),(B.current||U.current)&&(en.current(e,eF),ee.current({type:"active",prompted:!1},eF)),U.current=!1,F.current=0,B.current=!1,D.current+=T()-P.current,I.current+=T()-P.current,ev(),eu()},eh=e=>{if(!B.current){ea.cancel&&ea.cancel();let t=T()-L.current;if(!(G.current+Z.current0&&!U.current){q.current?q.current.prompt():ec(e);return}q.current?q.current.idle():ed();return}q.current?q.current.active():ef(e)},ep=e=>{if(g||L.current||(L.current=T(),en.current(null,eF)),ea(e,eF),U.current)return;if(el(),!B.current&&X.current.includes(e.type)){eh(e);return}let t=T()-L.current;if(B.current&&!w||!B.current&&t>=G.current){eh(e);return}z.current=!1,V.current=0,F.current=0,eu(),E&&j&&es.current()},em=(0,u.useRef)(ep);(0,u.useEffect)(()=>{let e=$.current;e&&eg(),v>0?em.current=_(ep,v):em.current=ep,e&&ev()},[v,m,p,ei,E,j]);let ev=()=>{b&&K.current&&($.current||(J.current.forEach(e=>{K.current.addEventListener(e,em.current,{capture:!0,passive:!0})}),$.current=!0))},eg=(e=!1)=>{b&&K.current&&($.current||e)&&(J.current.forEach(e=>{K.current.removeEventListener(e,em.current,{capture:!0})}),$.current=!1)},ey=(0,u.useCallback)(e=>!Q.current&&(el(),ev(),B.current=!1,U.current=!1,z.current=!1,V.current=0,F.current=0,q.current&&!e&&q.current.start(),eu(),!0),[W,B,Q,G,q]),eb=(0,u.useCallback)(e=>!Q.current&&(el(),ev(),R.current=T(),D.current+=T()-P.current,I.current+=T()-P.current,D.current=0,B.current=!1,U.current=!1,z.current=!1,V.current=0,F.current=0,q.current&&!e&&q.current.reset(),y||eu(),!0),[W,B,G,y,Q,q]),ex=(0,u.useCallback)(e=>!Q.current&&(el(),ev(),(B.current||U.current)&&ef(),B.current=!1,U.current=!1,z.current=!1,V.current=0,F.current=0,R.current=T(),q.current&&!e&&q.current.activate(),eu(),!0),[W,B,U,Q,G,q]),ew=(0,u.useCallback)((e=!1)=>!Q.current&&!z.current&&(V.current=e_(),z.current=!0,eg(),el(),q.current&&!e&&q.current.pause(),!0),[W,Q,q]),eE=(0,u.useCallback)((e=!1)=>!Q.current&&!!z.current&&(z.current=!1,U.current||ev(),B.current||eu(V.current),F.current&&(F.current=T()),q.current&&!e&&q.current.resume(),!0),[W,G,Q,V,q]),eS=(0,u.useCallback)((e,t)=>(q.current?(t&&eo.current(e,eF),q.current.message(e)):t&&eo.current(e,eF),!0),[h]),ej=(0,u.useCallback)(()=>B.current,[B]),eC=(0,u.useCallback)(()=>U.current,[U]),ek=(0,u.useCallback)(()=>q.current?q.current.isLeader:null,[q]),eA=(0,u.useCallback)(()=>q.current?q.current.isLastActive:null,[q]),eO=(0,u.useCallback)(()=>q.current?q.current.token:null,[q]),e_=(0,u.useCallback)(()=>{if(z.current)return V.current;let e=Math.floor((V.current?V.current:Z.current+G.current)-(L.current?T()-L.current:0));return e<0?0:Math.abs(e)},[G,Z,U,V,L]),eT=(0,u.useCallback)(()=>Math.round(T()-R.current),[R]),eM=(0,u.useCallback)(()=>Math.round(T()-N.current),[N]),eN=(0,u.useCallback)(()=>P.current?new Date(P.current):null,[P]),eR=(0,u.useCallback)(()=>L.current?new Date(L.current):null,[L]),eP=(0,u.useCallback)(()=>B.current?Math.round(T()-P.current+D.current):Math.round(D.current),[P,D]),eL=(0,u.useCallback)(()=>B.current?Math.round(T()-P.current+I.current):Math.round(I.current),[P,I]),eD=(0,u.useCallback)(()=>{let e=Math.round(eT()-eP());return e>=0?e:0},[P,D]),eI=(0,u.useCallback)(()=>{let e=Math.round(eM()-eL());return e>=0?e:0},[P,D]);(0,u.useEffect)(()=>{if(p>0&&m>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(x.setTimeout=o.setTimeout,x.clearTimeout=o.clearTimeout,x.setInterval=o.setInterval,x.clearInterval=o.clearInterval);let e=()=>{q.current&&q.current.close(),ea.cancel&&ea.cancel(),el(),eg(!0)};return b&&window.addEventListener("beforeunload",e),()=>{b&&window.removeEventListener("beforeunload",e),q.current&&q.current.close(),ea.cancel&&ea.cancel(),el(),eg(!0)}},[]),(0,u.useEffect)(()=>{q.current&&q.current.close(),E?q.current=new k({channelName:S,leaderElection:C,onPrompt:()=>{ec()},onIdle:()=>{ed()},onActive:()=>{ef()},onMessage:e=>{eo.current(e,eF)},start:ey,reset:eb,activate:ex,pause:ew,resume:eE}):q.current=null},[E,S,C,et,er,en,eo,ey,eb,ew,eE]),(0,u.useEffect)(()=>{H.current||(el(),eg(!0)),y||M||(g?ey():ev())},[y,g,M,H]),(0,u.useEffect)(()=>{if(!H.current){let e=[...new Set([...i,...a]).values()];eg(),J.current=e,K.current=n,X.current=a,y||M||(g?ey():ev())}},[n,JSON.stringify(i),JSON.stringify(a),H,M,y,g]),(0,u.useEffect)(()=>{H.current&&(H.current=!1)},[H]);let eF={message:eS,start:ey,reset:eb,activate:ex,pause:ew,resume:eE,isIdle:ej,isPrompted:eC,isLeader:ek,isLastActiveTab:eA,getTabId:eO,getRemainingTime:e_,getElapsedTime:eT,getTotalElapsedTime:eM,getLastIdleTime:eN,getLastActiveTime:eR,getIdleTime:eP,getTotalIdleTime:eL,getActiveTime:eD,getTotalActiveTime:eI,setOnPresenceChange:e=>{s=e,ee.current=e},setOnPrompt:e=>{l=e,et.current=e},setOnIdle:e=>{c=e,er.current=e},setOnActive:e=>{d=e,en.current=e},setOnAction:e=>{f=e,ei.current=e},setOnMessage:e=>{h=e,eo.current=e}};return eF}(0,u.createContext)(null).Consumer},72660:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(13980)),i=o(r(2784));function o(e){return e&&e.__esModule?e:{default:e}}var a={d:n.default.string.isRequired,fill:n.default.string.isRequired,transformX:n.default.number.isRequired,transformY:n.default.number.isRequired},s=function(e){var t=e.d,r=e.fill,n=e.transformX,o=e.transformY;return i.default.createElement("path",{d:t,fill:r,transform:"matrix("+[1,0,0,1,n,o]+")"})};s.propTypes=a,s.defaultProps={},t.default=s},76672:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",n({},s,{height:r,width:r,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,r){"use strict";var n=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(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,n({},f,{size:s}),p.map(function(e,n){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(n*m),s=Math.round((i+1)*m)-o,c=Math.round((n+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+n+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?r:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},32718:function(e,t,r){var n,i=r(58085),o=r(41964),a=r(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return n=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(r,o,l){if(n++>100)throw n=0,Error("Call stack overflow for "+l);if(""===r)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],r=[],n=/[\.0-9]([%a-z]+)/gi,i=n.exec(e);i;)i&&i[1]&&(-1===r.indexOf(i[1].toLowerCase())&&(t.push(i[1]),r.push(i[1].toLowerCase())),i=n.exec(e));return t}(r=function(t,r){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var n,o="",a=t;n=s.exec(a);){n[0].index>0&&(o+=a.substring(0,n[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,"",r);o+=l.pre+u,a=l.post}return o+a}(r,l));if(c.length>1||r.indexOf("var(")>-1)return o+"("+r+")";var d=c[0]||"";"%"===d&&(r=r.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=r.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+r+")"}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=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(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 r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},41964:function(e,t,r){var n=r(82294);e.exports=function e(t,r,i){return(function(e,t){var r=[],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=n("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");r.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return r})(t,r).reduce(function(n,o){var a,s;return n.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,r,i),s,t)))},t)}},7847:function(e,t,r){let n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i){if(!!t.loose===e.loose)return e;e=e.value}u("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){let t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=i;let o=r(71388),{safeRe:a,t:s}=r(94808),l=r(28117),u=r(10952),c=r(52435),d=r(66843)},66843:function(e,t,r){class n{constructor(e,t){if(t=a(t),e instanceof n){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new n(e.raw,t)}if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let t=(this.options.includePrerelease&&m)|(this.options.loose&&v),r=t+":"+e,n=o.get(r);if(n)return n;let i=this.options.loose,a=i?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];l("hyphen replace",e=e.replace(a,T(this.options.includePrerelease))),l("comparator trim",e=e.replace(c[d.COMPARATORTRIM],f)),l("tilde trim",e=e.replace(c[d.TILDETRIM],h)),l("caret trim",e=e.replace(c[d.CARETTRIM],p));let u=e.split(" ").map(e=>x(e,this.options)).join(" ").split(/\s+/).map(e=>_(e,this.options));i&&(u=u.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(c[d.COMPARATORLOOSE])))),l("range list",u);let y=new Map,b=u.map(e=>new s(e,this.options));for(let e of b){if(g(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");let w=[...y.values()];return o.set(r,w),w}intersects(e,t){if(!(e instanceof n))throw TypeError("a Range is required");return this.set.some(r=>b(r,t)&&e.set.some(e=>b(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,y=e=>""===e.value,b=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r},x=(e,t)=>(l("comp",e,t),l("caret",e=j(e,t)),l("tildes",e=E(e,t)),l("xrange",e=k(e,t)),l("stars",e=O(e,t)),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{let r=t.loose?c[d.TILDELOOSE]:c[d.TILDE];return e.replace(r,(t,r,n,i,o)=>{let a;return l("tilde",e,t,r,n,i,o),w(r)?a="":w(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:w(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(l("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,l("tilde return",a),a})},j=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(" "),C=(e,t)=>{l("caret",e,t);let r=t.loose?c[d.CARETLOOSE]:c[d.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let s;return l("caret",e,t,r,i,o,a),w(r)?s="":w(i)?s=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(o)?s="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(l("replaceCaret pr",a),s="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(l("no pr"),s="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),l("caret return",s),s})},k=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>A(e,t)).join(" ")),A=(e,t)=>{e=e.trim();let r=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(r,(r,n,i,o,a,s)=>{l("xRange",e,r,n,i,o,a,s);let u=w(i),c=u||w(o),d=c||w(a);return"="===n&&d&&(n=""),s=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),"<"===n&&(s="-0"),r=`${n+i}.${o}.${a}${s}`):c?r=`>=${i}.0.0${s} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),l("xRange return",r),r})},O=(e,t)=>(l("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),_=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),T=e=>(t,r,n,i,o,a,s,l,u,c,d,f,h)=>`${r=w(n)?"":w(i)?`>=${n}.0.0${e?"-0":""}`:w(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=w(u)?"":w(c)?`<${+u+1}.0.0-0`:w(d)?`<${u}.${+c+1}.0-0`:f?`<=${u}.${c}.${d}-${f}`:e?`<${u}.${c}.${+d+1}-0`:`<=${l}`}`.trim(),M=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},52435:function(e,t,r){let n=r(10952),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(55558),{safeRe:a,t:s}=r(94808),l=r(71388),{compareIdentifiers:u}=r(14935);class c{constructor(e,t){if(t=l(t),e instanceof c){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},36694:function(e,t,r){let n=r(79943);e.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},28117:function(e,t,r){let n=r(33276),i=r(77893),o=r(16379),a=r(8463),s=r(21897),l=r(30506);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return i(e,r,u);case">":return o(e,r,u);case">=":return a(e,r,u);case"<":return s(e,r,u);case"<=":return l(e,r,u);default:throw TypeError(`Invalid operator: ${t}`)}}},98686:function(e,t,r){let n=r(52435),i=r(79943),{safeRe:o,t:a}=r(94808);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else r=e.match(o[a.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},65914:function(e,t,r){let n=r(52435);e.exports=(e,t,r)=>{let i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)}},55404:function(e,t,r){let n=r(92271);e.exports=(e,t)=>n(e,t,!0)},92271:function(e,t,r){let n=r(52435);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},66007:function(e,t,r){let n=r(79943);e.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),o=r.compare(i);if(0===o)return null;let a=o>0,s=a?r:i,l=a?i:r,u=!!s.prerelease.length,c=!!l.prerelease.length;if(c&&!u)return l.patch||l.minor?s.patch?"patch":s.minor?"minor":"major":"major";let d=u?"pre":"";return r.major!==i.major?d+"major":r.minor!==i.minor?d+"minor":r.patch!==i.patch?d+"patch":"prerelease"}},33276:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>0===n(e,t,r)},16379:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>n(e,t,r)>0},8463:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>n(e,t,r)>=0},86360:function(e,t,r){let n=r(52435);e.exports=(e,t,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,o).version}catch(e){return null}}},21897:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>0>n(e,t,r)},30506:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>0>=n(e,t,r)},14551:function(e,t,r){let n=r(52435);e.exports=(e,t)=>new n(e,t).major},469:function(e,t,r){let n=r(52435);e.exports=(e,t)=>new n(e,t).minor},77893:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>0!==n(e,t,r)},79943:function(e,t,r){let n=r(52435);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},54250:function(e,t,r){let n=r(52435);e.exports=(e,t)=>new n(e,t).patch},58204:function(e,t,r){let n=r(79943);e.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},70733:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>n(t,e,r)},72961:function(e,t,r){let n=r(65914);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},59844:function(e,t,r){let n=r(66843);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},51116:function(e,t,r){let n=r(65914);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},97230:function(e,t,r){let n=r(79943);e.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}},97699:function(e,t,r){let n=r(94808),i=r(55558),o=r(52435),a=r(14935),s=r(79943),l=r(97230),u=r(36694),c=r(86360),d=r(66007),f=r(14551),h=r(469),p=r(54250),m=r(58204),v=r(92271),g=r(70733),y=r(55404),b=r(65914),x=r(51116),w=r(72961),E=r(16379),S=r(21897),j=r(33276),C=r(77893),k=r(8463),A=r(30506),O=r(28117),_=r(98686),T=r(7847),M=r(66843),N=r(59844),R=r(48865),P=r(53727),L=r(14338),D=r(21542),I=r(36240),F=r(89106),V=r(90995),B=r(47805),U=r(22013),z=r(81338),H=r(53122);e.exports={parse:s,valid:l,clean:u,inc:c,diff:d,major:f,minor:h,patch:p,prerelease:m,compare:v,rcompare:g,compareLoose:y,compareBuild:b,sort:x,rsort:w,gt:E,lt:S,eq:j,neq:C,gte:k,lte:A,cmp:O,coerce:_,Comparator:T,Range:M,satisfies:N,toComparators:R,maxSatisfying:P,minSatisfying:L,minVersion:D,validRange:I,outside:F,gtr:V,ltr:B,intersects:U,simplifyRange:z,subset:H,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},55558:function(e){let t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},10952:function(e,t,r){var n=r(34406);let i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},14935:function(e){let t=/^[0-9]+$/,r=(e,r)=>{let n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:er(t,e)}},71388:function(e){let t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},94808:function(e,t,r){let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=r(55558),a=r(10952);t=e.exports={};let s=t.re=[],l=t.safeRe=[],u=t.src=[],c=t.t={},d=0,f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[f,i]],p=e=>{for(let[t,r]of h)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},m=(e,t,r)=>{let n=p(t),i=d++;a(e,i,t),c[e]=i,u[i]=t,s[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),m("MAINVERSION",`(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[c.NUMERICIDENTIFIER]}|${u[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[c.NUMERICIDENTIFIERLOOSE]}|${u[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${u[c.PRERELEASEIDENTIFIER]}(?:\\.${u[c.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[c.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${f}+`),m("BUILD",`(?:\\+(${u[c.BUILDIDENTIFIER]}(?:\\.${u[c.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[c.MAINVERSION]}${u[c.PRERELEASE]}?${u[c.BUILD]}?`),m("FULL",`^${u[c.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[c.MAINVERSIONLOOSE]}${u[c.PRERELEASELOOSE]}?${u[c.BUILD]}?`),m("LOOSE",`^${u[c.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[c.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:${u[c.PRERELEASE]})?${u[c.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:${u[c.PRERELEASELOOSE]})?${u[c.BUILD]}?)?)?`),m("XRANGE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAINLOOSE]}$`),m("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),m("COERCERTL",u[c.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${u[c.LONECARET]}${u[c.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[c.LONECARET]}${u[c.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[c.GTLT]}\\s*(${u[c.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]}|${u[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[c.XRANGEPLAIN]})\\s+-\\s+(${u[c.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[c.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},90995:function(e,t,r){let n=r(89106);e.exports=(e,t,r)=>n(e,t,">",r)},22013:function(e,t,r){let n=r(66843);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},47805:function(e,t,r){let n=r(89106);e.exports=(e,t,r)=>n(e,t,"<",r)},53727:function(e,t,r){let n=r(52435),i=r(66843);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||-1===a.compare(e))&&(o=e,a=new n(o,r))}),o}},14338:function(e,t,r){let n=r(52435),i=r(66843);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||1===a.compare(e))&&(o=e,a=new n(o,r))}),o}},21542:function(e,t,r){let n=r(52435),i=r(66843),o=r(16379);e.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r)||(r=new n("0.0.0-0"),e.test(r)))return r;r=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!r||o(r,a))&&(r=a)}return r&&e.test(r)?r:null}},89106:function(e,t,r){let n=r(52435),i=r(7847),{ANY:o}=i,a=r(66843),s=r(59844),l=r(16379),u=r(21897),c=r(30506),d=r(8463);e.exports=(e,t,r,f)=>{let h,p,m,v,g;switch(e=new n(e,f),t=new a(t,f),r){case">":h=l,p=c,m=u,v=">",g=">=";break;case"<":h=u,p=d,m=l,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(let r=0;r{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,h(e.semver,a.semver,f)?a=e:m(e.semver,s.semver,f)&&(s=e)}),a.operator===v||a.operator===g||(!s.operator||s.operator===v)&&p(e,s.semver)||s.operator===g&&m(e,s.semver))return!1}return!0}},81338:function(e,t,r){let n=r(59844),i=r(92271);e.exports=(e,t,r)=>{let o=[],a=null,s=null,l=e.sort((e,t)=>i(e,t,r));for(let e of l){let i=n(e,t,r);i?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null)}a&&o.push([a,null]);let u=[];for(let[e,t]of o)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");let c=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return c.length=0.0.0-0")],u=[new i(">=0.0.0")],c=(e,t,r)=>{let n,i,c,h,p,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?l:u}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=u}let g=new Set;for(let t of e)">"===t.operator||">="===t.operator?n=d(n,t,r):"<"===t.operator||"<="===t.operator?i=f(i,t,r):g.add(t.semver);if(g.size>1||n&&i&&((c=s(n.semver,i.semver,r))>0||0===c&&(">="!==n.operator||"<="!==i.operator)))return null;for(let e of g){if(n&&!a(e,String(n),r)||i&&!a(e,String(i),r))return null;for(let n of t)if(!a(e,String(n),r))return!1;return!0}let y=!!i&&!r.includePrerelease&&!!i.semver.prerelease.length&&i.semver,b=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(y&&1===y.prerelease.length&&"<"===i.operator&&0===y.prerelease[0]&&(y=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if((h=d(n,e,r))===e&&h!==n)return!1}else if(">="===n.operator&&!a(n.semver,String(e),r))return!1}if(i){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if((p=f(i,e,r))===e&&p!==i)return!1}else if("<="===i.operator&&!a(i.semver,String(e),r))return!1}if(!e.operator&&(i||n)&&0!==c)return!1}return(!n||!m||!!i||0===c)&&(!i||!v||!!n||0===c)&&!b&&!y},d=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e},f=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;r:for(let n of e.set){for(let e of t.set){let t=c(n,e,r);if(i=i||null!==t,t)continue r}if(i)return!1}return!0}},48865:function(e,t,r){let n=r(66843);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},36240:function(e,t,r){let n=r(66843);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},6692:function(e,t,r){let n=r(83128);e.exports=(n.__esModule?n:{default:n}).default},83128:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(n=r(37540))&&n.__esModule?n:{default:n};function o({version:e,from:t,to:r}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"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,r){"use strict";var n,i=r(34406);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{dim:()=>l,default:()=>u});let o=(n=r(24470))&&n.__esModule?n:{default:n},a=new Set;function s(e,t,r){(void 0===i||!i.env.JEST_WORKER_ID)&&(r&&a.has(r)||(r&&a.add(r),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 r=e.length,n=Array(r),i={},o=r,a=function(e){for(var t=new Map,r=0,n=e.length;r{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,r=!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,n.useRef)({item:null,parsed:t}),d=(0,n.useSyncExternalStore)((0,n.useCallback)(t=>{let r=r=>{e===r&&t()};return o.add(r),()=>{o.delete(r)}},[e]),()=>{var r;let n=null!==(r=s(()=>localStorage.getItem(e)))&&void 0!==r?r:null;if(i.has(e))c.current={item:n,parsed:i.get(e)};else if(n!==c.current.item){let e;try{e=null===n?t:l(n)}catch(r){e=t}c.current={item:n,parsed:e}}return c.current.parsed},()=>t),f=(0,n.useCallback)(t=>{let r=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(r)),i.delete(e)}catch(t){i.set(e,r)}a(e)},[e,u]);return(0,n.useEffect)(()=>{if(!r)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,r]),(0,n.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,r,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,r){"use strict";/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n=r(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},43100:function(e,t,r){"use strict";e.exports=r(20452)},38268:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8006:function(e,t,r){"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,i=arguments.length;r1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,r=0,n="";rr=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],i=null==s?void 0:s[e];if(null===t)return null;let o=n(t)||n(i);return a[e][o]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]);return i(e,l,c,null==r?void 0:r.class,null==r?void 0:r.className)}},63955:function(e,t,r){"use strict";r.d(t,{cI:function(){return em}});var n=r(2784),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(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 r=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))&&(r||l(e))))return e;else if(t=r?[]:{},Array.isArray(e)||f(e))for(let r in e)t[r]=p(e[r]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,r)=>{if(!t||!l(e))return r;let n=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(n)||n===e?v(e[t])?r:e[t]:n};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"};n.createContext(null);var w=(e,t,r,n=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==b.all&&(t._proxyFormState[o]=!n||b.all),r&&(r[o]=!0),e[o])});return i},E=e=>l(e)&&!Object.keys(e).length,S=(e,t,r,n)=>{r(e);let{name:i,...o}=e;return E(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!n||b.all))},j=e=>Array.isArray(e)?e:[e],C=e=>"string"==typeof e,k=(e,t,r,n,i)=>C(e)?(n&&t.watch.add(e),g(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),g(r,e))):(n&&(t.watchAll=!0),r),A=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function _(e,t,r){let n=-1,i=A(t)?[t]:O(t),o=i.length,a=o-1;for(;++nt?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{};let M=(e,t,r)=>{for(let n of r||Object.keys(e)){let r=g(e,n);if(r){let{_f:e,...n}=r;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(n)&&M(n,t)}}};var N=e=>({isOnSubmit:!e||e===b.onSubmit,isOnBlur:e===b.onBlur,isOnChange:e===b.onChange,isOnAll:e===b.all,isOnTouch:e===b.onTouched}),R=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),P=(e,t,r)=>{let n=m(g(e,r));return _(n,"root",t[r]),_(e,r,n),e},L=e=>"boolean"==typeof e,D=e=>"file"===e.type,I=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)},V=e=>C(e),B=e=>"radio"===e.type,U=e=>e instanceof RegExp;let z={value:!1,isValid:!1},H={value:!0,isValid:!0};var $=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:z}return z};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 G(e,t,r="validate"){if(V(e)||Array.isArray(e)&&e.every(V)||L(e)&&!e)return{type:r,message:V(e)?e:"",ref:t}}var Z=e=>l(e)&&!U(e)?e:{value:e,message:""},Y=async(e,t,r,n,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:b,valueAsNumber:w,mount:S,disabled:j}=e._f,k=g(t,b);if(!S||j)return{};let A=u?u[0]:s,O=e=>{n&&A.reportValidity&&(A.setCustomValidity(L(e)?"":e||""),A.reportValidity())},_={},M=B(s),N=i(s),R=(w||D(s))&&v(s.value)&&v(k)||F(s)&&""===s.value||""===k||Array.isArray(k)&&!k.length,P=T.bind(null,b,r,_),z=(e,t,r,n=x.maxLength,i=x.minLength)=>{let o=e?t:r;_[b]={type:e?n:i,message:o,ref:s,...P(e?n:i,o)}};if(o?!Array.isArray(k)||!k.length:c&&(!(M||N)&&(R||a(k))||L(k)&&!k||N&&!$(u).isValid||M&&!q(u).isValid)){let{value:e,message:t}=V(c)?{value:!!c,message:c}:Z(c);if(e&&(_[b]={type:x.required,message:t,ref:A,...P(x.required,t)},!r))return O(t),_}if(!R&&(!a(h)||!a(p))){let e,t;let n=Z(p),i=Z(h);if(a(k)||isNaN(k)){let r=s.valueAsDate||new Date(k),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;C(n.value)&&k&&(e=a?o(k)>o(n.value):l?k>n.value:r>new Date(n.value)),C(i.value)&&k&&(t=a?o(k)n.value),a(i.value)||(t=r+e.value,i=!a(t.value)&&k.length<+t.value;if((n||i)&&(z(n,e.message,t.message),!r))return O(_[b].message),_}if(m&&!R&&C(k)){let{value:e,message:t}=Z(m);if(U(e)&&!k.match(e)&&(_[b]={type:x.pattern,message:t,ref:s,...P(x.pattern,t)},!r))return O(t),_}if(y){if(I(y)){let e=await y(k,t),n=G(e,A);if(n&&(_[b]={...n,...P(x.validate,n.message)},!r))return O(n.message),_}else if(l(y)){let e={};for(let n in y){if(!E(e)&&!r)break;let i=G(await y[n](k,t),A,n);i&&(e={...i,...P(n,i.message)},O(i.message),r&&(_[b]=e))}if(!E(e)&&(_[b]={ref:A,...e},!r))return _}}return O(!0),_};function X(e,t){let r=Array.isArray(t)?t:A(t)?[t]:O(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var J=e=>a(e)||!s(e);function Q(e,t){if(J(e)||J(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r){let r=e[i];if(!n.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(r)&&o(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!Q(r,e):r!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>B(e)||i(e),er=e=>F(e)&&e.isConnected,en=e=>{for(let t in e)if(I(e[t]))return!0;return!1};function ei(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!en(e[r])?(t[r]=Array.isArray(e[r])?[]:{},ei(e[r],t[r])):a(e[r])||(t[r]=!0);return t}var eo=(e,t)=>(function e(t,r,n){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!en(t[i])?v(r)||J(n[i])?n[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],a(r)?{}:r[i],n[i]):n[i]=!Q(t[i],r[i]);return n})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>v(e)?e:t?""===e?NaN:e?+e:e:r&&C(e)?new Date(e):n?n(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:D(t)?t.files:B(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?$(e.refs).value:ea(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,r,n)=>{let i={};for(let r of e){let e=g(t,r);e&&_(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},eu=e=>v(e)?e:U(e)?e.source:l(e)?U(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,r){let n=g(e,r);if(n||A(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),o=g(t,n),a=g(e,n);if(o&&!Array.isArray(o)&&r!==n)break;if(a&&a.type)return{name:n,error:a};i.pop()}return{name:r}}var ef=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?!n.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=n.useRef(),[r,s]=n.useState({isDirty:!1,isValidating:!1,isLoading:I(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:I(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let r,n={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:I(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(n.defaultValues)||l(n.values))&&p(n.defaultValues||n.values)||{},x=n.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},S={mount:new Set,unMount:new Set,array:new Set,watch:new Set},A=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},T={values:K(),array:K(),state:K()},V=e.resetOptions&&e.resetOptions.keepDirtyValues,B=N(n.mode),U=N(n.reValidateMode),z=n.criteriaMode===b.all,H=e=>t=>{clearTimeout(A),A=setTimeout(e,t)},$=async e=>{if(O.isValid||e){let e=n.resolver?E((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)=>{_(s.errors,e,t),T.state.next({errors:s.errors})},G=(e,t,r,n)=>{let i=g(c,e);if(i){let o=g(x,e,v(r)?g(f,e):r);v(o)||n&&n.defaultChecked||t?_(x,e,t?o:es(i._f)):eb(e,o),w.mount&&$()}},Z=(e,t,r,n,i)=>{let o=!1,a=!1,l={name:e};if(!r||n){O.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let r=Q(g(f,e),t);a=g(s.dirtyFields,e),r?X(s.dirtyFields,e):_(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||O.dirtyFields&&!r!==a}if(r){let t=g(s.touchedFields,e);t||(_(s.touchedFields,e,r),l.touchedFields=s.touchedFields,o=o||O.touchedFields&&t!==r)}return o&&i&&T.state.next(l),o?l:{}},en=(t,n,i,o)=>{let a=g(s.errors,t),l=O.isValid&&L(n)&&s.isValid!==n;if(e.delayError&&i?(r=H(()=>q(t,i)))(e.delayError):(clearTimeout(A),r=null,i?_(s.errors,t,i):X(s.errors,t)),(i?!Q(a,i):a)||!E(o)||l){let e={...o,...l&&L(n)?{isValid:n}:{},errors:s.errors,name:t};s={...s,...e},T.state.next(e)}W(!1)},ei=async e=>n.resolver(x,n.context,el(e||S.mount,c,n.criteriaMode,n.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let r of e){let e=g(t,r);e?_(s.errors,r,e):X(s.errors,r)}else s.errors=t;return t},ev=async(e,t,r={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=S.array.has(e.name),a=await Y(o,x,z,n.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(r.valid=!1,t))break;t||(g(a,e.name)?i?P(s.errors,a,e.name):_(s.errors,e.name,a[e.name]):X(s.errors,e.name))}i&&await ev(i,t,r)}}return r.valid},eg=(e,t)=>(e&&t&&_(x,e,t),!Q(ej(),f)),ey=(e,t,r)=>k(e,S,{...w.mount?x:v(t)?f:C(e)?{[e]:t}:t},r,t),eb=(e,t,r={})=>{let n=g(c,e),o=t;if(n){let r=n._f;r&&(r.disabled||_(x,e,ea(t,r)),o=F(r.ref)&&a(t)?"":t,ee(r.ref)?[...r.ref.options].forEach(e=>e.selected=o.includes(e.value)):r.refs?i(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):r.refs[0]&&(r.refs[0].checked=!!o):r.refs.forEach(e=>e.checked=e.value===o):D(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||T.values.next({name:e,values:{...x}})))}(r.shouldDirty||r.shouldTouch)&&Z(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&eS(e)},ex=(e,t,r)=>{for(let n in t){let i=t[n],a=`${e}.${n}`,s=g(c,a);!S.array.has(e)&&J(i)&&(!s||s._f)||o(i)?eb(a,i,r):ex(a,i,r)}},ew=(e,r,n={})=>{let i=g(c,e),o=S.array.has(e),l=p(r);_(x,e,l),o?(T.array.next({name:e,values:{...x}}),(O.isDirty||O.dirtyFields)&&n.shouldDirty&&T.state.next({name:e,dirtyFields:eo(f,x),isDirty:eg(e,l)})):!i||i._f||a(l)?eb(e,l,n):ex(e,l,n),R(e,S)&&T.state.next({...s}),T.values.next({name:e,values:{...x}}),w.mount||t()},eE=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!n.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,U,B),m=R(i,S,h);_(x,i,f),h?(a._f.onBlur&&a._f.onBlur(e),r&&r(0)):a._f.onChange&&a._f.onChange(e);let v=Z(i,f,h,!1),b=!E(v)||m;if(h||T.values.next({name:i,type:e.type,values:{...x}}),p)return O.isValid&&$(),b&&T.state.next({name:i,...m?{}:v});if(!h&&m&&T.state.next({...s}),W(!0),n.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),r=ed(e,c,t.name||i);l=r.error,i=r.name,d=E(e)}else l=(await Y(a,x,z,n.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(x,i,f))&&(l?d=!1:O.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&eS(a._f.deps),en(i,d,l,v))}},eS=async(e,t={})=>{let r,i;let o=j(e);if(W(!0),n.resolver){let t=await em(v(e)?e:o);r=E(t),i=e?!o.some(e=>g(t,e)):r}else e?((i=(await Promise.all(o.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&$():i=r=await ev(c);return T.state.next({...!C(e)||O.isValid&&r!==s.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&M(c,e=>e&&g(s.errors,e),e?o:S.mount),i},ej=e=>{let t={...f,...w.mount?x:{}};return v(e)?t:C(e)?g(t,e):e.map(e=>g(t,e))},eC=(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)}),ek=(e,t={})=>{for(let r of e?j(e):S.mount)S.mount.delete(r),S.array.delete(r),t.keepValue||(X(c,r),X(x,r)),t.keepError||X(s.errors,r),t.keepDirty||X(s.dirtyFields,r),t.keepTouched||X(s.touchedFields,r),n.shouldUnregister||t.keepDefaultValue||X(f,r);T.values.next({values:{...x}}),T.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||$()},eA=(e,t={})=>{let r=g(c,e),i=L(t.disabled);return _(c,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),S.mount.add(e),r?i&&_(x,e,t.disabled?void 0:g(x,e,es(r._f))):G(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.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:eE,onBlur:eE,ref:i=>{if(i){eA(e,t),r=g(c,e);let n=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(n),a=r._f.refs||[];(o?a.find(e=>e===n):n===r._f.ref)||(_(c,e,{_f:{...r._f,...o?{refs:[...a.filter(er),n,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),G(e,!1,void 0,n))}else(r=g(c,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(d(S.array,e)&&w.action)&&S.unMount.add(e)}}},eO=()=>n.shouldFocusError&&M(c,e=>e&&g(s.errors,e),S.mount),e_=(r,n={})=>{let i=r||f,o=p(i),a=r&&!E(r)?o:f;if(n.keepDefaultValues||(f=i),!n.keepValues){if(n.keepDirtyValues||V)for(let e of S.mount)g(s.dirtyFields,e)?_(a,e,g(x,e)):ew(e,g(a,e));else{if(h&&v(r))for(let e of S.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?n.keepDefaultValues?p(f):{}:o,T.array.next({values:{...a}}),T.values.next({values:{...a}})}S={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!O.isValid||!!n.keepIsValid,w.watch=!!e.shouldUnregister,T.state.next({submitCount:n.keepSubmitCount?s.submitCount:0,isDirty:n.keepDirty?s.isDirty:!!(n.keepDefaultValues&&!Q(r,f)),isSubmitted:!!n.keepIsSubmitted&&s.isSubmitted,dirtyFields:n.keepDirtyValues?s.dirtyFields:n.keepDefaultValues&&r?eo(f,r):{},touchedFields:n.keepTouched?s.touchedFields:{},errors:n.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eT=(e,t)=>e_(I(e)?e(x):e,t);return{control:{register:eA,unregister:ek,getFieldState:eC,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:$,_removeUnmounted:()=>{for(let e of S.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!er(e)):!er(t._f.ref))&&ek(e)}S.unMount=new Set},_updateFieldArray:(e,t=[],r,n,i=!0,o=!0)=>{if(n&&r){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=r(g(c,e),n.argA,n.argB);i&&_(c,e,t)}if(o&&Array.isArray(g(s.errors,e))){let t=r(g(s.errors,e),n.argA,n.argB);i&&_(s.errors,e,t),eh(s.errors,e)}if(O.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=r(g(s.touchedFields,e),n.argA,n.argB);i&&_(s.touchedFields,e,t)}O.dirtyFields&&(s.dirtyFields=eo(f,x)),T.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else _(x,e,t)},_getFieldArray:t=>m(g(w.mount?x:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:e_,_resetDefaultValues:()=>I(n.defaultValues)&&n.defaultValues().then(e=>{eT(e,n.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 S},set _names(value){S=value},get _formState(){return s},set _formState(value){s=value},get _options(){return n},set _options(value){n={...n,...value}}},trigger:eS,register:eA,handleSubmit:(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let i=p(x);if(T.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);X(s.errors,"root"),E(s.errors)?(T.state.next({errors:{}}),await e(i,r)):(t&&await t({...s.errors},r),eO(),setTimeout(eO)),T.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:E(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>I(e)?T.values.subscribe({next:r=>e(ey(void 0,t),r)}):ey(e,t,!0),setValue:ew,getValues:ej,reset:eT,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),_(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&&$()),T.state.next({...s}))},clearErrors:e=>{e&&j(e).forEach(e=>X(s.errors,e)),T.state.next({errors:e?s.errors:{}})},unregister:ek,setError:(e,t,r)=>{let n=(g(c,e,{_f:{}})._f||{}).ref;_(s.errors,e,{...t,ref:n}),T.state.next({name:e,errors:s.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},setFocus:(e,t={})=>{let r=g(c,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eC}}(e,()=>s(e=>({...e}))),formState:r});let c=t.current.control;return c._options=e,!function(e){let t=n.useRef(e);t.current=e,n.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{S(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),n.useEffect(()=>{e.values&&!Q(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),n.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(r,c),t.current}},79381:function(e,t,r){"use strict";r.d(t,{J$:function(){return J},ZP:function(){return Q},JG:function(){return U},kY:function(){return Z}});var n,i=r(2784),o=r(43100);let a=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 r=a.get(e);return[()=>e.get(t)||s,n=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),r[5](t,p(i,n),i||s)}},r[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},x=new WeakMap,w=0,E=e=>{let t,r;let n=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=x.get(e))return t;if(t=++w+"~",x.set(e,t),i==Array){for(r=0,t="@";r(g&&document.addEventListener("visibilitychange",e),j("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{let t=()=>{S=!0,e()},r=()=>{S=!1};return j("online",t),j("offline",r),()=>{C("online",t),C("offline",r)}}},A=!i.useId,O=!v||"Deno"in window,_=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),T=O?i.useEffect:i.useLayoutEffect,M="undefined"!=typeof navigator&&navigator.connection,N=!O&&M&&(["slow-2g","2g"].includes(M.effectiveType)||M.saveData),R=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)?E(e):"",t]},P=0,L=()=>++P;var D={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function I(...e){let[t,r,n,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.throwOnError;if(h(r)){let e=[],n=t.keys();for(let i=n.next();!i.done;i=n.next()){let n=i.value;!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n)}return Promise.all(e.map(g))}return g(r);async function g(r){let i;let[o]=R(r);if(!o)return;let[l,p]=b(t,o),[g,y,x]=a.get(t),w=g[o],E=()=>d&&(delete x[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return E();let S=n,j=L();y[o]=[j,0];let C=!f(u),k=l(),A=k.data,O=k._c,_=f(O)?A:O;if(C&&p({data:u=h(u)?u(_):u,_c:_}),h(S))try{S=S(_)}catch(e){i=e}if(S&&h(S.then)){if(S=await S.catch(e=>{i=e}),j!==y[o][0]){if(i)throw i;return S}i&&C&&m(i)&&(s=!0,p({data:S=_,_c:c}))}s&&!i&&(h(s)&&(S=s(S,_)),p({data:S,_c:c})),y[o][1]=L();let T=await E();if(p({_c:c}),i){if(v)throw i;return}return s?T:S}}let F=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},V=(e,t)=>{if(!a.has(e)){let r=p(k,t),n={},i=I.bind(c,e),o=u,s={},l=(e,t)=>{let r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=s[t];if(i)for(let e of i)e(r,n)},f=()=>{if(!a.has(e)&&(a.set(e,[n,{},{},{},i,d,l]),!O)){let t=r.initFocus(setTimeout.bind(c,F.bind(c,n,0))),i=r.initReconnect(setTimeout.bind(c,F.bind(c,n,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[B,U]=V(new Map),z=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,r,n,i)=>{let o=r.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(n,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:N?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:N?5e3:3e3,compare:(e,t)=>E(e)==E(t),isPaused:()=>!1,cache:B,mutate:U,fallback:{}},{isOnline:()=>S,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let r=p(e,t);if(t){let{use:n,fallback:i}=e,{use:o,fallback:a}=t;n&&o&&(r.use=n.concat(o)),i&&a&&(r.fallback=p(i,a))}return r},$=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],G=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Z=()=>p(z,(0,i.useContext)($)),Y=q.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let n=R(t)[0],[,,,i]=a.get(B),o=i[n];return o?(delete i[n],o):r(...e)});return e(t,i,n)}),X=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let K={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,r=(0,i.useContext)($),n=h(t),o=(0,i.useMemo)(()=>n?t(r):t,[n,r,t]),a=(0,i.useMemo)(()=>n?o:H(r,o),[n,r,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=V(s(a.cache||B),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),T(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)($.Provider,p(e,{value:a}))},"defaultValue",{value:z});var Q=(n=(e,t,r)=>{let{cache:n,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:x}=r,[w,E,S]=a.get(n),[j,C]=R(e),k=(0,i.useRef)(!1),M=(0,i.useRef)(!1),N=(0,i.useRef)(j),P=(0,i.useRef)(t),F=(0,i.useRef)(r),V=()=>F.current,B=()=>V().isVisible()&&V().isOnline(),[U,z,H,$]=b(n,j),W=(0,i.useRef)({}).current,q=f(u)?r.fallback[j]:u,G=(e,t)=>{let r=!0;for(let n in W)"data"===n?s(t[n],e[n])||f(e[n])&&s(t[n],ei)||(r=!1):t[n]!==e[n]&&(r=!1);return r},Z=(0,i.useMemo)(()=>{let e=!!j&&!!t&&(f(d)?!V().isPaused()&&!l&&(!!f(m)||m):d),r=t=>{let r=p(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=U(),i=$(),o=r(n),a=n===i?o:r(i),s=o;return[()=>{let e=r(U());return G(e,s)?s:s=e},()=>a]},[n,j]),Y=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(j,(t,r)=>{G(r,t)||e()}),[n,j]),Z[0],Z[1]),J=!k.current,Q=w[j]&&w[j].length>0,ee=Y.data,et=f(ee)?q:ee,er=Y.error,en=(0,i.useRef)(et),ei=x?f(ee)?en.current:ee:et,eo=(!Q||!!f(er))&&(J&&!f(d)?d:!V().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(j&&t&&J&&eo),es=f(Y.isValidating)?ea:Y.isValidating,el=f(Y.isLoading)?ea:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,n;let i=P.current;if(!j||!i||M.current||V().isPaused())return!1;let o=!0,a=e||{},l=!S[j]||!a.dedupe,u=()=>A?!M.current&&j===N.current&&k.current:j===N.current,d={isValidating:!1,isLoading:!1},p=()=>{z(d)},m=()=>{let e=S[j];e&&e[1]===n&&delete S[j]},v={isValidating:!0};f(U().data)&&(v.isLoading=!0);try{if(l&&(z(v),r.loadingTimeout&&f(U().data)&&setTimeout(()=>{o&&u()&&V().onLoadingSlow(j,r)},r.loadingTimeout),S[j]=[i(C),L()]),[t,n]=S[j],t=await t,l&&setTimeout(m,r.dedupingInterval),!S[j]||S[j][1]!==n)return l&&u()&&V().onDiscarded(j),!1;d.error=c;let e=E[j];if(!f(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return p(),l&&u()&&V().onDiscarded(j),!1;let a=U().data;d.data=s(a,t)?a:t,l&&u()&&V().onSuccess(t,j,r)}catch(r){m();let e=V(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=r,l&&u()&&(e.onError(r,j,e),(!0===t||h(t)&&t(r))&&B()&&e.onErrorRetry(r,j,e,e=>{let t=w[j];t&&t[0]&&t[0](D.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[j,n]),ec=(0,i.useCallback)((...e)=>I(n,N.current,...e),[]);if(T(()=>{P.current=t,F.current=r,f(ee)||(en.current=ee)}),T(()=>{if(!j)return;let e=eu.bind(c,K),t=0,r=X(j,w,(r,n={})=>{if(r==D.FOCUS_EVENT){let r=Date.now();V().revalidateOnFocus&&r>t&&B()&&(t=r+V().focusThrottleInterval,e())}else if(r==D.RECONNECT_EVENT)V().revalidateOnReconnect&&B()&&e();else if(r==D.MUTATE_EVENT)return eu();else if(r==D.ERROR_REVALIDATE_EVENT)return eu(n)});return M.current=!1,N.current=j,k.current=!0,z({_k:C}),eo&&(f(et)||O?e():_(e)),()=>{M.current=!0,r()}},[j]),T(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!U().error&&(g||V().isVisible())&&(y||V().isOnline())?eu(K).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,j]),(0,i.useDebugValue)(ei),l&&f(et)&&j){if(!A&&O)throw Error("Fallback data is required when using suspense in SSR.");throw P.current=t,F.current=r,M.current=!1,f(er)?eu(K):er}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,er},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=Z(),[r,i,o]=G(e),a=H(t,o),s=n,{use:l}=a,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(r,i||a.fetcher||null,a)})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(86570),t(60222)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/walletd/assets/_next/static/chunks/pages/index-086084f526563103.js b/walletd/assets/_next/static/chunks/pages/index-d98e16df1531abb8.js similarity index 96% rename from walletd/assets/_next/static/chunks/pages/index-086084f526563103.js rename to walletd/assets/_next/static/chunks/pages/index-d98e16df1531abb8.js index 6bb7ac620..b9b3e2494 100644 --- a/walletd/assets/_next/static/chunks/pages/index-086084f526563103.js +++ b/walletd/assets/_next/static/chunks/pages/index-d98e16df1531abb8.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(68591)}])},10676:function(e,n,t){"use strict";t.d(n,{v:function(){return x}});var s=t(52322),l=t(25426),i=t(71930),r=t(25573),a=t(41345),c=t(83753);function o(){var e;let{openDialog:n}=(0,c.Rh)(),t=(0,a.cQ)(),i=(0,r.n)(),o=(0,a.gM)();return(0,s.jsx)(l.HfT,{name:"walletd",peerCount:null===(e=t.data)||void 0===e?void 0:e.length,connectPeer:()=>n("connectPeer"),isSynced:i.isSynced,syncPercent:i.syncPercent,nodeBlockHeight:i.nodeBlockHeight,estimatedBlockHeight:i.estimatedBlockHeight,firstTimeSyncing:i.firstTimeSyncing,moreThan100BlocksToSync:i.moreThan100BlocksToSync,children:o.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)(l.xvT,{size:"14",children:o.data.name})]})})}function d(){let e=(0,a.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,s.jsx)(l.t6k,{testnetName:n})}function x(e){let{isSynced:n}=(0,r.n)();return(0,s.jsx)(l.tU3,{appName:"walletd",profile:(0,s.jsx)(o,{}),connectivityRoute:i.h,banner:(0,s.jsx)(d,{}),showWallet:!1,isSynced:n,...e})}},48427:function(e,n,t){"use strict";t.d(n,{_:function(){return a}});var s=t(52322),l=t(25426),i=t(20876),r=t(71930);function a(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(l.KJW,{title:"Dashboard",route:r._.home,children:(0,s.jsx)(i.K2o,{})})})}},25573:function(e,n,t){"use strict";t.d(n,{n:function(){return r}});var s=t(25426),l=t(2850),i=t(41345);function r(){var e;let{isUnlocked:n}=(0,l.Hv)(),t=(0,i.XC)({config:{swr:{refreshInterval:1e4}}}),s=(0,i.ek)({config:{swr:{refreshInterval:e=>a(e)?6e4:1e4}}}),r=(0,i.nH)(),c=t.data?null===(e=t.data)||void 0===e?void 0:e.height:0,o=n&&c&&r?Number((100*Math.min(c/r,1)).toFixed(1)):0;return{isSynced:a(s.data),nodeBlockHeight:c,estimatedBlockHeight:r,syncPercent:o,moreThan100BlocksToSync:!!c&&!!r&&r-c>100,firstTimeSyncing:!!c&&!!r&&r-c>5e4}}function a(e){return!!e&&function(e){if(!e||!e.length)return!1;let n=e[0],t=Date.now()-(0,s.ytg)(2);return new Date(n).getTime()>t}(e.prevTimestamps)}},68591:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return N}});var s=t(52322),l=t(25426),i=t(6110),r=t(71930),a=t(83753),c=t(10676),o=t(48427),d=t(20876),x=t(81336),u=t(3440),h=t.n(u);function j(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:t,setColumnsVisible:r,setColumnsHidden:a,sortField:c,setSortField:o,sortDirection:u,setSortDirection:j,enabledColumns:m}=(0,i.r)(),f=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,s.jsxs)(l.J2e,{trigger:(0,s.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",tipSide:"bottom",children:[(0,s.jsx)(d.hiv,{}),"View",(0,s.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Order by"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(l.PhF,{value:c,onChange:e=>{o(e.currentTarget.value)},children:Object.entries(h()(x.Fo,"category")).map(e=>{let[n,t]=e;return(0,s.jsx)("optgroup",{label:n,children:t.map(e=>(0,s.jsx)(l.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Direction"}),(0,s.jsx)(l.kFS,{children:(0,s.jsxs)(l.PhF,{value:u,onClick:e=>{e.stopPropagation()},onChange:e=>{j(e.currentTarget.value)},children:[(0,s.jsx)(l.Wxm,{value:"desc",children:"descending"},"desc"),(0,s.jsx)(l.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,s.jsx)(l.Clw,{}),(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Display properties"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),t()},children:(0,s.jsx)(d.Wet,{})})})]}),(0,s.jsx)(l.FzK,{label:"General",columns:f.map(e=>e.value),enabled:m,setColumnsVisible:r,setColumnsHidden:a}),(0,s.jsx)(l.WVB,{children:(0,s.jsx)(l.j4H,{options:f,values:m,onChange:e=>n(e)})})]})}function m(){let{lockAllWallets:e,unlockedCount:n}=(0,i.r)(),{openDialog:t}=(0,a.Rh)();return(0,s.jsxs)("div",{className:"flex gap-2",children:[!!n&&(0,s.jsxs)(l.zxk,{tip:"Lock all wallets",tipSide:"bottom",onClick:()=>e(),children:[(0,s.jsx)(d.Lur,{}),"Lock wallets"]}),(0,s.jsxs)(l.zxk,{variant:"accent",onClick:()=>t("walletAddType"),children:[(0,s.jsx)(d.aXP,{}),"Add wallet"]}),(0,s.jsx)(j,{})]})}function f(){let{datasetCount:e,unlockedCount:n}=(0,i.r)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[!!n&&(0,s.jsxs)("div",{className:"flex gap-1.5",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(d.VmF,{})}),(0,s.jsx)(l.xvT,{size:"12",font:"mono",children:1===n?"1 wallet unlocked":"".concat(n.toLocaleString()," wallets unlocked")})]}),(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsx)(l.xvT,{size:"12",font:"mono",children:1===e?"1 wallet":"".concat(e.toLocaleString()," wallets")})]})}var g=t(70697);function v(){return(0,s.jsx)("div",{className:"flex w-full justify-center",children:(0,s.jsx)("div",{className:"mt-[100px] max-w-[800px]",children:(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(l.X6q,{className:"mb-4",children:"Add a wallet to get started."}),(0,s.jsx)(g.u,{})]})})})}function p(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No wallets matching filters."})]})}function w(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching wallets."})]})}function k(){let{openDialog:e}=(0,a.Rh)(),{dataset:n,dataState:t,context:d,columns:x,sortableColumns:u,sortDirection:h,sortField:j,toggleSort:g}=(0,i.r)();return(0,s.jsx)(c.v,{routes:r._,sidenav:(0,s.jsx)(o._,{}),openSettings:()=>e("settings"),title:"Wallets",actions:(0,s.jsx)(m,{}),stats:(0,s.jsx)(f,{}),size:"3",children:(0,s.jsxs)("div",{className:"px-6 py-7 min-w-fit",children:["noneYet"===t&&(0,s.jsx)(v,{}),"noneYet"!==t&&(0,s.jsx)(l.iA_,{isLoading:"loading"===t,emptyState:"noneMatchingFilters"===t?(0,s.jsx)(p,{}):"error"===t?(0,s.jsx)(w,{}):null,pageSize:6,data:n,context:d,columns:x,sortableColumns:u,sortDirection:h,sortField:j,toggleSort:g})]})})}function N(){return(0,s.jsx)(k,{})}}},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(68591)}])},10676:function(e,n,t){"use strict";t.d(n,{v:function(){return x}});var s=t(52322),l=t(74766),i=t(71930),r=t(25573),a=t(41345),c=t(83753);function o(){var e;let{openDialog:n}=(0,c.Rh)(),t=(0,a.cQ)(),i=(0,r.n)(),o=(0,a.gM)();return(0,s.jsx)(l.HfT,{name:"walletd",peerCount:null===(e=t.data)||void 0===e?void 0:e.length,connectPeer:()=>n("connectPeer"),isSynced:i.isSynced,syncPercent:i.syncPercent,nodeBlockHeight:i.nodeBlockHeight,estimatedBlockHeight:i.estimatedBlockHeight,firstTimeSyncing:i.firstTimeSyncing,moreThan100BlocksToSync:i.moreThan100BlocksToSync,children:o.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)(l.xvT,{size:"14",children:o.data.name})]})})}function d(){let e=(0,a.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,s.jsx)(l.t6k,{testnetName:n})}function x(e){let{isSynced:n}=(0,r.n)();return(0,s.jsx)(l.tU3,{appName:"walletd",profile:(0,s.jsx)(o,{}),connectivityRoute:i.h,banner:(0,s.jsx)(d,{}),showWallet:!1,isSynced:n,...e})}},48427:function(e,n,t){"use strict";t.d(n,{_:function(){return a}});var s=t(52322),l=t(74766),i=t(20876),r=t(71930);function a(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(l.KJW,{title:"Dashboard",route:r._.home,children:(0,s.jsx)(i.K2o,{})})})}},25573:function(e,n,t){"use strict";t.d(n,{n:function(){return r}});var s=t(74766),l=t(2850),i=t(41345);function r(){var e;let{isUnlocked:n}=(0,l.Hv)(),t=(0,i.XC)({config:{swr:{refreshInterval:1e4}}}),s=(0,i.ek)({config:{swr:{refreshInterval:e=>a(e)?6e4:1e4}}}),r=(0,i.nH)(),c=t.data?null===(e=t.data)||void 0===e?void 0:e.height:0,o=n&&c&&r?Number((100*Math.min(c/r,1)).toFixed(1)):0;return{isSynced:a(s.data),nodeBlockHeight:c,estimatedBlockHeight:r,syncPercent:o,moreThan100BlocksToSync:!!c&&!!r&&r-c>100,firstTimeSyncing:!!c&&!!r&&r-c>5e4}}function a(e){return!!e&&function(e){if(!e||!e.length)return!1;let n=e[0],t=Date.now()-(0,s.ytg)(2);return new Date(n).getTime()>t}(e.prevTimestamps)}},68591:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return N}});var s=t(52322),l=t(74766),i=t(6110),r=t(71930),a=t(83753),c=t(10676),o=t(48427),d=t(20876),x=t(81336),u=t(3440),h=t.n(u);function j(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:t,setColumnsVisible:r,setColumnsHidden:a,sortField:c,setSortField:o,sortDirection:u,setSortDirection:j,enabledColumns:m}=(0,i.r)(),f=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,s.jsxs)(l.J2e,{trigger:(0,s.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",tipSide:"bottom",children:[(0,s.jsx)(d.hiv,{}),"View",(0,s.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Order by"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(l.PhF,{value:c,onChange:e=>{o(e.currentTarget.value)},children:Object.entries(h()(x.Fo,"category")).map(e=>{let[n,t]=e;return(0,s.jsx)("optgroup",{label:n,children:t.map(e=>(0,s.jsx)(l.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Direction"}),(0,s.jsx)(l.kFS,{children:(0,s.jsxs)(l.PhF,{value:u,onClick:e=>{e.stopPropagation()},onChange:e=>{j(e.currentTarget.value)},children:[(0,s.jsx)(l.Wxm,{value:"desc",children:"descending"},"desc"),(0,s.jsx)(l.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,s.jsx)(l.Clw,{}),(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Display properties"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),t()},children:(0,s.jsx)(d.Wet,{})})})]}),(0,s.jsx)(l.FzK,{label:"General",columns:f.map(e=>e.value),enabled:m,setColumnsVisible:r,setColumnsHidden:a}),(0,s.jsx)(l.WVB,{children:(0,s.jsx)(l.j4H,{options:f,values:m,onChange:e=>n(e)})})]})}function m(){let{lockAllWallets:e,unlockedCount:n}=(0,i.r)(),{openDialog:t}=(0,a.Rh)();return(0,s.jsxs)("div",{className:"flex gap-2",children:[!!n&&(0,s.jsxs)(l.zxk,{tip:"Lock all wallets",tipSide:"bottom",onClick:()=>e(),children:[(0,s.jsx)(d.Lur,{}),"Lock wallets"]}),(0,s.jsxs)(l.zxk,{variant:"accent",onClick:()=>t("walletAddType"),children:[(0,s.jsx)(d.aXP,{}),"Add wallet"]}),(0,s.jsx)(j,{})]})}function f(){let{datasetCount:e,unlockedCount:n}=(0,i.r)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[!!n&&(0,s.jsxs)("div",{className:"flex gap-1.5",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(d.VmF,{})}),(0,s.jsx)(l.xvT,{size:"12",font:"mono",children:1===n?"1 wallet unlocked":"".concat(n.toLocaleString()," wallets unlocked")})]}),(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsx)(l.xvT,{size:"12",font:"mono",children:1===e?"1 wallet":"".concat(e.toLocaleString()," wallets")})]})}var g=t(70697);function v(){return(0,s.jsx)("div",{className:"flex w-full justify-center",children:(0,s.jsx)("div",{className:"mt-[100px] max-w-[800px]",children:(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(l.X6q,{className:"mb-4",children:"Add a wallet to get started."}),(0,s.jsx)(g.u,{})]})})})}function p(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No wallets matching filters."})]})}function w(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching wallets."})]})}function k(){let{openDialog:e}=(0,a.Rh)(),{dataset:n,dataState:t,context:d,columns:x,sortableColumns:u,sortDirection:h,sortField:j,toggleSort:g}=(0,i.r)();return(0,s.jsx)(c.v,{routes:r._,sidenav:(0,s.jsx)(o._,{}),openSettings:()=>e("settings"),title:"Wallets",actions:(0,s.jsx)(m,{}),stats:(0,s.jsx)(f,{}),size:"3",children:(0,s.jsxs)("div",{className:"px-6 py-7 min-w-fit",children:["noneYet"===t&&(0,s.jsx)(v,{}),"noneYet"!==t&&(0,s.jsx)(l.iA_,{isLoading:"loading"===t,emptyState:"noneMatchingFilters"===t?(0,s.jsx)(p,{}):"error"===t?(0,s.jsx)(w,{}):null,pageSize:6,data:n,context:d,columns:x,sortableColumns:u,sortDirection:h,sortField:j,toggleSort:g})]})})}function N(){return(0,s.jsx)(k,{})}}},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/walletd/assets/_next/static/chunks/pages/login-9085f2074cdef143.js b/walletd/assets/_next/static/chunks/pages/login-f0d5cec642c5a492.js similarity index 88% rename from walletd/assets/_next/static/chunks/pages/login-9085f2074cdef143.js rename to walletd/assets/_next/static/chunks/pages/login-f0d5cec642c5a492.js index 7ebc85083..c7f1af4c4 100644 --- a/walletd/assets/_next/static/chunks/pages/login-9085f2074cdef143.js +++ b/walletd/assets/_next/static/chunks/pages/login-f0d5cec642c5a492.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(58188)}])},58188:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return _}});var e=t(52322),r=t(25426),i=t(71930);function o(n){return(0,e.jsx)(r.juT,{appName:"walletd",...n})}function c(){return(0,e.jsx)(o,{children:(0,e.jsx)(r.zXq,{appName:"walletd",route:i.h,routes:i._})})}function _(){return(0,e.jsx)(c,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(58188)}])},58188:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return _}});var e=t(52322),r=t(74766),i=t(71930);function o(n){return(0,e.jsx)(r.juT,{appName:"walletd",...n})}function c(){return(0,e.jsx)(o,{children:(0,e.jsx)(r.zXq,{appName:"walletd",route:i.h,routes:i._})})}function _(){return(0,e.jsx)(c,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/walletd/assets/_next/static/chunks/pages/node-271f1ff3afa7dada.js b/walletd/assets/_next/static/chunks/pages/node-91739a95c606f293.js similarity index 90% rename from walletd/assets/_next/static/chunks/pages/node-271f1ff3afa7dada.js rename to walletd/assets/_next/static/chunks/pages/node-91739a95c606f293.js index e2bb89f3a..4d8353db5 100644 --- a/walletd/assets/_next/static/chunks/pages/node-271f1ff3afa7dada.js +++ b/walletd/assets/_next/static/chunks/pages/node-91739a95c606f293.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(61936)}])},10676:function(e,n,t){"use strict";t.d(n,{v:function(){return u}});var r=t(52322),i=t(25426),a=t(71930),s=t(25573),c=t(41345),l=t(83753);function o(){var e;let{openDialog:n}=(0,l.Rh)(),t=(0,c.cQ)(),a=(0,s.n)(),o=(0,c.gM)();return(0,r.jsx)(i.HfT,{name:"walletd",peerCount:null===(e=t.data)||void 0===e?void 0:e.length,connectPeer:()=>n("connectPeer"),isSynced:a.isSynced,syncPercent:a.syncPercent,nodeBlockHeight:a.nodeBlockHeight,estimatedBlockHeight:a.estimatedBlockHeight,firstTimeSyncing:a.firstTimeSyncing,moreThan100BlocksToSync:a.moreThan100BlocksToSync,children:o.data&&(0,r.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,r.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,r.jsx)(i.xvT,{size:"14",children:o.data.name})]})})}function d(){let e=(0,c.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,r.jsx)(i.t6k,{testnetName:n})}function u(e){let{isSynced:n}=(0,s.n)();return(0,r.jsx)(i.tU3,{appName:"walletd",profile:(0,r.jsx)(o,{}),connectivityRoute:a.h,banner:(0,r.jsx)(d,{}),showWallet:!1,isSynced:n,...e})}},48427:function(e,n,t){"use strict";t.d(n,{_:function(){return c}});var r=t(52322),i=t(25426),a=t(20876),s=t(71930);function c(){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.KJW,{title:"Dashboard",route:s._.home,children:(0,r.jsx)(a.K2o,{})})})}},25573:function(e,n,t){"use strict";t.d(n,{n:function(){return s}});var r=t(25426),i=t(2850),a=t(41345);function s(){var e;let{isUnlocked:n}=(0,i.Hv)(),t=(0,a.XC)({config:{swr:{refreshInterval:1e4}}}),r=(0,a.ek)({config:{swr:{refreshInterval:e=>c(e)?6e4:1e4}}}),s=(0,a.nH)(),l=t.data?null===(e=t.data)||void 0===e?void 0:e.height:0,o=n&&l&&s?Number((100*Math.min(l/s,1)).toFixed(1)):0;return{isSynced:c(r.data),nodeBlockHeight:l,estimatedBlockHeight:s,syncPercent:o,moreThan100BlocksToSync:!!l&&!!s&&s-l>100,firstTimeSyncing:!!l&&!!s&&s-l>5e4}}function c(e){return!!e&&function(e){if(!e||!e.length)return!1;let n=e[0],t=Date.now()-(0,r.ytg)(2);return new Date(n).getTime()>t}(e.prevTimestamps)}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var r=t(52322),i=t(25426),a=t(41345),s=t(71930),c=t(83753),l=t(48427),o=t(10676);function d(){var e,n,t;let d=(0,a.cQ)(),u=(0,a.QL)({config:{swr:{refreshInterval:3e4}}}),f=(0,a.XC)({config:{swr:{refreshInterval:3e4}}}),{openDialog:h}=(0,c.Rh)();return(0,r.jsx)(o.v,{routes:s._,sidenav:(0,r.jsx)(l._,{}),openSettings:()=>h("settings"),title:"Node",children:(0,r.jsxs)("div",{className:"flex flex-col gap-5 p-5",children:[(0,r.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,r.jsx)(i.ncR,{label:"Height",value:f.data?Number(f.data.height).toLocaleString():void 0}),(0,r.jsx)(i.ncR,{label:"Connected peers",value:null===(e=d.data)||void 0===e?void 0:e.length}),(0,r.jsx)(i.ncR,{label:"Transactions in pool",value:null===(n=u.data)||void 0===n?void 0:n.length})]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-7",children:(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(i.u5Q,{peers:null===(t=d.data)||void 0===t?void 0:t.map(e=>e.addr),connectPeer:()=>h("connectPeer")})})})]})})}function u(){return(0,r.jsx)(d,{})}}},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(61936)}])},10676:function(e,n,t){"use strict";t.d(n,{v:function(){return u}});var r=t(52322),i=t(74766),a=t(71930),s=t(25573),c=t(41345),l=t(83753);function o(){var e;let{openDialog:n}=(0,l.Rh)(),t=(0,c.cQ)(),a=(0,s.n)(),o=(0,c.gM)();return(0,r.jsx)(i.HfT,{name:"walletd",peerCount:null===(e=t.data)||void 0===e?void 0:e.length,connectPeer:()=>n("connectPeer"),isSynced:a.isSynced,syncPercent:a.syncPercent,nodeBlockHeight:a.nodeBlockHeight,estimatedBlockHeight:a.estimatedBlockHeight,firstTimeSyncing:a.firstTimeSyncing,moreThan100BlocksToSync:a.moreThan100BlocksToSync,children:o.data&&(0,r.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,r.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,r.jsx)(i.xvT,{size:"14",children:o.data.name})]})})}function d(){let e=(0,c.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,r.jsx)(i.t6k,{testnetName:n})}function u(e){let{isSynced:n}=(0,s.n)();return(0,r.jsx)(i.tU3,{appName:"walletd",profile:(0,r.jsx)(o,{}),connectivityRoute:a.h,banner:(0,r.jsx)(d,{}),showWallet:!1,isSynced:n,...e})}},48427:function(e,n,t){"use strict";t.d(n,{_:function(){return c}});var r=t(52322),i=t(74766),a=t(20876),s=t(71930);function c(){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.KJW,{title:"Dashboard",route:s._.home,children:(0,r.jsx)(a.K2o,{})})})}},25573:function(e,n,t){"use strict";t.d(n,{n:function(){return s}});var r=t(74766),i=t(2850),a=t(41345);function s(){var e;let{isUnlocked:n}=(0,i.Hv)(),t=(0,a.XC)({config:{swr:{refreshInterval:1e4}}}),r=(0,a.ek)({config:{swr:{refreshInterval:e=>c(e)?6e4:1e4}}}),s=(0,a.nH)(),l=t.data?null===(e=t.data)||void 0===e?void 0:e.height:0,o=n&&l&&s?Number((100*Math.min(l/s,1)).toFixed(1)):0;return{isSynced:c(r.data),nodeBlockHeight:l,estimatedBlockHeight:s,syncPercent:o,moreThan100BlocksToSync:!!l&&!!s&&s-l>100,firstTimeSyncing:!!l&&!!s&&s-l>5e4}}function c(e){return!!e&&function(e){if(!e||!e.length)return!1;let n=e[0],t=Date.now()-(0,r.ytg)(2);return new Date(n).getTime()>t}(e.prevTimestamps)}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var r=t(52322),i=t(74766),a=t(41345),s=t(71930),c=t(83753),l=t(48427),o=t(10676);function d(){var e,n,t;let d=(0,a.cQ)(),u=(0,a.QL)({config:{swr:{refreshInterval:3e4}}}),f=(0,a.XC)({config:{swr:{refreshInterval:3e4}}}),{openDialog:h}=(0,c.Rh)();return(0,r.jsx)(o.v,{routes:s._,sidenav:(0,r.jsx)(l._,{}),openSettings:()=>h("settings"),title:"Node",children:(0,r.jsxs)("div",{className:"flex flex-col gap-5 p-5",children:[(0,r.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,r.jsx)(i.ncR,{label:"Height",value:f.data?Number(f.data.height).toLocaleString():void 0}),(0,r.jsx)(i.ncR,{label:"Connected peers",value:null===(e=d.data)||void 0===e?void 0:e.length}),(0,r.jsx)(i.ncR,{label:"Transactions in pool",value:null===(n=u.data)||void 0===n?void 0:n.length})]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-7",children:(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(i.u5Q,{peers:null===(t=d.data)||void 0===t?void 0:t.map(e=>e.addr),connectPeer:()=>h("connectPeer")})})})]})})}function u(){return(0,r.jsx)(d,{})}}},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/walletd/assets/_next/static/chunks/pages/wallets/[id]-68f33fcde63a6656.js b/walletd/assets/_next/static/chunks/pages/wallets/[id]-cc4401dc6913421a.js similarity index 96% rename from walletd/assets/_next/static/chunks/pages/wallets/[id]-68f33fcde63a6656.js rename to walletd/assets/_next/static/chunks/pages/wallets/[id]-cc4401dc6913421a.js index d514f2e6d..583ae2624 100644 --- a/walletd/assets/_next/static/chunks/pages/wallets/[id]-68f33fcde63a6656.js +++ b/walletd/assets/_next/static/chunks/pages/wallets/[id]-cc4401dc6913421a.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[258],{38983:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallets/[id]",function(){return t(99826)}])},10676:function(e,n,t){"use strict";t.d(n,{v:function(){return x}});var s=t(52322),i=t(25426),l=t(71930),a=t(25573),r=t(41345),c=t(83753);function o(){var e;let{openDialog:n}=(0,c.Rh)(),t=(0,r.cQ)(),l=(0,a.n)(),o=(0,r.gM)();return(0,s.jsx)(i.HfT,{name:"walletd",peerCount:null===(e=t.data)||void 0===e?void 0:e.length,connectPeer:()=>n("connectPeer"),isSynced:l.isSynced,syncPercent:l.syncPercent,nodeBlockHeight:l.nodeBlockHeight,estimatedBlockHeight:l.estimatedBlockHeight,firstTimeSyncing:l.firstTimeSyncing,moreThan100BlocksToSync:l.moreThan100BlocksToSync,children:o.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:"Network"}),(0,s.jsx)(i.xvT,{size:"14",children:o.data.name})]})})}function d(){let e=(0,r.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,s.jsx)(i.t6k,{testnetName:n})}function x(e){let{isSynced:n}=(0,a.n)();return(0,s.jsx)(i.tU3,{appName:"walletd",profile:(0,s.jsx)(o,{}),connectivityRoute:l.h,banner:(0,s.jsx)(d,{}),showWallet:!1,isSynced:n,...e})}},48427:function(e,n,t){"use strict";t.d(n,{_:function(){return r}});var s=t(52322),i=t(25426),l=t(20876),a=t(71930);function r(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(i.KJW,{title:"Dashboard",route:a._.home,children:(0,s.jsx)(l.K2o,{})})})}},25573:function(e,n,t){"use strict";t.d(n,{n:function(){return a}});var s=t(25426),i=t(2850),l=t(41345);function a(){var e;let{isUnlocked:n}=(0,i.Hv)(),t=(0,l.XC)({config:{swr:{refreshInterval:1e4}}}),s=(0,l.ek)({config:{swr:{refreshInterval:e=>r(e)?6e4:1e4}}}),a=(0,l.nH)(),c=t.data?null===(e=t.data)||void 0===e?void 0:e.height:0,o=n&&c&&a?Number((100*Math.min(c/a,1)).toFixed(1)):0;return{isSynced:r(s.data),nodeBlockHeight:c,estimatedBlockHeight:a,syncPercent:o,moreThan100BlocksToSync:!!c&&!!a&&a-c>100,firstTimeSyncing:!!c&&!!a&&a-c>5e4}}function r(e){return!!e&&function(e){if(!e||!e.length)return!1;let n=e[0],t=Date.now()-(0,s.ytg)(2);return new Date(n).getTime()>t}(e.prevTimestamps)}},99826:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return B}});var s=t(52322),i=t(25426),l=t(71930),a=t(83753),r=t(10676),c=t(48427),o=t(20876),d=t(25573),x=t(6391),u=t.n(x),h=t(5632);function m(){let e=(0,h.useRouter)(),n=e.query.id;return(0,s.jsxs)(i.Qjf,{href:{pathname:l._.wallet.addresses,query:{id:n}},children:[(0,s.jsx)(o.xHM,{}),"Addresses"]})}var f=t(51660);function j(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:t,setColumnsVisible:l,setColumnsHidden:a,enabledColumns:r}=(0,f.hI)(),c=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,s.jsxs)(i.J2e,{trigger:(0,s.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",tipSide:"bottom",children:[(0,s.jsx)(o.hiv,{}),"View",(0,s.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,s.jsxs)(i.WVB,{children:[(0,s.jsx)(i.__J,{children:"Display properties"}),(0,s.jsx)(i.kFS,{children:(0,s.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),t()},children:(0,s.jsx)(o.Wet,{})})})]}),(0,s.jsx)(i.FzK,{label:"General",columns:c.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:a}),(0,s.jsx)(i.WVB,{children:(0,s.jsx)(i.j4H,{options:c,values:r,onChange:e=>n(e)})})]})}var v=t(41345),p=t(6110),g=t(18250),w=t(96206),y=t(82851);function N(e){let{sc:n,sf:t,isSynced:l,syncingMessage:a}=e,r=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.ua7,{side:"bottom",content:(0,w.Vz)(n,{dynamicUnits:!1}),children:(0,s.jsx)(i.xvT,{size:"12",weight:"semibold",className:"flex items-center h-full",children:(0,w.Vz)(n)})}),!!t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Z0O,{variant:"vertical",className:"h-full"}),(0,s.jsx)(i.ua7,{side:"bottom",content:(0,w.ES)(t),children:(0,s.jsx)(i.xvT,{size:"12",weight:"semibold",className:"flex items-center h-full",children:(0,w.ES)(t)})})]})]});return(0,s.jsxs)(i.s_4,{className:(0,y.cx)("hidden sm:flex h-7 items-center gap-2",l?"px-3":"pl-2 pr-3"),children:[!l&&(0,s.jsx)(i.ua7,{side:"bottom",content:a||"Blockchain is syncing, balance may be incorrect.",children:(0,s.jsx)(i.xvT,{color:"amber",className:"flex items-center h-full",children:(0,s.jsx)(o.qdM,{})})}),r]})}function b(){var e,n;let t=(0,d.n)(),l=(0,h.useRouter)(),{openDialog:r}=(0,a.Rh)(),c=l.query.id,x=(0,v.tM)({params:{id:c}}),{wallet:f}=(0,p.r)();return(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(N,{sc:new(u())((null===(e=x.data)||void 0===e?void 0:e.siacoins)||0),sf:(null===(n=x.data)||void 0===n?void 0:n.siafunds)||0,isSynced:t.isSynced}),(0,s.jsx)(m,{}),(null==f?void 0:f.type)!=="watch"&&(0,s.jsxs)(i.zxk,{size:"small",variant:"accent",onClick:()=>{(null==f?void 0:f.type)==="seed"?r("walletSendSiacoinSeed",{walletId:c}):(null==f?void 0:f.type)==="ledger"&&r("walletSendSiacoinLedger",{walletId:c})},children:[(0,s.jsx)(o.rW0,{}),"Send"]}),(0,s.jsx)(j,{}),f&&(0,s.jsx)(g.g,{wallet:f,trigger:(0,s.jsx)(i.zxk,{size:"small",tip:"Wallet settings",tipAlign:"end",tipSide:"bottom",children:(0,s.jsx)(o.shL,{})}),contentProps:{align:"end"}})]})}function S(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No transactions matching filters."})]})}function T(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(o.fDA,{className:"scale-[200%]"})}),(0,s.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The wallet has no transactions yet."})]})}function k(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching transactions."})]})}var _=t(22038);function z(){var e,n;let{wallet:t}=(0,p.r)(),{openDialog:l}=(0,a.Rh)();return(0,s.jsx)("div",{className:"pl-1 flex gap-2 items-center",children:(0,s.jsx)(i.zxk,{variant:"ghost",icon:"contrast",onClick:()=>l("walletUpdate",{walletId:t.id}),className:"!p-0",tip:null===(e=_._[null==t?void 0:t.type])||void 0===e?void 0:e.title,children:null===(n=_._[null==t?void 0:t.type])||void 0===n?void 0:n.icon})})}function C(){let{offset:e,limit:n,pageCount:t,dataState:l}=(0,f.hI)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsx)(i.wFK,{offset:e,limit:n,pageTotal:t,isLoading:"loading"===l})]})}function H(){let{openDialog:e}=(0,a.Rh)(),{wallet:n}=(0,p.r)(),{dataset:t,dataState:o,columns:d,sortableColumns:x,sortDirection:u,sortField:h,toggleSort:m}=(0,f.hI)();return(0,s.jsx)(r.v,{routes:l._,sidenav:(0,s.jsx)(c._,{}),openSettings:()=>e("settings"),title:null==n?void 0:n.name,nav:(0,s.jsx)(z,{}),actions:(0,s.jsx)(b,{}),stats:(0,s.jsx)(C,{}),size:"full",children:(0,s.jsx)("div",{className:"px-6 py-7 min-w-fit",children:(0,s.jsx)(i.iA_,{isLoading:"loading"===o,emptyState:"noneMatchingFilters"===o?(0,s.jsx)(S,{}):"noneYet"===o?(0,s.jsx)(T,{}):"error"===o?(0,s.jsx)(k,{}):null,pageSize:6,data:t,columns:d,sortableColumns:x,sortDirection:u,sortField:h,toggleSort:m})})})}function B(){return(0,s.jsx)(H,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=38983)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[258],{38983:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallets/[id]",function(){return t(99826)}])},10676:function(e,n,t){"use strict";t.d(n,{v:function(){return x}});var s=t(52322),i=t(74766),l=t(71930),a=t(25573),r=t(41345),c=t(83753);function o(){var e;let{openDialog:n}=(0,c.Rh)(),t=(0,r.cQ)(),l=(0,a.n)(),o=(0,r.gM)();return(0,s.jsx)(i.HfT,{name:"walletd",peerCount:null===(e=t.data)||void 0===e?void 0:e.length,connectPeer:()=>n("connectPeer"),isSynced:l.isSynced,syncPercent:l.syncPercent,nodeBlockHeight:l.nodeBlockHeight,estimatedBlockHeight:l.estimatedBlockHeight,firstTimeSyncing:l.firstTimeSyncing,moreThan100BlocksToSync:l.moreThan100BlocksToSync,children:o.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:"Network"}),(0,s.jsx)(i.xvT,{size:"14",children:o.data.name})]})})}function d(){let e=(0,r.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,s.jsx)(i.t6k,{testnetName:n})}function x(e){let{isSynced:n}=(0,a.n)();return(0,s.jsx)(i.tU3,{appName:"walletd",profile:(0,s.jsx)(o,{}),connectivityRoute:l.h,banner:(0,s.jsx)(d,{}),showWallet:!1,isSynced:n,...e})}},48427:function(e,n,t){"use strict";t.d(n,{_:function(){return r}});var s=t(52322),i=t(74766),l=t(20876),a=t(71930);function r(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(i.KJW,{title:"Dashboard",route:a._.home,children:(0,s.jsx)(l.K2o,{})})})}},25573:function(e,n,t){"use strict";t.d(n,{n:function(){return a}});var s=t(74766),i=t(2850),l=t(41345);function a(){var e;let{isUnlocked:n}=(0,i.Hv)(),t=(0,l.XC)({config:{swr:{refreshInterval:1e4}}}),s=(0,l.ek)({config:{swr:{refreshInterval:e=>r(e)?6e4:1e4}}}),a=(0,l.nH)(),c=t.data?null===(e=t.data)||void 0===e?void 0:e.height:0,o=n&&c&&a?Number((100*Math.min(c/a,1)).toFixed(1)):0;return{isSynced:r(s.data),nodeBlockHeight:c,estimatedBlockHeight:a,syncPercent:o,moreThan100BlocksToSync:!!c&&!!a&&a-c>100,firstTimeSyncing:!!c&&!!a&&a-c>5e4}}function r(e){return!!e&&function(e){if(!e||!e.length)return!1;let n=e[0],t=Date.now()-(0,s.ytg)(2);return new Date(n).getTime()>t}(e.prevTimestamps)}},99826:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return B}});var s=t(52322),i=t(74766),l=t(71930),a=t(83753),r=t(10676),c=t(48427),o=t(20876),d=t(25573),x=t(6391),u=t.n(x),h=t(5632);function m(){let e=(0,h.useRouter)(),n=e.query.id;return(0,s.jsxs)(i.Qjf,{href:{pathname:l._.wallet.addresses,query:{id:n}},children:[(0,s.jsx)(o.xHM,{}),"Addresses"]})}var f=t(51660);function j(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:t,setColumnsVisible:l,setColumnsHidden:a,enabledColumns:r}=(0,f.hI)(),c=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,s.jsxs)(i.J2e,{trigger:(0,s.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",tipSide:"bottom",children:[(0,s.jsx)(o.hiv,{}),"View",(0,s.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,s.jsxs)(i.WVB,{children:[(0,s.jsx)(i.__J,{children:"Display properties"}),(0,s.jsx)(i.kFS,{children:(0,s.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),t()},children:(0,s.jsx)(o.Wet,{})})})]}),(0,s.jsx)(i.FzK,{label:"General",columns:c.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:a}),(0,s.jsx)(i.WVB,{children:(0,s.jsx)(i.j4H,{options:c,values:r,onChange:e=>n(e)})})]})}var v=t(41345),p=t(6110),g=t(18250),w=t(96206),y=t(82851);function N(e){let{sc:n,sf:t,isSynced:l,syncingMessage:a}=e,r=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.ua7,{side:"bottom",content:(0,w.Vz)(n,{dynamicUnits:!1}),children:(0,s.jsx)(i.xvT,{size:"12",weight:"semibold",className:"flex items-center h-full",children:(0,w.Vz)(n)})}),!!t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Z0O,{variant:"vertical",className:"h-full"}),(0,s.jsx)(i.ua7,{side:"bottom",content:(0,w.ES)(t),children:(0,s.jsx)(i.xvT,{size:"12",weight:"semibold",className:"flex items-center h-full",children:(0,w.ES)(t)})})]})]});return(0,s.jsxs)(i.s_4,{className:(0,y.cx)("hidden sm:flex h-7 items-center gap-2",l?"px-3":"pl-2 pr-3"),children:[!l&&(0,s.jsx)(i.ua7,{side:"bottom",content:a||"Blockchain is syncing, balance may be incorrect.",children:(0,s.jsx)(i.xvT,{color:"amber",className:"flex items-center h-full",children:(0,s.jsx)(o.qdM,{})})}),r]})}function b(){var e,n;let t=(0,d.n)(),l=(0,h.useRouter)(),{openDialog:r}=(0,a.Rh)(),c=l.query.id,x=(0,v.tM)({params:{id:c}}),{wallet:f}=(0,p.r)();return(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(N,{sc:new(u())((null===(e=x.data)||void 0===e?void 0:e.siacoins)||0),sf:(null===(n=x.data)||void 0===n?void 0:n.siafunds)||0,isSynced:t.isSynced}),(0,s.jsx)(m,{}),(null==f?void 0:f.type)!=="watch"&&(0,s.jsxs)(i.zxk,{size:"small",variant:"accent",onClick:()=>{(null==f?void 0:f.type)==="seed"?r("walletSendSiacoinSeed",{walletId:c}):(null==f?void 0:f.type)==="ledger"&&r("walletSendSiacoinLedger",{walletId:c})},children:[(0,s.jsx)(o.rW0,{}),"Send"]}),(0,s.jsx)(j,{}),f&&(0,s.jsx)(g.g,{wallet:f,trigger:(0,s.jsx)(i.zxk,{size:"small",tip:"Wallet settings",tipAlign:"end",tipSide:"bottom",children:(0,s.jsx)(o.shL,{})}),contentProps:{align:"end"}})]})}function S(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No transactions matching filters."})]})}function T(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(o.fDA,{className:"scale-[200%]"})}),(0,s.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The wallet has no transactions yet."})]})}function k(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching transactions."})]})}var _=t(22038);function z(){var e,n;let{wallet:t}=(0,p.r)(),{openDialog:l}=(0,a.Rh)();return(0,s.jsx)("div",{className:"pl-1 flex gap-2 items-center",children:(0,s.jsx)(i.zxk,{variant:"ghost",icon:"contrast",onClick:()=>l("walletUpdate",{walletId:t.id}),className:"!p-0",tip:null===(e=_._[null==t?void 0:t.type])||void 0===e?void 0:e.title,children:null===(n=_._[null==t?void 0:t.type])||void 0===n?void 0:n.icon})})}function C(){let{offset:e,limit:n,pageCount:t,dataState:l}=(0,f.hI)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsx)(i.wFK,{offset:e,limit:n,pageTotal:t,isLoading:"loading"===l})]})}function H(){let{openDialog:e}=(0,a.Rh)(),{wallet:n}=(0,p.r)(),{dataset:t,dataState:o,columns:d,sortableColumns:x,sortDirection:u,sortField:h,toggleSort:m}=(0,f.hI)();return(0,s.jsx)(r.v,{routes:l._,sidenav:(0,s.jsx)(c._,{}),openSettings:()=>e("settings"),title:null==n?void 0:n.name,nav:(0,s.jsx)(z,{}),actions:(0,s.jsx)(b,{}),stats:(0,s.jsx)(C,{}),size:"full",children:(0,s.jsx)("div",{className:"px-6 py-7 min-w-fit",children:(0,s.jsx)(i.iA_,{isLoading:"loading"===o,emptyState:"noneMatchingFilters"===o?(0,s.jsx)(S,{}):"noneYet"===o?(0,s.jsx)(T,{}):"error"===o?(0,s.jsx)(k,{}):null,pageSize:6,data:t,columns:d,sortableColumns:x,sortDirection:u,sortField:h,toggleSort:m})})})}function B(){return(0,s.jsx)(H,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=38983)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/walletd/assets/_next/static/chunks/pages/wallets/[id]/addresses-e1893c62263ff35a.js b/walletd/assets/_next/static/chunks/pages/wallets/[id]/addresses-0293a6a0f9c52b24.js similarity index 95% rename from walletd/assets/_next/static/chunks/pages/wallets/[id]/addresses-e1893c62263ff35a.js rename to walletd/assets/_next/static/chunks/pages/wallets/[id]/addresses-0293a6a0f9c52b24.js index b39d5d7c5..4c3fbc402 100644 --- a/walletd/assets/_next/static/chunks/pages/wallets/[id]/addresses-e1893c62263ff35a.js +++ b/walletd/assets/_next/static/chunks/pages/wallets/[id]/addresses-0293a6a0f9c52b24.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[698],{14573:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallets/[id]/addresses",function(){return t(72950)}])},10676:function(e,n,t){"use strict";t.d(n,{v:function(){return u}});var s=t(52322),r=t(25426),l=t(71930),i=t(25573),a=t(41345),c=t(83753);function o(){var e;let{openDialog:n}=(0,c.Rh)(),t=(0,a.cQ)(),l=(0,i.n)(),o=(0,a.gM)();return(0,s.jsx)(r.HfT,{name:"walletd",peerCount:null===(e=t.data)||void 0===e?void 0:e.length,connectPeer:()=>n("connectPeer"),isSynced:l.isSynced,syncPercent:l.syncPercent,nodeBlockHeight:l.nodeBlockHeight,estimatedBlockHeight:l.estimatedBlockHeight,firstTimeSyncing:l.firstTimeSyncing,moreThan100BlocksToSync:l.moreThan100BlocksToSync,children:o.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(r.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)(r.xvT,{size:"14",children:o.data.name})]})})}function d(){let e=(0,a.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,s.jsx)(r.t6k,{testnetName:n})}function u(e){let{isSynced:n}=(0,i.n)();return(0,s.jsx)(r.tU3,{appName:"walletd",profile:(0,s.jsx)(o,{}),connectivityRoute:l.h,banner:(0,s.jsx)(d,{}),showWallet:!1,isSynced:n,...e})}},48427:function(e,n,t){"use strict";t.d(n,{_:function(){return a}});var s=t(52322),r=t(25426),l=t(20876),i=t(71930);function a(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(r.KJW,{title:"Dashboard",route:i._.home,children:(0,s.jsx)(l.K2o,{})})})}},25573:function(e,n,t){"use strict";t.d(n,{n:function(){return i}});var s=t(25426),r=t(2850),l=t(41345);function i(){var e;let{isUnlocked:n}=(0,r.Hv)(),t=(0,l.XC)({config:{swr:{refreshInterval:1e4}}}),s=(0,l.ek)({config:{swr:{refreshInterval:e=>a(e)?6e4:1e4}}}),i=(0,l.nH)(),c=t.data?null===(e=t.data)||void 0===e?void 0:e.height:0,o=n&&c&&i?Number((100*Math.min(c/i,1)).toFixed(1)):0;return{isSynced:a(s.data),nodeBlockHeight:c,estimatedBlockHeight:i,syncPercent:o,moreThan100BlocksToSync:!!c&&!!i&&i-c>100,firstTimeSyncing:!!c&&!!i&&i-c>5e4}}function a(e){return!!e&&function(e){if(!e||!e.length)return!1;let n=e[0],t=Date.now()-(0,s.ytg)(2);return new Date(n).getTime()>t}(e.prevTimestamps)}},72950:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return N}});var s=t(52322),r=t(25426),l=t(71930),i=t(83753),a=t(10676),c=t(48427),o=t(20876),d=t(6110),u=t(5632),x=t(81612),h=t(3440),j=t.n(h),m=t(45283);function f(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:t,setColumnsVisible:l,setColumnsHidden:i,sortField:a,setSortField:c,sortDirection:d,setSortDirection:u,enabledColumns:h}=(0,m.Jz)(),f=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,s.jsxs)(r.J2e,{trigger:(0,s.jsxs)(r.zxk,{size:"small",tip:"Configure view",tipAlign:"end",tipSide:"bottom",children:[(0,s.jsx)(o.hiv,{}),"View",(0,s.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,s.jsxs)(r.WVB,{children:[(0,s.jsx)(r.__J,{children:"Order by"}),(0,s.jsx)(r.kFS,{children:(0,s.jsx)(r.PhF,{value:a,onChange:e=>{c(e.currentTarget.value)},children:Object.entries(j()(x.Fo,"category")).map(e=>{let[n,t]=e;return(0,s.jsx)("optgroup",{label:n,children:t.map(e=>(0,s.jsx)(r.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,s.jsxs)(r.WVB,{children:[(0,s.jsx)(r.__J,{children:"Direction"}),(0,s.jsx)(r.kFS,{children:(0,s.jsxs)(r.PhF,{value:d,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,s.jsx)(r.Wxm,{value:"desc",children:"descending"},"desc"),(0,s.jsx)(r.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,s.jsx)(r.Clw,{}),(0,s.jsxs)(r.WVB,{children:[(0,s.jsx)(r.__J,{children:"Display properties"}),(0,s.jsx)(r.kFS,{children:(0,s.jsx)(r.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),t()},children:(0,s.jsx)(o.Wet,{})})})]}),(0,s.jsx)(r.FzK,{label:"General",columns:f.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:i}),(0,s.jsx)(r.WVB,{children:(0,s.jsx)(r.j4H,{options:f,values:h,onChange:e=>n(e)})})]})}function g(){let{openDialog:e}=(0,i.Rh)(),n=(0,u.useRouter)(),{wallet:t}=(0,d.r)(),l=n.query.id;return(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)(r.zxk,{variant:"accent",onClick:()=>{if((null==t?void 0:t.type)==="seed"){e("walletAddressesGenerate",{walletId:l});return}if((null==t?void 0:t.type)==="watch"){e("walletAddressesAdd",{walletId:l});return}if((null==t?void 0:t.type)==="ledger"){e("walletLedgerAddressGenerate",{walletId:l});return}},children:[(0,s.jsx)(o.aXP,{}),"Add addresses"]}),(0,s.jsx)(f,{})]})}function v(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(r.xvT,{children:(0,s.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No addresses matching filters."})]})}function p(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(r.xvT,{children:(0,s.jsx)(o.oaN,{className:"scale-[200%]"})}),(0,s.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The wallet has no addresses. Add some to get started."})]})}function w(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(r.xvT,{children:(0,s.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching addresses."})]})}function y(){let{datasetCount:e}=(0,m.Jz)();return(0,s.jsx)("div",{className:"flex gap-2 justify-end w-full",children:(0,s.jsx)(r.xvT,{size:"12",font:"mono",children:1===e?"1 address":"".concat(e.toLocaleString()," addresses")})})}function T(){let e=(0,u.useRouter)(),n=e.query.id,{openDialog:t}=(0,i.Rh)(),{wallet:o}=(0,d.r)(),{dataset:x,dataState:h,columns:j,sortableColumns:f,sortDirection:T,sortField:N,toggleSort:_}=(0,m.Jz)();return(0,s.jsx)(a.v,{routes:l._,sidenav:(0,s.jsx)(c._,{}),openSettings:()=>t("settings"),title:null==o?void 0:o.name,navTitle:(0,s.jsxs)("div",{className:"flex gap-2 relative -top-px",children:[(0,s.jsx)(r.rUS,{underline:"hover",font:"mono",size:"18",weight:"bold",href:{pathname:l._.wallet.view,query:{id:n}},children:(0,r.$Gg)(null==o?void 0:o.name,20)}),(0,s.jsx)(r.xvT,{font:"mono",size:"18",weight:"normal",color:"verySubtle",children:"/"}),(0,s.jsx)(r.xvT,{font:"mono",size:"18",weight:"bold",children:"Addresses"})]}),actions:(0,s.jsx)(g,{}),stats:(0,s.jsx)(y,{}),size:"3",children:(0,s.jsx)("div",{className:"px-6 py-7 min-w-fit",children:(0,s.jsx)(r.iA_,{isLoading:"loading"===h,emptyState:"noneMatchingFilters"===h?(0,s.jsx)(v,{}):"noneYet"===h?(0,s.jsx)(p,{}):"error"===h?(0,s.jsx)(w,{}):null,pageSize:6,data:x,columns:j,sortableColumns:f,sortDirection:T,sortField:N,toggleSort:_})})})}function N(){return(0,s.jsx)(T,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=14573)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[698],{14573:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallets/[id]/addresses",function(){return t(72950)}])},10676:function(e,n,t){"use strict";t.d(n,{v:function(){return u}});var s=t(52322),r=t(74766),l=t(71930),i=t(25573),a=t(41345),c=t(83753);function o(){var e;let{openDialog:n}=(0,c.Rh)(),t=(0,a.cQ)(),l=(0,i.n)(),o=(0,a.gM)();return(0,s.jsx)(r.HfT,{name:"walletd",peerCount:null===(e=t.data)||void 0===e?void 0:e.length,connectPeer:()=>n("connectPeer"),isSynced:l.isSynced,syncPercent:l.syncPercent,nodeBlockHeight:l.nodeBlockHeight,estimatedBlockHeight:l.estimatedBlockHeight,firstTimeSyncing:l.firstTimeSyncing,moreThan100BlocksToSync:l.moreThan100BlocksToSync,children:o.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(r.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)(r.xvT,{size:"14",children:o.data.name})]})})}function d(){let e=(0,a.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,s.jsx)(r.t6k,{testnetName:n})}function u(e){let{isSynced:n}=(0,i.n)();return(0,s.jsx)(r.tU3,{appName:"walletd",profile:(0,s.jsx)(o,{}),connectivityRoute:l.h,banner:(0,s.jsx)(d,{}),showWallet:!1,isSynced:n,...e})}},48427:function(e,n,t){"use strict";t.d(n,{_:function(){return a}});var s=t(52322),r=t(74766),l=t(20876),i=t(71930);function a(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(r.KJW,{title:"Dashboard",route:i._.home,children:(0,s.jsx)(l.K2o,{})})})}},25573:function(e,n,t){"use strict";t.d(n,{n:function(){return i}});var s=t(74766),r=t(2850),l=t(41345);function i(){var e;let{isUnlocked:n}=(0,r.Hv)(),t=(0,l.XC)({config:{swr:{refreshInterval:1e4}}}),s=(0,l.ek)({config:{swr:{refreshInterval:e=>a(e)?6e4:1e4}}}),i=(0,l.nH)(),c=t.data?null===(e=t.data)||void 0===e?void 0:e.height:0,o=n&&c&&i?Number((100*Math.min(c/i,1)).toFixed(1)):0;return{isSynced:a(s.data),nodeBlockHeight:c,estimatedBlockHeight:i,syncPercent:o,moreThan100BlocksToSync:!!c&&!!i&&i-c>100,firstTimeSyncing:!!c&&!!i&&i-c>5e4}}function a(e){return!!e&&function(e){if(!e||!e.length)return!1;let n=e[0],t=Date.now()-(0,s.ytg)(2);return new Date(n).getTime()>t}(e.prevTimestamps)}},72950:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return N}});var s=t(52322),r=t(74766),l=t(71930),i=t(83753),a=t(10676),c=t(48427),o=t(20876),d=t(6110),u=t(5632),x=t(81612),h=t(3440),j=t.n(h),m=t(45283);function f(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:t,setColumnsVisible:l,setColumnsHidden:i,sortField:a,setSortField:c,sortDirection:d,setSortDirection:u,enabledColumns:h}=(0,m.Jz)(),f=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,s.jsxs)(r.J2e,{trigger:(0,s.jsxs)(r.zxk,{size:"small",tip:"Configure view",tipAlign:"end",tipSide:"bottom",children:[(0,s.jsx)(o.hiv,{}),"View",(0,s.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,s.jsxs)(r.WVB,{children:[(0,s.jsx)(r.__J,{children:"Order by"}),(0,s.jsx)(r.kFS,{children:(0,s.jsx)(r.PhF,{value:a,onChange:e=>{c(e.currentTarget.value)},children:Object.entries(j()(x.Fo,"category")).map(e=>{let[n,t]=e;return(0,s.jsx)("optgroup",{label:n,children:t.map(e=>(0,s.jsx)(r.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,s.jsxs)(r.WVB,{children:[(0,s.jsx)(r.__J,{children:"Direction"}),(0,s.jsx)(r.kFS,{children:(0,s.jsxs)(r.PhF,{value:d,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,s.jsx)(r.Wxm,{value:"desc",children:"descending"},"desc"),(0,s.jsx)(r.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,s.jsx)(r.Clw,{}),(0,s.jsxs)(r.WVB,{children:[(0,s.jsx)(r.__J,{children:"Display properties"}),(0,s.jsx)(r.kFS,{children:(0,s.jsx)(r.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),t()},children:(0,s.jsx)(o.Wet,{})})})]}),(0,s.jsx)(r.FzK,{label:"General",columns:f.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:i}),(0,s.jsx)(r.WVB,{children:(0,s.jsx)(r.j4H,{options:f,values:h,onChange:e=>n(e)})})]})}function g(){let{openDialog:e}=(0,i.Rh)(),n=(0,u.useRouter)(),{wallet:t}=(0,d.r)(),l=n.query.id;return(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)(r.zxk,{variant:"accent",onClick:()=>{if((null==t?void 0:t.type)==="seed"){e("walletAddressesGenerate",{walletId:l});return}if((null==t?void 0:t.type)==="watch"){e("walletAddressesAdd",{walletId:l});return}if((null==t?void 0:t.type)==="ledger"){e("walletLedgerAddressGenerate",{walletId:l});return}},children:[(0,s.jsx)(o.aXP,{}),"Add addresses"]}),(0,s.jsx)(f,{})]})}function v(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(r.xvT,{children:(0,s.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No addresses matching filters."})]})}function p(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(r.xvT,{children:(0,s.jsx)(o.oaN,{className:"scale-[200%]"})}),(0,s.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The wallet has no addresses. Add some to get started."})]})}function w(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(r.xvT,{children:(0,s.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching addresses."})]})}function y(){let{datasetCount:e}=(0,m.Jz)();return(0,s.jsx)("div",{className:"flex gap-2 justify-end w-full",children:(0,s.jsx)(r.xvT,{size:"12",font:"mono",children:1===e?"1 address":"".concat(e.toLocaleString()," addresses")})})}function T(){let e=(0,u.useRouter)(),n=e.query.id,{openDialog:t}=(0,i.Rh)(),{wallet:o}=(0,d.r)(),{dataset:x,dataState:h,columns:j,sortableColumns:f,sortDirection:T,sortField:N,toggleSort:_}=(0,m.Jz)();return(0,s.jsx)(a.v,{routes:l._,sidenav:(0,s.jsx)(c._,{}),openSettings:()=>t("settings"),title:null==o?void 0:o.name,navTitle:(0,s.jsxs)("div",{className:"flex gap-2 relative -top-px",children:[(0,s.jsx)(r.rUS,{underline:"hover",font:"mono",size:"18",weight:"bold",href:{pathname:l._.wallet.view,query:{id:n}},children:(0,r.$Gg)(null==o?void 0:o.name,20)}),(0,s.jsx)(r.xvT,{font:"mono",size:"18",weight:"normal",color:"verySubtle",children:"/"}),(0,s.jsx)(r.xvT,{font:"mono",size:"18",weight:"bold",children:"Addresses"})]}),actions:(0,s.jsx)(g,{}),stats:(0,s.jsx)(y,{}),size:"3",children:(0,s.jsx)("div",{className:"px-6 py-7 min-w-fit",children:(0,s.jsx)(r.iA_,{isLoading:"loading"===h,emptyState:"noneMatchingFilters"===h?(0,s.jsx)(v,{}):"noneYet"===h?(0,s.jsx)(p,{}):"error"===h?(0,s.jsx)(w,{}):null,pageSize:6,data:x,columns:j,sortableColumns:f,sortDirection:T,sortField:N,toggleSort:_})})})}function N(){return(0,s.jsx)(T,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=14573)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/walletd/assets/_next/static/css/29fbd72052ed32b9.css b/walletd/assets/_next/static/css/29fbd72052ed32b9.css deleted file mode 100644 index 6c43601d5..000000000 --- a/walletd/assets/_next/static/css/29fbd72052ed32b9.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}.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}.-top-0{top:0}.-top-0\.5{top:-.125rem}.-top-\[100px\]{top:-100px}.-top-\[5px\]{top:-5px}.-top-px{top:-1px}.bottom-0{bottom:0}.bottom-\[100\%\]{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\.5{left:.375rem}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.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-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}.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-4{margin-bottom:1rem}.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-8{margin-top:2rem}.mt-\[100px\]{margin-top:100px}.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-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-\[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-\[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-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[160px\]{width:160px}.w-\[200px\]{width:200px}.w-\[200vw\]{width:200vw}.w-\[210px\]{width:210px}.w-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[300px\]{width:300px}.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-\[250px\]{min-width:250px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.\!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-\[800px\]{max-width:800px}.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,.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-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}.whitespace-pre-wrap{white-space:pre-wrap}.\!rounded-none{border-radius:0!important}.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-400{--tw-border-opacity:1;border-color:rgb(251 191 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-400{--tw-border-opacity:1;border-color:rgb(74 222 128/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-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/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-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{--tw-bg-opacity:1;background-color:rgb(74 222 128/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-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-0{padding:0}.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;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}.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-7{padding-top:1.75rem;padding-bottom:1.75rem}.py-px{padding-top:1px;padding-bottom:1px}.\!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-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.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-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.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-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)}.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-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-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\:brightness-0{--tw-brightness:brightness(0)}.dark .dark\:brightness-0,.dark .dark\:invert{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 .dark\:invert{--tw-invert:invert(100%)}.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 .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\]\:flex-1>div{flex:1 1 0%}.\[\&\>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:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1eff7769948a8c71-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7a86083759ce0787-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1fece7a471d60ffe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/94e828afa3939314-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/dcb90225ac4215b0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/21379288e5de0162-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/20a0263cfae743ff-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/a06cddabfd904d07-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/c05280b20c19cff6-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ab3a7057d2c303a3-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e7a1d48695380088-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/7a514966b24fa042-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/f34054e2970d3793-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/ee809f9c8637ac35-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/416dffb3eaba61b5-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/b2613c7882fb9dad-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/00b652cd5acf4d1a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/318cd1ba86719051-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/26570e7eecd756a7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/6ad357e49f846140-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c1dadd6c99c0900a-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/9fb8e434756a520e-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/b83e9714dba3a7b2-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/7729f7b3bc7fa987-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/69dc0d8a22bc572a-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/d752111844abddfa-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/7fe39de114f984a0-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/6c817bbad1cfd130-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/bc7cd6cbdb8771c6-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/1b708ab38c59f94d-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/ed08f0e693ce6a65-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/0be44b380099e057-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f4ebea4f2ece3dbe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f7e3cefe6d9fda21-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/26d0ad28b444f0fb-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/d704a8fea67672dc-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/3ce4c920cddd7002-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1027f57de01c0b24-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/23313877d5d6ff1b-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/00417edf5e44282b-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/228a95c965c5f90b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/97c8a55b2cb1421c-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/86d6d32ab6c2e21d-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/07304b90e9b5ca40-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/54f3953b28e50f98-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a40ccebe730e6b34-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/01ec6e01ff4830ae-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/34d8d58b783ee6bb-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/3763ada0a9bb1988-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/787b0654beea4191-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/2c3c1f0838a71cfb-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/47bcda1e7b1ac8be-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/bed76354f405346d-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c70aa70a01eaecff-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/24cfcc12c15b03b9-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/29ffcd3df3f1cb91-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/3cef106cd115e360-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/a0c95037dd5c9387-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/e889cd181219a83f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/6d6d0e4a023f9f33-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/0148c4ca3456ea72-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/4184cf5f191b83db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/28cea0425961ab58-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b4c759cba7a5f011-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/de555e6bc944c11a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/791334aa8b2b679f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/a2411df190893074-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/60d74363e715829c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/eb37c9fe4776ea97-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc381c5935034aa5-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f565fad065ab4cf3-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f9946f06d70a1b5b-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/d1f5f89450ecd78c-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ebcf93a611f94ec0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ec50b434b597bc61-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/6be22a85bef54f08-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/9491f41002d34397-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/afba6ba6bf9157e8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/be843c5b0882ad66-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/67aea609c6135b3b-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/09b62d668edb05d1-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/10446295ae7f2657-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b6ecfd81ed9f83c9-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/08404bcfb1dae67a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_Fallback_829fdc;src:local("Arial");ascent-override:101.44%;descent-override:27.22%;line-gap-override:0.00%;size-adjust:101.04%}.__className_829fdc{font-family:__IBM_Plex_Sans_829fdc,__IBM_Plex_Sans_Fallback_829fdc}.__variable_829fdc{--font-sans:"__IBM_Plex_Sans_829fdc","__IBM_Plex_Sans_Fallback_829fdc"}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/43f58290d48b3e4f-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/f7b042c81aa9dac9-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/5f52e8aafa6d55e1-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7c8d3f8a7910b37f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/c91ca22957702d7a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e31631a967fe3515-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e46a860e09e79916-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/2d1700372dfaaa94-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/27834a3ea5568a72-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ba1ff977fd46651f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/aa5329918e5352b7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/3546445dbedfe8e0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/a329a67c917d0d83-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/32ef35af86a1df18-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/42c2d543c4ca0ff8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/4acd96e66b7a15d8-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c00fdcaa534cf51c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9b64de7575b01f6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/e05a5a1d4048d7df-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9387c470a117487-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5b5f10d1030076fd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/66b34bbb56a523d8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/62e8d71f5f62d0a9-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/4f5bd398699bdcf0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5873ad5359ff35c9-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/a08baca5e17c57be-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b8347de82b1bd9a8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/99163ae90df46b27-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b9432a067aca8720-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/c3f479ae50d16e35-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/d4eddeab410cd094-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1674d377433d7de6-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/f65f080f6ad9aa76-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/7a44530bd17b4a4c-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/37e85b36581a02ab-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/1e0eb4a7325b5d14-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/136ae42764b7e0db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/b17f4305e2f0c22a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a7f64a09f7737545-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/98bcafdc59ee6d65-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/ce562f20499ad585-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/57699fff66d5761c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/e490b1ecb6589d48-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/524be5e37a616f9b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c690761783507ad4-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/5a7dbca54c2fc4dd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/d4e99c199dab3055-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/9ae1ac821a4debaf-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/ec1b1cbc512bc43e-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/463cef7d4672ba68-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/ebec2867f40f78ec-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/d607327a37a507c7-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/2e1b830192b7974a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3aa27b2eb5f698f7-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3478b6abef19b3b3-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b6f2eee8808a2bb4-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc2003170c651d45-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/d43ef4503e5571d0-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/3281a323710833ec-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/684e5662d94c69e1-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/97b12f7b815cdf76-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/19fc70611c7ee6d5-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/01721b474504e7d6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/3ccf24bed29cbb82-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/be2416cbb012c256-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/7524e759b2d52ce2-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/83feb047e42e457a-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/40bfb1458eaec497-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/8ea51a27e153ec43-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/035951aefad7b653-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_Fallback_355ef5;src:local("Arial");ascent-override:75.41%;descent-override:20.23%;line-gap-override:0.00%;size-adjust:135.93%}.__className_355ef5{font-family:__IBM_Plex_Mono_355ef5,__IBM_Plex_Mono_Fallback_355ef5}.__variable_355ef5{--font-mono:"__IBM_Plex_Mono_355ef5","__IBM_Plex_Mono_Fallback_355ef5"} \ No newline at end of file diff --git a/walletd/assets/_next/static/css/d78d0c6a2972eba7.css b/walletd/assets/_next/static/css/d78d0c6a2972eba7.css new file mode 100644 index 000000000..a2b2c839d --- /dev/null +++ b/walletd/assets/_next/static/css/d78d0c6a2972eba7.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}.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}.-top-0{top:0}.-top-0\.5{top:-.125rem}.-top-\[100px\]{top:-100px}.-top-\[5px\]{top:-5px}.-top-px{top:-1px}.bottom-0{bottom:0}.bottom-\[100\%\]{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\.5{left:.375rem}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.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-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}.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-4{margin-bottom:1rem}.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-8{margin-top:2rem}.mt-\[100px\]{margin-top:100px}.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-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-\[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-\[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-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[300px\]{width:300px}.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-\[250px\]{min-width:250px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.\!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-\[800px\]{max-width:800px}.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,.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-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}.whitespace-pre-wrap{white-space:pre-wrap}.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-400{--tw-border-opacity:1;border-color:rgb(251 191 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-400{--tw-border-opacity:1;border-color:rgb(74 222 128/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-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/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-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{--tw-bg-opacity:1;background-color:rgb(74 222 128/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-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-0{padding:0}.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;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}.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-7{padding-top:1.75rem;padding-bottom:1.75rem}.py-px{padding-top:1px;padding-bottom:1px}.\!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-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.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-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.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-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)}.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-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-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 .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\]\:flex-1>div{flex:1 1 0%}.\[\&\>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:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1eff7769948a8c71-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7a86083759ce0787-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1fece7a471d60ffe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/94e828afa3939314-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/dcb90225ac4215b0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/21379288e5de0162-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/20a0263cfae743ff-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/a06cddabfd904d07-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/c05280b20c19cff6-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ab3a7057d2c303a3-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e7a1d48695380088-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/7a514966b24fa042-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/f34054e2970d3793-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/ee809f9c8637ac35-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/416dffb3eaba61b5-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/b2613c7882fb9dad-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/00b652cd5acf4d1a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/318cd1ba86719051-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/26570e7eecd756a7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/6ad357e49f846140-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c1dadd6c99c0900a-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/9fb8e434756a520e-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/b83e9714dba3a7b2-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/7729f7b3bc7fa987-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/69dc0d8a22bc572a-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/d752111844abddfa-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/7fe39de114f984a0-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/6c817bbad1cfd130-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/bc7cd6cbdb8771c6-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/1b708ab38c59f94d-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/ed08f0e693ce6a65-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/0be44b380099e057-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f4ebea4f2ece3dbe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f7e3cefe6d9fda21-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/26d0ad28b444f0fb-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/d704a8fea67672dc-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/3ce4c920cddd7002-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1027f57de01c0b24-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/23313877d5d6ff1b-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/00417edf5e44282b-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/228a95c965c5f90b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/97c8a55b2cb1421c-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/86d6d32ab6c2e21d-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/07304b90e9b5ca40-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/54f3953b28e50f98-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a40ccebe730e6b34-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/01ec6e01ff4830ae-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/34d8d58b783ee6bb-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/3763ada0a9bb1988-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/787b0654beea4191-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/2c3c1f0838a71cfb-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/47bcda1e7b1ac8be-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/bed76354f405346d-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c70aa70a01eaecff-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/24cfcc12c15b03b9-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/29ffcd3df3f1cb91-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/3cef106cd115e360-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/a0c95037dd5c9387-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/e889cd181219a83f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/6d6d0e4a023f9f33-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/0148c4ca3456ea72-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/4184cf5f191b83db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/28cea0425961ab58-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b4c759cba7a5f011-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/de555e6bc944c11a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/791334aa8b2b679f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/a2411df190893074-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/60d74363e715829c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/eb37c9fe4776ea97-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc381c5935034aa5-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f565fad065ab4cf3-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f9946f06d70a1b5b-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/d1f5f89450ecd78c-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ebcf93a611f94ec0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ec50b434b597bc61-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/6be22a85bef54f08-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/9491f41002d34397-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/afba6ba6bf9157e8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/be843c5b0882ad66-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/67aea609c6135b3b-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/09b62d668edb05d1-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/10446295ae7f2657-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b6ecfd81ed9f83c9-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/08404bcfb1dae67a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_Fallback_829fdc;src:local("Arial");ascent-override:101.44%;descent-override:27.22%;line-gap-override:0.00%;size-adjust:101.04%}.__className_829fdc{font-family:__IBM_Plex_Sans_829fdc,__IBM_Plex_Sans_Fallback_829fdc}.__variable_829fdc{--font-sans:"__IBM_Plex_Sans_829fdc","__IBM_Plex_Sans_Fallback_829fdc"}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/43f58290d48b3e4f-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/f7b042c81aa9dac9-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/5f52e8aafa6d55e1-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7c8d3f8a7910b37f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/c91ca22957702d7a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e31631a967fe3515-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e46a860e09e79916-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/2d1700372dfaaa94-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/27834a3ea5568a72-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ba1ff977fd46651f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/aa5329918e5352b7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/3546445dbedfe8e0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/a329a67c917d0d83-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/32ef35af86a1df18-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/42c2d543c4ca0ff8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/4acd96e66b7a15d8-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c00fdcaa534cf51c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9b64de7575b01f6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/e05a5a1d4048d7df-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9387c470a117487-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5b5f10d1030076fd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/66b34bbb56a523d8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/62e8d71f5f62d0a9-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/4f5bd398699bdcf0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5873ad5359ff35c9-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/a08baca5e17c57be-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b8347de82b1bd9a8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/99163ae90df46b27-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b9432a067aca8720-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/c3f479ae50d16e35-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/d4eddeab410cd094-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1674d377433d7de6-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/f65f080f6ad9aa76-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/7a44530bd17b4a4c-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/37e85b36581a02ab-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/1e0eb4a7325b5d14-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/136ae42764b7e0db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/b17f4305e2f0c22a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a7f64a09f7737545-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/98bcafdc59ee6d65-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/ce562f20499ad585-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/57699fff66d5761c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/e490b1ecb6589d48-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/524be5e37a616f9b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c690761783507ad4-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/5a7dbca54c2fc4dd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/d4e99c199dab3055-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/9ae1ac821a4debaf-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/ec1b1cbc512bc43e-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/463cef7d4672ba68-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/ebec2867f40f78ec-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/d607327a37a507c7-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/2e1b830192b7974a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3aa27b2eb5f698f7-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3478b6abef19b3b3-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b6f2eee8808a2bb4-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc2003170c651d45-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/d43ef4503e5571d0-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/3281a323710833ec-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/684e5662d94c69e1-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/97b12f7b815cdf76-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/19fc70611c7ee6d5-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/01721b474504e7d6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/3ccf24bed29cbb82-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/be2416cbb012c256-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/7524e759b2d52ce2-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/83feb047e42e457a-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/40bfb1458eaec497-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/8ea51a27e153ec43-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/035951aefad7b653-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_Fallback_355ef5;src:local("Arial");ascent-override:75.41%;descent-override:20.23%;line-gap-override:0.00%;size-adjust:135.93%}.__className_355ef5{font-family:__IBM_Plex_Mono_355ef5,__IBM_Plex_Mono_Fallback_355ef5}.__variable_355ef5{--font-mono:"__IBM_Plex_Mono_355ef5","__IBM_Plex_Mono_Fallback_355ef5"} \ No newline at end of file diff --git a/walletd/assets/_next/static/media/wordmark.0504c8a6.svg b/walletd/assets/_next/static/media/wordmark.0504c8a6.svg deleted file mode 100644 index 83f34935b..000000000 --- a/walletd/assets/_next/static/media/wordmark.0504c8a6.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/walletd/assets/index.html b/walletd/assets/index.html index d966b219c..7ec37c429 100644 --- a/walletd/assets/index.html +++ b/walletd/assets/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/login.html b/walletd/assets/login.html index d91f9bb42..488ccf027 100644 --- a/walletd/assets/login.html +++ b/walletd/assets/login.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/node.html b/walletd/assets/node.html index cb05651ce..798039e93 100644 --- a/walletd/assets/node.html +++ b/walletd/assets/node.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/wallets/[id].html b/walletd/assets/wallets/[id].html index e077bf646..664dcafc8 100644 --- a/walletd/assets/wallets/[id].html +++ b/walletd/assets/wallets/[id].html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/wallets/[id]/addresses.html b/walletd/assets/wallets/[id]/addresses.html index 576090552..e93e6110a 100644 --- a/walletd/assets/wallets/[id]/addresses.html +++ b/walletd/assets/wallets/[id]/addresses.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file