1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{5193:function(e,t,r){"use strict";r.d(t,{hE:function(){return g},hU:function(){return j},zx:function(){return k}});var n=r(7375),o=r(1604),i=r(9703),a=r(8554),s=r.n(a),c=r(7294),u=r(6450),l=r(9609);function d(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}var p=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],h=(0,u.kr)({strict:!1,name:"ButtonGroupContext"}),m=h[0],v=h[1],g=(0,o.Gp)((function(e,t){var r=e.size,n=e.colorScheme,a=e.variant,s=e.className,u=e.spacing,l=void 0===u?"0.5rem":u,h=e.isAttached,v=e.isDisabled,g=d(e,p),y=(0,i.cx)("chakra-button__group",s),b=c.useMemo((function(){return{size:r,colorScheme:n,variant:a,isDisabled:v}}),[r,n,a,v]),x={display:"inline-flex"};return x=f({},x,h?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:l}}),c.createElement(m,{value:b},c.createElement(o.m$.div,f({ref:t,role:"group",__css:x,className:y,"data-attached":h?"":void 0},g)))}));i.Ts&&(g.displayName="ButtonGroup");var y=["label","placement","spacing","children","className","__css"],b=function(e){var t=e.label,r=e.placement,n=e.spacing,a=void 0===n?"0.5rem":n,s=e.children,u=void 0===s?c.createElement(l.$,{color:"currentColor",width:"1em",height:"1em"}):s,p=e.className,h=e.__css,m=d(e,y),v=(0,i.cx)("chakra-button__spinner",p),g="start"===r?"marginEnd":"marginStart",b=c.useMemo((function(){var e;return f(((e={display:"flex",alignItems:"center",position:t?"relative":"absolute"})[g]=t?a:0,e.fontSize="1em",e.lineHeight="normal",e),h)}),[h,t,g,a]);return c.createElement(o.m$.div,f({className:v},m,{__css:b}),u)};i.Ts&&(b.displayName="ButtonSpinner");var x=["children","className"],w=function(e){var t=e.children,r=e.className,n=d(e,x),a=c.isValidElement(t)?c.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,s=(0,i.cx)("chakra-button__icon",r);return c.createElement(o.m$.span,f({display:"inline-flex",alignSelf:"center",flexShrink:0},n,{className:s}),a)};i.Ts&&(w.displayName="ButtonIcon");var C=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],k=(0,o.Gp)((function(e,t){var r=v(),a=(0,o.mq)("Button",f({},r,e)),u=(0,o.Lr)(e),l=u.isDisabled,p=void 0===l?null==r?void 0:r.isDisabled:l,h=u.isLoading,m=u.isActive,g=u.children,y=u.leftIcon,x=u.rightIcon,w=u.loadingText,k=u.iconSpacing,O=void 0===k?"0.5rem":k,j=u.type,E=u.spinner,P=u.spinnerPlacement,_=void 0===P?"start":P,T=u.className,A=u.as,R=d(u,C),D=c.useMemo((function(){var e,t=s()({},null!=(e=null==a?void 0:a._focus)?e:{},{zIndex:1});return f({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},a,!!r&&{_focus:t})}),[a,r]),M=function(e){var t=c.useState(!e),r=t[0],n=t[1];return{ref:c.useCallback((function(e){e&&n("BUTTON"===e.tagName)}),[]),type:r?"button":void 0}}(A),I=M.ref,F=M.type,N={rightIcon:x,leftIcon:y,iconSpacing:O,children:g};return c.createElement(o.m$.button,f({disabled:p||h,ref:(0,n.qq)(t,I),as:A,type:null!=j?j:F,"data-active":(0,i.PB)(m),"data-loading":(0,i.PB)(h),__css:D,className:(0,i.cx)("chakra-button",T)},R),h&&"start"===_&&c.createElement(b,{className:"chakra-button__spinner--start",label:w,placement:"start",spacing:O},E),h?w||c.createElement(o.m$.span,{opacity:0},c.createElement(S,N)):c.createElement(S,N),h&&"end"===_&&c.createElement(b,{className:"chakra-button__spinner--end",label:w,placement:"end",spacing:O},E))}));function S(e){var t=e.leftIcon,r=e.rightIcon,n=e.children,o=e.iconSpacing;return c.createElement(c.Fragment,null,t&&c.createElement(w,{marginEnd:o},t),n,r&&c.createElement(w,{marginStart:o},r))}i.Ts&&(k.displayName="Button");var O=["icon","children","isRound","aria-label"],j=(0,o.Gp)((function(e,t){var r=e.icon,n=e.children,o=e.isRound,i=e["aria-label"],a=d(e,O),s=r||n,u=c.isValidElement(s)?c.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return c.createElement(k,f({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i},a),u)}));i.Ts&&(j.displayName="IconButton")},7096:function(e,t,r){"use strict";r.d(t,{h:function(){return u}});var n=r(9703),o=r(6450),i=r(7294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}var s=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function c(e){var t=e.target,r=t.tagName,n=t.isContentEditable;return"INPUT"!==r&&"TEXTAREA"!==r&&!0!==n}function u(e){void 0===e&&(e={});var t=e,r=t.ref,u=t.isDisabled,l=t.isFocusable,d=t.clickOnEnter,f=void 0===d||d,p=t.clickOnSpace,h=void 0===p||p,m=t.onMouseDown,v=t.onMouseUp,g=t.onClick,y=t.onKeyDown,b=t.onKeyUp,x=t.tabIndex,w=t.onMouseOver,C=t.onMouseLeave,k=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,s),S=i.useState(!0),O=S[0],j=S[1],E=i.useState(!1),P=E[0],_=E[1],T=function(){var e=i.useRef(new Map),t=e.current,r=i.useCallback((function(t,r,n,o){e.current.set(n,{type:r,el:t,options:o}),t.addEventListener(r,n,o)}),[]),n=i.useCallback((function(t,r,n,o){t.removeEventListener(r,n,o),e.current.delete(n)}),[]);return i.useEffect((function(){return function(){t.forEach((function(e,t){n(e.el,e.type,t,e.options)}))}}),[n,t]),{add:r,remove:n}}(),A=O?x:x||0,R=u&&!l,D=i.useCallback((function(e){if(u)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==g||g(e)}),[u,g]),M=i.useCallback((function(e){P&&c(e)&&(e.preventDefault(),e.stopPropagation(),_(!1),T.remove(document,"keyup",M,!1))}),[P,T]),I=i.useCallback((function(e){if(null==y||y(e),!(u||e.defaultPrevented||e.metaKey)&&c(e.nativeEvent)&&!O){var t=f&&"Enter"===e.key;if(h&&" "===e.key&&(e.preventDefault(),_(!0)),t)e.preventDefault(),e.currentTarget.click();T.add(document,"keyup",M,!1)}}),[u,O,y,f,h,T,M]),F=i.useCallback((function(e){(null==b||b(e),u||e.defaultPrevented||e.metaKey)||c(e.nativeEvent)&&!O&&h&&" "===e.key&&(e.preventDefault(),_(!1),e.currentTarget.click())}),[h,O,u,b]),N=i.useCallback((function(e){0===e.button&&(_(!1),T.remove(document,"mouseup",N,!1))}),[T]),L=i.useCallback((function(e){if(!(0,n.n_)(e)){if(u)return e.stopPropagation(),void e.preventDefault();O||_(!0),e.currentTarget.focus({preventScroll:!0}),T.add(document,"mouseup",N,!1),null==m||m(e)}}),[u,O,m,T,N]),B=i.useCallback((function(e){(0,n.n_)(e)||(O||_(!1),null==v||v(e))}),[v,O]),z=i.useCallback((function(e){u?e.preventDefault():null==w||w(e)}),[u,w]),V=i.useCallback((function(e){P&&(e.preventDefault(),_(!1)),null==C||C(e)}),[P,C]),U=(0,o.lq)(r,(function(e){e&&"BUTTON"!==e.tagName&&j(!1)}));return a({},k,O?{ref:U,type:"button","aria-disabled":R?void 0:u,disabled:R,onClick:D,onMouseDown:m,onMouseUp:v,onKeyUp:b,onKeyDown:y,onMouseOver:w,onMouseLeave:C}:{ref:U,role:"button","data-active":(0,n.PB)(P),"aria-disabled":u?"true":void 0,tabIndex:R?void 0:A,onClick:D,onMouseDown:L,onMouseUp:B,onKeyUp:F,onKeyDown:I,onMouseOver:z,onMouseLeave:V})}},4746:function(e,t,r){"use strict";r.d(t,{P:function(){return l}});var n=r(894),o=r(1604),i=r(9703),a=r(7294);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}var c=["children","isDisabled","__css"],u=function(e){return a.createElement(n.JO,s({focusable:"false","aria-hidden":!0},e),a.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,
111.823a.25.25,0,0,1,0,.354Z"}))},l=(0,o.Gp)((function(e,t){var r=(0,o.mq)("CloseButton",e),n=(0,o.Lr)(e),i=n.children,l=n.isDisabled,d=n.__css,f=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(n,c);return a.createElement(o.m$.button,s({type:"button","aria-label":"Close",ref:t,disabled:l,__css:s({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},r,d)},f),i||a.createElement(u,{width:"1em",height:"1em"}))}));i.Ts&&(l.displayName="CloseButton")},949:function(e,t,r){"use strict";r.d(t,{If:function(){return h},SG:function(){return v},kc:function(){return p}});var n=r(4697),o=r(9703),i=r(7294);var a="chakra-ui-light",s="chakra-ui-dark";var c="chakra-ui-color-mode";var u,l=(u=c,{ssr:!1,type:"localStorage",get:function(e){if(!o.jU)return e;var t;try{t=localStorage.getItem(u)||e}catch(r){}return t||e},set:function(e){try{localStorage.setItem(u,e)}catch(t){}}});function d(e,t){var r=e.match(new RegExp("(^| )"+t+"=([^;]+)"));return null==r?void 0:r[2]}function f(e,t){return{ssr:!!t,type:"cookie",get:function(r){return t?d(t,e):o.jU&&d(document.cookie,e)||r},set:function(t){document.cookie=e+"="+t+"; max-age=31536000; path=/"}}}f(c);var p=i.createContext({});function h(){var e=i.useContext(p);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function m(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function v(e){var t=e.value,r=e.children,c=e.options,u=(c=void 0===c?{}:c).useSystemColorMode,d=c.initialColorMode,f=c.disableTransitionOnChange,h=e.colorModeManager,v=void 0===h?l:h,g="dark"===d?"dark":"light",y=i.useState((function(){return m(v,g)})),b=y[0],x=y[1],w=i.useState((function(){return m(v)})),C=w[0],k=w[1],S=i.useMemo((function(){return function(e){void 0===e&&(e={});var t=e.preventTransition,r=void 0===t||t,n={setDataset:function(e){var t=r?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==t||t()},setClassName:function(e){document.body.classList.add(e?s:a),document.body.classList.remove(e?a:s)},query:function(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme:function(e){var t;return(null!=(t=n.query().matches)?t:"dark"===e)?"dark":"light"},addListener:function(e){var t=n.query(),r=function(t){e(t.matches?"dark":"light")};return(0,o.mf)(t.addListener)?t.addListener(r):t.addEventListener("change",r),function(){(0,o.mf)(t.removeListener)?t.removeListener(r):t.removeEventListener("change",r)}},preventTransition:function(){var 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),function(){window.getComputedStyle(document.body),requestAnimationFrame((function(){requestAnimationFrame((function(){document.head.removeChild(e)}))}))}}};return n}({preventTransition:f})}),[f]),O=S.getSystemTheme,j=S.setClassName,E=S.setDataset,P=S.addListener,_="system"!==d||b?b:C,T=i.useCallback((function(e){var t="system"===e?O():e;x(t),j("dark"===t),E(t),v.set(t)}),[v,O,j,E]);(0,n.a)((function(){"system"===d&&k(O())}),[]),i.useEffect((function(){var e=v.get();T(e||("system"!==d?g:"system"))}),[v,g,d,T]);var A=i.useCallback((function(){T("dark"===_?"light":"dark")}),[_,T]);i.useEffect((function(){if(u)return P(T)}),[u,P,T]);var R=i.useMemo((function(){return{colorMode:null!=t?t:_,toggleColorMode:t?o.ZT:A,setColorMode:t?o.ZT:T}}),[_,A,T,t]);return i.createElement(p.Provider,{value:R},r)}o.Ts&&(p.displayName="ColorModeContext"),o.Ts&&(v.displayName="ColorModeProvider");o.Ts;o.Ts;new Set(["dark","light","system"])},242:function(e,t,r){"use strict";r.d(t,{n:function(){return h}});var n=r(6450),o=r(7294);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}function a(e){return e.sort((function(e,t){var r=e.compareDocumentPosition(t);
1if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function s(e,t,r){var n=e+1;return r&&n>=t&&(n=0),n}function c(e,t,r){var n=e-1;return r&&n<0&&(n=t),n}var u="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,l=function(){var e=this;this.descendants=new Map,this.register=function(t){var r;if(null!=t)return"object"==typeof(r=t)&&"nodeType"in r&&r.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(r){e.registerNode(r,t)}},this.unregister=function(t){e.descendants.delete(t);var r=a(Array.from(e.descendants.keys()));e.assignIndex(r)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(t){e.descendants.forEach((function(e){var r=t.indexOf(e.node);e.index=r,e.node.dataset.index=e.index.toString()}))},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort((function(e,t){return e.index-t.index}))},this.enabledValues=function(){return e.values().filter((function(e){return!e.disabled}))},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var r,n;return t&&null!=(r=null==(n=e.descendants.get(t))?void 0:n.index)?r:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex((function(e){return e.node.isSameNode(t)}))},this.next=function(t,r){void 0===r&&(r=!0);var n=s(t,e.count(),r);return e.item(n)},this.nextEnabled=function(t,r){void 0===r&&(r=!0);var n=e.item(t);if(n){var o=s(e.enabledIndexOf(n.node),e.enabledCount(),r);return e.enabledItem(o)}},this.prev=function(t,r){void 0===r&&(r=!0);var n=c(t,e.count()-1,r);return e.item(n)},this.prevEnabled=function(t,r){void 0===r&&(r=!0);var n=e.item(t);if(n){var o=c(e.enabledIndexOf(n.node),e.enabledCount()-1,r);return e.enabledItem(o)}},this.registerNode=function(t,r){if(t&&!e.descendants.has(t)){var n=a(Array.from(e.descendants.keys()).concat(t));null!=r&&r.disabled&&(r.disabled=!!r.disabled);var o=i({node:t,index:-1},r);e.descendants.set(t,o),e.assignIndex(n)}}};var d=(0,n.kr)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),f=d[0],p=d[1];function h(){return[f,function(){return p()},function(){return function(){var e=(0,o.useRef)(new l);return u((function(){return function(){return e.current.destroy()}})),e.current}()},function(e){return function(e){var t=p(),r=(0,o.useState)(-1),i=r[0],a=r[1],s=(0,o.useRef)(null);u((function(){return function(){s.current&&t.unregister(s.current)}}),[]),u((function(){if(s.current){var e=Number(s.current.dataset.index);i==e||Number.isNaN(e)||a(e)}}));var c=e?t.register(e):t.register;return{descendants:t,index:i,enabledIndex:t.enabledIndexOf(s.current),register:(0,n.lq)(c,s)}}(e)}]}},9762:function(e,t,r){"use strict";r.d(t,{Kn:function(){return O},Yp:function(){return S}});var n=r(7375),o=r(1604),i=r(9703),a=r(6450),s=r(7294),c=r(894);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var d=["id","isRequired","isInvalid","isDisabled","isReadOnly"],f=["getRootProps","htmlProps"],p=(0,o.eC)("FormControl"),h=p[0],m=p[1],v=m,g=(0,a.kr)({strict:!1,name:"FormControlContext"}),y=g[0],b=g[1];var x=(0,o.Gp)((function(e,t){var r=(0,o.jC)("Form",e),c=function(e){var t=e.id,r=e.isRequired,o=e.isInvalid,c=e.isDisabled,f=e.isReadOnly,p=l(e,d),h=(0,n.Me)(),m=t||"field-"+h,v=m+"-label",g=m+"-feedback",y=m+"-helptext",b=s.useState(!1),x=b[0],w=b[1],C=s.useState(!1),k=C[0],S=C[1],O=(0,n.kt)(),j=O[0],E=O[1],P=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),u({id:y},e,{ref:(0,a.lq)(t,(function(e){e&&S(!0)}))})}),[y]),_=s.useCallback((function(e,t){var r,n;return void 0===e&&(e={}),void 0===t&&(t=null),u({},e,{ref:t,"data-focus":(0,i.PB)(j),"data-disabled":(0,i.PB)(c),"data-invalid":(0,i.PB)(o),"data-readonly":(0,i.PB)(f),id:null!=(r=e.id)?r:v,htmlFor:null!=(n=e.htmlFor)?n:m})}),[m,c,j,o,f,v]),T=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),u({id:g},e,{ref:(0,a.lq)(t,(function(e){e&&w(!0)})),"aria-live":"polite"})}),[g]),A=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),u({},e,p,{ref:t,role:"group"})}),[p]),R=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),u({}
1,e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]);return{isRequired:!!r,isInvalid:!!o,isReadOnly:!!f,isDisabled:!!c,isFocused:!!j,onFocus:E.on,onBlur:E.off,hasFeedbackText:x,setHasFeedbackText:w,hasHelpText:k,setHasHelpText:S,id:m,labelId:v,feedbackId:g,helpTextId:y,htmlProps:p,getHelpTextProps:P,getErrorMessageProps:T,getRootProps:A,getLabelProps:_,getRequiredIndicatorProps:R}}((0,o.Lr)(e)),p=c.getRootProps;c.htmlProps;var m=l(c,f),v=(0,i.cx)("chakra-form-control",e.className);return s.createElement(y,{value:m},s.createElement(h,{value:r},s.createElement(o.m$.div,u({},p({},t),{className:v,__css:r.container}))))}));i.Ts&&(x.displayName="FormControl");var w=(0,o.Gp)((function(e,t){var r=b(),n=m(),a=(0,i.cx)("chakra-form__helper-text",e.className);return s.createElement(o.m$.div,u({},null==r?void 0:r.getHelpTextProps(e,t),{__css:n.helperText,className:a}))}));i.Ts&&(w.displayName="FormHelperText");var C=["isDisabled","isInvalid","isReadOnly","isRequired"],k=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function S(e){var t=O(e),r=t.isDisabled,n=t.isInvalid,o=t.isReadOnly,a=t.isRequired;return u({},l(t,C),{disabled:r,readOnly:o,required:a,"aria-invalid":(0,i.Qm)(n),"aria-required":(0,i.Qm)(a),"aria-readonly":(0,i.Qm)(o)})}function O(e){var t,r,n,o=b(),a=e.id,s=e.disabled,c=e.readOnly,d=e.required,f=e.isRequired,p=e.isInvalid,h=e.isReadOnly,m=e.isDisabled,v=e.onFocus,g=e.onBlur,y=l(e,k),x=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=o&&o.hasFeedbackText&&null!=o&&o.isInvalid&&x.push(o.feedbackId),null!=o&&o.hasHelpText&&x.push(o.helpTextId),u({},y,{"aria-describedby":x.join(" ")||void 0,id:null!=a?a:null==o?void 0:o.id,isDisabled:null!=(t=null!=s?s:m)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(r=null!=c?c:h)?r:null==o?void 0:o.isReadOnly,isRequired:null!=(n=null!=d?d:f)?n:null==o?void 0:o.isRequired,isInvalid:null!=p?p:null==o?void 0:o.isInvalid,onFocus:(0,i.v0)(null==o?void 0:o.onFocus,v),onBlur:(0,i.v0)(null==o?void 0:o.onBlur,g)})}var j=(0,o.eC)("FormError"),E=j[0],P=j[1],_=(0,o.Gp)((function(e,t){var r=(0,o.jC)("FormError",e),n=(0,o.Lr)(e),a=b();return null!=a&&a.isInvalid?s.createElement(E,{value:r},s.createElement(o.m$.div,u({},null==a?void 0:a.getErrorMessageProps(n,t),{className:(0,i.cx)("chakra-form__error-message",e.className),__css:u({display:"flex",alignItems:"center"},r.text)}))):null}));i.Ts&&(_.displayName="FormErrorMessage");var T=(0,o.Gp)((function(e,t){var r=P(),n=b();if(null==n||!n.isInvalid)return null;var o=(0,i.cx)("chakra-form__error-icon",e.className);return s.createElement(c.ZP,u({ref:t,"aria-hidden":!0}
1,e,{__css:r.icon,className:o}),s.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}));i.Ts&&(T.displayName="FormErrorIcon");var A=["className","children","requiredIndicator","optionalIndicator"],R=(0,o.Gp)((function(e,t){var r,n=(0,o.mq)("FormLabel",e),a=(0,o.Lr)(e);a.className;var c=a.children,d=a.requiredIndicator,f=void 0===d?s.createElement(D,null):d,p=a.optionalIndicator,h=void 0===p?null:p,m=l(a,A),v=b(),g=null!=(r=null==v?void 0:v.getLabelProps(m,t))?r:u({ref:t},m);return s.createElement(o.m$.label,u({},g,{className:(0,i.cx)("chakra-form__label",a.className),__css:u({display:"block",textAlign:"start"},n)}),c,null!=v&&v.isRequired?f:h)}));i.Ts&&(R.displayName="FormLabel");var D=(0,o.Gp)((function(e,t){var r=b(),n=v();if(null==r||!r.isRequired)return null;var a=(0,i.cx)("chakra-form__required-indicator",e.className);return s.createElement(o.m$.span,u({},null==r?void 0:r.getRequiredIndicatorProps(e,t),{__css:n.requiredIndicator,className:a}))}));i.Ts&&(D.displayName="RequiredIndicator")},7375:function(e,t,r){"use strict";r.d(t,{Ck:function(){return v},Di:function(){return l},Gp:function(){return x},II:function(){return S},KS:function(){return A},Me:function(){return f},NW:function(){return C},O3:function(){return E},PO:function(){return _},Tx:function(){return u},Yz:function(){return k},ZS:function(){return p},bx:function(){return T},kt:function(){return s},pY:function(){return c},qY:function(){return h},qq:function(){return j},rf:function(){return m},s9:function(){return y},zq:function(){return w}});var n=r(7294),o=r(4697),i=(r(640),r(9703)),a=r(9129);function s(e){void 0===e&&(e=!1);var t=(0,n.useState)(e),r=t[0],o=t[1];return[r,(0,n.useMemo)((function(){return{on:function(){return o(!0)},off:function(){return o(!1)},toggle:function(){return o((function(e){return!e}))}}}),[])]}function c(e,t){var r=void 0!==e;return[r,r&&"undefined"!==typeof e?e:t]}function u(e){var t=e.value,r=e.defaultValue,a=e.onChange,s=e.shouldUpdate,c=void 0===s?function(e,t){return e!==t}:s,u=(0,o.u)(a),l=(0,o.u)(c),d=n.useState(r),f=d[0],p=d[1],h=void 0!==t,m=h?t:f,v=n.useCallback((function(e){var t=(0,i.Pu)(e,m);l(m,t)&&(h||p(t),u(t))}),[h,u,m,l]);return[m,v]}function l(e,t){var r=n.useState(null),i=r[0],s=r[1],c=n.useRef();return(0,o.a)((function(){if(e.current){var r=e.current;return n(),t&&(window.addEventListener("resize",n),window.addEventListener("scroll",n)),function(){t&&(window.removeEventListener("resize",n),window.removeEventListener("scroll",n)),c.current&&cancelAnimationFrame(c.current)}}function n(){c.current=requestAnimationFrame((function(){var e=(0,a.iz)(r);s(e)}))}}),[t]),i}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function f(e,t){var r=n.useId();return n.useMemo((function(){return e||[t,r].filter(Boolean).join("-")}),[e,t,r])}function p(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i=f(e);return n.useMemo((function(){return r.map((function(e){return e+"-"+i}))}),[i,r])}function h(e){void 0===e&&(e={});var t=e,r=t.onClose,a=t.onOpen,s=t.isOpen,u=t.id,l=(0,o.u)(a),p=(0,o.u)(r),h=n.useState(e.defaultIsOpen||!1),m=h[0],v=h[1],g=c(s,m),y=g[0],b=g[1],x=f(u,"disclosure"),w=n.useCallback((function(){y||v(!1),null==p||p()}),[y,p]),C=n.useCallback((function(){y||v(!0),null==l||l()}),[y,l]),k=n.useCallback((function(){(b?w:C)()}),[b,C,w]);return{isOpen:!!b,onOpen:C,onClose:w,onToggle:k,isControlled:y,getButtonProps:function(e){return void 0===e&&(e={}),d({},e,{"aria-expanded":b,"aria-controls":x,onClick:(0,i.v0)(e.onClick,k)})},getDisclosureProps:function(e){return void 0===e&&(e={}),d({},e,{hidden:!b,id:x})}}}var m=function(e,t){var r=n.useRef(!1),o=n.useRef(!1);n.useEffect((function(){if(r.current&&o.current)return e();o.current=!0}),t),n.useEffect((function(){return r.current=!0,function(){r.current=!1}}),[])};function v(e,t){var r=t.shouldFocus,n=t.visible,o=t.focusRef,a=r&&!n;m((function(){if(a&&!function(e){var t=e.current;if(!t)return!1;var r=(0,i.vY)(t);return!!r&&!(0,i.r3)(t,r)&&!!(0,i.Wq)(r)}(e)){var t=(null==o?void 0:o.current)||e.current;t&&(0,i.T_)(t,{nextTick:!0}
1)}}),[a,e,o])}function g(e,t,r,n){return(0,o.b)((0,i.f7)(t),(0,i.JN)(r,"pointerdown"===t),e,n)}function y(e){var t=e.ref,r=e.elements,n=e.enabled,o=(0,i.Ao)("Safari");g((function(){return(0,i.lZ)(t.current)}),"pointerdown",(function(e){if(o&&n){var a=e.target,s=(null!=r?r:[t]).some((function(e){var t=(0,i.Ik)(e)?e.current:e;return(0,i.r3)(t,a)}));!(0,i.H9)(a)&&s&&(e.preventDefault(),(0,i.T_)(a))}}))}var b={preventScroll:!0,shouldFocus:!1};function x(e,t){void 0===t&&(t=b);var r=t,a=r.focusRef,s=r.preventScroll,c=r.shouldFocus,u=r.visible,l=(0,i.Ik)(e)?e.current:e,d=c&&u,f=(0,n.useCallback)((function(){if(l&&d&&!(0,i.r3)(l,document.activeElement))if(null!=a&&a.current)(0,i.T_)(a.current,{preventScroll:s,nextTick:!0});else{var e=(0,i.t5)(l);e.length>0&&(0,i.T_)(e[0],{preventScroll:s,nextTick:!0})}}),[d,s,l,a]);m((function(){f()}),[f]),(0,o.b)("transitionend",f,l)}function w(e,t){return void 0===t&&(t=[]),n.useEffect((function(){return function(){return e()}}),t)}function C(){var e=n.useRef(!1),t=n.useState(0),r=t[0],o=t[1];return w((function(){e.current=!0})),n.useCallback((function(){e.current||o(r+1)}),[r])}function k(e,t){var r=(0,o.u)(e);n.useEffect((function(){var e=null;return null!==t&&(e=window.setInterval((function(){return r()}),t)),function(){e&&window.clearInterval(e)}}),[t,r])}function S(e){var t=n.useRef(null);return t.current=e,t}function O(e,t){if(null!=e)if("function"!==typeof e)try{e.current=t}catch(r){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}function j(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){t&&O(t,e)}))}}),t)}function E(e){var t=e.ref,r=e.handler,a=e.enabled,s=void 0===a||a,c=(0,o.u)(r),u=(0,n.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,n.useEffect)((function(){if(s){var e=function(e){P(e,t)&&(u.isPointerDown=!0)},n=function(e){u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&r&&P(e,t)&&(u.isPointerDown=!1,c(e))},o=function(e){u.ignoreEmulatedMouseEvents=!0,r&&u.isPointerDown&&P(e,t)&&(u.isPointerDown=!1,c(e))},a=(0,i.lZ)(t.current);return a.addEventListener("mousedown",e,!0),a.addEventListener("mouseup",n,!0),a.addEventListener("touchstart",e,!0),a.addEventListener("touchend",o,!0),function(){a.removeEventListener("mousedown",e,!0),a.removeEventListener("mouseup",n,!0),a.removeEventListener("touchstart",e,!0),a.removeEventListener("touchend",o,!0)}}}),[r,t,c,u,s])}function P(e,t){var r,n=e.target;if(e.button>0)return!1;if(n&&!(0,i.lZ)(n).contains(n))return!1;return!(null!=(r=t.current)&&r.contains(n))}function _(e,t){var r=t.onPan,o=t.onPanStart,a=t.onPanEnd,s=t.onPanSessionStart,c=t.onPanSessionEnd,u=t.threshold,l=Boolean(r||o||a||s||c),d=(0,n.useRef)(null),f={onSessionStart:s,onSessionEnd:c,onStart:o,onMove:r,onEnd:function(e,t){d.current=null,null==a||a(e,t)}};(0,n.useEffect)((function(){var e;null==(e=d.current)||e.updateHandlers(f)})),g((function(){return e.current}),"pointerdown",l?function(e){d.current=new i.Hc(e,f,u)}:i.ZT),w((function(){var e;null==(e=d.current)||e.end(),d.current=null}))}function T(e){void 0===e&&(e={});var t=e,r=t.timeout,o=void 0===r?300:r,i=t.preventDefault,a=void 0===i?function(){return!0}:i,s=n.useState([]),c=s[0],u=s[1],l=n.useRef(),d=function(){l.current&&(clearTimeout(l.current),l.current=null)};return n.useEffect((function(){return d}),[]),function(e){return function(t){if("Backspace"===t.key){var r=[].concat(c);return r.pop(),void u(r)}if(function(e){var t=e.key;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){var n=c.concat(t.key);a(t)&&(t.preventDefault(),t.stopPropagation()),u(n),e(n.join("")),d(),l.current=setTimeout((function(){u([]),l.current=null}),o)}}}}function A(e,t){var r=(0,o.u)(e);n.useEffect((function(){if(null!=t){var e;return e=window.setTimeout((function(){r()}),t),function(){e&&window.clearTimeout(e)}}}),[t,r])}},4697:function(e,t,r){"use strict";r.d(t,{a:function(){return i},b:function(){return s},c:function(){return c},u:function(){return a}});var n=r(9703),o=r(7294),i=n.jU?o.useLayoutEffect:o.useEffect;function a(e,t){void 0===t&&(t=[]);var r=o.useRef(e);return i((function(){r.current=e})),o.useCallback((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return null==r.current?void 0:r.current.apply(r,t)}),t)}function s(e,t,r,i){var s=a(t);return o.useEffect((function(){var o,a=null!=(o=(0,n.Pu)(r))?o:document;if(t)return a.addEventListener(e,s,i),function(){a.removeEventListener(e,s,i)}}),[e,r,i,s,t]),function(){var t;(null!=(t=(0,n.Pu)(r))?t:document).removeEventListener(e,s,i)}}function c(e){var t=e.isOpen,r=e.ref,i=(0,o.useState)(t),a=i[0],c=i[1],u=(0,o.useState)(!1),l=u[0],d=u[1];return(0,o.useEffect)((function(){l||(c(t),d(!0))}),[t,l,a]),s("animationend",(function(){c(t)}),(function(){return r.current})),{present:!(!t&&!a),onComplete:function(){var e,t=new((0,n.kR)(r.current).CustomEvent)("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(t)}}}},4998:function(e,t,r){"use strict";r.d(t,{h:function(){return n.c}});r(7294);var n=r(4697)},894:function(e,t,r){"use strict";r.d(t,{IU:function(){return d},JO:function(){return u},ZP:function(){return l}});var n=r(1604),o=r(9703),i=r(7294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}var s=["as","viewBox","color","focusable","children","className","__css"],c={path:i.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},i.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),i.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),i.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},u=(0,n.Gp)((function(e,t){var r=e.as,u=e.viewBox,l=e.color,d=void 0===l?"currentColor":l,f=e.focusable,p=void 0!==f&&f,h=e.children,m=e.className,v=e.__css,g=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,s),y={ref:t,focusable:p,className:(0,o.cx)("chakra-icon",m),__css:a({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:d},v)},b=null!=u?u:c.viewBox;if(r&&"string"!==typeof r)return i.createElement(n.m$.svg,a({as:r},y,g));var x=null!=h?h:c.path;return i.createElement(n.m$.svg,a({verticalAlign:"middle",viewBox:b},y,g),x)}));o.Ts&&(u.displayName="Icon");var l=u;function d(e){var t=e.viewBox,r=void 0===t?"0 0 24 24":t,s=e.d,c=e.displayName,l=e.defaultProps,d=void 0===l?{}:l,f=i.Children.toArray(e.path),p=(0,n.Gp)((function(e,t){return i.createElement(u,a({ref:t,viewBox:r},d,e),f.length?f:i.createElement("path",{fill:"currentColor",d:s}))}));return o.Ts&&(p.displayName=c),p}},4651:function(e,t,r){"use strict";r.d(t,{Ee:function(){return f}});var n=r(1604),o=r(9703),i=r(7294),a=r(4697);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var u=["htmlWidth","htmlHeight","alt"],l=["fallbackSrc","fallback","src","srcSet","align","fit","loading","ignoreFallback","crossOrigin","fallbackStrategy","referrerPolicy"],d=i.forwardRef((function(e,t){var r=e.htmlWidth,n=e.htmlHeight,o=e.alt,a=c(e,u);return i.createElement("img",s({width:r,height:n,ref:t,alt:o},a))}));o.Ts&&(d.displayName="NativeImage");var f=(0,n.Gp)((function(e,t){var r=e.fallbackSrc,u=e.fallback,f=e.src,p=e.srcSet,h=e.align,m=e.fit,v=e.loading,g=e.ignoreFallback,y=e.crossOrigin,b=e.fallbackStrategy,x=void 0===b?"beforeLoadOrError":b,w=e.referrerPolicy,C=c(e,l),k=null!=v||g||!(void 0!==r||void 0!==u),S=function(e){var t=e.loading,r=e.src,n=e.srcSet,o=e.onLoad,s=e.onError,c=e.crossOrigin,u=e.sizes,l=e.ignoreFallback,d=(0,i.useState)("pending"),f=d[0],p=d[1];(0,i.useEffect)((function(){p(r?"loading":"pending")}),[r]);var h=(0,i.useRef)(),m=(0,i.useCallback)((function(){if(r){v();var e=new Image;e.src=r,c&&(e.crossOrigin=c),n&&(e.srcset=n),u&&(e.sizes=u),t&&(e.loading=t),e.onload=function(e){v(),p("loaded"),null==o||o(e)},e.onerror=function(e){v(),p("failed"),null==s||s(e)},h.current=e}}),[r,c,n,u,o,s,t]),v=function(){h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return(0,a.a)((function(){if(!l)return"loading"===f&&m(),function(){v()}}),[f,m,l]),l?"loaded":f}(s({},e,{ignoreFallback:k})),O=function(e,t){return"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t}(S,x),j=s({ref:t,objectFit:m,objectPosition:h},k?C:(0,o.CE)(C,["onError","onLoad"]));return O?u||i.createElement(n.m$.img,s({as:d,className:"chakra-image__placeholder",src:r},j)):i.createElement(n.m$.img,s({as:d,src:f,srcSet:p,crossOrigin:y,loading:v,referrerPolicy:w,className:"chakra-image"},j))}));o.Ts&&(f.displayName="Image")},4612:function(e,t,r){"use strict";r.d(t,{BZ:function(){return v},II:function(){return d},Z8:function(){return P},xH:function(){return _}});
1var n=r(9762),o=r(1604),i=r(9703),a=r(7294),s=r(6450);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var l=["htmlSize"],d=(0,o.Gp)((function(e,t){var r=e.htmlSize,s=u(e,l),d=(0,o.jC)("Input",s),f=(0,o.Lr)(s),p=(0,n.Yp)(f),h=(0,i.cx)("chakra-input",e.className);return a.createElement(o.m$.input,c({size:r},p,{__css:d.field,ref:t,className:h}))}));i.Ts&&(d.displayName="Input"),d.id="Input";var f=["children","className"],p=(0,o.eC)("InputGroup"),h=p[0],m=p[1],v=(0,o.Gp)((function(e,t){var r=(0,o.jC)("Input",e),n=(0,o.Lr)(e),l=n.children,d=n.className,p=u(n,f),m=(0,i.cx)("chakra-input__group",d),v={},g=(0,s.WR)(l),y=r.field;g.forEach((function(e){if(r){var t,n;if(y&&"InputLeftElement"===e.type.id)v.paddingStart=null!=(t=y.height)?t:y.h;if(y&&"InputRightElement"===e.type.id)v.paddingEnd=null!=(n=y.height)?n:y.h;"InputRightAddon"===e.type.id&&(v.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(v.borderStartRadius=0)}}));var b=g.map((function(t){var r,n,o=(0,i.YU)({size:(null==(r=t.props)?void 0:r.size)||e.size,variant:(null==(n=t.props)?void 0:n.variant)||e.variant});return"Input"!==t.type.id?a.cloneElement(t,o):a.cloneElement(t,Object.assign(o,v,t.props))}));return a.createElement(o.m$.div,c({className:m,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},p),a.createElement(h,{value:r},b))}));i.Ts&&(v.displayName="InputGroup");var g=["placement"],y={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},b=(0,o.m$)("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),x=(0,o.Gp)((function(e,t){var r,n=e.placement,o=void 0===n?"left":n,i=u(e,g),s=null!=(r=y[o])?r:{},l=m();return a.createElement(b,c({ref:t},i,{__css:c({},l.addon,s)}))}));i.Ts&&(x.displayName="InputAddon");var w=(0,o.Gp)((function(e,t){return a.createElement(x,c({ref:t,placement:"left"},e,{className:(0,i.cx)("chakra-input__left-addon",e.className)}))}));i.Ts&&(w.displayName="InputLeftAddon"),w.id="InputLeftAddon";var C=(0,o.Gp)((function(e,t){return a.createElement(x,c({ref:t,placement:"right"},e,{className:(0,i.cx)("chakra-input__right-addon",e.className)}))}));i.Ts&&(C.displayName="InputRightAddon"),C.id="InputRightAddon";var k=["placement"],S=["className"],O=["className"],j=(0,o.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),E=(0,o.Gp)((function(e,t){var r,n,o,i=e.placement,s=void 0===i?"left":i,l=u(e,k),d=m(),f=d.field,p=c(((o={})["left"===s?"insetStart":"insetEnd"]="0",o.width=null!=(r=null==f?void 0:f.height)?r:null==f?void 0:f.h,o.height=null!=(n=null==f?void 0:f.height)?n:null==f?void 0:f.h,o.fontSize=null==f?void 0:f.fontSize,o),d.element);return a.createElement(j,c({ref:t,__css:p},l))}));E.id="InputElement",i.Ts&&(E.displayName="InputElement");var P=(0,o.Gp)((function(e,t){var r=e.className,n=u(e,S),o=(0,i.cx)("chakra-input__left-element",r);return a.createElement(E,c({ref:t,placement:"left",className:o},n))}));P.id="InputLeftElement",i.Ts&&(P.displayName="InputLeftElement");var _=(0,o.Gp)((function(e,t){var r=e.className,n=u(e,O),o=(0,i.cx)("chakra-input__right-element",r);return a.createElement(E,c({ref:t,placement:"right",className:o},n))}));_.id="InputRightElement",i.Ts&&(_.displayName="InputRightElement")},8527:function(e,t,r){"use strict";r.d(t,{Cd:function(){return b},GS:function(){return G},HC:function(){return Y},P4:function(){return M},QI:function(){return Q},W2:function(){return S},iz:function(){return E}
1,kC:function(){return _},oM:function(){return f},rU:function(){return z},rj:function(){return R},xu:function(){return g},xv:function(){return ce}});var n=r(1604),o=r(4244),i=r(9703),a=r(7294),s=r(894),c=r(6450);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var d=["ratio","children","className"],f=(0,n.Gp)((function(e,t){var r=e.ratio,o=void 0===r?4/3:r,s=e.children,c=e.className,f=l(e,d),p=a.Children.only(s),h=(0,i.cx)("chakra-aspect-ratio",c);return a.createElement(n.m$.div,u({ref:t,position:"relative",className:h,_before:{height:0,content:'""',display:"block",paddingBottom:(0,i.XQ)(o,(function(e){return 1/e*100+"%"}))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},f),p)}));i.Ts&&(f.displayName="AspectRatio");var p=["className"],h=(0,n.Gp)((function(e,t){var r=(0,n.mq)("Badge",e),o=(0,n.Lr)(e);o.className;var s=l(o,p);return a.createElement(n.m$.span,u({ref:t,className:(0,i.cx)("chakra-badge",e.className)},s,{__css:u({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},r)}))}));i.Ts&&(h.displayName="Badge");var m=["size","centerContent"],v=["size"],g=(0,n.m$)("div");i.Ts&&(g.displayName="Box");var y=(0,n.Gp)((function(e,t){var r=e.size,n=e.centerContent,o=void 0===n||n,i=l(e,m),s=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return a.createElement(g,u({ref:t,boxSize:r,__css:u({},s,{flexShrink:0,flexGrow:0})},i))}));i.Ts&&(y.displayName="Square");var b=(0,n.Gp)((function(e,t){var r=e.size,n=l(e,v);return a.createElement(y,u({size:r,ref:t,borderRadius:"9999px"},n))}));i.Ts&&(b.displayName="Circle");var x=(0,n.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});i.Ts&&(x.displayName="Center");var w=["className"],C=(0,n.Gp)((function(e,t){var r=(0,n.mq)("Code",e),o=(0,n.Lr)(e);o.className;var s=l(o,w);return a.createElement(n.m$.code,u({ref:t,className:(0,i.cx)("chakra-code",e.className)},s,{__css:u({display:"inline-block"},r)}))}));i.Ts&&(C.displayName="Code");var k=["className","centerContent"],S=(0,n.Gp)((function(e,t){var r=(0,n.Lr)(e),o=r.className,s=r.centerContent,c=l(r,k),d=(0,n.mq)("Container",e);return a.createElement(n.m$.div,u({ref:t,className:(0,i.cx)("chakra-container",o)},c,{__css:u({},d,s&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));i.Ts&&(S.displayName="Container");var O=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],j=["className","orientation","__css"],E=(0,n.Gp)((function(e,t){var r=(0,n.mq)("Divider",e),o=r.borderLeftWidth,s=r.borderBottomWidth,c=r.borderTopWidth,d=r.borderRightWidth,f=r.borderWidth,p=r.borderStyle,h=r.borderColor,m=l(r,O),v=(0,n.Lr)(e),g=v.className,y=v.orientation,b=void 0===y?"horizontal":y,x=v.__css,w=l(v,j),C={vertical:{borderLeftWidth:o||d||f||"1px",height:"100%"},horizontal:{borderBottomWidth:s||c||f||"1px",width:"100%"}};return a.createElement(n.m$.hr,u({ref:t,"aria-orientation":b},w,{__css:u({},m,{border:"0",borderColor:h,borderStyle:p},C[b],x),className:(0,i.cx)("chakra-divider",g)}))}));i.Ts&&(E.displayName="Divider");var P=["direction","align","justify","wrap","basis","grow","shrink"],_=(0,n.Gp)((function(e,t){var r=e.direction,o=e.align,i=e.justify,s=e.wrap,c=e.basis,d=e.grow,f=e.shrink,p=l(e,P),h={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:c,flexGrow:d,flexShrink:f};return a.createElement(n.m$.div,u({ref:t,__css:h},p))}));i.Ts&&(_.displayName="Flex");var T=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],A=["area","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"],R=(0,n.Gp)((function(e,t){var r=e.templateAreas,o=e.gap,i=e.rowGap,s=e.columnGap,c=e.column,d=e.row,f=e.autoFlow,p=e.autoRows,h=e.templateRows,m=e.autoColumns,v=e.templateColumns,g=l(e,T),y={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:m,gridColumn:c,gridRow:d,gridAutoFlow:f,gridAutoRows:p,gridTemplateRows:h,gridTemplateColumns:v};return a.createElement(n.m$.div,u({ref:t,__css:y},g))}));function D(e){return(0,i.XQ)(e,(function(e){return"auto"===e?"auto":"span "+e+"/span "+e}))}i.Ts&&(R.displayName="Grid");var M=(0,n.Gp)((function(e,t){var r=e.area,o=e.colSpan,s=e.colStart,c=e.colEnd,d=e.rowEnd,f=e.rowSpan,p=e.rowStart,h=l(e,A),m=(0,i.YU)({gridArea:r,gridColumn:D(o),gridRow:D(f),gridColumnStart:s,gridColumnEnd:c,gridRowStart:p,gridRowEnd:d});return a.createElement(n.m$.div,u({ref:t,__css:m},h))})),I=["className"],F=(0,n.Gp)((function(e,t){var r=(0,n.mq)("Heading",e),o=(0,n.Lr)(e);o.className;var s=l(o,I);return a.createElement(n.m$.h2,u({ref:t,className:(0,i.cx)("chakra-heading",e.className)},s,{__css:r}))}));i.Ts&&(F.displayName="Heading");var N=["className"],L=(0,n.Gp)((function(e,t){var r=(0,n.mq)("Kbd",e),o=(0,n.Lr)(e),s=o.className,c=l(o,N);return a.createElement(n.m$.kbd,u({ref:t,className:(0,i.cx)("chakra-kbd",s)},c,{__css:u({fontFamily:"mono"},r)}))}));i.Ts&&(L.displayName="Kbd");var B=["className","isExternal"],z=(0,n.Gp)((function(e,t){var r=(0,n.mq)("Link",e),o=(0,n.Lr)(e),s=o.className,c=o.isExternal,d=l(o,B);return a.createElement(n.m$.a,u({target:c?"_blank":void 0,rel:c?"noopener":void 0,ref:t,className:(0,i.cx)("chakra-link",s)},d,{__css:r}))}));i.Ts&&(z.displayName="Link");var V=["children","styleType","stylePosition","spacing"],U=["as"],$=["as"],W=(0,n.eC)("List"),Z=W[0],H=W[1],q=(0,n.Gp)((function(e,t){var r,o=(0,n.jC)("List",e),i=(0,n.Lr)(e),s=i.children,d=i.styleType,f=void 0===d?"none":d,p=i.stylePosition,h=i.spacing,m=l(i,V),v=(0,c.WR)(s),g=h?((r={})["& > *:not(style) ~ *:not(style)"]={mt:h},r):{};return a.createElement(Z,{value:o},a.createElement(n.m$.ul,u({ref:t,listStyleType:f,listStylePosition:p,role:"list",__css:u({},o.container,g)},m),v))}));i.Ts&&(q.displayName="List");var G=(0,n.Gp)((function(e,t){e.as;var r=l(e,U);return a.createElement(q,u({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},r))}));i.Ts&&(G.displayName="OrderedList");var Q=(0,n.Gp)((function(e,t){e.as;var r=l(e,$);return a.createElement(q,u({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},r))}));i.Ts&&(Q.displayName="UnorderedList");var Y=(0,n.Gp)((function(e,t){var r=H();return a.createElement(n.m$.li,u({ref:t},e,{__css:r.item}))}));i.Ts&&(Y.displayName="ListItem");var K=(0,n.Gp)((function(e,t){var r=H();return a.createElement(s.JO,u({ref:t,role:"presentation"},e,{__css:r.icon}))}));i.Ts&&(K.displayName="ListIcon");var X=["columns","spacingX","spacingY","spacing","minChildWidth"],J=(0,n.Gp)((function(e,t){var r,o=e.columns,s=e.spacingX,c=e.spacingY,d=e.spacing,f=e.minChildWidth,p=l(e,X),h=(0,n.Fg)(),m=f?function(e,t){return(0,i.XQ)(e,(function(e){var r,o=(0,n.LP)("sizes",e,(r=e,(0,i.hj)(r)?r+"px":r))(t);return(0,i.Ft)(e)?null:"repeat(auto-fit, minmax("+o+", 1fr))"}))}(f,h):(r=o,(0,i.XQ)(r,(function(e){return(0,i.Ft)(e)?null:"repeat("+e+", minmax(0, 1fr))"})));return a.createElement(R,u({ref:t,gap:d,columnGap:s,rowGap:c,templateColumns:m},p))}));i.Ts&&(J.displayName="SimpleGrid");var ee=(0,n.m$)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});i.Ts&&(ee.displayName="Spacer");var te="& > *:not(style) ~ *:not(style)";var re=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],ne=function(e){return a.createElement(n.m$.div,u({className:"chakra-stack__item"},e,{__css:u({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},oe=(0,n.Gp)((function(e,t){var r,o=e.isInline,s=e.direction,d=e.align,f=e.justify,p=e.spacing,h=void 0===p?"0.5rem":p,m=e.wrap,v=e.children,g=e.divider,y=e.className,b=e.shouldWrapChildren,x=l(e,re),w=o?"row":null!=s?s:"column",C=a.useMemo((function(){return function(e){var t,r=e.spacing,n=e.direction,o={column:{marginTop:r,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:r},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:r,marginStart:0},"row-reverse":{marginTop:0,marginEnd:r,marginBottom:0,marginStart:0}};return(t={flexDirection:n})[te]=(0,i.XQ)(n,(function(e){return o[e]})),t}({direction:w,spacing:h})}),[w,h]),k=a.useMemo((function(){return function(e){var t=e.spacing,r=e.direction,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,i.XQ)(r,(function(e){return n[e]}))}}({spacing:h,direction:w})}),[h,w]),S=!!g,O=!b&&!S,j=(0,c.WR)(v),E=O?j:j.map((function(e,t){var r="undefined"!==typeof e.key?e.key:t,n=t+1===j.length,o=b?a.createElement(ne,{key:r},e):e;if(!S)return o;var i=n?null:a.cloneElement(g,{__css:k});return a.createElement(a.Fragment,{key:r},o,i)})),P=(0,i.cx)("chakra-stack",y);return a.createElement(n.m$.div,u({ref:t,display:"flex",alignItems:d,justifyContent:f,flexDirection:C.flexDirection,flexWrap:m,className:P,__css:S?{}:(r={},r[te]=C[te],r)},x),E)}));i.Ts&&(oe.displayName="Stack");var ie=(0,n.Gp)((function(e,t){return a.createElement(oe,u({align:"center"},e,{direction:"row",ref:t}))}));i.Ts&&(ie.displayName="HStack");var ae=(0,n.Gp)((function(e,t){return a.createElement(oe,u({align:"center"},e,{direction:"column",ref:t}))}));i.Ts&&(ae.displayName="VStack");var se=["className","align","decoration","casing"],ce=(0,n.Gp)((function(e,t){var r=(0,n.mq)("Text",e),o=(0,n.Lr)(e);o.className,o.align,o.decoration,o.casing;var s=l(o,se),c=(0,i.YU)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return a.createElement(n.m$.p,u({ref:t,className:(0,i.cx)("chakra-text",e.className)},c,s,{__css:r}))}));i.Ts&&(ce.displayName="Text");var ue=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],le=["className"];function de(e){return"number"===typeof e?e+"px":e}var fe=(0,n.Gp)((function(e,t){var r=e.spacing,s=void 0===r?"0.5rem":r,c=e.spacingX,d=e.spacingY,f=e.children,p=e.justify,h=e.direction,m=e.align,v=e.className,g=e.shouldWrapChildren,y=l(e,ue),b=a.useMemo((function(){var e={spacingX:c,spacingY:d},t=e.spacingX,r=void 0===t?s:t,n=e.spacingY,a=void 0===n?s:n;return{"--chakra-wrap-x-spacing":function(e){return(0,i.XQ)(r,(function(t){return de((0,o.fr)("space",t)(e))}))},"--chakra-wrap-y-spacing":function(e){return(0,i.XQ)(a,(function(t){return de((0,o.fr)("space",t)(e))}))},"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:p,al
1ignItems:m,flexDirection:h,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}}),[s,c,d,p,m,h]),x=g?a.Children.map(f,(function(e,t){return a.createElement(pe,{key:t},e)})):f;return a.createElement(n.m$.div,u({ref:t,className:(0,i.cx)("chakra-wrap",v),overflow:"hidden"},y),a.createElement(n.m$.ul,{className:"chakra-wrap__list",__css:b},x))}));i.Ts&&(fe.displayName="Wrap");var pe=(0,n.Gp)((function(e,t){var r=e.className,o=l(e,le);return a.createElement(n.m$.li,u({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,i.cx)("chakra-wrap__listitem",r)},o))}));i.Ts&&(pe.displayName="WrapItem")},2684:function(e,t,r){"use strict";r.d(t,{Sx:function(){return u}});var n=r(1604),o=r(9703),i=r(7294),a=r(5393);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e,t){void 0===t&&(t={});var r=t,n=r.ssr,c=void 0===n||n,u=r.fallback,l=(0,a.O)(),d=Array.isArray(e)?e:[e],f=Array.isArray(u)?u:[u];f=f.filter((function(e){return null!=e}));var p=(0,i.useState)((function(){return d.map((function(e,t){return{media:e,matches:c?!!f[t]:l.window.matchMedia(e).matches}}))})),h=p[0],m=p[1];return(0,i.useEffect)((function(){m(d.map((function(e){return{media:e,matches:l.window.matchMedia(e).matches}})));var e=d.map((function(e){return l.window.matchMedia(e)})),t=function(e){m((function(t){return t.slice().map((function(t){return t.media===e.media?s({},t,{matches:e.matches}):t}))}))};return e.forEach((function(e){(0,o.mf)(e.addListener)?e.addListener(t):e.addEventListener("change",t)})),function(){e.forEach((function(e){(0,o.mf)(e.removeListener)?e.removeListener(t):e.removeEventListener("change",t)}))}}),[l.window]),h.map((function(e){return e.matches}))}o.Ts;o.Ts;function u(e,t){var r,i=function(e){var t,r,i=(0,o.Kn)(e)?e:{fallback:null!=e?e:"base"},a=(0,n.Fg)().__breakpoints.details.map((function(e){var t=e.minMaxQuery;return{breakpoint:e.breakpoint,query:t.replace("@media screen and ","")}})),s=a.map((function(e){return e.breakpoint===i.fallback})),u=c(a.map((function(e){return e.query})),{fallback:s,ssr:i.ssr});return null!=(t=null==(r=a[u.findIndex((function(e){return 1==e}))])?void 0:r.breakpoint)?t:i.fallback}((0,o.Kn)(t)?t:{fallback:null!=t?t:"base"}),a=(0,n.Fg)();if(i){var s=Array.from((null==(r=a.__breakpoints)?void 0:r.keys)||[]);return function(e,t,r){void 0===r&&(r=o.AV);var n=Object.keys(e).indexOf(t);if(-1!==n)return e[t];for(var i=r.indexOf(t);i>=0;){var a=r[i];if(e.hasOwnProperty(a)){n=i;break}i-=1}return-1!==n?e[r[n]]:void 0}((0,o.kJ)(e)?(0,o.sq)(Object.entries((0,o.Yq)(e,s)).map((function(e){return[e[0],e[1]]}))):e,i,s)}}},6658:function(e,t,r){"use strict";r.d(t,{u_:function(){return Yt},fe:function(){return rr},hz:function(){return Xt},mz:function(){return nr},xB:function(){return tr},ZA:function(){return er}});var n=r(4746),o=r(7294);var i=r(7462),a="data-focus-lock",s="data-focus-lock-disabled";function c(e,t){return function(e,t){var r=(0,o.useState)((function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0];return r.callback=t,r.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var u={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},l=function(e){var t=e.children;return o.createElement(o.Fragment,null,o.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:u}),t,t&&o.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:u}))};l.propTypes={},l.defaultProps={children:null};var d=r(655);function f(e){return e}function p(e,t){void 0===t&&(t=f);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}function h(e,t){return void 0===t&&(t=f),p(e,t)}function m(e){void 0===e&&(e={});var t=p(null);return t.options=(0,d.pi)({async:!0,ssr:!1},e),t}var v=h({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),g=h(),y=h(),b=m({async:!0}
1),x=[],w=o.forwardRef((function(e,t){var r,n=o.useState(),l=n[0],d=n[1],f=o.useRef(),p=o.useRef(!1),h=o.useRef(null),m=e.children,y=e.disabled,w=e.noFocusGuards,C=e.persistentFocus,k=e.crossFrame,S=e.autoFocus,O=(e.allowTextSelection,e.group),j=e.className,E=e.whiteList,P=e.hasPositiveIndices,_=e.shards,T=void 0===_?x:_,A=e.as,R=void 0===A?"div":A,D=e.lockProps,M=void 0===D?{}:D,I=e.sideCar,F=e.returnFocus,N=e.focusOptions,L=e.onActivation,B=e.onDeactivation,z=o.useState({})[0],V=o.useCallback((function(){h.current=h.current||document&&document.activeElement,f.current&&L&&L(f.current),p.current=!0}),[L]),U=o.useCallback((function(){p.current=!1,B&&B(f.current)}),[B]);(0,o.useEffect)((function(){y||(h.current=null)}),[]);var $=o.useCallback((function(e){var t=h.current;if(t&&t.focus){var r="function"===typeof F?F(t):F;if(r){var n="object"===typeof r?r:void 0;h.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}}),[F]),W=o.useCallback((function(e){p.current&&v.useMedium(e)}),[]),Z=g.useMedium,H=o.useCallback((function(e){f.current!==e&&(f.current=e,d(e))}),[]);var q=(0,i.Z)(((r={})[s]=y&&"disabled",r[a]=O,r),M),G=!0!==w,Q=G&&"tail"!==w,Y=c([t,H]);return o.createElement(o.Fragment,null,G&&[o.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:y?-1:0,style:u}),P?o.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:y?-1:1,style:u}):null],!y&&o.createElement(I,{id:z,sideCar:b,observed:l,disabled:y,persistentFocus:C,crossFrame:k,autoFocus:S,whiteList:E,shards:T,onActivation:V,onDeactivation:U,returnFocus:$,focusOptions:N}),o.createElement(R,(0,i.Z)({ref:Y},q,{className:j,onBlur:Z,onFocus:W}),m),Q&&o.createElement("div",{"data-focus-guard":!0,tabIndex:y?-1:0,style:u}))}));w.propTypes={},w.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var C=w;function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}var S=function(e,t){return function(r){var n,i=[];function a(){n=e(i.map((function(e){return e.props}))),t(n)}var s,c,u,l=function(e){var t,s;function c(){return e.apply(this,arguments)||this}s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,k(t,s),c.peek=function(){return n};var u=c.prototype;return u.componentDidMount=function(){i.push(this),a()},u.componentDidUpdate=function(){a()},u.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),a()},u.render=function(){return o.createElement(r,this.props)},c}(o.PureComponent);return s=l,c="displayName",u="SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")",c in s?Object.defineProperty(s,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[c]=u,l}},O=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},j=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},E=function(e,t){return!e||j(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue)&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))}(e)&&t(O(e))},P=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=E(t,P.bind(void 0,e));return e.set(t,n),n},_=function(e,t){var r=e.get(t);if(void 0!==r)return r;var n=function(e,t){return!(e&&!j(e))||!!D(e)&&t(O(e))}(t,_.bind(void 0,e));return e.set(t,n),n},T=function(e){return e.dataset},A=function(e){return"INPUT"===e.tagName},R=function(e){return A(e)&&"radio"===e.type},D=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},M=function(e){var t;return Boolean(e&&(null===(t=T(e))||void 0===t?void 0:t.focusGuard))},I=function(e){return!M(e)},F=function(e){return Boolean(e)},N=function(e,t){return R(e)&&e.name?function(e,t){return t.filter(R).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},L=function(e){return e[0]&&e.length>1?N(e[0],e):e[0]},B=function(e,t){return e.length>1?e.indexOf(N(e[t],e)):t},z="NEW_FOCUS",V=function(e,t,r,n){var o=e.length,i=e[0],a=e[o-1],s=M(r);if(!(r&&e.indexOf(r)>=0)){var c=void 0!==r?t.indexOf(r):-1,u=n?t.indexOf(n):c,l=n?e.indexOf(n):-1,d=c-u,f=t.indexOf(i),p=t.indexOf(a),h=function(e){var t=new Set;return e.forEach((function(r){return t.add(N(r,e))})),e.filter((function(e){return t.has(e)}))}(t),m=(void 0!==r?h.indexOf(r):-1)-(n?h.indexOf(n):c),v=B(e,0),g=B(e,o-1);return-1===c||-1===l?z:!d&&l>=0?l:c<=f&&s&&Math.abs(d)>1?g:c>=p&&s&&Math.abs(d)>1?v:d&&Math.abs(m)>1?l:c<=f?g:c>p?v:d?Math.abs(d)>1?l:(o+l+d)%o:void 0}},U=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},$=function(e){return Array.isArray(e)?e:[e]},W=function(e,t){var r=e.tabIndex-t.tabIndex,n=e.index-t.index;if(r){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return r||n},Z=function(e,t,r){return U(e).map((function(e,t){return{node:e,index:t,tabIndex:r&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(W)},H=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),q="".concat(H,", [data-focus-guard]"),G=function(e,t){var r;return U((null===(r=e.shadowRoot)||void 0===r?void 0:r.children)||e.children).reduce((function(e,r){return e.concat(r.matches(t?q:H)?[r]:[],G(r))}),[])},Q=function(e,t){return e.reduce((function(e,r){return e.concat(G(r,t),r.parentNode?U(r.parentNode.querySelectorAll(H)).filter((function(e){return e===r})):[])}),[])},Y=function(e,t){return U(e).filter((function(e){return P(t,e)})).filter((function(e){return function(e){return!((A(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},K=function(e,t){return void 0===t&&(t=new Map),U(e).filter((function(e){return _(t,e)}))},X=function(e,t,r){return Z(Y(Q(e,r),t),!0,r)},J=function(e,t){return Z(Y(Q(e),t),!1)},ee=function(e,t){return Y(function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return U(t).map((function(e){return Q([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},te=function(e,t){return(e.shadowRoot?te(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||U(e.children).some((function(e){return te(e,t)}))},re=function(e){return e.parentNode?re(e.parentNode):e}
1,ne=function(e){return $(e).filter(Boolean).reduce((function(e,t){var r=t.getAttribute(a);return e.push.apply(e,r?function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var o=n+1;o<r;o+=1){var i=e[n].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter((function(e,r){return!t.has(r)}))}(U(re(t).querySelectorAll("[".concat(a,'="').concat(r,'"]:not([').concat(s,'="disabled"])')))):[t]),e}),[])},oe=function(e){return e.activeElement?e.activeElement.shadowRoot?oe(e.activeElement.shadowRoot):e.activeElement:void 0},ie=function(){return document.activeElement?document.activeElement.shadowRoot?oe(document.activeElement.shadowRoot):document.activeElement:void 0},ae=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&ae(e.parentNode.host||e.parentNode,t),t},se=function(e,t){for(var r=ae(e),n=ae(t),o=0;o<r.length;o+=1){var i=r[o];if(n.indexOf(i)>=0)return i}return!1},ce=function(e,t,r){var n=$(e),o=$(t),i=n[0],a=!1;
1return o.filter(Boolean).forEach((function(e){a=se(a||e,e)||a,r.filter(Boolean).forEach((function(e){var t=se(i,e);t&&(a=!a||te(t,a)?t:se(t,a))}))})),a},ue=function(e,t){var r=document&&ie(),n=ne(e).filter(I),o=ce(r||e,e,n),i=new Map,a=J(n,i),s=X(n,i).filter((function(e){var t=e.node;return I(t)}));if(s[0]||(s=a)[0]){var c,u=J([o],i).map((function(e){return e.node})),l=function(e,t){var r=new Map;return t.forEach((function(e){return r.set(e.node,e)})),e.map((function(e){return r.get(e)})).filter(F)}(u,s),d=l.map((function(e){return e.node})),f=V(d,u,r,t);if(f===z){var p=K(a.map((function(e){return e.node}))).filter((c=function(e,t){return e.reduce((function(e,r){return e.concat(ee(r,t))}),[])}(n,i),function(e){var t;return e.autofocus||!!(null===(t=T(e))||void 0===t?void 0:t.autofocus)||c.indexOf(e)>=0}));return{node:p&&p.length?L(p):L(K(d))}}return void 0===f?f:l[f]}},le=0,de=!1,fe=function(e,t,r){void 0===r&&(r={});var n,o,i=ue(e,t);if(!de&&i){if(le>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),de=!0,void setTimeout((function(){de=!1}),1);le++,n=i.node,o=r.focusOptions,"focus"in n&&n.focus(o),"contentWindow"in n&&n.contentWindow&&n.c
1ontentWindow.focus(),le--}},pe=function(e){return Boolean(U(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},he=function(e){var t=document&&ie();return!(!t||t.dataset&&t.dataset.focusGuard)&&ne(e).some((function(e){return te(e,t)||pe(e)}))},me=function(e){var t=ne(e).filter(I),r=ce(e,e,t),n=new Map,o=X([r],n,!0),i=X(t,n).filter((function(e){var t=e.node;return I(t)})).map((function(e){return e.node}));return o.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:i.indexOf(t)>=0,guard:M(t)}}))};function ve(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}var ge=function(){return document&&document.activeElement===document.body||function(){var e=document&&ie();return!!e&&U(document.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(t){return te(t,e)}))}()},ye=null,be=null,xe=null,we=!1,Ce=function(){return!0};function ke(e,t,r,n){var o=null,i=e;do{var a=n[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=r)!==t);o&&(o.node.tabIndex=0)}var Se=function(e){return e&&"current"in e?e.current:e},Oe=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},je=function(){var e,t=!1;if(ye){var r=ye,n=r.observed,o=r.persistentFocus,i=r.autoFocus,a=r.shards,s=r.crossFrame,c=r.focusOptions,u=n||xe&&xe.portaledElement,l=document&&document.activeElement;if(u){var d=[u].concat(a.map(Se).filter(Boolean));if(l&&!function(e){return(ye.whiteList||Ce)(e)}(l)||(o||(s?Boolean(we):"meanwhile"===we)||!ge()||!be&&i)&&(u&&!(he(d)||l&&function(e,t){return t.some((function(t){return Oe(e,t,t)}))}(l,d)||(e=l,xe&&xe.portaledElement===e))&&(document&&!be&&l&&!i?(l.blur&&l.blur(),document.body.focus()):(t=fe(d,be,{focusOptions:c}),xe={})),we=!1,be=document&&document.activeElement),document){var f=document&&document.activeElement,p=me(d),h=p.map((function(e){return e.node})).indexOf(f);h>-1&&(p.filter((function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),ke(h,p.length,1,p),ke(h,-1,-1,p))}}}return t},Ee=function(e){je()&&e&&(e.stopPropagation(),e.preventDefault())},Pe=function(){return ve(je)},_e=function(e){var t=e.target,r=e.currentTarget;r.contains(t)||(xe={observerNode:r,portaledElement:t})},Te=function(){we="just",setTimeout((function(){we="meanwhile"}),0)};v.assignSyncMedium(_e),g.assignMedium(Pe),y.assignMedium((function(e){return e({moveFocusInside:fe,focusInside:he})}));var Ae=S((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!ye&&(document.addEventListener("focusin",Ee),document.addEventListener("focusout",Pe),window.addEventListener("blur",Te));var r=ye,n=r&&t&&t.id===r.id;ye=t,r&&!n&&(r.onDeactivation(),e.filter((function(e){return e.id===r.id})).length||r.returnFocus(!t)),t?(be=null,n&&r.observed===t.observed||t.onActivation(),je(),ve(je)):(document.removeEventListener("focusin",Ee),document.removeEventListener("focusout",Pe),window.removeEventListener("blur",Te),be=null)}))((function(){return null})),Re=o.forwardRef((function(e,t){return o.createElement(C,(0,i.Z)({sideCar:Ae,ref:t},e))})),De=C.propTypes||{};De.sideCar,function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r])}(De,["sideCar"]);Re.propTypes={};var Me=Re,Ie=r(9703),Fe=function(e){var t=e.initialFocusRef,r=e.finalFocusRef,n=e.contentRef,i=e.restoreFocus,a=e.children,s=e.isDisabled,c=e.autoFocus,u=e.persistentFocus,l=e.lockFocusAcrossFrames,d=o.useCallback((function(){if(null!=t&&t.current)t.current.focus();else if(null!=n&&n.current){0===(0,Ie.t5)(n.current).length&&(0,Ie.T_)(n.current,{nextTick:!0})}}),[t,n]),f=o.useCallback((function(){var e;null==r||null==(e=r.current)||e.focus()}),[r]),p=i&&!r;return o.createElement(Me,{crossFrame:l,persistentFocus:u,autoFocus:c,disabled:s,onActivation:d,onDeactivation:f,returnFocus:p},a)};Ie.Ts&&(Fe.displayName="FocusLock");var Ne=r(6871),Le=r(6450),Be=r(1604),ze=r(7496),Ve=r(8043),Ue=r(1190),$e=r(5947),We="right-scroll-bar-position",Ze="width-before-scroll-bar",He=m(),qe=function(){},Ge=o.forwardRef((function(e,t){var r=o.useRef(null),n=o.useState({onScrollCapture:qe,onWheelCapture:qe,onTouchMoveCapture:qe}),i=n[0],a=n[1],s=e.forwardProps,u=e.children,l=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,m=e.sideCar,v=e.noIsolation,g=e.inert,y=e.allowPinchZoom,b=e.as,x=void 0===b?"div"
1:b,w=(0,d._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),C=m,k=c([r,t]),S=(0,d.pi)((0,d.pi)({},w),i);return o.createElement(o.Fragment,null,p&&o.createElement(C,{sideCar:He,removeScrollBar:f,shards:h,noIsolation:v,inert:g,setCallbacks:a,allowPinchZoom:!!y,lockRef:r}),s?o.cloneElement(o.Children.only(u),(0,d.pi)((0,d.pi)({},S),{ref:k})):o.createElement(x,(0,d.pi)({},S,{className:l,ref:k}),u))}));Ge.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ge.classNames={fullWidth:Ze,zeroRight:We};var Qe,Ye=function(e){var t=e.sideCar,r=(0,d._T)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return o.createElement(n,(0,d.pi)({},r))};Ye.isSideCarExport=!0;function Ke(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qe||r.nc;return t&&e.setAttribute("nonce",t),e}var Xe=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=Ke())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Je=function(){var e=function(){var e=Xe();return function(t,r){o.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])}}();return function(t){var r=t.styles,n=t.dynamic;return e(r,n),null}},et={left:0,top:0,right:0,gap:0},tt=function(e){return parseInt(e||"",10)||0},rt=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return et;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[tt(r),tt(n),tt(o)]}(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])}},nt=Je(),ot=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(We," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(Ze," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(We," .").concat(We," {\n right: 0 ").concat(n,";\n }\n \n .").concat(Ze," .").concat(Ze," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},it=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n,a=o.useMemo((function(){return rt(i)}),[i]);return o.createElement(nt,{styles:ot(a,!t,i,r?"":"!important")})},at=!1;if("undefined"!==typeof window)try{var st=Object.defineProperty({},"passive",{get:function(){return at=!0,!0}});window.addEventListener("test",st,st),window.removeEventListener("test",st,st)}catch(lr){at=!1}var ct=!!at&&{passive:!1},ut=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},lt=function(e,t){var r=t;do{if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),dt(e,r)){var n=ft(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body);return!1},dt=function(e,t){return"v"===e?function(e){return ut(e,"overflowY")}(t):function(e){return ut(e,"overflowX")}(t)},ft=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},pt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ht=function(e){return[e.deltaX,e.deltaY]},mt=function(e){return e&&"current"in e?e.current:e},vt=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},gt=0,yt=[];var bt,xt=(bt=function(e){var t=o.useRef([]),r=o.useRef([0,0]),n=o.useRef(),i=o.useState(gt++)[0],a=o.useState((function(){return Je()}))[0],s=o.useRef(e);o.useEffect((function(){s.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,d.ev)([e.lockRef.current],(e.shards||[]).map(mt),!0).filter(
1Boolean);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 c=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,i=pt(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],l=e.target,d=Math.abs(c)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=lt(d,l);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=lt(d,l)),!f)return!1;if(!n.current&&"changedTouches"in e&&(c||u)&&(n.current=o),!o)return!0;var p=n.current||o;return function(e,t,r,n,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,c=t.contains(s),u=!1,l=a>0,d=0,f=0;do{var p=ft(e,s),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&dt(e,s)&&(d+=m,f+=h),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(l&&(o&&0===d||!o&&a>d)||!l&&(o&&0===f||!o&&-a>f))&&(u=!0),u}(p,t,e,"h"===p?c:u,!0)}),[]),u=o.useCallback((function(e){var r=e;if(yt.length&&yt[yt.length-1]===a){var n="deltaY"in r?ht(r):pt(r),o=t.current.filter((function(e){return e.name===r.type&&e.target===r.target&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var i=(s.current.shards||[]).map(mt).filter(Boolean).filter((function(e){return e.contains(r.target)}));(i.length>0?c(r,i[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),l=o.useCallback((function(e,r,n,o){var i={name:e,delta:r,target:n,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),f=o.useCallback((function(e){r.current=pt(e),n.current=void 0}),[]),p=o.useCallback((function(t){l(t.type,ht(t),t.target,c(t,e.lockRef.current))}),[]),h=o.useCallback((function(t){l(t.type,pt(t),t.target,c(t,e.lockRef.current))}),[]);o.useEffect((function(){return yt.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,ct),document.addEventListener("touchmove",u,ct),document.addEventListener("touchstart",f,ct),function(){yt=yt.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,ct),document.removeEventListener("touchmove",u,ct),document.removeEventListener("touchstart",f,ct)}}),[]);var m=e.removeScrollBar,v=e.inert;return o.createElement(o.Fragment,null,v?o.createElement(a,{styles:vt(i)}):null,m?o.createElement(it,{gapMode:"margin"}):null)},He.useMedium(bt),Ye),wt=o.forwardRef((function(e,t){return o.createElement(Ge,(0,d.pi)({},e,{ref:t,sideCar:xt}))}));wt.classNames=Ge.classNames;var Ct=wt,kt=r(7375),St=new WeakMap,Ot=new WeakMap,jt={},Et=0,Pt=function(e,t,r){void 0===t&&(t=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===r&&(r="data-aria-hidden");var n=Array.isArray(e)?e:[e];jt[r]||(jt[r]=new WeakMap);var o=jt[r],i=[],a=new Set,s=function(e){e&&!a.has(e)&&(a.add(e),s(e.parentNode))};n.forEach(s);var c=function(e){!e||n.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))c(e);else{var t=e.getAttribute("aria-hidden"),n=null!==t&&"false"!==t,s=(St.get(e)||0)+1,u=(o.get(e)||0)+1;St.set(e,s),o.set(e,u),i.push(e),1===s&&n&&Ot.set(e,!0),1===u&&e.setAttribute(r,"true"),n||e.setAttribute("aria-hidden","true")}}))};return c(t),a.clear(),Et++,function(){i.forEach((function(e){var t=St.get(e)-1,n=o.get(e)-1;St.set(e,t),o.set(e,n),t||(Ot.has(e)||e.removeAttribute("aria-hidden"),Ot.delete(e)),n||e.removeAttribute(r)})),--Et||(St=new WeakMap,St=new WeakMap,Ot=new WeakMap,jt={})}};function _t(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tt.apply(this,arguments)}var At=["preset"],Rt={slideInBottom:Tt({},ze.Xc,{custom:{offsetY:16,reverse:!0}}),slideInRight:Tt({},ze.Xc,{custom:{offsetX:16,reverse:!0}}),scale:Tt({},ze.Qh,{custom:{initialScale:.95,reverse:!0}}),none:{}},Dt=(0,Be.m$)(Ve.E.section),Mt=o.forwardRef((function(e,t){var r=e.preset,n=_t(e,At),i=Rt[r];return o.createElement(Dt,Tt({ref:t},i,n))}));Ie.Ts&&(Mt.displayName="ModalTransition");var It=new(function(){function e(){this.modals=void 0,this.modals=[]}var t=e.prototype;return t.add=function(e){this.modals.push(e)},t.remove=function(e){this.modals=this.modals.filter((function(t){return t!==e}))},t.isTopModal=function(e){return this.modals[this.modals.length-1]===e},e}());function Ft(e){var t=e.isOpen,r=e.onClose,n=e.id,i=e.closeOnOverlayClick,a=void 0===i||i,s=e.closeOnEsc,c=void 0===s||s,u=e.useInert,l=void 0===u||u,d=e.onOverlayClick,f=e.onEsc,p=(0,o.useRef)(null),h=(0,o.useRef)(null),m=(0,kt.ZS)(n,"chakra-modal","chakra-modal--header","chakra-modal--body"),v=m[0],g=m[1],y=m[2];!function(e,t){var r=e.current;(0,o.useEffect)((function(){if(e.current&&t)return Pt(e.current)}),[t,e,r])}(p,t&&l),function(e,t){(0,o.useEffect)((function(){return t&&It.add(e),function(){It.remove(e)}}),[t,e])}(p,t);var b=(0,o.useRef)(null),x=(0,o.useCallback)((function(e){b.current=e.target}),[]),w=(0,o.useCallback)((function(e){"Escape"===e.key&&(e.stopPropagation(),c&&(null==r||r()),null==f||f())}),[c,r,f]),C=(0,o.useState)(!1),k=C[0],S=C[1],O=(0,o.useState)(!1),j=O[0],E=O[1],P=(0,o.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Tt({role:"dialog"},e,{ref:(0,Le.lq)(t,p),id:v,tabIndex:-1,"aria-modal":!0,"aria-labelledby":k?g:void 0,"aria-describedby":j?y:void 0,onClick:(0,Ie.v0)(e.onClick,(function(e){return e.stopPropagation()}))})}),[y,j,v,g,k]),_=(0,o.useCallback)((function(e){e.stopPropagation(),b.current===e.target&&It.isTopModal(p)&&(a&&(null==r||r()),null==d||d())}),[r,a,d]),T=(0,o.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Tt({},e,{ref:(0,Le.lq)(t,h),onClick:(0,Ie.v0)(e.onClick,_),onKeyDown:(0,Ie.v0)(e.onKeyDown,w),onMouseDown:(0,Ie.v0)(e.onMouseDown,x)})}),[w,x,_]);return{isOpen:t,onClose:r,headerId:g,bodyId:y,setBodyMounted:E,setHeaderMounted:S,dialogRef:p,overlayRef:h,getDialogProps:P,getDialogContainerProps:T}}var Nt=["className","children","containerProps"],Lt=["className","transition"],Bt=["className"],zt=["className"],Vt=["className"],Ut=["onClick","className"],$t=(0,Be.eC)("Modal"),Wt=$t[0],Zt=$t[1],Ht=Zt,qt=(0,Le.kr)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Gt=qt[0],Qt=qt[1],Yt=function(e){var t=e.portalProps,r=e.children,n=e.autoFocus,i=e.trapFocus,a=e.initialFocusRef,s=e.finalFocusRef,c=e.returnFocusOnClose,u=e.blockScrollOnMount,l=e.allowPinchZoom,d=e.preserveScrollBarGap,f=e.motionPreset,p=e.lockFocusAcrossFrames,h=e.onCloseComplete,m=(0,Be.jC)("Modal",e),v=Tt({},Ft(e),{autoFocus:n,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:l,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p});return o.createElement(Gt,{value:v},o.createElement(Wt,{value:m},o.createElement(Ue.M,{onExitComplete:h},v.isOpen&&o.createElement(Ne.h_,t,r))))};Yt.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"},Ie.Ts&&(Yt.displayName="Modal");var Kt=(0,Be.m$)(Ve.E.div),Xt=(0,Be.Gp)((function(e,t){var r=e.className,n=e.children,i=e.containerProps,a=_t(e,Nt),s=Qt(),c=s.getDialogProps,u=s.getDialogContainerProps,l=c(a,t),d=u(i),f=(0,Ie.cx)("chakra-modal__content",r),p=Zt(),h=Tt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},p.dialog),m=Tt({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},p.dialogContainer),v=Qt().motionPreset;return o.createElement(Jt,null,o.createElement(Be.m$.div,Tt({},d,{className:"chakra-modal__content-container",tabIndex:-1,__css:m}),o.createElement(Mt,Tt({preset:v,className:f},l,{__css:h}),n)))}));function Jt(e){var t=Qt(),r=t.autoFocus,n=t.trapFocus,i=t.dialogRef,a=t.initialFocusRef,s=t.blockScrollOnMount,c=t.allowPinchZoom,u=t.finalFocusRef,l=t.returnFocusOnClose,d=t.preserveScrollBarGap,f=t.lockFocusAcrossFrames,p=(0,$e.oO)(),h=p[0],m=p[1];return o.useEffect((function(){!h&&m&&setTimeout(m)}
1),[h,m]),o.createElement(Fe,{autoFocus:r,isDisabled:!n,initialFocusRef:a,finalFocusRef:u,restoreFocus:l,contentRef:i,lockFocusAcrossFrames:f},o.createElement(Ct,{removeScrollBar:!d,allowPinchZoom:c,enabled:s,forwardProps:!0},e.children))}Ie.Ts&&(Xt.displayName="ModalContent");var er=(0,Be.Gp)((function(e,t){var r=e.className;e.transition;var n=_t(e,Lt),i=(0,Ie.cx)("chakra-modal__overlay",r),a=Tt({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},Zt().overlay),s="none"===Qt().motionPreset?{}:ze.uf;return o.createElement(Kt,Tt({},s,{__css:a,ref:t,className:i},n))}));Ie.Ts&&(er.displayName="ModalOverlay");var tr=(0,Be.Gp)((function(e,t){var r=e.className,n=_t(e,Bt),i=Qt(),a=i.headerId,s=i.setHeaderMounted;o.useEffect((function(){return s(!0),function(){return s(!1)}}),[s]);var c=(0,Ie.cx)("chakra-modal__header",r),u=Tt({flex:0},Zt().header);return o.createElement(Be.m$.header,Tt({ref:t,className:c,id:a},n,{__css:u}))}));Ie.Ts&&(tr.displayName="ModalHeader");var rr=(0,Be.Gp)((function(e,t){var r=e.className,n=_t(e,zt),i=Qt(),a=i.bodyId,s=i.setBodyMounted;o.useEffect((function(){return s(!0),function(){return s(!1)}}),[s]);var c=(0,Ie.cx)("chakra-modal__body",r),u=Zt();return o.createElement(Be.m$.div,Tt({ref:t,className:c,id:a},n,{__css:u.body}))}));Ie.Ts&&(rr.displayName="ModalBody");var nr=(0,Be.Gp)((function(e,t){var r=e.className,n=_t(e,Vt),i=(0,Ie.cx)("chakra-modal__footer",r),a=Tt({display:"flex",alignItems:"center",justifyContent:"flex-end"},Zt().footer);return o.createElement(Be.m$.footer,Tt({ref:t},n,{__css:a,className:i}))}));Ie.Ts&&(nr.displayName="ModalFooter");var or=(0,Be.Gp)((function(e,t){var r=e.onClick,i=e.className,a=_t(e,Ut),s=Qt().onClose,c=(0,Ie.cx)("chakra-modal__close-btn",i),u=Zt();return o.createElement(n.P,Tt({ref:t,__css:u.closeButton,className:c,onClick:(0,Ie.v0)(r,(function(e){e.stopPropagation(),s()}))},a))}));Ie.Ts&&(or.displayName="ModalCloseButton");var ir=["className","children"],ar=(0,Le.kr)(),sr=(ar[0],ar[1]);var cr=(0,Be.m$)(ze.Mi),ur=(0,Be.Gp)((function(e,t){var r=e.className,n=e.children,i=_t(e,ir),a=Qt(),s=a.getDialogProps,c=a.getDialogContainerProps,u=a.isOpen,l=s(i,t),d=c(),f=(0,Ie.cx)("chakra-modal__content",r),p=Ht(),h=Tt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},p.dialog),m=Tt({display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0},p.dialogContainer),v=sr().placement;return o.createElement(Be.m$.div,Tt({},d,{className:"chakra-modal__content-container",__css:m}),o.createElement(Jt,null,o.createElement(cr,Tt({direction:v,in:u,className:f},l,{__css:h}),n)))}));Ie.Ts&&(ur.displayName="DrawerContent")},2095:function(e,t,r){"use strict";r.d(t,{J2:function(){return T},b:function(){return M},xo:function(){return A},yk:function(){return R}});var n=r(4746),o=r(1604),i=r(8554),a=r.n(i),s=r(9703),c=r(7294),u=r(6450),l=r(8043),d=r(7375),f=r(4998),p=r(6573);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function m(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var v=(0,u.kr)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),g=v[0],y=v[1],b=function(e){if(e)return a()(e,{enter:{visibility:"visible"},exit:{transitionEnd:{visibility:"hidden"}}})},x=(0,l.E)(o.m$.section),w=c.forwardRef((function(e,t){var r=y().isOpen;return c.createElement(x,h({ref:t,variants:b(e.variants)},e,{initial:!1,animate:r?"enter":"exit"}))}));w.defaultProps={variants:{exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}}},s.Ts&&(w.displayName="PopoverTransition");var C=["closeOnBlur","closeOnEsc","initialFocusRef","id","returnFocusOnClose","autoFocus","arrowSize","arrowShadowColor","trigger","openDelay","closeDelay","isLazy","lazyBehavior","computePositionOnMount"],k="click",S="hover";var O=["children"],j=["rootProps"],E=(0,o.eC)("Popover"),P=E[0],_=E[1],T=function(e){var t=(0,o.jC)("Popover",e),r=(0,o.Lr)(e),n=r.children,i=function(e){void 0===e&&(e={});var t=e,r=t.closeOnBlur,n=void 0===r||r,o=t.closeOnEsc,i=void 0===o||o,a=t.initialFocusRef,l=t.id,v=t.returnFocusOnClose,g=void 0===v||v,y=t.autoF
1ocus,b=void 0===y||y,x=t.arrowSize,w=t.arrowShadowColor,O=t.trigger,j=void 0===O?k:O,E=t.openDelay,P=void 0===E?200:E,_=t.closeDelay,T=void 0===_?200:_,A=t.isLazy,R=t.lazyBehavior,D=void 0===R?"unmount":R,M=t.computePositionOnMount,I=m(t,C),F=(0,d.qY)(e),N=F.isOpen,L=F.onClose,B=F.onOpen,z=F.onToggle,V=(0,c.useRef)(null),U=(0,c.useRef)(null),$=(0,c.useRef)(null),W=(0,c.useRef)(!1),Z=(0,c.useRef)(!1);N&&(Z.current=!0);var H=(0,c.useState)(!1),q=H[0],G=H[1],Q=(0,c.useState)(!1),Y=Q[0],K=Q[1],X=(0,d.ZS)(l,"popover-trigger","popover-content","popover-header","popover-body"),J=X[0],ee=X[1],te=X[2],re=X[3],ne=(0,p.D)(h({},I,{enabled:N||!!M})),oe=ne.referenceRef,ie=ne.getArrowProps,ae=ne.getPopperProps,se=ne.getArrowInnerProps,ce=ne.forceUpdate,ue=(0,f.h)({isOpen:N,ref:$});(0,d.s9)({enabled:N,ref:U}),(0,d.Ck)($,{focusRef:U,visible:N,shouldFocus:g&&j===k}),(0,d.Gp)($,{focusRef:a,visible:N,shouldFocus:b&&j===k});var le=(0,s.VI)({hasBeenSelected:Z.current,isLazy:A,lazyBehavior:D,isSelected:ue.present}),de=(0,c.useCallback)((function(e,t){var r;void 0===e&&(e={}),void 0===t&&(t=null);var o=h({},e,{style:h({},e.style,(r={transformOrigin:p.j.transformOrigin.varRef},r[p.j.arrowSize.var]=x?(0,s.px)(x):void 0,r[p.j.arrowShadowColor.var]=w,r)),ref:(0,u.lq)($,t),children:le?e.children:null,id:ee,tabIndex:-1,role:"dialog",onKeyDown:(0,s.v0)(e.onKeyDown,(function(e){i&&"Escape"===e.key&&L()})),onBlur:(0,s.v0)(e.onBlur,(function(e){var t=(0,s.wN)(e),r=(0,s.r3)($.current,t),o=(0,s.r3)(U.current,t);N&&n&&!r&&!o&&L()})),"aria-labelledby":q?te:void 0,"aria-describedby":Y?re:void 0});return j===S&&(o.role="tooltip",o.onMouseEnter=(0,s.v0)(e.onMouseEnter,(function(){W.current=!0})),o.onMouseLeave=(0,s.v0)(e.onMouseLeave,(function(e){null!==e.nativeEvent.relatedTarget&&(W.current=!1,setTimeout(L,T))}))),o}),[le,ee,q,te,Y,re,j,i,L,N,n,T,w,x]),fe=(0,c.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ae(h({},e,{style:h({visibility:N?"visible":"hidden"},e.style)}),t)}
1),[N,ae]),pe=(0,c.useCallback)((function(e,t){return void 0===t&&(t=null),h({},e,{ref:(0,u.lq)(t,V,oe)})}),[V,oe]),he=(0,c.useRef)(),me=(0,c.useRef)(),ve=(0,c.useCallback)((function(e){null==V.current&&oe(e)}),[oe]),ge=(0,c.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=h({},e,{ref:(0,u.lq)(U,t,ve),id:J,"aria-haspopup":"dialog","aria-expanded":N,"aria-controls":ee});return j===k&&(r.onClick=(0,s.v0)(e.onClick,z)),j===S&&(r.onFocus=(0,s.v0)(e.onFocus,(function(){void 0===he.current&&B()})),r.onBlur=(0,s.v0)(e.onBlur,(function(e){var t=(0,s.wN)(e),r=!(0,s.r3)($.current,t);N&&n&&r&&L()})),r.onKeyDown=(0,s.v0)(e.onKeyDown,(function(e){"Escape"===e.key&&L()})),r.onMouseEnter=(0,s.v0)(e.onMouseEnter,(function(){W.current=!0,he.current=window.setTimeout(B,P)})),r.onMouseLeave=(0,s.v0)(e.onMouseLeave,(function(){W.current=!1,he.current&&(clearTimeout(he.current),he.current=void 0),me.current=window.setTimeout((function(){!1===W.current&&L()}),T)}))),r}),[J,N,ee,j,ve,z,B,n,L,P,T]);(0,c.useEffect)((function(){return function(){he.current&&clearTimeout(he.current),me.current&&clearTimeout(me.current)}}),[]);var ye=(0,c.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),h({},e,{id:te,ref:(0,u.lq)(t,(function(e){G(!!e)}))})}),[te]),be=(0,c.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),h({},e,{id:re,ref:(0,u.lq)(t,(function(e){K(!!e)}))})}),[re]);return{forceUpdate:ce,isOpen:N,onAnimationComplete:ue.onComplete,onClose:L,getAnchorProps:pe,getArrowProps:ie,getArrowInnerProps:se,getPopoverPositionerProps:fe,getPopoverProps:de,getTriggerProps:ge,getHeaderProps:ye,getBodyProps:be}}(h({},m(r,O),{direction:(0,o.Fg)().direction}));return c.createElement(g,{value:i},c.createElement(P,{value:t},(0,s.Pu)(n,{isOpen:i.isOpen,onClose:i.onClose,forceUpdate:i.forceUpdate})))};s.Ts&&(T.displayName="Popover");s.Ts;var A=function(e){var t=c.Children.only(e.children),r=y().getTriggerProps;return c.cloneElement(t,r(t.props,t.ref))};s.Ts&&(A.displayName="PopoverTrigger");var R=(0,o.Gp)((function(e,t){var r=e.rootProps,n=m(e,j),i=y(),a=i.getPopoverProps,u=i.getPopoverPositionerProps,l=i.onAnimationComplete,d=_(),f=h({position:"relative",display:"flex",flexDirection:"column"},d.content);return c.createElement(o.m$.div,h({},u(r),{__css:d.popper,className:"chakra-popover__popper"}),c.createElement(w,h({},a(n,t),{onAnimationComplete:(0,s.PP)(l,n.onAnimationComplete),className:(0,s.cx)("chakra-popover__content",e.className),__css:f})))}));s.Ts&&(R.displayName="PopoverContent");var D=(0,o.Gp)((function(e,t){var r=y().getHeaderProps,n=_();return c.createElement(o.m$.header,h({},r(e,t),{className:(0,s.cx)("chakra-popover__header",e.className),__css:n.header}))}));s.Ts&&(D.displayName="PopoverHeader");var M=(0,o.Gp)((function(e,t){var r=y().getBodyProps,n=_();return c.createElement(o.m$.div,h({},r(e,t),{className:(0,s.cx)("chakra-popover__body",e.className),__css:n.body}))}));s.Ts&&(M.displayName="PopoverBody");s.Ts;var I=(0,o.Gp)((function(e,t){var r=y().onClose,o=_();return c.createElement(n.P,h({size:"sm",onClick:r,className:(0,s.cx)("chakra-popover__close-btn",e.className),__css:o.closeButton,ref:t},e))}));s.Ts&&(I.displayName="PopoverCloseButton");s.Ts},6573:function(e,t,r){"use strict";r.d(t,{j:function(){return ye},D:function(){return Re}});var n=r(6450);function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof o(e).Element||e instanceof Element}function a(e){return e instanceof o(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!==typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}var c=Math.max,u=Math.min,l=Math.round;function d(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),n=1,o=1;if(a(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(n=l(r.width)/s||1),i>0&&(o=l(r.height)/i||1)}return{width:r.width/n,height:r.height/o,top:r.top/o,right:r.right/n,bottom:r.bottom/o,left:r.left/n,x:r.left/n,y:r.top/o}}function f(e){var t=o(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function p(e){return e?(e.nodeName||"").toLowerCase():null}function h(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return d(h(e)).left+f(e).scrollLeft}function v(e){return o(e).getComputedStyle(e)}function g(e){var t=v(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function y(e,t,r){void 0===r&&(r=!1);var n=a(t),i=a(t)&&function(e){var t=e.getBoundingClientRect(),r=l(t.width)/e.offsetWidth||1,n=l(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=h(t),c=d(e,i),u={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(n||!n&&!r)&&(("body"!==p(t)||g(s))&&(u=function(e){return e!==o(e)&&a(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:f(e);var t}(t)),a(t)?((v=d(t,!0)).x+=t.clientLeft,v.y+=t.clientTop):s&&(v.x=m(s))),{x:c.left+u.scrollLeft-v.x,y:c.top+u.scrollTop-v.y,width:c.width,height:c.height}}function b(e){var t=d(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function x(e){return"html"===p(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||h(e)}function w(e){return["html","body","#document"].indexOf(p(e))>=0?e.ownerDocument.body:a(e)&&g(e)?e:w(x(e))}function C(e,t){var r;void 0===t&&(t=[]);var n=w(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),a=o(n),s=i?[a].concat(a.visualVie
1wport||[],g(n)?n:[]):n,c=t.concat(s);return i?c:c.concat(C(x(s)))}function k(e){return["table","td","th"].indexOf(p(e))>=0}function S(e){return a(e)&&"fixed"!==v(e).position?e.offsetParent:null}function O(e){for(var t=o(e),r=S(e);r&&k(r)&&"static"===v(r).position;)r=S(r);return r&&("html"===p(r)||"body"===p(r)&&"static"===v(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&a(e)&&"fixed"===v(e).position)return null;var r=x(e);for(s(r)&&(r=r.host);a(r)&&["html","body"].indexOf(p(r))<0;){var n=v(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var j="top",E="bottom",P="right",_="left",T="auto",A=[j,E,P,_],R="start",D="end",M="viewport",I="popper",F=A.reduce((function(e,t){return e.concat([t+"-"+R,t+"-"+D])}),[]),N=[].concat(A,[T]).reduce((function(e,t){return e.concat([t,t+"-"+R,t+"-"+D])}),[]),L=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function B(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}function z(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var V={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function $(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?V:o;return function(e,t,r){void 0===r&&(r=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},V,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:o,setOptions:function(r){var c="function"===typeof r?r(o.options):r;l(),o.options=Object.assign({},a,o.options,c),o.scrollParents={reference:i(e)?C(e):e.contextElement?C(e.contextElement):[],popper:C(t)};var d=function(e){var t=B(e);return L.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,o.options.modifiers)));return o.orderedModifiers=d.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect;if("function"===typeof i){var a=i({state:o,name:t,instance:u,options:n}),c=function(){};s.push(a||c)}})),u.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,r=e.popper;if(U(t,r)){o.rects={reference:y(t,O(r),"fixed"===o.options.strategy),popper:b(r)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var i=o.orderedModifiers[n],a=i.fn,s=i.options,l=void 0===s?{}:s,d=i.name;"function"===typeof a&&(o=a({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:z((function(){return new Promise((function(e){u.forceUpdate(),e(o)}))})),destroy:function(){l(),c=!0}};if(!U(e,t))return u;function l(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(r).then((function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var W={passive:!0};function Z(e){return e.split("-")[0]}function H(e){return e.split("-")[1]}function q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?Z(o):null,a=o?H(o):null,
1s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(i){case j:t={x:s,y:r.y-n.height};break;case E:t={x:s,y:r.y+r.height};break;case P:t={x:r.x+r.width,y:c};break;case _:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var u=i?q(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case R:t[u]=t[u]-(r[l]/2-n[l]/2);break;case D:t[u]=t[u]+(r[l]/2-n[l]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Y(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,p=e.isFixed,m=s.x,g=void 0===m?0:m,y=s.y,b=void 0===y?0:y,x="function"===typeof f?f({x:g,y:b}):{x:g,y:b};g=x.x,b=x.y;var w=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),k=_,S=j,T=window;if(d){var A=O(r),R="clientHeight",M="clientWidth";if(A===o(r)&&"static"!==v(A=h(r)).position&&"absolute"===c&&(R="scrollHeight",M="scrollWidth"),A=A,i===j||(i===_||i===P)&&a===D)S=E,b-=(p&&A===T&&T.visualViewport?T.visualViewport.height:A[R])-n.height,b*=u?1:-1;if(i===_||(i===j||i===E)&&a===D)k=P,g-=(p&&A===T&&T.visualViewport?T.visualViewport.width:A[M])-n.width,g*=u?1:-1}var I,F=Object.assign({position:c},d&&Q),N=!0===f?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:l(t*n)/n||0,y:l(r*n)/n||0}}({x:g,y:b}):{x:g,y:b};return g=N.x,b=N.y,u?Object.assign({},F,((I={})[S]=C?"0":"",I[k]=w?"0":"",I.transform=(T.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",I)):Object.assign({},F,((t={})[S]=C?b+"px":"",t[k]=w?g+"px":"",t.transform="",t))}var K={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=N.reduce((function(e,r){return e[r]=function(e,t,r){var n=Z(e),o=[_,j].indexOf(n)>=0?-1:1,i="function"===typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[_,P].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}},X={left:"right",right:"left",bottom:"top",top:"bottom"};function J(e){return e.replace(/left|right|bottom|top/g,(function(e){return X[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function re(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&s(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ne(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oe(e,t){return t===M?ne(function(e){var t=o(e),r=h(e),n=t.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;return n&&(i=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=n.offsetLeft,c=n.offsetTop)),{width:i,height:a,x:s+m(e),y:c}}(e)):i(t)?function(e){var t=d(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ne(function(e){var t,r=h(e),n=f(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=c(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=c(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+m(e),u=-n.scrollTop;return"rtl"===v(o||r).direction&&(s+=c(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(h(e)))}function ie(e,t,r){var n="clippingParents"===t?function(e){var t=C(x(e)),r=["absolute","fixed"].indexOf(v(e).position)>=0&&a(e)?O(e):e;return i(r)?t.filter((function(e){return i(e)&&re(e,r)&&"body"!==p(e)})):[]}(e):[].concat(t),o=[].concat(n,[r]),s=o[0],l=o.reduce((function(t,r){var n=oe(e,r);return t.top=c(n.top,t.top),t.right=u(n.right,t.right),t.bottom=u(n.bottom,t.bottom),t.left=c(n.left,t.left),t}),oe(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ae(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function se(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function ce(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.boundary,s=void 0===a?"clippingParents":a,c=r.rootBoundary,u=void 0===c?M:c,l=r.elementContext,f
vendor: 4,920 bytes, line 1
1=void 0===l?I:l,p=r.altBoundary,m=void 0!==p&&p,v=r.padding,g=void 0===v?0:v,y=ae("number"!==typeof g?g:se(g,A)),b=f===I?"reference":I,x=e.rects.popper,w=e.elements[m?b:f],C=ie(i(w)?w:w.contextElement||h(e.elements.popper),s,u),k=d(e.elements.reference),S=G({reference:k,element:x,strategy:"absolute",placement:o}),O=ne(Object.assign({},x,S)),_=f===I?O:k,T={top:C.top-_.top+y.top,bottom:_.bottom-C.bottom+y.bottom,left:C.left-_.left+y.left,right:_.right-C.right+y.right},R=e.modifiersData.offset;if(f===I&&R){var D=R[o];Object.keys(T).forEach((function(e){var t=[P,E].indexOf(e)>=0?1:-1,r=[j,E].indexOf(e)>=0?"y":"x";T[e]+=D[r]*t}))}return T}function ue(e,t,r){return c(e,u(t,r))}var le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.padding,h=r.tether,m=void 0===h||h,v=r.tetherOffset,g=void 0===v?0:v,y=ce(t,{boundary:l,rootBoundary:d,padding:p,altBoundary:f}),x=Z(t.placement),w=H(t.placement),C=!w,k=q(x),S="x"===k?"y":"x",T=t.modifiersData.popperOffsets,A=t.rects.reference,D=t.rects.popper,M="function"===typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,I="number"===typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(T){if(i){var L,B="y"===k?j:_,z="y"===k?E:P,V="y"===k?"height":"width",U=T[k],$=U+y[B],W=U-y[z],G=m?-D[V]/2:0,Q=w===R?A[V]:D[V],Y=w===R?-D[V]:-A[V],K=t.elements.arrow,X=m&&K?b(K):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[B],te=J[z],re=ue(0,A[V],X[V]),ne=C?A[V]/2-G-re-ee-I.mainAxis:Q-re-ee-I.mainAxis,oe=C?-A[V]/2+G+re+te+I.mainAxis:Y+re+te+I.mainAxis,ie=t.elements.arrow&&O(t.elements.arrow),ae=ie?"y"===k?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(L=null==F?void 0:F[k])?L:0,le=U+oe-se,de=ue(m?u($,U+ne-se-ae):$,U,m?c(W,le):W);T[k]=de,N[k]=de-U}if(s){var fe,pe="x"===k?j:_,he="x"===k?E:P,me=T[S],ve="y"===S?"height":"width",ge=me+y[pe],ye=me-y[he],be=-1!==[j,_].indexOf(x),xe=null!=(fe=null==F?void 0:F[S])?fe:0,we=be?ge:me-A[ve]-D[ve]-xe+I.altAxis,Ce=be?me+A[ve]+D[ve]-xe-I.altAxis:ye,ke=m&&be?function(e,t,r){var n=ue(e,t,r);return n>r?r:n}(we,me,Ce):ue(m?we:ge,me,m?Ce:ye);T[S]=ke,N[S]=ke-me}t.modifiersData[n]=N}},requiresIfExists:["offset"]};var de={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Z(r.placement),c=q(s),u=[_,P].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return ae("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:se(e,A))}(o.padding,r),d=b(i),f="y"===c?j:_,p="y"===c?E:P,h=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],m=a[c]-r.rects.reference[c],v=O(i),g=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,x=l[f],w=g-d[u]-l[p],C=g/2-d[u]/2+y,k=ue(x,C,w),S=c;r.modifiersData[n]=((t={})[S]=k,t.centerOffset=k-C,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&re(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fe(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function pe(e){return[j,P,E,_].some((function(t){return e[t]>=0}))}var he=$({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=void 0===i||i,s=n.resize,c=void 0===s||s,u=o(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",r.update,W)})),c&&u.addEventListener("resize",r.update,W),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",r.update,W)})),c&&u.removeEventListener("resize",r.update,W)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=G({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,c=void 0===s||s,u={placement:Z(t.placement),variation:H(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Y(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roun
vendor: 4,116 bytes, line 1
1dOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Y(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];a(o)&&p(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});a(n)&&p(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},K,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,u=r.padding,l=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=void 0===p||p,m=r.allowedAutoPlacements,v=t.options.placement,g=Z(v),y=c||(g===v||!h?[J(v)]:function(e){if(Z(e)===T)return[];var t=J(e);return[te(e),t,te(t)]}(v)),b=[v].concat(y).reduce((function(e,r){return e.concat(Z(r)===T?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=void 0===c?N:c,l=H(n),d=l?s?F:F.filter((function(e){return H(e)===l})):A,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,r){return t[r]=ce(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[Z(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:l,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):r)}),[]),x=t.rects.reference,w=t.rects.popper,C=new Map,k=!0,S=b[0],O=0;O<b.length;O++){var D=b[O],M=Z(D),I=H(D)===R,L=[j,E].indexOf(M)>=0,B=L?"width":"height",z=ce(t,{placement:D,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),V=L?I?P:_:I?E:j;x[B]>w[B]&&(V=J(V));var U=J(V),$=[];if(i&&$.push(z[M]<=0),s&&$.push(z[V]<=0,z[U]<=0),$.every((function(e){return e}))){S=D,k=!1;break}C.set(D,$)}if(k)for(var W=function(e){var t=b.find((function(t){var r=C.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},q=h?3:1;q>0;q--){if("break"===W(q))break}t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},le,de,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ce(t,{elementContext:"reference"}),s=ce(t,{altBoundary:!0}),c=fe(a,n),u=fe(s,o,i),l=pe(c),d=pe(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),me=r(7294);function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ve.apply(this,arguments)}var ge=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},ye={arrowShadowColor:ge("--popper-arrow-shadow-color"),arrowSize:ge("--popper-arrow-size","8px"),arrowSizeHalf:ge("--popper-arrow-size-half"),arrowBg:ge("--popper-arrow-bg"),transformOrigin:ge("--popper-transform-origin"),arrowOffset:ge("--popper-arrow-offset")};
1var be={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},xe={scroll:!0,resize:!0};var we={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width=t.rects.reference.width+"px"},effect:function(e){var t=e.state;return function(){var e=t.elements.reference;t.elements.popper.style.width=e.offsetWidth+"px"}}},Ce={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){var t=e.state;ke(t)},effect:function(e){var t=e.state;return function(){ke(t)}}},ke=function(e){var t;e.elements.popper.style.setProperty(ye.transformOrigin.var,(t=e.placement,be[t]))},Se={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;Oe(t)}},Oe=function(e){var t;if(e.placement){var r=je(e.placement);if(null!=(t=e.elements)&&t.arrow&&r){var n,o;Object.assign(e.elements.arrow.style,((n={})[r.property]=r.value,n.width=ye.arrowSize.varRef,n.height=ye.arrowSize.varRef,n.zIndex=-1,n));var i=((o={})[ye.arrowSizeHalf.var]="calc("+ye.arrowSize.varRef+" / 2)",o[ye.arrowOffset.var]="calc("+ye.arrowSizeHalf.varRef+" * -1)",o);for(var a in i)e.elements.arrow.style.setProperty(a,i[a])}}},je=function(e){return e.startsWith("top")?{property:"bottom",value:ye.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:ye.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:ye.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:ye.arrowOffset.varRef}:void 0},Ee={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){var t=e.state;Pe(t)},effect:function(e){var t=e.state;return function(){Pe(t)}}},Pe=function(e){if(e.elements.arrow){var t,r=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(r)Object.assign(r.style,{transform:"rotate(45deg)",background:ye.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(t=e.placement,t.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})}},_e={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Te={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};var Ae=["size","shadowColor","bg","style"];function Re(e){void 0===e&&(e={});var t=e,r=t.enabled,o=void 0===r||r,i=t.modifiers,a=t.placement,s=void 0===a?"bottom":a,c=t.strategy,u=void 0===c?"absolute":c,l=t.arrowPadding,d=void 0===l?8:l,f=t.eventListeners,p=void 0===f||f,h=t.offset,m=t.gutter,v=void 0===m?8:m,g=t.flip,y=void 0===g||g,b=t.boundary,x=void 0===b?"clippingParents":b,w=t.preventOverflow,C=void 0===w||w,k=t.matchWidth,S=t.direction,O=void 0===S?"ltr":S,j=(0,me.useRef)(null),E=(0,me.useRef)(null),P=(0,me.useRef)(null),_=function(e,t){var r,n;void 0===t&&(t="ltr");var o=(null==(r=_e[e])?void 0:r[t])||e;return"ltr"===t?o:null!=(n=Te[e])?n:o}(s,O),T=(0,me.useRef)((function(){})),A=(0,me.useCallback)((function(){var e;o&&j.current&&E.current&&(null==T.current||T.current(),P.current=he(j.current,E.current,{placement:_,modifiers:[Ee,Se,Ce,ve({},we,{enabled:!!k}),ve({name:"eventListeners"},(e=p,"object"===typeof e?{enabled:!0,options:ve({},xe,e)}:{enabled:e,options:xe})),{name:"arrow",options:{padding:d}},{name:"offset",options:{offset:null!=h?h:[0,v]}},{name:"flip",enabled:!!y,options:{padding:8}},{name:"preventOverflow",enabled:!!C,options:{boundary:x}}].concat(null!=i?i:[]),strategy:u}),P.current.forceUpdate(),T.current=P.current.destroy)}),[_,o,i,k,p,d,h,v,y,C,x,u]);(0,me.useEffect)((function(){return function(){var e;j.current||E.current||(null==(e=P.current)||e.destroy(),P.current=null)}}),[]);var R=(0,me.useCallback)((function(e){j.current=e,A()}),[A]),D=(0,me.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ve({},e,{ref:(0,n.lq)(R,t)})}),[R]),M=(0,me.useCallback)((function(e){E.current=e,A()}),[A]),I=(0,me.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ve({},e,{ref:(0,n.lq)(M,t),style:ve({},e.style,{position:u,minWidth:k?void 0:"max-content",inset:"0 auto auto 0"})})}),[u,M,k]),F=(0,me.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=e;return r.size,r.shadowColor,r.bg,r.style,ve({},function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}
1(r,Ae),{ref:t,"data-popper-arrow":"",style:De(e)})}),[]),N=(0,me.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ve({},e,{ref:t,"data-popper-arrow-inner":""})}),[]);return{update:function(){var e;null==(e=P.current)||e.update()},forceUpdate:function(){var e;null==(e=P.current)||e.forceUpdate()},transformOrigin:ye.transformOrigin.varRef,referenceRef:R,popperRef:M,getPopperProps:I,getArrowProps:F,getArrowInnerProps:N,getReferenceProps:D}}function De(e){var t=e.size,r=e.shadowColor,n=e.bg,o=ve({},e.style,{position:"absolute"});return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}},6871:function(e,t,r){"use strict";r.d(t,{hE:function(){return f},h_:function(){return C}});var n=r(9703),o=r(6450),i=r(7294),a=r(7375),s=r(4697),c=r(3935),u=(0,o.kr)({strict:!1,name:"PortalManagerContext"}),l=u[0],d=u[1];function f(e){var t=e.children,r=e.zIndex;return i.createElement(l,{value:{zIndex:r}},t)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}n.Ts&&(f.displayName="PortalManager");var h=["containerRef"],m=(0,o.kr)({strict:!1,name:"PortalContext"}
1),v=m[0],g=m[1],y="chakra-portal",b=function(e){return i.createElement("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0}},e.children)},x=function(e){var t=e.appendToParentPortal,r=e.children,n=i.useState(null),o=n[0],u=n[1],l=i.useRef(null),f=(0,a.NW)();i.useEffect(f,[]);var p=g(),h=d();(0,s.a)((function(){if(o){var e=o.ownerDocument,r=t&&null!=p?p:e.body;if(r){l.current=e.createElement("div"),l.current.className=y,r.appendChild(l.current),f();var n=l.current;return function(){r.contains(n)&&r.removeChild(n)}}}}),[o]);var m=null!=h&&h.zIndex?i.createElement(b,{zIndex:null==h?void 0:h.zIndex},r):r;return l.current?(0,c.createPortal)(i.createElement(v,{value:l.current},m),l.current):i.createElement("span",{ref:function(e){e&&u(e)}})},w=function(e){var t=e.children,r=e.containerRef,o=e.appendToParentPortal,u=r.current,l=null!=u?u:n.jU?document.body:void 0,d=i.useMemo((function(){var e=null==u?void 0:u.ownerDocument.createElement("div");return e&&(e.className=y),e}),[u]),f=(0,a.NW)();return(0,s.a)((function(){f()}),[]),(0,s.a)((function(){if(d&&l)return l.appendChild(d),function(){l.removeChild(d)}}),[d,l]),l&&d?(0,c.createPortal)(i.createElement(v,{value:o?d:null},t),d):null};function C(e){var t=e.containerRef,r=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,h);return t?i.createElement(w,p({containerRef:t},r)):i.createElement(x,r)}C.defaultProps={appendToParentPortal:!0},C.className=y,C.selector=".chakra-portal",n.Ts&&(C.displayName="Portal")},5393:function(e,t,r){"use strict";r.d(t,{O:function(){return l},u:function(){return d}});var n=r(9703),o=r(7294),i={body:{classList:{add:function(){},remove:function(){}}},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}}},a=function(){},s={window:{document:i,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:a,removeEventListener:a,getComputedStyle:function(){return{getPropertyValue:function(){return""}}},matchMedia:function(){return{matches:!1,addListener:a,removeListener:a}},requestAnimationFrame:function(e){return"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!==typeof setTimeout&&clearTimeout(e)},setTimeout:function(){return 0},clearTimeout:a,setInterval:function(){return 0},clearInterval:a},document:i},c=n.jU?{window:window,document:document}:s,u=(0,o.createContext)(c);function l(){return(0,o.useContext)(u)}function d(e){var t=e.children,r=e.environment,n=(0,o.useState)(null),i=n[0],a=n[1],s=(0,o.useState)(!1),l=s[0],d=s[1];(0,o.useEffect)((function(){return d(!0)}),[]);var f=(0,o.useMemo)((function(){var e,t=null==i?void 0:i.ownerDocument,n=null==i?void 0:i.ownerDocument.defaultView;return null!=(e=null!=r?r:t?{document:t,window:n}:void 0)?e:c}),[i,r]);return o.createElement(u.Provider,{value:f},t,l&&o.createElement("span",{ref:function(e){(0,o.startTransition)((function(){e&&a(e)}))}}))}n.Ts&&(u.displayName="EnvironmentContext"),n.Ts&&(d.displayName="EnvironmentProvider")},6450:function(e,t,r){"use strict";r.d(t,{WR:function(){return c},kr:function(){return s},lq:function(){return a}});var n=r(9703),o=r(7294);function i(e,t){if(null!=e)if((0,n.mf)(e))e(t);else try{e.current=t}catch(r){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}}function a(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){t.forEach((function(t){return i(t,e)}))}}function s(e){void 0===e&&(e={});var t=e,r=t.strict,n=void 0===r||r,i=t.errorMessage,a=void 0===i?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":i,s=t.name,c=o.createContext(void 0);return c.displayName=s,[c.Provider,function e(){var t=o.useContext(c);if(!t&&n){var r=new Error(a);throw r.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(r,e),r}return t},c]}function c(e){return o.Children.toArray(e).filter((function(e){return o.isValidElement(e)}))}},3833:function(e,t,r){"use strict";r.d(t,{xjn:function(){return g},B1C:function(){return y}});var n=r(7294),o=r(917),i=function(){return n.createElement(o.xB,{styles:'\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n -moz-osx-font-smoothing: grayscale;\n touch-action: manipulation;\n }\n\n body {\n position: relative;\n min-height: 100%;\n font-feature-settings: \'kern\';\n }\n\n *,\n *::before,\n *::after {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n }\n\n main {\n display: block;\n }\n\n hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n b,\n strong {\n font-weight: bold;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;
1\n }\n\n sup {\n top: -0.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type="checkbox"],\n [type="radio"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n input[type="number"] {\n -moz-appearance: textfield;\n }\n\n [type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n body,\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n\n button {\n background: transparent;\n padding: 0;\n }\n\n fieldset {\n margin: 0;\n padding: 0;\n }\n\n ol,\n ul {\n margin: 0;\n padding: 0;\n }\n\n textarea {\n resize: vertical;\n }\n\n button,\n [role="button"] {\n cursor: pointer;\n }\n\n button::-moz-focus-inner {\n border: 0 !important;\n }\n\n table {\n border-collapse: collapse;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n }\n\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {\n outline: none;\n box-shadow: none;\n }\n\n select::-ms-expand {\n display: none;\n }\n '})},a=r(6871),s=r(1604),c=r(949),u=r(5393),l=function(e){var t=e.children,r=e.colorModeManager,o=e.portalZIndex,l=e.resetCSS,d=void 0===l||l,f=e.theme,p=void 0===f?{}:f,h=e.environment,m=e.cssVarsRoot,v=n.createElement(u.u,{environment:h},t);return n.createElement(s.f6,{theme:p,cssVarsRoot:m},n.createElement(c.SG,{colorModeManager:r,options:p.config},d&&n.createElement(i,null),n.createElement(s.ZL,null),o?n.createElement(a.hE,{zIndex:o},v):v))},d=r(7826),f=r(5074),p=r(9703),h=r(8554),m=r.n(h);var v=["children","toastOptions"],g=function(e){var t=e.children,r=e.toastOptions,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,v);return n.createElement(l,o,t,n.createElement(f.VW,r))};function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=[].concat(t),o=t[t.length-1];return(0,d.gk)(o)&&n.length>1?n=n.slice(0,n.length-1):o=d.rS,p.zG.apply(void 0,n.map((function(e){return function(t){return(0,p.mf)(e)?e(t):b(t,e)}})))(o)}function b(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return m().apply(void 0,[{}].concat(t,[x]))}function x(e,t,r,n){if(((0,p.mf)(e)||(0,p.mf)(t))&&Object.prototype.hasOwnProperty.call(n,r))return function(){var r=(0,p.mf)(e)?e.apply(void 0,arguments):e,n=(0,p.mf)(t)?t.apply(void 0,arguments):t;return m()({},r,n,x)}}g.defaultProps={theme:d.rS}},9609:function(e,t,r){"use strict";r.d(t,{$:function(){return d}});var n=r(917),o=r(1604),i=r(9703),a=r(1358),s=r(7294);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}var u=["label","thickness","speed","emptyColor","className"],l=(0,n.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,o.Gp)((function(e,t){var r=(0,o.mq)("Spinner",e),n=(0,o.Lr)(e),d=n.label,f=void 0===d?"Loading...":d,p=n.thickness,h=void 0===p?"2px":p,m=n.speed,v=void 0===m?"0.45s":m,g=n.emptyColor,y=void 0===g?"transparent":g,b=n.className,x=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(n,u),w=(0,i.cx)("chakra-spinner",b),C=c({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:h,borderBottomColor:y,borderLeftColor:y,animation:l+" "+v+" linear infinite"},r);return s.createElement(o.m$.div,c({ref:t,__css:C,className:w},x),f&&s.createElement(a.TX,null,f))}));i.Ts&&(d.displayName="Spinner")},4244:function(e,t,r){"use strict";r.d(t,{Ud:function(){return Ze},ZR:function(){return Be},c0:function(){return Re},cC:function(){return Ne},fr:function(){return c},gJ:function(){return de},iv:function(){return $e}});var n=r(9703),o=r(8554),i=r.n(o);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}var s=function(e){return(0,n.HD)(e)?e.replace(/!(important)?$/,"").trim():e},c=function(e,t){return function(r){var o=String(t),i=function(e){return/!(important)?$/.test(e)}(o),a=s(o),c=e?e+"."+a:a,u=(0,n.Kn)(r.__cssMap)&&c in r.__cssMap?r.__cssMap[c].varRef:t;return u=s(u),i?u+" !important":u}};function u(e){var t=e.scale,r=e.transform,n=e.compose;return function(e,o){var i,a=c(t,e)(o),s=null!=(i=null==r?void 0:r(a,o))?i:a;return n&&(s=n(s,o)),s}}function l(e,t){return function(r){var n={property:r,scale:e};return n.transform=u({scale:e,transform:t}),n}}var d,f,p=function(e){var t=e.rtl,r=e.ltr;return function(e){return"rtl"===e.direction?t:r}};var h=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var m={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},v={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};var g={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},y="& > :not(style) ~ :not(style)",b=((d={})[y]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},d),x=((f={})[y]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},f);
1function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function C(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}function k(){k=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,o){var i=new RegExp(e,n);return t.set(i,o||t.get(e)),w(i,r.prototype)}function n(e,r){var n=t.get(r);return Object.keys(n).reduce((function(t,r){return t[r]=e[n[r]],t}),Object.create(null))}return C(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);return r&&(r.groups=n(r,this)),r},r.prototype[Symbol.replace]=function(r,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,r,o.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+i[t]})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,r,o)},k.apply(this,arguments)}var S={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},O=new Set(Object.values(S)),j=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),E=function(e){return e.trim()};var P=function(e){return(0,n.HD)(e)&&e.includes("(")&&e.includes(")")},_=function(e){return function(t){return e+"("+t+")"}},T={filter:function(e){return"auto"!==e?e:m},backdropFilter:function(e){return"auto"!==e?e:v},ring:function(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(T.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(h).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(h).join(" "):e},px:function(e){if(null==e)return e;var t=function(e){var t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t.unitless||(0,n.hj)(e)?e+"px":e},fraction:function(e){return!(0,n.hj)(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if((0,n.FS)(e)||null==e)return e;var t=(0,n.HD)(e)&&!e.endsWith("deg");return(0,n.hj)(e)||t?e+"deg":e},gradient:function(e,t){return function(e,t){var r,n;if(null==e||j.has(e))return e;var o=null!=(r=null==(n=k(/(^[a-z-A-Z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:n.groups)?r:{},i=o.type,a=o.values;if(!i||!a)return e;var s=i.includes("-gradient")?i:i+"-gradient",c=a.split(",").map(E).filter(Boolean),u=c[0],l=c.slice(1);if(0===(null==l?void 0:l.length))return e;var d=u in S?S[u]:u;l.unshift(d);var f=l.map((function(e){if(O.has(e))return e;var r=e.indexOf(" "),n=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],o=n[0],i=n[1],a=P(i)?i:i&&i.split(" "),s="colors."+o,c=s in t.__cssMap?t.__cssMap[s].varRef:o;return a?[c].concat(Array.isArray(a)?a:[a]).join(" "):c}));return s+"("+f.join(", ")+")"}(e,null!=t?t:{})},blur:_("blur"),opacity:_("opacity"),brightness:_("brightness"),contrast:_("contrast"),dropShadow:_("drop-shadow"),grayscale:_("grayscale"),hueRotate:_("hue-rotate"),invert:_("invert"),saturate:_("saturate"),sepia:_("sepia"),bgImage:function(e){return null==e||P(e)||j.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);
1return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,r=null!=(t=g[e])?t:{},n=r.space,o=r.divide,i={flexDirection:e};return n&&(i[n]=1),o&&(i[o]=1),i}},A={borderWidths:l("borderWidths"),borderStyles:l("borderStyles"),colors:l("colors"),borders:l("borders"),radii:l("radii",T.px),space:l("space",T.px),spaceT:l("space",T.px),degreeT:function(e){return{property:e,transform:T.degree}},prop:function(e,t,r){return a({property:e,scale:t},t&&{transform:u({scale:t,transform:r})})},propT:function(e,t){return{property:e,transform:t}},sizes:l("sizes",T.px),sizesT:l("sizes",T.fraction),shadows:l("shadows"),logical:function(e){var t=e.property,r=e.scale,n=e.transform;return{scale:r,property:p(t),transform:r?u({scale:r,compose:n}):n}},blur:l("blur",T.blur)},R={background:A.colors("background"),backgroundColor:A.colors("backgroundColor"),backgroundImage:A.propT("backgroundImage",T.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:T.bgClip},bgSize:A.prop("backgroundSize"),bgPosition:A.prop("backgroundPosition"),bg:A.colors("background"),bgColor:A.colors("backgroundColor"),bgPos:A.prop("backgroundPosition"),bgRepeat:A.prop("backgroundRepeat"),bgAttachment:A.prop("backgroundAttachment"),bgGradient:A.propT("backgroundImage",T.gradient),bgClip:{transform:T.bgClip}};Object.assign(R,{bgImage:R.backgroundImage,bgImg:R.backgroundImage});var D={border:A.borders("border"),borderWidth:A.borderWidths("borderWidth"),borderStyle:A.borderStyles("borderStyle"),borderColor:A.colors("borderColor"),borderRadius:A.radii("borderRadius"),borderTop:A.borders("borderTop"),borderBlockStart:A.borders("borderBlockStart"),borderTopLeftRadius:A.radii("borderTopLeftRadius"),borderStartStartRadius:A.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:A.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:A.radii("borderTopRightRadius"),borderStartEndRadius:A.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:A.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:A.borders("borderRight"),borderInlineEnd:A.borders("borderInlineEnd"),borderBottom:A.borders("borderBottom"),borderBlockEnd:A.borders("borderBlockEnd"),borderBottomLeftRadius:A.radii("borderBottomLeftRadius"),borderBottomRightRadius:A.radii("borderBottomRightRadius"),borderLeft:A.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:A.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:A.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:A.borders(["borderLeft","borderRight"]),borderInline:A.borders("borderInline"),borderY:A.borders(["borderTop","borderBottom"]),borderBlock:A.borders("borderBlock"),borderTopWidth:A.borderWidths("borderTopWidth"),borderBlockStartWidth:A.borderWidths("borderBlockStartWidth"),borderTopColor:A.colors("borderTopColor"),borderBlockStartColor:A.colors("borderBlockStartColor"),borderTopStyle:A.borderStyles("borderTopStyle"),borderBlockStartStyle:A.borderStyles("borderBlockStartStyle"),borderBottomWidth:A.borderWidths("borderBottomWidth"),borderBlockEndWidth:A.borderWidths("borderBlockEndWidth"),borderBottomColor:A.colors("borderBottomColor"),borderBlockEndColor:A.colors("borderBlockEndColor"),borderBottomStyle:A.borderStyles("borderBottomStyle"),borderBlockEndStyle:A.borderStyles("borderBlockEndStyle"),borderLeftWidth:A.borderWidths("borderLeftWidth"),borderInlineStartWidth:A.borderWidths("borderInlineStartWidth"),borderLeftColor:A.colors("borderLeftColor"),borderInlineStartColor:A.colors("borderInlineStartColor"),borderLeftStyle:A.borderStyles("borderLeftStyle"),borderInlineStartStyle:A.borderStyles("borderInlineStartStyle"),borderRightWidth:A.borderWidths("borderRightWidth"),borderInlineEndWidth:A.borderWidths("borderInlineEndWidth"),borderRightColor:A.colors("borderRightColor"),borderInlineEndColor:A.colors("borderInlineEndColor"),borderRightStyle:A.borderStyles("borderRightStyle"),borderInlineEndStyle:A.borderStyles("borderInlineEndStyle"),borderTopRadius:A.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:A.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:A.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:A.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(D,{rounded:D.borderRadius,roundedTop:D.borderTopRadius,roundedTopLeft:D.borderTopLeftRadius,roundedTopRight:D.borderTopRightRadius,roundedTopStart:D.borderStartStartRadius,roundedTopEnd:D.borderStartEndRadius,roundedBottom:D.borderBottomRadius,roundedBottomLeft:D.borderBottomLeftRadius,roundedBottomRight:D.borderBottomRightRadius,roundedBottomStart:D.borderEndStartRadius,roundedBottomEnd:D.borderEndEndRadius,roundedLeft:D.borderLeftRadius,roundedRight:D.borderRightRadius,roundedStart:D.borderInlineStartRadius,roundedEnd:D.borderInlineEndRadius,borderStart:D.borderInlineStart,borderEnd:D.borderInlineEnd,borderTopStartRadius:D.borderStartStartRadius,borderTopEndRadius:D.borderStartEndRadius,borderBottomStartRadius:D.borderEndStartRadius,borderBottomEndRadius:D.borderEndEndRadius,borderStartRadius:D.borderInlineStartRadius,borderEndRadius:D.borderInlineEndRadius,borderStartWidth:D.borderInlineStartWidth,borderEndWidth:D.borderInlineEndWidth,borderStartColor:D.borderInlineStartColor,borderEndColor:D.borderInlineEndColor,borderStartStyle:D.borderInlineStartStyle,borderEndStyle:D.borderInlineEndStyle});var M={color:A.colors("color"),textColor:A.colors("color"),fill:A.colors("fill"),stroke:A.colors("stroke")}
1,I={boxShadow:A.shadows("boxShadow"),mixBlendMode:!0,blendMode:A.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:A.prop("backgroundBlendMode"),opacity:!0};Object.assign(I,{shadow:I.boxShadow});var F={filter:{transform:T.filter},blur:A.blur("--chakra-blur"),brightness:A.propT("--chakra-brightness",T.brightness),contrast:A.propT("--chakra-contrast",T.contrast),hueRotate:A.degreeT("--chakra-hue-rotate"),invert:A.propT("--chakra-invert",T.invert),saturate:A.propT("--chakra-saturate",T.saturate),dropShadow:A.propT("--chakra-drop-shadow",T.dropShadow),backdropFilter:{transform:T.backdropFilter},backdropBlur:A.blur("--chakra-backdrop-blur"),backdropBrightness:A.propT("--chakra-backdrop-brightness",T.brightness),backdropContrast:A.propT("--chakra-backdrop-contrast",T.contrast),backdropHueRotate:A.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:A.propT("--chakra-backdrop-invert",T.invert),backdropSaturate:A.propT("--chakra-backdrop-saturate",T.saturate)},N={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:T.flexDirection},experimental_spaceX:{static:b,transform:u({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:x,transform:u({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:A.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:A.space("gap"),rowGap:A.space("rowGap"),columnGap:A.space("columnGap")};Object.assign(N,{flexDir:N.flexDirection});var L={gridGap:A.space("gridGap"),gridColumnGap:A.space("gridColumnGap"),gridRowGap:A.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},B={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:T.outline},outlineOffset:!0,outlineColor:A.colors("outlineColor")},z={width:A.sizesT("width"),inlineSize:A.sizesT("inlineSize"),height:A.sizes("height"),blockSize:A.sizes("blockSize"),boxSize:A.sizes(["width","height"]),minWidth:A.sizes("minWidth"),minInlineSize:A.sizes("minInlineSize"),minHeight:A.sizes("minHeight"),minBlockSize:A.sizes("minBlockSize"),maxWidth:A.sizes("maxWidth"),maxInlineSize:A.sizes("maxInlineSize"),maxHeight:A.sizes("maxHeight"),maxBlockSize:A.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:A.propT("float",T.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(z,{w:z.width,h:z.height,minW:z.minWidth,maxW:z.maxWidth,minH:z.minHeight,maxH:z.maxHeight,overscroll:z.overscrollBehavior,overscrollX:z.overscrollBehaviorX,overscrollY:z.overscrollBehaviorY});var V={listStyleType:!0,listStylePosition:!0,listStylePos:A.prop("listStylePosition"),listStyleImage:!0,listStyleImg:A.prop("listStyleImage")},U={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},$={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},W=function(e,t,r){var o={},i=(0,n.Wf)(e,t,{});for(var a in i){a in r&&null!=r[a]||(o[a]=i[a])}return o},Z={srOnly:{transform:function(e){return!0===e?U:"focusable"===e?$:{}}},layerStyle:{processResult:!0,transform:function(e,t,r){return W(t,"layerStyles."+e,r)}},textStyle:{processResult:!0,transform:function(e,t,r){return W(t,"textStyles."+e,r)}},apply:{processResult:!0,transform:function(e,t,r){return W(t,e,r)}}},H={position:!0,pos:A.prop("position"),zIndex:A.prop("zIndex","zIndices"),inset:A.spaceT("inset"),insetX:A.spaceT(["left","right"]),insetInline:A.spaceT("insetInline"),insetY:A.spaceT(["top","bottom"]),insetBlock:A.spaceT("insetBlock"),top:A.spaceT("top"),insetBlockStart:A.spaceT("insetBlockStart"),bottom:A.spaceT("bottom"),insetBlockEnd:A.spaceT("insetBlockEnd"),left:A.spaceT("left"),insetInlineStart:A.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:A.spaceT("right"),insetInlineEnd:A.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(H,{insetStart:H.insetInlineStart,insetEnd:H.insetInlineEnd});var q={ring:{transform:T.ring}
1,ringColor:A.colors("--chakra-ring-color"),ringOffset:A.prop("--chakra-ring-offset-width"),ringOffsetColor:A.colors("--chakra-ring-offset-color"),ringInset:A.prop("--chakra-ring-inset")},G={margin:A.spaceT("margin"),marginTop:A.spaceT("marginTop"),marginBlockStart:A.spaceT("marginBlockStart"),marginRight:A.spaceT("marginRight"),marginInlineEnd:A.spaceT("marginInlineEnd"),marginBottom:A.spaceT("marginBottom"),marginBlockEnd:A.spaceT("marginBlockEnd"),marginLeft:A.spaceT("marginLeft"),marginInlineStart:A.spaceT("marginInlineStart"),marginX:A.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:A.spaceT("marginInline"),marginY:A.spaceT(["marginTop","marginBottom"]),marginBlock:A.spaceT("marginBlock"),padding:A.space("padding"),paddingTop:A.space("paddingTop"),paddingBlockStart:A.space("paddingBlockStart"),paddingRight:A.space("paddingRight"),paddingBottom:A.space("paddingBottom"),paddingBlockEnd:A.space("paddingBlockEnd"),paddingLeft:A.space("paddingLeft"),paddingInlineStart:A.space("paddingInlineStart"),paddingInlineEnd:A.space("paddingInlineEnd"),paddingX:A.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:A.space("paddingInline"),paddingY:A.space(["paddingTop","paddingBottom"]),paddingBlock:A.space("paddingBlock")};Object.assign(G,{m:G.margin,mt:G.marginTop,mr:G.marginRight,me:G.marginInlineEnd,marginEnd:G.marginInlineEnd,mb:G.marginBottom,ml:G.marginLeft,ms:G.marginInlineStart,marginStart:G.marginInlineStart,mx:G.marginX,my:G.marginY,p:G.padding,pt:G.paddingTop,py:G.paddingY,px:G.paddingX,pb:G.paddingBottom,pl:G.paddingLeft,ps:G.paddingInlineStart,paddingStart:G.paddingInlineStart,pr:G.paddingRight,pe:G.paddingInlineEnd,paddingEnd:G.paddingInlineEnd});var Q={textDecorationColor:A.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:A.shadows("textShadow")},Y={clipPath:!0,transform:A.propT("transform",T.transform),transformOrigin:!0,translateX:A.spaceT("--chakra-translate-x"),translateY:A.spaceT("--chakra-translate-y"),skewX:A.degreeT("--chakra-skew-x"),skewY:A.degreeT("--chakra-skew-y"),scaleX:A.prop("--chakra-scale-x"),scaleY:A.prop("--chakra-scale-y"),scale:A.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:A.degreeT("--chakra-rotate")},K={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:A.prop("transitionDuration","transition.duration"),transitionProperty:A.prop("transitionProperty","transition.property"),transitionTimingFunction:A.prop("transitionTimingFunction","transition.easing")},X={fontFamily:A.prop("fontFamily","fonts"),fontSize:A.prop("fontSize","fontSizes",T.px),fontWeight:A.prop("fontWeight","fontWeights"),lineHeight:A.prop("lineHeight","lineHeights"),letterSpacing:A.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},J={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:A.spaceT("scrollMargin"),scrollMarginTop:A.spaceT("scrollMarginTop"),scrollMarginBottom:A.spaceT("scrollMarginBottom"),scrollMarginLeft:A.spaceT("scrollMarginLeft"),scrollMarginRight:A.spaceT("scrollMarginRight"),scrollMarginX:A.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:A.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:A.spaceT("scrollPadding"),scrollPaddingTop:A.spaceT("scrollPaddingTop"),scrollPaddingBottom:A.spaceT("scrollPaddingBottom"),scrollPaddingLeft:A.spaceT("scrollPaddingLeft"),scrollPaddingRight:A.spaceT("scrollPaddingRight"),scrollPaddingX:A.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:A.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function ee(e){return(0,n.Kn)(e)&&e.reference?e.reference:String(e)}var te=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(ee).join(" "+e+" ").replace(/calc/g,"")},re=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+te.apply(void 0,["+"].concat(t))+")"},ne=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+te.apply(void 0,["-"].concat(t))+")"},oe=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+te.apply(void 0,["*"].concat(t))+")"},ie=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+te.apply(void 0,["/"].concat(t))+")"},ae=function(e){var t=ee(e);return null==t||Number.isNaN(parseFloat(t))?oe(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},se=Object.assign((function(e){return{add:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return se(re.apply(void 0,[e].concat(r)))},subtract:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return se(ne.apply(void 0,[e].concat(r)))},multiply:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return se(oe.apply(void 0,[e].concat(r)))},divide:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return se(ie.apply(void 0,[e].concat(r)))},negate:function(){return se(ae(e))},toString:function(){return e.toString()}}}),{add:re,subtract:ne,multiply:oe,divide:ie,negate:ae});function ce(e){var t=function(e,t){return void 0===t&&(t="-"),e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?t.replace(".","\\."):e}function ue(e,t){return"var("+ce(e)+(t?", "+t:"")+")"}function le(e,t){return void 0===t&&(t=""),"--"+function(e,t){return void 0===t&&(t=""),[t,ce(e)].filter(
1Boolean).join("-")}(e,t)}function de(e,t,r){var n=le(e,r);return{variable:n,reference:ue(n,t)}}var fe=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},pe=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},he=function(e,t){return e+":focus-visible "+t},me=function(e,t){return e+":focus-within "+t},ve=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},ge=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},ye=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},be=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},xe=function(e,t){return e+":placeholder-shown "+t},we=function(e){return ke((function(t){return e(t,"&")}),"[role=group]","[data-group]",".group")},Ce=function(e){return ke((function(t){return e(t,"~ &")}),"[data-peer]",".peer")},ke=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(e).join(", ")},Se={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:we(fe),_peerHover:Ce(fe),_groupFocus:we(pe),_peerFocus:Ce(pe),_groupFocusVisible:we(he),_peerFocusVisible:Ce(he),_groupActive:we(ve),_peerActive:Ce(ve),_groupDisabled:we(ge),_peerDisabled:Ce(ge),_groupInvalid:we(ye),_peerInvalid:Ce(ye),_groupChecked:we(be),_peerChecked:Ce(be),_groupFocusWithin:we(me),_peerFocusWithin:Ce(me),_peerPlaceholderShown:Ce(xe),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},Oe=(0,n.Yd)(Se);function je(e,t){return de(String(e).replace(/\./g,"-"),void 0,t)}function Ee(e,t){for(var r={},o={},a=function(){var a=c[s],u=a[0],l=a[1],d=l.isSemantic,f=l.value,p=je(u,null==t?void 0:t.cssVarPrefix),h=p.variable,m=p.reference;if(!d){if(u.startsWith("space")){var v=u.split("."),g=v[0]+".-"+v.slice(1).join("."),y=se.negate(f),b=se.negate(m);o[g]={value:y,var:h,varRef:b}}return r[h]=f,o[u]={value:f,var:h,varRef:m},"continue"}var x=(0,n.Kn)(f)?f:{default:f};r=i()(r,Object.entries(x).reduce((function(r,n){var o,i,a=n[0],s=function(r){var n=[String(u).split(".")[0],r].join(".");return e[n]?je(n,null==t?void 0:t.cssVarPrefix).reference:r}(n[1]);return"default"===a?(r[h]=s,r):(r[null!=(o=null==Se?void 0:Se[a])?o:a]=((i={})[h]=s,i),r)}),{})),o[u]={value:m,var:h,varRef:m}},s=0,c=Object.entries(e);s<c.length;s++)a();return{cssVars:r,cssMap:o}}var Pe=["__cssMap","__cssVars","__breakpoints"],_e=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function Te(e){var t=_e;return(0,n.ei)(e,t)}function Ae(e){return e.__cssMap,e.__cssVars,e.__breakpoints,function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,Pe)}function Re(e){var t,r=Ae(e),o=Te(r),i=function(e){return e.semanticTokens}(r),s=function(e){var t,r,o=e.tokens,i=e.semanticTokens,a=Object.entries(null!=(t=(0,n.xH)(o))?t:{}).map((function(e){return[e[0],{isSemantic:!1,value:e[1]}]})),s=Object.entries(null!=(r=(0,n.xH)(i,1))?r:{}).map((function(e){return[e[0],{isSemantic:!0,value:e[1]}]}));return(0,n.sq)([].concat(a,s))}({tokens:o,semanticTokens:i}),c=Ee(s,{cssVarPrefix:null==(t=r.config)?void 0:t.cssVarPrefix}),u=c.cssMap,l=c.cssVars;return Object.assign(r,{__cssVars:a({},{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},l),__cssMap:u,__breakpoints:(0,n.yn)(r.breakpoints)}),r}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Me(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"===typeof e)return De(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?De(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Ie=i()({},R,D,M,N,z,F,q,B,L,Z,H,I,G,J,X,Q,Y,V,K),Fe=Object.assign({},G,z,N,L,H),Ne=((0,n.Yd)(Fe),[].concat((0,n.Yd)(Ie),Oe)),Le=a({},Ie,Se),Be=function(e){return e in Le},ze=function(e,t){return e.startsWith("--")&&(0,n.HD)(t)&&!(0,n.FS)(t)},Ve=function(e,t){var r,n;if(null==t)return t;var o=function(t){var r,n;return null==(r=e.__cssMap)||null==(n=r[t])?void 0:n.varRef},i=function(e){var t;return null!=(t=o(e))?t:e},a=t.split(",").map((function(e){return e.trim()})),s=a[0],c=a[1];return t=null!=(r=null!=(n=o(s))?n:i(c))?r:i(t)};function Ue(e){var t=e.configs,r=void 0===t?{}:t,o=e.pseudos,a=void 0===o?{}:o,s=e.theme;return function e(t,o){void 0===o&&(o=!1);var c=(0,n.Pu)(t,s),u=function(e){return function(t){if(!t.__breakpoints)return e;var r=t.__breakpoints,o=r.isResponsive,i=r.toArrayValue,a=r.media,s={};for(var c in e){var u=(0,n.Pu)(e[c],t);
1if(null!=u)if(u=(0,n.Kn)(u)&&o(u)?i(u):u,Array.isArray(u))for(var l=u.slice(0,a.length).length,d=0;d<l;d+=1){var f=null==a?void 0:a[d];f?(s[f]=s[f]||{},null!=u[d]&&(s[f][c]=u[d])):s[c]=u[d]}else s[c]=u}return s}}(c)(s),l={};for(var d in u){var f,p,h,m,v,g=u[d],y=(0,n.Pu)(g,s);d in a&&(d=a[d]),ze(d,y)&&(y=Ve(s,y));var b=r[d];if(!0===b&&(b={property:d}),(0,n.Kn)(y)){var x;l[d]=null!=(x=l[d])?x:{},l[d]=i()({},l[d],e(y,!0))}else{var w=null!=(f=null==(p=b)||null==p.transform?void 0:p.transform(y,s,c))?f:y;w=null!=(h=b)&&h.processResult?e(w,!0):w;var C=(0,n.Pu)(null==(m=b)?void 0:m.property,s);if(!o&&null!=(v=b)&&v.static){var k=(0,n.Pu)(b.static,s);l=i()({},l,k)}if(C&&Array.isArray(C))for(var S,O=Me(C);!(S=O()).done;){l[S.value]=w}else C?"&"===C&&(0,n.Kn)(w)?l=i()({},l,w):l[C]=w:(0,n.Kn)(w)?l=i()({},l,w):l[d]=w}}return l}}var $e=function(e){return function(t){return Ue({theme:t,pseudos:Se,configs:Ie})(e)}};function We(e){var t=e.__breakpoints;return function(e,r,o,a){if(t){var s={},c=function(e,t){return(0,n.kJ)(e)?e:(0,n.Kn)(e)?t(e):null!=e?[e]:void 0}(o,t.toArrayValue);if(!c)return s;for(var u=c.length,l=1===u,d=!!e.parts,f=function(o){var u,f,p=t.details[o],h=t.details[function(e,t){for(var r=t+1;r<e.length;r++)if(null!=e[r])return r;return-1}(c,o)],m=(0,n.Y2)(p.minW,null==h?void 0:h._minW),v=(0,n.Pu)(null==(u=e[r])?void 0:u[c[o]],a);return v?d?(null==(f=e.parts)||f.forEach((function(e){var t,r;i()(s,((r={})[e]=l?v[e]:((t={})[m]=v[e],t),r))})),"continue"):d?void(s[m]=v):(l?i()(s,v):s[m]=v,"continue"):"continue"},p=0;p<u;p++)f(p);return s}}}function Ze(e){return function(t){var r,o=t.variant,a=t.size,s=We(t.theme);return i()({},(0,n.Pu)(null!=(r=e.baseStyle)?r:{},t),s(e,"sizes",a,t),s(e,"variants",o,t))}}},4971:function(e,t,r){"use strict";r.d(t,{r:function(){return W}});var n=r(9703),o=r(6450),i=r(7294),a=r(7375),s=r(4697),c=r(1604),u=r(8043),l=r(1190),d=r(9762),f=r(1358),p=!1,h=null,m=!1,v=new Set,g="undefined"!==typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function y(e,t){v.forEach((r=>r(e,t)))}function b(e){m=!0,function(e){return!(e.metaKey||!g&&e.altKey||e.ctrlKey)}(e)&&(h="keyboard",y("keyboard",e))}function x(e){h="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(m=!0,y("pointer",e))}function w(e){e.target!==window&&e.target!==document&&(m||(h="keyboard",y("keyboard",e)),m=!1)}function C(){m=!1}function k(){return"pointer"!==h}function S(e){!function(){if("undefined"===typeof window||p)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){m=!0,e.apply(this,t)},document.addEventListener("keydown",b,!0),document.addEventListener("keyup",b,!0),window.addEventListener("focus",w,!0),window.addEventListener("blur",C,!1),"undefined"!==typeof PointerEvent?(document.addEventListener("pointerdown",x,!0),document.addEventListener("pointermove",x,!0),document.addEventListener("pointerup",x,!0)):(document.addEventListener("mousedown",x,!0),document.addEventListener("mousemove",x,!0),document.addEventListener("mouseup",x,!0)),p=!0}(),e(k());const t=()=>e(k());return v.add(t),()=>{v.delete(t)}}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(this,arguments)}var j=(0,o.kr)({name:"CheckboxGroupContext",strict:!1}),E=(j[0],j[1]);function P(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}n.Ts;var _=["isIndeterminate","isChecked"];var T=function(e){var t=u.E;return"custom"in t&&"function"===typeof t.custom?t.custom(e):t(e)}(c.m$.svg),A=function(e){return i.createElement(T,O({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},e),i.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},R=function(e){return i.createElement(T,O({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0}
1,checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},e),i.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},D=function(e){var t=e.open,r=e.children;return i.createElement(l.M,{initial:!1},t&&i.createElement(u.E.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},r))},M=function(e){var t=e.isIndeterminate,r=e.isChecked,n=P(e,_),o=t?R:A;return i.createElement(D,{open:r||t},i.createElement(o,n))},I=["defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function F(e){void 0===e&&(e={});var t=(0,d.Kn)(e),r=t.isDisabled,c=t.isReadOnly,u=t.isRequired,l=t.isInvalid,p=t.id,h=t.onBlur,m=t.onFocus,v=t["aria-describedby"],g=e,y=g.defaultChecked,b=g.isChecked,x=g.isFocusable,w=g.onChange,C=g.isIndeterminate,k=g.name,j=g.value,E=g.tabIndex,_=void 0===E?void 0:E,T=g["aria-label"],A=g["aria-labelledby"],R=g["aria-invalid"],D=P(g,I),M=(0,n.CE)(D,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),F=(0,s.u)(w),L=(0,s.u)(h),B=(0,s.u)(m),z=(0,i.useState)(!1),V=z[0],U=z[1],$=(0,a.kt)(),W=$[0],Z=$[1],H=(0,a.kt)(),q=H[0],G=H[1],Q=(0,a.kt)(),Y=Q[0],K=Q[1];(0,i.useEffect)((function(){return S(U)}),[]);var X=(0,i.useRef)(null),J=(0,i.useState)(!0),ee=J[0],te=J[1],re=(0,i.useState)(!!y),ne=re[0],oe=re[1],ie=(0,a.pY)(b,ne),ae=ie[0],se=ie[1],ce=(0,i.useCallback)((function(e){c||r?e.preventDefault():(ae||oe(se?e.target.checked:!!C||e.target.checked),null==F||F(e))}),[c,r,se,ae,C,F]);(0,s.a)((function(){X.current&&(X.current.indeterminate=Boolean(C))}),[C]),(0,a.rf)((function(){r&&Z.off()}),[r,Z]),(0,s.a)((function(){var e=X.current;null!=e&&e.form&&(e.form.onreset=function(){oe(!!y)})}),[]);var ue=r&&!x,le=(0,i.useCallback)((function(e){" "===e.key&&K.on()}),[K]),de=(0,i.useCallback)((function(e){" "===e.key&&K.off()}),[K]);(0,s.a)((function(){X.current&&(X.current.checked!==se&&oe(X.current.checked))}),[X.current]);var fe=(0,i.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);return O({},e,{ref:t,"data-active":(0,n.PB)(Y),"data-hover":(0,n.PB)(q),"data-checked":(0,n.PB)(se),"data-focus":(0,n.PB)(W),"data-focus-visible":(0,n.PB)(W&&V),"data-indeterminate":(0,n.PB)(C),"data-disabled":(0,n.PB)(r),"data-invalid":(0,n.PB)(l),"data-readonly":(0,n.PB)(c),"aria-hidden":!0,onMouseDown:(0,n.v0)(e.onMouseDown,(function(e){W&&e.preventDefault(),K.on()})),onMouseUp:(0,n.v0)(e.onMouseUp,K.off),onMouseEnter:(0,n.v0)(e.onMouseEnter,G.on),onMouseLeave:(0,n.v0)(e.onMouseLeave,G.off)})}),[Y,se,r,W,V,q,C,l,c,K,G.off,G.on]),pe=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),O({},M,e,{ref:(0,o.lq)(t,(function(e){e&&te("LABEL"===e.tagName)})),onClick:(0,n.v0)(e.onClick,(function(){var e;ee||(null==(e=X.current)||e.click(),(0,n.T_)(X.current,{nextTick:!0}))})),"data-disabled":(0,n.PB)(r),"data-checked":(0,n.PB)(se),"data-invalid":(0,n.PB)(l)})}),[M,r,se,l,ee]),he=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),O({},e,{ref:(0,o.lq)(X,t),type:"checkbox",name:k,value:j,id:p,tabIndex:_,onChange:(0,n.v0)(e.onChange,ce),onBlur:(0,n.v0)(e.onBlur,L,Z.off),onFocus:(0,n.v0)(e.onFocus,B,Z.on),onKeyDown:(0,n.v0)(e.onKeyDown,le),onKeyUp:(0,n.v0)(e.onKeyUp,de),required:u,checked:se,disabled:ue,readOnly:c,"aria-label":T,"aria-labelledby":A,"aria-invalid":R?Boolean(R):l,"aria-describedby":v,"aria-disabled":r,style:f.NL})}),[k,j,p,ce,Z.off,Z.on,L,B,le,de,u,se,ue,c,T,A,R,l,v,r,_]),me=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),O({},e,{ref:t,onMouseDown:(0,n.v0)(e.onMouseDown,N),onTouchStart:(0,n.v0)(e.onTouchStart,N),"data-disabled":(0,n.PB)(r),"data-checked":(0,n.PB)(se),"data-invalid":(0,n.PB)(l)})}),[se,r,l]);return{state:{isInvalid:l,isFocused:W,isChecked:se,isActive:Y,isHovered:q,isIndeterminate:C,isDisabled:r,isReadOnly:c,isRequired:u}
1,getRootProps:pe,getCheckboxProps:fe,getInputProps:he,getLabelProps:me,htmlProps:M}}function N(e){e.preventDefault(),e.stopPropagation()}var L=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],B=(0,c.m$)("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),z=(0,c.m$)("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),V=(0,c.Gp)((function(e,t){var r=E(),o=O({},r,e),a=(0,c.jC)("Checkbox",o),s=(0,c.Lr)(e),u=s.spacing,l=void 0===u?"0.5rem":u,d=s.className,f=s.children,p=s.iconColor,h=s.iconSize,m=s.icon,v=void 0===m?i.createElement(M,null):m,g=s.isChecked,y=s.isDisabled,b=void 0===y?null==r?void 0:r.isDisabled:y,x=s.onChange,w=s.inputProps,C=P(s,L),k=g;null!=r&&r.value&&s.value&&(k=r.value.includes(s.value));var S=x;null!=r&&r.onChange&&s.value&&(S=(0,n.PP)(r.onChange,x));var j=F(O({},C,{isDisabled:b,isChecked:k,onChange:S})),_=j.state,T=j.getInputProps,A=j.getCheckboxProps,R=j.getLabelProps,D=j.getRootProps,I=i.useMemo((function(){return O({opacity:_.isChecked||_.isIndeterminate?1:0,transform:_.isChecked||_.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:h,color:p},a.icon)}),[p,h,_.isChecked,_.isIndeterminate,a.icon]),N=i.cloneElement(v,{__css:I,isIndeterminate:_.isIndeterminate,isChecked:_.isChecked});return i.createElement(z,O({__css:a.container,className:(0,n.cx)("chakra-checkbox",d)},D()),i.createElement("input",O({className:"chakra-checkbox__input"},T(w,t))),i.createElement(B,O({__css:a.control,className:"chakra-checkbox__control"},A()),N),f&&i.createElement(c.m$.span,O({className:"chakra-checkbox__label"},R(),{__css:O({marginStart:l},a.label)}),f))}));function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},U.apply(this,arguments)}n.Ts&&(V.displayName="Checkbox");var $=["spacing","children"],W=(0,c.Gp)((function(e,t){var r=(0,c.jC)("Switch",e),o=(0,c.Lr)(e),a=o.spacing,s=void 0===a?"0.5rem":a,u=o.children,l=F(function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(o,$)),d=l.state,f=l.getInputProps,p=l.getCheckboxProps,h=l.getRootProps,m=l.getLabelProps,v=i.useMemo((function(){return U({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0},r.container)}),[r.container]),g=i.useMemo((function(){return U({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},r.track)}),[r.track]),y=i.useMemo((function(){return U({userSelect:"none",marginStart:s},r.label)}),[s,r.label]);return i.createElement(c.m$.label,U({},h(),{className:(0,n.cx)("chakra-switch",e.className),__css:v}),i.createElement("input",U({className:"chakra-switch__input"},f({},t))),i.createElement(c.m$.span,U({},p(),{className:"chakra-switch__track",__css:g}),i.createElement(c.m$.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":(0,n.PB)(d.isChecked),"data-hover":(0,n.PB)(d.isHovered)})),u&&i.createElement(c.m$.span,U({className:"chakra-switch__label"},m(),{__css:y}),u))}));n.Ts&&(W.displayName="Switch")},1604:function(e,t,r){"use strict";r.d(t,{ZL:function(){return F},f6:function(){return A},m$:function(){return K},eC:function(){return I},Gp:function(){return H},LP:function(){return N},Lr:function(){return L},jC:function(){return Y},mq:function(){return Q},Fg:function(){return D}});var n=r(949),o=r(4244),i=r(917),a=r(3663),s=r(9703),c=r(8554),u=r.n(c),l=r(6450),d=r(7294),f=r.t(d,2),p=r(7462),h=r(7866),m=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
1ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,v=(0,h.Z)((function(e){return m.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),g=r(444),y=r(3772),b=v,x=function(e){return"theme"!==e},w=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?b:x},C=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof n&&r&&(n=e.__emotion_forwardProp),n},k=f.useInsertionEffect?f.useInsertionEffect:function(e){e()};var S=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;(0,g.hC)(t,r,n);k((function(){return(0,g.My)(t,r,n)}));return null},O=function e(t,r){var n,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var c=C(t,r,i),u=c||w(s),l=!u("as");return function(){var f=arguments,h=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&h.push("label:"+n+";"),null==f[0]||void 0===f[0].raw)h.push.apply(h,f);else{0,h.push(f[0][0]);for(var m=f.length,v=1;v<m;v++)h.push(f[v],f[0][v])}var b=(0,a.w)((function(e,t,r){var n=l&&e.as||s,i="",f=[],p=e;if(null==e.theme){for(var m in p={},e)p[m]=e[m];p.theme=(0,d.useContext)(a.T)}"string"===typeof e.className?i=(0,g.fp)(t.registered,f,e.className):null!=e.className&&(i=e.className+" ");var v=(0,y.O)(h.concat(f),t.registered,p);i+=t.key+"-"+v.name,void 0!==o&&(i+=" "+o);var b=l&&void 0===c?w(n):u,x={};for(var C in e)l&&"as"===C||b(C)&&(x[C]=e[C]);return x.className=i,x.ref=r,(0,d.createElement)(d.Fragment,null,(0,d.createElement)(S,{cache:t,serialized:v,isStringTag:"string"===typeof n}),(0,d.createElement)(n,x))}));return b.displayName=void 0!==n?n:"Styled("+("string"===typeof s?s:s.displayName||s.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=s,b.__emotion_styles=h,b.__emotion_forwardProp=c,Object.defineProperty(b,"toString",{value:function(){return"."+o}}),b.withComponent=function(t,n){return e(t,(0,p.Z)({},r,n,{shouldForwardProp:C(b,n,!0)})).apply(void 0,h)},b}},j=O.bind();["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","marquee","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"].forEach((function(e){j[e]=j(e)}));var E=j,P=r(9590),_=r.n(P);function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},T.apply(this,arguments)}var A=function(e){var t=e.cssVarsRoot,r=e.theme,n=e.children,i=d.useMemo((function(){return(0,o.c0)(r)}),[r]);return d.createElement(a.b,{theme:i},d.createElement(R,{root:t}),n)},R=function(e){var t=e.root,r=[void 0===t?":host, :root":t,"[data-theme]"].join(",");return d.createElement(i.xB,{styles:function(e){var t;return(t={})[r]=e.__cssVars,t}})};function D(){var e=d.useContext(a.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var M=(0,l.kr)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "}),I=(M[0],M[1],function(e){return(0,l.kr)({name:e+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<'+e+' />" '})}),F=function(){var e=(0,n.If)().colorMode;return d.createElement(i.xB,{styles:function(t){var r=(0,s.Wf)(t,"styles.global"),n=(0,s.Pu)(r,{theme:t,colorMode:e});if(n){var i=(0,o.iv)(n)(t);return i}}})};function N(e,t,r){var n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return function(r){var i=o.filter(Boolean),a=n.map((function(t,n){var o,a;return"breakpoints"===e?function(e,t,r){var n,o;if(null==t)return t;var i=function(t){var r,n;return null==(r=e.__breakpoints)||null==(n=r.asArray)?void 0:n[t]};return null!=(n=null!=(o=i(t))?o:i(r))?n:r}(r,t,null!=(a=i[n])?a:t):function(e,t,r){var n,o;if(null==t)return t;var i=function(t){var r,n;return null==(r=e.__cssMap)||null==(n=r[t])?void 0:n.value};return null!=(n=null!=(o=i(t))?o:i(r))?n:r}(r,e+"."+t,null!=(o=i[n])?o:t)}));return Array.isArray(t)?a:a[0]}}function L(e){return(0,s.CE)(e,["styleConfig","size","variant","colorScheme"])}function B(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var z=new Set([].concat(o.cC,["textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),V=new Set(["htmlWidth","htmlHeight","htmlSize"]),U=function(e){return V.has(e)||!z.has(e)},$=["theme","css","__css","sx"],W=["baseStyle"];function Z(e,t){var r=null!=t?t:{},n=r.baseStyle,i=B(r,W);i.shouldForwardProp||(i.shouldForwardProp=U);var a=function(e){var t=e.baseStyle;return function(e){e.theme;var r=e.css,n=e.__css,i=e.sx,a=B(e,$),c=(0,s.lw)(a,(function(e,t){return(0,o.ZR)(t)})),u=(0,s.Pu)(t,e),l=Object.assign({},n,u,(0,s.YU)(c),i),d=(0,o.iv)(l)(e.theme);return r?[d,r]:d}}({baseStyle:n});return E(e,i)(a)}function H(e){return d.forwardRef(e)}var q=["styleConfig"];function G(e,t){var r;void 0===t&&(t={});var i=t,a=i.styleConfig,c=B(i,q),l=T({},(0,n.If)(),{theme:D()}),f=l.theme,p=l.colorMode,h=(0,s.Wf)(f,"components."+e),m=a||h,v=u()({theme:f,colorMode:p},null!=(r=null==m?void 0:m.defaultProps)?r:{},(0,s.YU)((0,s.CE)(c,["children"]))),g=(0,d.useRef)({});if(m){var y=(0,o.Ud)(m)(v);_()(g.current,y)||(g.current=y)}return g.current}function Q(e,t){return void 0===t&&(t={}),G(e,t)}function Y(e,t){return void 0===t&&(t={}),G(e,t)}var K=function(){var e=new Map;return new Proxy(Z,{apply:function(e,t,r){return Z.apply(void 0,r)},get:function(t,r){return e.has(r)||e.set(r,Z(r)),e.get(r)}})}()},7826:function(e,t,r){"use strict";r.d(t,{ZP:function(){return Bn},gk:function(){return Ln},rS:function(){return Bn}});var n={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"};function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}var i=o({},n,{max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem"},{container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}});function a(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function s(e){return Math.min(1,Math.max(0,e))}function c(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function u(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}function d(e,t,r){e=a(e,255),t=a(t,255),r=a(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i=0,s=0,c=(n+o)/2;if(n===o)s=0,i=0;else{var u=n-o;switch(s=c>.5?u/(2-n-o):u/(n+o),n){case e:i=(t-r)/u+(t<r?6:0);break;case t:i=(r-e)/u+2;break;case r:i=(e-t)/u+4}i/=6}return{h:i,s:s,l:c}}function f(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*r*(t-e):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function p(e,t,r){e=a(e,255),t=a(t,255),r=a(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i=0,s=n,c=n-o,u=0===n?0:c/n;
1if(n===o)i=0;else{switch(n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4}i/=6}return{h:i,s:u,v:s}}function h(e,t,r,n){var o=[l(Math.round(e).toString(16)),l(Math.round(t).toString(16)),l(Math.round(r).toString(16))];return n&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function m(e){return Math.round(255*parseFloat(e)).toString(16)}function v(e){return g(e)/255}function g(e){return parseInt(e,16)}var y={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function b(e){var t,r,n,o={r:0,g:0,b:0},i=1,s=null,l=null,d=null,p=!1,h=!1;return"string"===typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(y[e])e=y[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=k.rgb.exec(e);if(r)return{r:r[1],g:r[2],b:r[3]};if(r=k.rgba.exec(e))return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=k.hsl.exec(e))return{h:r[1],s:r[2],l:r[3]};if(r=k.hsla.exec(e))return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=k.hsv.exec(e))return{h:r[1],s:r[2],v:r[3]};if(r=k.hsva.exec(e))return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=k.hex8.exec(e))return{r:g(r[1]),g:g(r[2]),b:g(r[3]),a:v(r[4]),format:t?"name":"hex8"};if(r=k.hex6.exec(e))return{r:g(r[1]),g:g(r[2]),b:g(r[3]),format:t?"name":"hex"};if(r=k.hex4.exec(e))return{r:g(r[1]+r[1]),g:g(r[2]+r[2]),b:g(r[3]+r[3]),a:v(r[4]+r[4]),format:t?"name":"hex8"};if(r=k.hex3.exec(e))return{r:g(r[1]+r[1]),g:g(r[2]+r[2]),b:g(r[3]+r[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(S(e.r)&&S(e.g)&&S(e.b)?(t=e.r,r=e.g,n=e.b,o={r:255*a(t,255),g:255*a(r,255),b:255*a(n,255)},p=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):S(e.h)&&S(e.s)&&S(e.v)?(s=u(e.s),l=u(e.v),o=function(e,t,r){e=6*a(e,360),t=a(t,100),r=a(r,100);var n=Math.floor(e),o=e-n,i=r*(1-t),s=r*(1-o*t),c=r*(1-(1-o)*t),u=n%6;return{r:255*[r,s,i,i,c,r][u],g:255*[c,r,r,s,i,i][u],b:255*[i,i,c,r,r,s][u]}}(e.h,s,l),p=!0,h="hsv"):S(e.h)&&S(e.s)&&S(e.l)&&(s=u(e.s),d=u(e.l),o=function(e,t,r){var n,o,i;if(e=a(e,360),t=a(t,100),r=a(r,100),0===t)o=r,i=r,n=r;
vendor: 4,841 bytes, line 1
1else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=f(c,s,e+1/3),o=f(c,s,e),i=f(c,s,e-1/3)}return{r:255*n,g:255*o,b:255*i}}(e.h,s,d),p=!0,h="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=c(i),{ok:p,format:e.format||h,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var x="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),w="[\\s|\\(]+(".concat(x,")[,|\\s]+(").concat(x,")[,|\\s]+(").concat(x,")\\s*\\)?"),C="[\\s|\\(]+(".concat(x,")[,|\\s]+(").concat(x,")[,|\\s]+(").concat(x,")[,|\\s]+(").concat(x,")\\s*\\)?"),k={CSS_UNIT:new RegExp(x),rgb:new RegExp("rgb"+w),rgba:new RegExp("rgba"+C),hsl:new RegExp("hsl"+w),hsla:new RegExp("hsla"+C),hsv:new RegExp("hsv"+w),hsva:new RegExp("hsva"+C),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function S(e){return Boolean(k.CSS_UNIT.exec(String(e)))}var O=function(){function e(t,r){var n;if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"===typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=b(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(n=r.format)&&void 0!==n?n:o.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,r=e.g/255,n=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=c(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=p(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=p(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(n,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(n,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=d(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=d(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(n,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(n,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),h(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,r,n,o){var i=[l(Math.round(e).toString(16)),l(Math.round(t).toString(16)),l(Math.round(r).toString(16)),l(m(n))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*a(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*a(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+h(this.r,this.g,this.b,!1),t=0,r=Object.entries(y);t<r.length;t++){var n=r[t],o=n[0];if(e===n[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var r=!1,n=this.a<1&&this.a>=0;
1return t||!n||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=s(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-t/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-t/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-t/100*255))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=s(r.l),new e(r)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=s(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=s(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),i=r/100;return new e({r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a})},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),o=360/r,i=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,i=r.v,a=[],s=1/t;t--;)a.push(new e({h:n,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb();return new e({r:n.r+(r.r-n.r)*r.a,g:n.g+(r.g-n.g)*r.a,b:n.b+(r.b-n.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(n+a*i)%360,s:r.s,l:r.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function j(e){if(void 0===e&&(e={}),void 0!==e.count&&null!==e.count){var t=e.count,r=[];for(e.count=void 0;t>r.length;)e.count=null,e.seed&&(e.seed+=1),r.push(j(e));return e.count=t,r}var n=function(e,t){var r=P(function(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if("string"===typeof e){var r=T.find((function(t){return t.name===e}));if(r){var n=_(r);if(n.hueRange)return n.hueRange}var o=new O(e);if(o.isValid){var i=o.toHsv().h;return[i,i]}}return[0,360]}(e),t);r<0&&(r=360+r);return r}(e.hue,e.seed),o=function(e,t){if("monochrome"===t.hue)return 0;if("random"===t.luminosity)return P([0,100],t.seed);var r=E(e).saturationRange,n=r[0],o=r[1];switch(t.luminosity){case"bright":n=55;break;case"dark":n=o-10;break;case"light":o=55}return P([n,o],t.seed)}(n,e),i=function(e,t,r){var n=function(e,t){for(var r=E(e).lowerBounds,n=0;n<r.length-1;n++){var o=r[n][0],i=r[n][1],a=r[n+1][0],s=r[n+1][1];if(t>=o&&t<=a){var c=(s-i)/(a-o);return c*t+(i-c*o)}}return 0}(e,t),o=100;switch(r.luminosity){case"dark":o=n+20;break;case"light":n=(o+n)/2;break;case"random":n=0,o=100}return P([n,o],r.seed)}(n,o,e),a={h:n,s:o,v:i};return void 0!==e.alpha&&(a.a=e.alpha),new O(a)}function E(e){e>=334&&e<=360&&(e-=360);for(var t=0,r=T;t<r.length;t++){var n=_(r[t]);if(n.hueRange&&e>=n.hueRange[0]&&e<=n.hueRange[1])return n}throw Error("Color not found")}function P(e,t){if(void 0===t)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var r=e[1]||1,n=e[0]||0,o=(t=(9301*t+49297)%233280)/233280;return Math.floor(n+o*(r-n))}function _(e){var t=e.lowerBounds[0][0],r=e.lowerBounds[e.lowerBounds.length-1][0],n=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,r],brightnessRange:[n,o]}}var T=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],A=r(9703),R=function(e,t,r){var n=(0,A.Wf)(e,"colors."+t,t);return new O(n).isValid?n:r},D=function(e){return function(t){var r=R(t,e);return new O(r).isDark()?"dark":"light"}},M=function(e,t){return function(r){var n=R(r,e);return new O(n).setAlpha(t).toRgbString()}};function I(e,t){return void 0===e&&(e="1rem"),void 0===t&&(t="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n 45deg,\n "+t+" 25%,\n transparent 25%,\n transparent 50%,\n "+t+" 50%,\n "+t+" 75%,\n transparent 75%,\n transparent\n )",backgroundSize:e+" "+e}}function F(e){var t,r=j().toHexString();return!e||(0,A.Qr)(e)?r:e.string&&e.colors?function(e,t){var r=0;if(0===e.length)return t[0];for(var n=0;n<e.length;
1n+=1)r=e.charCodeAt(n)+((r<<5)-r),r&=r;return r=(r%t.length+t.length)%t.length,t[r]}(e.string,e.colors):e.string&&!e.colors?function(e){var t=0;if(0===e.length)return t.toString();for(var r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t&=t;for(var n="#",o=0;o<3;o+=1){n+=("00"+(t>>8*o&255).toString(16)).substr(-2)}return n}(e.string):e.colors&&!e.string?(t=e.colors)[Math.floor(Math.random()*t.length)]:r}function N(e,t){return function(r){return"dark"===r.colorMode?t:e}}function L(e){var t=e.orientation,r=e.vertical,n=e.horizontal;return t?"vertical"===t?r:n:{}}function B(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var z=function(){function e(e){var t=this;this.map={},this.called=!1,this.assert=function(){if(t.called)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");t.called=!0},this.parts=function(){t.assert();for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];t.map[a]=t.toPart(a)}return t},this.extend=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];a in t.map||(t.map[a]=t.toPart(a))}return t},this.toPart=function(e){var r="chakra-"+(["container","root"].includes(null!=e?e:"")?[t.name]:[t.name,e]).filter(Boolean).join("__");return{className:r,selector:"."+r,toString:function(){return e}}},this.__type={}}var t,r,n;return t=e,(r=[{key:"selectors",get:function(){return(0,A.sq)(Object.entries(this.map).map((function(e){return[e[0],e[1].selector]})))}},{key:"classNames",get:function(){return(0,A.sq)(Object.entries(this.map).map((function(e){return[e[0],e[1].className]})))}},{key:"keys",get:function(){return Object.keys(this.map)}}])&&B(t.prototype,r),n&&B(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function V(e){return new z(e)}function U(e){return(0,A.Kn)(e)&&e.reference?e.reference:String(e)}var $=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.map(U).join(" "+e+" ").replace(/calc/g,"")},W=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+$.apply(void 0,["+"].concat(t))+")"},Z=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+$.apply(void 0,["-"].concat(t))+")"},H=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+$.apply(void 0,["*"].concat(t))+")"},q=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"calc("+$.apply(void 0,["/"].concat(t))+")"},G=function(e){var t=U(e);return null==t||Number.isNaN(parseFloat(t))?H(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},Q=Object.assign((function(e){return{add:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Q(W.apply(void 0,[e].concat(r)))},subtract:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Q(Z.apply(void 0,[e].concat(r)))},multiply:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Q(H.apply(void 0,[e].concat(r)))},divide:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Q(q.apply(void 0,[e].concat(r)))},negate:function(){return Q(G(e))},toString:function(){return e.toString()}}}),{add:W,subtract:Z,multiply:H,divide:q,negate:G});function Y(e){var t=function(e,t){return void 0===t&&(t="-"),e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function K(e,t){return"var("+Y(e)+(t?", "+t:"")+")"}function X(e,t){return void 0===t&&(t=""),"--"+function(e,t){return void 0===t&&(t=""),[t,Y(e)].filter(Boolean).join("-")}(e,t)}function J(e,t){var r=X(e,null==t?void 0:t.prefix);return{variable:r,reference:K(r,ee(null==t?void 0:t.fallback))}}function ee(e){return"string"===typeof e?e:null==e?void 0:e.reference}var te=V("accordion").parts("root","container","button","panel").extend("icon"),re=V("alert").parts("title","description","container").extend("icon","spinner"),ne=V("avatar").parts("label","badge","container").extend("excessLabel","group"),oe=V("breadcrumb").parts("link","item","container").extend("separator"),ie=(V("button").parts(),V("checkbox").parts("control","icon","container").extend("label")),ae=(V("progress").parts("track","filledTrack").extend("label"),V("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),se=V("editable").parts("preview","input","textarea"),
1ce=V("form").parts("container","requiredIndicator","helperText"),ue=V("formError").parts("text","icon"),le=V("input").parts("addon","field","element"),de=V("list").parts("container","item","icon"),fe=V("menu").parts("button","list","item").extend("groupTitle","command","divider"),pe=V("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),he=V("numberinput").parts("root","field","stepperGroup","stepper"),me=(V("pininput").parts("field"),V("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),ve=V("progress").parts("label","filledTrack","track"),ge=V("radio").parts("container","control","label"),ye=V("select").parts("field","icon"),be=V("slider").parts("container","track","thumb","filledTrack"),xe=V("stat").parts("container","label","helpText","number","icon"),we=V("switch").parts("container","track","thumb"),Ce=V("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),ke=V("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Se=V("tag").parts("container","label","closeButton"),Oe={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},je=r(8554),Ee=r.n(je),Pe=r(917),_e={root:{},container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"1rem",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:4,py:2},panel:{pt:2,px:4,pb:5},icon:{fontSize:"1.25em"}},Te={parts:te.keys,baseStyle:_e};function Ae(e){var t=e.theme,r=e.colorScheme;return N(R(t,r+".100",r),M(r+".200",.16)(t))(e)}var Re={subtle:function(e){var t=e.colorScheme;return{container:{bg:Ae(e)},icon:{color:N(t+".500",t+".200")(e)},spinner:{color:N(t+".500",t+".200")(e)}}},"left-accent":function(e){var t=e.colorScheme;return{container:{paddingStart:3,borderStartWidth:"4px",borderStartColor:N(t+".500",t+".200")(e),bg:Ae(e)},icon:{color:N(t+".500",t+".200")(e)},spinner:{color:N(t+".500",t+".200")(e)}}},"top-accent":function(e){var t=e.colorScheme;return{container:{pt:2,borderTopWidth:"4px",borderTopColor:N(t+".500",t+".200")(e),bg:Ae(e)},icon:{color:N(t+".500",t+".200")(e)},spinner:{color:N(t+".500",t+".200")(e)}}},solid:function(e){var t=e.colorScheme;return{container:{bg:N(t+".500",t+".200")(e),color:N("white","gray.900")(e)}}}},De={parts:re.keys,baseStyle:{container:{px:4,py:3},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6},icon:{flexShrink:0,marginEnd:3,w:5,h:6},spinner:{flexShrink:0,marginEnd:3,w:5,h:5}},variants:Re,defaultProps:{variant:"subtle",colorScheme:"blue"}},Me=function(e){return{transform:"translate(25%, 25%)",borderRadius:"full",border:"0.2em solid",borderColor:N("white","gray.800")(e)}},Ie=function(e){return{bg:N("gray.200","whiteAlpha.400")(e)}},Fe=function(e){var t=e.name,r=e.theme,n=t?F({string:t}):"gray.400",o=function(e){return function(t){return"dark"===D(e)(t)}}(n)(r),i="white";return o||(i="gray.800"),{bg:n,color:i,borderColor:N("white","gray.800")(e),verticalAlign:"top"}};function Ne(e){var t="100%"!==e?i[e]:void 0;return{container:{width:e,height:e,fontSize:"calc("+(null!=t?t:e)+" / 2.5)"},excessLabel:{width:e,height:e},label:{fontSize:"calc("+(null!=t?t:e)+" / 2.5)",lineHeight:"100%"!==e?null!=t?t:e:void 0}}}var Le,Be,ze,Ve={"2xs":Ne(4),xs:Ne(6),sm:Ne(8),md:Ne(12),lg:Ne(16),xl:Ne(24),"2xl":Ne(32),full:Ne("100%")},Ue={parts:ne.keys,baseStyle:function(e){return{badge:Me(e),excessLabel:Ie(e),container:Fe(e)}},sizes:Ve,defaultProps:{size:"md"}},$e={solid:function(e){var t=e.colorScheme,r=e.theme;return{bg:N(t+".500",M(t+".500",.6)(r))(e),color:N("white","whiteAlpha.800")(e)}},subtle:function(e){var t=e.colorScheme,r=e.theme;return{bg:N(t+".100",M(t+".200",.16)(r))(e),color:N(t+".800",t+".200")(e)}},outline:function(e){var t=e.colorScheme,r=e.theme,n=M(t+".200",.8)(r),o=N(R(r,t+".500"),n)(e);
1return{color:o,boxShadow:"inset 0 0 0px 1px "+o}}},We={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},variants:$e,defaultProps:{variant:"subtle",colorScheme:"gray"}},Ze={link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},He={parts:oe.keys,baseStyle:Ze},qe=function(e){var t=e.colorScheme,r=e.theme;if("gray"===t)return{color:N("inherit","whiteAlpha.900")(e),_hover:{bg:N("gray.100","whiteAlpha.200")(e)},_active:{bg:N("gray.200","whiteAlpha.300")(e)}};var n=M(t+".200",.12)(r),o=M(t+".200",.24)(r);return{color:N(t+".600",t+".200")(e),bg:"transparent",_hover:{bg:N(t+".50",n)(e)},_active:{bg:N(t+".100",o)(e)}}},Ge={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Qe={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:qe,outline:function(e){var t=e.colorScheme,r=N("gray.200","whiteAlpha.300")(e);return o({border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"}},qe(e))},solid:function(e){var t,r=e.colorScheme;if("gray"===r){var n=N("gray.100","whiteAlpha.200")(e);return{bg:n,_hover:{bg:N("gray.200","whiteAlpha.300")(e),_disabled:{bg:n}},_active:{bg:N("gray.300","whiteAlpha.400")(e)}}}var o=null!=(t=Ge[r])?t:{},i=o.bg,a=void 0===i?r+".500":i,s=o.color,c=void 0===s?"white":s,u=o.hoverBg,l=void 0===u?r+".600":u,d=o.activeBg,f=void 0===d?r+".700":d,p=N(a,r+".200")(e);return{bg:p,color:N(c,"gray.800")(e),_hover:{bg:N(l,r+".300")(e),_disabled:{bg:p}},_active:{bg:N(f,r+".400")(e)}}},link:function(e){var t=e.colorScheme;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:N(t+".500",t+".200")(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:N(t+".700",t+".500")(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:0,p:0}},sizes:{lg:{h:12,minW:12,fontSize:"lg",px:6},md:{h:10,minW:10,fontSize:"md",px:4},sm:{h:8,minW:8,fontSize:"sm",px:3},xs:{h:6,minW:6,fontSize:"xs",px:2}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},Ye=function(e){var t=e.colorScheme;return{w:"100%",transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:N(t+".500",t+".200")(e),borderColor:N(t+".500",t+".200")(e),color:N("white","gray.900")(e),_hover:{bg:N(t+".600",t+".300")(e),borderColor:N(t+".600",t+".300")(e)},_disabled:{borderColor:N("gray.200","transparent")(e),bg:N("gray.200","whiteAlpha.300")(e),color:N("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:N(t+".500",t+".200")(e),borderColor:N(t+".500",t+".200")(e),color:N("white","gray.900")(e)},_disabled:{bg:N("gray.100","whiteAlpha.100")(e),borderColor:N("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:N("red.500","red.300")(e)}}},Ke={_disabled:{cursor:"not-allowed"}},Xe={userSelect:"none",_disabled:{opacity:.4}},Je={transitionProperty:"transform",transitionDuration:"normal"},et={parts:ie.keys,baseStyle:function(e){return{icon:Je,container:Ke,control:Ye(e),label:Xe}},sizes:{sm:{control:{h:3,w:3},label:{fontSize:"sm"},icon:{fontSize:"0.45rem"}},md:{control:{w:4,h:4},label:{fontSize:"md"},icon:{fontSize:"0.625rem"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"},icon:{fontSize:"0.625rem"}}},defaultProps:{size:"md",colorScheme:"blue"}},tt=J("close-button-size"),rt={baseStyle:function(e){var t=N("blackAlpha.100","whiteAlpha.100")(e),r=N("blackAlpha.200","whiteAlpha.200")(e);return{w:[tt.reference],h:[tt.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:r},_focusVisible:{boxShadow:"outline"}}},sizes:{lg:(Le={},Le[tt.variable]="40px",Le.fontSize="16px",Le),md:(Be={},Be[tt.variable]="32px",Be.fontSize="12px",Be),sm:(ze={},ze[tt.variable]="24px",ze.fontSize="10px",ze)},defaultProps:{size:"md"}},nt={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},variants:We.variants,defaultProps:We.defaultProps},ot={baseStyle:{w:"100%",mx:"auto",maxW:"60ch",px:"1rem"}},it={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}};function at(e){return"full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}}}var st={bg:"blackAlpha.600",zIndex:"overlay"},ct={display:"flex",zIndex:"modal",justifyContent:"center"},ut=function(e){return o({},e.isFullHeight&&{height:"100vh"},{zIndex:"modal",maxH:"100vh",bg:N("white","gray.700")(e),color:"inherit",boxShadow:N("lg","dark-lg")(e)})},lt={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},dt={position:"absolute",top:2,insetEnd:3},ft={px:6,py:2,flex:1,overflow:"auto"},pt={px:6,py:4}
1,ht={xs:at("xs"),sm:at("md"),md:at("lg"),lg:at("2xl"),xl:at("4xl"),full:at("full")},mt={parts:ae.keys,baseStyle:function(e){return{overlay:st,dialogContainer:ct,dialog:ut(e),header:lt,closeButton:dt,body:ft,footer:pt}},sizes:ht,defaultProps:{size:"xs"}},vt={preview:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}},gt={parts:se.keys,baseStyle:vt},yt=function(e){return{marginStart:1,color:N("red.500","red.300")(e)}},bt=function(e){return{mt:2,color:N("gray.500","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}},xt={parts:ce.keys,baseStyle:function(e){return{container:{width:"100%",position:"relative"},requiredIndicator:yt(e),helperText:bt(e)}}},wt=function(e){return{color:N("red.500","red.300")(e),mt:2,fontSize:"sm",lineHeight:"normal"}},Ct=function(e){return{marginEnd:"0.5em",color:N("red.500","red.300")(e)}},kt={parts:ue.keys,baseStyle:function(e){return{text:wt(e),icon:Ct(e)}}},St={baseStyle:{fontSize:"md",marginEnd:3,mb:2,fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},Ot={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},jt={lg:{fontSize:"lg",px:4,h:12,borderRadius:"md"},md:{fontSize:"md",px:4,h:10,borderRadius:"md"},sm:{fontSize:"sm",px:3,h:8,borderRadius:"sm"},xs:{fontSize:"xs",px:2,h:6,borderRadius:"sm"}},Et={lg:{field:jt.lg,addon:jt.lg},md:{field:jt.md,addon:jt.md}
1,sm:{field:jt.sm,addon:jt.sm},xs:{field:jt.xs,addon:jt.xs}};function Pt(e){var t=e.focusBorderColor,r=e.errorBorderColor;return{focusBorderColor:t||N("blue.500","blue.300")(e),errorBorderColor:r||N("red.500","red.300")(e)}}var _t={outline:function(e){var t=e.theme,r=Pt(e),n=r.focusBorderColor,o=r.errorBorderColor;return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:N("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:R(t,o),boxShadow:"0 0 0 1px "+R(t,o)},_focusVisible:{zIndex:1,borderColor:R(t,n),boxShadow:"0 0 0 1px "+R(t,n)}},addon:{border:"1px solid",borderColor:N("inherit","whiteAlpha.50")(e),bg:N("gray.100","whiteAlpha.300")(e)}}},filled:function(e){var t=e.theme,r=Pt(e),n=r.focusBorderColor,o=r.errorBorderColor;return{field:{border:"2px solid",borderColor:"transparent",bg:N("gray.100","whiteAlpha.50")(e),_hover:{bg:N("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:R(t,o)},_focusVisible:{bg:"transparent",borderColor:R(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:N("gray.100","whiteAlpha.50")(e)}}},flushed:function(e){var t=e.theme,r=Pt(e),n=r.focusBorderColor,o=r.errorBorderColor;return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:R(t,o),boxShadow:"0px 1px 0px 0px "+R(t,o)},_focusVisible:{borderColor:R(t,n),boxShadow:"0px 1px 0px 0px "+R(t,n)}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent"}}},unstyled:{field:{bg:"transparent",px:0,height:"auto"},addon:{bg:"transparent",px:0,height:"auto"}}},Tt={parts:le.keys,baseStyle:{field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},sizes:Et,variants:_t,defaultProps:{size:"md",variant:"outline"}},At={baseStyle:function(e){return{bg:N("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}}},Rt={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},Dt={container:{},item:{},icon:{marginEnd:"0.5rem",display:"inline",verticalAlign:"text-bottom"}},Mt={parts:de.keys,baseStyle:Dt},It=function(e){return{bg:N("#fff","gray.700")(e),boxShadow:N("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}},Ft=function(e){return{py:"0.4rem",px:"0.8rem",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:N("gray.100","whiteAlpha.100")(e)},_active:{bg:N("gray.200","whiteAlpha.200")(e)},_expanded:{bg:N("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}},Nt={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Lt={opacity:.6},Bt={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"0.5rem",opacity:.6},zt={transitionProperty:"common",transitionDuration:"normal"},Vt={parts:fe.keys,baseStyle:function(e){return{button:zt,list:It(e),item:Ft(e),groupTitle:Nt,command:Lt,divider:Bt}}},Ut={bg:"blackAlpha.600",zIndex:"modal"},$t=function(e){return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:e.isCentered?"center":"flex-start",overflow:"inside"===e.scrollBehavior?"hidden":"auto"}},Wt=function(e){var t=e.scrollBehavior;return{borderRadius:"md",bg:N("white","gray.700")(e),color:"inherit",my:"3.75rem",zIndex:"modal",maxH:"inside"===t?"calc(100% - 7.5rem)":void 0,boxShadow:N("lg","dark-lg")(e)}},Zt={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},Ht={position:"absolute",top:2,insetEnd:3},qt=function(e){return{px:6,py:2,flex:1,overflow:"inside"===e.scrollBehavior?"auto":void 0}},Gt={px:6,py:4};function Qt(e){return"full"===e?{dialog:{maxW:"100vw",minH:"100vh","@supports(min-height: -webkit-fill-available)":{minH:"-webkit-fill-available"},my:0,borderRadius:0}}:{dialog:{maxW:e}}}var Yt,Kt,Xt,Jt={xs:Qt("xs"),sm:Qt("sm"),md:Qt("md"),lg:Qt("lg"),xl:Qt("xl"),"2xl":Qt("2xl"),"3xl":Qt("3xl"),"4xl":Qt("4xl"),"5xl":Qt("5xl"),"6xl":Qt("6xl"),full:Qt("full")},er={parts:pe.keys,baseStyle:function(e){return{overlay:Ut,dialogContainer:$t(e),dialog:Wt(e),header:Zt,closeButton:Ht,body:qt(e),footer:Gt}},sizes:Jt,defaultProps:{size:"md"}},tr=Tt.variants,rr=Tt.defaultProps,nr=J("number-input-stepper-width"),or=J("number-input-input-padding"),ir=Q(nr).add("0.5rem").toString(),ar=((Yt={})[nr.variable]="24px",Yt[or.variable]=ir,Yt),sr=null!=(Kt=null==(Xt=Tt.baseStyle)?void 0:Xt.field)?Kt:{},cr={width:[nr.reference]},ur=function(e){return{borderStart:"1px solid",borderStartColor:N("inherit","whiteAlpha.300")(e),color:N("inherit","whiteAlpha.800")(e),_active:{bg:N("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}};function lr(e){var t,r,n=Tt.sizes[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(t=null==(r=n.field)?void 0:r.fontSize)?t:"md",s=Oe.fontSizes[a];return{field:o({},n.field,{paddingInlineEnd:or.reference,verticalAlign:"top"}),stepper:{fontSize:Q(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}}}var dr,fr={xs:lr("xs"),sm:lr("sm"),md:lr("md"),lg:lr("lg")},pr={parts:he.keys,baseStyle:function(e){return{root:ar,field:sr,stepperGroup:cr,stepper:ur(e)}},sizes:fr,variants:tr,defaultProps:rr},hr={baseStyle:o({},Tt.baseStyle.field,{textAlign:"center"}),sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:{outline:function(e){var t;return null!=(t=Tt.variants.outline(e).field)?t:{}},flushed:function(e){var t;return null!=(t=Tt.variants.flushed(e).field)?t:{}},filled:function(e){var t;return null!=(t=Tt.variants.filled(e).field)?t:{}},unstyled:null!=(dr=Tt.variants.unstyled.field)?dr:{}},defaultProps:Tt.defaultProps},mr=J("popper-bg"),vr=J("popper-arrow-bg"),gr=J("popper-arrow-shadow-color"),yr={zIndex:10},br=function(e){var t,r=N("white","gray.700")(e),n=N("gray.200","whiteAlpha.300")(e);return(t={})[mr.variable]="colors."+r,t.bg=mr.reference,t[vr.variable]=mr.reference,t[gr.variable]="colors."+n,t.width="xs",t.border="1px solid",t.borderColor="inherit",t.borderRadius="md",t.boxShadow="sm",t.zIndex="inherit",t._focusVisible={outline:0,boxShadow:"outline"},t},xr={px:3,py:2,borderBottomWidth:"1px"},wr={px:3,py:2},Cr={px:3,py:2,borderTopWidth:"1px"},kr={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Sr={parts:me.keys,baseStyle:function(e){return{popper:yr,content:br(e),header:xr,body:wr,footer
1:Cr,arrow:{},closeButton:kr}}};var Or={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},jr=function(e){return{bg:N("gray.100","whiteAlpha.300")(e)}},Er=function(e){return o({transitionProperty:"common",transitionDuration:"slow"},function(e){var t=e.colorScheme,r=e.theme,n=e.isIndeterminate,i=e.hasStripe,a=N(I(),I("1rem","rgba(0,0,0,0.1)"))(e),s=N(t+".500",t+".200")(e),c="linear-gradient(\n to right,\n transparent 0%,\n "+R(r,s)+" 50%,\n transparent 100%\n )";return o({},!n&&i&&a,n?{bgImage:c}:{bgColor:s})}(e))},Pr={parts:ve.keys,sizes:{xs:{track:{h:"0.25rem"}},sm:{track:{h:"0.5rem"}},md:{track:{h:"0.75rem"}},lg:{track:{h:"1rem"}}},baseStyle:function(e){return{label:Or,filledTrack:Er(e),track:jr(e)}},defaultProps:{size:"md",colorScheme:"blue"}},_r=function(e){var t=et.baseStyle(e).control,r=void 0===t?{}:t;return o({},r,{borderRadius:"full",_checked:o({},r._checked,{_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}})})},Tr={parts:ge.keys,baseStyle:function(e){return{label:et.baseStyle(e).label,container:et.baseStyle(e).container,control:_r(e)}},sizes:{md:{control:{w:4,h:4},label:{fontSize:"md"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"}},sm:{control:{width:3,height:3},label:{fontSize:"sm"}}},defaultProps:{size:"md",colorScheme:"blue"}},Ar=function(e){return o({},Tt.baseStyle.field,{bg:N("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:N("white","gray.700")(e)}})},Rr={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},Dr={paddingInlineEnd:"2rem"},Mr=Ee()({},Tt.sizes,{lg:{field:Dr},md:{field:Dr},sm:{field:Dr},xs:{field:Dr,icon:{insetEnd:"0.25rem"}}}),Ir={parts:ye.keys,baseStyle:function(e){return{field:Ar(e),icon:Rr}},sizes:Mr,variants:Tt.variants,defaultProps:Tt.defaultProps},Fr=function(e,t){return(0,Pe.F4)({from:{borderColor:e,background:e},to:{borderColor:t,background:t}})},Nr={baseStyle:function(e){var t=N("gray.100","gray.800")(e),r=N("gray.400","gray.600")(e),n=e.startColor,o=void 0===n?t:n,i=e.endColor,a=void 0===i?r:i,s=e.speed,c=e.theme,u=R(c,o),l=R(c,a);return{opacity:.7,borderRadius:"2px",borderColor:u,background:l,animation:s+"s linear infinite alternate "+Fr(u,l)}}},Lr={baseStyle:function(e){return{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:N("white","gray.700")(e)}}}};var Br,zr,Vr,Ur,$r,Wr,Zr,Hr,qr,Gr,Qr,Yr,Kr,Xr=function(e){return o({display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},L({orientation:e.orientation,vertical:{h:"100%"},horizontal:{w:"100%"}}))},Jr=function(e){return{overflow:"hidden",borderRadius:"sm",bg:N("gray.200","whiteAlpha.200")(e),_disabled:{bg:N("gray.300","whiteAlpha.300")(e)}}},en=function(e){return o({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}},function(e){return L({orientation:e.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})}(e))},tn=function(e){var t=e.colorScheme;return{width:"inherit",height:"inherit",bg:N(t+".500",t+".200")(e)}},rn={lg:function(e){return{thumb:{w:"16px",h:"16px"},track:L({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(e){return{thumb:{w:"14px",h:"14px"},track:L({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(e){return{thumb:{w:"10px",h:"10px"},track:L({orientation:e.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},nn={parts:be.keys,sizes:rn,baseStyle:function(e){return{container:Xr(e),track:Jr(e),thumb:en(e),filledTrack:tn(e)}},defaultProps:{size:"md",colorScheme:"blue"}},on=J("spinner-size"),an={baseStyle:{width:[on.reference],height:[on.reference]},sizes:{xs:(Br={},Br[on.variable]="0.75rem",Br),sm:(zr={},zr[on.variable]="1rem",zr),md:(Vr={},Vr[on.variable]="1.5rem",Vr),lg:(Ur={},Ur[on.variable]="2rem",Ur),xl:($r={},$r[on.variable]="3rem",$r)},defaultProps:{size:"md"}},sn={container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:2},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"}},cn={parts:xe.keys,baseStyle:sn,sizes:{md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},defaultProps:{size:"md"}},un=J("switch-track-width"),ln=J("switch-track-height"),dn=J("switch-track-diff"),fn=Q.subtract(un,ln),pn=J("switch-thumb-x"),hn=function(e){var t=e.colorScheme;return{borderRadius:"full",p:"2px",width:[un.reference],height:[ln.reference],transitionProperty:"common",transitionDuration:"fast",bg:N("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:N(t+".500",t+".200")(e)}}},mn={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ln.reference],height:[ln.reference],_checked:{transform:"translateX("+pn.reference+")"}},vn={sm:{container:(Wr={},Wr[un.variable]="1.375rem",Wr[ln.variable]="0.75rem",Wr)},md:{container:(Zr={},Zr[un.variable]="1.875rem",Zr[ln.variable]="1rem",Zr)},lg:{container:(Hr={},Hr[un.variable]="2.875rem",Hr[ln.variable]="1.5rem",Hr)}},gn={parts:we.keys,baseStyle:function(e){var t,r;return{container:(r={},r[dn.variable]=fn,r[pn.variable]=dn.reference,r._rtl=(t={},t[pn.variable]=Q(dn).negate().toString(),t),r),track:hn(e),thumb:mn}},sizes:vn,defaultProps:{size:"md",colorScheme:"blue"}},yn={"&[data-is-numeric=true]":{textAlign:"end"}},bn={simple:function(e){var t=e.colorScheme;return{th:o({color:N("gray.600","gray.400")(e),borderBottom:"1px",borderColor:N(t+".100",t+".700")(e)},yn),td:o({borderBottom:"1px",borderColor:N(t+".100",t+".700")(e)},yn),caption:{color:N("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:function(e){var t=e.colorScheme;return{th:o({color:N("gray.600","gray.400")(e),borderBottom:"1px",borderColor:N(t+".100",t+".700")(e)},yn),td:o({borderBottom:"1px",borderColor:N(t+".100",t+".700")(e)},yn),caption:{color:N("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:N(t+".100",t+".700")(e)},td:{background:N(t+".100",t+".700")(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},unstyled:{}},xn={parts:Ce.keys,baseStyle:{table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}},variants:bn,sizes:{sm:{th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}},md:{th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}},lg:{th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}}},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}},wn=function(e){return{display:"vertical"===e.orientation?"flex":"block"}},Cn=function(e){return{flex:e.isFitted?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},kn=function(e){var t=e.align,r=void 0===t?"start":t,n=e.orientation;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[r],flexDirection:"vertical"===n?"column":"row"}},Sn={p:4},On={line:function(e){var t,r,n=e.colorScheme,o=e.orientation,i="vertical"===o?"borderStart":"borderBottom",a="vertical"===o?"marginStart":"marginBottom";return{tablist:(t={},t[i]="2px solid",t.borderColor="inherit",t),tab:(r={},r[i]="2px solid",r.borderColor="transparent",r[a]="-2px",r._selected={color:N(n+".600",n+".300")(e),borderColor:"currentColor"},r._active={bg:N("gray.200","whiteAlpha.300")(e)},r._disabled={_active:{bg:"none"}},r)}},enclosed:function(e){var t=e.colorScheme;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:N(t+".600",t+".300")(e),borderColor:"inherit",borderBottomColor:N("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(e){var t=e.colorScheme;return{tab:{border:"1px solid",borderColor:"inherit",bg:N("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:N("#fff","gray.800")(e),color:N(t+".600",t+".300")(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(e){var t=e.colorScheme,r=e.theme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:R(r,t+".700"),bg:R(r,t+".100")}}}},"solid-rounded":function(e){var t=e.colorScheme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:N("gray.600","inherit")(e),_selected:{color:N("#fff","gray.800")(e),bg:N(t+".600",t+".300")(e)}}}},unstyled:{}},jn={parts:ke.keys,baseStyle:function(e){return{root:wn(e),tab:Cn(e),tablist:kn(e),tabpanel:Sn}},sizes:{sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},variants:On,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},En={container:{fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"18px",w:"1.25rem",h:"1.25rem",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"0.375rem",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}},Pn={subtle:function(e){return{container:We.variants.subtle(e)}},solid:function(e){return{container:We.variants.solid(e)}},outline:function(e){return{container:We.variants.outline(e)}}},_n={parts:Se.keys,variants:Pn,baseStyle:En,sizes:{sm:{container:{minH:"1.25rem",minW:"1.25rem",fontSize:"xs",px:2},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}},md:{container:{minH:"1.5rem",minW:"1.5rem",fontSize:"sm",px:2}},lg:{container:{minH:8,minW:8,fontSize:"md",px:3}}},defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}},Tn=o({},Tt.baseStyle.field,{paddingY:"8px",minHeight:"80px",lineHeight:"short",verticalAlign:"top"}),An={outline:function(e){var t;return null!=(t=Tt.variants.outline(e).field)?t:{}},flushed:function(e){var t;return null!=(t=Tt.variants.flushed(e).field)?t:{}},filled:function(e){var t;return null!=(t=Tt.variants.filled(e).field)?t:{}},unstyled:null!=(qr=Tt.variants.unstyled.field)?qr:{}},Rn={baseStyle:Tn,sizes:{xs:null!=(Gr=Tt.sizes.xs.field)?Gr:{},sm:null!=(Qr=Tt.sizes.sm.field)?Qr:{},md:null!=(Yr=Tt.sizes.md.field)?Yr:{},lg:null!=(Kr=Tt.sizes.lg.field)?Kr:{}},variants:An,defaultProps:{size:"md",variant:"outline"}},Dn=J("tooltip-bg"),Mn=J("popper-arrow-bg"),In={Accordion:Te,Alert:De,Avatar:Ue,Badge:We,Breadcrumb:He,Button:Qe,Checkbox:et,CloseButton:rt,Code:nt,Container:ot,Divider:it,Drawer:mt,Editable:gt,Form:xt,FormError:kt,FormLabel:St,Heading:Ot,Input:Tt,Kbd:At,Link:Rt,List:Mt,Menu:Vt,Modal:er,NumberInput:pr,PinInput:hr,Popover:Sr,Progress:Pr,Radio:Tr,
1Select:Ir,Skeleton:Nr,SkipLink:Lr,Slider:nn,Spinner:an,Stat:cn,Switch:gn,Table:xn,Tabs:jn,Tag:_n,Textarea:Rn,Tooltip:{baseStyle:function(e){var t,r=N("gray.700","gray.300")(e);return(t={})[Dn.variable]="colors."+r,t.px="8px",t.py="2px",t.bg=[Dn.reference],t[Mn.variable]=[Dn.reference],t.color=N("whiteAlpha.900","gray.900")(e),t.borderRadius="sm",t.fontWeight="medium",t.fontSize="sm",t.boxShadow="md",t.maxW="320px",t.zIndex="tooltip",t}}},Fn=o({breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}}},Oe,{sizes:i,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dar
1k-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:n,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}}),Nn=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Ln(e){return!!(0,A.Kn)(e)&&Nn.every((function(t){return Object.prototype.hasOwnProperty.call(e,t)}))}var Bn=o({semanticTokens:{colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},direction:"ltr"},Fn,{components:In,styles:{global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color",wordWrap:"break-word"}}},config:{useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"}})},5074:function(e,t,r){"use strict";r.d(t,{VW:function(){return $},I2:function(){return Z}});var n=r(1604),o=r(949),i=r(7294),a=r(9703),s=r(6450),c=r(9609),u=r(894);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}var d=function(e){return i.createElement(u.JO,l({viewBox:"0 0 24 24"},e),i.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))},f=["status"],p=(0,n.eC)("Alert"),h=p[0],m=p[1],v={info:{icon:function(e){return i.createElement(u.JO,l({viewBox:"0 0 24 24"},e),i.createElement("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}))},colorScheme:"blue"},warning:{icon:d,colorScheme:"orange"},success:{icon:function(e){return i.createElement(u.JO,l({viewBox:"0 0 24 24"},e),i.createElement("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}))},colorScheme:"green"},error:{icon:d,colorScheme:"red"},loading:{icon:c.$,colorScheme:"blue"}},g=(0,s.kr)({name:"AlertContext",errorMessage:"useAlertContext: `context` is undefined. Seems you forgot to wrap alert components in `<Alert />`"}),y=g[0],b=g[1],x=(0,n.Gp)((function(e,t){var r,o=(0,n.Lr)(e),s=o.status,c=void 0===s?"info":s,u=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(o,f),d=null!=(r=e.colorScheme)?r:v[c].colorScheme,p=(0,n.jC)("Alert",l({},e,{colorScheme:d})),m=l({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden"},p.container);return i.createElement(y,{value:{status:c}},i.createElement(h,{value:p},i.createElement(n.m$.div,l({role:"alert",ref:t},u,{className:(0,a.cx)("chakra-alert",e.className),__css:m}))))})),w=(0,n.Gp)((function(e,t){var r=m();return i.createElement(n.m$.div,l({ref:t},e,{className:(0,a.cx)("chakra-alert__title",e.className),__css:r.title}))})),C=(0,n.Gp)((function(e,t){var r=l({display:"inline"},m().description);return i.createElement(n.m$.div,l({ref:t},e,{className:(0,a.cx)("chakra-alert__desc",e.className),__css:r}))})),k=function(e){var t=b().status,r=v[t].icon,o=m(),s="loading"===t?o.spinner:o.icon;return i.createElement(n.m$.span,l({display:"inherit"},e,{className:(0,a.cx)("chakra-alert__icon",e.className),__css:s}),e.children||i.createElement(r,{h:"100%",w:"100%"}))},S=r(4746),O=r(5947),j=r(8043),E=r(1190),P=r(6871),_=r(7375),T=r(7826);function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A.apply(this,arguments)}function R(e,t){var r,n=null!=e?e:"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return null!=(r=null==o?void 0:o[t])?r:n}function D(e,t){var r=M(e,t);return{position:r,index:r?e[r].findIndex((function(e){return e.id===t})):-1}}var M=function(e,t){var r;return null==(r=Object.values(e).flat().find((function(e){return e.id===t})))?void 0:r.position};function I(e){return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}var F=function(e){var t=e,r=new Set,n=function(e){t=e(t),r.forEach((function(e){return e()}))};return{getState:function(){return t},subscribe:function(t){return r.add(t),function(){n((function(){return e})),r.delete(t)}},removeToast:function(e,t){n((function(r){var n;return A({},r,((n={})[t]=r[t].filter((function(t){return t.id!=e})),n))}))},notify:function(e,t){var r=function(e,t){var r,n;void 0===t&&(t={});N+=1;var o=null!=(r=t.id)?r:N,i=null!=(n=t.position)?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:function(){return F.removeToast(String(o),i)},status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),o=r.position,i=r.id;return n((function(e){var t,n,i,a=o.includes("top")?[r].concat(null!=(t=e[o])?t:[]):[].concat(null!=(n=e[o])?n:[],[r]);return A({},e,((i={})[o]=a,i))})),i},update:function(e,t){e&&n((function(r){var n=A({},r),o=D(n,e),i=o.position,a=o.index;return i&&-1!==a&&(n[i][a]=A({},n[i][a],t,{message:B(t)})),n}))},closeAll:function(e){var t=(void 0===e?{}:e).positions;n((function(e){return(null!=t?t:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((function(t,r){return t[r]=e[r].map((function(e){return A({},e,{requestClose:!0})})),t}),A({},e))}))},close:function(e){n((function(t){var r,n=M(t,e);return n?A({},t,((r={})[n]=t[n].map((function(t){return t.id==e?A({},t,{requestClose:!0}):t})),r)):t}))},isActive:function(e){return Boolean(D(F.getState(),e).position)}}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});var N=0;var L=function(e){var t=e.status,r=e.variant,o=void 0===r?"solid":r,a=e.id,s=e.title,c=e.isClosable,u=e.onClose,l=e.description,d=e.icon,f="undefined"!==typeof a?"toast-"+a+"-title":void 0;return i.createElement(x,{status:t,variant:o,id:String(a),alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto","aria-labelledby":f},i.createElement(k,null,d),i.createElement(n.m$.div,{flex:"1",maxWidth:"100%"},s&&i.createElement(w,{id:f},s),l&&i.createElement(C,{display:"block"},l)),c&&i.createElement(S.P,{size:"sm",onClick:u,position:"absolute",insetEnd:1,top:1}))};function B(e){void 0===e&&(e={});var t=e,r=t.render,n=t.toastComponent,o=void 0===n?L:n;return function(t){return(0,a.mf)(r)?r(t):i.createElement(o,A({},t,e))}}function z(e,t){var r=function(r){var n;return A({},t,r,{position:R(null!=(n=null==r?void 0:r.position)?n:null==t?void 0:t.position,e)})},n=function(e){var t=r(e),n=B(t);return F.notify(n,t)};return n.update=function(e,t){F.update(e,r(t))},n.promise=function(e,t){var r=n(A({},t.loading,{status:"loading",duration:null}));e.then((function(e){return n.update(r,A({status:"success",duration:5e3},(0,a.Pu)(t.success,e)))})).catch((function(e){return n.update(r,A({status:"error",duration:5e3},(0,a.Pu)(t.error,e)))}))},n.closeAll=F.closeAll,n.close=F.close,n.isActive=F.isActive,n}var V={initial:function(e){var t,r=e.position,n=["top","bottom"].includes(r)?"y":"x",o=["top-right","bottom-right"].includes(r)?1:-1;return"bottom"===r&&(o=1),(t={opacity:0}
1)[n]=24*o,t},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},U=i.memo((function(e){var t=e.id,r=e.message,o=e.onCloseComplete,s=e.onRequestRemove,c=e.requestClose,u=void 0!==c&&c,l=e.position,d=void 0===l?"bottom":l,f=e.duration,p=void 0===f?5e3:f,h=e.containerStyle,m=e.motionVariants,v=void 0===m?V:m,g=e.toastSpacing,y=void 0===g?"0.5rem":g,b=i.useState(p),x=b[0],w=b[1],C=(0,O.hO)();(0,_.rf)((function(){C||null==o||o()}),[C]),(0,_.rf)((function(){w(p)}),[p]);var k=function(){C&&s()};i.useEffect((function(){C&&u&&s()}),[C,u,s]),(0,_.KS)(k,x);var S=i.useMemo((function(){return A({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:y},h)}),[h,y]),E=i.useMemo((function(){return function(e){var t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(d)}),[d]);return i.createElement(j.E.li,{layout:!0,className:"chakra-toast",variants:v,initial:"initial",animate:"animate",exit:"exit",onHoverStart:function(){return w(null)},onHoverEnd:function(){return w(p)},custom:{position:d},style:E},i.createElement(n.m$.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:S},(0,a.Pu)(r,{id:t,onClose:k})))}));a.Ts&&(U.displayName="ToastComponent");var $=function(e){var t=i.useSyncExternalStore(F.subscribe,F.getState,F.getState),r=e.children,n=e.motionVariants,o=e.component,s=void 0===o?U:o,c=e.portalProps,u=(0,a.Yd)(t).map((function(e){var r=t[e];return i.createElement("ul",{role:"region","aria-live":"polite",key:e,id:"chakra-toast-manager-"+e,style:I(e)},i.createElement(E.M,{initial:!1},r.map((function(e){return i.createElement(s,A({key:e.id,motionVariants:n},e))}))))}));return i.createElement(i.Fragment,null,r,i.createElement(P.h_,c,u))},W={theme:T.ZP,colorMode:"light",toggleColorMode:a.ZT,setColorMode:a.ZT,defaultOptions:{duration:5e3,variant:"solid"}};function Z(e){var t=void 0===e?W:e,r=t.theme,a=void 0===r?W.theme:r,s=t.colorMode,c=void 0===s?W.colorMode:s,u=t.toggleColorMode,l=void 0===u?W.toggleColorMode:u,d=t.setColorMode,f=void 0===d?W.setColorMode:d,p=t.defaultOptions,h=void 0===p?W.defaultOptions:p,m=t.motionVariants,v=t.toastSpacing,g=t.component,y={colorMode:c,setColorMode:f,toggleColorMode:l};return{ToastContainer:function(){return i.createElement(n.f6,{theme:a},i.createElement(o.kc.Provider,{value:y},i.createElement($,{defaultOptions:h,motionVariants:m,toastSpacing:v,component:g})))},toast:z(a.direction,h)}}},7496:function(e,t,r){"use strict";r.d(t,{Mi:function(){return D},Qh:function(){return P},UO:function(){return k},Xc:function(){return I},uf:function(){return O}});var n=r(9703),o=r(8554),i=r.n(o),a=r(1190),s=r(8043),c=r(7294);function u(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}var d={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},f={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},p={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},h={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},m={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function v(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return p;case"left":return f;case"bottom":return m;case"top":return h}}var g={enter:{duration:.2,ease:d.easeOut},exit:{duration:.1,ease:d.easeIn}},y=function(e,t){return l({},e,{delay:(0,n.hj)(t)?t:null==t?void 0:t.enter})},b=function(e,t){return l({},e,{delay:(0,n.hj)(t)?t:null==t?void 0:t.exit})},x=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],w={exit:{height:{duration:.2,ease:d.ease},opacity:{duration:.3,ease:d.ease}},enter:{height:{duration:.3,ease:d.ease},opacity:{duration:.4,ease:d.ease}}},C={exit:function(e){var t,r,n=e.animateOpacity,o=e.startingHeight,i=e.transition,a=e.transitionEnd,s=e.delay;return l({},n&&{opacity:(r=o,null!=r&&parseInt(r.toString(),10)>0?1:0)},{height:o,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==i?void 0:i.exit)?t:b(w.exit,s)})},enter:function(e){var t,r=e.animateOpacity,n=e.endingHeight,o=e.transition,i=e.transitionEnd,a=e.delay;return l({},r&&{opacity:1},{height:n,transitionEnd:null==i?void 0:i.enter,transition:null!=(t=null==o?void 0:o.enter)?t:y(w.enter,a)})}},k=c.forwardRef((function(e,t){var r=e.in,o=e.unmountOnExit,d=e.animateOpacity,f=void 0===d||d,p=e.startingHeight,h=void 0===p?0:p,m=e.endingHeight,v=void 0===m?"auto":m,g=e.style,y=e.className,b=e.transition,w=e.transitionEnd,k=u(e,x),S=c.useState(!1),O=S[0],j=S[1];c.useEffect((function(){var e=setTimeout((function(){j(!0)}));return function(){return clearTimeout(e)}}),[]),(0,n.ZK)({condition:Boolean(h>0&&o),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var E=parseFloat(h.toString())>0,P={startingHeight:h,endingHeight:v,animateOpacity:f,transition:O?b:{enter:{duration:0}},transitionEnd:i()(w,{exit:o?void 0:{display:E?"block":"none"}})},_=!o||r,T=r||o?"enter":"exit";return c.createElement(a.M,{initial:!1,custom:P},_&&c.createElement(s.E.div,l({ref:t},k,{className:(0,n.cx)("chakra-collapse",y),style:l({overflow:"hidden",display:"block"},g),custom:P,variants:C,initial:!!o&&"exit",animate:T,exit:"exit"})))}));n.Ts&&(k.displayName="Collapse");var S=["unmountOnExit","in","className","transition","transitionEnd","delay"],O={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(e){var t,r=void 0===e?{}:e,n=r.transition,o=r.transitionEnd,i=r.delay;return{opacity:1,transition:null!=(t=null==n?void 0:n.enter)?t:y(g.enter,i),transitionEnd:null==o?void 0:o.enter}},exit:function(e){var t,r=void 0===e?{}:e,n=r.transition,o=r.transitionEnd,i=r.delay;return{opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:b(g.exit,i),transitionEnd:null==o?void 0:o.exit}}}},j=c.forwardRef((function(e,t){var r=e.unmountOnExit,o=e.in,i=e.className,d=e.transition,f=e.transitionEnd,p=e.delay,h=u(e,S),m=o||r?"enter":"exit",v=!r||o&&r,g={transition:d,transitionEnd:f,delay:p};return c.createElement(a.M,{custom:g},v&&c.createElement(s.E.div,l({ref:t,className:(0,n.cx)("chakra-fade",i),custom:g},O,{animate:m},h)))}));n.Ts&&(j.displayName="Fade");var E=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],P={initial:"exit",animate:"enter",exit:"exit",variants:{exit:function(e){var t,r=e.reverse,n=e.initialScale,o=e.transition,i=e.transitionEnd,a=e.delay;return l({opacity:0}
1,r?{scale:n,transitionEnd:null==i?void 0:i.exit}:{transitionEnd:l({scale:n},null==i?void 0:i.exit)},{transition:null!=(t=null==o?void 0:o.exit)?t:b(g.exit,a)})},enter:function(e){var t,r=e.transitionEnd,n=e.transition,o=e.delay;return{opacity:1,scale:1,transition:null!=(t=null==n?void 0:n.enter)?t:y(g.enter,o),transitionEnd:null==r?void 0:r.enter}}}},_=c.forwardRef((function(e,t){var r=e.unmountOnExit,o=e.in,i=e.reverse,d=void 0===i||i,f=e.initialScale,p=void 0===f?.95:f,h=e.className,m=e.transition,v=e.transitionEnd,g=e.delay,y=u(e,E),b=!r||o&&r,x=o||r?"enter":"exit",w={initialScale:p,reverse:d,transition:m,transitionEnd:v,delay:g};return c.createElement(a.M,{custom:w},b&&c.createElement(s.E.div,l({ref:t,className:(0,n.cx)("chakra-offset-slide",h)},P,{animate:x,custom:w},y)))}));n.Ts&&(_.displayName="ScaleFade");var T=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],A={exit:{duration:.15,ease:d.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},R={exit:function(e){var t,r=e.direction,n=e.transition,o=e.transitionEnd,i=e.delay;return l({},v({direction:r}).exit,{transition:null!=(t=null==n?void 0:n.exit)?t:b(A.exit,i),transitionEnd:null==o?void 0:o.exit})},enter:function(e){var t,r=e.direction,n=e.transitionEnd,o=e.transition,i=e.delay;return l({},v({direction:r}).enter,{transition:null!=(t=null==o?void 0:o.enter)?t:y(A.enter,i),transitionEnd:null==n?void 0:n.enter})}},D=c.forwardRef((function(e,t){var r=e.direction,o=void 0===r?"right":r,i=e.style,d=e.unmountOnExit,f=e.in,p=e.className,h=e.transition,m=e.transitionEnd,g=e.delay,y=u(e,T),b=v({direction:o}),x=Object.assign({position:"fixed"},b.position,i),w=!d||f&&d,C=f||d?"enter":"exit",k={transitionEnd:m,transition:h,direction:o,delay:g};return c.createElement(a.M,{custom:k},w&&c.createElement(s.E.div,l({},y,{ref:t,initial:"exit",className:(0,n.cx)("chakra-slide",p),animate:C,exit:"exit",custom:k,variants:R,style:x})))}));n.Ts&&(D.displayName="Slide");var M=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],I={initial:"initial",animate:"enter",exit:"exit",variants:{initial:function(e){var t,r=e.offsetX,n=e.offsetY,o=e.transition,i=e.transitionEnd,a=e.delay;return{opacity:0,x:r,y:n,transition:null!=(t=null==o?void 0:o.exit)?t:b(g.exit,a),transitionEnd:null==i?void 0:i.exit}},enter:function(e){var t,r=e.transition,n=e.transitionEnd,o=e.delay;return{opacity:1,x:0,y:0,transition:null!=(t=null==r?void 0:r.enter)?t:y(g.enter,o),transitionEnd:null==n?void 0:n.enter}},exit:function(e){var t,r=e.offsetY,n=e.offsetX,o=e.transition,i=e.transitionEnd,a=e.reverse,s=e.delay,c={x:n,y:r};return l({opacity:0,transition:null!=(t=null==o?void 0:o.exit)?t:b(g.exit,s)},a?l({},c,{transitionEnd:null==i?void 0:i.exit}):{transitionEnd:l({},c,null==i?void 0:i.exit)})}}},F=c.forwardRef((function(e,t){var r=e.unmountOnExit,o=e.in,i=e.reverse,d=void 0===i||i,f=e.className,p=e.offsetX,h=void 0===p?0:p,m=e.offsetY,v=void 0===m?8:m,g=e.transition,y=e.transitionEnd,b=e.delay,x=u(e,M),w=!r||o&&r,C=o||r?"enter":"exit",k={offsetX:h,offsetY:v,reverse:d,transition:g,transitionEnd:y,delay:b};return c.createElement(a.M,{custom:k},w&&c.createElement(s.E.div,l({ref:t,className:(0,n.cx)("chakra-offset-slide",f),custom:k},I,{animate:C},x)))}));n.Ts&&(F.displayName="SlideFade")},9703:function(e,t,r){"use strict";r.d(t,{Hc:function(){return Xe},Ts:function(){return R},jX:function(){return x},yn:function(){return Q},Qm:function(){return ne},Yq:function(){return at},AV:function(){return ot},PP:function(){return we},v0:function(){return xe},HU:function(){return ze},r3:function(){return ae},vk:function(){return Fe},cx:function(){return oe},PB:function(){return re},Ao:function(){return st},VI:function(){return Ae},YU:function(){return B},xH:function(){return Te},T_:function(){return Pe},sq:function(){return V},vY:function(){return ie},t5:function(){return ve},K1:function(){return U},LP:function(){return C},lZ:function(){return J},kR:function(){return X},f7:function(){return Ye},wN:function(){return ce},H9:function(){return de},kJ:function(){return S},jU:function(){return te},FS:function(){return A},Qr:function(){return P},mf:function(){return O},Re:function(){return K},kA:function(){return M},Ft:function(){return _},hj:function(){return k},Kn:function(){return E},Ik:function(){return D},n_:function(){return ue},HD:function(){return T},Wq:function(){return he},o8:function(){return j},XQ:function(){return it},fo:function(){return De},Wf:function(){return N},mq:function(){return Re},ZT:function(){return ke},uh:function(){return se},lw:function(){return L},Yd:function(){return z},CE:function(){return I},WS:function(){return Le},ei:function(){return F},zG:function(){return Oe},px:function(){return $},cl:function(){return w},WP:function(){return Be},Pu:function(){return be},Y2:function(){return G},Zd:function(){return Ie},Rg:function(){return Ne},ZK:function(){return Se},JN:function(){return qe}});r(8554);var n=1/60*1e3,o="undefined"!==typeof performance?function(){return performance.now()}:function(){return Date.now()},i="undefined"!==typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(o())}),n)};var a=!0,s=!1,c=!1,u={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],d=l.reduce((function(e,t){return e[t]=function(e){var t=[],r=[],n=0,o=!1,i=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var c=s&&o,u=c?t:r;
1return a&&i.add(e),-1===u.indexOf(e)&&(u.push(e),c&&o&&(n=t.length)),e},cancel:function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1),i.delete(e)},process:function(s){var c;if(o=!0,t=(c=[r,t])[0],(r=c[1]).length=0,n=t.length)for(var u=0;u<n;u++){var l=t[u];l(s),i.has(l)&&(a.schedule(l),e())}o=!1}};return a}((function(){return s=!0})),e}),{}),f=l.reduce((function(e,t){var r=d[t];return e[t]=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),s||v(),r.schedule(e,t,n)},e}),{}),p=l.reduce((function(e,t){return e[t]=d[t].cancel,e}),{}),h=function(e){return d[e].process(u)},m=function(e){s=!1,u.delta=a?n:Math.max(Math.min(e-u.timestamp,40),1),u.timestamp=e,c=!0,l.forEach(h),c=!1,s&&(a=!1,i(m))},v=function(){s=!0,a=!0,c||i(m)},g=function(){return u},y=f;function b(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}function x(e,t){return[].concat(e,[t])}function w(e,t){return e.filter((function(e){return e!==t}))}function C(e,t,r,n){if(null==t)return n;if(!n)return e.find((function(e){return r(e).toLowerCase().startsWith(t.toLowerCase())}));var o,i=e.filter((function(e){return r(e).toLowerCase().startsWith(t.toLowerCase())}));return i.length>0?i.includes(n)?((o=i.indexOf(n)+1)===i.length&&(o=0),i[o]):(o=e.indexOf(i[0]),e[o]):n}function k(e){return"number"===typeof e}function S(e){return Array.isArray(e)}function O(e){return"function"===typeof e}function j(e){return"undefined"===typeof e||void 0===e}function E(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)&&!S(e)}function P(e){return E(e)&&0===Object.keys(e).length}function _(e){return null==e}function T(e){return"[object String]"===Object.prototype.toString.call(e)}function A(e){return/^var\(--.+\)$/.test(e)}var R=!1;function D(e){return"current"in e}function M(e){return e&&E(e)&&E(e.target)}function I(e,t){var r={};return Object.keys(e).forEach((function(n){t.includes(n)||(r[n]=e[n])})),r}function F(e,t){var r={};return t.forEach((function(t){t in e&&(r[t]=e[t])})),r}var N=function(e){var t=new WeakMap;return function(r,n,o,i){if("undefined"===typeof r)return e(r,n,o);t.has(r)||t.set(r,new Map);var a=t.get(r);if(a.has(n))return a.get(n);var s=e(r,n,o,i);return a.set(n,s),s}}((function(e,t,r,n){var o="string"===typeof t?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return void 0===e?r:e}));function L(e,t){var r={};return Object.keys(e).forEach((function(n){var o=e[n];t(o,n,e)&&(r[n]=o)})),r}var B=function(e){return L(e,(function(e){return null!==e&&void 0!==e}))},z=function(e){return Object.keys(e)},V=function(e){return e.reduce((function(e,t){var r=t[0],n=t[1];return e[r]=n,e}),{})},U=function(e,t,r){var n,o,i;return null!=(n=null==(o=e.__cssMap)||null==(i=o[t+"."+r])?void 0:i.varRef)?n:r};function $(e){if(null==e)return e;var t=function(e){var t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t.unitless||k(e)?e+"px":e}var W=function(e,t){return parseInt(e[1],10)>parseInt(t[1],10)?1:-1},Z=function(e){return V(Object.entries(e).sort(W))};function H(e){var t=Z(e);return Object.assign(Object.values(t),t)}function q(e){var t;if(!e)return e;var r=(e=null!=(t=$(e))?t:e).endsWith("px")?-1:-.0625;return k(e)?""+(e+r):e.replace(/([0-9]+\.?[0-9]*)/,(function(e){return""+(parseFloat(e)+r)}))}function G(e,t){var r=["@media screen"];return e&&r.push("and","(min-width: "+$(e)+")"),t&&r.push("and","(max-width: "+$(t)+")"),r.join(" ")}function Q(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";var r=H(e),n=Object.entries(e).sort(W).map((function(e,t,r){var n,o=e[0],i=e[1],a=(null!=(n=r[t+1])?n:[])[1];return a=parseFloat(a)>0?q(a):void 0,{_minW:q(i),breakpoint:o,minW:i,maxW:a,maxWQuery:G(null,a),minWQuery:G(i),minMaxQuery:G(i,a)}})),o=function(e){var t=Object.keys(Z(e));return new Set(t)}(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive:function(e){var t=Object.keys(e);return t.length>0&&t.every((function(e){return o.has(e)}))},asObject:Z(e),asArray:H(e),details:n,media:[null].concat(r.map((function(e){return G(e)})).slice(1)),toArrayValue:function(e){if(!E(e))throw new Error("toArrayValue: value must be an object");for(var t=i.map((function(t){var r;return null!=(r=e[t])?r:null}));null===b(t);)t.pop();return t},toObjectValue:function(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((function(e,t,r){var n=i[r];return null!=n&&null!=t&&(e[n]=t),e}),{})}}}function Y(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function K(e){var t;return!!Y(e)&&e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}function X(e){var t,r;return Y(e)&&null!=(t=null==(r=J(e))?void 0:r.defaultView)?t:window}function J(e){var t;return Y(e)&&null!=(t=e.ownerDocument)?t:document}function ee(e){var t;return null!=(t=e.view)?t:window}var te=!("undefined"===typeof window||!window.document||!window.document.createElement),re=function(e){return e?"":void 0},ne=function(e){return!!e||void 0},oe=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")};function ie(e){var t=J(e);return null==t?void 0:t.activeElement}function ae(e,t){return!!e&&(e===t||e.contains(t))}function se(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function ce(e){var t,r,n=ie(null!=(t=e.target)?t:e.currentTarget);return null!=(r=e.relatedTarget)?r:n}function ue(e){return 0!==e.button}var le=function(e){return e.hasAttribute("tabindex")};function de(e){return(K(e)?J(e):document).activeElement===e}function fe(e){return!(!e.parentElement||!fe(e.parentElement))||e.hidden}function pe(e){if(!K(e)||fe(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;var t=e.localName;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;var r={a:function(){return e.hasAttribute("href")},audio:function(){return e.hasAttribute("controls")},video:function(){return e.hasAttribute("controls")}};return t in r?r[t]():!!function(e){var t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||le(e)}function he(e){return!!e&&(K(e)&&pe(e)&&!function(e){return le(e)&&-1===e.tabIndex}(e))}var me=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not
1([aria-disabled])","*[contenteditable]"].join();function ve(e){var t=Array.from(e.querySelectorAll(me));return t.unshift(e),t.filter((function(e){return pe(e)&&function(e){return e.offsetWidth>0&&e.offsetHeight>0}(e)}))}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ye(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"===typeof e)return ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ge(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function be(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return O(e)?e.apply(void 0,r):e}function xe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){t.some((function(t){return null==t||t(e),null==e?void 0:e.defaultPrevented}))}}function we(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){t.forEach((function(t){null==t||t(e)}))}}function Ce(e){var t;return function(){if(e){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t=e.apply(this,n),e=null}return t}}var ke=function(){},Se=Ce((function(e){return function(){var t=e.condition,r=e.message;t&&R&&console.warn(r)}})),Oe=(Ce((function(e){return function(){var t=e.condition,r=e.message;t&&R&&console.error(r)}})),function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce((function(e,t){return t(e)}),e)}}),je=function(e,t){return Math.abs(e-t)},Ee=function(e){return"x"in e&&"y"in e};function Pe(e,t){void 0===t&&(t={});var r=t,n=r.isActive,o=void 0===n?de:n,i=r.nextTick,a=r.preventScroll,s=void 0===a||a,c=r.selectTextIfInput,u=void 0===c||c;if(!e||o(e))return-1;function l(){if(e){if(function(){if(null==_e){_e=!1;try{document.createElement("div").focus({get preventScroll(){return _e=!0,!0}})}catch(e){}}return _e}())e.focus({preventScroll:s});else if(e.focus(),s){var t=function(e){var t,r=J(e),n=null!=(t=r.defaultView)?t:window,o=e.parentNode,i=[],a=r.scrollingElement||r.documentElement;for(;o instanceof n.HTMLElement&&o!==a;)(o.offsetHeight<o.scrollHeight||o.offsetWidth<o.scrollWidth)&&i.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),o=o.parentNode;a instanceof n.HTMLElement&&i.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft});return i}(e);!function(e){for(var t,r=ye(e);!(t=r()).done;){var n=t.value,o=n.element,i=n.scrollTop,a=n.scrollLeft;o.scrollTop=i,o.scrollLeft=a}}(t)}if(u)if(function(e){return K(e)&&"input"===e.localName&&"select"in e}(e))e.select();else if("setSelectionRange"in e){var r=e;r.setSelectionRange(r.value.length,r.value.length)}}else Se({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"})}return i?requestAnimationFrame(l):(l(),-1)}var _e=null;function Te(e,t){return void 0===t&&(t=1/0),(E(e)||Array.isArray(e))&&t?Object.entries(e).reduce((function(e,r){var n=r[0],o=r[1];return E(o)||S(o)?Object.entries(Te(o,t-1)).forEach((function(t){var r=t[0],o=t[1];e[n+"."+r]=o})):e[n]=o,e}),{}):e}function Ae(e){var t=e.hasBeenSelected,r=e.isLazy,n=e.isSelected,o=e.lazyBehavior;return!r||(!!n||!("keepMounted"!==(void 0===o?"unmount":o)||!t))}var Re=Number.MIN_SAFE_INTEGER||-9007199254740991,De=Number.MAX_SAFE_INTEGER||9007199254740991;function Me(e){var t=parseFloat(e);return function(e){return"number"!==typeof e||Number.isNaN(e)||!Number.isFinite(e)}(t)?0:t}function Ie(e,t){var r=Me(e),n=Math.pow(10,null!=t?t:10);return r=Math.round(r*n)/n,t?r.toFixed(t):r.toString()}function Fe(e){if(!Number.isFinite(e))return 0;for(var t=1,r=0;Math.round(e*t)/t!==e;)t*=10,r+=1;return r}function Ne(e,t,r){return 100*(e-t)/(r-t)}function Le(e,t,r){return(r-t)*e+t}function Be(e,t,r){return Ie(Math.round((e-t)/r)*r+t,Fe(r))}function ze(e,t,r){return null==e?e:(Se({condition:r<t,message:"clamp: max cannot be less than min"}),Math.min(Math.max(e,t),r))}function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ve.apply(this,arguments)}function Ue(e){return!!e.touches}var $e={pageX:0,pageY:0};function We(e,t){void 0===t&&(t="page");var r=e.touches[0]||e.changedTouches[0]||$e;return{x:r[t+"X"],y:r[t+"Y"]}}function Ze(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function He(e,t){return void 0===t&&(t="page"),{point:Ue(e)?We(e,t):Ze(e,t)}}var qe=function(e,t){void 0===t&&(t=!1);var r,n=function(t){return e(t,He(t))};return t?(r=n,function(e){var t=e instanceof ee(e).MouseEvent;(!t||t&&0===e.button)&&r(e)}):n},Ge={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Qe={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Ye(e){return te&&null===window.onpointerdown?e:te&&null===window.ontouchstart?Qe[e]:te&&null===window.onmousedown?Ge[e]:e}function Ke(e,t,r,n){return function(e,t,r,n){return e.addEventListener(t,r,n),function(){e.removeEventListener(t,r,n)}}(e,Ye(t),qe(r,"pointerdown"===t),n)}var Xe=function(){function e(e,t,r){var n=this;if(this.history=[],this.startEvent=null,this.lastEvent=null,this.lastEventInfo=null,this.handlers={},this.removeListeners=ke,this.threshold=3,this.win=void 0,this.updatePoint=function(){if(n.lastEvent&&n.lastEventInfo){var e=rt(n.lastEventInfo,n.history),t=null!==n.startEvent,r=function(e,t){if(k(e)&&k(t))return je(e,t);if(Ee(e)&&Ee(t)){var r=je(e.x,t.x),n=je(e.y,t.y);return Math.sqrt(Math.pow(r,2)+Math.pow(n,2))}return 0}(e.offset,{x:0,y:0})>=n.threshold;if(t||r){var o=g().timestamp;n.history.push(Ve({},e.point,{timestamp:o}));var i=n.handlers,a=i.onStart,s=i.onMove;t||(null==a||a(n.lastEvent,e),n.startEvent=n.lastEvent),null==s||s(n.lastEvent,e)}}},this.onPointerMove=function(e,t){n.lastEvent=e,n.lastEventInfo=t,function(e){var t=ee(e);return"undefined"!==typeof t.PointerEvent&&e instanceof t.PointerEvent?!("mouse"!==e.pointerType):e instanceof t.MouseEvent}(e)&&0===e.buttons?n.onPointerUp(e,t):y.update(n.updatePoint,!0)},this.onPointerUp=function(e,t){var r=rt(t,n.history),o=n.handlers,i=o.onEnd,a=o.onSessionEnd;null==a||a(e,r),n.end(),i&&n.startEvent&&(null==i||i(e,r))},this.win=ee(e),!(Ue(o=e)&&o.touches.length>1)){var o;this.handlers=t,r&&(this.threshold=r),e.stopPropagation(),e.preventDefault();var i=He(e),a=g().timestamp;this.history=[Ve({},i.point,{timestamp:a})];var s=t.onSessionStart;null==s||s(e,rt(i,this.history)),this.removeListeners=Oe(Ke(this.win,"pointermove",this.onPointerMove),Ke(this.win,"pointerup",this.onPointerUp),Ke(this.win,"pointercancel",this.onPointerUp))}}var t=e.prototype;return t.updateHandlers=function(e){this.handlers=e},t.end=function(){var e;null==(e=this.removeListeners)||e.call(this),p.update(this.updatePoint)},e}();function Je(e,t){return{x:e.x-t.x,y:e.y-t.y}}function et(e){return e[0]}function tt(e){return e[e.length-1]}function rt(e,t){return{point:e.point,delta:Je(e.point,tt(t)),offset:Je(e.point,et(t)),velocity:nt(t,.1)}}function nt(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,o=function(e){return e[e.length-1]}(e);r>=0&&(n=e[r],!(o.timestamp-n.timestamp>1e3*t));)r--;if(!n)return{x:0,y:0};var i=(o.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var ot=Object.freeze(["base","sm","md","lg","xl","2xl"]);function it(e,t){return S(e)?e.map((function(e){return null===e?null:t(e)})):E(e)?z(e).reduce((function(r,n){return r[n]=t(e[n]),r}),{}):null!=e?t(e):null}function at(e,t){void 0===t&&(t=ot);var r={};return e.forEach((function(e,n){var o=t[n];null!=e&&(r[o]=e)})),r}function st(e){return!!te&&function(e){var t=e.userAgent,r=e.vendor,
1n=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case n&&/Silk\//.test(t):return"Silk";case/Chrome/.test(t)&&/Google Inc/.test(r):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case n:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case/Safari/.test(e.userAgent)&&/Apple Computer/.test(t):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}(window.navigator)===e}},1358:function(e,t,r){"use strict";r.d(t,{NL:function(){return i},TX:function(){return a}});var n=r(1604),o=r(9703),i={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},a=(0,n.m$)("span",{baseStyle:i});o.Ts&&(a.displayName="VisuallyHidden");var s=(0,n.m$)("input",{baseStyle:i});o.Ts&&(s.displayName="VisuallyHiddenInput")},5476:function(e,t,r){"use strict";r.d(t,{Z:function(){return oe}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(n){0}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,388 bytes, line 1
1,t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function c(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function l(e,t){return 0|e.charCodeAt(t)}function d(e,t,r){return e.slice(t,r)}function f(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var m=1,v=1,g=0,y=0,b=0,x="";function w(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:m,column:v,length:a,return:""}}function C(e,t){return a(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return b=y>0?l(x,--y):0,v--,10===b&&(v=1,m--),b}function S(){return b=y<g?l(x,y++):0,v++,10===b&&(v=1,m++),b}function O(){return l(x,y)}function j(){return y}function E(e,t){return d(x,e,t)}function P(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _(e){return m=v=1,g=f(x=e),y=0,[]}function T(e){return x="",e}function A(e){return s(E(y-1,M(91===e?e+2:40===e?e+1:e)))}function R(e){for(;(b=O())&&b<33;)S();return P(e)>2||P(b)>3?"":" "}function D(e,t){for(;--t&&S()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return E(e,j()+(t<6&&32==O()&&32==S()))}function M(e){for(;S();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&M(b);break;case 40:41===e&&M(e);break;case 92:S()}return y}function I(e,t){for(;S()&&e+b!==57&&(e+b!==84||47!==O()););return"/*"+E(t,y-1)+"*"+i(47===e?e:S())}function F(e){for(;!P(O());)S();return E(e,y)}var N="-ms-",L="-moz-",B="-webkit-",z="comm",V="rule",U="decl",$="@keyframes";function W(e,t){for(var r="",n=p(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Z(e,t,r,n){switch(e.type){case"@import":case U:return e.return=e.return||e.value;case z:return"";case $:return e.return=e.value+"{"+W(e.children,n)+"}";case V:e.value=e.props.join(",")}return f(r=W(e.children,n))?e.return=e.value+"{"+r+"}":""}function H(e,t){switch(function(e,t){return(((t<<2^l(e,0))<<2^l(e,1))<<2^l(e,2))<<2^l(e,3)}(e,t)){case 5103:return B+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+L+e+N+e+e;case 6828:case 4268:return B+e+N+e+e;case 6165:return B+e+N+"flex-"+e+e;case 5187:return B+e+c(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return B+e+N+"flex-item-"+c(e,/flex-|-self/,"")+e;case 4675:return B+e+N+"flex-line-pack"+c(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+N+c(e,"shrink","negative")+e;case 5292:return B+e+N+c(e,"basis","preferred-size")+e;case 6060:return B+"box-"+c(e,"-grow","")+B+e+N+c(e,"grow","positive")+e;case 4554:return B+c(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return c(c(c(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return c(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return c(c(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return c(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(l(e,t+1)){case 109:if(45!==l(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+L+(108==l(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?H(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==l(e,t+1))break;case 6444:switch(l(e,f(e)-3-(~u(e,"!important")&&10))){case 107:return c(e,":",":"+B)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===l(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(l(e,t+11)){case 114:return B+e+N+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+N+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+N+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+N+e+e}return e}function q(e){return T(G("",null,null,null,[""],e=_(e),0,[0],e))}function G(e,t,r,n,o,a,s,l,d){for(var p=0,m=0,v=s,g=0,y=0,b=0,x=1,w=1,C=1,E=0,P="",_=o,T=a,M=n,N=P;w;)switch(b=E,E=S()){case 40:if(108!=b&&58==N.charCodeAt(v-1)){-1!=u(N+=c(A(E),"&","&\f"),"&\f")&&(C=-1);break}case 34:case 39:case 91:N+=A(E);break;case 9:case 10:case 13:case 32:N+=R(b);break;case 92:N+=D(j()-1,7);continue;case 47:switch(O()){case 42:case 47:h(Y(I(S(),j()),t,r),d);break;default:N+="/"}break;case 123*x:l[p++]=f(N)*C;case 125*x:case 59:case 0:switch(E){case 0:case 125:w=0;case 59+m:y>0&&f(N)-v&&h(y>32?K(N+";",n,r,v-1):K(c(N," ","")+";",n,r,v-2),d);break;case 59:N+=";";default:if(h(M=Q(N,t,r,p,m,o,l,P,_=[],T=[],v),a),123===E)if(0===m)G(N,t,M,M,_,a,v,l,T);else switch(g){case 100:case 109:case 115:G(e,M,M,n&&h(Q(e,M,M,0,0,o,l,P,o,_=[],v),T),o,T,v,l,n?_:T);break;default:G(N,M,M,M,[""],T,0,l,T)}}p=m=y=0,x=C=1,P=N="",v=s;break;case 58:v=1+f(N),y=b;default:if(x<1)if(123==E)--x;else if(125==E&&0==x++&&125==k())continue;switch(N+=i(E),E*x){case 38:C=m>0?1:(N+="\f",-1);break;case 44:l[p++]=(f(N)-1)*C,C=1;break;
1case 64:45===O()&&(N+=A(S())),g=O(),m=v=f(P=N+=F(j())),E++;break;case 45:45===b&&2==f(N)&&(x=0)}}return a}function Q(e,t,r,n,i,a,u,l,f,h,m){for(var v=i-1,g=0===i?a:[""],y=p(g),b=0,x=0,C=0;b<n;++b)for(var k=0,S=d(e,v+1,v=o(x=u[b])),O=e;k<y;++k)(O=s(x>0?g[k]+" "+S:c(S,/&\f/g,g[k])))&&(f[C++]=O);return w(e,t,r,0===i?V:l,f,h,m)}function Y(e,t,r){return w(e,t,r,z,i(b),d(e,2,-2),0)}function K(e,t,r,n){return w(e,t,r,U,d(e,0,n),d(e,n+1,-1),n)}var X=function(e,t,r){for(var n=0,o=0;n=o,o=O(),38===n&&12===o&&(t[r]=1),!P(o);)S();return E(e,y)},J=function(e,t){return T(function(e,t){var r=-1,n=44;do{switch(P(n)){case 0:38===n&&12===O()&&(t[r]=1),e[r]+=X(y-1,t,r);break;case 2:e[r]+=A(n);break;case 4:if(44===n){e[++r]=58===O()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}}while(n=S());return e}(_(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(r))&&!n){ee.set(e,!0);for(var o=[],i=J(t,o),a=r.props,s=0,c=0;s<i.length;s++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},re=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case U:e.return=H(e.value,e.length);break;case $:return W([C(e,{value:c(e.value,"@","@"+B)})],n);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([C(e,{props:[c(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return W([C(e,{props:[c(t,/:(plac\w+)/,":-webkit-input-$1")]}),C(e,{props:[c(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[c(t,/:(plac\w+)/,N+"input-$1")]})],n)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||ne;var i,a,s={},c=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;c.push(e)}));var u,l,d=[Z,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=function(e){var t=p(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}([te,re].concat(o,d));a=function(e,t,r,n){u=r,W(q(e?e+"{"+t.styles+"}":t.styles),f),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new n({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return h.sheet.hydrate(c),h}},7866:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}},3663:function(e,t,r){"use strict";r.d(t,{T:function(){return l},b:function(){return f},w:function(){return u}});var n=r(7294),o=r.t(n,2),i=r(5476),a=r(7462),s=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},c=(r(3772),(0,n.createContext)("undefined"!==typeof HTMLElement?(0,i.Z)({key:"css"}):null));c.Provider;var u=function(e){return(0,n.forwardRef)((function(t,r){var o=(0,n.useContext)(c);return e(t,o,r)}))},l=(0,n.createContext)({});var d=s((function(e){return s((function(t){return function(e,t){return"function"===typeof t?t(e):(0,a.Z)({},e,t)}(e,t)}))})),f=function(e){var t=(0,n.useContext)(l);return e.theme!==t&&(t=d(t)(e.theme)),(0,n.createElement)(l.Provider,{value:t},e.children)};o.useInsertionEffect&&o.useInsertionEffect},917:function(e,t,r){"use strict";var n;r.d(t,{F4:function(){return d},xB:function(){return u}});var o=r(7294),i=(r(5476),r(3663)),a=(r(8679),r(444)),s=r(3772),c=(n||(n=r.t(o,2))).useInsertionEffect?(n||(n=r.t(o,2))).useInsertionEffect:o.useLayoutEffect,u=(0,i.w)((function(e,t){var r=e.styles,n=(0,s.O)([r],void 0,(0,o.useContext)(i.T)),u=(0,o.useRef)();return c((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),u.current=[r,o],function(){r.flush()}}),[t]),c((function(){var e=u.current,r=e[0];if(e[1])e[1]=!1;
1else{if(void 0!==n.next&&(0,a.My)(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function l(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.O)(t)}var d=function(){var e=l.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},3772:function(e,t,r){"use strict";r.d(t,{O:function(){return m}});var n=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=r(7866),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!==typeof e},l=(0,i.Z)((function(e){return c(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,r){return p={name:t,styles:r,next:p},t}))}return 1===o[e]||c(e)||"number"!==typeof t||0===t?t:t+"px"};function f(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return p={name:r.name,styles:r.styles,next:p},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)p={name:n.name,styles:n.styles,next:p},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=f(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!==typeof a)null!=t&&void 0!==t[a]?n+=i+"{"+t[a]+"}":u(a)&&(n+=l(i)+":"+d(i,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=f(e,t,a);switch(i){case"animation":case"animationName":n+=l(i)+":"+s+";";break;default:n+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)u(a[c])&&(n+=l(i)+":"+d(i,a[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=p,i=r(e);return p=o,f(e,t,i)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var p,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var m=function(e,t,r){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";p=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=f(r,t,a)):i+=a[0];for(var s=1;s<e.length;s++)i+=f(r,t,e[s]),o&&(i+=a[s]);h.lastIndex=0;for(var c,u="";null!==(c=h.exec(i));)u+="-"+c[1];return{name:n(i)+u,styles:i,next:p}}},444:function(e,t,r){"use strict";r.d(t,{My:function(){return i},fp:function(){return n},hC:function(){return o}});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}}},8363:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},640:function(e,t,r){"use strict";var n=r(1742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,s,c,u,l=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),s=document.createRange(),c=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),"undefined"===typeof n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),c.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){r&&console.error("unable to copy using clipboardData: ",d),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),u&&document.body.removeChild(u),a()}return l}},9129:function(e,t,r){"use strict";r.d(t,{iz:function(){return u}});var n="Invariant failed";var o=function(e){var t=e.top,r=e.right,n=e.bottom,o=e.left;return{top:t,right:r,bottom:n,left:o,width:r-o,height:n-t,x:o,y:t,center:{x:(r+o)/2,y:(n+t)/2}}}
1,i=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},a={top:0,right:0,bottom:0,left:0},s=function(e){var t,r,n=e.borderBox,s=e.margin,c=void 0===s?a:s,u=e.border,l=void 0===u?a:u,d=e.padding,f=void 0===d?a:d,p=o((r=c,{top:(t=n).top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right})),h=o(i(n,l)),m=o(i(h,f));return{marginBox:p,borderBox:o(n),paddingBox:h,contentBox:m,margin:c,border:l,padding:f}},c=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&function(e,t){if(!e)throw new Error(n)}(!1),r},u=function(e){return function(e,t){var r={top:c(t.marginTop),right:c(t.marginRight),bottom:c(t.marginBottom),left:c(t.marginLeft)},n={top:c(t.paddingTop),right:c(t.paddingRight),bottom:c(t.paddingBottom),left:c(t.paddingLeft)},o={top:c(t.borderTopWidth),right:c(t.borderRightWidth),bottom:c(t.borderBottomWidth),left:c(t.borderLeftWidth)};return s({borderBox:e,margin:r,padding:n,border:o})}(e.getBoundingClientRect(),window.getComputedStyle(e))}},284:function(e){var t=function(){if("object"===typeof self&&self)return self;if("object"===typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"===typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},8679:function(e,t,r){"use strict";var n=r(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=l(r);d&&(a=a.concat(d(r)));for(var s=c(t),m=c(r),v=0;v<a.length;++v){var g=a[v];if(!i[g]&&(!n||!n[g])&&(!m||!m[g])&&(!s||!s[g])){var y=f(r,g);try{u(t,g,y)}catch(b){}}}}return t}},8554:function(e,t,r){e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object Object]",c=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[i]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l[a]=l["[object Map]"]=l["[object Number]"]=l[s]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var d="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,f="object"==typeof self&&self&&self.Object===Object&&self,p=d||f||Function("return this")(),h=t&&!t.nodeType&&t,m=h&&e&&!e.nodeType&&e,v=m&&m.exports===h,g=v&&d.process,y=function(){try{var e=m&&m.require&&m.require("util").types;return e||g&&g.binding&&g.binding("util")}catch(t){}}(),b=y&&y.isTypedArray;function x(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var w,C,k=Array.prototype,S=Function.prototype,O=Object.prototype,j=p["__core-js_shared__"],E=S.toString,P=O.hasOwnProperty,_=function(){var e=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),T=O.toString,A=E.call(Object),R=RegExp("^"+E.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=v?p.Buffer:void 0,M=p.Symbol,I=p.Uint8Array,F=D?D.allocUnsafe:void 0,N=(w=Object.getPrototypeOf,C=Object,function(e){return w(C(e))}),L=Object.create,B=O.propertyIsEnumerable,z=k.splice,V=M?M.toStringTag:void 0,U=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),$=D?D.isBuffer:void 0,W=Math.max,Z=Date.now,H=he(p,"Map"),q=he(Object,"create"),G=function(){function e(){}return function(t){if(!je(t))return{};if(L)return L(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Q(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Y(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function K(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function X(e){var t=this.__data__=new Y(e);this.size=t.size}function J(e,t){var r=we(e),n=!r&&xe(e),o=!r&&!n&&ke(e),i=!r&&!n&&!o&&Pe(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!P.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||me(u,c))||s.push(u);return s}function ee(e,t,r){(void 0!==r&&!be(e[t],r)||void 0===r&&!(t in e))&&ne(e,t,r)}function te(e,t,r){var n=e[t];P.call(e,t)&&be(n,r)&&(void 0!==r||t in e)||ne(e,t,r)}function re(e,t){for(var r=e.length;r--;)if(be(e[r][0],t))return r;return-1}function ne(e,t,r){"__proto__"==t&&U?U(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}Q.prototype.clear=function(){this.__data__=q?q(null):{},this.size=0},Q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Q.prototype.get=function(e){var t=this.__data__;if(q){var r=t[e];return r===n?void 0:r}return P.call(t,e)?t[e]:void 0},Q.prototype.has=function(e){var t=this.__data__;return q?void 0!==t[e]:P.call(t,e)},Q.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=q&&void 0===t?n:t,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(e){var t=this.__data__,r=re(t,e);return!(r<0)&&(r==t.length-1?t.pop():z.call(t,r,1),--this.size,!0)},Y.prototype.get=function(e){var t=this.__data__,r=re(t,e);return r<0?void 0:t[r][1]},Y.prototype.has=function(e){return re(this.__data__,e)>-1},Y.prototype.set=function(e,t){var r=this.__data__,n=re(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},K.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(H||Y),string:new Q}},K.prototype.delete=function(e){var t=pe(this,e).delete(e);return this.size-=t?1:0,t},K.prototype.get=function(e){return pe(this,e).get(e)},K.prototype.has=function(e){return pe(this,e).has(e)},K.prototype.set=function(e,t){var r=pe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},X.prototype.clear=function(){this.__data__=new Y,this.size=0},X.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},X.prototype.get=function(e){return this.__data__.get(e)},X.prototype.has=function(e){return this.__data__.has(e)},X.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Y){var n=r.__data__;if(!H||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new K(n)}return r.set(e,t),this.size=r.size,this};var oe,ie=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[oe?a:++n];if(!1===t(o[s],s,o))break}return e};
vendor: 4,348 bytes, line 1
1function ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":V&&V in Object(e)?function(e){var t=P.call(e,V),r=e[V];try{e[V]=void 0;var n=!0}catch(i){}var o=T.call(e);n&&(t?e[V]=r:delete e[V]);return o}(e):function(e){return T.call(e)}(e)}function se(e){return Ee(e)&&ae(e)==i}function ce(e){return!(!je(e)||function(e){return!!_&&_ in e}(e))&&(Se(e)?R:c).test(function(e){if(null!=e){try{return E.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function ue(e){if(!je(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ve(e),r=[];for(var n in e)("constructor"!=n||!t&&P.call(e,n))&&r.push(n);return r}function le(e,t,r,n,o){e!==t&&ie(t,(function(i,a){if(o||(o=new X),je(i))!function(e,t,r,n,o,i,a){var c=ge(e,r),u=ge(t,r),l=a.get(u);if(l)return void ee(e,r,l);var d=i?i(c,u,r+"",e,t,a):void 0,f=void 0===d;if(f){var p=we(u),h=!p&&ke(u),m=!p&&!h&&Pe(u);d=u,p||h||m?we(c)?d=c:Ee(v=c)&&Ce(v)?d=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(c):h?(f=!1,d=function(e,t){if(t)return e.slice();var r=e.length,n=F?F(r):new e.constructor(r);return e.copy(n),n}(u,!0)):m?(f=!1,d=function(e,t){var r=t?function(e){var t=new e.constructor(e.byteLength);return new I(t).set(new I(e)),t}(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(u,!0)):d=[]:function(e){if(!Ee(e)||ae(e)!=s)return!1;var t=N(e);if(null===t)return!0;var r=P.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&E.call(r)==A}(u)||xe(u)?(d=c,xe(c)?d=function(e){return function(e,t,r,n){var o=!r;r||(r={});var i=-1,a=t.length;for(;++i<a;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?ne(r,s,c):te(r,s,c)}return r}(e,_e(e))}(c):je(c)&&!Se(c)||(d=function(e){return"function"!=typeof e.constructor||ve(e)?{}:G(N(e))}(u))):f=!1}var v;f&&(a.set(u,d),o(d,u,n,i,a),a.delete(u));ee(e,r,d)}(e,t,a,r,le,n,o);else{var c=n?n(ge(e,a),i,a+"",e,t,o):void 0;void 0===c&&(c=i),ee(e,a,c)}}),_e)}function de(e,t){return ye(function(e,t,r){return t=W(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=W(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),x(e,this,s)}}(e,t,Re),e+"")}var fe=U?function(e,t){return U(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Re;function pe(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function he(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return ce(r)?r:void 0}function me(e,t){var r=typeof e;return!!(t=null==t?o:t)&&("number"==r||"symbol"!=r&&u.test(e))&&e>-1&&e%1==0&&e<t}function ve(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||O)}function ge(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var ye=function(e){var t=0,r=0;return function(){var n=Z(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(fe);function be(e,t){return e===t||e!==e&&t!==t}var xe=se(function(){return arguments}())?se:function(e){return Ee(e)&&P.call(e,"callee")&&!B.call(e,"callee")},we=Array.isArray;function Ce(e){return null!=e&&Oe(e.length)&&!Se(e)}var ke=$||function(){return!1};function Se(e){if(!je(e))return!1;var t=ae(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Oe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ee(e){return null!=e&&"object"==typeof e}var Pe=b?function(e){return function(t){return e(t)}}(b):function(e){return Ee(e)&&Oe(e.length)&&!!l[ae(e)]};function _e(e){return Ce(e)?J(e,!0):ue(e)}var Te,Ae=(Te=function(e,t,r,n){le(e,t,r,n)},de((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=Te.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!je(r))return!1;var n=typeof t;return!!("number"==n?Ce(r)&&me(t,r.length):"string"==n&&t in r)&&be(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=t[r];a&&Te(e,a,r,o)}return e})));function Re(e){return e}e.exports=Ae},4019:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,n,o){var i=r(6340).normalizeLocalePath,a=r(7565).detectDomainLocale,s=t||i(e,n).detectedLocale,c=a(o,void 0,s);if(c){var u="http".concat(c.http?"":"s","://"),l=s===c.defaultLocale?"":"/".concat(s);return"".concat(u).concat(c.domain).concat("").concat(l).concat(e)}return!1};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7942:function(e,t,r){"use strict";var n=r(5696);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=(o=r(7294))&&o.__esModule?o:{default:o},a=r(4957),s=r(7995),c=r(647),u=r(1992),l=r(639),d=r(4019),f=r(227);var p="undefined"!==typeof i.default.useTransition,h={};function m(e,t,r,n){if(e&&a.isLocalURL(t)){e.prefetch(t,r,n).catch((function(e){0}));var o=n&&"undefined"!==typeof n.locale?n.locale:e&&e.locale;h[t+"%"+r+(o?"%"+o:"")]=!0}}var v=i.default.forwardRef((function(e,t){var r,o=e.href,v=e.as,g=e.children,y=e.prefetch,b=e.passHref,x=e.replace,w=e.shallow,C=e.scroll,k=e.locale,S=e.onClick,O=e.onMouseEnter,j=e.legacyBehavior,E=void 0===j?!0!==Boolean(!1):j,P=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","legacyBehavior"]);r=g,!E||"string"!==typeof r&&"number"!==typeof r||(r=i.default.createElement("a",null,r));var _=!1!==y,T=p?i.default.useTransition():[],A=n(T,2)[1],R=i.default.useContext(c.RouterContext),D=i.default.useContext(u.AppRouterContext);D&&(R=D);var M,I=i.default.useMemo((function(){var e=a.resolveHref(R,o,!0),t=n(e,2),r=t[0],i=t[1];return{href:r,as:v?a.resolveHref(R,v):i||r}}),[R,o,v]),F=I.href,N=I.as,L=i.default.useRef(F),B=i.default.useRef(N);E&&(M=i.default.Children.only(r));var z=E?M&&"object"===typeof M&&M.ref:t,V=l.useIntersection({rootMargin:"200px"}),U=n(V,3),$=U[0],W=U[1],Z=U[2],H=i.default.useCallback((function(e){B.current===N&&L.current===F||(Z(),B.current=N,L.current=F),$(e),z&&("function"===typeof z?z(e):"object"===typeof z&&(z.current=e))}),[N,z,F,Z,$]);i.default.useEffect((function(){var e=W&&_&&a.isLocalURL(F),t="undefined"!==typeof k?k:R&&R.locale,r=h[F+"%"+N+(t?"%"+t:"")];e&&!r&&m(R,F,N,{locale:t})}),[N,F,W,k,_,R]);var q={ref:H,onClick:function(e){E||"function"!==typeof S||S(e),E&&M.props&&"function"===typeof M.props.onClick&&M.props.onClick(e),e.defaultPrevented||function(e,t,r,n,o,i,s,c,u){if("A"!==e.currentTarget.nodeName.toUpperCase()||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&a.isLocalURL(r)){e.preventDefault();var l=function(){t[o?"replace":"push"](r,n,{shallow:i,locale:c,scroll:s})};u?u(l):l()}}(e,R,F,N,x,w,C,k,D?A:void 0)},onMouseEnter:function(e){E||"function"!==typeof O||O(e),E&&M.props&&"function"===typeof M.props.onMouseEnter&&M.props.onMouseEnter(e),a.isLocalURL(F)&&m(R,F,N,{priority:!0})}};if(!E||b||"a"===M.type&&!("href"in M.props)){var G="undefined"!==typeof k?k:R&&R.locale,Q=R&&R.isLocaleDomain&&d.getDomainLocale(N,G,R.locales,R.domainLocales);q.href=Q||f.addBasePath(s.addLocale(N,G,R&&R.defaultLocale))}return E?i.default.cloneElement(M,q):i.default.createElement("a",Object.assign({},P,q),r)}));t.default=v,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6340:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocalePath=void 0;t.normalizeLocalePath=function(e,t){return r(9625).normalizeLocalePath(e,t)},("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},639:function(e,t,r){"use strict";var n=r(5696);Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootRef,r=e.rootMargin,u=e.disabled||!a,l=o.useRef(),d=o.useState(!1),f=n(d,2),p=f[0],h=f[1],m=o.useState(null),v=n(m,2),g=v[0],y=v[1];o.useEffect((function(){if(a){if(l.current&&(l.current(),l.current=void 0),u||p)return;return g&&g.tagName&&(l.current=function(e,t,r){var n=function(e){var t,r={root:e.root||null,margin:e.rootMargin||""},n=c.find((function(e){return e.root===r.root&&e.margin===r.margin}));if(n&&(t=s.get(n)))return t;var o=new Map,i=new IntersectionObserver((function(e){e.forEach((function(e){var t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)}))}),e);return t={id:r,observer:i,elements:o},c.push(r),s.set(r,t),t}(r),o=n.id,i=n.observer,a=n.elements;return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),s.delete(o);var t=c.findIndex((function(e){return e.root===o.root&&e.margin===o.margin}));t>-1&&c.splice(t,1)}}}(g,(function(e){return e&&h(e)}),{root:null==t?void 0:t.current,rootMargin:r})),function(){null==l.current||l.current(),l.current=void 0}}if(!p){var e=i.requestIdleCallback((function(){return h(!0)}));return function(){return i.cancelIdleCallback(e)}}}),[g,u,r,t,p]);var b=o.useCallback((function(){h(!1)}),[]);return[y,p,b]};var o=r(7294),i=r(6286),a="function"===typeof IntersectionObserver;var s=new Map,c=[];("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8e3:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;var o=((n=r(7294))&&n.__esModule?n:{default:n}).default.createContext({});t.AmpStateContext=o},9470:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,r=void 0!==t&&t,n=e.hybrid,o=void 0!==n&&n,i=e.hasQuery,a=void 0!==i&&i;return r||o&&a}},1992:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullAppTreeContext=t.AppTreeContext=t.AppRouterContext=void 0;var n,o=(n=r(7294))&&n.__esModule?n:{default:n};var i=o.default.createContext(null);t.AppRouterContext=i;var a=o.default.createContext(null);t.AppTreeContext=a;var s=o.default.createContext(null);t.FullAppTreeContext=s},2717:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=d,t.default=void 0;var n,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(7294)),i=(n=r(1585))&&n.__esModule?n:{default:n},a=r(8e3),s=r(5850),c=r(9470);r(9475);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var p=["name","httpEquiv","charSet","itemProp"];function h(e,t){return e.reduce(f,[]).reverse().concat(d(t.inAmpMode).reverse()).filter(function(){var e=new Set,t=new Set,r=new Set,n={};return function(o){var i=!0,a=!1;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){a=!0;var s=o.key.slice(o.key.indexOf("$")+1);e.has(s)?i=!1:e.add(s)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(var c=0,u=p.length;c<u;c++){var l=p[c];if(o.props.hasOwnProperty(l))if("charSet"===l)r.has(l)?i=!1:r.add(l);else{var d=o.props[l],f=n[l]||new Set;"name"===l&&a||!f.has(d)?(f.add(d),n[l]=f):i=!1}}}return i}}()).reverse().map((function(e,r){var n=e.key||r;if(!t.inAmpMode&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((function(t){return e.props.href.startsWith(t)}))){var i=u({},e.props||{});return i["data-href"]=i.href,i.href=void 0,i["data-optimized-fonts"]=!0,o.default.cloneElement(e,i)}return o.default.cloneElement(e,{key:n})}))}var m=function(e){var t=e.children,r=o.useContext(a.AmpStateContext),n=o.useContext(s.HeadManagerContext);return o.default.createElement(i.default,{reduceComponentsToState:h,headManager:n,inAmpMode:c.isInAmpMode(r)},t)};t.default=m,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1585:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.headManager,r=e.reduceComponentsToState;function o(){if(t&&t.mountedInstances){var o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}if(i){var c;null==t||null==(c=t.mountedInstances)||c.add(e.children),o()}return a((function(){var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),function(){var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}})),a((function(){return t&&(t._pendingUpdate=o),function(){t&&(t._pendingUpdate=o)}})),s((function(){return t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),function(){t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)}})),null};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(7294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var i=!1,a=i?function(){}:n.useLayoutEffect,s=i?function(){}:n.useEffect},467:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return fr},queryClient:function(){return dr}});var n=r(9499),o=r(29),i=r(7794),a=r.n(i),s=(r(906),r(7294)),c=r(8767),u=r(3833),l=r(8527),d=r(6681),f=r(7375),p=r(1358),h=r(5193),m=r(7496),v=r(894),g=r(5893),y=(0,v.IU)({viewBox:"0 0 134 32",path:(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("svg",{width:"134",height:"32",viewBox:"0 0 134 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M42 11.3695C42 10.4104 42.7776 9.63281 43.7367 9.63281V9.63281C44.4416 9.63281 45.0765 10.0589 45.3438 10.7111L48.7593 19.0476C48.7769 19.0906 48.8187 19.1186 48.8651 19.1186V19.1186C48.9115 19.1186 48.9533 19.0906 48.9708 19.0476L52.3863 10.7111C52.6536 10.0589 53.2885 9.63281 53.9934 9.63281V9.63281C54.9526 9.63281 55.7301 10.4104 55.7301 11.3695V21.5859C55.7301 22.2143 55.2207 22.7237 54.5923 22.7237V22.7237C53.9639 22.7237 53.4545 22.2143 53.4545 21.5859V13.8026C53.4545 13.7626 53.4221 13.7301 53.382 13.7301V13.7301C53.3525 13.7301 53.3258 13.7481 53.3148 13.7755L50.0335 21.8974C49.8411 22.3736 49.379 22.6854 48.8654 22.6854V22.6854C48.3515 22.6854 47.8891 22.3732 47.6969 21.89
166L44.4153 13.7563C44.4043 13.7289 44.3776 13.7109 44.3481 13.7109V13.7109C44.308 13.7109 44.2756 13.7434 44.2756 13.7834V21.5859C44.2756 22.2143 43.7662 22.7237 43.1378 22.7237V22.7237C42.5094 22.7237 42 22.2143 42 21.5859V11.3695Z",fill:"#101828"}),(0,g.jsx)("path",{d:"M61.0355 22.9219C60.4134 22.9219 59.853 22.8111 59.3544 22.5895C58.8601 22.3636 58.468 22.0313 58.1783 21.5923C57.8928 21.1534 57.75 20.6122 57.75 19.9688C57.75 19.4148 57.8523 18.9567 58.0568 18.5945C58.2614 18.2322 58.5405 17.9425 58.8942 17.7251C59.2479 17.5078 59.6463 17.3438 60.0895 17.233C60.5369 17.1179 60.9993 17.0348 61.4766 16.9837C62.0518 16.924 62.5185 16.8707 62.8764 16.8239C63.2344 16.7727 63.4943 16.696 63.6562 16.5938C63.8224 16.4872 63.9055 16.3232 63.9055 16.1016V16.0632C63.9055 15.5817 63.7628 15.2088 63.4773 14.9446C63.1918 14.6804 62.7805 14.5483 62.2436 14.5483C61.6768 14.5483 61.2273 14.6719 60.8949 14.919C60.8398 14.9605 60.7878 15.0032 60.7387 15.0472C60.3438 15.4014 59.8501 15.7408 59.3249 15.6662V15.6662C58.6613 15.572 58.2182 14.8914 58.612 14.3491C58.7039 14.2225 58.8043 14.1036 58.9134 13.9922C59.3054 13.5874 59.7848 13.2848 60.3516 13.0845C60.9183 12.88 61.5447 12.7777 62.2308 12.7777C62.7038 12.7777 63.1747 12.8331 63.6435 12.9439C64.1122 13.0547 64.5405 13.2379 64.9283 13.4936C65.3161 13.745 65.6271 14.0881 65.8615 14.5227C66.1001 14.9574 66.2195 15.5007 66.2195 16.1527V21.6115C66.2195 22.2258 65.7215 22.7237 65.1072 22.7237H64.6694C64.297 22.7237 63.995 22.4218 63.995 22.0494V21.4227C63.995 21.3963 63.9737 21.375 63.9474 21.375V21.375C63.9295 21.375 63.9132 21.385 63.9049 21.4007C63.7652 21.6638 63.5715 21.9109 63.3239 22.142C63.0724 22.3764 62.755 22.5661 62.3714 22.7109C61.9922 22.8516 61.5469 22.9219 61.0355 22.9219ZM61.6364 21.2216C62.1009 21.2216 62.5036 21.13 62.8445 20.9467C63.1854 20.7592 63.4474 20.5121 63.6307 20.2053C63.8182 19.8984 63.9119 19.5639 63.9119 19.2017V18.4534C63.9119 18.2904 63.6976 18.1652 63.5412 18.2109V18.2109C63.3707 18.2621 63.179 18.3068 62.9659 18.3452C62.7528 18.3835 62.5419 18.4176 62.3331 18.4474C62.1243 18.4773 61.9432 18.5028 61.7898 18.5241C61.4446 18.571 61.1357 18.6477 60.8629 18.7543C60.5902 18.8608
160.375 19.0099 60.2173 19.2017C60.0597 19.3892 59.9808 19.6321 59.9808 19.9304C59.9808 20.3565 60.1364 20.6783 60.4474 20.8956C60.7585 21.1129 61.1548 21.2216 61.6364 21.2216Z",fill:"#101828"}),(0,g.jsx)("path",{d:"M72.8161 26.6101C71.9851 26.6101 71.2713 26.4972 70.6747 26.2713C70.0781 26.0497 69.5987 25.7514 69.2365 25.3764C69.1779 25.3158 69.1223 25.2541 69.0695 25.1913C68.6434 24.6847 69.0258 23.9983 69.6691 23.8424L69.8824 23.7907C70.2817 23.6939 70.6914 23.8967 70.9751 24.1939V24.1939C71.1541 24.3857 71.3949 24.5433 71.6974 24.6669C72.0043 24.7947 72.3899 24.8587 72.8544 24.8587C73.5107 24.8587 74.054 24.6989 74.4844 24.3793C74.9148 24.0639 75.13 23.544 75.13 22.8196V21.0306C75.13 20.9914 75.0981 20.9595 75.0589 20.9595V20.9595C75.0319 20.9595 75.0074 20.9748 74.9949 20.9986C74.8764 21.2249 74.7083 21.4569 74.4908 21.6946C74.2649 21.946 73.9645 22.157 73.5895 22.3274C73.2188 22.4979 72.7521 22.5831 72.1896 22.5831C71.4354 22.5831 70.7514 22.4063 70.1378 22.0526C69.5284 21.6946 69.0426 21.1619 68.6804 20.4545C68.3224 19.7429 68.1435 18.8523 68.1435 17.7827C68.1435 16.7045 68.3224 15.7947 68.6804 15.0533C69.0426 14.3075 69.5305 13.7429 70.1442 13.3594C70.7578 12.9716 71.4418 12.7777 72.196 12.7777C72.7713 12.7777 73.2443 12.8757 73.6151 13.0717C73.9901 13.2635 74.2884 13.4957 74.5099 13.7685C74.7179 14.0204 74.8789 14.2592 74.9931 14.4849C75.0067 14.5118 75.0341 14.5291 75.0642 14.5291V14.5291C75.1076 14.5291 75.1428 14.494 75.1428 14.4506V13.7173C75.1428 13.269 75.5062 12.9055 75.9545 12.9055H76.2837C76.9139 12.9055 77.4247 13.4164 77.4247 14.0465V22.8835C77.4247 23.723 77.2244 24.4176 76.8239 24.9673C76.4233 25.517 75.8757 25.9283 75.1811 26.201C74.4865 26.4737 73.6982 26.6101 72.8161 26.6101ZM72.8352 20.7678C73.3253 20.7678 73.7429 20.6484 74.0881 20.4098C74.4332 20.1712 74.6953 19.8281 74.8743 19.3807C75.0533 18.9332 75.1428 18.3963 75.1428 17.7699C75.1428 17.152 75.0533 16.6108 74.8743 16.1463C74.6996 15.6818 74.4396 15.3217 74.0945 15.0661C73.7536 14.8061 73.3338 14.6761 72.8352 14.6761C72.3196 14.6761 71.8892 14.8104 71.544 15.0788C71.1989 15.3473 70.9389 15.7159 70.7642 16.1847C70.5895 16.6491 70.5021 17.1776 70.5021 17.7699C70.5021 18.3707 70.5895 18.897 70.7642 19.3487C70.9432 19.7962 71.2053 20.1456 71.5504 20.397C71.8999 20.6442 72.3281 20.7678 72.8352 20.7678Z",fill:"#101828"}),(0,g.jsx)("path",{d:"M80.9531 22.7237C80.3142 22.7237 79.7962 22.2057 79.7962 21.5668V14.0625C79.7962 13.4235 80.3142 12.9055 80.9531 12.9055V12.9055C81.5921 12.9055 82.1101 13.4235 82.1101 14.0625V21.5668C82.1101 22.2057 81.5921 22.7237 80.9531 22.7237V22.7237ZM80.9595 11.5121C80.593 11.5121 80.2777 11.3906 80.0135 11.1477C79.7493 10.9006 79.6172 10.6044 79.6172 10.2592C79.6172 9.9098 79.7493 9.61364 80.0135 9.37074C80.2777 9.12358 80.593 9 80.9595 9C81.3303 9 81.6456 9.12358 81.9055 9.37074C82.1697 9.61364 82.3018 9.9098 82.3018 10.2592C82.3018 10.6044 82.1697 10.9006 81.9055 11.1477C81.6456 11.3906 81.3303 11.5121 80.9595 11.5121Z",fill:"#101828"}),(0,g.jsx)("path",{d:"M88.7722 22.9155C87.7921 22.9155 86.9505 22.7003 86.2473 22.2699C85.5485 21.8395 85.0094 21.245 84.6301 20.4865C84.2551 19.7237 84.0676 18.8459 84.0676 17.853C84.0676 16.8558 84.2594 15.9759 84.6429 15.2131C85.0265 14.446 85.5677 13.8494 86.2665 13.4233C86.9696 12.9929 87.8006 12.7777 88.7594 12.7777C89.5563 12.7777 90.2615 12.9247 90.8752 13.2188C91.4931 13.5085 91.9853 13.9197 92.3517 14.4524C92.491 14.6533 92.6075 14.867 92.7013 15.0937C92.9591 15.7172 92.4039 16.3061 91.7292 16.3061V16.3061C91.1708 16.3061 90.7233 15.8783 90.3953 15.4264C90.3169 15.3185 90.2276 15.2175 90.1273 15.1236C89.7949 14.804 89.3496 14.6442 88.7914 14.6442C88.3184 14.6442 87.9029 14.772 87.5449 15.0277C87.187 15.2791 86.9078 15.6413 86.7076 16.1143C86.5115 16.5874 86.4135 17.1541 86.4135 17.8146C86.4135 18.4837 86.5115 19.0589 86.7076 19.5405C86.9036 20.0178 87.1784 20.3864 87.5321 20.6463C87.8901 20.902 88.3098 21.0298 88.7914 21.0298C89.1323 21.0298 89.437 20.9659 89.7054 20.8381C89.9782 20.706 90.2061 20.5163 90.3894 20.2692C90.395 20.2615 90.4006 20.2539 90.4062 20.2461C90.73 19.7948 91.1679 19.3679 91.7233 19.3679V19.3679C92.3996 19.3679 92.952 19.9595 92.6964 20.5856C92.6062 20.8063 92.4956 21.0162 92.3645 21.2152C92.0108 21.7479 91.5293 22.1655 90.9199 22.468C90.3105 22.7663 89.5946 22.9155 88.7722 22.9155Z",fill:"#101828"}),(0,g.jsx)("path",{d:"M103.165 13.2315C102.556 13.2315 102.089 12.7216 101.699 12.2542C101.598 12.1333 101.479 12.0245 101.341 11.9276C100.902 11.6165 100.331 11.4609 99.6275 11.4609C99.1332 11.4609 98.7092 11.5355 98.3555 11.6847C98.0018 11.8338 97.7312 12.0362 97.5437 12.2919C97.3562 12.5476 97.2603 12.8395 97.256 13.1676C97.256 13.4403 97.3178 13.6768 97.4414 13.8771C97.5692 14.0774 97.7418 14.2479 97.9592 14.3885C98.1765 14.5249 98.4173 14.6399 98.6815 14.7337C98.9457 14.8274 99.212 14.9063 99.4805 14.9702L100.708 15.277C101.202 15.392 101.677 15.5476 102.133 15.7436C102.593 15.9396 103.005 16.1868 103.367 16.4851C103.733 16.7834 104.023 17.1435 104.236 17.5653C104.449 17.9872 104.556 18.4815 104.556 19.0483C104.556 19.8153 104.36 20.4908 103.968 21.0746C103.576 21.6541 103.009 22.108 102.267 22.4361C101.53 22.7
1599 100.637 22.9219 99.5891 22.9219C98.5707 22.9219 97.6864 22.7642 96.9364 22.4489C96.1907 22.1335 95.6069 21.6733 95.185 21.0682C94.9778 20.768 94.8178 20.4353 94.7051 20.07C94.5065 19.427 95.0674 18.8565 95.7404 18.8565V18.8565C96.3608 18.8565 96.8276 19.3793 97.1824 19.8883C97.2077 19.9246 97.2344 19.96 97.2624 19.9943C97.5096 20.2969 97.8313 20.5227 98.2276 20.6719C98.6282 20.821 99.0756 20.8956 99.57 20.8956C100.086 20.8956 100.537 20.8189 100.925 20.6655C101.317 20.5078 101.624 20.2905 101.846 20.0135C102.067 19.7322 102.18 19.4041 102.184 19.0291C102.18 18.6882 102.08 18.407 101.884 18.1854C101.688 17.9595 101.413 17.772 101.059 17.6229C100.71 17.4695 100.301 17.3331 99.832 17.2138L98.3427 16.8303C97.2646 16.5533 96.4123 16.1335 95.7859 15.571C95.1637 15.0043 94.8526 14.2521 94.8526 13.3146C94.8526 12.5433 95.0614 11.8679 95.479 11.2884C95.9009 10.7088 96.4741 10.2592 97.1985 9.93963C97.9229 9.61577 98.7433 9.45384 99.6594 9.45384C100.588 9.45384 101.402 9.61577 102.101 9.93963C102.804 10.2592 103.356 10.7045 103.757 11.2756C103.927 11.5166 104.062 11.773 104.163 12.0448C104.393 12.6694 103.831 13.2315 103.165 13.2315V13.2315Z",fill:"#101828"}),(0,g.jsx)("path",{d:"M108.882 16.9709V21.5668C108.882 22.2057 108.364 22.7237 107.725 22.7237V22.7237C107.086 22.7237 106.568 22.2057 106.568 21.5668V10.7642C106.568 10.1394 107.074 9.63281 107.699 9.63281V9.63281C108.324 9.63281 108.83 10.1394 108.83 10.7642V14.5049C108.83 14.543 108.861 14.5739 108.899 14.5739V14.5739C108.927 14.5739 108.952 14.557 108.963 14.5314C109.194 13.9975 109.544 13.5749 110.013 13.2635C110.499 12.9396 111.117 12.7777 111.867 12.7777C112.548 12.7777 113.143 12.9205 113.65 13.206C114.157 13.4915 114.549 13.9091 114.826 14.4588C115.107 15.0085 115.248 15.6797 115.248 16.4723V21.5668C115.248 22.2057 114.73 22.7237 114.091 22.7237V22.7237C113.452 22.7237 112.934 22.2057 112.934 21.5668V16.8303C112.934 16.1697 112.764 15.6562 112.423 15.2898C112.086 14.919 111.613 14.7337 111.004 14.7337C110.595 14.7337 110.228 14.8232 109.904 15.0021C109.585 15.1768 109.333 15.4304 109.15 15.7628C108.971 16.0952 108.882 16.4979 108.882 16.9709Z",fill:"#101828"}),(0,g.jsx)("path",{d:"M121.889 22.9155C120.931 22.9155 120.1 22.7045 119.396 22.2827C118.693 21.8608 118.148 21.2706 117.76 20.5121C117.377 19.7536 117.185 18.8672 117.185 17.853C117.185 16.8388 117.377 15.9503 117.76 15.1875C118.148 14.4247 118.693 13.8324 119.396 13.4105C120.1 12.9886 120.931 12.7777 121.889 12.7777C122.848 12.7777 123.679 12.9886 124.382 13.4105C125.085 13.8324 125.629 14.4247 126.012 15.1875C126.4 15.9503 126.594 16.8388 126.594 17.853C126.594 18.8672 126.4 19.7536 126.012 20.5121C125.629 21.2706 125.085 21.8608 124.382 22.2827C123.679 22.7045 122.848 22.9155 121.889 22.9155ZM121.902 21.0618C122.422 21.0618 122.857 20.919 123.206 20.6335C123.556 20.3438 123.816 19.956 123.986 19.4702C124.161 18.9844 124.248 18.4432 124.248 17.8466C124.248 17.2457 124.161 16.7024 123.986 16.2166C123.816 15.7266 123.556 15.3366 123.206 15.0469C122.857 14.7571 122.422 14.6122 121.902 14.6122C121.369 14.6122 120.926 14.7571 120.573 15.0469C120.223 15.3366 119.961 15.7266 119.786 16.2166C119.616 16.7024 119.531 17.2457 119.531 17.8466C119.531 18.4432 119.616 18.9844 119.786 19.4702C119.961 19.956 120.223 20.3438 120.573 20.6335C120.926 20.919 121.369 21.0618 121.902 21.0618Z",fill:"#101828"}),(0,g.jsx)("path",{d:"M132.566 12.9055C133.06 12.9055 133.461 13.3062 133.461 13.8004V13.8004C133.461 14.2947 133.06 14.6953 132.566 14.6953H128.711C128.217 14.6953 127.816 14.2947 127.816 13.8004V13.8004C127.816 13.3062 128.217 12.9055 128.711 12.9055H132.566ZM129.21 11.7102C129.21 11.0713 129.728 10.5533 130.367 10.5533V10.5533C131.006 10.5533 131.524 11.0713 131.524 11.7102V19.7706C131.524 20.0817 131.571 20.3203 131.664 20.4865C131.762 20.6484 131.89 20.7592 132.048 20.8189C132.206 20.8786 132.38 20.9084 132.572 20.9084C132.717 20.9084 132.849 20.8977 132.968 20.8764V20.8764C133.122 20.8499 133.277 20.9468 133.31 21.0996L133.524 22.091C133.59 22.3974 133.415 22.7005 133.109 22.7685V22.7685C132.883 22.8196 132.606 22.8494 132.278 22.858C131.699 22.875 131.176 22.7876 130.712 22.5959C130.248 22.3999 129.879 22.0973 129.606 21.6882C129.338 21.2791 129.206 20.7678 129.21 20.1541V11.7102Z",fill:"#101828"}),(0,g.jsx)("rect",{width:"32",height:"32",rx:"8",fill:"#E0EAFF"}),(0,g.jsx)("path",{d:"M7 10.6H18.52C19.5281 10.6 20.0321 10.6 20.4172 10.7962C20.7559 10.9688 21.0312 11.2441 21.2038 11.5828C21.4 11.9679 21.4 12.4719 21.4 13.48V25M25 21.4L13.48 21.4C12.4719 21.4 11.9679 21.4 11.5828 21.2038C11.2441 21.0312 10.9688 20.7559 10.7962 20.4172C10.6 20.0321 10.6 19.5281 10.6 18.52V7",stroke:"#444CE7",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),displayName:"LogoIcon"}),b=r(1664),x=r.n(b),w=r(4730),C=r(1604),k=(0,v.IU)({viewBox:"0 0 24 24",path:(0,g.jsx)("path",{d:"M3 12H21M3 6H21M3 18H21",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),displayName:"Menu01Icon"}),S=r(4193),O=["isOpen","onClick"];function j(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}var E=(0,C.Gp)((function(e,t){var r=e.isOpen,o=e.onClick,i=(0,w.Z)(e,O);return(0,g.jsx)(h.hU,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?j(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({ref:t,borderRadius:"8px",role:"group",_hover:{bg:"gray.50"},icon:r?(0,g.jsx)(S.Z,{transition:".2s",stroke:"gray.500",h:"24px",w:"24px",strokeWidth:"2"}):(0,g.jsx)(k,{transition:".2s",stroke:"gray.700",h:"24px",w:"24px",_groupHover:{stroke:"gray.700"}}),onClick:o,h:"40px",w:"40px",variant:"unstyled"},i))})),P=E;function _(){return _=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(this,arguments)}var T=r(6835),A=(0,v.IU)({viewBox:"0 0 24 24",path:(0,g.jsx)("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),displayName:"ArrowRightIcon"}),R=["variant"];function D(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 M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var I=(0,C.eC)("NavMenuItemLink"),F=(0,T.Z)(I,2),N=F[0],L=F[1],B=(0,C.Gp)((function(e,t){var r=e.variant,n=void 0===r?"desktop":r,o=(0,w.Z)(e,R),i=(0,C.jC)("NavMenuItemLink",{variant:n});return(0,g.jsx)(l.xu,M(M({as:l.rU,ref:t,__css:i.container},o),{},{children:(0,g.jsx)(N,{value:i,children:o.children})}))})),z=(0,C.Gp)((function(e,t){var r=_({},e),n=L();return(0,g.jsx)(l.xu,M(M({ref:t,__css:n.content},r),{},{children:r.children}))})),V=(0,C.Gp)((function(e,t){var r=_({},e),n=L();return(0,g.jsx)(l.xu,M(M({as:l.xv,ref:t,__css:n.title},r),{},{children:r.children}))})),U=((0,C.Gp)((function(e,t){var r=_({},e),n=L();return(0,g.jsx)(l.xu,M(M({as:l.xv,ref:t,__css:n.supporting},r),{},{children:r.children}))})),(0,C.Gp)((function(e,t){var r=_({},e),n=L();return(0,g.jsxs)(l.xu,M(M({ref:t,__css:n.action},r),{},{children:[(0,g.jsx)(l.xv,{textStyle:"text.sm.medium",color:"primary.700",children:r.children}),(0,g.jsx)(A,{h:"20px",w:"20px",stroke:"primary.700"})]}))})),(0,C.Gp)((function(e,t){var r=L();return(0,g.jsx)(l.xu,M(M({ref:t,__css:r.iconContainer},e),{},{children:e.children}))})),r(1163)),$=function(){var e=(0,f.qY)(),t=e.isOpen,r=e.onToggle,n=(0,U.useRouter)().pathname;return["/editor"].includes(n)?(0,g.jsx)(g.Fragment,{}):(0,g.jsxs)(l.xu,{as:"header",children:[(0,g.jsxs)(l.W2,{maxW:"container.xl",py:"18px",children:[(0,g.jsxs)(l.kC,{alignItems:"center",justifyContent:"space-between",className:"hideBelowMD",children:[(0,g.jsxs)(l.kC,{gap:"40px",alignItems:"center",children:[(0,g.jsx)(x(),{href:"/",passHref:!0,children:(0,g.jsxs)(l.rU,{children:[(0,g.jsx)(p.TX,{children:"Home"}),(0,g.jsx)(y,{w:"auto",h:"30px"})]})}),(0,g.jsxs)(l.kC,{as:"nav",gap:"32px",children:[(0,g.jsx)(x(),{href:"/pricing",passHref:!0,children:(0,g.jsx)(h.zx,{as:l.rU,variant:"linkGray",size:"lg",children:"Pricing"})}),(0,g.jsx)(x(),{href:"/chrome-extension",passHref:!0,children:(0,g.jsx)(h.zx,{as:l.rU,variant:"linkGray",size:"lg",children:"Chrome Extension"})}),(0,g.jsx)(x(),{href:"/free-tools",passHref:!0,children:(0,g.jsx)(h.zx,{as:l.rU,variant:"linkGray",size:"lg",children:"Free Tools"})})]})]}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(x(),{href:"/editor",passHref:!0,children:(0,g.jsx)(h.zx,{as:l.rU,variant:"primary",size:"lg",className:"hideBelowMD",children:"Open editor"})}),(0,g.jsx)(x(),{href:"/editor",passHref:!0,children:(0,g.jsx)(h.zx,{as:l.rU,variant:"primary",size:"sm",className:"hideAboveMD",children:"Open editor"})})]})]}),(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsxs)(l.kC,{alignItems:"center",justifyContent:"space-between",className:"hideAboveMD",children:[(0,g.jsx)(x(),{href:"/",passHref:!0,children:(0,g.jsxs)(l.rU,{children:[(0,g.jsx)(p.TX,{
1children:"Home"}),(0,g.jsx)(y,{w:"auto",h:"30px"})]})}),(0,g.jsx)(P,{"aria-label":"Open Menu",isOpen:t,onClick:r})]}),(0,g.jsxs)(m.UO,{in:t,animateOpacity:!0,className:"hideAboveMD",children:[(0,g.jsx)(l.iz,{mt:"24px",borderColor:"gray.100"}),(0,g.jsx)(l.kC,{flexDir:"column",mt:"24px",children:(0,g.jsxs)(l.kC,{gap:"8px",flexDir:"column",children:[(0,g.jsx)(x(),{href:"/pricing",passHref:!0,children:(0,g.jsx)(B,{variant:"mobile",onClick:r,children:(0,g.jsx)(z,{children:(0,g.jsx)(V,{children:"Pricing"})})})}),(0,g.jsx)(x(),{href:"/chrome-extension",passHref:!0,children:(0,g.jsx)(B,{variant:"mobile",onClick:r,children:(0,g.jsx)(z,{children:(0,g.jsx)(V,{children:"Chrome Extension"})})})}),(0,g.jsx)(x(),{href:"/free-tools",passHref:!0,children:(0,g.jsx)(B,{variant:"mobile",onClick:r,children:(0,g.jsx)(z,{children:(0,g.jsx)(V,{children:"Free Tools"})})})}),(0,g.jsx)(x(),{href:"/editor",passHref:!0,children:(0,g.jsx)(h.zx,{mt:"26px",as:l.rU,variant:"primary",size:"lg",width:"100%",children:"Open editor"})})]})})]})]})]}),(0,g.jsx)(l.iz,{borderColor:"gray.100"})]})},W=r(4651),Z=(0,v.IU)({viewBox:"0 0 24 24",path:(0,g.jsx)("path",{d:"M7.55016 21.75C16.6045 21.75 21.5583 14.2468 21.5583 7.74192C21.5583 7.53098 21.5536 7.31536 21.5442 7.10442C22.5079 6.40752 23.3395 5.54432 24 4.55536C23.1025 4.95466 22.1496 5.21544 21.1739 5.3288C22.2013 4.71297 22.9705 3.74553 23.3391 2.60583C22.3726 3.17862 21.3156 3.58267 20.2134 3.80067C19.4708 3.01162 18.489 2.48918 17.4197 2.31411C16.3504 2.13905 15.2532 2.32111 14.2977 2.83216C13.3423 3.3432 12.5818 4.15477 12.1338 5.14137C11.6859 6.12798 11.5754 7.23468 11.8195 8.29036C9.86249 8.19215 7.94794 7.68377 6.19998 6.79816C4.45203 5.91255 2.90969 4.6695 1.67297 3.14958C1.0444 4.2333 0.852057 5.51571 1.13503 6.73615C1.418 7.9566 2.15506 9.02351 3.19641 9.72005C2.41463 9.69523 1.64998 9.48474 0.965625 9.10598V9.16692C0.964925 10.3042 1.3581 11.4066 2.07831 12.2868C2.79852 13.167 3.80132 13.7706 4.91625 13.995C4.19206 14.1932 3.43198 14.2221 2.69484 14.0794C3.00945 15.0575 3.62157 15.913 4.44577 16.5264C5.26997 17.1398 6.26512 17.4807 7.29234 17.5013C5.54842 18.8712 3.39417 19.6142 1.17656 19.6107C0.783287 19.6101 0.390399 19.586 0 19.5385C2.25286 20.9838 4.87353 21.7514 7.55016 21.75Z"}),displayName:"TwitterIcon"}),H=(0,v.IU)({viewBox:"0 0 24 24",path:(0,g.jsx)("path",{d:"M2 7L10.1649 12.7154C10.8261 13.1783 11.1567 13.4097 11.5163 13.4993C11.8339 13.5785 12.1661 13.5785 12.4837 13.4993C12.8433 13.4097 13.1739 13.1783 13.8351 12.7154L22 7M6.8 20H17.2C18.8802 20 19.7202 20 20.362 19.673C20.9265 19.3854 21.3854 18.9265 21.673 18.362C22 17.7202 22 16.8802 22 15.2V8.8C22 7.11984 22 6.27976 21.673 5.63803C21.3854 5.07354 20.9265 4.6146 20.362 4.32698C19.7202 4 18.8802 4 17.2 4H6.8C5.11984 4 4.27976 4 3.63803 4.32698C3.07354 4.6146 2.6146 5.07354 2.32698 5.63803C2 6.27976 2 7.11984 2 8.8V15.2C2 16.8802 2 17.7202 2.32698 18.362C2.6146 18.9265 3.07354 19.3854 3.63803 19.673C4.27976 20 5.11984 20 6.8 20Z",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),displayName:"Mail01Icon"}),q="/_next/static/media/gwendalbrossard.19162db7.png",G="/_next/static/media/croissantstudio.92950a63.svg",Q=function(){var e=(0,U.useRouter)().pathname;return["/editor"].includes(e)?(0,g.jsx)(g.Fragment,{}):(0,g.jsx)(l.xu,{as:"footer",bg:"gray.50",children:(0,g.jsxs)(l.W2,{maxW:"container.xl",py:"48px",children:[(0,g.jsxs)(l.kC,{gap:{base:0,md:"64px"},flexDir:{base:"column",md:"row"},children:[(0,g.jsxs)(l.kC,{flexDir:"column",maxW:{base:"100%",md:"320px"},children:[(0,g.jsx)(x(),{href:"/",passHref:!0,children:(0,g.jsxs)(l.rU,{children:[(0,g.jsx)(p.TX,{children:"Home"}),(0,g.jsx)(y,{w:"auto",h:"32px"})]})}),(0,g.jsx)(l.xv,{mt:{base:"24px",md:"32px"},color:"gray.500",children:"Create beautiful screenshots in just a few clicks."}),(0,g.jsxs)(l.kC,{gap:"24px",marginTop:"12px",children:[(0,g.jsx)(x(),{href:"https://twitter.com/MagicShotApp",passHref:!0,children:(0,g.jsxs)(l.rU,{h:"fit-content",role:"group",isExternal:!0,color:"gray.400",_hover:{color:"gray.500"},textStyle:"text.md.regular",children:[(0,g.jsx)(p.TX,{children:"Twitter"}),(0,g.jsx)(Z,{h:"24px",w:"24px",fill:"gray.400",_groupHover:{fill:"gray.500"},transition:".2s"})]})}),(0,g.jsx)(x(),{href:"mailto:[email protected]",passHref:!0,children:(0,g.jsxs)(l.rU,{h:"fit-content",role:"group",isExternal:!0,color:"gray.400",_hover:{color:"gray.500"}
1,textStyle:"text.md.regular",children:[(0,g.jsx)(p.TX,{children:"Email"}),(0,g.jsx)(H,{h:"24px",w:"24px",stroke:"gray.400",_groupHover:{stroke:"gray.500"},transition:".2s"})]})})]})]}),(0,g.jsxs)(l.kC,{gap:"32px",justifyContent:"space-between",w:"100%",flexWrap:"wrap",mt:{base:"48px",md:0},children:[(0,g.jsxs)(l.kC,{flexDir:"column",w:{base:"100%",md:"fit-content"},children:[(0,g.jsx)(l.xv,{as:"h5",textStyle:"text.sm.semiBold",color:"gray.400",mb:"16px",children:"Products"}),(0,g.jsx)(l.QI,{marginInlineStart:"0",listStyleType:"none",spacing:"12px",children:(0,g.jsx)(l.HC,{textStyle:"text.md.medium",color:"gray.500",children:(0,g.jsx)(x(),{href:"/editor",passHref:!0,children:(0,g.jsx)(l.rU,{children:"Screenshot editor"})})})})]}),(0,g.jsxs)(l.kC,{flexDir:"column",w:{base:"100%",md:"fit-content"},children:[(0,g.jsx)(l.xv,{as:"h5",textStyle:"text.sm.semiBold",color:"gray.400",mb:"16px",children:"Social"}),(0,g.jsxs)(l.QI,{marginInlineStart:"0",listStyleType:"none",spacing:"12px",children:[(0,g.jsx)(l.HC,{textStyle:"text.md.medium",color:"gray.500",children:(0,g.jsx)(x(),{href:"https://twitter.com/MagicShotApp",passHref:!0,children:(0,g.jsx)(l.rU,{children:"Twitter"})})}),(0,g.jsx)(l.HC,{textStyle:"text.md.medium",color:"gray.500",children:(0,g.jsx)(x(),{href:"mailto:[email protected]",passHref:!0,children:(0,g.jsx)(l.rU,{children:"Email"})})})]})]}),(0,g.jsxs)(l.kC,{flexDir:"column",w:{base:"100%",md:"fit-content"},children:[(0,g.jsx)(l.xv,{as:"h5",textStyle:"text.sm.semiBold",color:"gray.400",mb:"16px",children:"We also built"}),(0,g.jsxs)(l.QI,{marginInlineStart:"0",listStyleType:"none",spacing:"12px",children:[(0,g.jsx)(l.HC,{textStyle:"text.md.medium",color:"gray.500",children:(0,g.jsx)(l.rU,{href:"https://studyunfold.com",children:"StudyUnfold - Learn with the Feynman AI technique, AI-powered flashcards, etc..."})}),(0,g.jsx)(l.HC,{textStyle:"text.md.medium",color:"gray.500",children:(0,g.jsx)(l.rU,{href:"https://plumeui.com",children:"Plume UI - React UI Component Library"})})]})]}),(0,g.jsxs)(l.kC,{flexDir:"column",w:{base:"100%",md:"fit-content"},children:[(0,g.jsx)(l.xv,{as:"h5",textStyle:"text.sm.semiBold",color:"gray.400",mb:"16px",children:"Legal"}),(0,g.jsxs)(l.QI,{marginInlineStart:"0",listStyleType:"none",spacing:"12px",children:[(0,g.jsx)(l.HC,{textStyle:"text.md.medium",color:"gray.500",children:(0,g.jsx)(x(),{href:"/privacy",passHref:!0,children:(0,g.jsx)(l.rU,{children:"Privacy policy"})})}),(0,g.jsx)(l.HC,{textStyle:"text.md.medium",color:"gray.500",children:(0,g.jsx)(x(),{href:"/terms",passHref:!0,children:(0,g.jsx)(l.rU,{children:"Terms and conditions"})})})]})]})]})]}),(0,g.jsx)(l.iz,{mt:{base:"32px",md:"48px"},mb:"32px"}),(0,g.jsxs)(l.kC,{justifyContent:"space-between",w:"100%",children:[(0,g.jsxs)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:["\xa9 ",(new Date).getFullYear()," MagicShot"]}),(0,g.jsxs)(l.xv,{display:"flex",gap:2,textStyle:"text.md.regular",color:"gray.500",children:[(0,g.jsx)(W.Ee,{src:G,height:"24px",width:"24px",alt:"Croissant Studio",rounded:"full"}),(0,g.jsx)("a",{href:"https://croissantstudio.com",rel:"noopener noreferrer",target:"_blank",title:"Visit Croissant Studio",children:"Croissant Studio"})," ","| ",(0,g.jsx)(W.Ee,{src:q,height:"24px",width:"24px",alt:"Gwendal Brossard",rounded:"full"}),(0,g.jsx)("a",{href:"https://gwendalbrossard.com",rel:"author noopener noreferrer",target:"_blank",title:"Learn more about Gwendal Brossard",children:"Gwendal Brossard"})]})]})]})})},Y=r(3208),K=r(6041),X=r(6658),J=r(9609),ee=r(5074),te=r(8405),re=r(968);function ne(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 oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ie=(0,ee.I2)().toast,ae=function(){var e=(0,re.L)((function(e){return e.userSubscription})),t=(0,re.L)((function(e){return e.updateUserSubscription}
1)),r=(0,s.useState)(!1),n=r[0],i=r[1],c=(0,s.useState)(!1),u=c[0],d=c[1],f=function(){var r=(0,o.Z)(a().mark((function r(){var n,o;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i(!0),r.next=3,(0,te.ZB)();case 3:(n=r.sent).success?(t(oe(oe({},e),{},{paused_at:new Date,paused_from:e.next_payment&&new Date(null===(o=e.next_payment)||void 0===o?void 0:o.date),next_payment:null})),ie({title:"Success",description:"Your subscription has been canceled!",status:"success",duration:1e4,isClosable:!0})):n.success||ie({title:"Error",description:"An error occured, please send an email to: [email protected]",status:"error",duration:1e4,isClosable:!0}),i(!1);case 6:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),p=function(){var r=(0,o.Z)(a().mark((function r(){var n;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return d(!0),r.next=3,(0,te.fT)();case 3:(n=r.sent).success?(t(oe(oe({},e),{},{paused_at:null,paused_from:null,next_payment:n.next_payment})),ie({title:"Success",description:"Your subscription has been resumed!",status:"success",duration:1e4,isClosable:!0})):n.success||ie({title:"Error",description:"An error occured, please send an email to: [email protected]",status:"error",duration:1e4,isClosable:!0}),d(!1);case 6:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(l.kC,{flexDir:"column",gap:"4px",children:[(0,g.jsxs)(l.kC,{alignItems:"center",gap:"4px",children:[(0,g.jsx)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:"Your current plan is:"}),(0,g.jsx)(l.xv,{p:"2px 6px",bg:"success.100",borderRadius:"4px",textStyle:"text.sm.medium",color:"success.700",children:"Pro"})]}),(0,g.jsxs)(l.kC,{alignItems:"center",gap:"4px",children:[(0,g.jsx)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:"Subscription type:"}),(0,g.jsx)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:e.plan_id&&e.plan_id===Number("785719")?"Monthly":"Annual"})]}),(0,g.jsxs)(l.kC,{alignItems:"center",gap:"4px",children:[(0,g.jsx)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:"Subscription date:"}),(0,g.jsx)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:e.signup_date&&new Date(e.signup_date).toLocaleDateString()})]}),e.next_payment&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(l.kC,{alignItems:"center",gap:"4px",children:[(0,g.jsx)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:"Next billing date:"}),(0,g.jsx)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:e.next_payment&&new Date(e.next_payment.date).toLocaleDateString()})]}),(0,g.jsxs)(l.kC,{alignItems:"center",gap:"4px",children:[(0,g.jsx)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:"Next billing amount:"}),(0,g.jsx)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:e.next_payment&&e.next_payment.amount+" "+e.next_payment.currency})]})]}),e.paused_from&&(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(l.kC,{alignItems:"center",gap:"4px",children:[(0,g.jsx)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:"Subscription expires:"}),(0,g.jsx)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:e.paused_from&&new Date(e.paused_from).toLocaleDateString()})]})})]}),e.next_payment&&(0,g.jsx)(h.zx,{isLoading:n,mt:"12px",w:"100%",onClick:f,variant:"primary",colorScheme:"error",size:"lg",children:"Cancel subscription"}),e.paused_at&&(0,g.jsx)(h.zx,{isLoading:u,mt:"12px",w:"100%",onClick:p,variant:"primary",size:"lg",children:"Resume subscription"})]})},se=r(2842),ce=function(){var e=(0,K.s)((function(e){return e.setUpgradeModalOpen}));return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsxs)(l.kC,{alignItems:"center",gap:"4px",children:[(0,g.jsx)(l.xv,{textStyle:"text.md.regular",color:"gray.500",children:"Your current plan is:"}),(0,g.jsx)(l.xv,{p:"2px 6px",bg:"primary.100",borderRadius:"4px",textStyle:"text.sm.medium",color:"primary.700",children:"Free"})]}),(0,g.jsx)(h.zx,{mt:"12px",w:"100%",onClick:function(){return e(!0)},variant:"primary",size:"lg",leftIcon:(0,g.jsx)(v.JO,{as:se.Z,strokeWidth:1.67}),children:"Upgrade"})]})})},ue=r(7747),le=r(5543),de=(0,v.IU)({viewBox:"0 0 24 24",path:(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("path",{d:"M20 21C20 19.6044 20 18.9067 19.8278 18.3389C19.44 17.0605 18.4395 16.06 17.1611 15.6722C16.5933 15.5 15.8956 15.5 14.5 15.5H9.5C8.10444 15.5 7.40665 15.5 6.83886 15.6722C5.56045 16.06 4.56004 17.0605 4.17224 18.3389C4 18.9067 4
119.6044 4 21M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})}),displayName:"User01Icon"}),fe=function(e){var t=e.isOpen,r=e.onClose,n=(0,re.L)((function(e){return e.userSubscription})),o=(0,re.L)((function(e){return e.updateUserSubscription})),i=(0,re.L)((function(e){return e.user})),a=(0,s.useState)(!0),c=a[0],u=a[1];return(0,s.useEffect)((function(){c&&t&&(0,te.rE)().then((function(e){o(e),u(!1)}))}),[t]),(0,s.useEffect)((function(){n.subscriptionActive&&!n.plan_id&&u(!0)}),[n]),(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(X.u_,{isCentered:!0,isOpen:t,onClose:r,trapFocus:!1,children:[(0,g.jsx)(X.ZA,{}),(0,g.jsxs)(X.hz,{maxW:{base:"fit-content",md:"400px"},children:[(0,g.jsx)(l.kC,{justifyContent:"center",children:(0,g.jsx)(le.Z,{icon:de,size:"lg",mb:"20px",colorScheme:"primary",variant:"lightOutline"})}),(0,g.jsx)(ue.Z,{onClose:r}),(0,g.jsx)(X.fe,{children:(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsx)(l.xv,{textStyle:"text.xl.medium",textAlign:"center",children:"Your account"}),(0,g.jsx)(l.xv,{mt:"8px",textStyle:"text.md.regular",color:"gray.500",textAlign:"center",children:"Update your account settings here"}),(0,g.jsx)(l.kC,{mt:"20px",mb:"20px",flexDir:"column",children:(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsx)(l.xv,{textStyle:"text.lg.medium",children:"Current Plan"}),c&&(0,g.jsx)(l.kC,{justifyContent:"center",mt:"4px",mb:"4px",children:(0,g.jsx)(J.$,{color:"primary.500"})}),!c&&n.subscriptionActive&&(0,g.jsx)(ae,{}),!c&&!n.subscriptionActive&&(0,g.jsx)(ce,{})]})}),(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsx)(l.xv,{textStyle:"text.lg.medium",children:"Personnal Information"}),(0,g.jsx)(l.kC,{alignItems:"center",gap:"4px",children:(0,g.jsxs)(l.xv,{textStyle:"text.md.regular",color:"gray.500",maxW:"100%",children:["Email address: ",null===i||void 0===i?void 0:i.email]})})]})]})})]})]})})},pe=r(4612),he=r(7536),me=r(6270),ve=r(5239),ge=r(8226),ye=r(40);function be(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 xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var we=(0,ee.I2)().toast,Ce=function(e){var t=e.onSuccessfulForgotPassword,r=e.onSignIn,n=(0,s.useState)(!1),i=n[0],c=n[1],u=(0,he.cI)({defaultValues:{email:""},mode:"all"}),d=u.register,f=u.handleSubmit,p=u.formState.errors,m=u.setError,v=function(){var e=(0,o.Z)(a().mark((function e(r){var n,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c(!0),e.next=4,te.OQ.auth.api.resetPasswordForEmail(r,{redirectTo:"".concat("https://magicshot.app","/password-reset")});case 4:if(n=e.sent,!(o=n.error)){e.next=9;break}return m("email",{message:o.message}),e.abrupt("return");case 9:t(r),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),we({title:"Error",description:e.t0.error_description||e.t0.message,status:"error",duration:1e4,isClosable:!0});case 15:return e.prev=15,c(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[0,12,15,18]])})));return function(t){return e.apply(this,arguments)}}();return(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsxs)(l.kC,{flexDir:"column",alignItems:"center",mb:"32px",textAlign:"center",children:[(0,g.jsx)(x(),{passHref:!0,href:"/",children:(0,g.jsx)(l.rU,{children:(0,g.jsx)(ye.Z,{h:"48px",w:"48px"})})}),(0,g.jsx)(l.xv,{mt:"24px",textStyle:{base:"display.xs.semiBold",md:"display.sm.semiBold"},children:"Reset your password"}),(0,g.jsx)(l.xv,{mt:{base:"6px",md:"8px"},textStyle:"text.md.regular",color:"gray.500",children:"No worries, you can reset your password"})]}),(0,g.jsx)("form",{onSubmit:f((function(e,t){t.preventDefault(),v(e.email)})),children:(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsxs)(me.Z,{children:[(0,g.jsx)(ge.Z,{children:"Email"}),(0,g.jsx)(pe.II,xe(xe({size:"md"},d("email")),{},{isInvalid:!!p.email,placeholder:"Enter your email"})),!!p.email&&(0,g.jsx)(ve.Z,{isInvalid:!0,children:p.email.message})]}),(0,g.jsx)(h.zx,{mt:"12px",type:"submit",w:"100%",size:"lg",isLoading:i,children:"Reset password"}),(0,g.jsxs)(l.kC,{alignItems:"center",justifyContent:"center",gap:"4px",mt:"32px",mb:"24px",children:[(0,g.jsx)(l.xv,{textStyle:"text.sm.regular",color:"gray.500",children:"Remember your password?"}),(0,g.jsx)(h.zx,{as:l.rU,variant:"linkColor",onClick:r,children:"Sign in"})]})]})})]})},ke=(0,v.IU)({viewBox:"0 0 24 24",path:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("g",{clipPath:"url(#clip0_1027_1528)",stroke:"none",children:[(0,g.jsx)("path",{d:"M23.7663 12.2764C23.7663 11.4607 23.7001 10.6406 23.559 9.83807H12.2402V14.4591H18.722C18.453 15.9494 17.5888 17.2678 16.3233 18.1056V21.1039H20.1903C22.4611 19.0139 23.7663 15.9274 23.7663 12.2764Z",fill:"#4285F4"}),(0,g.jsx)("path",{d:"M12.2401 24.0008C15.4766 24.0008 18.2059 22.9382 20.1945 21.1039L16.3276 18.1055C15.2517 18.8375 13.8627 19.252 12.2445 19.252C9.11388 19.252 6.45946 17.1399 5.50705 14.3003H1.5166V17.3912C3.55371 21.4434 7.7029 24.0008 12.2401 24.0008Z",fill:"#34A853"}),(0,g.jsx)("path",{d:"M5.50277 14.3003C5.00011 12.8099 5.00011 11.1961 5.50277 9.70575V6.61481H1.51674C-0.185266 10.0056 -0.185266 14.0004 1.51674 17.3912L5.50277 14.3003Z",fill:"#FBBC04"}),(0,g.jsx)("path",{d:"M12.2401 4.74966C13.9509 4.7232 15.6044 5.36697 16.8434 6.54867L20.2695 3.12262C18.1001 1.0855 15.2208 -0.034466 12.2401 0.000808666C7.7029 0.000808666 3.55371 2.55822 1.5166 6.61481L5.50264 9.70575C6.45064 6.86173 9.10947 4.74966 12.2401 4.74966Z",fill:"#EA4335"})]}),(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:"clip0_1027_1528",children:(0,g.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),displayName:"GoogleIcon"}),Se=["onClick"];function Oe(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 je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?Oe(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ee=function(e){var t=e.onClick,r=(0,w.Z)(e,Se);return(0,g.jsx)(h.zx,je(je({variant:"secondaryBorder",colorScheme:"gray",w:"100%",size:"lg",onClick:t,gap:"12px",leftIcon:(0,g.jsx)(v.JO,{as:ke,stroke:"none"})},r),{},{children:"Continue with Google"}))},Pe=r(1662),_e=["onClick"];function Te(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 Ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Re=function(e){var t=e.onClick,r=(0,w.Z)(e,_e);return(0,g.jsx)(h.zx,Ae(Ae({variant:"secondaryBorder",colorScheme:"gray",w:"100%",size:"lg",onClick:t,leftIcon:(0,g.jsx)(v.JO,{as:Pe.Z,stroke:"none"}),gap:"12px"},r),{},{children:"Continue with Twitter"}))};function De(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 Me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?De(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):De(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ie=(0,ee.I2)().toast,Fe=function(e){var t=e.onSuccessfulSignIn,r=e.onForgotPassword,n=e.onSignUp,i=e.redirectTo,c=(0,s.use
1State)(!1),u=c[0],d=c[1],f=(0,he.cI)({defaultValues:{email:"",password:""},mode:"all"}),p=f.register,m=f.handleSubmit,v=f.formState.errors,y=f.setError,b=function(){var e=(0,o.Z)(a().mark((function e(r,n){var o,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,te.OQ.auth.signIn({email:r,password:n},{redirectTo:i});case 4:if(o=e.sent,!(s=o.error)){e.next=10;break}return y("email",{message:s.message}),y("password",{message:s.message}),e.abrupt("return");case 10:t(),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),Ie({title:"Error",description:e.t0.error_description||e.t0.message,status:"error",duration:1e4,isClosable:!0});case 16:return e.prev=16,d(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[0,13,16,19]])})));return function(t,r){return e.apply(this,arguments)}}();return(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsxs)(l.kC,{flexDir:"column",alignItems:"center",mb:"32px",textAlign:"center",children:[(0,g.jsx)(x(),{passHref:!0,href:"/",children:(0,g.jsx)(l.rU,{children:(0,g.jsx)(ye.Z,{h:"48px",w:"48px"})})}),(0,g.jsx)(l.xv,{mt:"24px",textStyle:{base:"display.xs.semiBold",md:"display.sm.semiBold"},children:"Sign in to your account"}),(0,g.jsx)(l.xv,{mt:{base:"6px",md:"8px"},textStyle:"text.md.regular",color:"gray.500",children:"Welcome back! Please enter your details"})]}),(0,g.jsxs)(l.kC,{flexDir:"column",gap:"12px",children:[(0,g.jsx)(Ee,{onClick:function(){return te.OQ.auth.signIn({provider:"google"},{redirectTo:i})}}),(0,g.jsx)(Re,{onClick:function(){return te.OQ.auth.signIn({provider:"twitter"},{redirectTo:i})}})]}),(0,g.jsxs)(l.kC,{gap:"8px",alignItems:"center",mb:"24px",mt:"24px",children:[(0,g.jsx)(l.iz,{}),(0,g.jsx)(l.xv,{color:"gray.500",textStyle:"text.sm.regular",children:"OR"}),(0,g.jsx)(l.iz,{})]}),(0,g.jsx)("form",{onSubmit:m((function(e,t){t.preventDefault(),b(e.email,e.password)})),children:(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsxs)(l.kC,{flexDir:"column",gap:"20px",children:[(0,g.jsxs)(me.Z,{children:[(0,g.jsx)(ge.Z,{children:"Email"}),(0,g.jsx)(pe.II,Me(Me({size:"md"},p("email")),{},{isInvalid:!!v.email,placeholder:"Enter your email"})),!!v.email&&(0,g.jsx)(ve.Z,{isInvalid:!0,children:v.email.message})]}),(0,g.jsxs)(me.Z,{children:[(0,g.jsx)(ge.Z,{children:"Password"}),(0,g.jsx)(pe.II,Me(Me({size:"md"},p("password")),{},{isInvalid:!!v.password,type:"password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"})),!!v.password&&(0,g.jsx)(ve.Z,{isInvalid:!0,children:v.password.message})]})]}),(0,g.jsx)(l.kC,{justifyContent:"flex-end",mt:"12px",mb:"12px",children:(0,g.jsx)(h.zx,{as:l.rU,variant:"linkColor",onClick:r,children:"Forgot password"})}),(0,g.jsx)(h.zx,{type:"submit",w:"100%",size:"lg",isLoading:u,children:"Sign in"}),(0,g.jsxs)(l.kC,{alignItems:"center",justifyContent:"center",gap:"4px",mt:"32px",mb:"24px",children:[(0,g.jsx)(l.xv,{textStyle:"text.sm.regular",color:"gray.500",children:"Don't have an account?"}),(0,g.jsx)(h.zx,{as:l.rU,variant:"linkColor",onClick:n,children:"Sign up"})]}),(0,g.jsxs)(l.xv,{as:"span",textStyle:"text.xs.regular",color:"gray.500",textAlign:"center",children:["By signing in, you accept our"," ",(0,g.jsx)(x(),{href:"/terms",passHref:!0,children:(0,g.jsx)(l.rU,{isExternal:!0,textDecor:"underline",children:"Terms and Conditions"})})," ","and our"," ",(0,g.jsx)(x(),{href:"/privacy",passHref:!0,children:(0,g.jsx)(l.rU,{isExternal:!0,textDecor:"underline",children:"Privacy Policy"})})]})]})})]})};function Ne(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 Le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Be=(0,ee.I2)().toast,ze=function(e){var t=e.onSuccessfulSignUp,r=e.onSignIn,n=e.redirectTo,i=(0,s.use
1State)(!1),c=i[0],u=i[1],d=(0,he.cI)({defaultValues:{email:"",password:"",passwordConfirmation:""},mode:"all"}),f=d.register,p=d.handleSubmit,m=d.formState.errors,v=d.setError,y=function(){var e=(0,o.Z)(a().mark((function e(r,o,i){var s,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,u(!0),o===i){e.next=6;break}return v("password",{message:"Passwords don't match"}),v("passwordConfirmation",{message:"Passwords don't match"}),e.abrupt("return");case 6:return e.next=8,te.OQ.auth.signUp({email:r,password:o},{redirectTo:n});case 8:if(s=e.sent,!(c=s.error)){e.next=27;break}e.t0=c.message,e.next="Unable to validate email address: invalid format"===e.t0?14:"Password should be at least 6 characters"===e.t0?16:"Signup requires a valid password"===e.t0?19:22;break;case 14:return v("email",{message:c.message}),e.abrupt("break",26);case 16:return v("password",{message:c.message}),v("passwordConfirmation",{message:c.message}),e.abrupt("break",26);case 19:return v("password",{message:"Password required"}),v("passwordConfirmation",{message:"Password required"}),e.abrupt("break",26);case 22:return v("email",{message:c.message}),v("password",{message:c.message}),v("passwordConfirmation",{message:c.message}),e.abrupt("break",26);case 26:return e.abrupt("return");case 27:t(r),e.next=33;break;case 30:e.prev=30,e.t1=e.catch(0),Be({title:"Error",description:e.t1.error_description||e.t1.message,status:"error",duration:1e4,isClosable:!0});case 33:return e.prev=33,u(!1),e.finish(33);case 36:case"end":return e.stop()}}),e,null,[[0,30,33,36]])})));return function(t,r,n){return e.apply(this,arguments)}}();return(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsxs)(l.kC,{flexDir:"column",alignItems:"center",mb:"32px",textAlign:"center",children:[(0,g.jsx)(x(),{passHref:!0,href:"/",children:(0,g.jsx)(l.rU,{children:(0,g.jsx)(ye.Z,{h:"48px",w:"48px"})})}),(0,g.jsx)(l.xv,{mt:"24px",textStyle:{base:"display.xs.semiBold",md:"display.sm.semiBold"},children:"Sign up a new account"}),(0,g.jsx)(l.xv,{mt:{base:"6px",md:"8px"},textStyle:"text.md.regular",color:"gray.500",children:"Start creating awesome images"})]}),(0,g.jsxs)(l.kC,{flexDir:"column",gap:"12px",children:[(0,g.jsx)(Ee,{onClick:function(){return te.OQ.auth.signIn({provider:"google"},{redirectTo:n})}}),(0,g.jsx)(Re,{onClick:function(){return te.OQ.auth.signIn({provider:"twitter"},{redirectTo:n})}})]}),(0,g.jsxs)(l.kC,{gap:"8px",alignItems:"center",mb:"24px",mt:"24px",children:[(0,g.jsx)(l.iz,{}),(0,g.jsx)(l.xv,{color:"gray.500",textStyle:"text.sm.regular",children:"OR"}),(0,g.jsx)(l.iz,{})]}),(0,g.jsx)("form",{onSubmit:p((function(e,t){t.preventDefault(),y(e.email,e.password,e.passwordConfirmation)})),children:(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsxs)(l.kC,{flexDir:"column",gap:"20px",children:[(0,g.jsxs)(me.Z,{children:[(0,g.jsx)(ge.Z,{children:"Email"}),(0,g.jsx)(pe.II,Le(Le({size:"md"},f("email")),{},{isInvalid:!!m.email,placeholder:"Enter your email"})),!!m.email&&(0,g.jsx)(ve.Z,{isInvalid:!0,children:m.email.message})]}),(0,g.jsxs)(me.Z,{children:[(0,g.jsx)(ge.Z,{children:"Password"}),(0,g.jsx)(pe.II,Le(Le({size:"md"},f("password")),{},{isInvalid:!!m.password,type:"password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"})),!!m.password&&(0,g.jsx)(ve.Z,{isInvalid:!0,children:m.password.message})]}),(0,g.jsxs)(me.Z,{children:[(0,g.jsx)(ge.Z,{children:"Password Confirmation"}),(0,g.jsx)(pe.II,Le(Le({size:"md"},f("passwordConfirmation")),{},{isInvalid:!!m.passwordConfirmation,type:"password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"})),!!m.passwordConfirmation&&(0,g.jsx)(ve.Z,{isInvalid:!0,children:m.passwordConfirmation.message})]})]}),(0,g.jsx)(h.zx,{type:"submit",w:"100%",size:"lg",isLoading:c,mt:"20px",children:"Sign up"}),(0,g.jsxs)(l.kC,{alignItems:"center",justifyContent:"center",gap:"4px",mt:"32px",mb:"24px",children:[(0,g.jsx)(l.xv,{textStyle:"text.sm.regular",color:"gray.500",children:"Already have an account?"}),(0,g.jsx)(h.zx,{as:l.rU,variant:"linkColor",onClick:r,children:"Sign in"})]}),(0,g.jsxs)(l.xv,{as:"span",textStyle:"text.xs.regular",color:"gray.500",textAlign:"center",children:["By signing up, you accept our"," ",(0,g.jsx)(x(),{href:"/terms",passHref:!0,children:(0,g.jsx)(l.rU,{isExternal:!0,textDecor:"underline",children:"Terms and Conditions"})})," ","and our"," ",(0,g.jsx)(x(),{href:"/privacy",passHref:!0,children:(0,g.jsx)(l.rU,{isExternal:!0,textDecor:"underline",children:"Privacy Policy"})})]})]})})]})},Ve=(0,ee.I2)().toast,Ue=function(e){var t=e.isOpen,r=e.onClose,n=e.redirectTo,o=(0,s.use
1State)("signUp"),i=o[0],a=o[1];return(0,s.useEffect)((function(){t||a("signUp")}),[t]),(0,g.jsxs)(X.u_,{isCentered:!0,isOpen:t,onClose:r,children:[(0,g.jsx)(X.ZA,{}),(0,g.jsxs)(X.hz,{maxW:"408px",children:[(0,g.jsx)(ue.Z,{onClose:r}),(0,g.jsxs)(X.fe,{children:["signUp"===i&&(0,g.jsx)(ze,{onSuccessfulSignUp:function(e){Ve({title:"Success",description:"A confirmation email has been sent to ".concat(e),status:"success",duration:1e4,isClosable:!0}),r()},onSignIn:function(){return a("signIn")},redirectTo:n}),"signIn"===i&&(0,g.jsx)(Fe,{onSuccessfulSignIn:r,onSignUp:function(){return a("signUp")},onForgotPassword:function(){return a("forgotPassword")},redirectTo:n}),"forgotPassword"===i&&(0,g.jsx)(Ce,{onSuccessfulForgotPassword:function(e){Ve({title:"Success",description:"An email to reset your password has been sent to: ".concat(e),status:"success",duration:1e4,isClosable:!0}),r()},onSignIn:function(){return a("signIn")}})]})]})]})},$e=(0,v.IU)({viewBox:"0 0 24 24",path:(0,g.jsx)("path",{d:"M15 18L9 12L15 6",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),displayName:"ChevronLeftIcon"});function We(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 Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var He=function(e){var t=e.onReturn;return(0,g.jsxs)(l.xu,Ze(Ze({as:"button",role:"group",position:"absolute"},{transition:".2s",top:{base:"12px",lg:"16px"},left:{base:"12px",lg:"16px"},w:{base:"40px",lg:"44px"},h:{base:"40px",lg:"44px"},borderRadius:"8px",_hover:{bg:"gray.50"}}),{},{onClick:t,children:[(0,g.jsx)(p.TX,{children:"Return"}),(0,g.jsx)($e,{strokeWidth:"2",stroke:"gray.500",_groupHover:{stroke:"gray.600"},_groupFocus:{stroke:"gray.500"},height:"24px",width:"24px"})]}))},qe=(0,v.IU)({viewBox:"0 0 24 24",path:(0,g.jsx)("path",{d:"M9 18L15 12L9 6",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),displayName:"ChevronRightIcon"}),Ge=r(4995),Qe=r(7191),Ye=r(9703),Ke=r(7096),Xe=r(242),Je=r(4697),et=r(6450);function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tt.apply(this,arguments)}function rt(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var nt=["defaultIndex","onChange","index","isManual","isLazy","lazyBehavior","orientation","direction"],ot=["isDisabled","isFocusable"],it=["isSelected","id","children"],at=(0,Xe.n)(),st=at[0],ct=at[1],ut=at[2],lt=at[3];var dt=(0,et.kr)({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"}),ft=dt[0],pt=dt[1];function ht(e,t){return e+"--tab-"+t}function mt(e,t){return e+"--tabpanel-"+t}var vt=["children","className"],gt=["htmlProps","descendants"],yt=(0,C.eC)("Tabs"),bt=yt[0],xt=yt[1],wt=(0,C.Gp)((function(e,t){var r=(0,C.jC)("Tabs",e),n=(0,C.Lr)(e),o=n.children,i=n.className,a=function(e){var t=e.defaultIndex,r=e.onChange,n=e.index,o=e.isManual,i=e.isLazy,a=e.lazyBehavior,c=void 0===a?"unmount":a,u=e.orientation,l=void 0===u?"horizontal":u,d=e.direction,p=void 0===d?"ltr":d,h=rt(e,nt),m=s.useState(null!=t?t:0),v=m[0],g=m[1],y=(0,f.Tx)({defaultValue:null!=t?t:0,value:n,onChange:r}),b=y[0],x=y[1];s.useEffect((function(){null!=n&&g(n)}),[n]);var w=ut();return{id:(0,f.Me)(e.id,"tabs"),selectedIndex:b,focusedIndex:v,setSelectedIndex:x,setFocusedIndex:g,isManual:o,isLazy:i,lazyBehavior:c,orientation:l,descendants:w,direction:p,htmlProps:h}}(rt(n,vt)),c=a.htmlProps,u=a.descendants,l=rt(a,gt),d=s.useMemo((function(){return l}),[l]),p=(0,Ye.CE)(c,["isFitted"]);return s.createElement(st,{value:u},s.createElement(ft,{value:d},s.createElement(bt,{value:r},s.createElement(C.m$.div,tt({className:(0,Ye.cx)("chakra-tabs",i),ref:t},p,{__css:r.root}),o))))}));Ye.Ts&&(wt.displayName="Tabs");var Ct=(0,C.Gp)((function(e,t){var r=xt(),n=function(e){var t=e.isDisabled,r=e.isFocusable,n=rt(e,ot),o=pt(),i=o.setSelectedIndex,a=o.isManual,s=o.id,c=o.setFocusedIndex,u=o.selectedIndex,l=lt({disabled:t&&!r}),d=l.index,f=l.register,p=d===u,h=(0,Ke.h)(tt({},n,{ref:(0,et.lq)(f,e.ref),isDisabled:t,isFocusable:r,onClick:(0,Ye.v0)(e.onClick,(function(){i(d)}))}));return tt({},h,{id:ht(s,d),role:"tab",tabIndex:p?0:-1,type:"button","aria-selected":p,"aria-controls":mt(s,d),onFocus:t?void 0:(0,Ye.v0)(e.onFocus,(function(){c(d),!a&&(!t||!r)&&i(d)}))})}(tt({},e,{ref:t})),o=tt({outline:"0",display:"flex",alignItems:"center",justifyContent:"center"},r.tab);return s.createElement(C.m$.button,tt({},n,{className:(0,Ye.cx)("chakra-tabs__tab",e.className),__css:o}))}));Ye.Ts&&(Ct.displayName="Tab");var kt=(0,C.Gp)((function(e,t){var r=function(e){var t=pt(),r=t.focusedIndex,n=t.orientation,o=t.direction,i=ct(),a=s.useCallback((function(e){var t,a=function(){var e=i.nextEnabled(r);e&&(0,Ye.T_)(e.node)},s=function(){var e=i.prevEnabled(r);e&&(0,Ye.T_)(e.node)},c="horizontal"===n,u="vertical"===n,l=(0,Ye.uh)(e),d="ltr"===o?"ArrowRight":"ArrowLeft",f=((t={})["ltr"===o?"ArrowLeft":"ArrowRight"]=function(){return c&&s()},t[d]=function(){return c&&a()},t.ArrowDown=function(){return u&&a()},t.ArrowUp=function(){return u&&s()},t.Home=function(){var e=i.firstEnabled();e&&(0,Ye.T_)(e.node)},t.End=function(){var e=i.lastEnabled();e&&(0,Ye.T_)(e.node)},t)[l];f&&(e.preventDefault(),f(e))}),[i,r,n,o]);return tt({},e,{role:"tablist","aria-orientation":n,onKeyDown:(0,Ye.v0)(e.onKeyDown,a)})}(tt({},e,{ref:t})),n=tt({display:"flex"},xt().tablist);return s.createElement(C.m$.div,tt({},r,{className:(0,Ye.cx)("chakra-tabs__tablist",e.className),__css:n}))}));Ye.Ts&&(kt.displayName="TabList");var St=(0,C.Gp)((function(e,t){var r=function(e){var t=e.isSelected,r=e.id,n=e.children,o=rt(e,it),i=pt(),a=i.isLazy,c=i.lazyBehavior,u=s.useRef(!1);return t&&(u.current=!0),tt({tabIndex:0},o,{children:(0,Ye.VI)({hasBeenSelected:u.current,isSelected:t,isLazy:a,lazyBehavior:c})?n:null,role:"tabpanel",hidden:!t,id:r})}(tt({},e,{ref:t})),n=xt();return s.createElement(C.m$.div,tt({outline:"0"},r,{className:(0,Ye.cx)("chakra-tabs__tab-panel",e.className),__css:n.tabpanel}))}));Ye.Ts&&(St.displayName="TabPanel");var Ot=(0,C.Gp)((function(e,t){var r=function(e){var t=pt(),r=t.id,n=t.selectedIndex;return tt({},e,{children:(0,et.WR)(e.children).map((function(e,t){return s.cloneElement(e,{isSelected:t===n,id:mt(r,t),"aria-labelledby":ht(r,t)})}))})}
1(e),n=xt();return s.createElement(C.m$.div,tt({},r,{width:"100%",ref:t,className:(0,Ye.cx)("chakra-tabs__tab-panels",e.className),__css:n.tabpanels}))}));Ye.Ts&&(Ot.displayName="TabPanels");var jt=(0,C.Gp)((function(e,t){var r=function(){var e=pt(),t=ct(),r=e.selectedIndex,n=e.orientation,o="horizontal"===n,i="vertical"===n,a=s.useState((function(){return o?{left:0,width:0}:i?{top:0,height:0}:void 0})),c=a[0],u=a[1],l=s.useState(!1),d=l[0],f=l[1];return(0,Je.a)((function(){if(!(0,Ye.o8)(r)){var e=t.item(r);if(!(0,Ye.o8)(e)){o&&u({left:e.node.offsetLeft,width:e.node.offsetWidth}),i&&u({top:e.node.offsetTop,height:e.node.offsetHeight});var n=requestAnimationFrame((function(){f(!0)}));return function(){n&&cancelAnimationFrame(n)}}}}),[r,o,i,t]),tt({position:"absolute",transitionProperty:"left, right, top, bottom, height, width",transitionDuration:d?"200ms":"0ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"},c)}(),n=tt({},e.style,r),o=xt();return s.createElement(C.m$.div,tt({ref:t},e,{className:(0,Ye.cx)("chakra-tabs__tab-indicator",e.className),style:n,__css:o.indicator}))}));Ye.Ts&&(jt.displayName="TabIndicator");var Et=r(5344),Pt=function(e){var t=e.isLoading,r=e.isOpen,n=e.onClose,o=e.onDelete,i=e.children;return(0,g.jsxs)(X.u_,{isCentered:!0,isOpen:r,onClose:n,blockScrollOnMount:!1,children:[(0,g.jsx)(X.ZA,{}),(0,g.jsxs)(X.hz,{maxW:"408px",children:[(0,g.jsx)(le.Z,{icon:Et.Z,size:"lg",mb:"20px",colorScheme:"error",variant:"lightOutline"}),(0,g.jsx)(ue.Z,{onClose:n}),(0,g.jsx)(X.fe,{children:i}),(0,g.jsxs)(X.mz,{children:[(0,g.jsx)(h.zx,{variant:"secondaryBorder",colorScheme:"gray",size:"lg",width:"100%",onClick:n,children:"Cancel"}),(0,g.jsx)(h.zx,{isLoading:t,variant:"primary",colorScheme:"error",size:"lg",width:"100%",onClick:o,children:"Delete"})]})]})]})},_t=r(2512),Tt=r(1624),At=r(4618);function Rt(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 Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Mt=(0,ee.I2)().toast,It=function(){var e=(0,c.useQuery)("watermarkLogos",At.d),t=e.data,r=e.isLoading,n=e.refetch,i=(0,s.useState)(null),u=i[0],p=i[1],h=(0,s.useState)(!1),m=h[0],v=h[1],y=(0,s.useState)(!1),b=y[0],x=y[1],w=(0,f.qY)(),C=w.isOpen,k=w.onOpen,O=w.onClose,j=function(){var e=(0,o.Z)(a().mark((function e(t){var r,o,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b){e.next=2;break}return e.abrupt("return");case 2:if(e.prev=2,x(!0),t.length){e.next=6;break}return e.abrupt("return");case 6:return 0!==t[0].type.indexOf("image")&&Mt({title:"Error",description:"File is not an image",status:"error",duration:1e4,isClosable:!0}),(r=new FormData).append("file",t[0]),e.next=11,fetch("/api/watermarks/logos/upload",{method:"POST",credentials:"same-origin",body:r});case 11:return o=e.sent,e.next=14,o.json();case 14:if((i=e.sent).success){e.next=18;break}return Mt({title:"Error",description:i.error,status:"error",duration:1e4,isClosable:!0}),e.abrupt("return");case 18:Mt({title:"Success",description:"Your logo has been successfully uploaded!",status:"success",duration:1e4,isClosable:!0}),n(),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(2),Mt({title:"Error",description:"An error occured. Please try again.",status:"error",duration:1e4,isClosable:!0});case 25:return e.prev=25,x(!1),e.finish(25);case 28:case"end":return e.stop()}}),e,null,[[2,22,25,28]])})));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=(0,o.Z)(a().mark((function e(){var t,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,v(!0),e.next=6,fetch("api/watermarks/logos/delete",{method:"POST",credentials:"same-origin",body:JSON.stringify({id:u}),headers:{Accept:"application/json","Content-Type":"application/json"}});case 6:return t=e.sent,e.next=9,t.json();case 9:if((r=e.sent).success){e.next=13;break}return Mt({title:"Error",description:r.error,status:"error",duration:1e4,isClosable:!0}),e.abrupt("return");case 13:p(null),O(),n(),Mt({title:"Success",description:"Your logo has been successfully deleted!",status:"success",duration:1e4,isClosable:!0}),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(2),Mt({title:"Error",description:"An error occured. Please try again",status:"error",duration:1e4,isClosable:!0});case 22:return e.prev=22,v(!1),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[2,19,22,25]])})));return function(){return e.apply(this,arguments)}}();return(0,g.jsxs)(g.Fragment,{children:[r?(0,g.jsx)(l.kC,{mt:"32px",justifyContent:"center",alignItems:"center",children:(0,g.jsx)(J.$,{color:"primary.500",thickness:"3px",speed:"0.65s",emptyColor:"gray.200",size:"xl"})}):(0,g.jsxs)(l.rj,{mt:"32px",templateColumns:{base:"2fr 2fr",sm:"3fr 3fr 3fr"},columnGap:{base:"16px",sm:"16px"},rowGap:{base:"16px",sm:"16px"},children:[(0,g.jsx)(l.P4,{borderRadius:"8px",h:"120px",children:(0,g.jsx)(_t.ZP,{onDropAccepted:function(e){return j(e)},onDropRejected:function(e){return function(e){switch(e[0].errors[0].code){case"file-invalid-type":Mt({title:"Error",description:"Invalid file: Images only",status:"error",duration:1e4,isClosable:!0}),console.error({type:"FILE_INVALID_TYPE",message:"Invalid file: Images only"});break;case"file-too-large":Mt({title:"Error",description:"File too big. Max 1Mo",status:"error",duration:1e4,isClosable:!0}),console.error({type:"FILE_TOO_LARGE",message:"File too big. Max 1Mo"})}}(e)},accept:{"image/*":[]},multiple:!1,maxSize:1048576,children:function(e){var t=e.getRootProps,r=e.getInputProps;return(0,g.jsxs)(l.kC,Dt(Dt({w:"100%",h:"100%",flexDirection:"column",borderColor:"primary.300",borderStyle:"dashed",borderWidth:"2px",alignItems:"center",justifyContent:"center",borderRadius:"8px",px:"13px",py:"11px",cursor:"pointer"},t()),{},{children:[(0,g.jsx)("input",Dt({},r())),b?(0,g.jsx)(J.$,{color:"primary.500",thickness:"3px",speed:"0.65s",emptyColor:"gray.200",size:"xl"}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(le.Z,{cursor:"pointer",size:"sm",variant:"lightOutline",icon:Tt.Z}),(0,g.jsx)(l.xv,{as:"span",mt:"8px",textAlign:"center",children:(0,g.jsx)(l.xv,{textStyle:"text.sm.medium",color:"primary.600",_hover:{color:"primary.700"},as:"span",children:"Upload logo"})})]})]}))}})}),(null===t||void 0===t?void 0:t.success)&&t.data.logos.map((function(e){return(0,g.jsx)(l.P4,{borderRadius:"8px",h:"120px",children:(0,g.jsxs)(l.kC,{w:"100%",h:"100%",borderRadius:"8px",p:"12px",boxShadow:"inset 0 0px 0px 1px ".concat(d.Z.colors.gray[200]),position:"relative",role:"group",justifyContent:"center",alignItems:"center",children:[(0,g.jsx)(W.Ee,{src:e.logo_url,maxH:"100%",maxW:"100%",objectFit:"contain"}),(0,g.jsx)(l.kC,{opacity:0,transition:".2s",_groupHover:{opacity:1}
1,position:"absolute",right:"12px",top:"12px",cursor:"pointer",borderRadius:"50%",onClick:function(){p(e.id),k()},children:(0,g.jsx)(S.Z,{w:"16px",stroke:"gray.500",strokeWidth:1.67})})]})},e.id)}))]}),(0,g.jsxs)(Pt,{isLoading:m,isOpen:C,onClose:O,onDelete:E,children:[(0,g.jsx)(l.xv,{textStyle:"text.lg.medium",mb:"8px",children:"Delete logo"}),(0,g.jsx)(l.xv,{textStyle:"text.sm.regular",color:"gray.500",children:"Are you sure you want to delete this logo? This action cannot be undone."})]})]})};function Ft(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 Nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ft(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Lt=function(e){return(0,Qe.Z)(e),(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(l.kC,{flexDir:"column",alignItems:"center",children:[(0,g.jsx)(l.xv,{textStyle:"text.xl.medium",textAlign:"center",mb:"20px",children:"Watermarks"}),(0,g.jsxs)(wt,{w:"100%",children:[(0,g.jsx)(kt,{borderColor:"gray.200",children:(0,g.jsx)(Ct,Nt(Nt({_active:{bg:"gray.50"},pb:"19px",color:"gray.500",_selected:{color:"primary.700",borderColor:"primary.700"}},d.Z.textStyles.text.md.medium),{},{children:"Logos"}))}),(0,g.jsx)(Ot,{p:0,children:(0,g.jsx)(St,{p:0,children:(0,g.jsx)(It,{})})})]})]})})},Bt=function(e){var t=e.isOpen,r=e.onClose,n=(0,s.useState)(null),o=n[0],i=n[1],a=function(){i(null),r()};return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(X.u_,{isCentered:!0,isOpen:t,onClose:a,trapFocus:!1,children:[(0,g.jsx)(X.ZA,{}),(0,g.jsxs)(X.hz,{maxW:{base:"fit-content",md:null===o?"400px":"600px"},children:[(0,g.jsx)(l.kC,{justifyContent:"center",children:(0,g.jsx)(le.Z,{icon:Ge.Z,size:"lg",mb:"20px",colorScheme:"primary",variant:"lightOutline"})}),null!==o&&(0,g.jsx)(He,{onReturn:function(){return i(null)}}),(0,g.jsx)(ue.Z,{onClose:a}),(0,g.jsxs)(X.fe,{children:[null===o&&(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsx)(l.xv,{textStyle:"text.xl.medium",textAlign:"center",mb:"20px",children:"Update your branding"}),(0,g.jsx)(l.kC,{flexDir:"column",children:(0,g.jsxs)(l.kC,{cursor:"pointer",role:"group",justifyContent:"space-between",alignItems:"center",p:"16px",boxShadow:"inset 0 0px 0px 1px ".concat(d.Z.colors.gray[200]),_hover:{color:"primary.800",bg:"primary.50",boxShadow:"inset 0 0px 0px 1px ".concat(d.Z.colors.primary[600])},borderRadius:"8px",transition:".2s",onClick:function(){i("watermarks")},children:[(0,g.jsx)(l.xv,{children:"Watermarks"}),(0,g.jsx)(qe,{strokeWidth:2,stroke:"gray.400",transition:".2s",_groupHover:{stroke:"primary.800"}})]})})]}),"watermarks"===o&&(0,g.jsx)(Lt,{})]})]})]})})},zt=(0,v.IU)({viewBox:"0 0 24 24",path:(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("path",{d:"M12 6V12L16 14M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})}),displayName:"ClockIcon"}),Vt=function(e){if(!e.paused_from)return-1;var t=new Date,r=(new Date(e.paused_from).getTime()-t.getTime())/864e5;return Math.floor(r)},Ut=function(e){var t=e.isOpen,r=e.onClose,n=(0,re.L)((function(e){return e.userSubscription})),o=(0,re.L)((function(e){return e.updateUserSubscription})),i=(0,s.useState)(!0),a=i[0],c=i[1];return(0,s.useEffect)((function(){a&&t&&(0,te.rE)().then((function(e){o(e),c(!1)}))}),[t]),(0,s.useEffect)((function(){n.subscriptionActive&&!n.plan_id&&c(!0)}),[n]),(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(X.u_,{isCentered:!0,isOpen:t,onClose:r,trapFocus:!1,children:[(0,g.jsx)(X.ZA,{}),(0,g.jsxs)(X.hz,{maxW:{base:"fit-content",md:"400px"},children:[(0,g.jsx)(l.kC,{justifyContent:"center",children:(0,g.jsx)(le.Z,{icon:zt,size:"lg",mb:"20px",colorScheme:"error",variant:"lightOutline"})}),(0,g.jsx)(ue.Z,{onClose:r}),(0,g.jsx)(X.fe,{children:(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsx)(l.xv,{textStyle:"text.xl.medium",textAlign:"center",children:"Your subscription is expiring soon"}),(0,g.jsxs)(l.xv,{mt:"8px",textStyle:"text.md.regular",color:"gray.500",textAlign:"center",children:["Your subscription expires in ",Vt(n)," days. After this period, you will lose access to all the Pro features, and return to the free plan."]}),(0,g.jsx)(l.kC,{mt:"20px",mb:"20px",flexDir:"column",children:(0,g.jsxs)(l.kC,{flexDir:"column",children:[(0,g.jsx)(l.xv,{textStyle:"text.lg.medium",children:"Current Plan"}),a&&(0,g.jsx)(l.kC,{justifyContent:"center",mt:"4px",mb:"4px",children:(0,g.jsx)(J.$,{color:"primary.500"})}),!a&&n.subscriptionActive&&(0,g.jsx)(ae,{}),!a&&!n.subscriptionActive&&(0,g.jsx)(ce,{})]})})]})})]})]})})}
1,$t=r(5756),Wt=function(e){var t=e.isOpen,r=e.onClose,n=(0,re.L)((function(e){return e.userSubscription}));return(0,s.useEffect)((function(){n.subscriptionActive&&r()}),[n.subscriptionActive]),(0,g.jsxs)(X.u_,{isCentered:!0,isOpen:t,onClose:r,trapFocus:!1,children:[(0,g.jsx)(X.ZA,{}),(0,g.jsxs)(X.hz,{maxW:{base:"fit-content",md:"864px"},children:[(0,g.jsx)(ue.Z,{onClose:r}),(0,g.jsx)(X.fe,{children:(0,g.jsx)($t.Z,{})})]})]})},Zt=function(){var e=(0,K.s)((function(e){return e.setUpgradeModalOpen})),t=(0,K.s)((function(e){return e.upgradeModalOpen})),r=(0,K.s)((function(e){return e.setAuthenticationModalOpen})),n=(0,K.s)((function(e){return e.authenticationModalOpen})),o=(0,K.s)((function(e){return e.setAccountSettingsModalOpen})),i=(0,K.s)((function(e){return e.accountSettingsModalOpen})),a=(0,K.s)((function(e){return e.setExpiresInModalOpen})),s=(0,K.s)((function(e){return e.expiresInModalOpen})),c=(0,K.s)((function(e){return e.setBrandModalOpen})),u=(0,K.s)((function(e){return e.brandModalOpen}));return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Wt,{isOpen:t,onClose:function(){return e(!1)}}),(0,g.jsx)(Ue,{isOpen:n,onClose:function(){return r(!1)},redirectTo:"/editor"}),(0,g.jsx)(fe,{isOpen:i,onClose:function(){return o(!1)}}),(0,g.jsx)(Ut,{isOpen:s,onClose:function(){return a(!1)}}),(0,g.jsx)(Bt,{isOpen:u,onClose:function(){return c(!1)}})]})},Ht=r(4298),qt=r.n(Ht),Gt=r(9155),Qt=r.n(Gt);function Yt(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 Kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Xt=function(){var e=(0,re.L)((function(e){return e.updateUserSubscription})),t=(0,s.useRef)(null),r=function(e,r){t.current&&t.current(Kt(Kt({},r),{},{origin:{y:.4},particleCount:Math.floor(500*e)}))},n=(0,s.useCallback)((function(e){t.current=e}),[]);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(qt(),{src:"https://cdn.paddle.com/paddle/paddle.js",onLoad:function(){Paddle.Setup({vendor:Number("154606"),eventCallback:function(t){"Checkout.Complete"===t.event&&(r(.25,{spread:360,startVelocity:55}),r(.2,{spread:360}),r(.35,{spread:360,decay:.91,scalar:.8}),r(.1,{spread:360,startVelocity:25,decay:.92,scalar:1.2}),r(.1,{spread:360,startVelocity:45}),e({subscriptionActive:!0,plan_id:null,signup_date:null,next_payment:null,paused_at:null,paused_from:null}))}})}}),(0,g.jsx)(Qt(),{refConfetti:n,width:"100%",style:{position:"absolute",pointerEvents:"none",width:"100%",height:"100%",top:0,left:0,zIndex:999999}})]})},Jt=r(2684),er=r(2095);function tr(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 rr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var nr=function(){var e=(0,f.qY)(),t=e.onOpen,r=e.onClose,n=e.isOpen,o=(0,Jt.Sx)({base:!0,md:!1}),i=(0,K.s)((function(e){return e.setAccountSettingsModalOpen})),a={px:"12px",py:"8px",w:"100%",transition:".2s",cursor:"pointer",_hover:{bg:"gray.50"},_focus:{bg:"gray.50"}};return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(er.J2,{isOpen:n,onOpen:t,onClose:r,children:[(0,g.jsx)(er.xo,{children:o?(0,g.jsx)(h.zx,{variant:"option",colorScheme:"gray",justifyContent:"flex-start",size:"sm",children:(0,g.jsx)(de,{h:"20px",w:"20px",strokeWidth:"1.67",stroke:"gray.500"})}):(0,g.jsx)(h.zx,{variant:"option",colorScheme:"gray",justifyContent:"flex-start",size:"lg",children:(0,g.jsx)(de,{h:"24px",w:"24px",strokeWidth:"1.67",stroke:"gray.500"})})}),(0,g.jsx)(er.yk,{shadow:"xl",w:"fit-content",borderRadius:"8px",py:"4px",px:"0",children:(0,g.jsxs)(er.b,{p:"0",w:"200px",children:[(0,g.jsx)(l.xv,rr(rr({},a),{}
1,{textStyle:{base:"text.sm.regular",md:"text.md.regular"},onClick:function(){r(),i(!0)},children:"Account settings"})),(0,g.jsx)(l.xv,rr(rr({},a),{},{textStyle:{base:"text.sm.regular",md:"text.md.regular"},onClick:function(){r(),te.OQ.auth.signOut()},children:"Sign out"}))]})})]})})},or=function(){var e=(0,K.s)((function(e){return e.setUpgradeModalOpen}));return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(h.zx,{onClick:function(){return e(!0)},variant:"primary",size:"lg",className:"hideBelowMD",leftIcon:(0,g.jsx)(v.JO,{as:se.Z,strokeWidth:1.67}),children:"Upgrade"}),(0,g.jsx)(h.zx,{onClick:function(){return e(!0)},variant:"primary",size:"sm",className:"hideAboveMD",leftIcon:(0,g.jsx)(v.JO,{as:se.Z,strokeWidth:1.67}),children:"Upgrade"})]})},ir=function(e){var t=e.expiresIn,r=(0,K.s)((function(e){return e.setExpiresInModalOpen}));return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(h.zx,{onClick:function(){return r(!0)},variant:"primary",size:"lg",className:"hideBelowMD",colorScheme:"error",leftIcon:(0,g.jsx)(v.JO,{as:zt,strokeWidth:1.67}),children:[t," days"]}),(0,g.jsxs)(h.zx,{onClick:function(){return r(!0)},variant:"primary",size:"sm",className:"hideAboveMD",colorScheme:"error",leftIcon:(0,g.jsx)(v.JO,{as:zt,strokeWidth:1.67}),children:[t," days"]})]})},ar=function(){var e=(0,re.L)((function(e){return e.user})),t=(0,re.L)((function(e){return e.userSubscription})),r=(0,K.s)((function(e){return e.setAuthenticationModalOpen}));return"/editor"!==(0,U.useRouter)().pathname?(0,g.jsx)(g.Fragment,{}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.xu,{as:"header",py:"18px",px:"32px",children:(0,g.jsxs)(l.kC,{alignItems:"center",justifyContent:"space-between",children:[(0,g.jsxs)(l.kC,{gap:"40px",alignItems:"center",children:[(0,g.jsx)(x(),{href:"/",passHref:!0,children:(0,g.jsxs)(l.rU,{children:[(0,g.jsx)(p.TX,{children:"Home"}),(0,g.jsx)(ye.Z,{className:"hideAboveMD",w:"auto",h:"30px"}),(0,g.jsx)(y,{className:"hideBelowMD",w:"auto",h:"30px"})]})}),(0,g.jsx)(l.kC,{as:"nav",gap:"32px",children:(0,g.jsx)(x(),{href:"/pricing",passHref:!0,children:(0,g.jsx)(h.zx,{as:l.rU,variant:"linkGray",size:"lg",children:"Pricing"})})})]}),!e&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(h.zx,{as:l.rU,variant:"primary",size:"lg",className:"hideBelowMD",onClick:function(){return r(!0)},children:"Sign up"}),(0,g.jsx)(h.zx,{as:l.rU,variant:"primary",size:"sm",className:"hideAboveMD",onClick:function(){return r(!0)},children:"Sign up"})]}),!!e&&(0,g.jsxs)(l.kC,{gap:{base:"8px",md:"16px"},children:[t.subscriptionActive&&Vt(t)>=0&&Vt(t)<=7&&(0,g.jsx)(ir,{expiresIn:Vt(t)}),!t.subscriptionActive&&(0,g.jsx)(or,{}),(0,g.jsx)(nr,{})]})]})}),(0,g.jsx)(l.iz,{borderColor:"gray.100"})]})},sr=r(7597),cr=r(643);function ur(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 lr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ur(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var dr=new c.QueryClient;var fr=function(e){var t=e.Component,r=e.pageProps,n=(0,re.L)((function(e){return e.updateUser})),i=(0,re.L)((function(e){return e.updateUserSubscription})),f=(0,sr.T)((function(e){return e.setWatermark}));return(0,s.useEffect)((function(){var e,t=te.OQ.auth.session();n(null!==(e=null===t||void 0===t?void 0:t.user)&&void 0!==e?e:null,t),null!==t&&void 0!==t&&t.user&&(0,te.rE)().then((function(e){i(e),f((0,cr.Ql)(!!e.subscriptionActive)),(0,te.rE)().then((function(e){return i(e)}))}));var r=te.OQ.auth.onAuthStateChange(function(){var e=(0,o.Z)(a().mark((function e(t,r){var o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(null!==(o=null===r||void 0===r?void 0:r.user)&&void 0!==o?o:null,r),e.next=3,(0,te.N0)(t,r);case 3:"SIGNED_IN"===t&&(0,te.rE)().then((function(e){i(e),f((0,cr.Ql)(!!e.subscriptionActive)),(0,te.rE)().then((function(e){return i(e)}))}));case 4:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),s=r.data;return function(){null===s||void 0===s||s.unsubscribe()}})),(0,g.jsx)(u.xjn,{theme:d.Z,children:(0,g.jsxs)(c.QueryClientProvider,{client:dr,children:[(0,g.jsx)(Y.Z,{}),(0,g.jsxs)(l.kC,{flexDir:"column",h:"100vh",maxH:"100vh",w:"100%",children:[(0,g.jsx)(ar,{}),(0,g.jsx)($,{}),(0,g.jsx)(t,lr({},r)),(0,g.jsx)(Q,{})]}),(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("script",{src:"https://beamanalytics.b-cdn.net/beam.min.js","data-token":"6c306383-9b89-4569-a00a-3b721ea0d602",async:!0})}),(0,g.jsx)(Xt,{}),(0,g.jsx)(Zt,{})]})})}},3208:function(e,t,r){"use strict";var n=r(9008),o=r.n(n),i=r(5893);t.Z=function(e){var t=e.title,r=void 0===t?"MagicShot - Screenshot editor for busy indie makers":t,n=e.description,a=void 0===n?"Easily create beautiful images with your branding and increase your engagement rate on social media":n,s=e.url,c=void 0===s?"https://magicshot.app":s,u=e.image,l=void 0===u?"https://magicshot.app/assets/open-graph-image.png":u;return(0,i.jsxs)(o(),{children:[(0,i.jsx)("title",{children:r}),(0,i.jsx)("meta",{name:"title",content:r}),(0,i.jsx)("meta",{name:"description",content:a}),(0,i.jsx)("meta",{name:"theme-color",content:"#444ce7"}),(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{property:"og:title",content:r}),(0,i.jsx)("meta",{property:"og:description",content:a}),(0,i.jsx)("meta",{property:"og:site_name",content:"MagicShot"}),(0,i.jsx)("meta",{property:"og:url",content:c}),(0,i.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,i.jsx)("meta",{property:"og:image",content:l}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{name:"twitter:title",content:r}),(0,i.jsx)("meta",{name:"twitter:description",content:a}),(0,i.jsx)("meta",{name:"twitter:site",content:"@MagicShotApp"}),(0,i.jsx)("meta",{name:"twitter:creator",content:"@GwendalBrossard"}),(0,i.jsx)("meta",{name:"twitter:image",content:l}),(0,i.jsx)("link",{rel:"canonical",href:c})]})}},5756:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(9499),o=r(6835),i=r(7375),a=r(8527),s=r(4971),c=r(5193),u=r(8198),l=r(5893),d=function(e){var t=e.children;return(0,l.jsxs)(a.kC,{gap:"12px",children:[(0,l.jsx)(a.Cd,{bg:"success.100",size:"24px",children:(0,l.jsx)(u.Z,{strokeWidth:3,w:"12px",h:"auto",stroke:"success.500"})}),(0,l.jsx)(a.xv,{color:"gray.500",children:t})]})},f=r(6681),p=r(6041),h=r(968);function m(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?m(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=function(){var e=(0,p.s)((function(e){return e.setAuthenticationModalOpen})),t=(0,h.L)((function(e){return e.user})),r=(0,h.L)((function(e){return e.userSubscription})),n=(0,i.kt)(!0),m=(0,o.Z)(n,2),g=m[0],y=m[1].toggle;return(0,l.jsxs)(a.kC,{flexDir:"column",alignItems:"center",children:[(0,l.jsx)(a.xv,{textStyle:{base:"display.md.semiBold",md:"display.lg.semiBold"},textAlign:"center",children:"Pricing plans"}),(0,l.jsx)(a.xv,{textStyle:{base:"text.lg.regular",md:"text.xl.regular"},color:"gray.500",textAlign:"center",mt:{base:"16px",md:"24px"},children:"Upgrade to the Pro plan to gain access to all of MagicShot's features"}),(0,l.jsxs)(a.kC,{gap:"12px",justifyContent:"center",mb:{base:"26px",md:"32px"},mt:{base:"26px",md:"32px"},children:[(0,l.jsx)(a.xv,{color:g?"gray.400":"gray.900",textStyle:"text.md.semiBold",children:"Monthly"}),(0,l.jsx)(s.r,{onChange:y,isChecked:g,size:"md"}),(0,l.jsx)(a.xv,{color:g?"gray.900":"gray.400",textStyle:"text.md.semiBold",children:"Annual"})]}),(0,l.jsxs)(a.kC,{gap:"32px",px:{base:0,md:"8px"},flexDir:{base:"column",md:"row"},alignItems:{base:"center",md:"unset"},children:[(0,l.jsxs)(a.kC,{order:{base:"2",md:"1"},flexDir:"column",py:"40px",px:"32px",boxShadow:"".concat(f.Z.shadows.lg,", inset 0 0px 0px 1px ").concat(f.Z.colors.gray[200]),borderRadius:"16px",w:{base:"unset",md:"384px"},maxW:{base:"310px",md:"unset"},h:"fit-content",children:[(0,l.jsxs)(a.kC,{textAlign:"center",mb:"32px",flexDir:"column",children:[(0,l.jsx)(a.xv,{textStyle:{base:"display.md.semiBold",md:"display.lg.semiBold"},mb:"16px",children:"$0/mth"}),(0,l.jsx)(a.xv,{textStyle:"text.xl.semiBold",mb:"4px",children:"Free plan"}),(0,l.jsx)(a.xv,{color:"gray.500",children:"No billing"})]}),(0,l.jsxs)(c.zx,{variant:"secondaryBackground",colorScheme:"gray",size:"xl",isActive:!1,isDisabled:!0,w:"100%",mb:"32px",children:[!!t&&r.subscriptionActive&&"Free plan",!!t&&!r.subscriptionActive&&"Current plan"]}),(0,l.jsx)(a.kC,{flexDir:"column",children:(0,l.jsxs)(a.kC,{gap:"12px",children:[(0,l.jsx)(a.Cd,{bg:"success.100",size:"24px",children:(0,l.jsx)(u.Z,{strokeWidth:3,w:"12px",h:"auto",stroke:"success.500"})}),(0,l.jsx)(a.xv,{color:"gray.500",children:"Access to all free features"})]})})]}),(0,l.jsxs)(a.kC,{order:{base:"1",md:"2"},flexDir:"column",py:"40px",px:"32px",boxShadow:"".concat(f.Z.shadows.lg,", inset 0 0px 0px 1px ").concat(f.Z.colors.primary[600]),borderRadius:"16px",w:{base:"unset",md:"384px"},maxW:{base:"310px",md:"unset"},position:"relative",children:[g&&(0,l.jsx)(a.kC,{position:"absolute",top:"12px",right:"12px",bg:"primary.100",px:"12px",py:"6px",borderRadius:"16px",children:(0,l.jsx)(a.xv,{textStyle:"text.sm.semiBold",color:"primary.500",children:"Save 12.5%"})}),(0,l.jsxs)(a.kC,{textAlign:"center",mb:"32px",flexDir:"column",children:[(0,l.jsx)(a.xv,{textStyle:{base:"display.md.semiBold",md:"display.lg.semiBold"},mb:"16px",children:g?"$8/mth":"$9/mth"}),(0,l.jsx)(a.xv,{textStyle:"text.xl.semiBold",mb:"4px",children:"Pro plan"}),(0,l.jsx)(a.xv,{color:"gray.500",children:g?"Billed $96 annually":"Billed $9 monthly"})]}),(0,l.jsxs)(c.zx,{onClick:function(){return t?g?void Paddle.Checkout.open(v({product:"785718"},!!t&&{email:t.email,passthrough:'{"database_user_id": "'.concat(t.id,'"}')})):void Paddle.Checkout.open(v({product:"785719"},!!t&&{email:t.email,passthrough:'{"database_user_id": "'.concat(t.id,'"}')})):e(!0)},size:"xl",isActive:!1,w:"100%",mb:"32px",isDisabled:!!t&&r.subscriptionActive,children:[!t&&"Sign up to upgrade",!!t&&!r.subscriptionActive&&"Upgrade to Pro",!!t&&r.subscriptionActive&&"Current plan"]}),(0,l.jsxs)(a.kC,{flexDir:"column",gap:"16px",children:[(0,l.jsx)(d,{children:"Access to all free features"}),(0,l.jsx)(d,{children:"Custom Branding"}),(0,l.jsx)(d,{children:"Remove Watermark"}),(0,l.jsx)(d,{children:"Custom Logo Watermark"}),(0,l.jsx)(d,{children:"Custom Text Watermark"}),(0,l.jsx)(d,{children:"Priority Support"})]})]})]}),(0,l.jsxs)(a.xv,{mt:"32px",color:"gray.500",textAlign:"center",textStyle:"text.sm.regular",children:["All payments are proccessed & secured by ",(0,l.jsx)("b",{children:"Paddle"})]}),(0,l.jsx)(a.xv,{textStyle:"text.sm.regular",color:"gray.500",textAlign:"center",children:"Price in USD. VAT may apply."})]})}},2389:function(e,t){"use strict";t.Z={white:"#ffffff",black:"#000000",gray:{25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf
10",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},primary:{25:"#f5f8ff",50:"#eef4ff",100:"#e0eaff",200:"#c7d7fe",300:"#a4bcfd",400:"#8098f9",500:"#6172f3",600:"#444ce7",700:"#3538cd",800:"#2d31a6",900:"#2d3282"},error:{25:"#fffbfa",50:"#fef3f2",100:"#fee4e2",200:"#fecdca",300:"#fda29b",400:"#f97066",500:"#f04438",600:"#d92d20",700:"#b42318",800:"#912018",900:"#7a271a"},warning:{25:"#fffcf5",50:"#fffaeb",100:"#fef0c7",200:"#fedf89",300:"#fec84b",400:"#fdb022",500:"#f79009",600:"#dc6803",700:"#b54708",800:"#93370d",900:"#7a2e0e"},success:{25:"#f6fef9",50:"#ecfdf3",100:"#d1fadf",200:"#a6f4c5",300:"#6ce9a6",400:"#32d583",500:"#12b76a",600:"#039855",700:"#027a48",800:"#05603a",900:"#054f31"},grayBlue:{25:"#fcfcfd",50:"#f8f9fc",100:"#eaecf5",200:"#d5d9eb",300:"#b3b8db",400:"#717bbc",500:"#4e5ba6",600:"#3e4784",700:"#363f72",800:"#293056",900:"#101323"},grayCool:{25:"#fcfcfd",50:"#f9f9fb",100:"#eff1f5",200:"#dcdfea",300:"#b9c0d4",400:"#7d89b0",500:"#5d6b98",600:"#4a5578",700:"#404968",800:"#30374f",900:"#111322"},grayModern:{25:"#fcfcfd",50:"#f8fafc",100:"#eef2f6",200:"#e3e8ef",300:"#cdd5df",400:"#9aa4b2",500:"#697586",600:"#4b5565",700:"#364152",800:"#202939",900:"#121926"},grayNeutral:{25:"#fcfcfd",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d2d6db",400:"#9da4ae",500:"#6c737f",600:"#4d5761",700:"#384250",800:"#1f2a37",900:"#111927"},grayIron:{25:"#fcfcfc",50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d1d1d6",400:"#a0a0ab",500:"#70707b",600:"#51525c",700:"#3f3f46",800:"#26272b",900:"#18181b"},grayTrue:{25:"#fcfcfc",50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d6d6d6",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#424242",800:"#292929",900:"#141414"},grayWarm:{25:"#fdfdfc",50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d7d3d0",400:"#a9a29d",500:"#79716b",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},moss:{25:"#fafdf7",50:"#f5fbee",100:"#e6f4d7",200:"#ceeab0",300:"#acdc79",400:"#86cb3c",500:"#669f2a",600:"#4f7a21",700:"#3f621a",800:"#335015",900:"#2b4212"},greenLight:{25:"#fafef5",50:"#f3fee7",100:"#e3fbcc",200:"#d0f8ab",300:"#a6ef67",400:"#85e13a",500:"#66c61c",600:"#4ca30d",700:"#3b7c0f",800:"#326212",900:"#2b5314"},green:{25:"#f6fef9",50:"#edfcf2",100:"#d3f8df",200:"#aaf0c4",300:"#73e2a3",400:"#3ccb7f",500:"#16b364",600:"#099250",700:"#087443",800:"#095c37",900:"#084c2e"},teal:{25:"#f6fefc",50:"#f0fdf9",100:"#ccfbef",200:"#99f6e0",300:"#5fe9d0",400:"#2ed3b7",500:"#15b79e",600:"#0e9384",700:"#107569",800:"#125d56",900:"#134e48"},cyan:{25:"#f5feff",50:"#ecfdff",100:"#cff9fe",200:"#a5f0fc",300:"#67e3f9",400:"#22ccee",500:"#06aed4",600:"#088ab2",700:"#0e7090",800:"#155b75",900:"#164c63"},blueLight:{25:"#f5fbff",50:"#f0f9ff",100:"#e0f2fe",200:"#b9e6fe",300:"#7cd4fd",400:"#36bffa",500:"#0ba5ec",600:"#0086c9",700:"#026aa2",800:"#065986",900:"#0b4a6f"},blue:{25:"#f5faff",50:"#eff8ff",100:"#d1e9ff",200:"#b2ddff",300:"#84caff",400:"#53b1fd",500:"#2e90fa",600:"#1570ef",700:"#175cd3",800:"#1849a9",900:"#194185"},blueDark:{25:"#f5f8ff",50:"#eff4ff",100:"#d1e0ff",200:"#b2ccff",300:"#84adff",400:"#528bff",500:"#2970ff",600:"#155eef",700:"#004eeb",800:"#0040c1",900:"#00359e"},indigo:{25:"#f5f8ff",50:"#eef4ff",100:"#e0eaff",200:"#c7d7fe",300:"#a4bcfd",400:"#8098f9",500:"#6172f3",600:"#444ce7",700:"#3538cd",800:"#2d31a6",900:"#2d3282"},violet:{25:"#fbfaff",50:"#f5f3ff",100:"#ece9fe",200:"#ddd6fe",300:"#c3b5fd",400:"#a48afb",500:"#875bf7",600:"#7839ee",700:"#6927da",800:"#5720b7",900:"#491c96"},purple:{25:"#fafaff",50:"#f4f3ff",100:"#ebe9fe",200:"#d9d6fe",300:"#bdb4fe",400:"#9b8afb",500:"#7a5af8",600:"#6938ef",700:"#5925dc",800:"#4a1fb8",900:"#3e1c96"},fuchsia:{25:"#fefaff",50:"#fdf4ff",100:"#fbe8ff",200:"#f6d0fe",300:"#eeaafd",400:"#e478fa",500:"#d444f1",600:"#ba24d5",700:"#9f1ab1",800:"#821890",900:"#6f1877"},pink:{25:"#fef6fb",50:"#fdf2fa",100:"#fce7f6",200:"#fcceee",300:"#faa7e0",400:"#f670c7",500:"#ee46bc",600:"#dd2590",700:"#c11574",800:"#9e165f",900:"#851651"},rose:{25:"#fff5f6",50:"#fff1f3",100:"#ffe4e8",200:"#fecdd6",300:"#fea3b4",400:"#fd6f8e",500:"#f63d68",600:"#e31b54",700:"#c01048",800:"#a11043",900:"#89123e"},orangeDark:{25:"#fff9f5",50:"#fff4ed",100:"#ffe6d5",200:"#ffd6ae",300:"#ff9c66",400:"#ff692e",500:"#ff4405",600:"#e62e05",700:"#bc1b06",800:"#97180c",900:"#771a0d"},orange:{25:"#fefaf5",50:"#fef6ee",100:"#fdead7",200:"#f9dbaf",300:"#f7b27a",400:"#f38744",500:"#ef6820",600:"#e04f16",700:"#b93815",800:"#932f19",900:"#772917"},yellow:{25:"#fefdf0",50:"#fefbe8",100:"#fef7c3",200:"#feee95",300:"#fde272",400:"#fac515",500:"#eaaa08",600:"#ca8504",700:"#a15c07",800:"#854a0e",900:"#713b12"},gradient:{gray:{"600to500at90Deg":"linear-gradient(to bottom, var(--chakra-colors-gray-600) 0%,var(--chakra-colors-gray-500) 100%)","700to600at45Deg":"linear-gradient(to bottom, var(--chakra-colors-gray-700) 0%,var(--chakra-colors-gray-600) 100%)","800to600at45Deg":"linear-gradient(to bottom, var(--chakra-colors-gray-800) 0%,var(--chakra-colors-gray-600) 100%)","800to600at90Deg":"linear-gradient(to bottom, var(--chakra-colors-gray-800) 0%,var(--chakra-colors-gray-600) 100%)","800to700at265Deg":"linear-gradient(to bottom, var(--chakra-colors-gray-800) 0%,var(--chakra-colors-gray-700) 100%)","900to600at45Deg":"linear-gradient(to bottom, var(--chakra-colors-gray-900) 0%,var(--chakra-colors-gray-600) 100%)"},primary:{"600to500at90Deg":"linear-gradient(to bottom, var(--chakra-colors-primary-600) 0%,var(--chakra-colors-primary-500) 100%)","700to600at45Deg":"linear-gradient(to bottom, var(--chakra-colors-primary-700) 0%,var(--chakra-colors-primary-600) 100%)","800to600at45Deg":"linear-gradient(to bottom, var(--chakra-colors-primary-800) 0%,var(--chakra-colors-primary-600) 100%)","800to600at90Deg":"linear-gradient(to bottom, var(--chakra-colors-primary-800) 0%,var(--chakra-colors-primary-600) 100%)","800to700at265Deg":"linear-gradient(to bottom, var(--chakra-colors-primary-800) 0%,var(--chakra-colors-primary-700) 100%)","900to600at45Deg":"linear-gradient(to bottom, var(--chakra-colors-primary-900) 0%,var(--chakra-colors-primary-600) 100%)"}}}},4217:function(e,t,r){"use strict";var n=r(8106),o=r(2389),i={xs:"0px 1px 2px ".concat((0,n.f)(o.Z.gray[900],.05)),xsFocusedPrimary100:"0px 1px 2px ".concat((0,n.f)(o.Z.gray[900],.05),", 0px 0px 0px 4px var(--chakra-colors-primary-100)"),xsFocusedGray100:"0px 1px 2px ".concat((0,n.f)(o.Z.gray[900],.05),", 0px 0px 0px 4px var(--chakra-colors-gray-100)"),xsFocusedError100:"0px 1px 2px ".concat((0,n.f)(o.Z.gray[900],.05),", 0px 0px 0px 4px var(--chakra-colors-error-100)"),focusRingPrimary100:"0px 0px 0px 4px var(--chakra-colors-primary-100)",focusRingPrimary500:"0px 0px 0px 4px var(--chakra-colors-primary-500)",focusRingGray100:"0px 0px 0px 4px var(--chakra-colors-gray-100)",focusRingGray500:"0px 0px 0px 4px var(--chakra-colors-gray-500)",focusRingError100:"0px 0px 0px 4px var(--chakra-colors-error-100)",sm:"0px 1px 3px ".concat((0,n.f)(o.Z.gray[900],.1),", 0px 1px 2px ").concat((0,n.f)(o.Z.gray[900],.06)),smFocusedPrimary100:"0px 1px 3px ".concat((0,n.f)(o.Z.gray[900],.1),", 0px 1px 2px ").concat((0,n.f)(o.Z.gray[900],.06),", 0px 0px 0px 4px var(--chakra-colors-primary-100)"),smFocusedGray100:"0px 1px 3px ".concat((0,n.f)(o.Z.gray[900],.1),", 0px 1px 2px ").concat((0,n.f)(o.Z.gray[900],.06),", 0px 0px 0px 4px var(--chakra-colors-gray-100)"),md:"0px 4px 8px -2px ".concat((0,n.f)(o.Z.gray[900],.1),", 0px 2px 4px -2px ").concat((0,n.f)(o.Z.gray[900],.06)),lg:"0px 12px 16px -4px ".concat((0,n.f)(o.Z.gray[900],.08),", 0px 4px 6px -2px ").concat((0,n.f)(o.Z.gray[900],.03)),xl:"0px 20px 24px -4px ".concat((0,n.f)(o.Z.gray[900],.08),", 0px 8px 8px -4px ").concat((0,n.f)(o.Z.gray[900],.03)),"2xl":"0px 24px 48px -12px ".concat((0,n.f)(o.Z.gray[900],.18)),"3xl":"0px 32px 64px -12px ".concat((0,n.f)(o.Z.gray[900],.14)),portfolioMockupMainCentreMd:"0px 75px 150px ".concat((0,n.f)(o.Z.gray[700],.14)),portfolioMockupMainCentreLg:"0px 100px 200px ".concat((0,n.f)(o.Z.gray[700],.18)),portfolioMockupMainOverlayRightLg:"-100px 100px 150px ".concat((0,n.f)(o.Z.gray[700],.12)),portfolioMockupMainOverlayLeftLg:"100px 100px 150px ".concat((0,n.f)(o.Z.gray[700],.12)),portfolioMockupMainGridShadow:"32px 32px 64px ".concat((0,n.f)(o.Z.gray[700],.08))};t.Z=i},6681:function(e,t,r){"use strict";r.d(t,{Z:function(){return Me}});
1var n=r(3833),o=r(2389),i={heading:"Inter, sans-serif",body:"Inter, sans-serif"},a=r(9499),s={height:"fit-content",width:"fit-content",minW:"unset",borderRadius:"8px"};function c(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l=function(e){var t={"& .chakra-button__icon":{margin:"0"}};return"sm"===e.size||"md"===e.size||"lg"===e.size||"xl"===e.size?u(u({gap:"8px"},t),{},{"& .chakra-button__icon > .chakra-icon":{height:"20px",width:"20px"}}):"2xl"===e.size?u(u({gap:"12px"},t),{},{"& .chakra-button__icon > .chakra-icon":{height:"24px",width:"24px"}}):{}},d=function(e){return"sm"===e.size||"md"===e.size?e.theme.textStyles.text.sm.medium:"lg"===e.size||"xl"===e.size?e.theme.textStyles.text.md.medium:"2xl"===e.size?e.theme.textStyles.text.lg.medium:{}};function f(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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(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 m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(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 g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(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 k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(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 O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(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 E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(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 _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var T={baseStyle:{transition:".2s"},sizes:{sm:{px:"14px",py:"8px"},md:{px:"16px",py:"10px"},lg:{px:"18px",py:"10px"},xl:{px:"20px",py:"12px"},"2xl":{px:"28px",py:"16px"}},variants:{primary:function(e){return p(p(p({background:"".concat(e.colorScheme,".600"),color:"white",stroke:"white",boxShadow:"xs",_hover:{background:"".concat(e.colorScheme,".700"),_disabled:{background:"".concat(e.colorScheme,".200")}},_focus:{boxShadow:"xsFocused".concat(e.colorScheme.charAt(0).toUpperCase()+e.colorScheme.slice(1),"100")},_disabled:{opacity:1,background:"".concat(e.colorScheme,".200")}},l(e)),d(e)),s)},linkColor:function(e){return m(m(m({p:"0",stroke:"".concat(e.colorScheme,".700"),color:"".concat(e.colorScheme,".700"),_hover:{color:"".concat(e.colorScheme,".800"),stroke:"".concat(e.colorScheme,".800"),_disabled:{color:"".concat(e.colorScheme,".300"),stroke:"".concat(e.colorScheme,".300")}},_disabled:{opacity:1,color:"".concat(e.colorScheme,".300"),stroke:"".concat(e.colorScheme,".300")}},l(e)),d(e)),s)},linkGray:function(e){return g(g(g({p:"0",stroke:"gray.500",color:"gray.500",_hover:{color:"gray.600",stroke:"gray.600",_disabled:{color:"gray.300",stroke:"gray.300"}},_disabled:{opacity:1,color:"gray.300",stroke:"gray.300"}},l(e)),d(e)),s)},secondaryBackground:function(e){return b(b(b({background:"".concat(e.colorScheme,".50"),color:"".concat(e.colorScheme,".700"),stroke:"".concat(e.colorScheme,".700"),boxShadow:"xs",_hover:{background:"".concat(e.colorScheme,".100"),color:"".concat(e.colorScheme,".800"),stroke:"".concat(e.colorScheme,".800"),_disabled:{background:"".concat(e.colorScheme,".25"),color:"".concat(e.colorScheme,".300"),stroke:"".concat(e.colorScheme,".300")}},_focus:{boxShadow:"xsFocused".concat(e.colorScheme.charAt(0).toUpperCase()+e.colorScheme.slice(1),"100")},_disabled:{opacity:1,background:"".concat(e.colorScheme,".25"),color:"".concat(e.colorScheme,".300"),stroke:"".concat(e.colorScheme,".300")}},l(e)),d(e)),s)},secondaryBorder:function(e){return w(w(w({color:"".concat(e.colorScheme,".700"),stroke:"".concat(e.colorScheme,".700"),boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors[e.colorScheme][300]),_hover:{background:"".concat(e.colorScheme,".50"),_disabled:{background:"none"}},_focus:{boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors[e.colorScheme][300],", ").concat(e.theme.shadows["xsF
1ocused".concat(e.colorScheme.charAt(0).toUpperCase()+e.colorScheme.slice(1),"100")])},_disabled:{opacity:1,boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors[e.colorScheme][200]),color:"".concat(e.colorScheme,".300"),stroke:"".concat(e.colorScheme,".300")}},l(e)),d(e)),s)},tertiaryColor:function(e){return k(k(k({color:"".concat(e.colorScheme,".700"),stroke:"".concat(e.colorScheme,".700"),_hover:{color:"".concat(e.colorScheme,".800"),stroke:"".concat(e.colorScheme,".800"),background:"".concat(e.colorScheme,".50"),_disabled:{background:"none",color:"".concat(e.colorScheme,".300"),stroke:"".concat(e.colorScheme,".300")}},_focus:{},_disabled:{opacity:1,background:"none",color:"".concat(e.colorScheme,".300"),stroke:"".concat(e.colorScheme,".300")}},l(e)),d(e)),s)},tertiaryGray:function(e){return O(O(O({color:"gray.500",stroke:"gray.500",_hover:{color:"gray.600",stroke:"gray.600",background:"gray.50",_disabled:{background:"none",color:"gray.300",stroke:"gray.300"}},_focus:{boxShadow:"unset"},_disabled:{opacity:1,background:"none",color:"gray.300",stroke:"gray.300"}},l(e)),d(e)),s)},option:function(e){return E(E(E({color:"gray.700",stroke:"gray.700",boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.gray[300]),_hover:{background:"primary.50",boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.primary[300]),_disabled:{background:"none",boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.gray[300])}},_active:{background:"primary.50",boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.primary[300]),_disabled:{background:"none",boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.gray[300])}},_focus:{boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.primary[300],", ").concat(e.theme.shadows.xsFocusedPrimary100)},_disabled:{opacity:1,boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.primary[200]),color:"gray.300",stroke:"gray.300"}},l(e)),d(e)),s)},white:function(e){return _(_(_({background:"white",color:"gray.500",stroke:"gray.500",boxShadow:"xs",_hover:{color:"gray.600",stroke:"gray.600",_disabled:{background:"gray.25",color:"gray.300",stroke:"gray.300"}},_focus:{boxShadow:"xsFocusedGray100"},_disabled:{opacity:1,background:"gray.25",color:"gray.300",stroke:"gray.300"}},l(e)),d(e)),s)}},defaultProps:{size:"md",variant:"primary",colorScheme:"primary"}},A={baseStyle:{_hover:{textDecoration:"none"}}};function R(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 D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var M={fontSize:"72px",lineHeight:"90px",letterSpacing:"-0.02em"},I={fontSize:"60px",lineHeight:"72px",letterSpacing:"-0.02em"},F={fontSize:"48px",lineHeight:"60px",letterSpacing:"-0.02em"},N={fontSize:"36px",lineHeight:"44px",letterSpacing:"-0.02em"},L={fontSize:"30px",lineHeight:"38px"},B={fontSize:"24px",lineHeight:"32px"},z={fontSize:"20px",lineHeight:"30px"},V={fontSize:"18px",lineHeight:"28px"},U={fontSize:"16px",lineHeight:"24px"},$={fontSize:"14px",lineHeight:"20px"},W={fontSize:"12px",lineHeight:"18px"},Z={display:{"2xl":{regular:D(D({},M),{},{fontWeight:400}),medium:D(D({},M),{},{fontWeight:500}),semiBold:D(D({},M),{},{fontWeight:600}),bold:D(D({},M),{},{fontWeight:700})},xl:{regular:D(D({},I),{},{fontWeight:400}),medium:D(D({},I),{},{fontWeight:500}),semiBold:D(D({},I),{},{fontWeight:600}),bold:D(D({},I),{},{fontWeight:700})},lg:{regular:D(D({},F),{},{fontWeight:400}),medium:D(D({},F),{},{fontWeight:500}),semiBold:D(D({},F),{},{fontWeight:600}),bold:D(D({},F),{},{fontWeight:700})}
1,md:{regular:D(D({},N),{},{fontWeight:400}),medium:D(D({},N),{},{fontWeight:500}),semiBold:D(D({},N),{},{fontWeight:600}),bold:D(D({},N),{},{fontWeight:700})},sm:{regular:D(D({},L),{},{fontWeight:400}),medium:D(D({},L),{},{fontWeight:500}),semiBold:D(D({},L),{},{fontWeight:600}),bold:D(D({},L),{},{fontWeight:700})},xs:{regular:D(D({},B),{},{fontWeight:400}),medium:D(D({},B),{},{fontWeight:500}),semiBold:D(D({},B),{},{fontWeight:600}),bold:D(D({},B),{},{fontWeight:700})}},text:{xl:{regular:D(D({},z),{},{fontWeight:400}),medium:D(D({},z),{},{fontWeight:500}),semiBold:D(D({},z),{},{fontWeight:600}),bold:D(D({},z),{},{fontWeight:700})},lg:{regular:D(D({},V),{},{fontWeight:400}),medium:D(D({},V),{},{fontWeight:500}),semiBold:D(D({},V),{},{fontWeight:600}),bold:D(D({},V),{},{fontWeight:700})},md:{regular:D(D({},U),{},{fontWeight:400}),medium:D(D({},U),{},{fontWeight:500}),semiBold:D(D({},U),{},{fontWeight:600}),bold:D(D({},U),{},{fontWeight:700})},sm:{regular:D(D({},$),{},{fontWeight:400}),medium:D(D({},$),{},{fontWeight:500}),semiBold:D(D({},$),{},{fontWeight:600}),bold:D(D({},$),{},{fontWeight:700})},xs:{regular:D(D({},W),{},{fontWeight:400}),medium:D(D({},W),{},{fontWeight:500}),semiBold:D(D({},W),{},{fontWeight:600}),bold:D(D({},W),{},{fontWeight:700})}}},H={borderRadius:"8px",height:"fit-content"},q={borderRadius:"8px",height:"fit-content"};function G(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 Q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var X={baseStyle:function(e){return{field:{background:"none",transition:".2s",boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.gray[300]),_focus:{boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.primary[300],", ").concat(e.theme.shadows.xsFocusedPrimary100)},_invalid:{boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.error[300]),_focus:{boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.error[300],", ").concat(e.theme.shadows.xsFocusedError100)}},_disabled:{boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.gray[300]),background:"gray.50",color:"gray.500"},_placeholder:{color:"gray.500"}},addon:{color:"gray.500",boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.gray[300])}}},variants:{basic:function(e){return{field:Q({},q),addon:Q({},H)}}},sizes:{sm:{field:K({py:"8px",px:"12px"},Z.text.sm.regular),addon:K({py:"8px",px:"12px"},Z.text.sm.regular)},md:{field:K({py:"10px",px:"14px"},Z.text.md.regular),addon:K({py:"10px",px:"14px"},Z.text.md.regular)}},defaultProps:{size:"md",variant:"basic"}};function J(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 ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var te={baseStyle:{},sizes:{sm:{button:ee({py:"8px",px:"12px"},Z.text.sm.regular),item:ee({py:"8px",px:"12px"},Z.text.sm.regular)},md:{button:ee({py:"10px",px:"14px"},Z.text.md.regular),item:ee({py:"10px",px:"14px"},Z.text.md.regular)}}},re=r(8106),ne={baseStyle:function(e){return{dialogContainer:{padding:"16px"},dialog:{borderRadius:"12px",position:"relative",width:"100%",maxWidth:"400px",margin:"auto",padding:"24px",background:"white",boxShadow:"xl"},header:{marginBottom:"8px",padding:"0"},body:{padding:"0"},footer:{display:"flex",flexDirection:{base:"column",lg:"row"},gap:"12px",marginTop:"32px",padding:"0"},overlay:{background:"".concat((0,re.f)(o.Z.gray[900],.7))}}}},oe={baseStyle:function(e){return{px:{base:"16px",sm:"20px",md:"32px"}}}},ie=function(e){return{boxShadow:"inset 0 0px 0px 1px ".concat(e.theme.colors.primary[600]),bg:"primary.600",_hover:{boxShadow:"inset 0 0px 0px 1px ".concat(e.theme.colors.primary[700]),_focus:{boxShadow:"inset 0 0px 0px 1px ".concat(e.theme.colors.primary[700],", ").concat(e.theme.shadows.xsFocusedPrimary100)},bg:"primary.700"},_focus:{boxShadow:"inset 0 0px 0px 1px ".concat(e.theme.colors.primary[600],", ").concat(e.theme.shadows.xsFocusedPrimary100)},_disabled:{stroke:"gray.300"}}},ae={baseStyle:function(e){return{control:{fill:"none",stroke:"white",border:"none",transition:".2s",borderRadius:"6px",boxShadow:"inset 0 0px 0px 1px ".concat(e.theme.colors.gray[300]),_checked:ie(e),_indeterminate:ie(e),_hover:{boxShadow:"inset 0 0px 0px 1px ".concat(e.theme.colors.primary[600]),_focus:{boxShadow:"inset 0 0px 0px 1px ".concat(e.theme.colors.primary[600],", ").concat(e.theme.shadows.xsFocusedPrimary100)},bg:"primary.100"},_focus:{boxShadow:"inset 0 0px 0px 1px ".concat(e.theme.colors.primary[300],", ").concat(e.theme.shadows.xsFocusedPrimary100)},_disabled:{bg:"gray.100",boxShadow:"inset 0 0px 0px 1px ".concat(e.theme.colors.gray[300]),_hover:{boxShadow:"inset 0 0px 0px 1px ".concat(e.theme.colors.gray[300])}}},label:{ml:"12px",color:"gray.700"}}},sizes:{sm:{control:{h:"16px",w:"16px"},label:{fontSize:"inherit"}},md:{control:{h:"20px",w:"20px"},label:{fontSize:"inherit"}}}},se={baseStyle:function(e){return{filledTrack:{bg:"primary.600",borderRadius:"10px"},track:{bg:"gray.200",borderRadius:"10px"},thumb:{bg:"white",boxShadow:"inset 0 0px 0px 1.5px ".concat(e.theme.colors.primary[600]),border:"none",height:"24px",_focus:{boxShadow:"inset 0 0px 0px 1.5px ".concat(e.theme.colors.primary[600])}}}}};function ce(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 ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var le={bg:"gray.100","& .chakra-switch__thumb":{bg:"gray.50"}},de={baseStyle:function(e){return{transition:"0.2s",container:{display:"flex"},track:{alignItems:"center",bg:"gray.100",_checked:{bg:"primary.600",_disabled:ue({},le)},_focus:{boxShadow:"xsFocusedPrimary100"},_disabled:ue({opacity:1},le)},thumb:{bg:"white",boxShadow:"sm"}}},sizes:{sm:{container:{width:"36px",height:"20px","--switch-track-width":"36px","--switch-track-height":"20px"},track:{padding:"0px 2px",width:"32px",height:"20px"},thumb:{width:"16px",height:"16px"}},md:{container:{width:"44px",height:"24px","--switch-track-width":"44px","--switch-track-height":"24px"},track:{padding:"0px 2px",width:"40px",height:"24px"},thumb:{width:"20px",height:"20px"}}}};function fe(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}var pe=function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?fe(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({borderRadius:"8px",transition:".2s",boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.gray[300]),_focus:{boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.primary[300],", ").concat(e.theme.shadows.xsFocusedPrimary100)},_invalid:{boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.error[300]),_focus:{boxShadow:"".concat(e.theme.shadows.xs,", inset 0 0px 0px 1px ").concat(e.theme.colors.error[300],", ").concat(e.theme.shadows.xsFocusedError100)}},_placeholder:{color:"gray.500"}},function(e){return"sm"===e.size?e.theme.textStyles.text.sm.regular:(e.size,e.theme.textStyles.text.md.regular)}(e))},he={variants:{basic:pe},defaultProps:{size:"md",variant:"basic"},sizes:{sm:{px:"12px",py:"8px"},md:{px:"14px",py:"10px"}}},me=r(4244),ve=(0,me.gJ)("tooltip-bg"),ge=(0,me.gJ)("popper-arrow-bg"),ye=function(e){var t;return t={color:"gray.700"},(0,a.Z)(t,ve.variable,"".concat(e.theme.colors.gray[100])),(0,a.Z)(t,"bg",[ve.reference]),(0,a.Z)(t,ge.variable,[ve.reference]),t},be=(0,me.gJ)("tooltip-bg"),xe=(0,me.gJ)("popper-arrow-bg");function we(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}var Ce={baseStyle:function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({borderRadius:"8px",px:"12px",py:"8px",boxShadow:"lg"},e.theme.textStyles.text.xs.medium)},variants:{light:ye,dark:function(e){var t;return t={color:"white"},(0,a.Z)(t,be.variable,"".concat(e.theme.colors.gray[900])),(0,a.Z)(t,"bg",[be.reference]),(0,a.Z)(t,xe.variable,[be.reference]),t}},defaultProps:{variant:"dark"}};function ke(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 Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Oe=function(e){switch(e.size){case"xs":return{outlineWidth:"2px",outlineOffset:"-1px"};case"sm":return{outlineWidth:"4px",outlineOffset:"-2px"};case"md":return{outlineWidth:"6px",outlineOffset:"-3px"};case"lg":return{outlineWidth:"8px",outlineOffset:"-4px"};case"xl":return{outlineWidth:"10px",outlineOffset:"-5px"};default:return{}}};function je(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 Ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?je(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Pe={Button:T,Container:oe,Link:A,Input:X,Menu:te,Modal:ne,Slider:se,Checkbox:ae,Switch:de,Textarea:he,Tooltip:Ce,Divider:{baseStyle:{borderColor:"gray.200"}},FeaturedIcon:{parts:["container","icon"],baseStyle:{container:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%"}},sizes:{xs:{container:{h:"24px",w:"24px"},icon:{h:"10px",w:"10px",strokeWidth:1.67}},sm:{container:{h:"32px",w:"32px"},icon:{h:"16px",w:"16px",strokeWidth:1.67}},md:{container:{h:"40px",w:"40px"},icon:{h:"20px",w:"20px",strokeWidth:1.67}},lg:{container:{h:"48px",w:"48px"},icon:{h:"24px",w:"24px",strokeWidth:2}},xl:{container:{h:"56px",w:"56px"},icon:{h:"28px",w:"28px",strokeWidth:2}}},variants:{light:function(e){return{container:{bg:"".concat(e.colorScheme,".100")},icon:{stroke:"".concat(e.colorScheme,".600"),fill:"none"}}},lightOutline:function(e){return{container:Se({bg:"".concat(e.colorScheme,".100"),outlineStyle:"solid",outlineColor:"".concat(e.colorScheme,".50")},Oe(e)),icon:{stroke:"".concat(e.colorScheme,".600"),fill:"none"}}}},defaultProps:{variant:"light",colorScheme:"primary",size:"md"}},NavMenuItemLink:{parts:["container","content","title","supporting","action","iconContainer"],baseStyle:function(e){return{container:{borderRadius:"8px",display:"flex",_hover:{bg:"gray.50"}},content:{},title:Ee({},e.theme.textStyles.text.md.medium),supporting:Ee(Ee({},e.theme.textStyles.text.sm.regular),{},{color:"gray.500",mt:"4px"}),action:{display:"flex",alignItems:"center",mt:"12px",gap:"8px"},iconContainer:{mr:"12px"}}},variants:{mobile:function(e){return{container:{px:"16px",py:"12px"}}},desktop:function(e){return{container:{px:"12px",py:"12px"}}}},defaultProps:{variant:"desktop"}}},_e={initialColorMode:"light",useSystemColorMode:!1},Te={global:function(e){return{html:{scrollBehavior:"smooth"},body:{backgroundColor:"white",color:"gray.900"},a:{_hover:{textDecoration:"none"}},"@media (min-width: 992px)":{".hideAboveLG":{display:"none !important"}},"@media (max-width: 991px)":{".hideBelowLG":{display:"none !important"}},"@media (min-width: 768px)":{".hideAboveMD":{display:"none !important"}},"@media (max-width: 767px)":{".hideBelowMD":{display:"none !important"}},"@media (min-width: 480px)":{".hideAboveSM":{display:"none !important"}},"@media (max-width: 479px)":{".hideBelowSM":{display:"none !important"}}}}},Ae=r(4217),Re={xl:"40px",lg:"24px",md:"16px",sm:"8px"},De=(r(5822),r(5494),r(6780),r(9293),r(8357),r(8683),r(4993),r(4186),r(7064),r(5283),{config:_e,colors:o.Z,fonts:i,components:Pe,styles:Te,textStyles:Z,shadows:Ae.Z,blur:Re}),Me=(0,n.B1C)(De)},7747:function(e,t,r){"use strict";var n=r(9499),o=r(8527),i=r(1358),a=r(4193),s=r(5893);function c(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?c(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.Z=function(e){var t=e.onClose;return(0,s.jsxs)(o.xu,u(u({as:"button",role:"group",position:"absolute"},{transition:".2s",top:{base:"12px",lg:"16px"},right:{base:"12px",lg:"16px"},w:{base:"40px",lg:"44px"},h:{base:"40px",lg:"44px"},borderRadius:"8px",_hover:{bg:"gray.50"}}),{},{onClick:t,children:[(0,s.jsx)(i.TX,{children:"Close"}),(0,s.jsx)(a.Z,{strokeWidth:"2",stroke:"gray.500",_groupHover:{stroke:"gray.600"},_groupFocus:{stroke:"gray.500"},height:"24px",width:"24px"})]}))}},5543:function(e,t,r){"use strict";var n=r(9499),o=r(4730),i=r(1604),a=r(8527),s=r(894),c=r(5893),u=["size","variant","colorScheme","icon"];function l(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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f=(0,i.Gp)((function(e,t){var r=e.size,n=void 0===r?"md":r,l=e.variant,f=void 0===l?"light":l,p=e.colorScheme,h=void 0===p?"primary":p,m=e.icon,v=(0,o.Z)(e,u),g=(0,i.jC)("FeaturedIcon",{size:n,variant:f,colorScheme:h});return(0,c.jsx)(a.xu,d(d({ref:t,__css:g.container},v),{},{children:(0,c.jsx)(s.JO,{as:m,__css:g.icon})}))}));t.Z=f},6270:function(e,t,r){"use strict";var n=r(9499),o=r(1604),i=r(8527),a=r(5893);function s(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=(0,o.Gp)((function(e,t){return(0,a.jsx)(i.kC,c(c({ref:t,flexDirection:"column"},e),{},{children:e.children}))}));t.Z=u},5239:function(e,t,r){"use strict";var n=r(9499),o=r(4730),i=r(1604),a=r(8527),s=r(5893),c=["isInvalid"];function u(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d=(0,i.Gp)((function(e,t){var r=e.isInvalid,n=(0,o.Z)(e,c);return(0,s.jsx)(a.xv,l(l({ref:t,as:"label",textStyle:"text.sm.regular",color:r?"error.500":"gray.500",marginTop:"6px"},n),{},{children:n.children}))}));t.Z=d},8226:function(e,t,r){"use strict";var n=r(9499),o=r(1604),i=r(8527),a=r(5893);function s(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=(0,o.Gp)((function(e,t){return(0,a.jsx)(i.xv,c(c({ref:t,as:"label",textStyle:"text.sm.medium",color:"gray.700",marginBottom:"6px"},e),{},{children:e.children}))}));t.Z=u},4995:function(e,t,r){"use strict";var n=r(894),o=r(5893),i=(0,n.IU)({viewBox:"0 0 24 24",path:(0,o.jsx)("path",{d:"M11.9995 12.0001H12.0095M15.535 15.5357C10.8488 20.222 5.46685 22.438 3.51423 20.4854C1.56161 18.5328 3.77769 13.1509 8.46398 8.46461C13.1503 3.77832 18.5322 1.56224 20.4848 3.51486C22.4374 5.46748 20.2213 10.8494 15.535 15.5357ZM15.535 8.46443C20.2213 13.1507 22.4374 18.5326 20.4848 20.4852C18.5321 22.4379
113.1502 20.2218 8.46394 15.5355C3.77765 10.8492 1.56157 5.4673 3.51419 3.51468C5.46681 1.56206 10.8487 3.77814 15.535 8.46443ZM12.4995 12.0001C12.4995 12.2763 12.2757 12.5001 11.9995 12.5001C11.7234 12.5001 11.4995 12.2763 11.4995 12.0001C11.4995 11.724 11.7234 11.5001 11.9995 11.5001C12.2757 11.5001 12.4995 11.724 12.4995 12.0001Z",strokeLinecap:"round",strokeLinejoin:"round"}),displayName:"Atom01Icon"});t.Z=i},8198:function(e,t,r){"use strict";var n=r(894),o=r(5893),i=(0,n.IU)({viewBox:"0 0 24 24",path:(0,o.jsx)("path",{d:"M20 6L9 17L4 12",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),displayName:"CheckIcon"});t.Z=i},5344:function(e,t,r){"use strict";var n=r(894),o=r(5893),i=(0,n.IU)({viewBox:"0 0 24 24",path:(0,o.jsx)("path",{d:"M16 6V5.2C16 4.0799 16 3.51984 15.782 3.09202C15.5903 2.71569 15.2843 2.40973 14.908 2.21799C14.4802 2 13.9201 2 12.8 2H11.2C10.0799 2 9.51984 2 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8 3.51984 8 4.0799 8 5.2V6M10 11.5V16.5M14 11.5V16.5M3 6H21M19 6V17.2C19 18.8802 19 19.7202 18.673 20.362C18.3854 20.9265 17.9265 21.3854 17.362 21.673C16.7202 22 15.8802 22 14.2 22H9.8C8.11984 22 7.27976 22 6.63803 21.673C6.07354 21.3854 5.6146 20.9265 5.32698 20.362C5 19.7202 5 18.8802 5 17.2V6",strokeLinecap:"round",strokeLinejoin:"round"}),displayName:"Trash01Icon"});t.Z=i},1624:function(e,t,r){"use strict";var n=r(894),o=r(5893),i=(0,n.IU)({viewBox:"0 0 24 24",path:(0,o.jsx)("path",{d:"M16 12L12 8M12 8L8 12M12 8V16M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),displayName:"Download03Icon"});t.Z=i},4193:function(e,t,r){"use strict";var n=r(894),o=r(5893),i=(0,n.IU)({viewBox:"0 0 24 24",path:(0,o.jsx)("path",{d:"M18 6L6 18M6 6L18 18",strokeLinecap:"round",strokeLinejoin:"round"}),displayName:"XCloseIcon"});t.Z=i},2842:function(e,t,r){"use strict";var n=r(894),o=r(5893),i=(0,n.IU)({viewBox:"0 0 24 24",path:(0,o.jsx)("path",{d:"M13 2L4.09344 12.6879C3.74463 13.1064 3.57023 13.3157 3.56756 13.4925C3.56524 13.6461 3.63372 13.7923 3.75324 13.8889C3.89073 14 4.16316 14 4.70802 14H12L11 22L19.9065 11.3121C20.2553 10.8936 20.4297 10.6843 20.4324 10.5075C20.4347 10.3539 20.3663 10.2077 20.2467 10.1111C20.1092 10 19.8368 10 19.292 10H12L13 2Z",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),displayName:"ZapIcon"});t.Z=i},40:function(e,t,r){"use strict";var n=r(894),o=r(5893),i=(0,n.IU)({viewBox:"0 0 256 256",path:(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("svg",{width:"256",height:"256",viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M0 102.4C0 66.5566 0 48.635 6.97558 34.9446C13.1115 22.9022 22.9022 13.1115 34.9446 6.97558C48.635 0 66.5566 0 102.4 0H153.6C189.443 0 207.365 0 221.055 6.97558C233.098 13.1115 242.889 22.9022 249.024 34.9446C256 48.635 256 66.5566 256 102.4V153.6C256 189.443 256 207.365 249.024 221.055C242.889 233.098 233.098 242.889 221.055 249.024C207.365 256 189.443 256 153.6 256H102.4C66.5566 256 48.635 256 34.9446 249.024C22.9022 242.889 13.1115 233.098 6.97558 221.055C0 207.365 0 189.443 0 153.6V102.4Z",fill:"#E0EAFF"}),(0,o.jsx)("path",{d:"M56 84.8H148.16C156.225 84.8 160.257 84.8 163.337 86.3695C166.047 87.7501 168.25 89.953 169.63 92.6625C171.2 95.7429 171.2 99.7752 171.2 107.84V200M200 171.2L107.84 171.2C99.7752 171.2 95.7429 171.2 92.6625 169.631C89.953 168.25 87.7501 166.047 86.3695 163.337C84.8 160.257 84.8 156.225 84.8 148.16V56",stroke:"#444CE7",strokeWidth:"20",strokeLinecap:"round",strokeLinejoin:"round"})]})}),displayName:"LogoIcon"});t.Z=i},8201:function(e,t,r){"use strict";var n=r(894),o=r(5893),i=(0,n.IU)({viewBox:"0 0 24 24",path:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("path",{d:"M21.7445 15.5196C21.4133 15.5196 21.0924 15.592 20.8089 15.7208C20.6846 15.6452 20.6215 15.5719 20.434 15.5005V7.14508L11.9766 2.22321L4.87387 6.41581C4.75331 6.34522 4.632 6.27153 4.5076 6.19616C4.49738 4.96168 3.49109 3.96045 2.25427 3.96045C1.01107 3.96045 0 4.9719 0 6.2151C0 7.45829 1.01164 8.46974 2.25483 8.46974C2.58604 8.46974 2.91397 8.39737 3.19747 8.26856C3.31494 8.33999 3.46559 8.40937 3.55934 8.47705V16.908L12.0047 21.7964L19.1763 17.6015C19.2817 17.6635 19.3853 17.7276 19.4936 17.7933C19.5039 19.0278 20.5094 20.029 21.7462 20.029C22.9894 20.029 24 19.0174 24 17.7742C24 16.5311 22.9877 15.5196 21.7445 15.5196Z",fill:"#B8C6C9"}),(0,o.jsx)("path",{d:"M11.9884 20.3971L19.221 16.1651V7.85429L11.988 3.64313L4.75928 7.91326V16.2142L11.9884 20.3971Z",fill:"#759BC5"}),(0,o.jsx)("path",{d:"M22.7748 17.7928C22.7748 18.3598 22.3157 18.8194 21.7495 18.8194C21.1831 18.8194 20.7241 18.3598 20.7241 17.7928C20.7241 17.2259 21.1831 16.7662 21.7495 16.7662C22.3157 16.7662 22.7748 17.2259 22.7748 17.7928Z",fill:"#759BC5"}),(0,o.jsx)("path",{d:"M1.22559 6.21409C1.22559 5.64717 1.68461 5.1875 2.25093 5.1875C2.81716 5.1875 3.27628 5.64717 3.27628 6.21409C3.27628 6.78101 2.81716 7.24068 2.25093 7.24068C1.68461 7.24068 1.22559 6.78101 1.22559 6.21409Z",fill:"#759BC5"}),(0,o.jsx)("path",{d:"M21.7588 18.3984C21.4195 18.3984 21.1434 18.1223 21.1434 17.7829C21.1434 17.4435 21.4195 17.1675 21.7588 17.1675C22.0982 17.1675 22.3742 17.4435 22.3742 17.7829C22.3742 18.1223 22.0982 18.3984 21.7588 18.3984ZM13.4001 19.0879C14.07 18.123 14.8638 16.7402 15.3522 15.0792C16.3897 15.2921 17.358 15.6371 18.4084
116.1612L13.4001 19.0879ZM8.34501 9.51943C8.18316 10.1947 8.07225 10.9139 8.0472 11.6705C7.10424 11.6708 6.18548 11.6708 5.15338 11.6708V8.35044C6.18548 8.90684 7.27191 9.28196 8.34501 9.51943ZM2.25299 6.82941C1.91362 6.82941 1.63749 6.55337 1.63749 6.214C1.63749 5.87462 1.91362 5.59858 2.25299 5.59858C2.59237 5.59858 2.86841 5.87462 2.86841 6.214C2.86841 6.55337 2.59237 6.82941 2.25299 6.82941ZM10.4491 5.0329C9.77615 5.97267 9.00593 7.29066 8.52487 8.88929C7.55498 8.67827 6.64017 8.34847 5.65526 7.86132L10.4491 5.0329ZM12.2665 14.1342C12.2671 13.8819 12.2678 13.6257 12.2686 13.3665C12.8004 13.2599 13.2225 12.8497 13.3489 12.3253C13.9988 12.3259 14.6197 12.3263 15.2288 12.3264C15.2041 13.0276 15.1025 13.7023 14.9485 14.3417C14.1247 14.2077 13.2502 14.1445 12.2665 14.1342ZM12.2654 14.7906C13.1903 14.8 14.0083 14.8562 14.776 14.9757C14.1266 17.1155 12.9452 18.7886 12.279 19.6158C12.2676 18.0854 12.2631 16.5108 12.2654 14.7906ZM8.52647 15.1706C9.00837 16.7756 9.77953 18.0882 10.4531 19.0205L5.53272 16.1768C6.135 15.8939 7.16776 15.4745 8.52647 15.1706ZM10.6393 12.3256C10.7637 12.8415 11.1745 13.2463 11.6943 13.3607C11.6934 13.6224 11.6927 13.8812 11.6921 14.1359C10.6787 14.153 9.75007 14.2598 8.92223 14.4144C8.76282 13.7595 8.65858 13.0613 8.63521 12.3267C9.28816 12.3266 9.94926 12.3262 10.6393 12.3256ZM11.6916 9.86228C11.6923 10.1212 11.693 10.3795 11.6939 10.6375C11.1754 10.7517 10.7655 11.1549 10.6401 11.6691C9.95011 11.6697 9.2891 11.67 8.63625 11.6703C8.6613 10.9529 8.76291 10.271 8.91735 9.63053C9.76902 9.77887 10.6715 9.84961 11.6916 9.86228ZM11.6852 4.82441C11.686 6.264 11.6869 7.73859 11.69 9.20577C10.7297 9.19395 9.88434 9.13127 9.09 8.99813C9.75767 6.81336 10.9907 5.18471 11.6849 4.39093L11.6852 4.82441ZM15.3384 8.86977C14.8515 7.24337 14.0716 5.89151 13.4101 4.94339L18.4515 7.87511C17.829 8.15781 16.754 8.57694 15.3384 8.86977ZM12.2596 4.82404L12.2593 4.38352C12.9169 5.18743 14.1054 6.84142 14.764 8.97777C14.0083 9.10594 13.1705 9.19263 12.2645 9.2053C12.2614 7.73822 12.2604 6.26363 12.2596 4.82404ZM11.994 12.7375C11.5868 12.7375 11.2555 12.4062 11.2555 11.999C11.2555 11.5918 11.5868 11.2605 11.994 11.2605C12.4013 11.2605 12.7326 11.5918 12.7326 11.999C12.7326 12.4062 12.4013 12.7375 11.994 12.7375ZM11.705 19.6606C11.0195 18.8783 9.7754 17.2453 9.09863 15.0534C9.87786 14.9091 10.748 14.8094 11.691 14.7924C11.6887 16.5285 11.6933 18.1165 11.705 19.6606ZM13.3479 11.6688C13.2203 11.1462 12.7989 10.7377 12.2682 10.6315C12.2675 10.3754 12.2667 10.1189 12.266 9.86181C13.2409 9.84895 14.1371 9.75578 14.9407 9.61776C15.0995 10.267 15.2042 10.9541 15.229 11.67C14.6196 11.6698 13.9981 11.6694 13.3479 11.6688ZM18.7583 11.6679C17.8201 11.6692 16.7701 11.67 15.7735 11.67C15.7494 10.9137 15.6276 10.1909 15.4649 9.50968C16.995 9.19226 18.1954 8.73222 18.7583 8.43263V11.6679ZM5.15338 12.3272C6.18548 12.3272 7.10827 12.3272 8.05077 12.3269C8.07357 13.1048 8.17556 13.8413 8.33975 14.5306C6.87539 14.8582 5.81017 15.316 5.15338 15.6171V12.3272ZM15.4889 14.4474C15.6463 13.777 15.7342 13.0673 15.7582 12.3265C16.7546 12.3264 17.8201 12.3257 18.7583 12.3243V15.6362C17.7262 15.0617 16.607 14.6815 15.4889 14.4474ZM21.7588 16.347C21.3732 16.347 21.0048 16.5006 20.7466 16.7488C20.3567 16.5042 19.9781 16.281 19.6028 16.0765V7.61681L11.9738 3.16968L4.79384 7.41132C4.41064 7.19684 4.01779 6.95973 3.59895 6.69702C3.65327 6.54577 3.68667 6.38363 3.68667 6.214C3.68667 5.42219 3.04358 4.77806 2.25177 4.77806C1.45997 4.77806 0.816406 5.42219 0.816406 6.214C0.816406 7.0058 1.46091 7.65002 2.25271 7.65002C2.63834 7.65002 2.96674 7.49643 3.22504 7.24816C3.60777 7.48817 4.02745 7.70754 4.30894 7.90898V16.4424L11.9736 20.8594L19.249 16.614C19.6164 16.8209 20.0027 17.0489 20.4028 17.2999C20.3485 17.4511 20.3201 17.6132 20.3201 17.7829C20.3201 18.5747 20.9656 19.2189 21.7574 19.2189C22.5492 19.2189 23.1941 18.5747 23.1941 17.7829C23.1941 16.9911 22.5506 16.347 21.7588 16.347Z",fill:"#343532"})]}),displayName:"OpenGraphIcon"});t.Z=i},1662:function(e,t,r){"use strict";var n=r(894),o=r(5893),i=(0,n.IU)({viewBox:"0 0 24 24",path:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("path",{d:"M7.54752 21.7507C16.6042 21.7507 21.5578 14.2473 21.5578 7.74
1046C21.5578 7.52734 21.5578 7.31518 21.5434 7.10398C22.507 6.40693 23.3389 5.54386 24 4.55518C23.1014 4.95358 22.148 5.21473 21.1718 5.3299C22.1998 4.71459 22.9692 3.74668 23.3366 2.60638C22.3701 3.17999 21.3126 3.58421 20.2099 3.80158C19.4675 3.01216 18.4856 2.48942 17.4162 2.31426C16.3468 2.13911 15.2494 2.32129 14.294 2.83263C13.3385 3.34397 12.5782 4.15595 12.1307 5.14293C11.6833 6.1299 11.5735 7.23684 11.8186 8.29246C9.8609 8.19426 7.94576 7.68549 6.19745 6.79918C4.44915 5.91288 2.90676 4.66884 1.6704 3.14782C1.04073 4.23181 0.847872 5.51505 1.1311 6.73624C1.41433 7.95744 2.15234 9.02477 3.19488 9.72094C2.41123 9.69798 1.64465 9.48657 0.96 9.10462V9.16702C0.960311 10.3039 1.35385 11.4056 2.07387 12.2854C2.79389 13.1652 3.79606 13.7688 4.9104 13.9939C4.18548 14.1916 3.42487 14.2205 2.68704 14.0784C3.00181 15.0567 3.61443 15.9122 4.43924 16.5253C5.26405 17.1384 6.25983 17.4785 7.28736 17.4979C6.26644 18.3004 5.09731 18.8937 3.84687 19.2439C2.59643 19.5941 1.28921 19.6943 0 19.5389C2.25183 20.9839 4.87192 21.7504 7.54752 21.7469",fill:"#1DA1F2"})}),displayName:"TwitterIcon"});t.Z=i},7069:function(e,t,r){"use strict";var n=r(894),o=r(5893),i=(0,n.IU)({viewBox:"0 0 24 24",path:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("g",{clipPath:"url(#clip0_1027_1533)",children:[(0,o.jsx)("path",{d:"M23.5221 6.18547C23.3864 5.67489 23.119 5.20889 22.7466 4.83413C22.3743 4.45936 21.91 4.18897 21.4003 4.05002C19.5239 3.54547 12.0239 3.54547 12.0239 3.54547C12.0239 3.54547 4.52393 3.54547 2.64756 4.05002C2.13786 4.18897 1.67358 4.45936 1.30121 4.83413C0.928842 5.20889 0.661431 5.67489 0.525744 6.18547C0.0239258 8.07002 0.0239258 12 0.0239258 12C0.0239258 12 0.0239258 15.93 0.525744 17.8146C0.661431 18.3251 0.928842 18.7911 1.30121 19.1659C1.67358 19.5407 2.13786 19.8111 2.64756 19.95C4.52393 20.4546 12.0239 20.4546 12.0239 20.4546C12.0239 20.4546 19.5239 20.4546 21.4003 19.95C21.91 19.8111 22.3743 19.5407 22.7466 19.1659C23.119 18.7911 23.3864 18.3251 23.5221 17.8146C24.0239 15.93 24.0239 12 24.0239 12C24.0239 12 24.0239 8.07002 23.5221 6.18547Z",fill:"#FF0302"}),(0,o.jsx)("path",{d:"M9.56934 15.5687V8.4314L15.8421 12L9.56934 15.5687Z",fill:"#FEFEFE"})]}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_1027_1533",children:(0,o.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),displayName:"YouTubeIcon"});t.Z=i},8106:function(e,t,r){"use strict";r.d(t,{f:function(){return n}});var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=e.replace("#","");3===r.length&&(r="".concat(r[0]).concat(r[0]).concat(r[1]).concat(r[1]).concat(r[2]).concat(r[2]));var n=parseInt(r.substring(0,2),16),o=parseInt(r.substring(2,4),16),i=parseInt(r.substring(4,6),16);return t>1&&t<=100&&(t/=100),"rgba(".concat(n,",").concat(o,",").concat(i,",").concat(t,")")}},4618:function(e,t,r){"use strict";r.d(t,{d:function(){return a}});var n=r(29),o=r(7794),i=r.n(o),a=function(){var e=(0,n.Z)(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=fetch("api/users/me/watermarks/logos",{method:"GET",credentials:"same-origin"}),e.next=3,t;case 3:return e.next=5,e.sent.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},4042:function(e,t,r){"use strict";r.d(t,{Cq:function(){return y},fG:function(){return l}});var n=r(894),o=r(5893),i=(0,n.IU)({viewBox:"0 0 24 24",path:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("path",{d:"M16.8503 0H7.14973C3.20735 0 0 3.20735 0 7.14973V16.8503C0 20.7926 3.20735 24 7.14973 24H16.8503C20.7926 24 24 20.7926 24 16.8503V7.14973C24 3.20735 20.7926 0 16.8503 0ZM21.5856 16.8503C21.5856 19.4655 19.4655 21.5856 16.8503 21.5856H7.14973C4.5345 21.5856 2.4144 19.4655 2.4144 16.8503V7.14973C2.4144 4.53446 4.5345 2.4144 7.14973 2.4144H16.8503C19.4655 2.4144 21.5856 4.53446 21.5856 7.14973V16.8503Z",fill:"url(#paint0_linear_4114_431075)"}),(0,o.jsx)("path",{d:"M12.0002 5.79272C8.57754 5.79272 5.79297 8.57729 5.79297 11.9999C5.79297 15.4226 8.57754 18.2072 12.0002 18.2072C15.4229 18.2072 18.2075 15.4226 18.2075 11.9999C18.2075 8.57725 15.4229 5.79272 12.0002 5.79272ZM12.0002 15.7928C9.90547 15.7928 8.20737 14.0947 8.20737 12C8.20737 9.90523 9.90551 8.20712 12.0002 8.20712C14.095 8.20712 15.7931 9.90523 15.7931 12C15.793
11 14.0947 14.0949 15.7928 12.0002 15.7928Z",fill:"url(#paint1_linear_4114_431075)"}),(0,o.jsx)("path",{d:"M18.2193 7.3268C19.0407 7.3268 19.7066 6.66089 19.7066 5.83945C19.7066 5.01802 19.0407 4.35211 18.2193 4.35211C17.3978 4.35211 16.7319 5.01802 16.7319 5.83945C16.7319 6.66089 17.3978 7.3268 18.2193 7.3268Z",fill:"url(#paint2_linear_4114_431075)"}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"paint0_linear_4114_431075",x1:"12",y1:"23.9301",x2:"12",y2:"0.186403",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#E09B3D"}),(0,o.jsx)("stop",{offset:"0.3",stopColor:"#C74C4D"}),(0,o.jsx)("stop",{offset:"0.6",stopColor:"#C21975"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#7024C4"})]}),(0,o.jsxs)("linearGradient",{id:"paint1_linear_4114_431075",x1:"12.0002",y1:"23.9301",x2:"12.0002",y2:"0.186383",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#E09B3D"}),(0,o.jsx)("stop",{offset:"0.3",stopColor:"#C74C4D"}),(0,o.jsx)("stop",{offset:"0.6",stopColor:"#C21975"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#7024C4"})]}),(0,o.jsxs)("linearGradient",{id:"paint2_linear_4114_431075",x1:"18.2193",y1:"23.9301",x2:"18.2193",y2:"0.186423",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#E09B3D"}),(0,o.jsx)("stop",{offset:"0.3",stopColor:"#C74C4D"}),(0,o.jsx)("stop",{offset:"0.6",stopColor:"#C21975"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#7024C4"})]})]})]}),displayName:"IntagramIcon"}),a=(0,n.IU)({viewBox:"0 0 24 24",path:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("g",{clipPath:"url(#clip0_1027_1526)",children:(0,o.jsx)("path",{d:"M22.2283 0H1.77167C1.30179 0 0.851161 0.186657 0.518909 0.518909C0.186657 0.851161 0 1.30179 0 1.77167V22.2283C0 22.6982 0.186657 23.1488 0.518909 23.4811C0.851161 23.8133 1.30179 24 1.77167 24H22.2283C22.6982 24 23.1488 23.8133 23.4811 23.4811C23.8133 23.1488 24 22.6982 24 22.2283V1.77167C24 1.30179 23.8133 0.851161 23.4811 0.518909C23.1488 0.186657 22.6982 0 22.2283 0ZM7.15333 20.445H3.545V8.98333H7.15333V20.445ZM5.34667 7.395C4.93736 7.3927 4.53792 7.2692 4.19873 7.04009C3.85955 6.81098 3.59584 6.48653 3.44088 6.10769C3.28591 5.72885 3.24665 5.31259 3.32803 4.91145C3.40941 4.51032 3.6078 4.14228 3.89816 3.85378C4.18851 3.56529 4.55782 3.36927 4.95947 3.29046C5.36112 3.21165 5.77711 3.25359 6.15495 3.41099C6.53279 3.56838 6.85554 3.83417 7.08247 4.17481C7.30939 4.51546 7.43032 4.91569 7.43 5.325C7.43386 5.59903 7.38251 5.87104 7.27901 6.1248C7.17551 6.37857 7.02198 6.6089 6.82757 6.80207C6.63316 6.99523 6.40185 7.14728 6.14742 7.24915C5.893 7.35102 5.62067 7.40062 5.34667 7.395ZM20.4533 20.455H16.8467V14.1933C16.8467 12.3467 16.0617 11.7767 15.0483 11.7767C13.9783 11.7767 12.9283 12.5833 12.9283 14.24V20.455H9.32V8.99167H12.79V10.58H12.8367C13.185 9.875 14.405 8.67 16.2667 8.67C18.28 8.67 20.455 9.865 20.455 13.365L20.4533 20.455Z",fill:"#0A66C2"})}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_1027_1526",children:(0,o.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),displayName:"LinkedinIcon"}),s=r(8201),c=r(1662),u=r(7069),l={icon:c.Z,displayName:"Twitter - Tweet",width:1600,height:900},d={icon:c.Z,displayName:"Twitter - Banner",width:1500,height:500},f={icon:a,displayName:"LinkedIn - Post",width:1200,height:1200},p={icon:a,displayName:"LinkedIn - Banner",width:1584,height:396},h={icon:i,displayName:"Instagram - Photo",width:1080,height:1080},m={icon:i,displayName:"Instagram - Story",width:1080,height:1920},v={icon:s.Z,displayName:"OpenGraph",width:1200,height:630},g={icon:u.Z,displayName:"YouTube - Thumbnail",width:1280,height:720},y=[l,d,f,p,h,m,g,v]},8405:function(e,t,r){"use strict";r.d(t,{ZB:function(){return Fe},rE:function(){return Ie},N0:function(){return Me},fT:function(){return Ne},OQ:function(){return De}});var n=r(29),o=r(7794),i=r.n(o);const a={"X-Client-Info":"supabase-js/1.35.6"};const s={"X-Client-Info":"gotrue-js/1.22.22"}
1,c="Request Failed",u=10,l=2,d="supabase.auth.token",f={name:"sb",lifetime:28800,domain:"",path:"/",sameSite:"lax"};var p=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const h=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e);function m(e,t,r,n,o){return p(this,void 0,void 0,(function*(){return new Promise(((i,a)=>{e(r,((e,t,r)=>{const n={method:e,headers:(null===t||void 0===t?void 0:t.headers)||{}};return"GET"===e||(n.headers=Object.assign({"Content-Type":"text/plain;charset=UTF-8"},null===t||void 0===t?void 0:t.headers),n.body=JSON.stringify(r)),n})(t,n,o)).then((e=>{if(!e.ok)throw e;return(null===n||void 0===n?void 0:n.noResolveJson)?i:e.json()})).then((e=>i(e))).catch((e=>((e,t)=>(null===e||void 0===e?void 0:e.status)?"function"!==typeof e.json?t(e):void e.json().then((r=>t({message:h(r),status:(null===e||void 0===e?void 0:e.status)||500}))):t({message:c}))(e,a)))}))}))}function v(e,t,r){return p(this,void 0,void 0,(function*(){return m(e,"GET",t,r)}))}function g(e,t,r,n){return p(this,void 0,void 0,(function*(){return m(e,"POST",t,n,r)}))}function y(e,t,r,n){return p(this,void 0,void 0,(function*(){return m(e,"PUT",t,n,r)}))}function b(e,t){var r,n,o;return function(e,t,r){const n=r||{},o=encodeURIComponent,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;if("function"!==typeof o)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");const a=o(t);if(a&&!i.test(a))throw new TypeError("argument val is invalid");let s=e+"="+a;if(null!=n.maxAge){const e=n.maxAge-0;if(isNaN(e)||!isFinite(e))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(e)}if(n.domain){if(!i.test(n.domain))throw new TypeError("option domain is invalid");s+="; Domain="+n.domain}if(n.path){if(!i.test(n.path))throw new TypeError("option path is invalid");s+="; Path="+n.path}if(n.expires){if("function"!==typeof n.expires.toUTCString)throw new TypeError("option expires is invali
1d");s+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(s+="; HttpOnly"),n.secure&&(s+="; Secure"),n.sameSite)switch("string"===typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s}(e.name,e.value,{maxAge:e.maxAge,expires:new Date(Date.now()+1e3*e.maxAge),httpOnly:!0,secure:t,path:null!==(r=e.path)&&void 0!==r?r:"/",domain:null!==(n=e.domain)&&void 0!==n?n:"",sameSite:null!==(o=e.sameSite)&&void 0!==o?o:"lax"})}function x(e,t,r){const n=r.map((t=>b(t,function(e){if(!e||!e.headers||!e.headers.host)throw new Error('The "host" request header is not available');const t=e.headers.host.indexOf(":")>-1&&e.headers.host.split(":")[0]||e.headers.host;return!(["localhost","127.0.0.1"].indexOf(t)>-1||t.endsWith(".local"))}(e)))),o=t.getHeader("Set-Cookie");return o&&(o instanceof Array?Array.prototype.push.apply(n,o):"string"===typeof o&&n.push(o)),n}function w(e,t,r){t.setHeader("Set-Cookie",x(e,t,r))}var C=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};function k(e){return Math.round(Date.now()/1e3)+e}const S=()=>"undefined"!==typeof window;function O(e,t){var r;t||(t=(null===(r=null===window||void 0===window?void 0:window.location)||void 0===r?void 0:r.href)||""),e=e.replace(/[\[\]]/g,"\\$&");const n=new RegExp("[?&#]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}const j=e=>{let t;return t=e||("undefined"===typeof fetch?(...e)=>C(void 0,void 0,void 0,(function*(){return yield(yield r.e(98).then(r.t.bind(r,4098,23))).fetch(...e)})):fetch),(...e)=>t(...e)};var E=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};class P{constructor({url:e="",headers:t={},cookieOptions:r,fetch:n}){this.url=e,this.headers=t,this.cookieOptions=Object.assign(Object.assign({},f),r),this.fetch=j(n)}_createRequestHeaders(e){const t=Object.assign({},this.headers);return t.Authorization=`Bearer ${e}`,t}cookieName(){var e;return null!==(e=this.cookieOptions.name)&&void 0!==e?e:""}getUrlForProvider(e,t){const r=[`provider=${encodeURIComponent(e)}`];if((null===t||void 0===t?void 0:t.redirectTo)&&r.push(`redirect_to=${encodeURIComponent(t.redirectTo)}`),(null===t||void 0===t?void 0:t.scopes)&&r.push(`scopes=${encodeURIComponent(t.scopes)}`),null===t||void 0===t?void 0:t.queryParams){const e=new URLSearchParams(t.queryParams);r.push(`${e}`)}return`${this.url}/authorize?${r.join("&")}`}signUpWithEmail(e,t,r={}){return E(this,void 0,void 0,(function*(){try{const n=Object.assign({},this.headers);let o="";r.redirectTo&&(o="?redirect_to="+encodeURIComponent(r.redirectTo));const i=yield g(this.fetch,`${this.url}/signup${o}`,{email:e,password:t,data:r.data,gotrue_meta_security:{captcha_token:r.captchaToken}},{headers:n}),a=Object.assign({},i);return a.expires_in&&(a.expires_at=k(i.expires_in)),{data:a,error:null}}catch(n){return{data:null,error:n}}}))}signInWithEmail(e,t,r={}){return E(this,void 0,void 0,(function*(){try{const n=Object.assign({},this.headers);let o="?grant_type=password";r.redirectTo&&(o+="&redirect_to="+encodeURIComponent(r.redirectTo));const i=yield g(this.fetch,`${this.url}/token${o}`,{email:e,password:t,gotrue_meta_security:{captcha_token:r.captchaToken}},{headers:n}),a=Object.assign({},i);return a.expires_in&&(a.expires_at=k(i.expires_in)),{data:a,error:null}}catch(n){return{data:null,error:n}}}))}signUpWithPhone(e,t,r={}){return E(this,void 0,void 0,(function*(){try{const n=Object.assign({},this.headers),o=yield g(this.fetch,`${this.url}/signup`,{phone:e,password:t,data:r.data,gotrue_meta_security:{captcha_token:r.captchaToken}},{headers:n}),i=Object.assign({},o);return i.expires_in&&(i.expires_at=k(o.expires_in)),{data:i,error:null}}catch(n){return{data:null,error:n}}}))}signInWithPhone(e,t,r={}){return E(this,void 0,void 0,(function*(){try{const n=Object.assign({},this.headers),o="?grant_type=password",i=yield g(this.fetch,`${this.url}/token${o}`,{phone:e,password:t,gotrue_meta_security:{captcha_token:r.captchaToken}},{headers:n}),a=Object.assign({},i);return a.expires_in&&(a.expires_at=k(i.expires_in)),{data:a,error:null}}catch(n){return{data:null,error:n}}}))}signInWithOpenIDConnect({id_token:e,nonce:t,client_id:r,issuer:n,provider:o}){return E(this,void 0,void 0,(function*(){try{const i=Object.assign({},this.headers),a="?grant_type=id_token",s=yield g(this.fetch,`${this.url}/token${a}`,{id_token:e,nonce:t,client_id:r,issuer:n,provider:o},{headers:i}),c=Object.assign({},s);return c.expires_in&&(c.expires_at=k(s.expires_in)),{data:c,error:null}}catch(i){return{data:null,error:i}}}))}sendMagicLinkEmail(e,t={}){var r;return E(this,void 0,void 0,(function*(){try{const n=Object.assign({},this.headers);let o="";
1t.redirectTo&&(o+="?redirect_to="+encodeURIComponent(t.redirectTo));const i=null===(r=t.shouldCreateUser)||void 0===r||r;return{data:yield g(this.fetch,`${this.url}/otp${o}`,{email:e,create_user:i,gotrue_meta_security:{captcha_token:t.captchaToken}},{headers:n}),error:null}}catch(n){return{data:null,error:n}}}))}sendMobileOTP(e,t={}){var r;return E(this,void 0,void 0,(function*(){try{const n=null===(r=t.shouldCreateUser)||void 0===r||r,o=Object.assign({},this.headers);return{data:yield g(this.fetch,`${this.url}/otp`,{phone:e,create_user:n,gotrue_meta_security:{captcha_token:t.captchaToken}},{headers:o}),error:null}}catch(n){return{data:null,error:n}}}))}signOut(e){return E(this,void 0,void 0,(function*(){try{return yield g(this.fetch,`${this.url}/logout`,{},{headers:this._createRequestHeaders(e),noResolveJson:!0}),{error:null}}catch(t){return{error:t}}}))}verifyMobileOTP(e,t,r={}){return E(this,void 0,void 0,(function*(){try{const n=Object.assign({},this.headers),o=yield g(this.fetch,`${this.url}/verify`,{phone:e,token:t,type:"sms",redirect_to:r.redirectTo},{headers:n}),i=Object.assign({},o);return i.expires_in&&(i.expires_at=k(o.expires_in)),{data:i,error:null}}catch(n){return{data:null,error:n}}}))}verifyOTP({email:e,phone:t,token:r,type:n="sms"},o={}){return E(this,void 0,void 0,(function*(){try{const i=Object.assign({},this.headers),a=yield g(this.fetch,`${this.url}/verify`,{email:e,phone:t,token:r,type:n,redirect_to:o.redirectTo},{headers:i}),s=Object.assign({},a);return s.expires_in&&(s.expires_at=k(a.expires_in)),{data:s,error:null}}catch(i){return{data:null,error:i}}}))}inviteUserByEmail(e,t={}){return E(this,void 0,void 0,(function*(){try{const r=Object.assign({},this.headers);let n="";t.redirectTo&&(n+="?redirect_to="+encodeURIComponent(t.redirectTo));return{data:yield g(this.fetch,`${this.url}/invite${n}`,{email:e,data:t.data},{headers:r}),error:null}}catch(r){return{data:null,error:r}}}))}resetPasswordForEmail(e,t={}){return E(this,void 0,void 0,(function*(){try{const r=Object.assign({},this.headers);let n="";t.redirectTo&&(n+="?redirect_to="+encodeURIComponent(t.redirectTo));return{data:yield g(this.fetch,`${this.url}/recover${n}`,{email:e,gotrue_meta_security:{captcha_token:t.captchaToken}},{headers:r}),error:null}}catch(r){return{data:null,error:r}}}))}refreshAccessToken(e){return E(this,void 0,void 0,(function*(){try{const t=yield g(this.fetch,`${this.url}/token?grant_type=refresh_token`,{refresh_token:e},{headers:this.headers}),r=Object.assign({},t);return r.expires_in&&(r.expires_at=k(t.expires_in)),{data:r,error:null}}catch(t){return{data:null,error:t}}}))}setAuthCookie(e,t){"POST"!==e.method&&(t.setHeader("Allow","POST"),t.status(405).end("Method Not Allowed"));const{event:r,session:n}=e.body;if(!r)throw new Error("Auth event missing!");if("SIGNED_IN"===r){if(!n)throw new Error("Auth session missing!");w(e,t,[{key:"access-token",value:n.access_token},{key:"refresh-token",value:n.refresh_token}].map((e=>{var t;return{name:`${this.cookieName()}-${e.key}`,value:e.value,domain:this.cookieOptions.domain,maxAge:null!==(t=this.cookieOptions.lifetime)&&void 0!==t?t:0,path:this.cookieOptions.path,sameSite:this.cookieOptions.sameSite}})))}"SIGNED_OUT"===r&&w(e,t,["access-token","refresh-token"].map((e=>({name:`${this.cookieName()}-${e}`,value:"",maxAge:-1})))),t.status(200).json({})}deleteAuthCookie(e,t,{redirectTo:r="/"}){return w(e,t,["access-token","refresh-token"].map((e=>({name:`${this.cookieName()}-${e}`,value:"",maxAge:-1})))),t.redirect(307,r)}getAuthCookieString(e,t){"POST"!==e.method&&(t.setHeader("Allow","POST"),t.status(405).end("Method Not Allowed"));const{event:r,session:n}=e.body;if(!r)throw new Error("Auth event missing!");if("SIGNED_IN"===r){if(!n)throw new Error("Auth session missing!");return x(e,t,[{key:"access-token",value:n.access_token},{key:"refresh-token",value:n.refresh_token}].map((e=>{var t;return{name:`${this.cookieName()}-${e.key}`,value:e.value,domain:this.cookieOptions.domain,maxAge:null!==(t=this.cookieOptions.lifetime)&&void 0!==t?t:0,path:this.cookieOptions.path,sameSite:this.cookieOptions.sameSite}})))}return"SIGNED_OUT"===r?x(e,t,["access-token","refresh-token"].map((e=>({name:`${this.cookieName()}-${e}`,value:"",maxAge:-1})))):t.getHeader("Set-Cookie")}generateLink(e,t,r={}){return E(this,void 0,void 0,(function*(){try{return{data:yield g(this.fetch,`${this.url}/admin/generate_link`,{type:e,email:t,password:r.password,data:r.data,redirect_to:r.redirectTo},{headers:this.headers}),error:null}}catch(n){return{data:null,error:n}}}))}createUser(e){return E(this,void 0,void 0,(function*(){try{const t=yield g(this.fetch,`${this.url}/admin/users`,e,{headers:this.headers});return{user:t,data:t,error:null}}catch(t){return{user:null,data:null,error:t}}}))}listUsers(){return E(this,void 0,void 0,(function*(){try{return{data:(yield v(this.fetch,`${this.url}/admin/users`,{headers:this.headers})).users,error:null}}catch(e){return{data:null,error:e}}}))}getUserById(e){return E(this,void 0,void 0,(function*(){try{return{data:yield v(this.fetch,`${this.url}/admin/users/${e}`,{headers:this.headers}),error:null}}catch(t){return{data:null,error:t}}}))}getUserByCookie(e,t){return E(this,void 0,void 0,(function*(){try{if(!e.cookies)throw new Error("Not able to parse cookies! When using Express make sure the cookie-parser middleware is in use!");const r=e.cookies[`${this.cookieName()}-access-token`],n=e.cookies[`${this.cookieName()}-refresh-token`];if(!r)throw new Error("No cookie found!");const{user:o,error:i}=yield this.getUser(r);if(i){if(!n)throw new Error("No refresh_token cookie found!");if(!t)throw new Error("You need to pass the res object to automatically refresh the session!");const{data:r,error:o}=yield this.refreshAccessToken(n);if(o)throw o;if(r)return w(e,t,[{key:"access-token",value:r.access_token},{key:"refresh-token",value:r.refresh_token}].map((e=>{var t;return{name:`${this.cookieName()}-${e.key}`,value:e.value,domain:this.cookieOptions.domain,maxAge:null!==(t=this.cookieOptions.lifetime)&&void 0!==t?t:0,path:this.cookieOptions.path,sameSite:this.cookieOptions.sameSite}}))),{token:r.access_token,user:r.user,data:r.user,error:null}}return{token:r,user:o,data:o,error:null}}catch(r){return{token:null,user:null,data:null,error:r}}}))}updateUserById(e,t){return E(this,void 0,void 0,(function*(){try{const r=yield y(this.fetch,`${this.url}/admin/users/${e}`,t,{headers:this.headers});return{user:r,data:r,error:null}}catch(r){return{user:null,data:null,error:r}}}))}deleteUser(e){return E(this,void 0,void 0,(function*(){try{const t=yield function(e,t,r,n){return p(this,void 0,void 0,(function*(){return m(e,"DELETE",t,n,r)}))}(this.fetch,`${this.url}/admin/users/${e}`,{},{headers:this.headers});return{user:t,data:t,error:null}}catch(t){return{user:null,data:null,error:t}}}))}getUser(e){return E(this,void 0,void 0,(function*(){try{const t=yield v(this.fetch,`${this.url}/user`,{headers:this._createRequestHeaders(e)});return{user:t,data:t,error:null}}catch(t){return{user:null,data:null,error:t}}}))}updateUser(e,t){return E(this,void 0,void 0,(function*(){try{const r=yield y(this.fetch,`${this.url}/user`,t,{headers:this._createRequestHeaders(e)});return{user:r,data:r,error:null}}catch(r){return{user:null,data:null,error:r}}}))}}var _=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};!function(){if("object"!==typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch(e){"undefined"!==typeof self&&(self.globalThis=self)}}();const T={url:"http://localhost:9999",autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,multiTab:!0,headers:s};class A extends class{constructor(e){this.stateChangeEmitters=new Map,this.networkRetries=0;const t=Object.assign(Object.assign({},T),e);this.currentUser=null,this.currentSession=null,this.autoRefreshToken=t.autoRefreshToken,this.persistSession=t.persistSession,this.multiTab=t.multiTab,this.localStorage=t.localStorage||globalThis.localStorage,this.api=new P({url:t.url,headers:t.headers,cookieOptions:t.cookieOptions,fetch:t.fetch}),this._recoverSession(),this._recoverAndRefresh(),this._listenForMultiTabEvents(),this._handleVisibilityChange(),t.detectSessionInUrl&&S()&&O("access_token")&&this.get
1SessionFromUrl({storeSession:!0}).then((({error:e})=>{if(e)throw new Error("Error getting session from URL.")}))}signUp({email:e,password:t,phone:r},n={}){return _(this,void 0,void 0,(function*(){try{this._removeSession();const{data:o,error:i}=r&&t?yield this.api.signUpWithPhone(r,t,{data:n.data,captchaToken:n.captchaToken}):yield this.api.signUpWithEmail(e,t,{redirectTo:n.redirectTo,data:n.data,captchaToken:n.captchaToken});if(i)throw i;if(!o)throw"An error occurred on sign up.";let a=null,s=null;return o.access_token&&(a=o,s=a.user,this._saveSession(a),this._notifyAllSubscribers("SIGNED_IN")),o.id&&(s=o),{user:s,session:a,error:null}}catch(o){return{user:null,session:null,error:o}}}))}signIn({email:e,phone:t,password:r,refreshToken:n,provider:o,oidc:i},a={}){return _(this,void 0,void 0,(function*(){try{if(this._removeSession(),e&&!r){const{error:t}=yield this.api.sendMagicLinkEmail(e,{redirectTo:a.redirectTo,shouldCreateUser:a.shouldCreateUser,captchaToken:a.captchaToken});return{user:null,session:null,error:t}}if(e&&r)return this._handleEmailSignIn(e,r,{redirectTo:a.redirectTo,captchaToken:a.captchaToken});if(t&&!r){const{error:e}=yield this.api.sendMobileOTP(t,{shouldCreateUser:a.shouldCreateUser,captchaToken:a.captchaToken});return{user:null,session:null,error:e}}if(t&&r)return this._handlePhoneSignIn(t,r);if(n){const{error:e}=yield this._callRefreshToken(n);if(e)throw e;return{user:this.currentUser,session:this.currentSession,error:null}}if(o)return this._handleProviderSignIn(o,{redirectTo:a.redirectTo,scopes:a.scopes,queryParams:a.queryParams});if(i)return this._handleOpenIDConnectSignIn(i);throw new Error("You must provide either an email, phone number, a third-party provider or OpenID Connect.")}catch(s){return{user:null,session:null,error:s}}}))}verifyOTP(e,t={}){return _(this,void 0,void 0,(function*(){try{this._removeSession();const{data:r,error:n}=yield this.api.verifyOTP(e,t);if(n)throw n;if(!r)throw"An error occurred on token verification.";let o=null,i=null;return r.access_token&&(o=r,i=o.user,this._saveSession(o),this._notifyAllSubscribers("SIGNED_IN")),r.id&&(i=r),{user:i,session:o,error:null}}catch(r){return{user:null,session:null,error:r}}}))}user(){return this.currentUser}session(){return this.currentSession}refreshSession(){var e;return _(this,void 0,void 0,(function*(){try{if(!(null===(e=this.currentSession)||void 0===e?void 0:e.access_token))throw new Error("Not logged in.");const{error:t}=yield this._callRefreshToken();if(t)throw t;return{data:this.currentSession,user:this.currentUser,error:null}}catch(t){return{data:null,user:null,error:t}}}))}update(e){var t;return _(this,void 0,void 0,(function*(){try{if(!(null===(t=this.currentSession)||void 0===t?void 0:t.access_token))throw new Error("Not logged in.");const{user:r,error:n}=yield this.api.updateUser(this.currentSession.access_token,e);if(n)throw n;if(!r)throw Error("Invalid user data.");const o=Object.assign(Object.assign({},this.currentSession),{user:r});return this._saveSession(o),this._notifyAllSubscribers("USER_UPDATED"),{data:r,user:r,error:null}}catch(r){return{data:null,user:null,error:r}}}))}setSession(e){return _(this,void 0,void 0,(function*(){try{if(!e)throw new Error("No current session.");const{data:t,error:r}=yield this.api.refreshAccessToken(e);return r?{session:null,error:r}:(this._saveSession(t),this._notifyAllSubscribers("SIGNED_IN"),{session:t,error:null})}catch(t){return{error:t,session:null}}}))}setAuth(e){return this.currentSession=Object.assign(Object.assign({},this.currentSession),{access_token:e,token_type:"bearer",user:this.user()}),this._notifyAllSubscribers("TOKEN_REFRESHED"),this.currentSession}getSessionFromUrl(e){return _(this,void 0,void 0,(function*(){try{if(!S())throw new Error("No browser detected.");const t=O("error_description");if(t)throw new Error(t);const r=O("provider_token"),n=O("access_token");if(!n)throw new Error("No access_token detected.");const o=O("expires_in");if(!o)throw new Error("No expires_in detected.");const i=O("refresh_token");if(!i)throw new Error("No refresh_token detected.");const a=O("token_type");if(!a)throw new Error("No token_type detected.");const s=Math.round(Date.now()/1e3)+parseInt(o),{user:c,error:u}=yield this.api.getUser(n);if(u)throw u;const l={provider_token:r,access_token:n,expires_in:parseInt(o),expires_at:s,refresh_token:i,token_type:a,user:c};if(null===e||void 0===e?void 0:e.storeSession){this._saveSession(l);const e=O("type");this._notifyAllSubscribers("SIGNED_IN"),"recovery"===e&&this._notifyAllSubscribers("PASSWORD_RECOVERY")}return window.location.hash="",{data:l,error:null}}catch(t){return{data:null,error:t}}}))}signOut(){var e;return _(this,void 0,void 0,(function*(){const t=null===(e=this.currentSession)||void 0===e?void 0:e.access_token;if(this._removeSession(),this._notifyAllSubscribers("SIGNED_OUT"),t){const{error:e}=yield this.api.signOut(t);if(e)return{error:e}}return{error:null}}))}onAuthStateChange(e){try{const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})),r={id:t,callback:e,unsubscribe:()=>{this.stateChangeEmitters.delete(t)}};return this.stateChangeEmitters.set(t,r),{data:r,error:null}}catch(t){return{data:null,error:t}}}_handleEmailSignIn(e,t,r={}){var n,o;return _(this,void 0,void 0,(function*(){try{const{data:i,error:a}=yield this.api.signInWithEmail(e,t,{redirectTo:r.redirectTo,captchaToken:r.captchaToken});return a||!i?{data:null,user:null,session:null,error:a}:(((null===(n=null===i||void 0===i?void 0:i.user)||void 0===n?void 0:n.confirmed_at)||(null===(o=null===i||void 0===i?void 0:i.user)||void 0===o?void 0:o.email_confirmed_at))&&(this._saveSession(i),this._notifyAllSubscribers("SIGNED_IN")),{data:i,user:i.user,session:i,error:null})}catch(i){return{data:null,user:null,session:null,error:i}}}))}_handlePhoneSignIn(e,t,r={}){var n;return _(this,void 0,void 0,(function*(){try{const{data:o,error:i}=yield this.api.signInWithPhone(e,t,r);return i||!o?{data:null,user:null,session:null,error:i}:((null===(n=null===o||void 0===o?void 0:o.user)||void 0===n?void 0:n.phone_confirmed_at)&&(this._saveSession(o),this._notifyAllSubscribers("SIGNED_IN")),{data:o,user:o.user,session:o,error:null})}catch(o){return{data:null,user:null,session:null,error:o}}}))}_handleProviderSignIn(e,t={}){const r=this.api.getUrlForProvider(e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});try{return S()&&(window.location.href=r),{provider:e,url:r,data:null,session:null,user:null,error:null}}catch(n){return r?{provider:e,url:r,data:null,session:null,user:null,error:null}:{data:null,user:null,session:null,error:n}}}_handleOpenIDConnectSignIn({id_token:e,nonce:t,client_id:r,issuer:n,provider:o}){return _(this,void 0,void 0,(function*(){if(e&&t&&(r&&n||o))try{const{data:i,error:a}=yield this.api.signInWithOpenIDConnect({id_token:e,nonce:t,client_id:r,issuer:n,provider:o});return a||!i?{user:null,session:null,error:a}:(this._saveSession(i),this._notifyAllSubscribers("SIGNED_IN"),{user:i.user,session:i,error:null})}catch(i){return{user:null,session:null,error:i}}throw new Error("You must provide a OpenID Connect provider with your id token and nonce.")}))}_recoverSession(){try{const e=((e,t)=>{const r=S()&&(null===e||void 0===e?void 0:e.getItem(t));if(!r||"string"!==typeof r)return null;try{return JSON.parse(r)}catch(n){return r}})(this.localStorage,d);if(!e)return null;const{currentSession:t,expiresAt:r}=e;r>=Math.round(Date.now()/1e3)+10&&(null===t||void 0===t?void 0:t.user)&&(this._saveSession(t),this._notifyAllSubscribers("SIGNED_IN"))}catch(e){console.log("error",e)}}_recoverAndRefresh(){return _(this,void 0,void 0,(function*(){try{const r=yield(e=this.localStorage,t=d,C(void 0,void 0,void 0,(function*(){const r=S()&&(yield null===e||void 0===e?void 0:e.getItem(t));if(!r)return null;try{return JSON.parse(r)}catch(n){return r}})));if(!r)return null;const{currentSession:n,expiresAt:o}=r;if(o<Math.round(Date.now()/1e3)+10)if(this.autoRefreshToken&&n.refresh_token){this.networkRetries++;const{error:e}=yield this._callRefreshToken(n.refresh_token);if(e){if(console.log(e.message),e.message===c&&this.networkRetries<u)return this.refreshTokenTimer&&clearTimeout(this.refreshTokenTimer),void(this.refreshTokenTimer=setTimeout((()=>this._recoverAndRefresh()),100*Math.pow(l,this.networkRetries)));yield this._removeSession()}this.networkRetries=0}else this._removeSession();else n?(this._saveSession(n),this._notifyAllSubscribers("SIGNED_IN")):(console.log("Current session is missing data."),this._removeSession())}catch(r){return console.error(r),null}var e,t}))}_callRefreshToken(e){var t;return void 0===e&&(e=null===(t=this.currentSession)||void 0===t?void 0:t.refresh_token),_(this,void 0,void 0,(function*(){try{if(!e)throw new Error("No current session.");const{data:t,error:r}=yield this.api.refreshAccessToken(e);if(r)throw r;if(!t)throw Error("Invalid session data.");return this._saveSession(t),this._notifyAllSubscribers("TOKEN_REFRESHED"),this._notifyAllSubscribers("SIGNED_IN"),{data:t,error:null}}catch(t){return{data:null,error:t}}}))}
1_notifyAllSubscribers(e){this.stateChangeEmitters.forEach((t=>t.callback(e,this.currentSession)))}_saveSession(e){this.currentSession=e,this.currentUser=e.user;const t=e.expires_at;if(t){const e=t-Math.round(Date.now()/1e3),r=e>10?10:.5;this._startAutoRefreshToken(1e3*(e-r))}this.persistSession&&e.expires_at&&this._persistSession(this.currentSession)}_persistSession(e){const t={currentSession:e,expiresAt:e.expires_at};((e,t,r)=>{C(void 0,void 0,void 0,(function*(){S()&&(yield null===e||void 0===e?void 0:e.setItem(t,JSON.stringify(r)))}))})(this.localStorage,d,t)}_removeSession(){return _(this,void 0,void 0,(function*(){var e,t;this.currentSession=null,this.currentUser=null,this.refreshTokenTimer&&clearTimeout(this.refreshTokenTimer),e=this.localStorage,t=d,C(void 0,void 0,void 0,(function*(){S()&&(yield null===e||void 0===e?void 0:e.removeItem(t))}))}))}_startAutoRefreshToken(e){this.refreshTokenTimer&&clearTimeout(this.refreshTokenTimer),e<=0||!this.autoRefreshToken||(this.refreshTokenTimer=setTimeout((()=>_(this,void 0,void 0,(function*(){this.networkRetries++;const{error:e}=yield this._callRefreshToken();e||(this.networkRetries=0),(null===e||void 0===e?void 0:e.message)===c&&this.networkRetries<u&&this._startAutoRefreshToken(100*Math.pow(l,this.networkRetries))}))),e),"function"===typeof this.refreshTokenTimer.unref&&this.refreshTokenTimer.unref())}_listenForMultiTabEvents(){if(!this.multiTab||!S()||!(null===window||void 0===window?void 0:window.addEventListener))return!1;try{null===window||void 0===window||window.addEventListener("storage",(e=>{var t;if(e.key===d){const r=JSON.parse(String(e.newValue));(null===(t=null===r||void 0===r?void 0:r.currentSession)||void 0===t?void 0:t.access_token)?(this._saveSession(r.currentSession),this._notifyAllSubscribers("SIGNED_IN")):(this._removeSession(),this._notifyAllSubscribers("SIGNED_OUT"))}}))}catch(e){console.error("_listenForMultiTabEvents",e)}}_handleVisibilityChange(){if(!this.multiTab||!S()||!(null===window||void 0===window?void 0:window.addEventListener))return!1;try{null===window||void 0===window||window.addEventListener("visibilitychange",(()=>{"visible"===document.visibilityState&&this._recoverAndRefresh()}))}catch(e){console.error("_handleVisibilityChange",e)}}}{constructor(e){super(e)}}var R=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};class D{constructor(e){let t;Object.assign(this,e),t=e.fetch?e.fetch:"undefined"===typeof fetch?(...e)=>R(this,void 0,void 0,(function*(){return yield(yield r.e(98).then(r.t.bind(r,4098,23))).fetch(...e)})):fetch,this.fetch=(...e)=>t(...e),this.shouldThrowOnError=e.shouldThrowOnError||!1,this.allowEmpty=e.allowEmpty||!1}throwOnError(e){return null!==e&&void 0!==e||(e=!0),this.shouldThrowOnError=e,this}then(e,t){"undefined"===typeof this.schema||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),"GET"!==this.method&&"HEAD"!==this.method&&(this.headers["Content-Type"]="application/json");let r=this.fetch(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then((e=>R(this,void 0,void 0,(function*(){var t,r,n,o;let i=null,a=null,s=null,c=e.status,u=e.statusText;if(e.ok){const o=null===(t=this.headers.Prefer)||void 0===t?void 0:t.split(",").includes("return=minimal");if("HEAD"!==this.method&&!o){const t=yield e.text();t&&(a="text/csv"===this.headers.Accept?t:JSON.parse(t))}const i=null===(r=this.headers.Prefer)||void 0===r?void 0:r.match(/count=(exact|planned|estimated)/),c=null===(n=e.headers.get("content-range"))||void 0===n?void 0:n.split("/");i&&c&&c.length>1&&(s=parseInt(c[1]))}else{const t=yield e.text();try{i=JSON.parse(t)}catch(l){i={message:t}}if(i&&this.allowEmpty&&(null===(o=null===i||void 0===i?void 0:i.details)||void 0===o?void 0:o.includes("Results contain 0 rows"))&&(i=null,c=200,u="OK"),i&&this.shouldThrowOnError)throw i}return{error:i,data:a,count:s,status:c,statusText:u,body:a}}))));return this.shouldThrowOnError||(r=r.catch((e=>({error:{message:`FetchError: ${e.message}`,details:"",hint:"",code:e.code||""},data:null,body:null,count:null,status:400,statusText:"Bad Request"})))),r.then(e,t)}}class M extends D{select(e="*"){let t=!1;const r=e.split("").map((e=>/\s/.test(e)&&!t?"":('"'===e&&(t=!t),e))).join("");return this.url.searchParams.set("select",r),this}order(e,{ascending:t=!0,nullsFirst:r=!1,foreignTable:n}={}){const o="undefined"===typeof n?"order":`${n}.order`,i=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${i?`${i},`:""}${e}.${t?"asc":"desc"}.${r?"nullsfirst":"nullslast"}`),this}limit(e,{foreignTable:t}={}){const r="undefined"===typeof t?"limit":`${t}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:r}={}){const n="undefined"===typeof r?"offset":`${r}.offset`,o="undefined"===typeof r?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this.url.searchParams.set(o,""+(t-e+1)),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.headers.Accept="application/vnd.pgrst.object+json",this.allowEmpty=!0,this}csv(){return this.headers.Accept="text/csv",this}}class I extends M{constructor(){super(...arguments),this.cs=this.contains,this.cd=this.containedBy,this.sl=this.rangeLt,this.sr=this.rangeGt,this.nxl=this.rangeGte,this.nxr=this.rangeLte,this.adj=this.rangeAdjacent,this.ov=this.overlaps}not(e,t,r){return this.url.searchParams.append(`${e}`,`not.${t}.${r}`),this}or(e,{foreignTable:t}={}){const r="undefined"===typeof t?"or":`${t}.or`;return this.url.searchParams.append(r,`(${e})`),this}eq(e,t){return this.url.searchParams.append(`${e}`,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(`${e}`,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(`${e}`,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(`${e}`,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(`${e}`,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(`${e}`,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(`${e}`,`like.${t}`),this}ilike(e,t){return this.url.searchParams.append(`${e}`,`ilike.${t}`),this}is(e,t){return this.url.searchParams.append(`${e}`,`is.${t}`),this}in(e,t){const r=t.map((e=>"string"===typeof e&&new RegExp("[,()]").test(e)?`"${e}"`:`${e}`)).join(",");return this.url.searchParams.append(`${e}`,`in.(${r})`),this}contains(e,t){return"string"===typeof t?this.url.searchParams.append(`${e}`,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(`${e}`,`cs.{${t.join(",")}}`):this.url.searchParams.append(`${e}`,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return"string"===typeof t?this.url.searchParams.append(`${e}`,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(`${e}`,`cd.{${t.join(",")}}`):this.url.searchParams.append(`${e}`,`cd.${JSON.stringify(t)}`),this}rangeLt(e,t){return this.url.searchParams.append(`${e}`,`sl.${t}`),this}rangeGt(e,t){return this.url.searchParams.append(`${e}`,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(`${e}`,`nxl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(`${e}`,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(`${e}`,`adj.${t}`),this}overlaps(e,t){return"string"===typeof t?this.url.searchParams.append(`${e}`,`ov.${t}`):this.url.searchParams.append(`${e}`,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n=null}={}){let o="";
1"plain"===n?o="pl":"phrase"===n?o="ph":"websearch"===n&&(o="w");const i=void 0===r?"":`(${r})`;return this.url.searchParams.append(`${e}`,`${o}fts${i}.${t}`),this}fts(e,t,{config:r}={}){const n="undefined"===typeof r?"":`(${r})`;return this.url.searchParams.append(`${e}`,`fts${n}.${t}`),this}plfts(e,t,{config:r}={}){const n="undefined"===typeof r?"":`(${r})`;return this.url.searchParams.append(`${e}`,`plfts${n}.${t}`),this}phfts(e,t,{config:r}={}){const n="undefined"===typeof r?"":`(${r})`;return this.url.searchParams.append(`${e}`,`phfts${n}.${t}`),this}wfts(e,t,{config:r}={}){const n="undefined"===typeof r?"":`(${r})`;return this.url.searchParams.append(`${e}`,`wfts${n}.${t}`),this}filter(e,t,r){return this.url.searchParams.append(`${e}`,`${t}.${r}`),this}match(e){return Object.keys(e).forEach((t=>{this.url.searchParams.append(`${t}`,`eq.${e[t]}`)})),this}}class F extends D{constructor(e,{headers:t={},schema:r,fetch:n,shouldThrowOnError:o}={}){super({fetch:n,shouldThrowOnError:o}),this.url=new URL(e),this.headers=Object.assign({},t),this.schema=r}select(e="*",{head:t=!1,count:r=null}={}){this.method="GET";let n=!1;const o=e.split("").map((e=>/\s/.test(e)&&!n?"":('"'===e&&(n=!n),e))).join("");return this.url.searchParams.set("select",o),r&&(this.headers.Prefer=`count=${r}`),t&&(this.method="HEAD"),new I(this)}insert(e,{upsert:t=!1,onConflict:r,returning:n="representation",count:o=null}={}){this.method="POST";const i=[`return=${n}`];if(t&&i.push("resolution=merge-duplicates"),t&&void 0!==r&&this.url.searchParams.set("on_conflict",r),this.body=e,o&&i.push(`count=${o}`),this.headers.Prefer&&i.unshift(this.headers.Prefer),this.headers.Prefer=i.join(","),Array.isArray(e)){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]);if(t.length>0){const e=[...new Set(t)].map((e=>`"${e}"`));this.url.searchParams.set("columns",e.join(","))}}return new I(this)}upsert(e,{onConflict:t,returning:r="representation",count:n=null,ignoreDuplicates:o=!1}={}){this.method="POST";const i=[`resolution=${o?"ignore":"merge"}-duplicates`,`return=${r}`];return void 0!==t&&this.url.searchParams.set("on_conflict",t),this.body=e,n&&i.push(`count=${n}`),this.headers.Prefer&&i.unshift(this.headers.Prefer),this.headers.Prefer=i.join(","),new I(this)}update(e,{returning:t="representation",count:r=null}={}){this.method="PATCH";const n=[`return=${t}`];return this.body=e,r&&n.push(`count=${r}`),this.headers.Prefer&&n.unshift(this.headers.Prefer),this.headers.Prefer=n.join(","),new I(this)}delete({returning:e="representation",count:t=null}={}){this.method="DELETE";const r=[`return=${e}`];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new I(this)}}class N extends D{constructor(e,{headers:t={},schema:r,fetch:n,shouldThrowOnError:o}={}){super({fetch:n,shouldThrowOnError:o}),this.url=new URL(e),this.headers=Object.assign({},t),this.schema=r}rpc(e,{head:t=!1,count:r=null}={}){return t?(this.method="HEAD",e&&Object.entries(e).forEach((([e,t])=>{this.url.searchParams.append(e,t)}))):(this.method="POST",this.body=e),r&&(void 0!==this.headers.Prefer?this.headers.Prefer+=`,count=${r}`:this.headers.Prefer=`count=${r}`),new I(this)}}const L={"X-Client-Info":"postgrest-js/0.37.4"};class B{constructor(e,{headers:t={},schema:r,fetch:n,throwOnError:o}={}){this.url=e,this.headers=Object.assign(Object.assign({},L),t),this.schema=r,this.fetch=n,this.shouldThrowOnError=o}auth(e){return this.headers.Authorization=`Bearer ${e}`,this}from(e){const t=`${this.url}/${e}`;return new F(t,{headers:this.headers,schema:this.schema,fetch:this.fetch,shouldThrowOnError:this.shouldThrowOnError})}rpc(e,t,{head:r=!1,count:n=null}={}){const o=`${this.url}/rpc/${e}`;return new N(o,{headers:this.headers,schema:this.schema,fetch:this.fetch,shouldThrowOnError:this.shouldThrowOnError}).rpc(t,{head:r,count:n})}}var z;!function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"}(z||(z={}));const V=(e,t,r={})=>{var n;const o=null!==(n=r.skipTypes)&&void 0!==n?n:[];return Object.keys(t).reduce(((r,n)=>(r[n]=U(n,e,t,o),r)),{})},U=(e,t,r,n)=>{const o=t.find((t=>t.name===e)),i=null===o||void 0===o?void 0:o.type,a=r[e];return i&&!n.includes(i)?$(i,a):W(a)},$=(e,t)=>{if("_"===e.charAt(0)){const r=e.slice(1,e.length);return G(t,r)}switch(e){case z.bool:return Z(t);case z.float4:case z.float8:case z.int2:case z.int4:case z.int8:case z.numeric:case z.oid:return H(t);case z.json:case z.jsonb:return q(t);case z.timestamp:return Q(t);case z.abstime:case z.date:case z.daterange:case z.int4range:case z.int8range:case z.money:case z.reltime:case z.text:case z.time:case z.timestamptz:case z.timetz:case z.tsrange:case z.tstzrange:default:return W(t)}},W=e=>e,Z=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},H=e=>{if("string"===typeof e){const t=parseFloat(e);
1if(!Number.isNaN(t))return t}return e},q=e=>{if("string"===typeof e)try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},G=(e,t)=>{if("string"!==typeof e)return e;const r=e.length-1,n=e[r];if("{"===e[0]&&"}"===n){let n;const i=e.slice(1,r);try{n=JSON.parse("["+i+"]")}catch(o){n=i?i.split(","):[]}return n.map((e=>$(t,e)))}return e},Q=e=>"string"===typeof e?e.replace(" ","T"):e;var Y=r(5840);const K={"X-Client-Info":"realtime-js/1.7.4"};var X,J,ee,te,re;!function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"}(X||(X={})),function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"}(J||(J={})),function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"}(ee||(ee={})),function(e){e.websocket="websocket"}(te||(te={})),function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"}(re||(re={}));class ne{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=t}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout((()=>{this.tries=this.tries+1,this.callback()}),this.timerCalc(this.tries+1))}}class oe{constructor(){this.HEADER_LENGTH=1}decode(e,t){return e.constructor===ArrayBuffer?t(this._binaryDecode(e)):t("string"===typeof e?JSON.parse(e):{})}_binaryDecode(e){const t=new DataView(e),r=new TextDecoder;return this._decodeBroadcast(e,t,r)}_decodeBroadcast(e,t,r){const n=t.getUint8(1),o=t.getUint8(2);let i=this.HEADER_LENGTH+2;const a=r.decode(e.slice(i,i+n));i+=n;const s=r.decode(e.slice(i,i+o));i+=o;return{ref:null,topic:a,event:s,payload:JSON.parse(r.decode(e.slice(i,e.byteLength)))}}}class ie{constructor(e,t,r={},n=1e4){this.channel=e,this.event=t,this.payload=r,this.timeout=n,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,t){var r;return this._hasReceived(e)&&t(null===(r=this.receivedResp)||void 0===r?void 0:r.response),this.recHooks.push({status:e,callback:t}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref);this.channel.on(this.refEvent,(e=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=e,this._matchReceive(e)})),this.timeoutTimer=setTimeout((()=>{this.trigger("timeout",{})}),this.timeout)}trigger(e,t){this.refEvent&&this.channel.trigger(this.refEvent,{status:e,response:t})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:t}){this.recHooks.filter((t=>t.status===e)).forEach((e=>e.callback(t)))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}class ae{constructor(e,t={},r){this.topic=e,this.params=t,this.socket=r,this.bindings=[],this.state=J.closed,this.joinedOnce=!1,this.pushBuffer=[],this.timeout=this.socket.timeout,this.joinPush=new ie(this,ee.join,this.params,this.timeout),this.rejoinTimer=new ne((()=>this.rejoinUntilConnected()),this.socket.reconnectAfterMs),this.joinPush.receive("ok",(()=>{this.state=J.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach((e=>e.send())),this.pushBuffer=[]})),this.onClose((()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=J.closed,this.socket.remove(this)})),this.onError((e=>{this.isLeaving()||this.isClosed()||(this.socket.log("channel",`error ${this.topic}`,e),this.state=J.errored,this.rejoinTimer.scheduleTimeout())})),this.joinPush.receive("timeout",(()=>{this.isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=J.errored,this.rejoinTimer.scheduleTimeout())})),this.on(ee.reply,((e,t)=>{this.trigger(this.replyEventName(t),e)}))}rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this.rejoin()}subscribe(e=this.timeout){if(this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";return this.joinedOnce=!0,this.rejoin(e),this.joinPush}onClose(e){this.on(ee.close,e)}onError(e){this.on(ee.error,(t=>e(t)))}on(e,t){this.bindings.push({event:e,callback:t})}off(e){this.bindings=this.bindings.filter((t=>t.event!==e))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let n=new ie(this,e,t,r);return this.canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=J.leaving;let t=()=>{this.socket.log("channel",`leave ${this.topic}`),this.trigger(ee.close,"leave",this.joinRef())};this.joinPush.destroy();let r=new ie(this,ee.leave,{},e);return r.receive("ok",(()=>t())).receive("timeout",(()=>t())),r.send(),this.canPush()||r.trigger("ok",{}),r}onMessage(e,t,r){return t}isMember(e){return this.topic===e}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=J.joining,this.joinPush.resend(e))}trigger(e,t,r){let{close:n,error:o,leave:i,join:a}=ee;if(r&&[n,o,i,a].indexOf(e)>=0&&r!==this.joinRef())return;let s=this.onMessage(e,t,r);if(t&&!s)throw"channel onMessage callbacks must return the payload, modified or unmodified";this.bindings.filter((r=>"*"===r.event?e===(null===t||void 0===t?void 0:t.type):r.event===e)).map((e=>e.callback(s,r)))}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===J.closed}isErrored(){return this.state===J.errored}isJoined(){return this.state===J.joined}isJoining(){return this.state===J.joining}isLeaving(){return this.state===J.leaving}}var se=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const ce=()=>{};class ue{constructor(e,t){this.accessToken=null,this.channels=[],this.endPoint="",this.headers=K,this.params={},this.timeout=1e4,this.transport=Y.w3cwebsocket,this.heartbeatIntervalMs=3e4,this.longpollerTimeout=2e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=ce,this.conn=null,this.sendBuffer=[],this.serializer
1=new oe,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.endPoint=`${e}/${te.websocket}`,(null===t||void 0===t?void 0:t.params)&&(this.params=t.params),(null===t||void 0===t?void 0:t.headers)&&(this.headers=Object.assign(Object.assign({},this.headers),t.headers)),(null===t||void 0===t?void 0:t.timeout)&&(this.timeout=t.timeout),(null===t||void 0===t?void 0:t.logger)&&(this.logger=t.logger),(null===t||void 0===t?void 0:t.transport)&&(this.transport=t.transport),(null===t||void 0===t?void 0:t.heartbeatIntervalMs)&&(this.heartbeatIntervalMs=t.heartbeatIntervalMs),(null===t||void 0===t?void 0:t.longpollerTimeout)&&(this.longpollerTimeout=t.longpollerTimeout),this.reconnectAfterMs=(null===t||void 0===t?void 0:t.reconnectAfterMs)?t.reconnectAfterMs:e=>[1e3,2e3,5e3,1e4][e-1]||1e4,this.encode=(null===t||void 0===t?void 0:t.encode)?t.encode:(e,t)=>t(JSON.stringify(e)),this.decode=(null===t||void 0===t?void 0:t.decode)?t.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new ne((()=>se(this,void 0,void 0,(function*(){yield this.disconnect(),this.connect()}))),this.reconnectAfterMs)}connect(){this.conn||(this.conn=new this.transport(this.endPointURL(),[],null,this.headers),this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e)))}disconnect(e,t){return new Promise(((r,n)=>{try{this.conn&&(this.conn.onclose=function(){},e?this.conn.close(e,t||""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset()),r({error:null,data:!0}
1)}catch(o){r({error:o,data:!1})}}))}log(e,t,r){this.logger(e,t,r)}onOpen(e){this.stateChangeCallbacks.open.push(e)}onClose(e){this.stateChangeCallbacks.close.push(e)}onError(e){this.stateChangeCallbacks.error.push(e)}onMessage(e){this.stateChangeCallbacks.message.push(e)}connectionState(){switch(this.conn&&this.conn.readyState){case X.connecting:return re.Connecting;case X.open:return re.Open;case X.closing:return re.Closing;default:return re.Closed}}isConnected(){return this.connectionState()===re.Open}remove(e){this.channels=this.channels.filter((t=>t.joinRef()!==e.joinRef()))}channel(e,t={}){const r=new ae(e,t,this);return this.channels.push(r),r}push(e){const{topic:t,event:r,payload:n,ref:o}=e;let i=()=>{this.encode(e,(e=>{var t;null===(t=this.conn)||void 0===t||t.send(e)}))};this.log("push",`${t} ${r} (${o})`,n),this.isConnected()?i():this.sendBuffer.push(i)}onConnMessage(e){this.decode(e.data,(e=>{let{topic:t,event:r,payload:n,ref:o}=e;(o&&o===this.pendingHeartbeatRef||r===(null===n||void 0===n?void 0:n.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${n.status||""} ${t} ${r} ${o&&"("+o+")"||""}`,n),this.channels.filter((e=>e.isMember(t))).forEach((e=>e.trigger(r,n,o))),this.stateChangeCallbacks.message.forEach((t=>t(e)))}))}endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:"1.0.0"}))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}setAuth(e){this.accessToken=e,this.channels.forEach((t=>{e&&t.updateJoinPayload({user_token:e}),t.joinedOnce&&t.isJoined()&&t.push(ee.access_token,{access_token:e})}))}leaveOpenTopic(e){let t=this.channels.find((t=>t.topic===e&&(t.isJoined()||t.isJoining())));t&&(this.log("transport",`leaving duplicate topic "${e}"`),t.unsubscribe())}_onConnOpen(){this.log("transport",`connected to ${this.endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval((()=>this._sendHeartbeat()),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach((e=>e()))}_onConnClose(e){this.log("transport","close",e),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach((t=>t(e)))}_onConnError(e){this.log("transport",e.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach((t=>t(e)))}_triggerChanError(){this.channels.forEach((e=>e.trigger(ee.error)))}_appendParams(e,t){if(0===Object.keys(t).length)return e;const r=e.match(/\?/)?"&":"?";return`${e}${r}${new URLSearchParams(t)}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach((e=>e())),this.sendBuffer=[])}_sendHeartbeat(){var e;if(this.isConnected()){if(this.pendingHeartbeatRef)return this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),void(null===(e=this.conn)||void 0===e||e.close(1e3,"hearbeat timeout"));this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}}class le{constructor(e,t,r,n){const o={},i="*"===n?`realtime:${r}`:`realtime:${r}:${n}`,a=t.Authorization.split(" ")[1];a&&(o.user_token=a),this.subscription=e.channel(i,o)}getPayloadRecords(e){const t={new:{},old:{}};return"INSERT"!==e.type&&"UPDATE"!==e.type||(t.new=V(e.columns,e.record)),"UPDATE"!==e.type&&"DELETE"!==e.type||(t.old=V(e.columns,e.old_record)),t}on(e,t){return this.subscription.on(e,(e=>{let r={schema:e.schema,table:e.table,commit_timestamp:e.commit_timestamp,eventType:e.type,new:{},old:{},errors:e.errors};r=Object.assign(Object.assign({},r),this.getPayloadRecords(e)),t(r)})),this}subscribe(e=(()=>{})){return this.subscription.onError((t=>e("SUBSCRIPTION_ERROR",t))),this.subscription.onClose((()=>e("CLOSED"))),this.subscription.subscribe().receive("ok",(()=>e("SUBSCRIBED"))).receive("error",(t=>e("SUBSCRIPTION_ERROR",t))).receive("timeout",(()=>e("RETRYING_AFTER_TIMEOUT"))),this.subscription}}class de extends F{constructor(e,{headers:t={},schema:r,realtime:n,table:o,fetch:i,shouldThrowOnError:a}){super(e,{headers:t,schema:r,fetch:i,shouldThrowOnError:a}),this._subscription=null,this._realtime=n,this._headers=t,this._schema=r,this._table=o}on(e,t){return this._realtime.isConnected()||this._realtime.connect(),this._subscription||(this._subscription=new le(this._realtime,this._headers,this._schema,this._table)),this._subscription.on(e,t)}}const fe={"X-Client-Info":"storage-js/1.7.3"};var pe=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const he=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e);function me(e,t,r,n,o,i){return pe(this,void 0,void 0,(function*(){return new Promise(((a,s)=>{e(r,((e,t,r,n)=>{const o={method:e,headers:(null===t||void 0===t?void 0:t.headers)||{}};return"GET"===e?o:(o.headers=Object.assign({"Content-Type":"application/json"},null===t||void 0===t?void 0:t.headers),o.body=JSON.stringify(n),Object.assign(Object.assign({},o),r))})(t,n,o,i)).then((e=>{if(!e.ok)throw e;return(null===n||void 0===n?void 0:n.noResolveJson)?a(e):e.json()})).then((e=>a(e))).catch((e=>((e,t)=>{if("function"!==typeof e.json)return t(e);e.json().then((r=>t({message:he(r),status:(null===e||void 0===e?void 0:e.status)||500})))})(e,s)))}
1))}))}function ve(e,t,r,n){return pe(this,void 0,void 0,(function*(){return me(e,"GET",t,r,n)}))}function ge(e,t,r,n,o){return pe(this,void 0,void 0,(function*(){return me(e,"POST",t,n,o,r)}))}function ye(e,t,r,n,o){return pe(this,void 0,void 0,(function*(){return me(e,"DELETE",t,n,o,r)}))}var be=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const xe=e=>{let t;return t=e||("undefined"===typeof fetch?(...e)=>be(void 0,void 0,void 0,(function*(){return yield(yield r.e(98).then(r.t.bind(r,4098,23))).fetch(...e)})):fetch),(...e)=>t(...e)};var we=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};var Ce=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const ke={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Se={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class Oe{constructor(e,t={},r,n){this.url=e,this.headers=t,this.bucketId=r,this.fetch=xe(n)}uploadOrUpdate(e,t,r,n){return Ce(this,void 0,void 0,(function*(){try{let o;const i=Object.assign(Object.assign({},Se),n),a=Object.assign(Object.assign({},this.headers),"POST"===e&&{"x-upsert":String(i.upsert)});"undefined"!==typeof Blob&&r instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),o.append("",r)):"undefined"!==typeof FormData&&r instanceof FormData?(o=r,o.append("cacheControl",i.cacheControl)):(o=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType);const s=this._removeEmptyFolders(t),c=this._getFinalPath(s),u=yield this.fetch(`${this.url}/object/${c}`,{method:e,body:o,headers:a});if(u.ok)return{data:{Key:c},error:null};return{data:null,error:yield u.json()}}catch(o){return{data:null,error:o}}}))}upload(e,t,r){return Ce(this,void 0,void 0,(function*(){return this.uploadOrUpdate("POST",e,t,r)}))}update(e,t,r){return Ce(this,void 0,void 0,(function*(){return this.uploadOrUpdate("PUT",e,t,r)}))}move(e,t){return Ce(this,void 0,void 0,(function*(){try{return{data:yield ge(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t},{headers:this.headers}),error:null}}catch(r){return{data:null,error:r}}}))}copy(e,t){return Ce(this,void 0,void 0,(function*(){try{return{data:yield ge(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t},{headers:this.headers}),error:null}}catch(r){return{data:null,error:r}}}))}createSignedUrl(e,t){return Ce(this,void 0,void 0,(function*(){try{const r=this._getFinalPath(e);let n=yield ge(this.fetch,`${this.url}/object/sign/${r}`,{expiresIn:t},{headers:this.headers});const o=`${this.url}${n.signedURL}`;return n={signedURL:o},{data:n,error:null,signedURL:o}}catch(r){return{data:null,error:r,signedURL:null}}}))}createSignedUrls(e,t){return Ce(this,void 0,void 0,(function*(){try{return{data:(yield ge(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:t,paths:e},{headers:this.headers})).map((e=>Object.assign(Object.assign({},e),{signedURL:e.signedURL?`${this.url}${e.signedURL}`:null}))),error:null}}catch(r){return{data:null,error:r}}}))}download(e){return Ce(this,void 0,void 0,(function*(){try{const t=this._getFinalPath(e),r=yield ve(this.fetch,`${this.url}/object/${t}`,{headers:this.headers,noResolveJson:!0});return{data:yield r.blob(),error:null}}catch(t){return{data:null,error:t}}}))}getPublicUrl(e){try{const t=this._getFinalPath(e),r=`${this.url}/object/public/${t}`;return{data:{publicURL:r},error:null,publicURL:r}}catch(t){return{data:null,error:t,publicURL:null}}}remove(e){return Ce(this,void 0,void 0,(function*(){try{return{data:yield ye(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(t){return{data:null,error:t}}}))}list(e,t,r){return Ce(this,void 0,void 0,(function*(){try{const n=Object.assign(Object.assign(Object.assign({},ke),t),{prefix:e||""});return{data:yield ge(this.fetch,`${this.url}/object/list/${this.bucketId}`,n,{headers:this.headers},r),error:null}}catch(n){return{data:null,error:n}}}))}_getFinalPath(e){return`${this.bucketId}/${e}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}}class je extends class{constructor(e,t={},r){this.url=e,this.headers=Object.assign(Object.assign({},fe),t),this.fetch=xe(r)}listBuckets(){return we(this,void 0,void 0,(function*(){try{return{data:yield ve(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){return{data:null,error:e}}}))}getBucket(e){return we(this,void 0,void 0,(function*(){try{return{data:yield ve(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(t){return{data:null,error:t}}}))}createBucket(e,t={public:!1}){return we(this,void 0,void 0,(function*(){try{return{data:(yield ge(this.fetch,`${this.url}/bucket`,{id:e,name:e,public:t.public},{headers:this.headers})).name,error:null}}catch(r){return{data:null,error:r}}}))}updateBucket(e,t){return we(this,void 0,void 0,(function*(){try{const r=yield function(e,t,r,n,o){return pe(this,void 0,void 0,(function*(){return me(e,"PUT",t,n,o,r)}))}(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:t.public},{headers:this.headers});return{data:r,error:null}}catch(r){return{data:null,error:r}}}))}emptyBucket(e){return we(this,void 0,void 0,(function*(){try{return{data:yield ge(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(t){return{data:null,error:t}}}))}deleteBucket(e){return we(this,void 0,void 0,(function*(){try{return{data:yield ye(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(t){return{data:null,error:t}}}))}}{constructor(e,t={},r){super(e,t,r)}from(e){return new Oe(this.url,this.headers,e,this.fetch)}}var Ee=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};var Pe=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};class _e{constructor(e,{headers:t={},customFetch:n}={}){this.url=e,this.headers=t,this.fetch=(e=>{let t;return t=e||("undefined"===typeof fetch?(...e)=>Ee(void 0,void 0,void 0,(function*(){return yield(yield r.e(98).then(r.t.bind(r,4098,23))).fetch(...e)})):fetch),(...e)=>t(...e)})(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,t){return Pe(this,void 0,void 0,(function*(){try{const{headers:r,body:n}=null!==t&&void 0!==t?t:{},o=yield this.fetch(`${this.url}/${e}`,{method:"POST",headers:Object.assign({},this.headers,r),body:n}),i=o.headers.get("x-relay-error");
1if(i&&"true"===i)return{data:null,error:new Error(yield o.text())};let a;const{responseType:s}=null!==t&&void 0!==t?t:{};return a=s&&"json"!==s?"arrayBuffer"===s?yield o.arrayBuffer():"blob"===s?yield o.blob():yield o.text():yield o.json(),{data:a,error:null}}catch(r){return{data:null,error:r}}}))}}var Te=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const Ae={schema:"public",autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,multiTab:!0,headers:a};class Re{constructor(e,t,r){if(this.supabaseUrl=e,this.supabaseKey=t,!e)throw new Error("supabaseUrl is required.");if(!t)throw new Error("supabaseKey is required.");const n=e.replace(/\/$/,"");const o=Object.assign(Object.assign({},Ae),r);this.restUrl=`${n}/rest/v1`,this.realtimeUrl=`${n}/realtime/v1`.replace("http","ws"),this.authUrl=`${n}/auth/v1`,this.storageUrl=`${n}/storage/v1`;if(n.match(/(supabase\.co)|(supabase\.in)/)){const e=n.split(".");this.functionsUrl=`${e[0]}.functions.${e[1]}.${e[2]}`}else this.functionsUrl=`${n}/functions/v1`;this.schema=o.schema,this.multiTab=o.multiTab,this.fetch=o.fetch,this.headers=Object.assign(Object.assign({},a),null===r||void 0===r?void 0:r.headers),this.shouldThrowOnError=o.shouldThrowOnError||!1,this.auth=this._initSupabaseAuthClient(o),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},o.realtime)),this._listenForAuthEvents(),this._listenForMultiTabEvents()}get functions(){return new _e(this.functionsUrl,{headers:this._getAuthHeaders(),customFetch:this.fetch})}get storage(){return new je(this.storageUrl,this._getAuthHeaders(),this.fetch)}from(e){const t=`${this.restUrl}/${e}`;return new de(t,{headers:this._getAuthHeaders(),schema:this.schema,realtime:this.realtime,table:e,fetch:this.fetch,shouldThrowOnError:this.shouldThrowOnError})}rpc(e,t,{head:r=!1,count:n=null}={}){return this._initPostgRESTClient().rpc(e,t,{head:r,count:n})}removeAllSubscriptions(){return Te(this,void 0,void 0,(function*(){const e=this.getSubscriptions().slice(),t=e.map((e=>this.removeSubscription(e)));return(yield Promise.all(t)).map((({error:t},r)=>({data:{subscription:e[r]},error:t})))}))}removeSubscription(e){return Te(this,void 0,void 0,(function*(){const{error:t}=yield this._closeSubscription(e),r=this.getSubscriptions(),n=r.filter((e=>e.isJoined())).length;return 0===r.length&&(yield this.realtime.disconnect()),{data:{openSubscriptions:n},error:t}}))}_closeSubscription(e){return Te(this,void 0,void 0,(function*(){let t=null;if(!e.isClosed()){const{error:r}=yield this._unsubscribeSubscription(e);t=r}return this.realtime.remove(e),{error:t}}))}_unsubscribeSubscription(e){return new Promise((t=>{e.unsubscribe().receive("ok",(()=>t({error:null}))).receive("error",(e=>t({error:e}))).receive("timeout",(()=>t({error:new Error("timed out")})))}
1))}getSubscriptions(){return this.realtime.channels}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,localStorage:n,headers:o,fetch:i,cookieOptions:a,multiTab:s}){const c={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new A({url:this.authUrl,headers:Object.assign(Object.assign({},o),c),autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,localStorage:n,fetch:i,cookieOptions:a,multiTab:s})}_initRealtimeClient(e){return new ue(this.realtimeUrl,Object.assign(Object.assign({},e),{params:Object.assign(Object.assign({},null===e||void 0===e?void 0:e.params),{apikey:this.supabaseKey})}))}_initPostgRESTClient(){return new B(this.restUrl,{headers:this._getAuthHeaders(),schema:this.schema,fetch:this.fetch,throwOnError:this.shouldThrowOnError})}_getAuthHeaders(){var e,t;const r=Object.assign({},this.headers),n=null!==(t=null===(e=this.auth.session())||void 0===e?void 0:e.access_token)&&void 0!==t?t:this.supabaseKey;return r.apikey=this.supabaseKey,r.Authorization=r.Authorization||`Bearer ${n}`,r}_listenForMultiTabEvents(){if(!this.multiTab||"undefined"===typeof window||!(null===window||void 0===window?void 0:window.addEventListener))return null;try{return null===window||void 0===window?void 0:window.addEventListener("storage",(e=>{var t,r,n;if("supabase.auth.token"===e.key){const o=JSON.parse(String(e.newValue)),i=null!==(r=null===(t=null===o||void 0===o?void 0:o.currentSession)||void 0===t?void 0:t.access_token)&&void 0!==r?r:void 0,a=null===(n=this.auth.session())||void 0===n?void 0:n.access_token;i?!a&&i?this._handleTokenChanged("SIGNED_IN",i,"STORAGE"):a!==i&&this._handleTokenChanged("TOKEN_REFRESHED",i,"STORAGE"):this._handleTokenChanged("SIGNED_OUT",i,"STORAGE")}}))}catch(e){return console.error("_listenForMultiTabEvents",e),null}}_listenForAuthEvents(){let{data:e}=this.auth.onAuthStateChange(((e,t)=>{this._handleTokenChanged(e,null===t||void 0===t?void 0:t.access_token,"CLIENT")}));return e}_handleTokenChanged(e,t,r){"TOKEN_REFRESHED"!==e&&"SIGNED_IN"!==e||this.changedAccessToken===t?"SIGNED_OUT"!==e&&"USER_DELETED"!==e||(this.realtime.setAuth(this.supabaseKey),"STORAGE"==r&&this.auth.signOut()):(this.realtime.setAuth(t),"STORAGE"==r&&this.auth.setAuth(t),this.changedAccessToken=t)}}var De=((e,t,r)=>new Re(e,t,r))("https://aquarbzeqxhedmczezal.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFxdWFyYnplcXhoZWRtY3plemFsIiwicm9sZSI6ImFub24iLCJpYXQiOjE2NjAzNzg5OTksImV4cCI6MTk3NTk1NDk5OX0.qB9WzeIEPeI9cr7nHk8_-Mbxc6e4IUBO41JZicFupbA"),Me=function(){var e=(0,n.Z)(i().mark((function e(t,r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/auth",{method:"POST",headers:new Headers({"Content-Type":"application/json"}),credentials:"same-origin",body:JSON.stringify({event:t,session:r})});case 2:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),Ie=function(){var e=(0,n.Z)(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/users/me",{method:"GET",credentials:"same-origin"});case 2:return t=e.sent,e.next=5,t.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Fe=function(){var e=(0,n.Z)(i().mark((function e(){var t,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/subscriptions/cancel",{method:"GET",credentials:"same-origin"});case 2:return t=e.sent,e.next=5,t.json();case 5:return r=e.sent,e.abrupt("return",{success:r.success});case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ne=function(){var e=(0,n.Z)(i().mark((function e(){var t,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/subscriptions/resume",{method:"GET",credentials:"same-origin"});case 2:return t=e.sent,e.next=5,t.json();case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},643:function(e,t,r){"use strict";r.d(t,{Ql:function(){return a},To:function(){return o}});var n={src:"/_next/static/media/watermark.ca49003e.svg",height:54,width:195},o=40,i=function(){var e=new window.Image;return e.src=n.src,e},a=function(e){return{type:e?"none":"logo",position:"bottom-right",text:{text:"MagicShot.app",size:22},x:-1e3,y:-1e3,logo:{image:i(),scale:1}}}},7597:function(e,t,r){"use strict";r.d(t,{T:function(){return l}});var n=r(7812),o=r(9499),i=r(7294),a=r(4042),s=r(643);function c(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?c(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l=(0,r(6902).ZP)((function(e){return{model:a.fG,setModel:function(t){return e((function(e){return u(u({},e),{},{model:t})}))},watermark:(0,s.Ql)(!1),setWatermark:function(t){return e((function(e){return u(u({},e),{},{watermark:u(u({},e.watermark),t)})}))},shapes:[],addShape:function(t){return e((function(e){return u(u({},e),{},{shapes:[].concat((0,n.Z)(e.shapes),[t])})}))},removeShapeById:function(t){return e((function(e){return u(u({},e),{},{shapes:e.shapes.filter((function(e){return e.id!==t}))})}))},setShapes:function(t){return e((function(e){var r=(0,n.Z)(t);return u(u({},e),{},{shapes:r})}))},selectedShape:null,setSelectedShape:function(t){return e((function(e){return u(u({},e),{},{selectedShape:t})}))},stageRef:(0,i.createRef)(),layerRef:(0,i.createRef)(),containerRef:(0,i.createRef)()}}))},6041:function(e,t,r){"use strict";r.d(t,{s:function(){return a}});var n=r(9499);function o(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<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var a=(0,r(6902).ZP)((function(e){return{upgradeModalOpen:!1,setUpgradeModalOpen:function(t){return e((function(e){return i(i({},e),{},{upgradeModalOpen:t})}))},authenticationModalOpen:!1,setAuthenticationModalOpen:function(t){return e((function(e){return i(i({},e),{},{authenticationModalOpen:t})}))},accountSettingsModalOpen:!1,setAccountSettingsModalOpen:function(t){return e((function(e){return i(i({},e),{},{accountSettingsModalOpen:t})}))},expiresInModalOpen:!1,setExpiresInModalOpen:function(t){return e((function(e){return i(i({},e),{},{expiresInModalOpen:t})}))},brandModalOpen:!1,setBrandModalOpen:function(t){return e((function(e){return i(i({},e),{},{brandModalOpen:t})}))}}}))},968:function(e,t,r){"use strict";r.d(t,{L:function(){return s}});var n=r(9499),o=(r(7794),r(4155),{subscriptionActive:!1,plan_id:null,signup_date:null,next_payment:null,paused_at:null,paused_from:null});function i(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 a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s=(0,r(6902).ZP)((function(e){return{user:null,userSubscription:o,session:null,updateUser:function(t,r){return e((function(e){return a(a({},e),{},{user:t,session:r})}))},resetUser:function(){return e((function(e){return a(a({},e),{},{user:null,session:null})}))},updateUserSubscription:function(t){return e((function(e){return a(a({},e),{},{userSubscription:t})}))}}}))},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(467)}])},5494:function(){},6780:function(){},9293:function(){},8357:function(){},8683:function(){},4993:function(){},4186:function(){},7064:function(){},5283:function(){},5822:function(){},906:function(){},9008:function(e,t,r){e.exports=r(2717)},1664:function(e,t,r){e.exports=r(7942)},1163:function(e,t,r){e.exports=r(9898)},4298:function(e,t,r){e.exports=r(2189)},4155:function(e){var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(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:i}catch(e){r=i}}();var s,c=[],u=!1,l=-1;function d(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},2703:function(e,t,r){"use strict";var n=r(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
1:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5697:function(e,t,r){e.exports=r(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9155:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(r(9727)),s=i(r(7294)),c=function(e){function t(t){var r=e.call(this,t)||this;return r.refCanvas=s.default.createRef(),r.confetti=null,r}return n(t,e),t.prototype.componentDidMount=function(){if(this.refCanvas.current){var e=this.props,t=e.resize,r=e.useWorker,n={resize:"undefined"===typeof t||t,useWorker:"undefined"===typeof r||r};this.confetti=a.default.create(this.refCanvas.current,n),this.setRefConfetti()}},t.prototype.componentDidUpdate=function(e){var t=this.props,r=t.fire,n=t.reset,o=!!r,i=r!==e.fire;o&&i&&this.fireConfetti();var a=!!n,s=n!==e.reset;a&&s&&this.resetConfetti()},t.prototype.componentWillUnmount=function(){this.unsetRefConfetti()},t.prototype.setRefConfetti=function(){var e=this.props.refConfetti;e&&e(this.confetti)},t.prototype.unsetRefConfetti=function(){var e=this.props.refConfetti;e&&e(null)},t.prototype.fireConfetti=function(){if(this.confetti){var e=this.props,t=e.onFire,r=e.onDecay,n=(e.onReset,e.className,e.style,e.width,e.height,e.refConfetti,e.fire,e.reset,o(e,["onFire","onDecay","onReset","className","style","width","height","refConfetti","fire","reset"]));t&&t();var i=this.confetti(n);i&&i.then((function(){r&&r()}))}},t.prototype.resetConfetti=function(){if(this.confetti){this.confetti.reset();var e=this.props.onReset;e&&e()}},t.prototype.render=function(){var e=this.props,t=e.style,r=e.className,n=e.width,o=e.height;return s.default.createElement("canvas",{ref:this.refCanvas,style:t,className:r,width:n,height:o})},t}(s.default.Component);t.default=c},2512:function(e,t,r){"use strict";r.d(t,{ZP:function(){return ve}});var n=r(7294),o=r(5697),i=r.n(o),a=r(655),s=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function c(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),n=s.get(r);
1n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof r.path){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:"string"===typeof t?t:"string"===typeof n&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}var u=[".DS_Store","Thumbs.db"];function l(e){return"object"===typeof e&&null!==e}function d(e){return m(e.target.files).map((function(e){return c(e)}))}function f(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 c(e)}))]}}))}))}function p(e,t){return(0,a.mG)(this,void 0,void 0,(function(){var r;return(0,a.Jh)(this,(function(n){switch(n.label){case 0:return e.items?(r=m(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,r]:[4,Promise.all(r.map(v))]):[3,2];case 1:return[2,h(g(n.sent()))];case 2:return[2,h(m(e.files).map((function(e){return c(e)})))]}}))}))}function h(e){return e.filter((function(e){return-1===u.indexOf(e.name)}))}function m(e){if(null===e)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function v(e){if("function"!==typeof e.webkitGetAsEntry)return y(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?x(t):y(e)}function g(e){return e.reduce((function(e,t){return(0,a.ev)((0,a.ev)([],(0,a.CR)(e),!1),(0,a.CR)(Array.isArray(t)?g(t):[t]),!1)}),[])}function y(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=c(t);return Promise.resolve(r)}function b(e){return(0,a.mG)(this,void 0,void 0,(function(){return(0,a.Jh)(this,(function(t){return[2,e.isDirectory?x(e):w(e)]}))}))}function x(e){var t=e.createReader();return new Promise((function(e,r){var n=[];!function o(){var i=this;t.readEntries((function(t){return(0,a.mG)(i,void 0,void 0,(function(){var i,s,c;return(0,a.Jh)(this,(function(a){switch(a.label){case 0:if(t.length)return[3,5];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Promise.all(n)];case 2:return i=a.sent(),e(i),[3,4];case 3:return s=a.sent(),r(s),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(b)),n.push(c),o(),a.label=6;case 6:return[2]}}
1))}))}),(function(e){r(e)}))}()}))}function w(e){return(0,a.mG)(this,void 0,void 0,(function(){return(0,a.Jh)(this,(function(t){return[2,new Promise((function(t,r){e.file((function(r){var n=c(r,e.fullPath);t(n)}),(function(e){r(e)}))}))]}))}))}var C=r(8363);function k(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(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 O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||P(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"===typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var T="file-invalid-type",A="file-too-large",R="file-too-small",D="too-many-files",M=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:T,message:"File type must be ".concat(t)}},I=function(e){return{code:A,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},F=function(e){return{code:R,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},N={code:D,message:"Too many files"};function L(e,t){var r="application/x-moz-file"===e.type||(0,C.Z)(e,t);return[r,r?null:M(t)]}function B(e,t,r){if(z(e.size))if(z(t)&&z(r)){if(e.size>r)return[!1,I(r)];if(e.size<t)return[!1,F(t)]}else{if(z(t)&&e.size<t)return[!1,F(t)];if(z(r)&&e.size>r)return[!1,I(r)]}return[!0,null]}function z(e){return void 0!==e&&null!==e}function V(e){var t=e.files,r=e.accept,n=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=E(L(e,r),1)[0],i=E(B(e,n,o),1)[0],a=s?s(e):null;return t&&i&&!a}))}function U(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function $(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 W(e){e.preventDefault()}function Z(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function H(e){return-1!==e.indexOf("Edge/")}function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Z(e)||H(e)}function G(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return t.some((function(t){return!U(e)&&t&&t.apply(void 0,[e].concat(n)),U(e)}))}}function Q(){return"showOpenFilePicker"in window}function Y(e){return z(e)?[{accept:Object.entries(e).filter((function(e){var t=E(e,2),r=t[0],n=t[1],o=!0;return ee(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(n)&&n.every(te)||(console.warn('Skipped "'.concat(r,'" because an invali
1d file extension was provided.')),o=!1),o})).reduce((function(e,t){var r=E(t,2),n=r[0],o=r[1];return O(O({},e),{},j({},n,o))}),{})}]:e}function K(e){if(z(e))return Object.entries(e).reduce((function(e,t){var r=E(t,2),n=r[0],o=r[1];return[].concat(k(e),[n],k(o))}),[]).filter((function(e){return ee(e)||te(e)})).join(",")}function X(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function J(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function ee(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function te(e){return/^.*\.[\w]+$/.test(e)}var re=["children"],ne=["open"],oe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ie=["refKey","onChange","onClick"];function ae(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ce(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||ce(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){if(e){if("string"===typeof e)return ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ue(e,t):void 0}}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function le(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 de(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){fe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pe(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var he=(0,n.forwardRef)((function(e,t){var r=e.children,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=de(de({},me),e),r=t.accept,o=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,c=t.multiple,u=t.maxFiles,l=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.onFileDialogOpen,y=t.useFsAccessApi,b=t.autoFocus,x=t.preventDropOnDocument,w=t.noClick,C=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,O=t.onError,j=t.validator,E=(0,n.useMemo)((function(){return K(r)}),[r]),P=(0,n.useMemo)((function(){return Y(r)}),[r]),_=(0,n.useMemo)((function(){return"function"===typeof g?g:be}),[g]),T=(0,n.useMemo)((function(){return"function"===typeof v?v:be}),[v]),A=(0,n.useRef)(null),R=(0,n.useRef)(null),D=se((0,n.useReducer)(ye,ge),2),M=D[0],I=D[1],F=M.isFocused,z=M.isFileDialogActive,Z=(0,n.useRef)("undefined"!==typeof window&&window.isSecureContext&&y&&Q()),H=function(){!Z.current&&z&&setTimeout((function(){R.current&&(R.current.files.length||(I({type:"closeDialog"}),T()))}),300)};(0,n.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[R,z,T,Z]);var ee=(0,n.useRef)([]),te=function(e){A.current&&A.current.contains(e.target)||(e.preventDefault(),ee.current=[])};(0,n.useEffect)((function(){return x&&(document.addEventListener("dragover",W,!1),document.addEventListener("drop",te,!1)),function(){x&&(document.removeEventListener("dragover",W),document.removeEventListener("drop",te))}}),[A,x]),(0,n.useEffect)((function(){return!o&&b&&A.current&&A.current.focus(),function(){}}
1),[A,b,o]);var re=(0,n.useCallback)((function(e){O?O(e):console.error(e)}),[O]),ne=(0,n.useCallback)((function(e){e.preventDefault(),e.persist(),Ee(e),ee.current=[].concat(ae(ee.current),[e.target]),$(e)&&Promise.resolve(i(e)).then((function(t){if(!U(e)||S){var r=t.length,n=r>0&&V({files:t,accept:E,minSize:s,maxSize:a,multiple:c,maxFiles:u,validator:j});I({isDragAccept:n,isDragReject:r>0&&!n,isDragActive:!0,type:"setDraggedFiles"}),l&&l(e)}})).catch((function(e){return re(e)}))}),[i,l,re,S,E,s,a,c,u,j]),ce=(0,n.useCallback)((function(e){e.preventDefault(),e.persist(),Ee(e);var t=$(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(r){}return t&&f&&f(e),!1}),[f,S]),ue=(0,n.useCallback)((function(e){e.preventDefault(),e.persist(),Ee(e);var t=ee.current.filter((function(e){return A.current&&A.current.contains(e)})),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),ee.current=t,t.length>0||(I({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),$(e)&&d&&d(e))}),[A,d,S]),le=(0,n.useCallback)((function(e,t){var r=[],n=[];e.forEach((function(e){var t=se(L(e,E),2),o=t[0],i=t[1],c=se(B(e,s,a),2),u=c[0],l=c[1],d=j?j(e):null;if(o&&u&&!d)r.push(e);else{var f=[i,l];d&&(f=f.concat(d)),n.push({file:e,errors:f.filter((function(e){return e}))})}})),(!c&&r.length>1||c&&u>=1&&r.length>u)&&(r.forEach((function(e){n.push({file:e,errors:[N]})})),r.splice(0)),I({acceptedFiles:r,fileRejections:n,type:"setFiles"}),p&&p(r,n,t),n.length>0&&m&&m(n,t),r.length>0&&h&&h(r,t)}),[I,c,E,s,a,u,p,h,m,j]),he=(0,n.useCallback)((function(e){e.preventDefault(),e.persist(),Ee(e),ee.current=[],$(e)&&Promise.resolve(i(e)).then((function(t){U(e)&&!S||le(t,e)})).catch((function(e){return re(e)})),I({type:"reset"})}),[i,le,re,S]),ve=(0,n.useCallback)((function(){if(Z.current){I({type:"openDialog"}),_();var e={multiple:c,types:P};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){le(e,null),I({type:"closeDialog"})})).catch((function(e){X(e)?(T(e),I({type:"closeDialog"})):J(e)?(Z.current=!1,R.current?(R.current.value=null,R.current.click()):re(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):re(e)}))}else R.current&&(I({type:"openDialog"}),_(),R.current.value=null,R.current.click())}),[I,_,T,y,le,re,P,c]),xe=(0,n.useCallback)((function(e){A.current&&A.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),ve()))}),[A,ve]),we=(0,n.useCallback)((function(){I({type:"focus"})}),[]),Ce=(0,n.useCallback)((function(){I({type:"blur"})}),[]),ke=(0,n.useCallback)((function(){w||(q()?setTimeout(ve,0):ve())}),[w,ve]),Se=function(e){return o?null:e},Oe=function(e){return C?null:Se(e)},je=function(e){return k?null:Se(e)},Ee=function(e){S&&e.stopPropagation()},Pe=(0,n.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.role,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=pe(e,oe);return de(de(fe({onKeyDown:Oe(G(i,xe)),onFocus:Oe(G(a,we)),onBlur:Oe(G(s,Ce)),onClick:Se(G(c,ke)),onDragEnter:je(G(u,ne)),onDragOver:je(G(l,ce)),onDragLeave:je(G(d,ue)),onDrop:je(G(f,he)),role:"string"===typeof n&&""!==n?n:"presentation"},r,A),o||C?{}:{tabIndex:0}),p)}}),[A,xe,we,Ce,ke,ne,ce,ue,he,C,k,o]),_e=(0,n.useCallback)((function(e){e.stopPropagation()}),[]),Te=(0,n.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.onChange,o=e.onClick,i=pe(e,ie);return de(de({},fe({accept:E,multiple:c,type:"file",style:{display:"none"},onChange:Se(G(n,he)),onClick:Se(G(o,_e)),tabIndex:-1},r,R)),i)}}),[R,r,c,he,o]);return de(de({},M),{},{isFocused:F&&!o,getRootProps:Pe,getInputProps:Te,rootRef:A,inputRef:R,open:Se(ve)})}(pe(e,re)),i=o.open,a=pe(o,ne);return(0,n.useImperativeHandle)(t,(function(){return{open:i}}),[i]),n.createElement(n.Fragment,null,r(de(de({},a),{},{open:i})))}
1));he.displayName="Dropzone";var me={disabled:!1,getFilesFromEvent:function(e){return(0,a.mG)(this,void 0,void 0,(function(){return(0,a.Jh)(this,(function(t){return l(e)&&l(e.dataTransfer)?[2,p(e.dataTransfer,e.type)]:function(e){return l(e)&&l(e.target)}(e)?[2,d(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,f(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};he.defaultProps=me,he.propTypes={children:i().func,accept:i().objectOf(i().arrayOf(i().string)),multiple:i().bool,preventDropOnDocument:i().bool,noClick:i().bool,noKeyboard:i().bool,noDrag:i().bool,noDragEventsBubbling:i().bool,minSize:i().number,maxSize:i().number,maxFiles:i().number,disabled:i().bool,getFilesFromEvent:i().func,onFileDialogCancel:i().func,onFileDialogOpen:i().func,useFsAccessApi:i().bool,autoFocus:i().bool,onDragEnter:i().func,onDragLeave:i().func,onDragOver:i().func,onDrop:i().func,onDropAccepted:i().func,onDropRejected:i().func,onError:i().func,validator:i().func};var ve=he,ge={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ye(e,t){switch(t.type){case"focus":return de(de({},e),{},{isFocused:!0});case"blur":return de(de({},e),{},{isFocused:!1});case"openDialog":return de(de({},ge),{},{isFileDialogActive:!0});case"closeDialog":return de(de({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return de(de({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return de(de({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return de({},ge);default:return e}}function be(){}},9590:function(e){var t="undefined"!==typeof Element,r="function"===typeof Map,n="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,c,u,l;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(c=s;0!==c--;)if(!i(e[c],a[c]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;for(l=e.entries();!(c=l.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(c=s;0!==c--;)if(e[c]!==a[c])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(c=s;0!==c--;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(t&&e instanceof Element)return!1;for(c=s;0!==c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!e.$$typeof)&&!i(e[u[c]],a[u[c]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}},9921:function(e,t){"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case c:return e;default:return t}}case o:return t}}}function C(e){return w(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===l},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=w},9864:function(e,t,r){"use strict";e.exports=r(9921)},9852:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(3794),o=r(2943),i=r(2288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!i.sk&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),function(){window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}},t}(0,n.Z)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?r.setFocused(e):r.onFocus()}))},r.setFocused=function(e){this.focused=e,e&&this.onFocus()}
1,r.onFocus=function(){this.listeners.forEach((function(e){e()}))},r.isFocused=function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(o.l))},6747:function(e,t,r){"use strict";r.d(t,{QueryClient:function(){return n.S}});var n=r(1832),o=r(6755);r.o(o,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return o.QueryClientProvider}}),r.o(o,"useQuery")&&r.d(t,{useQuery:function(){return o.useQuery}})},1909:function(e,t,r){"use strict";r.d(t,{E:function(){return i},j:function(){return o}});var n=console;function o(){return n}function i(e){n=e}},101:function(e,t,r){"use strict";r.d(t,{V:function(){return i}});var n=r(2288),o=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,n.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.schedule((function(){e.apply(void 0,n)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,n.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}(),i=new o},68:function(e,t,r){"use strict";r.d(t,{N:function(){return a}});var n=r(3794),o=r(2943),i=r(2288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!i.sk&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("online",r,!1),window.addEventListener("offline",r,!1),function(){window.removeEventListener("online",r),window.removeEventListener("offline",r)}}},t}(0,n.Z)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?r.setOnline(e):r.onOnline()}))},r.setOnline=function(e){this.online=e,e&&this.onOnline()},r.onOnline=function(){this.listeners.forEach((function(e){e()}))},r.isOnline=function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine},t}(o.l))},1832:function(e,t,r){"use strict";r.d(t,{S:function(){return y}});var n=r(4312),o=r(2288),i=r(3794),a=r(101),s=r(1909),c=r(1216),u=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,n.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,o.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var r,n,i=this.state.data,a=(0,o.SE)(e,i);return(null==(r=(n=this.options).isDataEqual)?void 0:r.call(n,i,a))?a=i:!1!==this.options.structuralSharing&&(a=(0,o.Q$)(i,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(o.ZT).catch(o.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,o.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abort
1SignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var r,n,i,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var u;return null==(u=this.retryer)||u.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var d=(0,o.mc)(this.queryKey),f=(0,o.G9)(),p={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(p,"signal",{enumerable:!0,get:function(){if(f)return a.abortSignalConsumed=!0,f.signal}});var h,m,v={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(p)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(r=this.options.behavior)?void 0:r.onFetch)&&(null==(h=this.options.behavior)||h.onFetch(v));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(n=v.fetchOptions)?void 0:n.meta))||this.dispatch({type:"fetch",meta:null==(m=v.fetchOptions)?void 0:m.meta});return this.retryer=new c.m4({fn:v.fetchFn,abort:null==f||null==(i=f.abort)?void 0:i.bind(f),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){(0,c.DV)(e)&&e.silent||a.dispatch({type:"error",error:e}),(0,c.DV)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),(0,s.j)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"===typeof e.initialData?e.initialData():e.initialData,r="undefined"!==typeof e.initialData?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,n="undefined"!==typeof t;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:n?"success":"idle"}},t.reducer=function(e,t){var r,o;switch(t.type){case"failed":return(0,n.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,n.Z)({},e,{isPaused:!0});case"continue":return(0,n.Z)({},e,{isPaused:!1});case"fetch":return(0,n.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(r=t.meta)?r:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,n.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(o=t.dataUpdatedAt)?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;return(0,c.DV)(i)&&i.revert&&this.revertState?(0,n.Z)({},this.revertState):(0,n.Z)({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,n.Z)({},e,{isInvalidated:!0});case"setState":return(0,n.Z)({},e,t.state);default:return e}},e}(),l=r(2943),d=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.queries=[],r.queriesMap={},r}(0,i.Z)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n,i=t.queryKey,a=null!=(n=t.queryHash)?n:(0,o.Rm)(i,t),s=this.get(a);return s||(s=new u({cache:this,queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(s)),s},r.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},r.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},r.clear=function(){var e=this;
1a.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},r.get=function(e){return this.queriesMap[e]},r.getAll=function(){return this.queries},r.find=function(e,t){var r=(0,o.I6)(e,t)[0];return"undefined"===typeof r.exact&&(r.exact=!0),this.queries.find((function(e){return(0,o._x)(r,e)}))},r.findAll=function(e,t){var r=(0,o.I6)(e,t)[0];return Object.keys(r).length>0?this.queries.filter((function(e){return(0,o._x)(r,e)})):this.queries},r.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},r.onFocus=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},r.onOnline=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(l.l),f=function(){function e(e){this.options=(0,n.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(o.ZT).catch(o.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,r="loading"===this.state.status,n=Promise.resolve();return r||(this.dispatch({type:"loading",variables:this.options.variables}),n=n.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),n.then((function(){return t.executeMutation()})).then((function(r){e=r,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,s.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new c.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,n.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,n.Z)({},e,{isPaused:!0});case"continue":return(0,n.Z)({},e,{isPaused:!1});case"loading":return(0,n.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,n.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,n.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,n.Z)({},e,t.state);default:return e}}
1(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();var p=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.mutations=[],r.mutationId=0,r}(0,i.Z)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n=new f({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(n),n},r.add=function(e){this.mutations.push(e),this.notify(e)},r.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},r.clear=function(){var e=this;a.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},r.getAll=function(){return this.mutations},r.find=function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,o.X7)(e,t)}))},r.findAll=function(e){return this.mutations.filter((function(t){return(0,o.X7)(e,t)}))},r.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPau
1sed}));return a.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(o.ZT)}))}),Promise.resolve())}))},t}(l.l),h=r(9852),m=r(68);function v(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function g(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var y=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new p,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=h.j.subscribe((function(){h.j.isFocused()&&m.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=m.N.subscribe((function(){h.j.isFocused()&&m.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var r=(0,o.I6)(e,t)[0];return r.fetching=!0,this.queryCache.findAll(r).length},t.isMutating=function(e){return this.mutationCache.findAll((0,n.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,r){var n=(0,o._v)(e),i=this.defaultQueryOptions(n);return this.queryCache.build(this,i).setData(t,r)},t.setQueriesData=function(e,t,r){var n=this;return a.V.batch((function(){return n.getQueryCache().findAll(e).map((function(e){var o=e.queryKey;return[o,n.setQueryData(o,t,r)]}))}))},t.getQueryState=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state},t.removeQueries=function(e,t){var r=(0,o.I6)(e,t)[0],n=this.queryCache;a.V.batch((function(){n.findAll(r).forEach((function(e){n.remove(e)}))}))},t.resetQueries=function(e,t,r){var i=this,s=(0,o.I6)(e,t,r),c=s[0],u=s[1],l=this.queryCache,d=(0,n.Z)({},c,{active:!0});return a.V.batch((function(){return l.findAll(c).forEach((function(e){e.reset()})),i.refetchQueries(d,u)}))},t.cancelQueries=function(e,t,r){var n=this,i=(0,o.I6)(e,t,r),s=i[0],c=i[1],u=void 0===c?{}:c;"undefined"===typeof u.revert&&(u.revert=!0);var l=a.V.batch((function(){return n.queryCache.findAll(s).map((function(e){return e.cancel(u)}))}));return Promise.all(l).then(o.ZT).catch(o.ZT)},t.invalidateQueries=function(e,t,r){var i,s,c,u=this,l=(0,o.I6)(e,t,r),d=l[0],f=l[1],p=(0,n.Z)({},d,{active:null==(i=null!=(s=d.refetchActive)?s:d.active)||i,inactive:null!=(c=d.refetchInactive)&&c});return a.V.batch((function(){return u.queryCache.findAll(d).forEach((function(e){e.invalidate()})),u.refetchQueries(p,f)}))},t.refetchQueries=function(e,t,r){var i=this,s=(0,o.I6)(e,t,r),c=s[0],u=s[1],l=a.V.batch((function(){return i.queryCache.findAll(c).map((function(e){return e.fetch(void 0,(0,n.Z)({},u,{meta:{refetchPage:null==c?void 0:c.refetchPage}}))}))})),d=Promise.all(l).then(o.ZT);return(null==u?void 0:u.throwOnError)||(d=d.catch(o.ZT)),d},t.fetchQuery=function(e,t,r){var n=(0,o._v)(e,t,r),i=this.defaultQueryOptions(n);"undefined"===typeof i.retry&&(i.retry=!1);var a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,r){return this.fetchQuery(e,t,r).then(o.ZT).catch(o.ZT)},t.fetchInfiniteQuery=function(e,t,r){var n=(0,o._v)(e,t,r);return n.behavior={onFetch:function(e){e.fetchFn=function(){var t,r,n,i,a,s,u,l=null==(t=e.fetchOptions)||null==(r=t.meta)?void 0:r.refetchPage,d=null==(n=e.fetchOptions)||null==(i=n.meta)?void 0:i.fetchMore,f=null==d?void 0:d.pageParam,p="forward"===(null==d?void 0:d.direction),h="backward"===(null==d?void 0:d.direction),m=(null==(a=e.state.data)?void 0:a.pages)||[],y=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,o.G9)(),x=null==b?void 0:b.signal,w=y,C=!1,k=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},S=function(e,t,r,n){return w=n?[t].concat(w):[].concat(w,[t]),n?[r].concat(e):[].concat(e,[r])},O=function(t,r,n,o){if(C)return Promise.reject("Cancelled");if("undefined"===typeof n&&!r&&t.length)return Promise.resolve(t);var i={queryKey:e.queryKey,signal:x,pageParam:n,meta:e.meta},a=k(i),s=Promise.resolve(a).then((function(e){return S(t,n,e,o)}));return(0,c.LE)(a)&&(s.cancel=a.cancel),s};if(m.length)if(p){var j="undefined"!==typeof f,E=j?f:v(e.options,m);u=O(m,j,E)}else if(h){var P="undefined"!==typeof f,_=P?f:g(e.options,m);u=O(m,P,_,!0)}else!function(){w=[];
1var t="undefined"===typeof e.options.getNextPageParam,r=!l||!m[0]||l(m[0],0,m);u=r?O([],t,y[0]):Promise.resolve(S([],y[0],m[0]));for(var n=function(r){u=u.then((function(n){if(!l||!m[r]||l(m[r],r,m)){var o=t?y[r]:v(e.options,n);return O(n,t,o)}return Promise.resolve(S(n,y[r],m[r]))}))},o=1;o<m.length;o++)n(o)}();else u=O([]);var T=u.then((function(e){return{pages:e,pageParams:w}}));return T.cancel=function(){C=!0,null==b||b.abort(),(0,c.LE)(u)&&u.cancel()},T}}},this.fetchQuery(n)},t.prefetchInfiniteQuery=function(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(o.ZT).catch(o.ZT)},t.cancelMutations=function(){var e=this,t=a.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(o.ZT).catch(o.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var r=this.queryDefaults.find((function(t){return(0,o.yF)(e)===(0,o.yF)(t.queryKey)}));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,o.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var r=this.mutationDefaults.find((function(t){return(0,o.yF)(e)===(0,o.yF)(t.mutationKey)}));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,o.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,n.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,o.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,n.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},1216:function(e,t,r){"use strict";r.d(t,{DV:function(){return u},LE:function(){return s},m4:function(){return l}});var n=r(9852),o=r(68),i=r(2288);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"===typeof(null==e?void 0:e.cancel)}var c=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function u(e){return e instanceof c}var l=function(e){var t,r,u,l,d=this,f=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){f=!0},this.continueRetry=function(){f=!1},this.continue=function(){return null==r?void 0:r()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){u=e,l=t}));var p=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==r||r(),u(t))},h=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==r||r(),l(t))};!function u(){if(!d.isResolved){var l;try{l=e.fn()}catch(m){l=Promise.reject(m)}t=function(e){if(!d.isResolved&&(h(new c(e)),null==d.abort||d.abort(),s(l)))try{l.cancel()}catch(t){}},d.isTransportCancelable=s(l),Promise.resolve(l).then(p).catch((function(t){var s,c;if(!d.isResolved){var l=null!=(s=e.retry)?s:3,p=null!=(c=e.retryDelay)?c:a,m="function"===typeof p?p(d.failureCount,t):p,v=!0===l||"number"===typeof l&&d.failureCount<l||"function"===typeof l&&l(d.failureCount,t);!f&&v?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,i.Gh)(m).then((function(){if(!n.j.isFocused()||!o.N.isOnline())return new Promise((function(t){r=t,d.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){r=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){f?h(t):u()}))):h(t)}}))}}()}},2943:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});var n=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,r=e||function(){};return this.listeners.push(r),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==r})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},6755:function(){},2288:function(e,t,r){"use strict";r.d(t,{A4:function(){return S},G9:function(){return O},Gh:function(){return k},I6:function(){return d},Kp:function(){return u},PN:function(){return s},Q$:function(){return y},Rm:function(){return h},SE:function(){return a},VS:function(){return b},X7:function(){return p},ZT:function(){return i},_v:function(){return l},_x:function(){return f},mc:function(){return c},sk:function(){return o},to:function(){return v},yF:function(){return m}});var n=r(4312),o="undefined"===typeof window;function i(){}function a(e,t){return"function"===typeof e?e(t):e}function s(e){return"number"===typeof e&&e>=0&&e!==1/0}function c(e){return Array.isArray(e)?e:[e]}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,r){return C(e)?"function"===typeof t?(0,n.Z)({},r,{queryKey:e,queryFn:t}):(0,n.Z)({},t,{queryKey:e}):e}function d(e,t,r){return C(e)?[(0,n.Z)({},t,{queryKey:e}),r]:[e||{},t]}function f(e,t){var r=e.active,n=e.exact,o=e.fetching,i=e.inactive,a=e.predicate,s=e.queryKey,c=e.stale;if(C(s))if(n){if(t.queryHash!==h(s,t.options))return!1}else if(!v(t.queryKey,s))return!1;var u=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(r,i);if("none"===u)return!1;if("all"!==u){var l=t.isActive();if("active"===u&&!l)return!1;if("inactive"===u&&l)return!1}return("boolean"!==typeof c||t.isStale()===c)&&(("boolean"!==typeof o||t.isFetching()===o)&&!(a&&!a(t)))}function p(e,t){var r=e.exact,n=e.fetching,o=e.predicate,i=e.mutationKey;if(C(i)){if(!t.options.mutationKey)return!1;if(r){if(m(t.options.mutationKey)!==m(i))return!1}else if(!v(t.options.mutationKey,i))return!1}return("boolean"!==typeof n||"loading"===t.state.status===n)&&!(o&&!o(t))}function h(e,t){return((null==t?void 0:t.queryKeyHashFn)||m)(e)}function m(e){var t,r=c(e);return t=r,JSON.stringify(t,(function(e,t){return x(t)?Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{}):t}))}function v(e,t){return g(c(e),c(t))}function g(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(r){return!g(e[r],t[r])})))}function y(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||x(e)&&x(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{},s=0,c=0;c<i;c++){var u=r?c:o[c];a[u]=y(e[u],t[u]),a[u]===e[u]&&s++}return n===i&&s===n?e:a}return t}function b(e,t){if(e&&!t||t&&!e)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}function x(e){if(!w(e))return!1;var t=e.constructor;if("undefined"===typeof t)return!0;var r=t.prototype;return!!w(r)&&!!r.hasOwnProperty("isPrototypeOf")}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function C(e){return"string"===typeof e||Array.isArray(e)}function k(e){return new Promise((function(t){setTimeout(t,e)}))}function S(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function O(){if("function"===typeof AbortController)return new AbortController}},8767:function(e,t,r){"use strict";r.d(t,{QueryClient:function(){return n.QueryClient},QueryClientProvider:function(){return o.QueryClientProvider},useQuery:function(){return o.useQuery}});var n=r(6747);r.o(n,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return n.QueryClientProvider}}),r.o(n,"useQuery")&&r.d(t,{useQuery:function(){return n.useQuery}});var o=r(5931)},5931:function(e,t,r){"use strict";r.d(t,{QueryClientProvider:function(){return d},useQuery:function(){return j}});var n=r(101),o=r(3935).unstable_batchedUpdates;n.V.setBatchNotifyFunction(o);var i=r(1909),a=console;(0,i.E)(a);var s=r(7294),c=s.createContext(void 0),u=s.createContext(!1);function l(e){return e&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=c),window.ReactQueryClientContext):c}
1var d=function(e){var t=e.client,r=e.contextSharing,n=void 0!==r&&r,o=e.children;s.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var i=l(n);return s.createElement(u.Provider,{value:n},s.createElement(i.Provider,{value:t},o))},f=r(4312),p=r(3794),h=r(2288),m=r(9852),v=r(2943),g=r(1216),y=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.options=r,n.trackedProps=[],n.selectError=null,n.bindMethods(),n.setOptions(r),n}(0,p.Z)(t,e);var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),b(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return x(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return x(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(e,t){var r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();var o=this.hasListeners();o&&w(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===n&&this.options.enabled===r.enabled&&this.options.staleTime===r.staleTime||this.updateStaleTimeout();var i=this.computeRefetchInterval();!o||this.currentQuery===n&&this.options.enabled===r.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)},r.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,t);return this.createResult(r,t)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(e,t){var r=this,n={},o=function(e){r.trackedProps.includes(e)||r.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:function(){return o(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&o("error"),n},r.getNextResult=function(e){var t=this;return new Promise((function(r,n){var o=t.subscribe((function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?n(t.error):r(t))}))}))},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(e){return this.fetch((0,f.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},r.fetchOptimistic=function(e){var t=this,r=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,r);return n.fetch().then((function(){return t.createResult(n,r)}))},r.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},r.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(h.ZT)),t},r.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!h.sk&&!this.currentResult.isStale&&(0,h.PN)(this.options.staleTime)){var t=(0,h.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},r.computeRefetchInterval=function(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},r.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!h.sk&&!1!==this.options.enabled&&(0,h.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackgroun
vendor: 1,081 bytes, line 1
1d||m.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(e,t){var r,n=this.currentQuery,o=this.options,a=this.currentResult,s=this.currentResultState,c=this.currentResultOptions,u=e!==n,l=u?e.state:this.currentQueryInitialState,d=u?this.currentResult:this.previousQueryResult,f=e.state,p=f.dataUpdatedAt,m=f.error,v=f.errorUpdatedAt,g=f.isFetching,y=f.status,x=!1,k=!1;if(t.optimisticResults){var S=this.hasListeners(),O=!S&&b(e,t),j=S&&w(e,n,t,o);(O||j)&&(g=!0,p||(y="loading"))}if(t.keepPreviousData&&!f.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==y)r=d.data,p=d.dataUpdatedAt,y=d.status,x=!0;
1else if(t.select&&"undefined"!==typeof f.data)if(a&&f.data===(null==s?void 0:s.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(f.data),!1!==t.structuralSharing&&(r=(0,h.Q$)(null==a?void 0:a.data,r)),this.selectResult=r,this.selectError=null}catch(P){(0,i.j)().error(P),this.selectError=P}else r=f.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof r&&("loading"===y||"idle"===y)){var E;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==c?void 0:c.placeholderData))E=a.data;else if(E="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof E)try{E=t.select(E),!1!==t.structuralSharing&&(E=(0,h.Q$)(null==a?void 0:a.data,E)),this.selectError=null}catch(P){(0,i.j)().error(P),this.selectError=P}"undefined"!==typeof E&&(y="success",r=E,k=!0)}return this.selectError&&(m=this.selectError,r=this.selectResult,v=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:r,dataUpdatedAt:p,error:m,errorUpdatedAt:v,failureCount:f.fetchFailureCount,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&"loading"!==y,isLoadingError:"error"===y&&0===f.dataUpdatedAt,isPlaceholderData:k,isPreviousData:x,isRefetchError:"error"===y&&0!==f.dataUpdatedAt,isStale:C(e,t),refetch:this.refetch,remove:this.remove}},r.shouldNotifyListeners=function(e,t){if(!t)return!0;var r=this.options,n=r.notifyOnChangeProps,o=r.notifyOnChangePropsExclusions;if(!n&&!o)return!0;if("tracked"===n&&!this.trackedProps.length)return!0;var i="tracked"===n?this.trackedProps:n;return Object.keys(e).some((function(r){var n=r,a=e[n]!==t[n],s=null==i?void 0:i.some((function(e){return e===r})),c=null==o?void 0:o.some((function(e){return e===r}));return a&&!c&&(!i||s)}))},r.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,h.VS)(this.currentResult,t)){var r={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(r.listeners=!0),this.notify((0,f.Z)({},r,e))}},r.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},r.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,g.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},r.notify=function(e){var t=this;n.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(v.l);function b(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&x(e,t,t.refetchOnMount)}function x(e,t,r){if(!1!==t.enabled){var n="function"===typeof r?r(e):r;return"always"===n||!1!==n&&C(e,t)}return!1}function w(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&C(e,r)}function C(e,t){return e.isStaleByTime(t.staleTime)}function k(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var S=s.createContext(k());function O(e,t){var r=s.useRef(!1),o=s.useState(0)[1],i=function(){var e=s.useContext(l(s.useContext(u)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e}(),a=s.useContext(S),c=i.defaultQueryObserverOptions(e);c.optimisticResults=!0,c.onError&&(c.onError=n.V.batchCalls(c.onError)),c.onSuccess&&(c.onSuccess=n.V.batchCalls(c.onSuccess)),c.onSettled&&(c.onSettled=n.V.batchCalls(c.onSettled)),c.suspense&&("number"!==typeof c.staleTime&&(c.staleTime=1e3),0===c.cacheTime&&(c.cacheTime=1)),(c.suspense||c.useErrorBoundary)&&(a.isReset()||(c.retryOnMount=!1));var d,f,p,h=s.useState((function(){return new t(i,c)}))[0],m=h.getOptimisticResult(c);if(s.useEffect((function(){r.current=!0,a.clearReset();var e=h.subscribe(n.V.batchCalls((function(){r.current&&o((function(e){return e+1}))})));return h.updateResult(),function(){r.current=!1,e()}}),[a,h]),s.useEffect((function(){h.setOptions(c,{listeners:!1})}),[c,h]),c.suspense&&m.isLoading)throw h.fetchOptimistic(c).then((function(e){var t=e.data;null==c.onSuccess||c.onSuccess(t),null==c.onSettled||c.onSettled(t,null)})).catch((function(e){a.clearReset(),null==c.onError||c.onError(e),null==c.onSettled||c.onSettled(void 0,e)}));if(m.isError&&!a.isReset()&&!m.isFetching&&(d=c.suspense,f=c.useErrorBoundary,p=[m.error,h.getCurrentQuery()],"function"===typeof f?f.apply(void 0,p):"boolean"===typeof f?f:d))throw m.error;return"tracked"===c.notifyOnChangeProps&&(m=h.trackResult(m,c)),m}function j(e,t,r){return O((0,h._v)(e,t,r),y)}},1742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach((function(t){e.addRange(t)}
1)),t&&t.focus()}}},655:function(e,t,r){"use strict";r.d(t,{CR:function(){return l},Jh:function(){return c},XA:function(){return u},ZT:function(){return o},_T:function(){return a},ev:function(){return d},mG:function(){return s},pi:function(){return i}});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function s(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function c(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}Object.create;function u(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function d(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create},5840:function(e,t,r){var n;if("object"===typeof globalThis)n=globalThis;else try{n=r(284)}catch(s){}finally{if(n||"undefined"===typeof window||(n=window),!n)throw new Error("Could not determine global this")}var o=n.WebSocket||n.MozWebSocket,i=r(9387);function a(e,t){return t?new o(e,t):new o(e)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(a,e,{get:function(){return o[e]}})})),e.exports={w3cwebsocket:o?a:null,version:i}},9387:function(e,t,r){e.exports=r(9794).version},6902:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c}});const n=e=>{let t;const r=new Set,n=(e,n)=>{const o="function"===typeof e?e(t):e;if(o!==t){const e=t;t=n?o:Object.assign({},t,o),r.forEach((r=>r(t,e)))}},o=()=>t,i={setState:n,getState:o,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>r.clear()};return t=e(n,o,i),i};var o=r(7294),i=r(8258);const{useSyncExternalStoreWithSelector:a}=i;const s=e=>{const t="function"===typeof e?(e=>e?n(e):n)(e):e,r=(e,r)=>function(e,t=e.getState,r){const n=a(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,o.useDebugValue)(n),n}(t,e,r);return Object.assign(r,t),r};var c=e=>e?s(e):s},6849:function(e,t,r){"use strict";var n=r(7294);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=n.useState,a=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(n){return!0}}var l="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,l=n[1];
1return s((function(){o.value=r,o.getSnapshot=t,u(o)&&l({inst:o})}),[e,r,t]),a((function(){return u(o)&&l({inst:o}),e((function(){u(o)&&l({inst:o})}))}),[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},9743:function(e,t,r){"use strict";var n=r(7294),o=r(4652);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=o.useSyncExternalStore,s=n.useRef,c=n.useEffect,u=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u((function(){function e(e){if(!c){if(c=!0,a=e,e=n(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(a=e,s=r)}var a,s,c=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,r,n,o]);var p=a(e,d[0],d[1]);return c((function(){f.hasValue=!0,f.value=p}),[p]),l(p),p}},4652:function(e,t,r){"use strict";e.exports=r(6849)},8258:function(e,t,r){"use strict";e.exports=r(9743)},7462:function(e,t,r){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:function(){return n}})},9727:function(e,t,r){"use strict";r.r(t),r.d(t,{create:function(){return o}});var n={};!function e(t,r,n,o){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function a(){}function s(e){var n=r.exports.Promise,o=void 0!==n?n:t.Promise;return"function"===typeof o?new o(e):(e(a,a),null)}var c,u=function(){var e,t,r=Math.floor(1e3/60),n={},o=0;return"function"===typeof requestAnimationFrame&&"function"===typeof cancelAnimationFrame?(e=function(e){var t=Math.random();return n[t]=requestAnimationFrame((function i(a){o===a||o+r-1<a?(o=a,delete n[t],e()):n[t]=requestAnimationFrame(i)})),t},t=function(e){n[e]&&cancelAnimationFrame(n[e])}):(e=function(e){return setTimeout(e,r)},t=function(e){return clearTimeout(e)}),{frame:e,cancel:t}}(),l=function(){var t,r,o={};return function(){if(t)return t;if(!n&&i){var a=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{t=new Worker(URL.createObjectURL(new Blob([a])))}catch(c){return void 0!==typeof console&&"function"===typeof console.warn&&console.warn("\ud83c\udf8a Could not load worker",c),null}!function(e){function t(t,r){e.postMessage({options:t||{},callback:r})}e.init=function(t){var r=t.transferControlToOffscreen();e.postMessage({canvas:r},[r])},e.fire=function(n,i,a){if(r)return t(n,null),r;var c=Math.random().toString(36).slice(2);return r=s((function(i){function s(t){t.data.callback===c&&(delete o[c],e.removeEventListener("message",s),r=null,a(),i())}e.addEventListener("message",s),t(n,c),o[c]=s.bind(null,{data:{callback:c}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),o)o[t](),delete o[t]}}(t)}return t}}(),d={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function f(e,t,r){return function(e,t){return t?t(e):e}(e&&(null!==(n=e[t])&&void 0!==n)?e[t]:d[t],r);var n}function p(e){return e<0?0:Math.floor(e)}function h(e){return parseInt(e,16)}function m(e){return e.map(v)}function v(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:h(t.substring(0,2)),g:h(t.substring(2,4)),b:h(t.substring(4,6))}}function g(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function y(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function b(e){var t=e.angle*(Math.PI/180),r=e.spread*(Math.PI/180);return{x:e.x,y:e.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*e.startVelocity+Math.random()*e.startVelocity,angle2D:-t+(.5*r-Math.random()*r),tiltAngle:(.5*Math.random()+.25)
1*Math.PI,color:e.color,shape:e.shape,tick:0,totalTicks:e.ticks,decay:e.decay,drift:e.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*e.gravity,ovalScalar:.6,scalar:e.scalar}}function x(e,t,r,i,a){var c,l,d=t.slice(),f=e.getContext("2d"),p=s((function(t){function s(){c=l=null,f.clearRect(0,0,i.width,i.height),a(),t()}c=u.frame((function t(){!n||i.width===o.width&&i.height===o.height||(i.width=e.width=o.width,i.height=e.height=o.height),i.width||i.height||(r(e),i.width=e.width,i.height=e.height),f.clearRect(0,0,i.width,i.height),d=d.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.wobble+=t.wobbleSpeed,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var r=t.tick++/t.totalTicks,n=t.x+t.random*t.tiltCos,o=t.y+t.random*t.tiltSin,i=t.wobbleX+t.random*t.tiltCos,a=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-r)+")",e.beginPath(),"circle"===t.shape?e.ellipse?e.ellipse(t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,r,n,o,i,a,s,c){e.save(),e.translate(t,r),e.rotate(i),e.scale(n,o),e.arc(0,0,1,a,s,c),e.restore()}(e,t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(o)),e.lineTo(Math.floor(i),Math.floor(a)),e.lineTo(Math.floor(n),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(f,e)})),d.length?c=u.frame(t):s()})),l=s}));return{addFettis:function(e){return d=d.concat(e),p},canvas:e,promise:p,reset:function(){c&&u.cancel(c),l&&l()}}}function w(e,r){var n,o=!e,a=!!f(r||{},"resize"),c=f(r,"disableForReducedMotion",Boolean),u=i&&!!f(r||{},"useWorker")?l():null,d=o?g:y,h=!(!e||!u)&&!!e.__confetti_initialized,v="function"===typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function w(t,r,o){for(var i,a,s=f(t,"particleCount",p),c=f(t,"angle",Number),u=f(t,"spread",Number),l=f(t,"startVelocity",Number),h=f(t,"decay",Number),v=f(t,"gravity",Number),g=f(t,"drift",Number),y=f(t,"colors",m),w=f(t,"ticks",Number),C=f(t,"shapes"),k=f(t,"scalar"),S=function(e){var t=f(e,"origin",Object);return t.x=f(t,"x",Number),t.y=f(t,"y",Number),t}(t),O=s,j=[],E=e.width*S.x,P=e.height*S.y;O--;)j.push(b({x:E,y:P,angle:c,spread:u,startVelocity:l,color:y[O%y.length],shape:C[(i=0,a=C.length,Math.floor(Math.random()*(a-i))+i)],ticks:w,decay:h,gravity:v,drift:g,scalar:k}));return n?n.addFettis(j):(n=x(e,j,d,r,o)).promise}function C(r){var i=c||f(r,"disableForReducedMotion",Boolean),l=f(r,"zIndex",Number);if(i&&v)return s((function(e){e()}));o&&n?e=n.canvas:o&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(l),document.body.appendChild(e)),a&&!h&&d(e);var p={width:e.width,height:e.height};function m(){if(u){var t={getBoundingClientRect:function(){if(!o)return e.getBoundingClientRect()}};return d(t),void u.postMessage({resize:{width:t.width,height:t.height}})}p.width=p.height=null}function g(){n=null,a&&t.removeEventListener("resize",m),o&&e&&(document.body.removeChild(e),e=null,h=!1)}return u&&!h&&u.init(e),h=!0,u&&(e.__confetti_initialized=!0),a&&t.addEventListener("resize",m,!1),u?u.fire(r,p,g):w(r,p,g)}return C.reset=function(){u&&u.reset(),n&&n.reset()},C}function C(){return c||(c=w(null,{useWorker:!0,resize:!0})),c}r.exports=function(){return C().apply(this,arguments)},r.exports.reset=function(){C().reset()},r.exports.create=w}(function(){return"undefined"!==typeof window?window:"undefined"!==typeof self?self:this||{}}(),n,!1),t.default=n.exports;var o=n.exports.create},1190:function(e,t,r){"use strict";r.d(t,{M:function(){return g}});var n=r(655),o=r(7294),i=r(9304),a=r(4735),s=r(8868);function c(){var e=(0,o.useRef)(!1);return(0,s.L)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var u=r(240),l=r(1981),d=r(6316),f=function(e){var t=e.children,r=e.initial,i=e.isPresent,a=e.onExitComplete,s=e.custom,c=e.presenceAffectsLayout,f=(0,l.h)(p),h=(0,d.M)(),m=(0,o.useMemo)((function(){return{id:h,initial:r,isPresent:i,custom:s,onExitComplete:function(e){var t,r;f.set(e,!0);try{for(var o=(0,n.XA)(f.values()),i=o.next();!i.done;i=o.next()){if(!i.value)return}}catch(s){t={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}null===a||void 0===a||a()},register:function(e){return f.set(e,!1),function(){return f.delete(e)}}}}),c?void 0:[i]);return(0,o.useMemo)((function(){f.forEach((function(e,t){return f.set(t,!1)}))}),[i]),o.useEffect((function(){!i&&!f.size&&(null===a||void 0===a||a())}),[i]),o.createElement(u.O.Provider,{value:m},t)};function p(){return new Map}var h=r(5364),m=r(5411),v=function(e){return e.key||""};var g=function(e){var t=e.children,r=e.custom,u=e.initial,l=void 0===u||u,d=e.onExitComplete,p=e.exitBeforeEnter,g=e.presenceAffectsLayout,y=void 0===g||g,b=(0,n.CR)(function(){var e=c(),t=(0,n.CR)((0,o.useState)(0),2),r=t[0],i=t[1],s=(0,o.useCallback)((function(){e.current&&i(r+1)}),[r]);return[(0,o.useCallback)((function(){return a.ZP.postRender(s)}),[s]),r]}(),1),x=b[0],w=(0,o.useContext)(h.p).forceRender;w&&(x=w);
1var C=c(),k=function(e){var t=[];return o.Children.forEach(e,(function(e){(0,o.isValidElement)(e)&&t.push(e)})),t}(t),S=k,O=new Set,j=(0,o.useRef)(S),E=(0,o.useRef)(new Map).current,P=(0,o.useRef)(!0);if((0,s.L)((function(){P.current=!1,function(e,t){e.forEach((function(e){var r=v(e);t.set(r,e)}))}(k,E),j.current=S})),(0,m.z)((function(){P.current=!0,E.clear(),O.clear()})),P.current)return o.createElement(o.Fragment,null,S.map((function(e){return o.createElement(f,{key:v(e),isPresent:!0,initial:!!l&&void 0,presenceAffectsLayout:y},e)})));S=(0,n.ev)([],(0,n.CR)(S),!1);for(var _=j.current.map(v),T=k.map(v),A=_.length,R=0;R<A;R++){var D=_[R];-1===T.indexOf(D)&&O.add(D)}return p&&O.size&&(S=[]),O.forEach((function(e){if(-1===T.indexOf(e)){var t=E.get(e);if(t){var n=_.indexOf(e);S.splice(n,0,o.createElement(f,{key:v(t),isPresent:!1,onExitComplete:function(){E.delete(e),O.delete(e);var t=j.current.findIndex((function(t){return t.key===e}));if(j.current.splice(t,1),!O.size){if(j.current=k,!1===C.current)return;x(),d&&d()}},custom:r,presenceAffectsLayout:y},t))}}})),S=S.map((function(e){var t=e.key;return O.has(t)?e:o.createElement(f,{key:v(e),isPresent:!0,presenceAffectsLayout:y},e)})),"production"!==i.O&&p&&S.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),o.createElement(o.Fragment,null,O.size?S:S.map((function(e){return(0,o.cloneElement)(e)})))}},5947:function(e,t,r){"use strict";r.d(t,{hO:function(){return s},oO:function(){return a}});var n=r(7294),o=r(240),i=r(6316);function a(){var e=(0,n.useContext)(o.O);if(null===e)return[!0,null];var t=e.isPresent,r=e.onExitComplete,a=e.register,s=(0,i.M)();(0,n.useEffect)((function(){return a(s)}),[]);return!t&&r?[!1,function(){return null===r||void 0===r?void 0:r(s)}]:[!0]}function s(){return null===(e=(0,n.useContext)(o.O))||e.isPresent;var e}},5364:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});var n=(0,r(7294).createContext)({})},240:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});var n=(0,r(7294).createContext)(null)},8043:function(e,t,r){"use strict";r.d(t,{E:function(){return ia}});var n=r(655),o=r(7294),i=r(9304),a=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},s={measureLayout:a(["layout","layoutId","drag"]),animation:a(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:a(["exit"]),drag:a(["drag","dragControls"]),focus:a(["whileFocus"]),hover:a(["whileHover","onHoverStart","onHoverEnd"]),tap:a(["whileTap","onTap","onTapStart","onTapCancel"]),pan:a(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:a(["whileInView","onViewportEnter","onViewportLeave"])};var c=(0,o.createContext)({strict:!1}),u=Object.keys(s),l=u.length;var d=(0,o.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),f=(0,o.createContext)({});var p=r(240),h=r(8868),m=r(1741),v={current:null},g=!1;function y(){return!g&&function(){if(g=!0,m.j)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return v.current=e.matches};e.addListener(t),t()}else v.current=!1}(),(0,n.CR)((0,o.useState)(v.current),1)[0]}function b(e,t,r,n){var i=(0,o.useContext)(c),a=(0,o.useContext)(f).visualElement,s=(0,o.useContext)(p.O),u=function(){var e=y(),t=(0,o.useContext)(d).reducedMotion;return"never"!==t&&("always"===t||e)}(),l=(0,o.useRef)(void 0);n||(n=i.renderer),!l.current&&n&&(l.current=n(e,{visualState:t,parent:a,props:r,presenceId:null===s||void 0===s?void 0:s.id,blockInitialAnimation:!1===(null===s||void 0===s?void 0:s.initial),shouldReduceMotion:u}));var m=l.current;return(0,h.L)((function(){null===m||void 0===m||m.syncRender()})),(0,o.useEffect)((function(){var e;null===(e=null===m||void 0===m?void 0:m.animationState)||void 0===e||e.animateChanges()})),(0,h.L)((function(){return function(){return null===m||void 0===m?void 0:m.notifyUnmount()}}),[]),m}function x(e){return"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function w(e){return Array.isArray(e)}function C(e){return"string"===typeof e||w(e)}function k(e,t,r,n,o){var i;return void 0===n&&(n={}),void 0===o&&(o={}),"function"===typeof t&&(t=t(null!==r&&void 0!==r?r:e.custom,n,o)),"string"===typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"===typeof t&&(t=t(null!==r&&void 0!==r?r:e.custom,n,o)),t}function S(e,t,r){var n=e.getProps();return k(n,t,null!==r&&void 0!==r?r:n.custom,function(e){var t={};return e.forEachValue((function(e,r){return t[r]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,r){return t[r]=e.getVelocity()})),t}(e))}function O(e){var t;return"function"===typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||C(e.initial)||C(e.animate)||C(e.whileHover)||C(e.whileDrag)||C(e.whileTap)||C(e.whileFocus)||C(e.exit)}function j(e){return Boolean(O(e)||e.variants)}function E(e){var t=function(e,t){if(O(e)){var r=e.initial,n=e.animate;return{initial:!1===r||C(r)?r:void 0,animate:C(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(f)),r=t.initial,n=t.animate;return(0,o.useMemo)((function(){return{initial:r,animate:n}}),[P(r),P(n)])}function P(e){return Array.isArray(e)?e.join(" "):e}var _=r(1981),T={hasAnimatedSinceResize:!0,hasEverUpdated:!1},A=1;var R=r(5364),D=(0,o.createContext)({});var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.ZT)(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,r=e.props;t&&t.setProps(r)}
1,t.prototype.render=function(){return this.props.children},t}(o.Component);function I(e){var t=e.preloadedFeatures,r=e.createVisualElement,a=e.projectionNodeConstructor,p=e.useRender,h=e.useVisualState,v=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?s.projectionNodeConstructor=e[t]:s[t].Component=e[t])}(t),(0,o.forwardRef)((function(e,g){var y=function(e){var t,r=e.layoutId,n=null===(t=(0,o.useContext)(R.p))||void 0===t?void 0:t.id;return n&&void 0!==r?n+"-"+r:r}(e);e=(0,n.pi)((0,n.pi)({},e),{layoutId:y});var w=(0,o.useContext)(d),C=null,k=E(e),S=w.isStatic?void 0:(0,_.h)((function(){if(T.hasEverUpdated)return A++})),O=h(e,w.isStatic);return!w.isStatic&&m.j&&(k.visualElement=b(v,O,(0,n.pi)((0,n.pi)({},w),e),r),function(e,t,r,n){var i,a=t.layoutId,s=t.layout,c=t.drag,u=t.dragConstraints,l=t.layoutScroll,d=(0,o.useContext)(D);n&&r&&!(null===r||void 0===r?void 0:r.projection)&&(r.projection=new n(e,r.getLatestValues(),null===(i=r.parent)||void 0===i?void 0:i.projection),r.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(c)||u&&x(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"===typeof s?s:"both",initialPromotionConfig:d,layoutScroll:l}))}(S,e,k.visualElement,a||s.projectionNodeConstructor),C=function(e,t,r){var a=[],d=(0,o.useContext)(c);if(!t)return null;"production"!==i.O&&r&&d.strict;for(var f=0;f<l;f++){var p=u[f],h=s[p],m=h.isEnabled,v=h.Component;m(e)&&v&&a.push(o.createElement(v,(0,n.pi)({key:p},e,{visualElement:t})))}return a}(e,k.visualElement,t)),o.createElement(M,{visualElement:k.visualElement,props:(0,n.pi)((0,n.pi)({},w),e)},C,o.createElement(f.Provider,{value:k},p(v,e,S,function(e,t,r){return(0,o.useCallback)((function(n){var o;n&&(null===(o=e.mount)||void 0===o||o.call(e,n)),t&&(n?t.mount(n):t.unmount()),r&&("function"===typeof r?r(n):x(r)&&(r.current=n))}),[t])}(O,k.visualElement,g),O,w.isStatic,k.visualElement)))}))}function F(e){function t(t,r){return void 0===r&&(r={}),I(e(t,r))}if("undefined"===typeof Proxy)return t;var r=new Map;return new Proxy(t,{get:function(e,n){return r.has(n)||r.set(n,t(n)),r.get(n)}})}var N=["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 L(e){return"string"===typeof e&&!e.includes("-")&&!!(N.indexOf(e)>-1||/[A-Z]/.test(e))}var B={};var z=["","X","Y","Z"],V=["transformPerspective","x","y","z"];function U(e,t){return V.indexOf(e)-V.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return z.forEach((function(t){return V.push(e+t)}))}));var $=new Set(V);function W(e){return $.has(e)}var Z=new Set(["originX","originY","originZ"]);function H(e){return Z.has(e)}function q(e,t){var r=t.layout,n=t.layoutId;return W(e)||H(e)||(r||void 0!==n)&&(!!B[e]||"opacity"===e)}var G=function(e){return Boolean(null!==e&&"object"===typeof e&&e.getVelocity)},Q={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Y(e){return e.startsWith("--")}var K=function(e,t){return t&&"number"===typeof e?t.transform(e):e};const X=(e,t)=>r=>Math.max(Math.min(r,t),e),J=e=>e%1?Number(e.toFixed(5)):e,ee=/(-)?([\d]*\.?[\d])+/g,te=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,re=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function ne(e){return"string"===typeof e}const oe=e=>({test:t=>ne(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ie=oe("deg"),ae=oe("%"),se=oe("px"),ce=oe("vh"),ue=oe("vw"),le=Object.assign(Object.assign({},ae),{parse:e=>ae.parse(e)/100,transform:e=>ae.transform(100*e)}),de={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},fe=Object.assign(Object.assign({},de),{transform:X(0,1)}),pe=Object.assign(Object.assign({},de),{default:1});var he=(0,n.pi)((0,n.pi)({},de),{transform:Math.round}),me={borderWidth:se,borderTopWidth:se,borderRightWidth:se,borderBottomWidth:se,borderLeftWidth:se,borderRadius:se,radiu
1s:se,borderTopLeftRadius:se,borderTopRightRadius:se,borderBottomRightRadius:se,borderBottomLeftRadius:se,width:se,maxWidth:se,height:se,maxHeight:se,size:se,top:se,right:se,bottom:se,left:se,padding:se,paddingTop:se,paddingRight:se,paddingBottom:se,paddingLeft:se,margin:se,marginTop:se,marginRight:se,marginBottom:se,marginLeft:se,rotate:ie,rotateX:ie,rotateY:ie,rotateZ:ie,scale:pe,scaleX:pe,scaleY:pe,scaleZ:pe,skew:ie,skewX:ie,skewY:ie,distance:se,translateX:se,translateY:se,translateZ:se,x:se,y:se,z:se,perspective:se,transformPerspective:se,opacity:fe,originX:le,originY:le,originZ:se,zIndex:he,fillOpacity:fe,strokeOpacity:fe,numOctaves:he};function ve(e,t,r,n){var o,i=e.style,a=e.vars,s=e.transform,c=e.transformKeys,u=e.transformOrigin;c.length=0;var l=!1,d=!1,f=!0;for(var p in t){var h=t[p];if(Y(p))a[p]=h;else{var m=me[p],v=K(h,m);if(W(p)){if(l=!0,s[p]=v,c.push(p),!f)continue;h!==(null!==(o=m.default)&&void 0!==o?o:0)&&(f=!1)}else H(p)?(u[p]=v,d=!0):i[p]=v}}l?i.transform=function(e,t,r,n){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,c=t.allowTransformNone,u=void 0===c||c,l="";i.sort(U);for(var d=!1,f=i.length,p=0;p<f;p++){var h=i[p];l+="".concat(Q[h]||h,"(").concat(o[h],") "),"z"===h&&(d=!0)}return!d&&s?l+="translateZ(0)":l=l.trim(),n?l=n(o,r?"":l):u&&r&&(l="none"),l}(e,r,f,n):n?i.transform=n({},""):!t.transform&&i.transform&&(i.transform="none"),d&&(i.transformOrigin=function(e){var t=e.originX,r=void 0===t?"50%":t,n=e.originY,o=void 0===n?"50%":n,i=e.originZ,a=void 0===i?0:i;return"".concat(r," ").concat(o," ").concat(a)}(u))}var ge=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function ye(e,t,r){for(var n in t)G(t[n])||q(n,r)||(e[n]=t[n])}function be(e,t,r){var i={};return ye(i,e.style||{},e),Object.assign(i,function(e,t,r){var i=e.transformTemplate;return(0,o.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ve(e,t,{enableHardwareAcceleration:!r},i);var o=e.vars,a=e.style;return(0,n.pi)((0,n.pi)({},o),a)}),[t])}(e,t,r)),e.transformValues&&(i=e.transformValues(i)),i}function xe(e,t,r){var n={},o=be(e,t,r);return Boolean(e.drag)&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),n.style=o,n}var we=new Set(["initial","animate","exit","style","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","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Ce(e){return we.has(e)}var ke,Se=function(e){return!Ce(e)};try{(ke=require("@emotion/is-prop-valid").default)&&(Se=function(e){return e.startsWith("on")?!Ce(e):ke(e)})}catch(aa){}function Oe(e,t,r){return"string"===typeof e?e:se.transform(t+r*e)}var je={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ee={offset:"strokeDashoffset",array:"strokeDasharray"};function Pe(e,t,r,o){var i=t.attrX,a=t.attrY,s=t.originX,c=t.originY,u=t.pathLength,l=t.pathSpacing,d=void 0===l?1:l,f=t.pathOffset,p=void 0===f?0:f;ve(e,(0,n._T)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,o),e.attrs=e.style,e.style={};var h=e.attrs,m=e.style,v=e.dimensions;h.transform&&(v&&(m.transform=h.transform),delete h.transform),v&&(void 0!==s||void 0!==c||m.transform)&&(m.transformOrigin=function(e,t,r){var n=Oe(t,e.x,e.width),o=Oe(r,e.y,e.height);return"".concat(n," ").concat(o)}(v,void 0!==s?s:.5,void 0!==c?c:.5)),void 0!==i&&(h.x=i),void 0!==a&&(h.y=a),void 0!==u&&function(e,t,r,n,o){void 0===r&&(r=1),void 0===n&&(n=0),void 0===o&&(o=!0),e.pathLength=1;var i=o?je:Ee;e[i.offset]=se.transform(-n);var a=se.transform(t),s=se.transform(r);e[i.array]="".concat(a," ").concat(s)}(h,u,d,p,!1)}var _e=function(){return(0,n.pi)((0,n.pi)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Te(e,t){var r=(0,o.useMemo)((function(){var r=_e();return Pe(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),(0,n.pi)((0,n.pi)({},r.attrs),{style:(0,n.pi)({},r.style)}
1)}),[t]);if(e.style){var i={};ye(i,e.style,e),r.style=(0,n.pi)((0,n.pi)({},i),r.style)}return r}function Ae(e){void 0===e&&(e=!1);return function(t,r,i,a,s,c){var u=s.latestValues,l=(L(t)?Te:xe)(r,u,c),d=function(e,t,r){var n={};for(var o in e)(Se(o)||!0===r&&Ce(o)||!t&&!Ce(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}(r,"string"===typeof t,e),f=(0,n.pi)((0,n.pi)((0,n.pi)({},d),l),{ref:a});return i&&(f["data-projection-id"]=i),(0,o.createElement)(t,f)}}var Re=/([a-z])([A-Z])/g,De=function(e){return e.replace(Re,"$1-$2").toLowerCase()};function Me(e,t,r,n){var o=t.style,i=t.vars;for(var a in Object.assign(e.style,o,n&&n.getProjectionStyles(r)),i)e.style.setProperty(a,i[a])}var Ie=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Fe(e,t,r,n){for(var o in Me(e,t,void 0,n),t.attrs)e.setAttribute(Ie.has(o)?o:De(o),t.attrs[o])}function Ne(e){var t=e.style,r={};for(var n in t)(G(t[n])||q(n,e))&&(r[n]=t[n]);return r}function Le(e){var t=Ne(e);for(var r in e){if(G(e[r]))t["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return t}function Be(e){return"object"===typeof e&&"function"===typeof e.start}var ze=function(e){return Array.isArray(e)},Ve=function(e){return ze(e)?e[e.length-1]||0:e};function Ue(e){var t,r=G(e)?e.get():e;return t=r,Boolean(t&&"object"===typeof t&&t.mix&&t.toValue)?r.toValue():r}function $e(e,t,r,n){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:Ze(t,r,n,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var We=function(e){return function(t,r){var n=(0,o.useContext)(f),i=(0,o.useContext)(p.O);return r?$e(e,t,n,i):(0,_.h)((function(){return $e(e,t,n,i)}))}};function Ze(e,t,r,o){var i={},a=!1===(null===r||void 0===r?void 0:r.initial),s=o(e);for(var c in s)i[c]=Ue(s[c]);var u=e.initial,l=e.animate,d=O(e),f=j(e);t&&f&&!d&&!1!==e.inherit&&(null!==u&&void 0!==u||(u=t.initial),null!==l&&void 0!==l||(l=t.animate));var p=a||!1===u,h=p?l:u;h&&"boolean"!==typeof h&&!Be(h)&&(Array.isArray(h)?h:[h]).forEach((function(t){var r=k(e,t);if(r){var o=r.transitionEnd;r.transition;var a=(0,n._T)(r,["transitionEnd","transition"]);for(var s in a){var c=a[s];if(Array.isArray(c))c=c[p?c.length-1:0];null!==c&&(i[s]=c)}for(var s in o)i[s]=o[s]}}));return i}var He,qe={useVisualState:We({scrapeMotionValuesFromProps:Le,createRenderState:_e,onMount:function(e,t,r){var n=r.renderState,o=r.latestValues;try{n.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(i){n.dimensions={x:0,y:0,width:0,height:0}}Pe(n,o,{enableHardwareAcceleration:!1},e.transformTemplate),Fe(t,n)}})},Ge={useVisualState:We({scrapeMotionValuesFromProps:Ne,createRenderState:ge})};function Qe(e,t,r,n){return void 0===n&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function Ye(e,t,r,n){(0,o.useEffect)((function(){var o=e.current;if(r&&o)return Qe(o,t,r,n)}),[e,t,r,n])}function Ke(e){return"undefined"!==typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Xe(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(He||(He={}));var Je={pageX:0,pageY:0};function et(e,t){void 0===t&&(t="page");var r=e.touches[0]||e.changedTouches[0]||Je;return{x:r[t+"X"],y:r[t+"Y"]}}function tt(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function rt(e,t){return void 0===t&&(t="page"),{point:Xe(e)?et(e,t):tt(e,t)}}var nt=function(e,t){void 0===t&&(t=!1);var r,n=function(t){return e(t,rt(t))};return t?(r=n,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}):n},ot={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mou
1seleave"},it={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function at(e){return m.j&&null===window.onpointerdown?e:m.j&&null===window.ontouchstart?it[e]:m.j&&null===window.onmousedown?ot[e]:e}function st(e,t,r,n){return Qe(e,at(t),nt(r,"pointerdown"===t),n)}function ct(e,t,r,n){return Ye(e,at(t),r&&nt(r,"pointerdown"===t),n)}function ut(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var lt=ut("dragHorizontal"),dt=ut("dragVertical");function ft(e){var t=!1;if("y"===e)t=dt();else if("x"===e)t=lt();else{var r=lt(),n=dt();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function pt(){var e=ft(!0);return!e||(e(),!1)}function ht(e,t,r){return function(n,o){var i;Ke(n)&&!pt()&&(null===(i=e.animationState)||void 0===i||i.setActive(He.Hover,t),null===r||void 0===r||r(n,o))}}var mt=function(e,t){return!!t&&(e===t||mt(e,t.parentElement))},vt=r(5411);const gt=(e,t)=>r=>t(e(r)),yt=(...e)=>e.reduce(gt);var bt=new Set;var xt=new WeakMap,wt=new WeakMap,Ct=function(e){var t;null===(t=xt.get(e.target))||void 0===t||t(e)},kt=function(e){e.forEach(Ct)};function St(e,t,r){var o=function(e){var t=e.root,r=(0,n._T)(e,["root"]),o=t||document;wt.has(o)||wt.set(o,{});var i=wt.get(o),a=JSON.stringify(r);return i[a]||(i[a]=new IntersectionObserver(kt,(0,n.pi)({root:t},r))),i[a]}(t);return xt.set(e,r),o.observe(e),function(){xt.delete(e),o.unobserve(e)}}var Ot={some:0,all:1};function jt(e,t,r,n){var i=n.root,a=n.margin,s=n.amount,c=void 0===s?"some":s,u=n.once;(0,o.useEffect)((function(){if(e){var n={root:null===i||void 0===i?void 0:i.current,rootMargin:a,threshold:"number"===typeof c?c:Ot[c]};return St(r.getInstance(),n,(function(e){var n,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!u||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(n=r.animationState)||void 0===n||n.setActive(He.InView,o);var i=r.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null===a||void 0===a||a(e)}}))}}),[e,i,a,c])}function Et(e,t,r,n){var a=n.fallback,s=void 0===a||a;(0,o.useEffect)((function(){var n,o;e&&s&&("production"!==i.O&&(n="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||bt.has(n)||(console.warn(n),o&&console.warn(o),bt.add(n))),requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var n=r.getProps().onViewportEnter;null===n||void 0===n||n(null),null===(e=r.animationState)||void 0===e||e.setActive(He.InView,!0)})))}),[e])}var Pt=function(e){return function(t){return e(t),null}},_t={inView:Pt((function(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,i=e.onViewportLeave,a=e.viewport,s=void 0===a?{}:a,c=(0,o.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(r||n||i);s.once&&c.current.hasEnteredView&&(u=!1),("undefined"===typeof IntersectionObserver?Et:jt)(u,c.current,t,s)})),tap:Pt((function(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,a=e.visualElement,s=t||r||n||i,c=(0,o.useRef)(!1),u=(0,o.useRef)(null),l={passive:!(r||t||n||m)};function d(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function f(){var e;return d(),c.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(He.Tap,!1),!pt()}function p(e,r){f()&&(mt(a.getInstance(),e.target)?null===t||void 0===t||t(e,r):null===n||void 0===n||n(e,r))}function h(e,t){f()&&(null===n||void 0===n||n(e,t))}function m(e,t){var n;d(),c.current||(c.current=!0,u.current=yt(st(window,"pointerup",p,l),st(window,"pointercancel",h,l)),null===(n=a.animationState)||void 0===n||n.setActive(He.Tap,!0),null===r||void 0===r||r(e,t))}ct(a,"pointerdown",s?m:void 0,l),(0,vt.z)(d)})),focus:Pt((function(e){var t=e.whileFocus,r=e.visualElement;Ye(r,"focus",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(He.Focus,!0)}:void 0),Ye(r,"blur",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(He.Focus,!1)}:void 0)})),hover:Pt((function(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,o=e.visualElement;ct(o,"pointerenter",t||n?ht(o,!0,t):void 0,{passive:!t}),ct(o,"pointerleave",r||n?ht(o,!1,r):void 0,{passive:!r})}))},Tt=r(5947);function At(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const Rt=(e,t,r)=>
vendor: 4,478 bytes, line 1
1Math.min(Math.max(r,e),t),Dt=.001;function Mt({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i,a=1-t;a=Rt(.05,1,a),e=Rt(.01,10,e/1e3),a<1?(o=t=>{const n=t*a,o=n*e,i=n-r,s=It(t,a),c=Math.exp(-o);return Dt-i/s*c},i=t=>{const n=t*a*e,i=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,c=Math.exp(-n),u=It(Math.pow(t,2),a);return(-o(t)+Dt>0?-1:1)*((i-s)*c)/u}):(o=t=>Math.exp(-t*e)*((t-r)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let o=1;o<12;o++)n-=e(n)/t(n);return n}(o,i,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}function It(e,t){return e*Math.sqrt(1-t*t)}const Ft=["duration","bounce"],Nt=["stiffness","damping","mass"];function Lt(e,t){return t.some((t=>void 0!==e[t]))}function Bt(e){var{from:t=0,to:r=1,restSpeed:o=2,restDelta:i}=e,a=(0,n._T)(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:c,damping:u,mass:l,velocity:d,duration:f,isResolvedFromDuration:p}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Lt(e,Nt)&&Lt(e,Ft)){const r=Mt(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),h=zt,m=zt;function v(){const e=d?-d/1e3:0,n=r-t,o=u/(2*Math.sqrt(c*l)),a=Math.sqrt(c/l)/1e3;if(void 0===i&&(i=Math.min(Math.abs(r-t)/100,.4)),o<1){const t=It(a,o);h=i=>{const s=Math.exp(-o*a*i);return r-s*((e+o*a*n)/t*Math.sin(t*i)+n*Math.cos(t*i))},m=r=>{const 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{const t=a*Math.sqrt(o*o-1);h=i=>{const s=Math.exp(-o*a*i),c=Math.min(t*i,300);return r-s*((e+o*a*n)*Math.sinh(c)+t*n*Math.cosh(c))/t}}}return v(),{next:e=>{const t=h(e);if(p)s.done=e>=f;else{const n=1e3*m(e),a=Math.abs(n)<=o,c=Math.abs(r-t)<=i;s.done=a&&c}return s.value=s.done?r:t,s},flipTarget:()=>{d=-d,[t,r]=[r,t],v()}}}Bt.needsInterpolation=(e,t)=>"string"===typeof e||"string"===typeof t;const zt=e=>0,Vt=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},Ut=(e,t,r)=>-r*e+r*t+e,$t=(e,t)=>r=>Boolean(ne(r)&&re.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Wt=(e,t,r)=>n=>{if(!ne(n))return n;const[o,i,a,s]=n.match(ee);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Zt=X(0,255),Ht=Object.assign(Object.assign({},de),{transform:e=>Math.round(Zt(e))}),qt={test:$t("rgb","red"),parse:Wt("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ht.transform(e)+", "+Ht.transform(t)+", "+Ht.transform(r)+", "+J(fe.transform(n))+")"};const Gt={test:$t("#"),parse:function(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:qt.transform},Qt={test:$t("hsl","hue"),parse:Wt("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ae.transform(J(t))+", "+ae.transform(J(r))+", "+J(fe.transform(n))+")"};function Yt(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Kt({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let o=0,i=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;o=Yt(s,n,e+1/3),i=Yt(s,n,e),a=Yt(s,n,e-1/3)}else o=i=a=r;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:n}}const Xt=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},Jt=[Gt,qt,Qt],er=e=>Jt.find((t=>t.test(e))),tr=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,rr=(e,t)=>{let r=er(e),n=er(t);tr(e),tr(t);let o=r.parse(e),i=n.parse(t);r===Qt&&(o=Kt(o),r=qt),n===Qt&&(i=Kt(i),n=qt);const a=Object.assign({},o);return e=>{for(const t in a)"alpha"!==t&&(a[t]=Xt(o[t],i[t],e));return a.alpha=Ut(o.alpha,i.alpha,e),r.transform(a)}},nr={test:e=>qt.test(e)||Gt.test(e)||Qt.test(e),parse:e=>qt.test(e)?qt.parse(e):Qt.test(e)?Qt.parse(e):Gt.parse(e),transform:e=>ne(e)?e:e.hasOwnProperty("red")?qt.transform(e):Qt.transform(e)},or="${c}",ir="${n}";function ar(e){"number"===typeof e&&(e=`${e}`);const t=[];let r=0;const n=e.match(te);
1n&&(r=n.length,e=e.replace(te,or),t.push(...n.map(nr.parse)));const o=e.match(ee);return o&&(e=e.replace(ee,ir),t.push(...o.map(de.parse))),{values:t,numColors:r,tokenised:e}}function sr(e){return ar(e).values}function cr(e){const{values:t,numColors:r,tokenised:n}=ar(e),o=t.length;return e=>{let t=n;for(let n=0;n<o;n++)t=t.replace(n<r?or:ir,n<r?nr.transform(e[n]):J(e[n]));return t}}const ur=e=>"number"===typeof e?0:e;const lr={test:function(e){var t,r,n,o;return isNaN(e)&&ne(e)&&(null!==(r=null===(t=e.match(ee))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(o=null===(n=e.match(te))||void 0===n?void 0:n.length)&&void 0!==o?o:0)>0},parse:sr,createTransformer:cr,getAnimatableNone:function(e){const t=sr(e);return cr(e)(t.map(ur))}},dr=e=>"number"===typeof e;function fr(e,t){return dr(e)?r=>Ut(e,t,r):nr.test(e)?rr(e,t):vr(e,t)}const pr=(e,t)=>{const r=[...e],n=r.length,o=e.map(((e,r)=>fr(e,t[r])));return e=>{for(let t=0;t<n;t++)r[t]=o[t](e);return r}},hr=(e,t)=>{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=fr(e[o],t[o]));return e=>{for(const t in n)r[t]=n[t](e);return r}};function mr(e){const t=lr.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a<r;a++)n||"number"===typeof t[a]?n++:void 0!==t[a].hue?i++:o++;return{parsed:t,numNumbers:n,numRGB:o,numHSL:i}}const vr=(e,t)=>{const r=lr.createTransformer(t),n=mr(e),o=mr(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?yt(pr(n.parsed,o.parsed),r):r=>`${r>0?t:e}`},gr=(e,t)=>r=>Ut(e,t,r);function yr(e,t,r){const n=[],o=r||("number"===typeof(i=e[0])?gr:"string"===typeof i?nr.test(i)?rr:vr:Array.isArray(i)?pr:"object"===typeof i?hr:void 0);var i;const a=e.length-1;for(let s=0;s<a;s++){let r=o(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]:t;r=yt(e,r)}n.push(r)}return n}function br(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;t.length,!n||!Array.isArray(n)||n.length,e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=yr(t,n,o),s=2===i?function([e,t],[r]){return n=>r(Vt(e,t,n))}(e,a):function(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let t=1;for(;t<r&&!(e[t]>o||t===n);t++);i=t-1}const s=Vt(e[i],e[i+1],o);return t[i](s)}}(e,a);return r?t=>s(Rt(e[0],e[i-1],t)):s}const xr=e=>t=>1-e(1-t),wr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Cr=e=>t=>t*t*((e+1)*t-e),kr=e=>e,Sr=(Or=2,e=>Math.pow(e,Or));var Or;const jr=xr(Sr),Er=wr(Sr),Pr=e=>1-Math.sin(Math.acos(e)),_r=xr(Pr),Tr=wr(_r),Ar=Cr(1.525),Rr=xr(Ar),Dr=wr(Ar),Mr=(e=>{const t=Cr(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),Ir=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Fr=xr(Ir);function Nr(e,t){return e.map((()=>t||Er)).splice(0,e.length-1)}function Lr({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(n&&n.length===a.length?n:function(e){const t=e.length;return e.map(((e,r)=>0!==r?r/(t-1):0))}(a),o);function c(){return br(s,a,{ease:Array.isArray(r)?r:Nr(a,r)})}let u=c();return{next:e=>(i.value=u(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),u=c()}}}const Br={keyframes:Lr,spring:Bt,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let s=r*e;const c=t+s,u=void 0===i?c:i(c);return u!==c&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/n);return a.done=!(t>o||t<-o),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};var zr=r(4735);function Vr(e,t,r=0){return e-t-r}const Ur=e=>{const t=({delta:t})=>e(t);return{start:()=>zr.ZP.update(t,!0),stop:()=>zr.qY.update(t)}};function $r(e){var t,r,{from:o,autoplay:i=!0,driver:a=Ur,elapsed:s=0,repeat:c=0,repeatType:u="loop",repeatDelay:l=0,onPlay:d,onStop:f,onComplete:p,onRepeat:h,onUpdate:m}=e,v=(0,n._T)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,y,b,{to:x}=v,w=0,C=v.duration,k=!1,S=!0;const O=function(e){if(Array.isArray(e.to))return Lr;if(Br[e.type])return Br[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Lr:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Bt:Lr}(v);(null===(r=(t=O).needsInterpolation)||void 0===r?void 0:r.call(t,o,x))&&(b=br([0,100],[o,x],{clamp:!1}),o=0,x=100);const j=O(Object.assign(Object.assign({},v),{from:o,to:x}));function E(){w++,"reverse"===u?(S=w%2===0,s=function(e,t,r=0,n=!0){return n?Vr(t+-e,t,r):t-(e-t)+r}(s,C,l,S)):(s=Vr(s,C,l),"mirror"===u&&j.flipTarget()),k=!1,h&&h()}function P(e){if(S||(e=-e),s+=e,!k){const e=j.next(Math.max(0,s));y=e.value,b&&(y=b(y)),k=S?e.done:s<=0}null===m||void 0===m||m(y),k&&(0===w&&(null!==C&&void 0!==C||(C=s)),w<c?function(e,t,r,n){return n?e>=t+r:e<=-r}(s,C,l,S)&&E():(g.stop(),p&&p()))}return i&&(null===d||void 0===d||d(),g=a(P),g.start()),{stop:()=>{null===f||void 0===f||f(),g.stop()}}}function Wr(e,t){return t?e*(1e3/t):0}var Zr=function(e){return 1e3*e};const Hr=(e,t)=>
11-3*t+3*e,qr=(e,t)=>3*t-6*e,Gr=e=>3*e,Qr=(e,t,r)=>((Hr(t,r)*e+qr(t,r))*e+Gr(t))*e,Yr=(e,t,r)=>3*Hr(t,r)*e*e+2*qr(t,r)*e+Gr(t);const Kr=.1;function Xr(e,t,r,n){if(e===t&&r===n)return kr;const o=new Float32Array(11);for(let a=0;a<11;++a)o[a]=Qr(a*Kr,e,r);function i(t){let n=0,i=1;for(;10!==i&&o[i]<=t;++i)n+=Kr;--i;const a=n+(t-o[i])/(o[i+1]-o[i])*Kr,s=Yr(a,e,r);return s>=.001?function(e,t,r,n){for(let o=0;o<8;++o){const o=Yr(t,r,n);if(0===o)return t;t-=(Qr(t,r,n)-e)/o}return t}(t,a,e,r):0===s?a:function(e,t,r,n,o){let i,a,s=0;do{a=t+(r-t)/2,i=Qr(a,n,o)-e,i>0?r=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,n,n+Kr,e,r)}return e=>0===e||1===e?e:Qr(i(e),t,n)}var Jr={linear:kr,easeIn:Sr,easeInOut:Er,easeOut:jr,circIn:Pr,circInOut:Tr,circOut:_r,backIn:Ar,backInOut:Dr,backOut:Rr,anticipate:Mr,bounceIn:Fr,bounceInOut:e=>e<.5?.5*(1-Ir(1-2*e)):.5*Ir(2*e-1)+.5,bounceOut:Ir},en=function(e){if(Array.isArray(e)){e.length;var t=(0,n.CR)(e,4);return Xr(t[0],t[1],t[2],t[3])}return"string"===typeof e?("Invalid easing type '".concat(e,"'"),Jr[e]):e},tn=function(e,t){return"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!lr.test(t)||t.startsWith("url(")))},rn=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},nn=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},on=function(){return{type:"keyframes",ease:"linear",duration:.3}},an=function(e){return{type:"keyframes",duration:.8,values:e}},sn={x:rn,y:rn,z:rn,rotate:rn,rotateX:rn,rotateY:rn,rotateZ:rn,scaleX:nn,scaleY:nn,scale:nn,opacity:on,backgroundColor:on,color:on,default:nn};const cn=new Set(["brightness","contrast","saturate","opacity"]);function un(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(ee)||[];if(!n)return e;const o=r.replace(n,"");let i=cn.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const ln=/([a-z-]*)\(.*?\)/g,dn=Object.assign(Object.assign({},lr),{getAnimatableNone:e=>{const t=e.match(ln);return t?t.map(un).join(" "):e}});var fn=(0,n.pi)((0,n.pi)({},me),{color:nr,backgroundColor:nr,outlineColor:nr,fill:nr,stroke:nr,borderColor:nr,borderTopColor:nr,borderRightColor:nr,borderBottomColor:nr,borderLeftColor:nr,filter:dn,WebkitFilter:dn}),pn=function(e){return fn[e]};function hn(e,t){var r,n=pn(e);return n!==dn&&(n=lr),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}var mn=!1;function vn(e){var t=e.ease,r=e.times,o=e.yoyo,i=e.flip,a=e.loop,s=(0,n._T)(e,["ease","times","yoyo","flip","loop"]),c=(0,n.pi)({},s);return r&&(c.offset=r),s.duration&&(c.duration=Zr(s.duration)),s.repeatDelay&&(c.repeatDelay=Zr(s.repeatDelay)),t&&(c.ease=function(e){return Array.isArray(e)&&"number"!==typeof e[0]}(t)?t.map(en):en(t)),"tween"===s.type&&(c.type="keyframes"),(o||a||i)&&(!0,o?c.repeatType="reverse":a?c.repeatType="loop":i&&(c.repeatType="mirror"),c.repeat=a||o||i||s.repeat),"spring"!==s.type&&(c.type="keyframes"),c}function gn(e,t,r){var o;return Array.isArray(t.to)&&(null!==(o=e.duration)&&void 0!==o||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=(0,n.ev)([],(0,n.CR)(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=(0,n._T)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=(0,n.pi)((0,n.pi)({},e),function(e,t){var r;return r=ze(t)?an:sn[e]||sn.default,(0,n.pi)({to:t},r(t))}(r,t.to))),(0,n.pi)((0,n.pi)({},t),vn(e))}function yn(e,t,r,o,i){var a,s=wn(o,e),c=null!==(a=s.from)&&void 0!==a?a:t.get(),u=tn(e,r);"none"===c&&u&&"string"===typeof r?c=hn(e,r):bn(c)&&"string"===typeof r?c=xn(r):!Array.isArray(r)&&bn(r)&&"string"===typeof c&&(r=xn(c));var l=tn(e,c);return"You are trying to animate ".concat(e,' from "').concat(c,'" to "').concat(r,'". ').concat(c," is not an animatable value - to enable this animation set ").concat(c," to a value animatable to ").concat(r," via the `style` property."),l&&u&&!1!==s.type?function(){var o={from:c,to:r,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===s.type||"decay"===s.type?function({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=
1500,bounceDamping:s=10,restDelta:c=1,modifyTarget:u,driver:l,onUpdate:d,onComplete:f,onStop:p}){let h;function m(e){return void 0!==r&&e<r||void 0!==n&&e>n}function v(e){return void 0===r?n:void 0===n||Math.abs(r-e)<Math.abs(n-e)?r:n}function g(e){null===h||void 0===h||h.stop(),h=$r(Object.assign(Object.assign({},e),{driver:l,onUpdate:t=>{var r;null===d||void 0===d||d(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:f,onStop:p}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:c},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let n=o*t+e;"undefined"!==typeof u&&(n=u(n));const a=v(n),s=a===r?-1:1;let l,d;const f=e=>{l=d,d=e,t=Wr(e-l,(0,zr.$B)().delta),(1===s&&e>a||-1===s&&e<a)&&y({from:e,to:a,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:c,modifyTarget:u,onUpdate:m(n)?f:void 0})}return{stop:()=>null===h||void 0===h?void 0:h.stop()}}((0,n.pi)((0,n.pi)({},o),s)):$r((0,n.pi)((0,n.pi)({},gn(s,o,e)),{onUpdate:function(e){var t;o.onUpdate(e),null===(t=s.onUpdate)||void 0===t||t.call(s,e)},onComplete:function(){var e;o.onComplete(),null===(e=s.onComplete)||void 0===e||e.call(s)}}))}:function(){var e,n,o=Ve(r);return t.set(o),i(),null===(e=null===s||void 0===s?void 0:s.onUpdate)||void 0===e||e.call(s,o),null===(n=null===s||void 0===s?void 0:s.onComplete)||void 0===n||n.call(s),{stop:function(){}}}}function bn(e){return 0===e||"string"===typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function xn(e){return"number"===typeof e?0:hn("",e)}function wn(e,t){return e[t]||e.default||e}function Cn(e,t,r,n){return void 0===n&&(n={}),mn&&(n={type:!1}),t.start((function(o){var i,a,s=yn(e,t,r,n,o),c=function(e,t){var r,n;return null!==(n=null!==(r=(wn(e,t)||{}).delay)&&void 0!==r?r:e.delay)&&void 0!==n?n:0}(n,e),u=function(){return a=s()};return c?i=window.setTimeout(u,Zr(c)):u(),function(){clearTimeout(i),null===a||void 0===a||a.stop()}}))}var kn=function(e){return/^0[^.\s]+$/.test(e)};function Sn(e,t){-1===e.indexOf(t)&&e.push(t)}function On(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var jn=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Sn(this.subscriptions,e),function(){return On(t.subscriptions,e)}},e.prototype.notify=function(e,t,r){var n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(var o=0;o<n;o++){var i=this.subscriptions[o];i&&i(e,t,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),En=function(){function e(e){var t,r=this;this.version="6.5.0",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new jn,this.velocityUpdateSubscribers=new jn,this.renderSubscribers=new jn,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),r.prev=r.current,r.current=e;var n=(0,zr.$B)(),o=n.delta,i=n.timestamp;r.lastUpdated!==i&&(r.timeDelta=o,r.lastUpdated=i,zr.ZP.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.updateSubscribers.notify(r.current),r.velocityUpdateSubscribers.getSize()&&r.velocityUpdateSubscribers.notify(r.getVelocity()),t&&r.renderSubscribers.notify(r.current)},this.scheduleVelocityCheck=function(){return zr.ZP.postRender(r.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==r.lastUpdated&&(r.prev=r.current,r.velocityUpdateSubscribers.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Wr(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(r){t.hasAnimated=!0,t.stopAnimation=e(r)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Pn(e){return new En(e)}var _n=function(e){return function(t){return t.test(e)}},Tn=[de,se,ae,ie,ue,ce,{test:function(e){return"auto"===e},parse:function(e){return e}}],An=function(e){return Tn.find(_n(e))},Rn=(0,n.ev)((0,n.ev)([],(0,n.CR)(Tn),!1),[nr,lr],!1),Dn=function(e){return Rn.find(_n(e))};function Mn(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Pn(r))}function In(e,t){var r=S(e,t),o=r?e.makeTargetAnimatable(r,!1):{},i=o.transitionEnd,a=void 0===i?{}:i;o.transition;var s=(0,n._T)(o,["transitionEnd","transition"]);for(var c in s=(0,n.pi)((0,n.pi)({},s),a)){Mn(e,c,Ve(s[c]))}}function Fn(e,t){if(t)return(t[e]||t.default||t).from}function Nn(e,t,r){var o;void 0===r&&(r={});var i=S(e,t,r.custom),a=(i||{}).transition,s=void 0===a?e.getDefaultTransition()||{}:a;r.transitionOverride&&(s=r.transitionOverride);var c=i?function(){return Ln(e,i,r)}:function(){return Promise.resolve()},u=(null===(o=e.variantChildren)||void 0===o?void 0:o.size)?function(o){void 0===o&&(o=0);var i=s.delayChildren,a=void 0===i?0:i,c=s.staggerChildren,u=s.staggerDirection;return function(e,t,r,o,i,a){void 0===r&&(r=0);void 0===o&&(o=0);void 0===i&&(i=1);var s=[],c=(e.variantChildren.size-1)*o,u=1===i?function(e){return void 0===e&&(e=0),e*o}:function(e){return void 0===e&&(e=0),c-e*o};
1return Array.from(e.variantChildren).sort(Bn).forEach((function(e,o){s.push(Nn(e,t,(0,n.pi)((0,n.pi)({},a),{delay:r+u(o)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(s)}(e,t,a+o,c,u,r)}:function(){return Promise.resolve()},l=s.when;if(l){var d=(0,n.CR)("beforeChildren"===l?[c,u]:[u,c],2),f=d[0],p=d[1];return f().then(p)}return Promise.all([c(),u(r.delay)])}function Ln(e,t,r){var o,i=void 0===r?{}:r,a=i.delay,s=void 0===a?0:a,c=i.transitionOverride,u=i.type,l=e.makeTargetAnimatable(t),d=l.transition,f=void 0===d?e.getDefaultTransition():d,p=l.transitionEnd,h=(0,n._T)(l,["transition","transitionEnd"]);c&&(f=c);var m=[],v=u&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[u]);for(var g in h){var y=e.getValue(g),b=h[g];if(!(!y||void 0===b||v&&zn(v,g))){var x=(0,n.pi)({delay:s},f);e.shouldReduceMotion&&W(g)&&(x=(0,n.pi)((0,n.pi)({},x),{type:!1,delay:0}));var w=Cn(g,y,b,x);m.push(w)}}return Promise.all(m).then((function(){p&&In(e,p)}))}function Bn(e,t){return e.sortNodePosition(t)}function zn(e,t){var r=e.protectedKeys,n=e.needsAnimating,o=r.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,o}var Vn=[He.Animate,He.InView,He.Focus,He.Hover,He.Tap,He.Drag,He.Exit],Un=(0,n.ev)([],(0,n.CR)(Vn),!1).reverse(),$n=Vn.length;function Wn(e){return function(t){return Promise.all(t.map((function(t){var r=t.animation,n=t.options;return function(e,t,r){var n;if(void 0===r&&(r={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map((function(t){return Nn(e,t,r)}));n=Promise.all(o)}else if("string"===typeof t)n=Nn(e,t,r);else{var i="function"===typeof t?S(e,t,r.custom):t;n=Ln(e,i,r)}return n.then((function(){return e.notifyAnimationComplete(t)}))}(e,r,n)})))}}function Zn(e){var t=Wn(e),r=function(){var e;return(e={})[He.Animate]=Hn(!0),e[He.InView]=Hn(),e[He.Hover]=Hn(),e[He.Tap]=Hn(),e[He.Drag]=Hn(),e[He.Focus]=Hn(),e[He.Exit]=Hn(),e}(),o={},i=!0,a=function(t,r){var o=S(e,r);if(o){o.transition;var i=o.transitionEnd,a=(0,n._T)(o,["transition","transitionEnd"]);t=(0,n.pi)((0,n.pi)((0,n.pi)({},t),a),i)}return t};function s(s,c){for(var u,l=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set,h={},m=1/0,v=function(t){var o=Un[t],v=r[o],g=null!==(u=l[o])&&void 0!==u?u:d[o],y=C(g),b=o===c?v.isActive:null;!1===b&&(m=t);var x=g===d[o]&&g!==l[o]&&y;if(x&&i&&e.manuallyAnimateOnMount&&(x=!1),v.protectedKeys=(0,n.pi)({},h),!v.isActive&&null===b||!g&&!v.prevProp||Be(g)||"boolean"===typeof g)return"continue";var k=function(e,t){if("string"===typeof t)return t!==e;if(w(t))return!At(t,e);return!1}(v.prevProp,g),S=k||o===c&&v.isActive&&!x&&y||t>m&&y,O=Array.isArray(g)?g:[g],j=O.reduce(a,{});!1===b&&(j={});var E=v.prevResolvedValues,P=void 0===E?{}:E,_=(0,n.pi)((0,n.pi)({},P),j),T=function(e){S=!0,p.delete(e),v.needsAnimating[e]=!0};for(var A in _){var R=j[A],D=P[A];h.hasOwnProperty(A)||(R!==D?ze(R)&&ze(D)?!At(R,D)||k?T(A):v.protectedKeys[A]=!0:void 0!==R?T(A):p.add(A):void 0!==R&&p.has(A)?T(A):v.protectedKeys[A]=!0)}v.prevProp=g,v.prevResolvedValues=j,v.isActive&&(h=(0,n.pi)((0,n.pi)({},h),j)),i&&e.blockInitialAnimation&&(S=!1),S&&!x&&f.push.apply(f,(0,n.ev)([],(0,n.CR)(O.map((function(e){return{animation:e,options:(0,n.pi)({type:o},s)}}))),!1))},g=0;g<$n;g++)v(g);if(o=(0,n.pi)({},h),p.size){var y={};p.forEach((function(t){var r=e.getBaseTarget(t);void 0!==r&&(y[t]=r)})),f.push({animation:y})}var b=Boolean(f.length);return i&&!1===l.initial&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var i;if(r[t].isActive===n)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;var a=s(o,t);for(var c in r)r[c].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:function(){return r}}}function Hn(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var qn={animation:Pt((function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=Zn(t)),Be(r)&&(0,o.useEffect)((function(){return r.subscribe(t)}),[r])})),exit:Pt((function(e){var t=e.custom,r=e.visualElement,i=(0,n.CR)((0,Tt.oO)(),2),a=i[0],s=i[1],c=(0,o.useContext)(p.O);(0,o.useEffect)((function(){var e,n;r.isPresent=a;var o=null===(e=r.animationState)||void 0===e?void 0:e.setActive(He.Exit,!a,{custom:null!==(n=null===c||void 0===c?void 0:c.custom)&&void 0!==n?n:t});!a&&(null===o||void 0===o||o.then(s))}),[a])}))};const Gn=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Qn=e=>Gn(e)&&e.hasOwnProperty("z"),Yn=(e,t)=>Math.abs(e-t);function Kn(e,t){if(dr(e)&&dr(t))return Yn(e,t);if(Gn(e)&&Gn(t)){const r=Yn(e.x,t.x),n=Yn(e.y,t.y),o=Qn(e)&&Qn(t)?Yn(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}var Xn=function(){function e(e,t,r){var o=this,i=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var e=to(o.lastMoveEventInfo,o.history),t=null!==o.startEvent,r=Kn(e.offset,{x:0,y:0})>=3;if(t||r){var i=e.point,a=(0,zr.$B)().timestamp;o.history.push((0,n.pi)((0,n.pi)({},i),{timestamp:a}));var s=o.handlers,c=s.onStart,u=s.onMove;t||(c&&c(o.lastMoveEvent,e),o.startEvent=o.lastMoveEvent),u&&u(o.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){o.lastMoveEvent=e,o.lastMoveEventInfo=Jn(t,o.transformPagePoint),Ke(e)&&0===e.buttons?o.handlePointerUp(e,t):zr.ZP.update(o.updatePoint,!0)},this.handlePointerUp=function(e,t){o.end();var r=o.handlers,n=r.onEnd,i=r.onSessionEnd,a=to(Jn(t,o.transformPagePoint),o.history);o.startEvent&&n&&n(e,a),i&&i(e,a)},!(Xe(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=Jn(rt(e),this.transformPagePoint),s=a.point,c=(0,zr.$B)().timestamp;this.history=[(0,n.pi)((0,n.pi)({},s),{timestamp:c})];var u=t.onSessionStart;u&&u(e,to(a,this.history)),this.removeListeners=yt(st(window,"pointermove",this.handlePointerMove),st(window,"pointerup",this.handlePointerUp),st(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),zr.qY.update(this.updatePoint)},e}();function Jn(e,t){return t?{point:t(e.point)}:e}function eo(e,t){return{x:e.x-t.x,y:e.y-t.y}}function to(e,t){var r=e.point;return{point:r,delta:eo(r,no(t)),offset:eo(r,ro(t)),velocity:oo(t,.1)}}function ro(e){return e[0]}function no(e){return e[e.length-1]}function oo(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,o=no(e);r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Zr(t)));)r--;if(!n)return{x:0,y:0};var i=(o.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function io(e){return e.max-e.min}function ao(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=.01),Kn(e,t)<r}function so(e,t,r,n){void 0===n&&(n=.5),e.origin=n,e.originPoint=Ut(t.min,t.max,e.origin),e.scale=io(r)/io(t),(ao(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ut(r.min,r.max,e.origin)-e.originPoint,(ao(e.translate)||isNaN(e.translate))&&(e.translate=0)}function co(e,t,r,n){so(e.x,t.x,r.x,null===n||void 0===n?void 0:n.originX),so(e.y,t.y,r.y,null===n||void 0===n?void 0:n.originY)}function uo(e,t,r){e.min=r.min+t.min,e.max=e.min+io(t)}function lo(e,t,r){e.min=t.min-r.min,e.max=e.min+io(t)}function fo(e,t,r){lo(e.x,t.x,r.x),lo(e.y,t.y,r.y)}function po(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function ho(e,t){var r,o=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(o=(r=(0,n.CR)([i,o],2))[0],i=r[1]),{min:o,max:i}}var mo=.35;function vo(e,t,r){return{min:go(e,t),max:go(e,r)}}function go(e,t){var r;return"number"===typeof e?e:null!==(r=e[t])&&void 0!==r?r:0}function yo(e){return[e("x"),e("y")]}function bo(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function xo(e){return void 0===e||1===e}function wo(e){var t=e.scale,r=e.scaleX,n=e.scaleY;return!xo(t)||!xo(r)||!xo(n)}function Co(e){return wo(e)||ko(e.x)||ko(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function ko(e){return e&&"0%"!==e}function So(e,t,r){return r+t*(e-r)}function Oo(e,t,r,n,o){return void 0!==o&&(e=So(e,o,n)),So(e,r,n)+t}function jo(e,t,r,n,o){void 0===t&&(t=0),void 0===r&&(r=1),e.min=Oo(e.min,t,r,n,o),e.max=Oo(e.max,t,r,n,o)}function Eo(e,t){var r=t.x,n=t.y;jo(e.x,r.translate,r.scale,r.originPoint),jo(e.y,n.translate,n.scale,n.originPoint)}function Po(e,t){e.min=e.min+t,e.max=e.max+t}function _o(e,t,r){var o=(0,n.CR)(r,3),i=o[0],a=o[1],s=o[2],c=void 0!==t[s]?t[s]:.5,u=Ut(e.min,e.max,c);jo(e,t[i],t[a],u,t.scale)}var To=["x","scaleX","originX"],Ao=["y","scaleY","originY"];function Ro(e,t){_o(e.x,t,To),_o(e.y,t,Ao)}function Do(e,t){return bo(function(e,t){if(!t)return e;var 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))}var Mo=new WeakMap,Io=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var r=this,n=(void 0===t?{}:t).snapToCursor,o=void 0!==n&&n;if(!1!==this.visualElement.isPresent){this.panSession=new Xn(e,{onSessionStart:function(e){r.stopAnimation(),o&&r.snapToCursor(rt(e,"page").point)},onStart:function(e,t){var n,o=r.getProps(),i=o.drag,a=o.dragPropagation,s=o.onDragStart;(!i||a||(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=ft(i),r.openGlobalLock))&&(r.isDragging=!0,r.currentDirection=null,r.resolve
1Constraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),yo((function(e){var t,n,o=r.getAxisMotionValue(e).get()||0;if(ae.test(o)){var i=null===(n=null===(t=r.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i)o=io(i)*(parseFloat(o)/100)}r.originPoint[e]=o})),null===s||void 0===s||s(e,t),null===(n=r.visualElement.animationState)||void 0===n||n.setActive(He.Drag,!0))},onMove:function(e,t){var n=r.getProps(),o=n.dragPropagation,i=n.dragDirectionLock,a=n.onDirectionLock,s=n.onDrag;if(o||r.openGlobalLock){var c=t.offset;if(i&&null===r.currentDirection)return r.currentDirection=function(e,t){void 0===t&&(t=10);var r=null;Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x");return r}(c),void(null!==r.currentDirection&&(null===a||void 0===a||a(r.currentDirection)));r.updateAxis("x",t.point,c),r.updateAxis("y",t.point,c),r.visualElement.syncRender(),null===s||void 0===s||s(e,t)}},onSessionEnd:function(e,t){return r.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(e,t){var r=this.isDragging;if(this.cancel(),r){var n=t.velocity;this.startAnimation(n);var o=this.getProps().onDragEnd;null===o||void 0===o||o(e,t)}},e.prototype.cancel=function(){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,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(He.Drag,!1)},e.prototype.updateAxis=function(e,t,r){var n=this.getProps().drag;if(r&&Fo(e,n,this.currentDirection)){var o=this.getAxisMotionValue(e),i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,t,r){var n=t.min,o=t.max;return void 0!==n&&e<n?e=r?Ut(n,e,r.min):Math.max(e,n):void 0!==o&&e>o&&(e=r?Ut(o,e,r.max):Math.min(e,o)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),r=t.dragConstraints,n=t.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;r&&x(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!r||!o)&&function(e,t){var r=t.top,n=t.left,o=t.bottom,i=t.right;return{x:po(e.x,n,i),y:po(e.y,r,o)}}(o.actual,r),this.elastic=function(e){return void 0===e&&(e=mo),!1===e?e=0:!0===e&&(e=mo),{x:vo(e,"left","right"),y:vo(e,"top","bottom")}}(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&yo((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,r=e.onMeasureDragConstraints;if(!t||!x(t))return!1;var n=t.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(e,t,r){var n=Do(e,r),o=t.scroll;return o&&(Po(n.x,o.x),Po(n.y,o.y)),n}(n,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:ho(e.x,t.x),y:ho(e.y,t.y)}}(o.layout.actual,i);if(r){var s=r(function(e){var t=e.x,r=e.y;return{top:r.min,right:t.max,bottom:r.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=bo(s))}return a},e.prototype.startAnimation=function(e){var t=this,r=this.getProps(),o=r.drag,i=r.dragMomentum,a=r.dragElastic,s=r.dragTransition,c=r.dragSnapToOrigin,u=r.onDragTransitionEnd,l=this.constraints||{},d=yo((function(r){var u;if(Fo(r,o,t.currentDirection)){var d=null!==(u=null===l||void 0===l?void 0:l[r])&&void 0!==u?u:{};c&&(d={min:0,max:0});var f=a?200:1e6,p=a?40:1e7,h=(0,n.pi)((0,n.pi)({type:"inertia",velocity:i?e[r]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},s),d);return t.startAxisValueAnimation(r,h)}}));return Promise.all(d).then(u)},e.prototype.startAxisValueAnimation=function(e,t){return Cn(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;yo((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,r,n="_drag"+e.toUpperCase(),o=this.visualElement.getProps()[n];return o||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)},e.prototype.snapToCursor=function(e){var t=this;yo((function(r){if(Fo(r,t.getProps().drag,t.currentDirection)){var n=t.visualElement.projection,o=t.getAxisMotionValue(r);if(n&&n.layout){var i=n.layout.actual[r],a=i.min,s=i.max;o.set(e[r]-Ut(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,r=this.getProps(),n=r.drag,o=r.dragConstraints,i=this.visualElement.projection;if(x(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};yo((function(e){var r=t.getAxisMotionValue(e);if(r){var n=r.get();a[e]=function(e,t){var r=.5,n=io(e),o=io(t);return o>n?r=Vt(t.min,t.max-n,e.min):n>o&&(r=Vt(e.min,e.max-o,t.min)),Rt(0,1,r)}({min:n,max:n},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),yo((function(e){if(Fo(e,n,null)){var r=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,s=o.max;r.set(Ut(i,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Mo.set(this.visualElement,this);var r=st(this.visualElement.getInstance(),"pointerdown",(function(e){var r=t.getProps(),n=r.drag,o=r.dragListener;n&&(void 0===o||o)&&t.start(e)})),n=function(){x(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",n);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),n();var a=Qe(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var r=e.delta,n=e.hasLayoutChanged;t.isDragging&&n&&(yo((function(e){var n=t.getAxisMotionValue(e);n&&(t.originPoint[e]+=r[e].translate,n.set(n.get()+r[e].translate))})),t.visualElement.syncRender())})),function(){a(),r(),i()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,r=void 0!==t&&t,o=e.dragDirectionLock,i=void 0!==o&&o,a=e.dragPropagation,s=void 0!==a&&a,c=e.dragConstraints,u=void 0!==c&&c,l=e.dragElastic,d=void 0===l?mo:l,f=e.dragMomentum,p=void 0===f||f;return(0,n.pi)((0,n.pi)({},e),{drag:r,dragDirectionLock:i,dragPropagation:s,dragConstraints:u,dragElastic:d,dragMomentum:p})},e}();function Fo(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}var No={pan:Pt((function(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,a=e.visualElement,s=t||r||n||i,c=(0,o.useRef)(null),u=(0,o.useContext)(d).transformPagePoint,l={onSessionStart:i,onStart:r,onMove:t,onEnd:function(e,t){c.current=null,n&&n(e,t)}};(0,o.useEffect)((function(){null!==c.current&&c.current.updateHandlers(l)}
1)),ct(a,"pointerdown",s&&function(e){c.current=new Xn(e,l,{transformPagePoint:u})}),(0,vt.z)((function(){return c.current&&c.current.end()}))})),drag:Pt((function(e){var t=e.dragControls,r=e.visualElement,n=(0,_.h)((function(){return new Io(r)}));(0,o.useEffect)((function(){return t&&t.subscribe(n)}),[n,t]),(0,o.useEffect)((function(){return n.addListeners()}),[n])}))},Lo=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var Bo=function(e){var t=e.treeType,r=void 0===t?"":t,o=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,s=e.measureViewportBox,c=e.render,u=e.readValueFromInstance,l=e.removeValueFromRenderState,d=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,h=e.props,m=e.presenceId,v=e.blockInitialAnimation,g=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var b,x,w=!1,k=g.latestValues,S=g.renderState,E=function(){var e=Lo.map((function(){return new jn})),t={},r={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Lo.forEach((function(n){var o,i="on"+n,a=e[i];null===(o=t[n])||void 0===o||o.call(t),a&&(t[n]=r[i](a))}))}};return e.forEach((function(e,t){r["on"+Lo[t]]=function(t){return e.add(t)},r["notify"+Lo[t]]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.notify.apply(e,(0,n.ev)([],(0,n.CR)(t),!1))}})),r}(),P=new Map,_=new Map,T={},A=(0,n.pi)({},k);function R(){b&&w&&(D(),c(b,S,h.style,V.projection))}function D(){o(V,S,k,t,h)}function M(){E.notifyUpdate(k)}function I(e,t){var r=t.onChange((function(t){k[e]=t,h.onUpdate&&zr.ZP.update(M,!1,!0)})),n=t.onRenderRequest(V.scheduleRender);_.set(e,(function(){r(),n()}))}var F=f(h);for(var N in F){var L=F[N];void 0!==k[N]&&G(L)&&L.set(k[N],!1)}var B=O(h),z=j(h),V=(0,n.pi)((0,n.pi)({treeType:r,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:z?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===p||void 0===p?void 0:p.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(b)},mount:function(e){w=!0,b=V.current=e,V.projection&&V.projection.mount(e),z&&p&&!B&&(x=null===p||void 0===p?void 0:p.addVariantChild(V)),P.forEach((function(e,t){return I(t,e)})),null===p||void 0===p||p.children.add(V),V.setProps(h)},unmount:function(){var e;null===(e=V.projection)||void 0===e||e.unmount(),zr.qY.update(M),zr.qY.render(R),_.forEach((function(e){return e()})),null===x||void 0===x||x(),null===p||void 0===p||p.children.delete(V),E.clearAllListeners(),b=void 0,w=!1},addVariantChild:function(e){var t,r=V.getClosestVariantNode();if(r)return null===(t=r.variantChildren)||void 0===t||t.add(e),function(){return r.variantChildren.delete(e)}},sortNodePosition:function(e){return d&&r===e.treeType?d(V.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return z?V:null===p||void 0===p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return h.layoutId},getInstance:function(){return b},getStaticValue:function(e){return k[e]},setStaticValue:function(e,t){return k[e]=t},getLatestValues:function(){return k},setVisibility:function(e){V.isVisible!==e&&(V.isVisible=e,V.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(V,e,h,t)},measureViewportBox:function(){return s(b,h)},addValue:function(e,t){V.hasValue(e)&&V.removeValue(e),P.set(e,t),k[e]=t.get(),I(e,t)},removeValue:function(e){var t;P.delete(e),null===(t=_.get(e))||void 0===t||t(),_.delete(e),delete k[e],l(e,S)},hasValue:function(e){return P.has(e)},getValue:function(e,t){var r=P.get(e);return void 0===r&&void 0!==t&&(r=Pn(t),V.addValue(e,r)),r},forEachValue:function(e){return P.forEach(e)},readValue:function(e){var r;return null!==(r=k[e])&&void 0!==r?r:u(b,e,t)},setBaseTarget:function(e,t){A[e]=t},getBaseTarget:function(e){if(i){var t=i(h,e);if(void 0!==t&&!G(t))return t}return A[e]}},E),{build:function(){return D(),S},scheduleRender:function(){zr.ZP.render(R,!1,!0)},syncRender:R,setProps:function(e){(e.transformTemplate||h.transformTemplate)&&V.scheduleRender(),h=e,E.updatePropListeners(e),T=function(e,t,r){var n;for(var o in t){var i=t[o],a=r[o];if(G(i))e.addValue(o,i);else if(G(a))e.addValue(o,Pn(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,Pn(null!==(n=e.getStaticValue(o))&&void 0!==n?n:i))}for(var o in r)void 0===t[o]&&e.removeValue(o);return t}(V,f(h),T)},getProps:function(){return h},getVariant:function(e){var t;return null===(t=h.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return h.transition},getTransformPagePoint:function(){return h.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null===p||void 0===p?void 0:p.getVariantContext();if(!B){var t=(null===p||void 0===p?void 0:p.getVariantContext())||{};return void 0!==h.initial&&(t.initial=h.initial),t}for(var r={},n=0;n<Vo;n++){var o=zo[n],i=h[o];(C(i)||!1===i)&&(r[o]=i)}return r}});return V}},zo=(0,n.ev)(["initial"],(0,n.CR)(Vn),!1),Vo=zo.length;function Uo(e){return"string"===typeof e&&e.startsWith("var(--")}var $o=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Wo(e,t,r){void 0===r&&(r=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var o=(0,n.CR)(function(e){var t=$o.exec(e);if(!t)return[,];var r=(0,n.CR)(t,3);return[r[1],r[2]]}(e),2),i=o[0],a=o[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():Uo(a)?Wo(a,t,r+1):a}}var Zo,Ho=new Set(["width","height","top","left","right","bottom","x","y"]),qo=function(e){return Ho.has(e)},Go=function(e,t){e.set(t,!1),e.set(t)},Qo=function(e){return e===de||e===se};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Zo||(Zo={}));var Yo=function(e,t){return parseFloat(e.split(", ")[t])},Ko=function(e,t){return function(r,n){var o=n.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return Yo(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?Yo(a[1],e):0}},Xo=new Set(["x","y","z"]),Jo=V.filter((function(e){return!Xo.has(e)}));var ei={width:function(e,t){var r=e.x,n=t.paddingLeft,o=void 0===n?"0":n,i=t.paddingRight,a=void 0===i?"0":i;return r.max-r.min-parseFloat(o)-parseFloat(a)},height:function(e,t){var r=e.y,n=t.paddingTop,o=void 0===n?"0":n,i=t.paddingBottom,a=void 0===i?"0":i;return r.max-r.min-parseFloat(o)-parseFloat(a)},top:function(e,t){var r=t.top;return parseFloat(r)}
1,left:function(e,t){var r=t.left;return parseFloat(r)},bottom:function(e,t){var r=e.y,n=t.top;return parseFloat(n)+(r.max-r.min)},right:function(e,t){var r=e.x,n=t.left;return parseFloat(n)+(r.max-r.min)},x:Ko(4,13),y:Ko(5,14)},ti=function(e,t,r,o){void 0===r&&(r={}),void 0===o&&(o={}),t=(0,n.pi)({},t),o=(0,n.pi)({},o);var i=Object.keys(t).filter(qo),a=[],s=!1,c=[];if(i.forEach((function(n){var i=e.getValue(n);if(e.hasValue(n)){var u,l=r[n],d=An(l),f=t[n];if(ze(f)){var p=f.length,h=null===f[0]?1:0;l=f[h],d=An(l);for(var m=h;m<p;m++)u?An(f[m]):(u=An(f[m]))===d||Qo(d)&&Qo(u)}else u=An(f);if(d!==u)if(Qo(d)&&Qo(u)){var v=i.get();"string"===typeof v&&i.set(parseFloat(v)),"string"===typeof f?t[n]=parseFloat(f):Array.isArray(f)&&u===se&&(t[n]=f.map(parseFloat))}else(null===d||void 0===d?void 0:d.transform)&&(null===u||void 0===u?void 0:u.transform)&&(0===l||0===f)?0===l?i.set(u.transform(l)):t[n]=d.transform(f):(s||(a=function(e){var t=[];return Jo.forEach((function(r){var n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),s=!0),c.push(n),o[n]=void 0!==o[n]?o[n]:t[n],Go(i,f))}})),c.length){var u=c.indexOf("height")>=0?window.pageYOffset:null,l=function(e,t,r){var n=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach((function(e){s[e]=ei[e](n,i)})),t.syncRender();var c=t.measureViewportBox();return r.forEach((function(r){var n=t.getValue(r);Go(n,s[r]),e[r]=ei[r](c,i)})),e}(t,e,c);return a.length&&a.forEach((function(t){var r=(0,n.CR)(t,2),o=r[0],i=r[1];e.getValue(o).set(i)})),e.syncRender(),null!==u&&window.scrollTo({top:u}),{target:l,transitionEnd:o}}return{target:t,transitionEnd:o}};function ri(e,t,r,n){return function(e){return Object.keys(e).some(qo)}(t)?ti(e,t,r,n):{target:t,transitionEnd:n}}var ni=function(e,t,r,o){var i=function(e,t,r){var o,i=(0,n._T)(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:r};for(var s in r&&(r=(0,n.pi)({},r)),e.forEachValue((function(e){var t=e.get();if(Uo(t)){var r=Wo(t,a);r&&e.set(r)}})),i){var c=i[s];if(Uo(c)){var u=Wo(c,a);u&&(i[s]=u,r&&(null!==(o=r[s])&&void 0!==o||(r[s]=c)))}}return{target:i,transitionEnd:r}}(e,t,o);return ri(e,t=i.target,r,o=i.transitionEnd)};var oi={treeType:"dom",readValueFromInstance:function(e,t){if(W(t)){var r=pn(t);return r&&r.default||0}var n,o=(n=e,window.getComputedStyle(n));return(Y(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]},measureViewportBox:function(e,t){return Do(e,t.transformPagePoint)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,o){var i=r.transformValues;void 0===o&&(o=!0);var a=t.transition,s=t.transitionEnd,c=(0,n._T)(t,["transition","transitionEnd"]),u=function(e,t,r){var n,o,i={};for(var a in e)i[a]=null!==(n=Fn(a,t))&&void 0!==n?n:null===(o=r.getValue(a))||void 0===o?void 0:o.get();return i}(c,a||{},e);if(i&&(s&&(s=i(s)),c&&(c=i(c)),u&&(u=i(u))),o){!function(e,t,r){var n,o,i,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),c=s.length;if(c)for(var u=0;u<c;u++){var l=s[u],d=t[l],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(n=r[l])&&void 0!==n?n:e.readValue(l))&&void 0!==o?o:t[l]),void 0!==f&&null!==f&&("string"===typeof f&&(/^\-?\d*\.?\d+$/.test(f)||kn(f))?f=parseFloat(f):!Dn(f)&&lr.test(d)&&(f=hn(l,d)),e.addValue(l,Pn(f)),null!==(i=(a=r)[l])&&void 0!==i||(a[l]=f),e.setBaseTarget(l,f))}}(e,c,u);var l=ni(e,c,u,s);s=l.transitionEnd,c=l.target}return(0,n.pi)({transition:a,transitionEnd:s},c)},scrapeMotionValuesFromProps:Ne,build:function(e,t,r,n,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),ve(t,r,n,o.transformTemplate)},render:Me},ii=Bo(oi),ai=Bo((0,n.pi)((0,n.pi)({},oi),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return W(t)?(null===(r=pn(t))||void 0===r?void 0:r.default)||0:(t=Ie.has(t)?t:De(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Le,build:function(e,t,r,n,o){Pe(t,r,n,o.transformTemplate)},render:Fe})),si=function(e,t){return L(e)?ai(t,{enableHardwareAcceleration:!1}):ii(t,{enableHardwareAcceleration:!0})};function ci(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ui={correct:function(e,t){if(!t.target)return e;if("string"===typeof e){if(!se.test(e))return e;e=parseFloat(e)}var r=ci(e,t.target.x),n=ci(e,t.target.y);return"".concat(r,"% ").concat(n,"%")}},li="_$css",di={correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace($o,(function(e){return a.push(e),li})));var s=lr.parse(e);if(s.length>5)return o;var c=lr.createTransformer(e),u="number"!==typeof s[0]?1:0,l=n.x.scale*r.x,d=n.y.scale*r.y;s[0+u]/=l,s[1+u]/=d;var f=Ut(l,d,.5);"number"===typeof s[2+u]&&(s[2+u]/=f),"number"===typeof s[3+u]&&(s[3+u]/=f);var p=c(s);if(i){var h=0;p=p.replace(li,(function(){var e=a[h];return h++,e}))}return p}},fi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.ZT)(t,e),t.prototype.componentDidMount=function(){var e,t=this,r=this.props,o=r.visualElement,i=r.layoutGroup,a=r.switchLayoutGroup,s=r.layoutId,c=o.projection;e=pi,Object.assign(B,e),c&&((null===i||void 0===i?void 0:i.group)&&i.group.add(c),(null===a||void 0===a?void 0:a.register)&&s&&a.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",(function(){t.safeToRemove()})),c.setOptions((0,n.pi)((0,n.pi)({},c.options),{onExitComplete:function(){return t.safeToRemove()}}))),T.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,r=this.props,n=r.layoutDependency,o=r.visualElement,i=r.drag,a=r.isPresent,s=o.projection;return s?(s.isPresent=a,i||e.layoutDependency!==n||void 0===n?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||zr.ZP.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,r=e.layoutGroup,n=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null===r||void 0===r?void 0:r.group)&&r.group.remove(o),(null===n||void 0===n?void 0:n.deregister)&&n.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null===e||void 0===e||e()},t.prototype.render=function(){return null},t}(o.Component);var pi={borderRadius:(0,n.pi)((0,n.pi)({},ui),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ui,borderTopRightRadius:ui,borderBottomLeftRadius:ui,borderBottomRightRadius:ui,boxSh
1adow:di},hi={measureLayout:function(e){var t=(0,n.CR)((0,Tt.oO)(),2),r=t[0],i=t[1],a=(0,o.useContext)(R.p);return o.createElement(fi,(0,n.pi)({},e,{layoutGroup:a,switchLayoutGroup:(0,o.useContext)(D),isPresent:r,safeToRemove:i}))}};var mi=["TopLeft","TopRight","BottomLeft","BottomRight"],vi=mi.length,gi=function(e){return"string"===typeof e?parseFloat(e):e},yi=function(e){return"number"===typeof e||se.test(e)};function bi(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}var xi=Ci(0,.5,_r),wi=Ci(.5,.95,kr);function Ci(e,t,r){return function(n){return n<e?0:n>t?1:r(Vt(e,t,n))}}function ki(e,t){e.min=t.min,e.max=t.max}function Si(e,t){ki(e.x,t.x),ki(e.y,t.y)}function Oi(e,t,r,n,o){return e=So(e-=t,1/r,n),void 0!==o&&(e=So(e,1/o,n)),e}function ji(e,t,r,o,i){var a=(0,n.CR)(r,3),s=a[0],c=a[1],u=a[2];!function(e,t,r,n,o,i,a){if(void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=.5),void 0===i&&(i=e),void 0===a&&(a=e),ae.test(t)&&(t=parseFloat(t),t=Ut(a.min,a.max,t/100)-a.min),"number"===typeof t){var s=Ut(i.min,i.max,n);e===i&&(s-=t),e.min=Oi(e.min,t,r,s,o),e.max=Oi(e.max,t,r,s,o)}}(e,t[s],t[c],t[u],t.scale,o,i)}var Ei=["x","scaleX","originX"],Pi=["y","scaleY","originY"];function _i(e,t,r,n){ji(e.x,t,Ei,null===r||void 0===r?void 0:r.x,null===n||void 0===n?void 0:n.x),ji(e.y,t,Pi,null===r||void 0===r?void 0:r.y,null===n||void 0===n?void 0:n.y)}function Ti(e){return 0===e.translate&&1===e.scale}function Ai(e){return Ti(e.x)&&Ti(e.y)}function Ri(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}var Di=function(){function e(){this.members=[]}return e.prototype.add=function(e){Sn(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(On(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,r=this.members.findIndex((function(t){return e===t}));if(0===r)return!1;for(var n=r;n>=0;n--){var o=this.members[n];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var r,n=this.lead;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),!1===e.options.crossfade&&n.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,r,n,o,i;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(i=null===(n=e.resumingFrom)||void 0===n?void 0:(o=n.options).onExitComplete)||void 0===i||i.call(o)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();
1function Mi(e,t,r){var n=e.x.translate/t.x,o=e.y.translate/t.y,i="translate3d(".concat(n,"px, ").concat(o,"px, 0) ");if(i+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var a=r.rotate,s=r.rotateX,c=r.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),c&&(i+="rotateY(".concat(c,"deg) "))}var u=e.x.scale*t.x,l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(i+="scale(".concat(u,", ").concat(l,")"))?"none":i}var Ii=function(e,t){return e.depth-t.depth},Fi=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Sn(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){On(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Ii),this.isDirty=!1,this.children.forEach(e)},e}();function Ni(e){var t=e.attachResizeListener,r=e.defaultParent,o=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,o){var i=this;void 0===t&&(t={}),void 0===o&&(o=null===r||void 0===r?void 0:r()),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=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(Wi),i.nodes.forEach(Zi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=o?o.root||o:this,this.path=o?(0,n.ev)((0,n.ev)([],(0,n.CR)(o.path),!1),[o],!1):[],this.parent=o,this.depth=o?o.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Fi)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new jn),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=this.eventHandlers.get(e);null===o||void 0===o||o.notify.apply(o,(0,n.ev)([],(0,n.CR)(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,r){var o,i=this;if(void 0===r&&(r=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,s=a.layoutId,c=a.layout,u=a.visualElement;if(u&&!u.getInstance()&&u.mount(e),this.root.nodes.add(this),null===(o=this.parent)||void 0===o||o.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),r&&(c||s)&&(this.isLayoutDirty=!0),t){var l,d=function(){return i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(l),l=window.setTimeout(d,250),T.hasAnimatedSinceResize&&(T.hasAnimatedSinceResize=!1,i.nodes.forEach($i))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&u&&(s||c)&&this.addEventListener("didUpdate",(function(e){var t,r,o,a,s,c=e.delta,l=e.hasLayoutChanged,d=e.hasRelativeTargetChanged,f=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var p=null!==(r=null!==(t=i.options.transition)&&void 0!==t?t:u.getDefaultTransition())&&void 0!==r?r:Ki,h=u.getProps(),m=h.onLayoutAnimationStart,v=h.onLayoutAnimationComplete,g=!i.targetLayout||!Ri(i.targetLayout,f)||d,y=!l&&d;if((null===(o=i.resumeFrom)||void 0===o?void 0:o.instance)||y||l&&(g||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(c,y);var b=(0,n.pi)((0,n.pi)({},wn(p,"layout")),{onPlay:m,onComplete:v});u.shouldReduceMotion&&(b.delay=0,b.type=!1),i.startAnimation(b)}else l||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(s=(a=i.options).onExitComplete)||void 0===s||s.call(a));i.targetLayout=f}))}},e.prototype.unmount=function(){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,zr.qY.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}
1,e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Hi))},e.prototype.willUpdate=function(e){var t,r,n;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(r=(t=this.options).onExitComplete)||void 0===r||r.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var i=this.path[o];i.shouldResetTransform=!0,i.updateScroll()}var a=this.options,s=a.layoutId,c=a.layout;if(void 0!==s||c){var u=null===(n=this.options.visualElement)||void 0===n?void 0:n.getProps().transformTemplate;this.prevTransformTemplateValue=null===u||void 0===u?void 0:u(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Vi);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Xi),this.potentialNodes.clear()),this.nodes.forEach(Ui),this.nodes.forEach(Li),this.nodes.forEach(Bi),this.clearAllSnapshots(),zr.iW.update(),zr.iW.preRender(),zr.iW.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(zi),this.sharedNodes.forEach(qi)},e.prototype.scheduleUpdateProjection=function(){zr.ZP.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;zr.ZP.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));ea(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++){this.path[t].updateScroll()}var r=this.measure();ea(r);var n=this.layout;this.layout={measured:r,actual:this.removeElementScroll(r)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null===n||void 0===n?void 0:n.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=o(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,r=this.projectionDelta&&!Ai(this.projectionDelta),n=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null===n||void 0===n?void 0:n(this.latestValues,""),i=o!==this.prevTransformTemplateValue;t&&(r||Co(this.latestValues)||i)&&(a(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),r=this.root.scroll;return r&&(Po(t.x,r.x),Po(t.y,r.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Si(t,e);for(var r=0;r<this.path.length;r++){var n=this.path[r],o=n.scroll,i=n.options,a=n.isScrollRoot;if(n!==this.root&&o&&i.layoutScroll){if(a){Si(t,e);var s=this.root.scroll;s&&(Po(t.x,-s.x),Po(t.y,-s.y))}Po(t.x,o.x),Po(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var r={x:{min:0,max:0},y:{min:0,max:0}};Si(r,e);for(var n=0;n<this.path.length;n++){var o=this.path[n];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ro(r,{x:-o.scroll.x,y:-o.scroll.y}),Co(o.latestValues)&&Ro(r,o.latestValues)}return Co(this.latestValues)&&Ro(r,this.latestValues),r},e.prototype.removeTransform=function(e){var t,r={x:{min:0,max:0},y:{min:0,max:0}};Si(r,e);for(var n=0;n<this.path.length;n++){var o=this.path[n];if(o.instance&&Co(o.latestValues)){wo(o.latestValues)&&o.updateSnapshot();var i={x:{min:0,max:0},y:{min:0,max:0}};Si(i,o.measure()),_i(r,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,i)}}return Co(this.latestValues)&&_i(r,this.latestValues),r},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=(0,n.pi)((0,n.pi)((0,n.pi)({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,r,n,o=this.options,i=o.layout,a=o.layoutId;this.layout&&(i||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},fo(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Si(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,r=this.relativeTarget,n=this.relativeParent.target,uo(t.x,r.x,n.x),uo(t.y,r.y,n.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Si(this.target,this.layout.actual),Eo(this.target,this.targetDelta)):Si(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},fo(this.relativeTargetOrigin,this.target,this.relativeParent.target),Si(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Co(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,r=t.layout,n=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(r||n)){var o=this.getLead();
1Si(this.layoutCorrected,this.layout.actual),function(e,t,r,n){var o,i;void 0===n&&(n=!1);var a=r.length;if(a){var s,c;t.x=t.y=1;for(var u=0;u<a;u++)c=(s=r[u]).projectionDelta,"contents"!==(null===(i=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ro(e,{x:-s.scroll.x,y:-s.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,Eo(e,c)),n&&Co(s.latestValues)&&Ro(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var i=o.target;if(i){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,c=this.projectionTransform;co(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=Mi(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",i))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,r,n;void 0===e&&(e=!0),null===(r=(t=this.options).scheduleRender)||void 0===r||r.call(t),e&&(null===(n=this.getStack())||void 0===n||n.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var r,o=this;void 0===t&&(t=!1);var i=this.snapshot,a=(null===i||void 0===i?void 0:i.latestValues)||{},s=(0,n.pi)({},this.latestValues),c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var u={x:{min:0,max:0},y:{min:0,max:0}},l=null===i||void 0===i?void 0:i.isShared,d=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0)<=1,f=Boolean(l&&!d&&!0===this.options.crossfade&&!this.path.some(Yi));this.animationProgress=0,this.mixTargetDelta=function(t){var r,n=t/1e3;Gi(c.x,e.x,n),Gi(c.y,e.y,n),o.setTargetDelta(c),o.relativeTarget&&o.relativeTargetOrigin&&o.layout&&(null===(r=o.relativeParent)||void 0===r?void 0:r.layout)&&(fo(u,o.layout.actual,o.relativeParent.layout.actual),function(e,t,r,n){Qi(e.x,t.x,r.x,n),Qi(e.y,t.y,r.y,n)}(o.relativeTarget,o.relativeTargetOrigin,u,n)),l&&(o.animationValues=s,function(e,t,r,n,o,i){var a,s,c,u;o?(e.opacity=Ut(0,null!==(a=r.opacity)&&void 0!==a?a:1,xi(n)),e.opacityExit=Ut(null!==(s=t.opacity)&&void 0!==s?s:1,0,wi(n))):i&&(e.opacity=Ut(null!==(c=t.opacity)&&void 0!==c?c:1,null!==(u=r.opacity)&&void 0!==u?u:1,n));for(var l=0;l<vi;l++){var d="border".concat(mi[l],"Radius"),f=bi(t,d),p=bi(r,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||yi(f)===yi(p)?(e[d]=Math.max(Ut(gi(f),gi(p),n),0),(ae.test(p)||ae.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||r.rotate)&&(e.rotate=Ut(t.rotate||0,r.rotate||0,n))}(s,a,o.latestValues,n,f,d)),o.root.scheduleUpdateProjection(),o.scheduleRender(),o.animationProgress=n},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,r,o=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(r=this.resumingFrom.currentAnimation)||void 0===r||r.stop()),this.pendingAnimation&&(zr.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zr.ZP.update((function(){T.hasAnimatedSinceResize=!0,o.currentAnimation=function(e,t,r){void 0===r&&(r={});var n=G(e)?e:Pn(e);return Cn("",n,t,r),{stop:function(){return n.stop()},isAnimating:function(){return n.isAnimating()}}}(0,1e3,(0,n.pi)((0,n.pi)({},e),{onUpdate:function(t){var r;o.mixTargetDelta(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),o.completeAnimation()}})),o.resumingFrom&&(o.resumingFrom.currentAnimation=o.currentAnimation),o.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){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")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,r=e.target,n=e.layout,o=e.latestValues;t&&r&&n&&(Si(t,r),Ro(t,o),co(this.projectionDeltaWithTransform,this.layoutCorrected,t,o))},e.prototype.registerSharedNode=function(e,t){var r,n,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Di),this.sharedNodes.get(e).add(t),t.promote({transition:null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.transition,preserveFollowOpacity:null===(o=null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(n,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,r=t.needsReset,n=t.transition,o=t.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,o),r&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,r={},n=0;n<z.length;n++){var o="rotate"+z[n];e.getStaticValue(o)&&(t=!0,r[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(var o in null===e||void 0===e||e.syncRender(),r)e.setStaticValue(o,r[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,r,n,o,i,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var c=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Ue(e.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var l={};return this.options.layoutId&&(l.opacity=null!==(r=this.latestValues.opacity)&&void 0!==r?r:1,l.pointerEvents=Ue(e.pointerEvents)||""),this.hasProjected&&!Co(this.latestValues)&&(l.transform=c?c({},""):"none",this.hasProjected=!1),l}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Mi(this.projectionDeltaWithTransform,this.treeScale,d),c&&(s.transform=c(d,s.transform));var f=this.projectionDelta,p=f.x,h=f.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),u.animationValues?s.opacity=u===this?null!==(o=null!==(n=d.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?null!==(i=d.opacity)&&void 0!==i?i:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,B)if(void 0!==d[m]){var v=B[m],g=v.correct,y=v.applyTo,b=g(d[m],u);
1if(y)for(var x=y.length,w=0;w<x;w++)s[y[w]]=b;else s[m]=b}return this.options.layoutId&&(s.pointerEvents=u===this?Ue(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Vi),this.root.sharedNodes.clear()},e}()}function Li(e){e.updateLayout()}function Bi(e){var t,r,n,o,i=null!==(r=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==r?r:e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,c=a.measured;"size"===e.options.animationType?yo((function(e){var t=i.isShared?i.measured[e]:i.layout[e],r=io(t);t.min=s[e].min,t.max=t.min+r})):"position"===e.options.animationType&&yo((function(e){var t=i.isShared?i.measured[e]:i.layout[e],r=io(s[e]);t.max=t.min+r}));var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};co(u,s,i.layout);var l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i.isShared?co(l,e.applyTransform(c,!0),i.measured):co(l,s,i.layout);var d=!Ai(u),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var v={x:{min:0,max:0},y:{min:0,max:0}};fo(v,i.layout,h.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};fo(g,s,m.actual),Ri(v,g)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:l,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(o=(n=e.options).onExitComplete)||void 0===o||o.call(n));e.options.transition=void 0}function zi(e){e.clearSnapshot()}function Vi(e){e.clearMeasurements()}function Ui(e){var t=e.options.visualElement;(null===t||void 0===t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function $i(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Wi(e){e.resolveTargetDelta()}function Zi(e){e.calcProjection()}function Hi(e){e.resetRotation()}function qi(e){e.removeLeadSnapshot()}function Gi(e,t,r){e.translate=Ut(t.translate,0,r),e.scale=Ut(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Qi(e,t,r,n){e.min=Ut(t.min,r.min,n),e.max=Ut(t.max,r.max,n)}function Yi(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Ki={duration:.45,ease:[.4,0,.1,1]};function Xi(e,t){for(var r=e.root,n=e.path.length-1;n>=0;n--)if(Boolean(e.path[n].instance)){r=e.path[n];break}var o=(r&&r!==e.root?r.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function Ji(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ea(e){Ji(e.x),Ji(e.y)}var ta=Ni({attachResizeListener:function(e,t){return Qe(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),ra={current:void 0},na=Ni({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!ra.current){var e=new ta(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ra.current=e}return ra.current},resetTransform:function(e,t){e.style.transform=null!==t&&void 0!==t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),oa=(0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},qn),_t),No),hi),ia=F((function(e,t){return function(e,t,r,o,i){var a=t.forwardMotionProps,s=void 0!==a&&a,c=L(e)?qe:Ge;return(0,n.pi)((0,n.pi)({},c),{preloadedFeatures:r,useRender:Ae(s),createVisualElement:o,projectionNodeConstructor:i,Component:e})}(e,t,oa,si,na)}))},1741:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});var n="undefined"!==typeof document},9304:function(e,t,r){"use strict";r.d(t,{O:function(){return o}});var n=r(4155),o=("undefined"===typeof n||n.env,"production")},1981:function(e,t,r){"use strict";r.d(t,{h:function(){return o}});var n=r(7294);function o(e){var t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},6316:function(e,t,r){"use strict";r.d(t,{M:function(){return a}});var n=r(1981),o=0,i=function(){return o++},a=function(){return(0,n.h)(i)}},8868:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var n=r(7294),o=r(1741).j?n.useLayoutEffect:n.useEffect},5411:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(7294);function o(e){return(0,n.useEffect)((function(){return function(){return e()}}),[])}},4735:function(e,t,r){"use strict";r.d(t,{qY:function(){return p},ZP:function(){return b},iW:function(){return h},$B:function(){return y}});const n=1/60*1e3,o="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),i="undefined"!==typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(o())),n);let a=!0,s=!1,c=!1;const u={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],d=l.reduce(((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const c=s&&o,u=c?t:r;
1return i&&a.add(e),-1===u.indexOf(e)&&(u.push(e),c&&o&&(n=t.length)),e},cancel:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:c=>{if(o)i=!0;else{if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let r=0;r<n;r++){const n=t[r];n(c),a.has(n)&&(s.schedule(n),e())}o=!1,i&&(i=!1,s.process(c))}}};return s}((()=>s=!0)),e)),{}),f=l.reduce(((e,t)=>{const r=d[t];return e[t]=(e,t=!1,n=!1)=>(s||g(),r.schedule(e,t,n)),e}),{}),p=l.reduce(((e,t)=>(e[t]=d[t].cancel,e)),{}),h=l.reduce(((e,t)=>(e[t]=()=>d[t].process(u),e)),{}),m=e=>d[e].process(u),v=e=>{s=!1,u.delta=a?n:Math.max(Math.min(e-u.timestamp,40),1),u.timestamp=e,c=!0,l.forEach(m),c=!1,s&&(a=!1,i(v))},g=()=>{s=!0,a=!0,c||i(v)},y=()=>u;var b=f},2587:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:function(){return n}})},29:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(u){return void r(u)}s.done?t(c):Promise.resolve(c).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,c,"next",e)}function c(e){n(a,o,i,s,c,"throw",e)}s(void 0)}))}}r.d(t,{Z:function(){return o}})},9499:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:function(){return n}})},7191:function(e,t,r){"use strict";function n(e){if(null==e)throw new TypeError("Cannot destructure undefined")}r.d(t,{Z:function(){return n}})},4730:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{Z:function(){return n}})},6835:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(2937);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||(0,n.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},7812:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(2587);var o=r(2937);function i(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2937:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(2587);function o(e,t){if(e){if("string"===typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}},7536:function(e,t,r){"use strict";r.d(t,{cI:function(){return ke}});var n=r(7294),o=e=>"checkbox"===e.type,i=e=>e instanceof Date,a=e=>null==e;const s=e=>"object"===typeof e;var c=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!i(e),u=e=>c(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,l=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),d=e=>Array.isArray(e)?e.filter(Boolean):[],f=e=>void 0===e,p=(e,t,r)=>{if(!t||!c(e))return r;const n=d(t.split(/[,[\].]+?/)).reduce(((e,t)=>a(e)?e:e[t]),e);return f(n)||n===e?f(e[t])?r:e[t]:n};const h="blur",m="focusout",v="onBlur",g="onChange",y="onSubmit",b="onTouched",x="all",w="max",C="min",k="maxLength",S="minLength",O="pattern",j="required",E="validate";n.createContext(null);var P=(e,t,r,n=!0)=>{const o={};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t[o]!==x&&(t[o]=!n||x),r&&(r[o]=!0),e[o]}});return o},_=e=>c(e)&&!Object.keys(e).length,T=(e,t,r)=>{const{name:n,...o}=e;return _(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!r||x)))},A=e=>Array.isArray(e)?e:[e];function R(e){const t=n.useRef(e);t.current=e,n.useEffect((()=>{const r=!e.disabled&&t.current.subject.subscribe({next:t.current.callback});return()=>(e=>{e&&e.unsubscribe()})(r)}),[e.disabled])}var D=e=>"string"===typeof e,M=(e,t,r,n)=>{const o=Array.isArray(e);return D(e)?(n&&t.watch.add(e),p(r,e)):o?e.map((e=>(n&&t.watch.add(e),p(r,e)))):(n&&(t.watchAll=!0),r)},I=e=>"function"===typeof e,F=e=>{for(const t in e)if(I(e[t]))return!0;return!1};var N=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},L=e=>/^\w*$/.test(e),B=e=>d(e.replace(/["|']|\]/g,"").split(/\.|\[/));function z(e,t,r){let n=-1;const o=L(t)?[t]:B(t),i=o.length,a=i-1;for(;++n<i;){const t=o[n];let i=r;if(n!==a){const r=e[t];i=c(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}e[t]=i,e=e[t]}return e}const V=(e,t,r)=>{for(const n of r||Object.keys(e)){const r=p(e,n);if(r){const{_f:e,...n}=r;if(e&&t(e.name)){if(e.ref.focus&&f(e.ref.focus()))break;if(e.refs){e.refs[0].focus();break}}else c(n)&&V(n,t)}}};var U=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),$=(e,t,r)=>{const n=d(p(e,r));return z(n,"root",t[r]),z(e,r,n),e},W=e=>"boolean"===typeof e,Z=e=>"file"===e.type,H=e=>D(e)||n.isValidElement(e),q=e=>"radio"===e.type,G=e=>e instanceof RegExp;const Q={value:!1,isValid:!1},Y={value:!0,isValid:!0};var K=e=>{if(Array.isArray(e)){if(e.length>1){const 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&&!f(e[0].attributes.value)?f(e[0].value)||""===e[0].value?Y:{value:e[0].value,isValid:!0}:Y:Q}return Q};const X={isValid:!1,value:null};var J=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),X):X;function ee(e,t,r="validate"){if(H(e)||Array.isArray(e)&&e.every(H)||W(e)&&!e)return{type:r,message:H(e)?e:"",ref:t}}var te=e=>c(e)&&!G(e)?e:{value:e,message:""},re=async(e,t,r,n,i)=>{const{ref:s,refs:u,required:l,maxLength:d,minLength:f,min:p,max:h,pattern:m,validate:v,name:g,valueAsNumber:y,mount:b,disabled:x}=e._f;if(!b||x)return{};const P=u?u[0]:s,T=e=>{n&&P.reportValidity&&(P.setCustomValidity(W(e)?"":e||" "),P.reportValidity())},A={},R=q(s),M=o(s),F=R||M,L=(y||Z(s))&&!s.value||""===t||Array.isArray(t)&&!t.length,B=N.bind(null,g,r,A),z=(e,t,r,n=k,o=S)=>{const i=e?t:r;A[g]={type:e?n:o,message:i,ref:s,...B(e?n:o,i)}};if(i?!Array.isArray(t)||!t.length:l&&(!F&&(L||a(t))||W(t)&&!t||M&&!K(u).isValid||R&&!J(u).isValid)){const{value:e,message:t}=H(l)?{value:!!l,message:l}:te(l);if(e&&(A[g]={type:j,message:t,ref:P,...B(j,t)},!r))return T(t),A}if(!L&&(!a(p)||!a(h))){let e,n;const o=te(h),i=te(p);if(a(t)||isNaN(t)){const r=s.valueAsDate||new Date(t);D(o.value)&&(e=r>new Date(o.value)),D(i.value)&&(n=r<new Date(i.value))}else{const r=s.valueAsNumber||+t;a(o.value)||(e=r>o.value),a(i.value)||(n=r<i.value)}
vendor: 4,121 bytes, line 1
1if((e||n)&&(z(!!e,o.message,i.message,w,C),!r))return T(A[g].message),A}if((d||f)&&!L&&(D(t)||i&&Array.isArray(t))){const e=te(d),n=te(f),o=!a(e.value)&&t.length>e.value,i=!a(n.value)&&t.length<n.value;if((o||i)&&(z(o,e.message,n.message),!r))return T(A[g].message),A}if(m&&!L&&D(t)){const{value:e,message:n}=te(m);if(G(e)&&!t.match(e)&&(A[g]={type:O,message:n,ref:s,...B(O,n)},!r))return T(n),A}if(v)if(I(v)){const e=ee(await v(t),P);if(e&&(A[g]={...e,...B(E,e.message)},!r))return T(e.message),A}else if(c(v)){let e={};for(const n in v){if(!_(e)&&!r)break;const o=ee(await v[n](t),P,n);o&&(e={...o,...B(n,o.message)},T(o.message),r&&(A[g]=e))}if(!_(e)&&(A[g]={ref:P,...e},!r))return A}return T(!0),A};var ne="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function oe(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(ne&&(e instanceof Blob||e instanceof FileList)||!r&&!c(e))return e;t=r?[]:{};for(const r in e){if(I(e[r])){t=e;break}t[r]=oe(e[r])}}return t}var ie=e=>({isOnSubmit:!e||e===y,isOnBlur:e===v,isOnChange:e===g,isOnAll:e===x,isOnTouch:e===b});function ae(e){for(const t in e)if(!f(e[t]))return!1;return!0}function se(e,t){const r=L(t)?[t]:B(t),n=1==r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=f(e)?n++:e[t[n++]];return e}(e,r),o=r[r.length-1];let i;n&&delete n[o];for(let a=0;a<r.slice(0,-1).length;a++){let t,n=-1;const o=r.slice(0,-(a+1)),s=o.length-1;for(a>0&&(i=e);++n<o.length;){const r=o[n];t=t?t[r]:e[r],s===n&&(c(t)&&_(t)||Array.isArray(t)&&ae(t))&&(i?delete i[r]:delete e[r]),i=t}}return e}function ce(){let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var ue=e=>a(e)||!s(e);function le(e,t){if(ue(e)||ue(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const r=e[o];if(!n.includes(o))return!1;if("ref"!==o){const e=t[o];if(i(r)&&i(e)||c(r)&&c(e)||Array.isArray(r)&&Array.isArray(e)?!le(r,e):r!==e)return!1}}return!0}var de=e=>{const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},fe=e=>"select-multiple"===e.type,pe=e=>de(e)&&e.isConnected;function he(e,t={}){const r=Array.isArray(e);if(c(e)||r)for(const n in e)Array.isArray(e[n])||c(e[n])&&!F(e[n])?(t[n]=Array.isArray(e[n])?[]:{},he(e[n],t[n])):a(e[n])||(t[n]=!0);return t}function me(e,t,r){const n=Array.isArray(e);if(c(e)||n)for(const o in e)Array.isArray(e[o])||c(e[o])&&!F(e[o])?f(t)||ue(r[o])?r[o]=Array.isArray(e[o])?he(e[o],[]):{...he(e[o])}:me(e[o],a(t)?{}:t[o],r[o]):r[o]=!le(e[o],t[o]);return r}var ve=(e,t)=>me(e,t,he(t)),ge=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>f(e)?e:t?""===e||a(e)?NaN:+e:r&&D(e)?new Date(e):n?n(e):e;function ye(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return Z(t)?t.files:q(t)?J(e.refs).value:fe(t)?[...t.selectedOptions].map((({value:e})=>e)):o(t)?K(e.refs).value:ge(f(t.value)?e.ref.value:t.value,e)}var be=e=>f(e)?void 0:G(e)?e.source:c(e)?G(e.value)?e.value.source:e.value:e;function xe(e,t,r){const n=p(e,r);if(n||L(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const n=o.join("."),i=p(t,n),a=p(e,n);if(i&&!Array.isArray(i)&&r!==n)return{name:r};if(a&&a.type)return{name:n,error:a};o.pop()}return{name:r}}const we={mode:y,reValidateMode:g,shouldFocusError:!0};function Ce(e={}){let t,r={...we,...e},n={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},s={},c=oe(r.defaultValues)||{},v=r.shouldUnregister?{}:oe(c),g={action:!1,mount:!1,watch:!1},y={mount:new Set,unMount:new Set,array:new Set,watch:new Set},b=0,w={};const C={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},k={watch:ce(),array:ce(),state:ce()},S=ie(r.mode),O=ie(r.reValidateMode),j=r.criteriaMode===x,E=async e=>{let t=!1;
1return C.isValid&&(t=r.resolver?_((await F()).errors):await N(s,!0),e||t===n.isValid||(n.isValid=t,k.state.next({isValid:t}))),t},P=(e,t,r,n)=>{const o=p(s,e);if(o){const i=p(v,e,f(r)?p(c,e):r);f(i)||n&&n.defaultChecked||t?z(v,e,t?i:ye(o._f)):H(e,i),g.mount&&E()}},T=(e,t,r,o,i)=>{let a=!1;const s={name:e},u=p(n.touchedFields,e);if(C.isDirty){const e=n.isDirty;n.isDirty=s.isDirty=L(),a=e!==s.isDirty}if(C.dirtyFields&&(!r||o)){const r=p(n.dirtyFields,e);le(p(c,e),t)?se(n.dirtyFields,e):z(n.dirtyFields,e,!0),s.dirtyFields=n.dirtyFields,a=a||r!==p(n.dirtyFields,e)}return r&&!u&&(z(n.touchedFields,e,r),s.touchedFields=n.touchedFields,a=a||C.touchedFields&&u!==r),a&&i&&k.state.next(s),a?s:{}},R=async(r,o,i,a)=>{const s=p(n.errors,r),c=C.isValid&&n.isValid!==o;var u;if(e.delayError&&i?(u=()=>((e,t)=>{z(n.errors,e,t),k.state.next({errors:n.errors})})(r,i),t=e=>{clearTimeout(b),b=window.setTimeout(u,e)},t(e.delayError)):(clearTimeout(b),t=null,i?z(n.errors,r,i):se(n.errors,r)),(i?!le(s,i):s)||!_(a)||c){const e={...a,...c?{isValid:o}:{},errors:n.errors,name:r};n={...n,...e},k.state.next(e)}w[r]--,C.isValidating&&!Object.values(w).some((e=>e))&&(k.state.next({isValidating:!1}),w={})},F=async e=>r.resolver?await r.resolver({...v},r.context,((e,t,r,n)=>{const o={};for(const i of e){const e=p(t,i);e&&z(o,i,e._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}})(e||y.mount,s,r.criteriaMode,r.shouldUseNativeValidation)):{},N=async(e,t,o={valid:!0})=>{for(const i in e){const a=e[i];if(a){const{_f:e,...i}=a;if(e){const i=y.array.has(e.name),s=await re(a,p(v,e.name),j,r.shouldUseNativeValidation,i);if(s[e.name]&&(o.valid=!1,t))break;!t&&(p(s,e.name)?i?$(n.errors,s,e.name):z(n.errors,e.name,s[e.name]):se(n.errors,e.name))}i&&await N(i,t,o)}}return o.valid},L=(e,t)=>(e&&t&&z(v,e,t),!le(X(),c)),B=(e,t,r)=>{const n={...g.mount?v:f(t)?c:D(e)?{[e]:t}:t};return M(e,y,n,r)},H=(e,t,r={})=>{const n=p(s,e);let i=t;if(n){const r=n._f;r&&(!r.disabled&&z(v,e,ge(t,r)),i=ne&&de(r.ref)&&a(t)?"":t,fe(r.ref)?[...r.ref.options].forEach((e=>e.selected=i.includes(e.value))):r.refs?o(r.ref)?r.refs.length>1?r.refs.forEach((e=>!e.disabled&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach((e=>e.checked=e.value===i)):Z(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||k.watch.next({name:e})))}(r.shouldDirty||r.shouldTouch)&&T(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&K(e)},G=(e,t,r)=>{for(const n in t){const o=t[n],a=`${e}.${n}`,c=p(s,a);!y.array.has(e)&&ue(o)&&(!c||c._f)||i(o)?H(a,o,r):G(a,o,r)}},Q=(e,t,r={})=>{const o=p(s,e),i=y.array.has(e),u=oe(t);z(v,e,u),i?(k.array.next({name:e,values:v}),(C.isDirty||C.dirtyFields)&&r.shouldDirty&&(n.dirtyFields=ve(c,v),k.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:L(e,u)}))):!o||o._f||a(u)?H(e,u,r):G(e,u,r),U(e,y)&&k.state.next({}),k.watch.next({name:e})},Y=async e=>{const o=e.target;let i=o.name;const a=p(s,i);if(a){let l,d;const f=o.type?ye(a._f):u(e),g=e.type===h||e.type===m,b=!((c=a._f).mount&&(c.required||c.min||c.max||c.maxLength||c.minLength||c.pattern||c.validate))&&!r.resolver&&!p(n.errors,i)&&!a._f.deps||((e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e))(g,p(n.touchedFields,i),n.isSubmitted,O,S),x=U(i,y,g);z(v,i,f),g?(a._f.onBlur&&a._f.onBlur(e),t&&t(0)):a._f.onChange&&a._f.onChange(e);const C=T(i,f,g,!1),P=!_(C)||x;if(!g&&k.watch.next({name:i,type:e.type}),b)return P&&k.state.next({name:i,...x?{}:C});if(!g&&x&&k.state.next({}),w[i]=(w[i],1),k.state.next({isValidating:!0}),r.resolver){const{errors:e}=await F([i]),t=xe(n.errors,s,i),r=xe(e,s,t.name||i);l=r.error,i=r.name,d=_(e)}else l=(await re(a,p(v,i),j,r.shouldUseNativeValidation))[i],d=await E(!0);a._f.deps&&K(a._f.deps),R(i,d,l,C)}var c},K=async(e,t={})=>{let o,i;const a=A(e);if(k.state.next({isValidating:!0}),r.resolver){const t=await(async e=>{const{errors:t}=await F();if(e)for(const r of e){const e=p(t,r);e?z(n.errors,r,e):se(n.errors,r)}else n.errors=t;return t})(f(e)?e:a);o=_(t),i=e?!a.some((e=>p(t,e))):o}else e?(i=(await Promise.all(a.map((async e=>{const t=p(s,e);return await N(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||n.isValid)&&E()):i=o=await N(s);return k.state.next({...!D(e)||C.isValid&&o!==n.isValid?{}:{name:e},...r.resolver?{isValid:o}:{},errors:n.errors,isValidating:!1}),t.shouldFocus&&!i&&V(s,(e=>p(n.errors,e)),e?a:y.mount),i},X=e=>{const t={...c,...g.mount?v:{}};return f(e)?t:D(e)?p(t,e):e.map((e=>p(t,e)))},J=(e,t)=>
1({invalid:!!p((t||n).errors,e),isDirty:!!p((t||n).dirtyFields,e),isTouched:!!p((t||n).touchedFields,e),error:p((t||n).errors,e)}),ee=(e,t={})=>{for(const o of e?A(e):y.mount)y.mount.delete(o),y.array.delete(o),p(s,o)&&(t.keepValue||(se(s,o),se(v,o)),!t.keepError&&se(n.errors,o),!t.keepDirty&&se(n.dirtyFields,o),!t.keepTouched&&se(n.touchedFields,o),!r.shouldUnregister&&!t.keepDefaultValue&&se(c,o));k.watch.next({}),k.state.next({...n,...t.keepDirty?{isDirty:L()}:{}}),!t.keepIsValid&&E()},te=(e,t={})=>{let n=p(s,e);const i=W(t.disabled);return z(s,e,{_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),y.mount.add(e),n?i&&z(v,e,t.disabled?void 0:p(v,e,ye(n._f))):P(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:be(t.min),max:be(t.max),minLength:be(t.minLength),maxLength:be(t.maxLength),pattern:be(t.pattern)}:{},name:e,onChange:Y,onBlur:Y,ref:i=>{if(i){te(e,t),n=p(s,e);const r=f(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,a=(e=>q(e)||o(e))(r),u=n._f.refs||[];if(a?u.find((e=>e===r)):r===n._f.ref)return;z(s,e,{_f:{...n._f,...a?{refs:[...u.filter(pe),r,...Array.isArray(p(c,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),P(e,!1,void 0,r)}else n=p(s,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!l(y.array,e)||!g.action)&&y.unMount.add(e)}}};return{control:{register:te,unregister:ee,getFieldState:J,_executeSchema:F,_getWatch:B,_getDirty:L,_updateValid:E,_removeUnmounted:()=>{for(const e of y.unMount){const t=p(s,e);t&&(t._f.refs?t._f.refs.every((e=>!pe(e))):!pe(t._f.ref))&&ee(e)}y.unMount=new Set},_updateFieldArray:(e,t=[],r,o,i=!0,a=!0)=>{if(o&&r){if(g.action=!0,a&&Array.isArray(p(s,e))){const t=r(p(s,e),o.argA,o.argB);i&&z(s,e,t)}if(C.errors&&a&&Array.isArray(p(n.errors,e))){const t=r(p(n.errors,e),o.argA,o.argB);i&&z(n.errors,e,t),((e,t)=>{!d(p(e,t)).length&&se(e,t)})(n.errors,e)}if(C.touchedFields&&a&&Array.isArray(p(n.touchedFields,e))){const t=r(p(n.touchedFields,e),o.argA,o.argB);i&&z(n.touchedFields,e,t)}C.dirtyFields&&(n.dirtyFields=ve(c,v)),k.state.next({isDirty:L(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else z(v,e,t)},_getFieldArray:t=>d(p(g.mount?v:c,t,e.shouldUnregister?p(c,t,[]):[])),_subjects:k,_proxyFormState:C,get _fields(){return s},get _formValues(){return v},get _stateFlags(){return g},set _stateFlags(e){g=e},get _defaultValues(){return c},get _names(){return y},set _names(e){y=e},get _formState(){return n},set _formState(e){n=e},get _options(){return r},set _options(e){r={...r,...e}}},trigger:K,register:te,handleSubmit:(e,t)=>async o=>{o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let i=!0,a=oe(v);try{if(r.resolver){const{errors:e,values:t}=await F();n.errors=e,a=t}else await N(s);_(n.errors)?(k.state.next({errors:{},isSubmitting:!0}),await e(a,o)):(t&&await t({...n.errors},o),r.shouldFocusError&&V(s,(e=>p(n.errors,e)),y.mount)),k.state.next({isSubmitting:!0})}catch(c){throw i=!1,c}finally{n.isSubmitted=!0,k.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_(n.errors)&&i,submitCount:n.submitCount+1,errors:n.errors})}},watch:(e,t)=>I(e)?k.watch.subscribe({next:r=>e(B(void 0,t),r)}):B(e,t,!0),setValue:Q,getValues:X,reset:(t,r={})=>{const o=t||c,i=oe(o),a=t&&!_(t)?i:c;if(r.keepDefaultValues||(c=o),!r.keepValues){if(r.keepDirtyValues)for(const e of y.mount)p(n.dirtyFields,e)?z(a,e,p(v,e)):Q(e,p(a,e));else{if(ne&&f(t))for(const e of y.mount){const t=p(s,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;try{if(de(e)){e.closest("form").reset();break}}catch(u){}}}s={}}v=e.shouldUnregister?r.keepDefaultValues?oe(c):{}:i,k.array.next({values:a}),k.watch.next({values:a})}y={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},g.mount=!C.isValid||!!r.keepIsValid,g.watch=!!e.shouldUnregister,k.state.next({submitCount:r.keepSubmitCount?n.submitCount:0,isDirty:r.keepDirty||r.keepDirtyValues?n.isDirty:!(!r.keepDefaultValues||le(t,c)),isSubmitted:!!r.keepIsSubmitted&&n.isSubmitted,dirtyFields:r.keepDirty||r.keepDirtyValues?n.dirtyFields:r.keepDefaultValues&&t?ve(c,t):{},touchedFields:r.keepTouched?n.touchedFields:{},errors:r.keepErrors?n.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},resetField:(e,t={})=>{p(s,e)&&(f(t.defaultValue)?Q(e,p(c,e)):(Q(e,t.defaultValue),z(c,e,t.defaultValue)),t.keepTouched||se(n.touchedFields,e),t.keepDirty||(se(n.dirtyFields,e),n.isDirty=t.defaultValue?L(e,p(c,e)):L()),t.keepError||(se(n.errors,e),C.isValid&&E()),k.state.next({...n}))},clearErrors:e=>{e?A(e).forEach((e=>se(n.errors,e))):n.errors={},k.state.next({errors:n.errors})},unregister:ee,setError:(e,t,r)=>{const o=(p(s,e,{_f:{}})._f||{}).ref;z(n.errors,e,{...t,ref:o}),k.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&o&&o.focus&&o.focus()},setFocus:(e,t={})=>{const r=p(s,e)._f,n=r.refs?r.refs[0]:r.ref;n.focus(),t.shouldSelect&&n.select()},getFieldState:J}}function ke(e={}){const t=n.useRef(),[r,o]=n.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});t.current?t.current.control._options=e:t.current={...Ce(e),formState:r};const i=t.current.control,a=n.useCallback((e=>{T(e,i._proxyFormState,!0)&&(i._formState={...i._formState,...e},o({...i._formState}))}),[i]);return R({subject:i._subjects.state,callback:a}),n.useEffect((()=>
1{i._stateFlags.mount||(i._proxyFormState.isValid&&i._updateValid(),i._stateFlags.mount=!0),i._stateFlags.watch&&(i._stateFlags.watch=!1,i._subjects.state.next({})),i._removeUnmounted()})),t.current.formState=P(r,i._proxyFormState),t.current}},4312:function(e,t,r){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:function(){return n}})},3794:function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}r.d(t,{Z:function(){return o}})},9794:function(e){"use strict";e.exports={version:"1.0.34"}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],(function(){return t(6840),t(9898)}));var r=e.O();_N_E=r}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.