diff --git a/.gitignore b/.gitignore index 58daaaffbf3d966129f9a316f72f8f751e950f51..11d1826ed7964658cedcd9320befb0a7c2a16d75 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ d3js-tutorial/ DerivedDataCache/ Intermediate/ /Content/ +Plugins/Developer/RiderLink Saved/ Script/ .vsconfig diff --git a/Plugins/CyberArchWarehouse/Content/WebSource/index.html b/Plugins/CyberArchWarehouse/Content/WebSource/index.html new file mode 100644 index 0000000000000000000000000000000000000000..3ec8c7df187f47ab0548d8c796657d9f7a233620 --- /dev/null +++ b/Plugins/CyberArchWarehouse/Content/WebSource/index.html @@ -0,0 +1,505 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <link rel="icon" type="image/svg+xml" href="/vite.svg" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>Vite + React + TS</title> + <script> + "object" != typeof ue || "object" != typeof ue.interface + ? ("object" != typeof ue && (ue = {}), + (ue.interface = {}), + (ue.interface.broadcast = function (e, t) { + if ("string" == typeof e) { + var o = [e, ""]; + void 0 !== t && (o[1] = t); + var n = encodeURIComponent(JSON.stringify(o)); + "object" == typeof history && + "function" == typeof history.pushState + ? (history.pushState({}, "", "#" + n), + history.pushState({}, "", "#" + encodeURIComponent("[]"))) + : ((document.location.hash = n), + (document.location.hash = encodeURIComponent("[]"))); + } + })) + : (function (e) { + (ue.interface = {}), + (ue.interface.broadcast = function (t, o) { + "string" == typeof t && + (void 0 !== o + ? e.broadcast(t, JSON.stringify(o)) + : e.broadcast(t, "")); + }); + })(ue.interface), + (ue5 = ue.interface.broadcast); + + function hello() { + console.log("Hello from the script tag!") + } + </script> + <script type="module" crossorigin> +function O8(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerpolicy&&(a.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?a.credentials="include":o.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var Tl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function g3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var us={},F8={get exports(){return us},set exports(e){us=e}},ed={},y={},D8={get exports(){return y},set exports(e){y=e}},q={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ks=Symbol.for("react.element"),z8=Symbol.for("react.portal"),I8=Symbol.for("react.fragment"),L8=Symbol.for("react.strict_mode"),B8=Symbol.for("react.profiler"),V8=Symbol.for("react.provider"),j8=Symbol.for("react.context"),U8=Symbol.for("react.forward_ref"),W8=Symbol.for("react.suspense"),H8=Symbol.for("react.memo"),Y8=Symbol.for("react.lazy"),L1=Symbol.iterator;function G8(e){return e===null||typeof e!="object"?null:(e=L1&&e[L1]||e["@@iterator"],typeof e=="function"?e:null)}var y3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b3=Object.assign,x3={};function Za(e,t,n){this.props=e,this.context=t,this.refs=x3,this.updater=n||y3}Za.prototype.isReactComponent={};Za.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Za.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function S3(){}S3.prototype=Za.prototype;function Hp(e,t,n){this.props=e,this.context=t,this.refs=x3,this.updater=n||y3}var Yp=Hp.prototype=new S3;Yp.constructor=Hp;b3(Yp,Za.prototype);Yp.isPureReactComponent=!0;var B1=Array.isArray,k3=Object.prototype.hasOwnProperty,Gp={current:null},w3={key:!0,ref:!0,__self:!0,__source:!0};function _3(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)k3.call(t,r)&&!w3.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:Ks,type:e,key:a,ref:i,props:o,_owner:Gp.current}}function q8(e,t){return{$$typeof:Ks,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qp(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ks}function X8(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var V1=/\/+/g;function pf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?X8(""+e.key):t.toString(36)}function fu(e,t,n,r,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ks:case z8:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+pf(i,0):r,B1(o)?(n="",e!=null&&(n=e.replace(V1,"$&/")+"/"),fu(o,t,n,"",function(u){return u})):o!=null&&(qp(o)&&(o=q8(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(V1,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",B1(e))for(var s=0;s<e.length;s++){a=e[s];var l=r+pf(a,s);i+=fu(a,t,n,l,o)}else if(l=G8(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=r+pf(a,s++),i+=fu(a,t,n,l,o);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function El(e,t,n){if(e==null)return e;var r=[],o=0;return fu(e,r,"","",function(a){return t.call(n,a,o++)}),r}function K8(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var xt={current:null},hu={transition:null},Q8={ReactCurrentDispatcher:xt,ReactCurrentBatchConfig:hu,ReactCurrentOwner:Gp};q.Children={map:El,forEach:function(e,t,n){El(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return El(e,function(){t++}),t},toArray:function(e){return El(e,function(t){return t})||[]},only:function(e){if(!qp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};q.Component=Za;q.Fragment=I8;q.Profiler=B8;q.PureComponent=Hp;q.StrictMode=L8;q.Suspense=W8;q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q8;q.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=b3({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=Gp.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)k3.call(t,l)&&!w3.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Ks,type:e.type,key:o,ref:a,props:r,_owner:i}};q.createContext=function(e){return e={$$typeof:j8,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:V8,_context:e},e.Consumer=e};q.createElement=_3;q.createFactory=function(e){var t=_3.bind(null,e);return t.type=e,t};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:U8,render:e}};q.isValidElement=qp;q.lazy=function(e){return{$$typeof:Y8,_payload:{_status:-1,_result:e},_init:K8}};q.memo=function(e,t){return{$$typeof:H8,type:e,compare:t===void 0?null:t}};q.startTransition=function(e){var t=hu.transition;hu.transition={};try{e()}finally{hu.transition=t}};q.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};q.useCallback=function(e,t){return xt.current.useCallback(e,t)};q.useContext=function(e){return xt.current.useContext(e)};q.useDebugValue=function(){};q.useDeferredValue=function(e){return xt.current.useDeferredValue(e)};q.useEffect=function(e,t){return xt.current.useEffect(e,t)};q.useId=function(){return xt.current.useId()};q.useImperativeHandle=function(e,t,n){return xt.current.useImperativeHandle(e,t,n)};q.useInsertionEffect=function(e,t){return xt.current.useInsertionEffect(e,t)};q.useLayoutEffect=function(e,t){return xt.current.useLayoutEffect(e,t)};q.useMemo=function(e,t){return xt.current.useMemo(e,t)};q.useReducer=function(e,t,n){return xt.current.useReducer(e,t,n)};q.useRef=function(e){return xt.current.useRef(e)};q.useState=function(e){return xt.current.useState(e)};q.useSyncExternalStore=function(e,t,n){return xt.current.useSyncExternalStore(e,t,n)};q.useTransition=function(){return xt.current.useTransition()};q.version="18.2.0";(function(e){e.exports=q})(D8);const Dn=g3(y),cs=O8({__proto__:null,default:Dn},[y]);/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Z8=y,J8=Symbol.for("react.element"),e6=Symbol.for("react.fragment"),t6=Object.prototype.hasOwnProperty,n6=Z8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r6={key:!0,ref:!0,__self:!0,__source:!0};function C3(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)t6.call(t,r)&&!r6.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:J8,type:e,key:a,ref:i,props:o,_owner:n6.current}}ed.Fragment=e6;ed.jsx=C3;ed.jsxs=C3;(function(e){e.exports=ed})(F8);const T3=us.Fragment,w=us.jsx,ce=us.jsxs;var z0={},ds={},o6={get exports(){return ds},set exports(e){ds=e}},jt={},I0={},a6={get exports(){return I0},set exports(e){I0=e}},E3={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(e){function t(O,B){var W=O.length;O.push(B);e:for(;0<W;){var ye=W-1>>>1,Te=O[ye];if(0<o(Te,B))O[ye]=B,O[W]=Te,W=ye;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var B=O[0],W=O.pop();if(W!==B){O[0]=W;e:for(var ye=0,Te=O.length,Z=Te>>>1;ye<Z;){var dt=2*(ye+1)-1,Bn=O[dt],Ze=dt+1,Je=O[Ze];if(0>o(Bn,W))Ze<Te&&0>o(Je,Bn)?(O[ye]=Je,O[Ze]=W,ye=Ze):(O[ye]=Bn,O[dt]=W,ye=dt);else if(Ze<Te&&0>o(Je,W))O[ye]=Je,O[Ze]=W,ye=Ze;else break e}}return B}function o(O,B){var W=O.sortIndex-B.sortIndex;return W!==0?W:O.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(O){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=O)r(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=n(u)}}function k(O){if(m=!1,b(O),!p)if(n(l)!==null)p=!0,Oe(T);else{var B=n(u);B!==null&&ge(k,B.startTime-O)}}function T(O,B){p=!1,m&&(m=!1,v(R),R=-1),h=!0;var W=f;try{for(b(B),d=n(l);d!==null&&(!(d.expirationTime>B)||O&&!D());){var ye=d.callback;if(typeof ye=="function"){d.callback=null,f=d.priorityLevel;var Te=ye(d.expirationTime<=B);B=e.unstable_now(),typeof Te=="function"?d.callback=Te:d===n(l)&&r(l),b(B)}else r(l);d=n(l)}if(d!==null)var Z=!0;else{var dt=n(u);dt!==null&&ge(k,dt.startTime-B),Z=!1}return Z}finally{d=null,f=W,h=!1}}var E=!1,P=null,R=-1,V=5,F=-1;function D(){return!(e.unstable_now()-F<V)}function G(){if(P!==null){var O=e.unstable_now();F=O;var B=!0;try{B=P(!0,O)}finally{B?X():(E=!1,P=null)}}else E=!1}var X;if(typeof g=="function")X=function(){g(G)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,ae=Ae.port2;Ae.port1.onmessage=G,X=function(){ae.postMessage(null)}}else X=function(){x(G,0)};function Oe(O){P=O,E||(E=!0,X())}function ge(O,B){R=x(function(){O(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,Oe(T))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(O){switch(f){case 1:case 2:case 3:var B=3;break;default:B=f}var W=f;f=B;try{return O()}finally{f=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,B){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var W=f;f=O;try{return B()}finally{f=W}},e.unstable_scheduleCallback=function(O,B,W){var ye=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ye+W:ye):W=ye,O){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=W+Te,O={id:c++,callback:B,priorityLevel:O,startTime:W,expirationTime:Te,sortIndex:-1},W>ye?(O.sortIndex=W,t(u,O),n(l)===null&&O===n(u)&&(m?(v(R),R=-1):m=!0,ge(k,W-ye))):(O.sortIndex=Te,t(l,O),p||h||(p=!0,Oe(T))),O},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(O){var B=f;return function(){var W=f;f=B;try{return O.apply(this,arguments)}finally{f=W}}}})(E3);(function(e){e.exports=E3})(a6);/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var P3=y,Lt=I0;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var M3=new Set,fs={};function Fo(e,t){Na(e,t),Na(e+"Capture",t)}function Na(e,t){for(fs[e]=t,e=0;e<t.length;e++)M3.add(t[e])}var ar=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),L0=Object.prototype.hasOwnProperty,i6=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,j1={},U1={};function s6(e){return L0.call(U1,e)?!0:L0.call(j1,e)?!1:i6.test(e)?U1[e]=!0:(j1[e]=!0,!1)}function l6(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function u6(e,t,n,r){if(t===null||typeof t>"u"||l6(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function St(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new St(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new St(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new St(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new St(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ot[e]=new St(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new St(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new St(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new St(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new St(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xp=/[\-:]([a-z])/g;function Kp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Xp,Kp);ot[t]=new St(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Xp,Kp);ot[t]=new St(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Xp,Kp);ot[t]=new St(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new St(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new St("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new St(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qp(e,t,n,r){var o=ot.hasOwnProperty(t)?ot[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(u6(t,n,o,r)&&(n=null),r||o===null?s6(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var hr=P3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pl=Symbol.for("react.element"),Zo=Symbol.for("react.portal"),Jo=Symbol.for("react.fragment"),Zp=Symbol.for("react.strict_mode"),B0=Symbol.for("react.profiler"),A3=Symbol.for("react.provider"),R3=Symbol.for("react.context"),Jp=Symbol.for("react.forward_ref"),V0=Symbol.for("react.suspense"),j0=Symbol.for("react.suspense_list"),em=Symbol.for("react.memo"),kr=Symbol.for("react.lazy"),$3=Symbol.for("react.offscreen"),W1=Symbol.iterator;function fi(e){return e===null||typeof e!="object"?null:(e=W1&&e[W1]||e["@@iterator"],typeof e=="function"?e:null)}var Ne=Object.assign,mf;function Ai(e){if(mf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);mf=t&&t[1]||""}return` +`+mf+e}var vf=!1;function gf(e,t){if(!e||vf)return"";vf=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(` +`),a=r.stack.split(` +`),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(i!==1||s!==1)do if(i--,s--,0>s||o[i]!==a[s]){var l=` +`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{vf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ai(e):""}function c6(e){switch(e.tag){case 5:return Ai(e.type);case 16:return Ai("Lazy");case 13:return Ai("Suspense");case 19:return Ai("SuspenseList");case 0:case 2:case 15:return e=gf(e.type,!1),e;case 11:return e=gf(e.type.render,!1),e;case 1:return e=gf(e.type,!0),e;default:return""}}function U0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Jo:return"Fragment";case Zo:return"Portal";case B0:return"Profiler";case Zp:return"StrictMode";case V0:return"Suspense";case j0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R3:return(e.displayName||"Context")+".Consumer";case A3:return(e._context.displayName||"Context")+".Provider";case Jp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case em:return t=e.displayName||null,t!==null?t:U0(e.type)||"Memo";case kr:t=e._payload,e=e._init;try{return U0(e(t))}catch{}}return null}function d6(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U0(t);case 8:return t===Zp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Vr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function N3(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function f6(e){var t=N3(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ml(e){e._valueTracker||(e._valueTracker=f6(e))}function O3(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=N3(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function W0(e,t){var n=t.checked;return Ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function H1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function F3(e,t){t=t.checked,t!=null&&Qp(e,"checked",t,!1)}function H0(e,t){F3(e,t);var n=Vr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Y0(e,t.type,n):t.hasOwnProperty("defaultValue")&&Y0(e,t.type,Vr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Y1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Y0(e,t,n){(t!=="number"||Hu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ri=Array.isArray;function ga(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Vr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function G0(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return Ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function G1(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(Ri(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Vr(n)}}function D3(e,t){var n=Vr(t.value),r=Vr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function q1(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function z3(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function q0(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?z3(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Al,I3=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Al=Al||document.createElement("div"),Al.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Al.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ui={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},h6=["Webkit","ms","Moz","O"];Object.keys(Ui).forEach(function(e){h6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ui[t]=Ui[e]})});function L3(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ui.hasOwnProperty(e)&&Ui[e]?(""+t).trim():t+"px"}function B3(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=L3(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var p6=Ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function X0(e,t){if(t){if(p6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function K0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Q0=null;function tm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Z0=null,ya=null,ba=null;function X1(e){if(e=Js(e)){if(typeof Z0!="function")throw Error(N(280));var t=e.stateNode;t&&(t=ad(t),Z0(e.stateNode,e.type,t))}}function V3(e){ya?ba?ba.push(e):ba=[e]:ya=e}function j3(){if(ya){var e=ya,t=ba;if(ba=ya=null,X1(e),t)for(e=0;e<t.length;e++)X1(t[e])}}function U3(e,t){return e(t)}function W3(){}var yf=!1;function H3(e,t,n){if(yf)return e(t,n);yf=!0;try{return U3(e,t,n)}finally{yf=!1,(ya!==null||ba!==null)&&(W3(),j3())}}function ps(e,t){var n=e.stateNode;if(n===null)return null;var r=ad(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(N(231,t,typeof n));return n}var J0=!1;if(ar)try{var hi={};Object.defineProperty(hi,"passive",{get:function(){J0=!0}}),window.addEventListener("test",hi,hi),window.removeEventListener("test",hi,hi)}catch{J0=!1}function m6(e,t,n,r,o,a,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Wi=!1,Yu=null,Gu=!1,eh=null,v6={onError:function(e){Wi=!0,Yu=e}};function g6(e,t,n,r,o,a,i,s,l){Wi=!1,Yu=null,m6.apply(v6,arguments)}function y6(e,t,n,r,o,a,i,s,l){if(g6.apply(this,arguments),Wi){if(Wi){var u=Yu;Wi=!1,Yu=null}else throw Error(N(198));Gu||(Gu=!0,eh=u)}}function Do(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Y3(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function K1(e){if(Do(e)!==e)throw Error(N(188))}function b6(e){var t=e.alternate;if(!t){if(t=Do(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var a=o.alternate;if(a===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return K1(o),e;if(a===r)return K1(o),t;a=a.sibling}throw Error(N(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,s=o.child;s;){if(s===n){i=!0,n=o,r=a;break}if(s===r){i=!0,r=o,n=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===n){i=!0,n=a,r=o;break}if(s===r){i=!0,r=a,n=o;break}s=s.sibling}if(!i)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function G3(e){return e=b6(e),e!==null?q3(e):null}function q3(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=q3(e);if(t!==null)return t;e=e.sibling}return null}var X3=Lt.unstable_scheduleCallback,Q1=Lt.unstable_cancelCallback,x6=Lt.unstable_shouldYield,S6=Lt.unstable_requestPaint,Ie=Lt.unstable_now,k6=Lt.unstable_getCurrentPriorityLevel,nm=Lt.unstable_ImmediatePriority,K3=Lt.unstable_UserBlockingPriority,qu=Lt.unstable_NormalPriority,w6=Lt.unstable_LowPriority,Q3=Lt.unstable_IdlePriority,td=null,Mn=null;function _6(e){if(Mn&&typeof Mn.onCommitFiberRoot=="function")try{Mn.onCommitFiberRoot(td,e,void 0,(e.current.flags&128)===128)}catch{}}var fn=Math.clz32?Math.clz32:E6,C6=Math.log,T6=Math.LN2;function E6(e){return e>>>=0,e===0?32:31-(C6(e)/T6|0)|0}var Rl=64,$l=4194304;function $i(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=$i(s):(a&=i,a!==0&&(r=$i(a)))}else i=n&~o,i!==0?r=$i(i):a!==0&&(r=$i(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-fn(t),o=1<<n,r|=e[n],t&=~o;return r}function P6(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function M6(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-fn(a),s=1<<i,l=o[i];l===-1?(!(s&n)||s&r)&&(o[i]=P6(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function th(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Z3(){var e=Rl;return Rl<<=1,!(Rl&4194240)&&(Rl=64),e}function bf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fn(t),e[t]=n}function A6(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-fn(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}function rm(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-fn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var he=0;function J3(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var eb,om,tb,nb,rb,nh=!1,Nl=[],$r=null,Nr=null,Or=null,ms=new Map,vs=new Map,Cr=[],R6="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Z1(e,t){switch(e){case"focusin":case"focusout":$r=null;break;case"dragenter":case"dragleave":Nr=null;break;case"mouseover":case"mouseout":Or=null;break;case"pointerover":case"pointerout":ms.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vs.delete(t.pointerId)}}function pi(e,t,n,r,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},t!==null&&(t=Js(t),t!==null&&om(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function $6(e,t,n,r,o){switch(t){case"focusin":return $r=pi($r,e,t,n,r,o),!0;case"dragenter":return Nr=pi(Nr,e,t,n,r,o),!0;case"mouseover":return Or=pi(Or,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return ms.set(a,pi(ms.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,vs.set(a,pi(vs.get(a)||null,e,t,n,r,o)),!0}return!1}function ob(e){var t=uo(e.target);if(t!==null){var n=Do(t);if(n!==null){if(t=n.tag,t===13){if(t=Y3(n),t!==null){e.blockedOn=t,rb(e.priority,function(){tb(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=rh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Q0=r,n.target.dispatchEvent(r),Q0=null}else return t=Js(n),t!==null&&om(t),e.blockedOn=n,!1;t.shift()}return!0}function J1(e,t,n){pu(e)&&n.delete(t)}function N6(){nh=!1,$r!==null&&pu($r)&&($r=null),Nr!==null&&pu(Nr)&&(Nr=null),Or!==null&&pu(Or)&&(Or=null),ms.forEach(J1),vs.forEach(J1)}function mi(e,t){e.blockedOn===t&&(e.blockedOn=null,nh||(nh=!0,Lt.unstable_scheduleCallback(Lt.unstable_NormalPriority,N6)))}function gs(e){function t(o){return mi(o,e)}if(0<Nl.length){mi(Nl[0],e);for(var n=1;n<Nl.length;n++){var r=Nl[n];r.blockedOn===e&&(r.blockedOn=null)}}for($r!==null&&mi($r,e),Nr!==null&&mi(Nr,e),Or!==null&&mi(Or,e),ms.forEach(t),vs.forEach(t),n=0;n<Cr.length;n++)r=Cr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Cr.length&&(n=Cr[0],n.blockedOn===null);)ob(n),n.blockedOn===null&&Cr.shift()}var xa=hr.ReactCurrentBatchConfig,Ku=!0;function O6(e,t,n,r){var o=he,a=xa.transition;xa.transition=null;try{he=1,am(e,t,n,r)}finally{he=o,xa.transition=a}}function F6(e,t,n,r){var o=he,a=xa.transition;xa.transition=null;try{he=4,am(e,t,n,r)}finally{he=o,xa.transition=a}}function am(e,t,n,r){if(Ku){var o=rh(e,t,n,r);if(o===null)Mf(e,t,r,Qu,n),Z1(e,r);else if($6(o,e,t,n,r))r.stopPropagation();else if(Z1(e,r),t&4&&-1<R6.indexOf(e)){for(;o!==null;){var a=Js(o);if(a!==null&&eb(a),a=rh(e,t,n,r),a===null&&Mf(e,t,r,Qu,n),a===o)break;o=a}o!==null&&r.stopPropagation()}else Mf(e,t,r,null,n)}}var Qu=null;function rh(e,t,n,r){if(Qu=null,e=tm(r),e=uo(e),e!==null)if(t=Do(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Y3(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qu=e,null}function ab(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(k6()){case nm:return 1;case K3:return 4;case qu:case w6:return 16;case Q3:return 536870912;default:return 16}default:return 16}}var Pr=null,im=null,mu=null;function ib(){if(mu)return mu;var e,t=im,n=t.length,r,o="value"in Pr?Pr.value:Pr.textContent,a=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[a-r];r++);return mu=o.slice(e,1<r?1-r:void 0)}function vu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ol(){return!0}function eg(){return!1}function Ut(e){function t(n,r,o,a,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Ol:eg,this.isPropagationStopped=eg,this}return Ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ol)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ol)},persist:function(){},isPersistent:Ol}),t}var Ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sm=Ut(Ja),Zs=Ne({},Ja,{view:0,detail:0}),D6=Ut(Zs),xf,Sf,vi,nd=Ne({},Zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lm,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vi&&(vi&&e.type==="mousemove"?(xf=e.screenX-vi.screenX,Sf=e.screenY-vi.screenY):Sf=xf=0,vi=e),xf)},movementY:function(e){return"movementY"in e?e.movementY:Sf}}),tg=Ut(nd),z6=Ne({},nd,{dataTransfer:0}),I6=Ut(z6),L6=Ne({},Zs,{relatedTarget:0}),kf=Ut(L6),B6=Ne({},Ja,{animationName:0,elapsedTime:0,pseudoElement:0}),V6=Ut(B6),j6=Ne({},Ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),U6=Ut(j6),W6=Ne({},Ja,{data:0}),ng=Ut(W6),H6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Y6={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},G6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function q6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=G6[e])?!!t[e]:!1}function lm(){return q6}var X6=Ne({},Zs,{key:function(e){if(e.key){var t=H6[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Y6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lm,charCode:function(e){return e.type==="keypress"?vu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),K6=Ut(X6),Q6=Ne({},nd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rg=Ut(Q6),Z6=Ne({},Zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lm}),J6=Ut(Z6),e7=Ne({},Ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),t7=Ut(e7),n7=Ne({},nd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),r7=Ut(n7),o7=[9,13,27,32],um=ar&&"CompositionEvent"in window,Hi=null;ar&&"documentMode"in document&&(Hi=document.documentMode);var a7=ar&&"TextEvent"in window&&!Hi,sb=ar&&(!um||Hi&&8<Hi&&11>=Hi),og=String.fromCharCode(32),ag=!1;function lb(e,t){switch(e){case"keyup":return o7.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ub(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ea=!1;function i7(e,t){switch(e){case"compositionend":return ub(t);case"keypress":return t.which!==32?null:(ag=!0,og);case"textInput":return e=t.data,e===og&&ag?null:e;default:return null}}function s7(e,t){if(ea)return e==="compositionend"||!um&&lb(e,t)?(e=ib(),mu=im=Pr=null,ea=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return sb&&t.locale!=="ko"?null:t.data;default:return null}}var l7={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ig(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!l7[e.type]:t==="textarea"}function cb(e,t,n,r){V3(r),t=Zu(t,"onChange"),0<t.length&&(n=new sm("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yi=null,ys=null;function u7(e){Sb(e,0)}function rd(e){var t=ra(e);if(O3(t))return e}function c7(e,t){if(e==="change")return t}var db=!1;if(ar){var wf;if(ar){var _f="oninput"in document;if(!_f){var sg=document.createElement("div");sg.setAttribute("oninput","return;"),_f=typeof sg.oninput=="function"}wf=_f}else wf=!1;db=wf&&(!document.documentMode||9<document.documentMode)}function lg(){Yi&&(Yi.detachEvent("onpropertychange",fb),ys=Yi=null)}function fb(e){if(e.propertyName==="value"&&rd(ys)){var t=[];cb(t,ys,e,tm(e)),H3(u7,t)}}function d7(e,t,n){e==="focusin"?(lg(),Yi=t,ys=n,Yi.attachEvent("onpropertychange",fb)):e==="focusout"&&lg()}function f7(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return rd(ys)}function h7(e,t){if(e==="click")return rd(t)}function p7(e,t){if(e==="input"||e==="change")return rd(t)}function m7(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pn=typeof Object.is=="function"?Object.is:m7;function bs(e,t){if(pn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!L0.call(t,o)||!pn(e[o],t[o]))return!1}return!0}function ug(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cg(e,t){var n=ug(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ug(n)}}function hb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pb(){for(var e=window,t=Hu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hu(e.document)}return t}function cm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function v7(e){var t=pb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hb(n.ownerDocument.documentElement,n)){if(r!==null&&cm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=cg(n,a);var i=cg(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var g7=ar&&"documentMode"in document&&11>=document.documentMode,ta=null,oh=null,Gi=null,ah=!1;function dg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ah||ta==null||ta!==Hu(r)||(r=ta,"selectionStart"in r&&cm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gi&&bs(Gi,r)||(Gi=r,r=Zu(oh,"onSelect"),0<r.length&&(t=new sm("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ta)))}function Fl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var na={animationend:Fl("Animation","AnimationEnd"),animationiteration:Fl("Animation","AnimationIteration"),animationstart:Fl("Animation","AnimationStart"),transitionend:Fl("Transition","TransitionEnd")},Cf={},mb={};ar&&(mb=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function od(e){if(Cf[e])return Cf[e];if(!na[e])return e;var t=na[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in mb)return Cf[e]=t[n];return e}var vb=od("animationend"),gb=od("animationiteration"),yb=od("animationstart"),bb=od("transitionend"),xb=new Map,fg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Yr(e,t){xb.set(e,t),Fo(t,[e])}for(var Tf=0;Tf<fg.length;Tf++){var Ef=fg[Tf],y7=Ef.toLowerCase(),b7=Ef[0].toUpperCase()+Ef.slice(1);Yr(y7,"on"+b7)}Yr(vb,"onAnimationEnd");Yr(gb,"onAnimationIteration");Yr(yb,"onAnimationStart");Yr("dblclick","onDoubleClick");Yr("focusin","onFocus");Yr("focusout","onBlur");Yr(bb,"onTransitionEnd");Na("onMouseEnter",["mouseout","mouseover"]);Na("onMouseLeave",["mouseout","mouseover"]);Na("onPointerEnter",["pointerout","pointerover"]);Na("onPointerLeave",["pointerout","pointerover"]);Fo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ni="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),x7=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ni));function hg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,y6(r,t,void 0,e),e.currentTarget=null}function Sb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;hg(o,s,u),a=l}else for(i=0;i<r.length;i++){if(s=r[i],l=s.instance,u=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;hg(o,s,u),a=l}}}if(Gu)throw e=eh,Gu=!1,eh=null,e}function ke(e,t){var n=t[ch];n===void 0&&(n=t[ch]=new Set);var r=e+"__bubble";n.has(r)||(kb(t,e,2,!1),n.add(r))}function Pf(e,t,n){var r=0;t&&(r|=4),kb(n,e,r,t)}var Dl="_reactListening"+Math.random().toString(36).slice(2);function xs(e){if(!e[Dl]){e[Dl]=!0,M3.forEach(function(n){n!=="selectionchange"&&(x7.has(n)||Pf(n,!1,e),Pf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Dl]||(t[Dl]=!0,Pf("selectionchange",!1,t))}}function kb(e,t,n,r){switch(ab(t)){case 1:var o=O6;break;case 4:o=F6;break;default:o=am}n=o.bind(null,t,n,e),o=void 0,!J0||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Mf(e,t,n,r,o){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;s!==null;){if(i=uo(s),i===null)return;if(l=i.tag,l===5||l===6){r=a=i;continue e}s=s.parentNode}}r=r.return}H3(function(){var u=a,c=tm(n),d=[];e:{var f=xb.get(e);if(f!==void 0){var h=sm,p=e;switch(e){case"keypress":if(vu(n)===0)break e;case"keydown":case"keyup":h=K6;break;case"focusin":p="focus",h=kf;break;case"focusout":p="blur",h=kf;break;case"beforeblur":case"afterblur":h=kf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=tg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=I6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=J6;break;case vb:case gb:case yb:h=V6;break;case bb:h=t7;break;case"scroll":h=D6;break;case"wheel":h=r7;break;case"copy":case"cut":case"paste":h=U6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=rg}var m=(t&4)!==0,x=!m&&e==="scroll",v=m?f!==null?f+"Capture":null:f;m=[];for(var g=u,b;g!==null;){b=g;var k=b.stateNode;if(b.tag===5&&k!==null&&(b=k,v!==null&&(k=ps(g,v),k!=null&&m.push(Ss(g,k,b)))),x)break;g=g.return}0<m.length&&(f=new h(f,p,null,n,c),d.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==Q0&&(p=n.relatedTarget||n.fromElement)&&(uo(p)||p[ir]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=u,p=p?uo(p):null,p!==null&&(x=Do(p),p!==x||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=u),h!==p)){if(m=tg,k="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=rg,k="onPointerLeave",v="onPointerEnter",g="pointer"),x=h==null?f:ra(h),b=p==null?f:ra(p),f=new m(k,g+"leave",h,n,c),f.target=x,f.relatedTarget=b,k=null,uo(c)===u&&(m=new m(v,g+"enter",p,n,c),m.target=b,m.relatedTarget=x,k=m),x=k,h&&p)t:{for(m=h,v=p,g=0,b=m;b;b=Uo(b))g++;for(b=0,k=v;k;k=Uo(k))b++;for(;0<g-b;)m=Uo(m),g--;for(;0<b-g;)v=Uo(v),b--;for(;g--;){if(m===v||v!==null&&m===v.alternate)break t;m=Uo(m),v=Uo(v)}m=null}else m=null;h!==null&&pg(d,f,h,m,!1),p!==null&&x!==null&&pg(d,x,p,m,!0)}}e:{if(f=u?ra(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var T=c7;else if(ig(f))if(db)T=p7;else{T=f7;var E=d7}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(T=h7);if(T&&(T=T(e,u))){cb(d,T,n,c);break e}E&&E(e,f,u),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&Y0(f,"number",f.value)}switch(E=u?ra(u):window,e){case"focusin":(ig(E)||E.contentEditable==="true")&&(ta=E,oh=u,Gi=null);break;case"focusout":Gi=oh=ta=null;break;case"mousedown":ah=!0;break;case"contextmenu":case"mouseup":case"dragend":ah=!1,dg(d,n,c);break;case"selectionchange":if(g7)break;case"keydown":case"keyup":dg(d,n,c)}var P;if(um)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else ea?lb(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(sb&&n.locale!=="ko"&&(ea||R!=="onCompositionStart"?R==="onCompositionEnd"&&ea&&(P=ib()):(Pr=c,im="value"in Pr?Pr.value:Pr.textContent,ea=!0)),E=Zu(u,R),0<E.length&&(R=new ng(R,e,null,n,c),d.push({event:R,listeners:E}),P?R.data=P:(P=ub(n),P!==null&&(R.data=P)))),(P=a7?i7(e,n):s7(e,n))&&(u=Zu(u,"onBeforeInput"),0<u.length&&(c=new ng("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=P))}Sb(d,t)})}function Ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zu(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=ps(e,n),a!=null&&r.unshift(Ss(e,a,o)),a=ps(e,t),a!=null&&r.push(Ss(e,a,o))),e=e.return}return r}function Uo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pg(e,t,n,r,o){for(var a=t._reactName,i=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,o?(l=ps(n,a),l!=null&&i.unshift(Ss(n,l,s))):o||(l=ps(n,a),l!=null&&i.push(Ss(n,l,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var S7=/\r\n?/g,k7=/\u0000|\uFFFD/g;function mg(e){return(typeof e=="string"?e:""+e).replace(S7,` +`).replace(k7,"")}function zl(e,t,n){if(t=mg(t),mg(e)!==t&&n)throw Error(N(425))}function Ju(){}var ih=null,sh=null;function lh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var uh=typeof setTimeout=="function"?setTimeout:void 0,w7=typeof clearTimeout=="function"?clearTimeout:void 0,vg=typeof Promise=="function"?Promise:void 0,_7=typeof queueMicrotask=="function"?queueMicrotask:typeof vg<"u"?function(e){return vg.resolve(null).then(e).catch(C7)}:uh;function C7(e){setTimeout(function(){throw e})}function Af(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),gs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);gs(t)}function Fr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function gg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ei=Math.random().toString(36).slice(2),wn="__reactFiber$"+ei,ks="__reactProps$"+ei,ir="__reactContainer$"+ei,ch="__reactEvents$"+ei,T7="__reactListeners$"+ei,E7="__reactHandles$"+ei;function uo(e){var t=e[wn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ir]||n[wn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gg(e);e!==null;){if(n=e[wn])return n;e=gg(e)}return t}e=n,n=e.parentNode}return null}function Js(e){return e=e[wn]||e[ir],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ra(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function ad(e){return e[ks]||null}var dh=[],oa=-1;function Gr(e){return{current:e}}function _e(e){0>oa||(e.current=dh[oa],dh[oa]=null,oa--)}function Se(e,t){oa++,dh[oa]=e.current,e.current=t}var jr={},ct=Gr(jr),Tt=Gr(!1),Co=jr;function Oa(e,t){var n=e.type.contextTypes;if(!n)return jr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Et(e){return e=e.childContextTypes,e!=null}function ec(){_e(Tt),_e(ct)}function yg(e,t,n){if(ct.current!==jr)throw Error(N(168));Se(ct,t),Se(Tt,n)}function wb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(N(108,d6(e)||"Unknown",o));return Ne({},n,r)}function tc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jr,Co=ct.current,Se(ct,e),Se(Tt,Tt.current),!0}function bg(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=wb(e,t,Co),r.__reactInternalMemoizedMergedChildContext=e,_e(Tt),_e(ct),Se(ct,e)):_e(Tt),Se(Tt,n)}var qn=null,id=!1,Rf=!1;function _b(e){qn===null?qn=[e]:qn.push(e)}function P7(e){id=!0,_b(e)}function qr(){if(!Rf&&qn!==null){Rf=!0;var e=0,t=he;try{var n=qn;for(he=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}qn=null,id=!1}catch(o){throw qn!==null&&(qn=qn.slice(e+1)),X3(nm,qr),o}finally{he=t,Rf=!1}}return null}var aa=[],ia=0,nc=null,rc=0,Gt=[],qt=0,To=null,Kn=1,Qn="";function ro(e,t){aa[ia++]=rc,aa[ia++]=nc,nc=e,rc=t}function Cb(e,t,n){Gt[qt++]=Kn,Gt[qt++]=Qn,Gt[qt++]=To,To=e;var r=Kn;e=Qn;var o=32-fn(r)-1;r&=~(1<<o),n+=1;var a=32-fn(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Kn=1<<32-fn(t)+o|n<<o|r,Qn=a+e}else Kn=1<<a|n<<o|r,Qn=e}function dm(e){e.return!==null&&(ro(e,1),Cb(e,1,0))}function fm(e){for(;e===nc;)nc=aa[--ia],aa[ia]=null,rc=aa[--ia],aa[ia]=null;for(;e===To;)To=Gt[--qt],Gt[qt]=null,Qn=Gt[--qt],Gt[qt]=null,Kn=Gt[--qt],Gt[qt]=null}var Dt=null,Ft=null,Me=!1,ln=null;function Tb(e,t){var n=Xt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function xg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Dt=e,Ft=Fr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dt=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=To!==null?{id:Kn,overflow:Qn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Dt=e,Ft=null,!0):!1;default:return!1}}function fh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function hh(e){if(Me){var t=Ft;if(t){var n=t;if(!xg(e,t)){if(fh(e))throw Error(N(418));t=Fr(n.nextSibling);var r=Dt;t&&xg(e,t)?Tb(r,n):(e.flags=e.flags&-4097|2,Me=!1,Dt=e)}}else{if(fh(e))throw Error(N(418));e.flags=e.flags&-4097|2,Me=!1,Dt=e}}}function Sg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dt=e}function Il(e){if(e!==Dt)return!1;if(!Me)return Sg(e),Me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!lh(e.type,e.memoizedProps)),t&&(t=Ft)){if(fh(e))throw Eb(),Error(N(418));for(;t;)Tb(e,t),t=Fr(t.nextSibling)}if(Sg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ft=Fr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=Dt?Fr(e.stateNode.nextSibling):null;return!0}function Eb(){for(var e=Ft;e;)e=Fr(e.nextSibling)}function Fa(){Ft=Dt=null,Me=!1}function hm(e){ln===null?ln=[e]:ln.push(e)}var M7=hr.ReactCurrentBatchConfig;function an(e,t){if(e&&e.defaultProps){t=Ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var oc=Gr(null),ac=null,sa=null,pm=null;function mm(){pm=sa=ac=null}function vm(e){var t=oc.current;_e(oc),e._currentValue=t}function ph(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sa(e,t){ac=e,pm=sa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_t=!0),e.firstContext=null)}function Jt(e){var t=e._currentValue;if(pm!==e)if(e={context:e,memoizedValue:t,next:null},sa===null){if(ac===null)throw Error(N(308));sa=e,ac.dependencies={lanes:0,firstContext:e}}else sa=sa.next=e;return t}var co=null;function gm(e){co===null?co=[e]:co.push(e)}function Pb(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,gm(t)):(n.next=o.next,o.next=n),t.interleaved=n,sr(e,r)}function sr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var wr=!1;function ym(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Dr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,sr(e,n)}return o=r.interleaved,o===null?(t.next=t,gm(r)):(t.next=o.next,o.next=t),r.interleaved=t,sr(e,n)}function gu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rm(e,n)}}function kg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ic(e,t,n,r){var o=e.updateQueue;wr=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,i===null?a=u:i.next=u,i=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(a!==null){var d=o.baseState;i=0,c=u=l=null,s=a;do{var f=s.lane,h=s.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if(p=m.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=Ne({},d,f);break e;case 2:wr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,i|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);Po|=i,e.lanes=i,e.memoizedState=d}}function wg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(N(191,o));o.call(r)}}}var Ab=new P3.Component().refs;function mh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var sd={isMounted:function(e){return(e=e._reactInternals)?Do(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gt(),o=Ir(e),a=tr(r,o);a.payload=t,n!=null&&(a.callback=n),t=Dr(e,a,o),t!==null&&(hn(t,e,o,r),gu(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gt(),o=Ir(e),a=tr(r,o);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Dr(e,a,o),t!==null&&(hn(t,e,o,r),gu(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gt(),r=Ir(e),o=tr(n,r);o.tag=2,t!=null&&(o.callback=t),t=Dr(e,o,r),t!==null&&(hn(t,e,r,n),gu(t,e,r))}};function _g(e,t,n,r,o,a,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,i):t.prototype&&t.prototype.isPureReactComponent?!bs(n,r)||!bs(o,a):!0}function Rb(e,t,n){var r=!1,o=jr,a=t.contextType;return typeof a=="object"&&a!==null?a=Jt(a):(o=Et(t)?Co:ct.current,r=t.contextTypes,a=(r=r!=null)?Oa(e,o):jr),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=sd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Cg(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&sd.enqueueReplaceState(t,t.state,null)}function vh(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ab,ym(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=Jt(a):(a=Et(t)?Co:ct.current,o.context=Oa(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(mh(e,t,a,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&sd.enqueueReplaceState(o,o.state,null),ic(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function gi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var o=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(i){var s=o.refs;s===Ab&&(s=o.refs={}),i===null?delete s[a]:s[a]=i},t._stringRef=a,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Ll(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Tg(e){var t=e._init;return t(e._payload)}function $b(e){function t(v,g){if(e){var b=v.deletions;b===null?(v.deletions=[g],v.flags|=16):b.push(g)}}function n(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function r(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function o(v,g){return v=Lr(v,g),v.index=0,v.sibling=null,v}function a(v,g,b){return v.index=b,e?(b=v.alternate,b!==null?(b=b.index,b<g?(v.flags|=2,g):b):(v.flags|=2,g)):(v.flags|=1048576,g)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function s(v,g,b,k){return g===null||g.tag!==6?(g=If(b,v.mode,k),g.return=v,g):(g=o(g,b),g.return=v,g)}function l(v,g,b,k){var T=b.type;return T===Jo?c(v,g,b.props.children,k,b.key):g!==null&&(g.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===kr&&Tg(T)===g.type)?(k=o(g,b.props),k.ref=gi(v,g,b),k.return=v,k):(k=wu(b.type,b.key,b.props,null,v.mode,k),k.ref=gi(v,g,b),k.return=v,k)}function u(v,g,b,k){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=Lf(b,v.mode,k),g.return=v,g):(g=o(g,b.children||[]),g.return=v,g)}function c(v,g,b,k,T){return g===null||g.tag!==7?(g=yo(b,v.mode,k,T),g.return=v,g):(g=o(g,b),g.return=v,g)}function d(v,g,b){if(typeof g=="string"&&g!==""||typeof g=="number")return g=If(""+g,v.mode,b),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Pl:return b=wu(g.type,g.key,g.props,null,v.mode,b),b.ref=gi(v,null,g),b.return=v,b;case Zo:return g=Lf(g,v.mode,b),g.return=v,g;case kr:var k=g._init;return d(v,k(g._payload),b)}if(Ri(g)||fi(g))return g=yo(g,v.mode,b,null),g.return=v,g;Ll(v,g)}return null}function f(v,g,b,k){var T=g!==null?g.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return T!==null?null:s(v,g,""+b,k);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Pl:return b.key===T?l(v,g,b,k):null;case Zo:return b.key===T?u(v,g,b,k):null;case kr:return T=b._init,f(v,g,T(b._payload),k)}if(Ri(b)||fi(b))return T!==null?null:c(v,g,b,k,null);Ll(v,b)}return null}function h(v,g,b,k,T){if(typeof k=="string"&&k!==""||typeof k=="number")return v=v.get(b)||null,s(g,v,""+k,T);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Pl:return v=v.get(k.key===null?b:k.key)||null,l(g,v,k,T);case Zo:return v=v.get(k.key===null?b:k.key)||null,u(g,v,k,T);case kr:var E=k._init;return h(v,g,b,E(k._payload),T)}if(Ri(k)||fi(k))return v=v.get(b)||null,c(g,v,k,T,null);Ll(g,k)}return null}function p(v,g,b,k){for(var T=null,E=null,P=g,R=g=0,V=null;P!==null&&R<b.length;R++){P.index>R?(V=P,P=null):V=P.sibling;var F=f(v,P,b[R],k);if(F===null){P===null&&(P=V);break}e&&P&&F.alternate===null&&t(v,P),g=a(F,g,R),E===null?T=F:E.sibling=F,E=F,P=V}if(R===b.length)return n(v,P),Me&&ro(v,R),T;if(P===null){for(;R<b.length;R++)P=d(v,b[R],k),P!==null&&(g=a(P,g,R),E===null?T=P:E.sibling=P,E=P);return Me&&ro(v,R),T}for(P=r(v,P);R<b.length;R++)V=h(P,v,R,b[R],k),V!==null&&(e&&V.alternate!==null&&P.delete(V.key===null?R:V.key),g=a(V,g,R),E===null?T=V:E.sibling=V,E=V);return e&&P.forEach(function(D){return t(v,D)}),Me&&ro(v,R),T}function m(v,g,b,k){var T=fi(b);if(typeof T!="function")throw Error(N(150));if(b=T.call(b),b==null)throw Error(N(151));for(var E=T=null,P=g,R=g=0,V=null,F=b.next();P!==null&&!F.done;R++,F=b.next()){P.index>R?(V=P,P=null):V=P.sibling;var D=f(v,P,F.value,k);if(D===null){P===null&&(P=V);break}e&&P&&D.alternate===null&&t(v,P),g=a(D,g,R),E===null?T=D:E.sibling=D,E=D,P=V}if(F.done)return n(v,P),Me&&ro(v,R),T;if(P===null){for(;!F.done;R++,F=b.next())F=d(v,F.value,k),F!==null&&(g=a(F,g,R),E===null?T=F:E.sibling=F,E=F);return Me&&ro(v,R),T}for(P=r(v,P);!F.done;R++,F=b.next())F=h(P,v,R,F.value,k),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?R:F.key),g=a(F,g,R),E===null?T=F:E.sibling=F,E=F);return e&&P.forEach(function(G){return t(v,G)}),Me&&ro(v,R),T}function x(v,g,b,k){if(typeof b=="object"&&b!==null&&b.type===Jo&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Pl:e:{for(var T=b.key,E=g;E!==null;){if(E.key===T){if(T=b.type,T===Jo){if(E.tag===7){n(v,E.sibling),g=o(E,b.props.children),g.return=v,v=g;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===kr&&Tg(T)===E.type){n(v,E.sibling),g=o(E,b.props),g.ref=gi(v,E,b),g.return=v,v=g;break e}n(v,E);break}else t(v,E);E=E.sibling}b.type===Jo?(g=yo(b.props.children,v.mode,k,b.key),g.return=v,v=g):(k=wu(b.type,b.key,b.props,null,v.mode,k),k.ref=gi(v,g,b),k.return=v,v=k)}return i(v);case Zo:e:{for(E=b.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(v,g.sibling),g=o(g,b.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=Lf(b,v.mode,k),g.return=v,v=g}return i(v);case kr:return E=b._init,x(v,g,E(b._payload),k)}if(Ri(b))return p(v,g,b,k);if(fi(b))return m(v,g,b,k);Ll(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(v,g.sibling),g=o(g,b),g.return=v,v=g):(n(v,g),g=If(b,v.mode,k),g.return=v,v=g),i(v)):n(v,g)}return x}var Da=$b(!0),Nb=$b(!1),el={},An=Gr(el),ws=Gr(el),_s=Gr(el);function fo(e){if(e===el)throw Error(N(174));return e}function bm(e,t){switch(Se(_s,t),Se(ws,e),Se(An,el),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:q0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=q0(t,e)}_e(An),Se(An,t)}function za(){_e(An),_e(ws),_e(_s)}function Ob(e){fo(_s.current);var t=fo(An.current),n=q0(t,e.type);t!==n&&(Se(ws,e),Se(An,n))}function xm(e){ws.current===e&&(_e(An),_e(ws))}var Re=Gr(0);function sc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $f=[];function Sm(){for(var e=0;e<$f.length;e++)$f[e]._workInProgressVersionPrimary=null;$f.length=0}var yu=hr.ReactCurrentDispatcher,Nf=hr.ReactCurrentBatchConfig,Eo=0,$e=null,je=null,qe=null,lc=!1,qi=!1,Cs=0,A7=0;function it(){throw Error(N(321))}function km(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pn(e[n],t[n]))return!1;return!0}function wm(e,t,n,r,o,a){if(Eo=a,$e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yu.current=e===null||e.memoizedState===null?O7:F7,e=n(r,o),qi){a=0;do{if(qi=!1,Cs=0,25<=a)throw Error(N(301));a+=1,qe=je=null,t.updateQueue=null,yu.current=D7,e=n(r,o)}while(qi)}if(yu.current=uc,t=je!==null&&je.next!==null,Eo=0,qe=je=$e=null,lc=!1,t)throw Error(N(300));return e}function _m(){var e=Cs!==0;return Cs=0,e}function yn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?$e.memoizedState=qe=e:qe=qe.next=e,qe}function en(){if(je===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=qe===null?$e.memoizedState:qe.next;if(t!==null)qe=t,je=e;else{if(e===null)throw Error(N(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},qe===null?$e.memoizedState=qe=e:qe=qe.next=e}return qe}function Ts(e,t){return typeof t=="function"?t(e):t}function Of(e){var t=en(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=je,o=r.baseQueue,a=n.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(o!==null){a=o.next,r=r.baseState;var s=i=null,l=null,u=a;do{var c=u.lane;if((Eo&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=d,i=r):l=l.next=d,$e.lanes|=c,Po|=c}u=u.next}while(u!==null&&u!==a);l===null?i=r:l.next=s,pn(r,t.memoizedState)||(_t=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do a=o.lane,$e.lanes|=a,Po|=a,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ff(e){var t=en(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do a=e(a,i.action),i=i.next;while(i!==o);pn(a,t.memoizedState)||(_t=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Fb(){}function Db(e,t){var n=$e,r=en(),o=t(),a=!pn(r.memoizedState,o);if(a&&(r.memoizedState=o,_t=!0),r=r.queue,Cm(Lb.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||qe!==null&&qe.memoizedState.tag&1){if(n.flags|=2048,Es(9,Ib.bind(null,n,r,o,t),void 0,null),Xe===null)throw Error(N(349));Eo&30||zb(n,t,o)}return o}function zb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ib(e,t,n,r){t.value=n,t.getSnapshot=r,Bb(t)&&Vb(e)}function Lb(e,t,n){return n(function(){Bb(t)&&Vb(e)})}function Bb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pn(e,n)}catch{return!0}}function Vb(e){var t=sr(e,1);t!==null&&hn(t,e,1,-1)}function Eg(e){var t=yn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ts,lastRenderedState:e},t.queue=e,e=e.dispatch=N7.bind(null,$e,e),[t.memoizedState,e]}function Es(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function jb(){return en().memoizedState}function bu(e,t,n,r){var o=yn();$e.flags|=e,o.memoizedState=Es(1|t,n,void 0,r===void 0?null:r)}function ld(e,t,n,r){var o=en();r=r===void 0?null:r;var a=void 0;if(je!==null){var i=je.memoizedState;if(a=i.destroy,r!==null&&km(r,i.deps)){o.memoizedState=Es(t,n,a,r);return}}$e.flags|=e,o.memoizedState=Es(1|t,n,a,r)}function Pg(e,t){return bu(8390656,8,e,t)}function Cm(e,t){return ld(2048,8,e,t)}function Ub(e,t){return ld(4,2,e,t)}function Wb(e,t){return ld(4,4,e,t)}function Hb(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yb(e,t,n){return n=n!=null?n.concat([e]):null,ld(4,4,Hb.bind(null,t,e),n)}function Tm(){}function Gb(e,t){var n=en();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&km(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qb(e,t){var n=en();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&km(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xb(e,t,n){return Eo&21?(pn(n,t)||(n=Z3(),$e.lanes|=n,Po|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,_t=!0),e.memoizedState=n)}function R7(e,t){var n=he;he=n!==0&&4>n?n:4,e(!0);var r=Nf.transition;Nf.transition={};try{e(!1),t()}finally{he=n,Nf.transition=r}}function Kb(){return en().memoizedState}function $7(e,t,n){var r=Ir(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qb(e))Zb(t,n);else if(n=Pb(e,t,n,r),n!==null){var o=gt();hn(n,e,r,o),Jb(n,t,r)}}function N7(e,t,n){var r=Ir(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qb(e))Zb(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,pn(s,i)){var l=t.interleaved;l===null?(o.next=o,gm(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Pb(e,t,o,r),n!==null&&(o=gt(),hn(n,e,r,o),Jb(n,t,r))}}function Qb(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function Zb(e,t){qi=lc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rm(e,n)}}var uc={readContext:Jt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},O7={readContext:Jt,useCallback:function(e,t){return yn().memoizedState=[e,t===void 0?null:t],e},useContext:Jt,useEffect:Pg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bu(4194308,4,Hb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bu(4194308,4,e,t)},useInsertionEffect:function(e,t){return bu(4,2,e,t)},useMemo:function(e,t){var n=yn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$7.bind(null,$e,e),[r.memoizedState,e]},useRef:function(e){var t=yn();return e={current:e},t.memoizedState=e},useState:Eg,useDebugValue:Tm,useDeferredValue:function(e){return yn().memoizedState=e},useTransition:function(){var e=Eg(!1),t=e[0];return e=R7.bind(null,e[1]),yn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$e,o=yn();if(Me){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Xe===null)throw Error(N(349));Eo&30||zb(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Pg(Lb.bind(null,r,a,e),[e]),r.flags|=2048,Es(9,Ib.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=yn(),t=Xe.identifierPrefix;if(Me){var n=Qn,r=Kn;n=(r&~(1<<32-fn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=A7++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},F7={readContext:Jt,useCallback:Gb,useContext:Jt,useEffect:Cm,useImperativeHandle:Yb,useInsertionEffect:Ub,useLayoutEffect:Wb,useMemo:qb,useReducer:Of,useRef:jb,useState:function(){return Of(Ts)},useDebugValue:Tm,useDeferredValue:function(e){var t=en();return Xb(t,je.memoizedState,e)},useTransition:function(){var e=Of(Ts)[0],t=en().memoizedState;return[e,t]},useMutableSource:Fb,useSyncExternalStore:Db,useId:Kb,unstable_isNewReconciler:!1},D7={readContext:Jt,useCallback:Gb,useContext:Jt,useEffect:Cm,useImperativeHandle:Yb,useInsertionEffect:Ub,useLayoutEffect:Wb,useMemo:qb,useReducer:Ff,useRef:jb,useState:function(){return Ff(Ts)},useDebugValue:Tm,useDeferredValue:function(e){var t=en();return je===null?t.memoizedState=e:Xb(t,je.memoizedState,e)},useTransition:function(){var e=Ff(Ts)[0],t=en().memoizedState;return[e,t]},useMutableSource:Fb,useSyncExternalStore:Db,useId:Kb,unstable_isNewReconciler:!1};function Ia(e,t){try{var n="",r=t;do n+=c6(r),r=r.return;while(r);var o=n}catch(a){o=` +Error generating stack: `+a.message+` +`+a.stack}return{value:e,source:t,stack:o,digest:null}}function Df(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var z7=typeof WeakMap=="function"?WeakMap:Map;function ex(e,t,n){n=tr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){dc||(dc=!0,Eh=r),gh(e,t)},n}function tx(e,t,n){n=tr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){gh(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){gh(e,t),typeof r!="function"&&(zr===null?zr=new Set([this]):zr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Mg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new z7;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Q7.bind(null,e,t,n),t.then(e,e))}function Ag(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Rg(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=tr(-1,1),t.tag=2,Dr(n,t,1))),n.lanes|=1),e)}var I7=hr.ReactCurrentOwner,_t=!1;function mt(e,t,n,r){t.child=e===null?Nb(t,null,n,r):Da(t,e.child,n,r)}function $g(e,t,n,r,o){n=n.render;var a=t.ref;return Sa(t,o),r=wm(e,t,n,r,a,o),n=_m(),e!==null&&!_t?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,lr(e,t,o)):(Me&&n&&dm(t),t.flags|=1,mt(e,t,r,o),t.child)}function Ng(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!Om(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,nx(e,t,a,r,o)):(e=wu(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:bs,n(i,r)&&e.ref===t.ref)return lr(e,t,o)}return t.flags|=1,e=Lr(a,r),e.ref=t.ref,e.return=t,t.child=e}function nx(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(bs(a,r)&&e.ref===t.ref)if(_t=!1,t.pendingProps=r=a,(e.lanes&o)!==0)e.flags&131072&&(_t=!0);else return t.lanes=e.lanes,lr(e,t,o)}return yh(e,t,n,r,o)}function rx(e,t,n){var r=t.pendingProps,o=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Se(ua,Ot),Ot|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Se(ua,Ot),Ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Se(ua,Ot),Ot|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Se(ua,Ot),Ot|=r;return mt(e,t,o,n),t.child}function ox(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function yh(e,t,n,r,o){var a=Et(n)?Co:ct.current;return a=Oa(t,a),Sa(t,o),n=wm(e,t,n,r,a,o),r=_m(),e!==null&&!_t?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,lr(e,t,o)):(Me&&r&&dm(t),t.flags|=1,mt(e,t,n,o),t.child)}function Og(e,t,n,r,o){if(Et(n)){var a=!0;tc(t)}else a=!1;if(Sa(t,o),t.stateNode===null)xu(e,t),Rb(t,n,r),vh(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Jt(u):(u=Et(n)?Co:ct.current,u=Oa(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||l!==u)&&Cg(t,i,r,u),wr=!1;var f=t.memoizedState;i.state=f,ic(t,r,i,o),l=t.memoizedState,s!==r||f!==l||Tt.current||wr?(typeof c=="function"&&(mh(t,n,c,r),l=t.memoizedState),(s=wr||_g(t,n,s,r,f,l,u))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Mb(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:an(t.type,s),i.props=u,d=t.pendingProps,f=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Jt(l):(l=Et(n)?Co:ct.current,l=Oa(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==d||f!==l)&&Cg(t,i,r,l),wr=!1,f=t.memoizedState,i.state=f,ic(t,r,i,o);var p=t.memoizedState;s!==d||f!==p||Tt.current||wr?(typeof h=="function"&&(mh(t,n,h,r),p=t.memoizedState),(u=wr||_g(t,n,u,r,f,p,l)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,p,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,p,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return bh(e,t,n,r,a,o)}function bh(e,t,n,r,o,a){ox(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&bg(t,n,!1),lr(e,t,a);r=t.stateNode,I7.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Da(t,e.child,null,a),t.child=Da(t,null,s,a)):mt(e,t,s,a),t.memoizedState=r.state,o&&bg(t,n,!0),t.child}function ax(e){var t=e.stateNode;t.pendingContext?yg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yg(e,t.context,!1),bm(e,t.containerInfo)}function Fg(e,t,n,r,o){return Fa(),hm(o),t.flags|=256,mt(e,t,n,r),t.child}var xh={dehydrated:null,treeContext:null,retryLane:0};function Sh(e){return{baseLanes:e,cachePool:null,transitions:null}}function ix(e,t,n){var r=t.pendingProps,o=Re.current,a=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Se(Re,o&1),e===null)return hh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,a?(r=t.mode,a=t.child,i={mode:"hidden",children:i},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=dd(i,r,0,null),e=yo(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Sh(n),t.memoizedState=xh,e):Em(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return L7(e,t,i,r,s,o,n);if(a){a=r.fallback,i=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Lr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?a=Lr(s,a):(a=yo(a,i,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,i=e.child.memoizedState,i=i===null?Sh(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~n,t.memoizedState=xh,r}return a=e.child,e=a.sibling,r=Lr(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Em(e,t){return t=dd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bl(e,t,n,r){return r!==null&&hm(r),Da(t,e.child,null,n),e=Em(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function L7(e,t,n,r,o,a,i){if(n)return t.flags&256?(t.flags&=-257,r=Df(Error(N(422))),Bl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=dd({mode:"visible",children:r.children},o,0,null),a=yo(a,o,i,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Da(t,e.child,null,i),t.child.memoizedState=Sh(i),t.memoizedState=xh,a);if(!(t.mode&1))return Bl(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(N(419)),r=Df(a,r,void 0),Bl(e,t,i,r)}if(s=(i&e.childLanes)!==0,_t||s){if(r=Xe,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,sr(e,o),hn(r,e,o,-1))}return Nm(),r=Df(Error(N(421))),Bl(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Z7.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Ft=Fr(o.nextSibling),Dt=t,Me=!0,ln=null,e!==null&&(Gt[qt++]=Kn,Gt[qt++]=Qn,Gt[qt++]=To,Kn=e.id,Qn=e.overflow,To=t),t=Em(t,r.children),t.flags|=4096,t)}function Dg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ph(e.return,t,n)}function zf(e,t,n,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function sx(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(mt(e,t,r.children,n),r=Re.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dg(e,n,t);else if(e.tag===19)Dg(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Se(Re,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&sc(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zf(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&sc(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zf(t,!0,n,null,a);break;case"together":zf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Po|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=Lr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Lr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function B7(e,t,n){switch(t.tag){case 3:ax(t),Fa();break;case 5:Ob(t);break;case 1:Et(t.type)&&tc(t);break;case 4:bm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Se(oc,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Se(Re,Re.current&1),t.flags|=128,null):n&t.child.childLanes?ix(e,t,n):(Se(Re,Re.current&1),e=lr(e,t,n),e!==null?e.sibling:null);Se(Re,Re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return sx(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Se(Re,Re.current),r)break;return null;case 22:case 23:return t.lanes=0,rx(e,t,n)}return lr(e,t,n)}var lx,kh,ux,cx;lx=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};kh=function(){};ux=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,fo(An.current);var a=null;switch(n){case"input":o=W0(e,o),r=W0(e,r),a=[];break;case"select":o=Ne({},o,{value:void 0}),r=Ne({},r,{value:void 0}),a=[];break;case"textarea":o=G0(e,o),r=G0(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ju)}X0(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(fs.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(a||(a=[]),a.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(fs.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ke("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};cx=function(e,t,n,r){n!==r&&(t.flags|=4)};function yi(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function st(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function V7(e,t,n){var r=t.pendingProps;switch(fm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(t),null;case 1:return Et(t.type)&&ec(),st(t),null;case 3:return r=t.stateNode,za(),_e(Tt),_e(ct),Sm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Il(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ln!==null&&(Ah(ln),ln=null))),kh(e,t),st(t),null;case 5:xm(t);var o=fo(_s.current);if(n=t.type,e!==null&&t.stateNode!=null)ux(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return st(t),null}if(e=fo(An.current),Il(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[wn]=t,r[ks]=a,e=(t.mode&1)!==0,n){case"dialog":ke("cancel",r),ke("close",r);break;case"iframe":case"object":case"embed":ke("load",r);break;case"video":case"audio":for(o=0;o<Ni.length;o++)ke(Ni[o],r);break;case"source":ke("error",r);break;case"img":case"image":case"link":ke("error",r),ke("load",r);break;case"details":ke("toggle",r);break;case"input":H1(r,a),ke("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ke("invalid",r);break;case"textarea":G1(r,a),ke("invalid",r)}X0(n,a),o=null;for(var i in a)if(a.hasOwnProperty(i)){var s=a[i];i==="children"?typeof s=="string"?r.textContent!==s&&(a.suppressHydrationWarning!==!0&&zl(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&zl(r.textContent,s,e),o=["children",""+s]):fs.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&ke("scroll",r)}switch(n){case"input":Ml(r),Y1(r,a,!0);break;case"textarea":Ml(r),q1(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Ju)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=z3(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[wn]=t,e[ks]=r,lx(e,t,!1,!1),t.stateNode=e;e:{switch(i=K0(n,r),n){case"dialog":ke("cancel",e),ke("close",e),o=r;break;case"iframe":case"object":case"embed":ke("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ni.length;o++)ke(Ni[o],e);o=r;break;case"source":ke("error",e),o=r;break;case"img":case"image":case"link":ke("error",e),ke("load",e),o=r;break;case"details":ke("toggle",e),o=r;break;case"input":H1(e,r),o=W0(e,r),ke("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ne({},r,{value:void 0}),ke("invalid",e);break;case"textarea":G1(e,r),o=G0(e,r),ke("invalid",e);break;default:o=r}X0(n,o),s=o;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?B3(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&I3(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&hs(e,l):typeof l=="number"&&hs(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(fs.hasOwnProperty(a)?l!=null&&a==="onScroll"&&ke("scroll",e):l!=null&&Qp(e,a,l,i))}switch(n){case"input":Ml(e),Y1(e,r,!1);break;case"textarea":Ml(e),q1(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Vr(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?ga(e,!!r.multiple,a,!1):r.defaultValue!=null&&ga(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ju)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return st(t),null;case 6:if(e&&t.stateNode!=null)cx(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=fo(_s.current),fo(An.current),Il(t)){if(r=t.stateNode,n=t.memoizedProps,r[wn]=t,(a=r.nodeValue!==n)&&(e=Dt,e!==null))switch(e.tag){case 3:zl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&zl(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[wn]=t,t.stateNode=r}return st(t),null;case 13:if(_e(Re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&Ft!==null&&t.mode&1&&!(t.flags&128))Eb(),Fa(),t.flags|=98560,a=!1;else if(a=Il(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(N(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(N(317));a[wn]=t}else Fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;st(t),a=!1}else ln!==null&&(Ah(ln),ln=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Re.current&1?Ue===0&&(Ue=3):Nm())),t.updateQueue!==null&&(t.flags|=4),st(t),null);case 4:return za(),kh(e,t),e===null&&xs(t.stateNode.containerInfo),st(t),null;case 10:return vm(t.type._context),st(t),null;case 17:return Et(t.type)&&ec(),st(t),null;case 19:if(_e(Re),a=t.memoizedState,a===null)return st(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)yi(a,!1);else{if(Ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=sc(e),i!==null){for(t.flags|=128,yi(a,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,i=a.alternate,i===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Se(Re,Re.current&1|2),t.child}e=e.sibling}a.tail!==null&&Ie()>La&&(t.flags|=128,r=!0,yi(a,!1),t.lanes=4194304)}else{if(!r)if(e=sc(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Me)return st(t),null}else 2*Ie()-a.renderingStartTime>La&&n!==1073741824&&(t.flags|=128,r=!0,yi(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ie(),t.sibling=null,n=Re.current,Se(Re,r?n&1|2:n&1),t):(st(t),null);case 22:case 23:return $m(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ot&1073741824&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function j7(e,t){switch(fm(t),t.tag){case 1:return Et(t.type)&&ec(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return za(),_e(Tt),_e(ct),Sm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xm(t),null;case 13:if(_e(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Re),null;case 4:return za(),null;case 10:return vm(t.type._context),null;case 22:case 23:return $m(),null;case 24:return null;default:return null}}var Vl=!1,ut=!1,U7=typeof WeakSet=="function"?WeakSet:Set,L=null;function la(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Fe(e,t,r)}else n.current=null}function wh(e,t,n){try{n()}catch(r){Fe(e,t,r)}}var zg=!1;function W7(e,t){if(ih=Ku,e=pb(),cm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(s=i+o),d!==a||r!==0&&d.nodeType!==3||(l=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(s=i),f===a&&++c===r&&(l=i),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sh={focusedElem:e,selectionRange:n},Ku=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,x=p.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:an(t.type,m),x);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(k){Fe(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return p=zg,zg=!1,p}function Xi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&wh(t,n,a)}o=o.next}while(o!==r)}}function ud(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _h(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function dx(e){var t=e.alternate;t!==null&&(e.alternate=null,dx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wn],delete t[ks],delete t[ch],delete t[T7],delete t[E7])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fx(e){return e.tag===5||e.tag===3||e.tag===4}function Ig(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ch(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ju));else if(r!==4&&(e=e.child,e!==null))for(Ch(e,t,n),e=e.sibling;e!==null;)Ch(e,t,n),e=e.sibling}function Th(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Th(e,t,n),e=e.sibling;e!==null;)Th(e,t,n),e=e.sibling}var tt=null,sn=!1;function mr(e,t,n){for(n=n.child;n!==null;)hx(e,t,n),n=n.sibling}function hx(e,t,n){if(Mn&&typeof Mn.onCommitFiberUnmount=="function")try{Mn.onCommitFiberUnmount(td,n)}catch{}switch(n.tag){case 5:ut||la(n,t);case 6:var r=tt,o=sn;tt=null,mr(e,t,n),tt=r,sn=o,tt!==null&&(sn?(e=tt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):tt.removeChild(n.stateNode));break;case 18:tt!==null&&(sn?(e=tt,n=n.stateNode,e.nodeType===8?Af(e.parentNode,n):e.nodeType===1&&Af(e,n),gs(e)):Af(tt,n.stateNode));break;case 4:r=tt,o=sn,tt=n.stateNode.containerInfo,sn=!0,mr(e,t,n),tt=r,sn=o;break;case 0:case 11:case 14:case 15:if(!ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&wh(n,t,i),o=o.next}while(o!==r)}mr(e,t,n);break;case 1:if(!ut&&(la(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Fe(n,t,s)}mr(e,t,n);break;case 21:mr(e,t,n);break;case 22:n.mode&1?(ut=(r=ut)||n.memoizedState!==null,mr(e,t,n),ut=r):mr(e,t,n);break;default:mr(e,t,n)}}function Lg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new U7),t.forEach(function(r){var o=J7.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function tn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:tt=s.stateNode,sn=!1;break e;case 3:tt=s.stateNode.containerInfo,sn=!0;break e;case 4:tt=s.stateNode.containerInfo,sn=!0;break e}s=s.return}if(tt===null)throw Error(N(160));hx(a,i,o),tt=null,sn=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Fe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)px(t,e),t=t.sibling}function px(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(tn(t,e),vn(e),r&4){try{Xi(3,e,e.return),ud(3,e)}catch(m){Fe(e,e.return,m)}try{Xi(5,e,e.return)}catch(m){Fe(e,e.return,m)}}break;case 1:tn(t,e),vn(e),r&512&&n!==null&&la(n,n.return);break;case 5:if(tn(t,e),vn(e),r&512&&n!==null&&la(n,n.return),e.flags&32){var o=e.stateNode;try{hs(o,"")}catch(m){Fe(e,e.return,m)}}if(r&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,i=n!==null?n.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&F3(o,a),K0(s,i);var u=K0(s,a);for(i=0;i<l.length;i+=2){var c=l[i],d=l[i+1];c==="style"?B3(o,d):c==="dangerouslySetInnerHTML"?I3(o,d):c==="children"?hs(o,d):Qp(o,c,d,u)}switch(s){case"input":H0(o,a);break;case"textarea":D3(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?ga(o,!!a.multiple,h,!1):f!==!!a.multiple&&(a.defaultValue!=null?ga(o,!!a.multiple,a.defaultValue,!0):ga(o,!!a.multiple,a.multiple?[]:"",!1))}o[ks]=a}catch(m){Fe(e,e.return,m)}}break;case 6:if(tn(t,e),vn(e),r&4){if(e.stateNode===null)throw Error(N(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(m){Fe(e,e.return,m)}}break;case 3:if(tn(t,e),vn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{gs(t.containerInfo)}catch(m){Fe(e,e.return,m)}break;case 4:tn(t,e),vn(e);break;case 13:tn(t,e),vn(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(Am=Ie())),r&4&&Lg(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ut=(u=ut)||c,tn(t,e),ut=u):tn(t,e),vn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(L=e,c=e.child;c!==null;){for(d=L=c;L!==null;){switch(f=L,h=f.child,f.tag){case 0:case 11:case 14:case 15:Xi(4,f,f.return);break;case 1:la(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(m){Fe(r,n,m)}}break;case 5:la(f,f.return);break;case 22:if(f.memoizedState!==null){Vg(d);continue}}h!==null?(h.return=f,L=h):Vg(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=d.stateNode,l=d.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=L3("display",i))}catch(m){Fe(e,e.return,m)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(m){Fe(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:tn(t,e),vn(e),r&4&&Lg(e);break;case 21:break;default:tn(t,e),vn(e)}}function vn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(fx(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(hs(o,""),r.flags&=-33);var a=Ig(e);Th(e,a,o);break;case 3:case 4:var i=r.stateNode.containerInfo,s=Ig(e);Ch(e,s,i);break;default:throw Error(N(161))}}catch(l){Fe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function H7(e,t,n){L=e,mx(e)}function mx(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var o=L,a=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Vl;if(!i){var s=o.alternate,l=s!==null&&s.memoizedState!==null||ut;s=Vl;var u=ut;if(Vl=i,(ut=l)&&!u)for(L=o;L!==null;)i=L,l=i.child,i.tag===22&&i.memoizedState!==null?jg(o):l!==null?(l.return=i,L=l):jg(o);for(;a!==null;)L=a,mx(a),a=a.sibling;L=o,Vl=s,ut=u}Bg(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,L=a):Bg(e)}}function Bg(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ut||ud(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ut)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:an(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&wg(t,a,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wg(t,i,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&gs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}ut||t.flags&512&&_h(t)}catch(f){Fe(t,t.return,f)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function Vg(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function jg(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ud(4,t)}catch(l){Fe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Fe(t,o,l)}}var a=t.return;try{_h(t)}catch(l){Fe(t,a,l)}break;case 5:var i=t.return;try{_h(t)}catch(l){Fe(t,i,l)}}}catch(l){Fe(t,t.return,l)}if(t===e){L=null;break}var s=t.sibling;if(s!==null){s.return=t.return,L=s;break}L=t.return}}var Y7=Math.ceil,cc=hr.ReactCurrentDispatcher,Pm=hr.ReactCurrentOwner,Zt=hr.ReactCurrentBatchConfig,ne=0,Xe=null,Be=null,rt=0,Ot=0,ua=Gr(0),Ue=0,Ps=null,Po=0,cd=0,Mm=0,Ki=null,kt=null,Am=0,La=1/0,Gn=null,dc=!1,Eh=null,zr=null,jl=!1,Mr=null,fc=0,Qi=0,Ph=null,Su=-1,ku=0;function gt(){return ne&6?Ie():Su!==-1?Su:Su=Ie()}function Ir(e){return e.mode&1?ne&2&&rt!==0?rt&-rt:M7.transition!==null?(ku===0&&(ku=Z3()),ku):(e=he,e!==0||(e=window.event,e=e===void 0?16:ab(e.type)),e):1}function hn(e,t,n,r){if(50<Qi)throw Qi=0,Ph=null,Error(N(185));Qs(e,n,r),(!(ne&2)||e!==Xe)&&(e===Xe&&(!(ne&2)&&(cd|=n),Ue===4&&Tr(e,rt)),Pt(e,r),n===1&&ne===0&&!(t.mode&1)&&(La=Ie()+500,id&&qr()))}function Pt(e,t){var n=e.callbackNode;M6(e,t);var r=Xu(e,e===Xe?rt:0);if(r===0)n!==null&&Q1(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Q1(n),t===1)e.tag===0?P7(Ug.bind(null,e)):_b(Ug.bind(null,e)),_7(function(){!(ne&6)&&qr()}),n=null;else{switch(J3(r)){case 1:n=nm;break;case 4:n=K3;break;case 16:n=qu;break;case 536870912:n=Q3;break;default:n=qu}n=wx(n,vx.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function vx(e,t){if(Su=-1,ku=0,ne&6)throw Error(N(327));var n=e.callbackNode;if(ka()&&e.callbackNode!==n)return null;var r=Xu(e,e===Xe?rt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=hc(e,r);else{t=r;var o=ne;ne|=2;var a=yx();(Xe!==e||rt!==t)&&(Gn=null,La=Ie()+500,go(e,t));do try{X7();break}catch(s){gx(e,s)}while(1);mm(),cc.current=a,ne=o,Be!==null?t=0:(Xe=null,rt=0,t=Ue)}if(t!==0){if(t===2&&(o=th(e),o!==0&&(r=o,t=Mh(e,o))),t===1)throw n=Ps,go(e,0),Tr(e,r),Pt(e,Ie()),n;if(t===6)Tr(e,r);else{if(o=e.current.alternate,!(r&30)&&!G7(o)&&(t=hc(e,r),t===2&&(a=th(e),a!==0&&(r=a,t=Mh(e,a))),t===1))throw n=Ps,go(e,0),Tr(e,r),Pt(e,Ie()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:oo(e,kt,Gn);break;case 3:if(Tr(e,r),(r&130023424)===r&&(t=Am+500-Ie(),10<t)){if(Xu(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){gt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=uh(oo.bind(null,e,kt,Gn),t);break}oo(e,kt,Gn);break;case 4:if(Tr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-fn(r);a=1<<i,i=t[i],i>o&&(o=i),r&=~a}if(r=o,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Y7(r/1960))-r,10<r){e.timeoutHandle=uh(oo.bind(null,e,kt,Gn),r);break}oo(e,kt,Gn);break;case 5:oo(e,kt,Gn);break;default:throw Error(N(329))}}}return Pt(e,Ie()),e.callbackNode===n?vx.bind(null,e):null}function Mh(e,t){var n=Ki;return e.current.memoizedState.isDehydrated&&(go(e,t).flags|=256),e=hc(e,t),e!==2&&(t=kt,kt=n,t!==null&&Ah(t)),e}function Ah(e){kt===null?kt=e:kt.push.apply(kt,e)}function G7(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!pn(a(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Tr(e,t){for(t&=~Mm,t&=~cd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-fn(t),r=1<<n;e[n]=-1,t&=~r}}function Ug(e){if(ne&6)throw Error(N(327));ka();var t=Xu(e,0);if(!(t&1))return Pt(e,Ie()),null;var n=hc(e,t);if(e.tag!==0&&n===2){var r=th(e);r!==0&&(t=r,n=Mh(e,r))}if(n===1)throw n=Ps,go(e,0),Tr(e,t),Pt(e,Ie()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,oo(e,kt,Gn),Pt(e,Ie()),null}function Rm(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&(La=Ie()+500,id&&qr())}}function Mo(e){Mr!==null&&Mr.tag===0&&!(ne&6)&&ka();var t=ne;ne|=1;var n=Zt.transition,r=he;try{if(Zt.transition=null,he=1,e)return e()}finally{he=r,Zt.transition=n,ne=t,!(ne&6)&&qr()}}function $m(){Ot=ua.current,_e(ua)}function go(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,w7(n)),Be!==null)for(n=Be.return;n!==null;){var r=n;switch(fm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ec();break;case 3:za(),_e(Tt),_e(ct),Sm();break;case 5:xm(r);break;case 4:za();break;case 13:_e(Re);break;case 19:_e(Re);break;case 10:vm(r.type._context);break;case 22:case 23:$m()}n=n.return}if(Xe=e,Be=e=Lr(e.current,null),rt=Ot=t,Ue=0,Ps=null,Mm=cd=Po=0,kt=Ki=null,co!==null){for(t=0;t<co.length;t++)if(n=co[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,a=n.pending;if(a!==null){var i=a.next;a.next=o,r.next=i}n.pending=r}co=null}return e}function gx(e,t){do{var n=Be;try{if(mm(),yu.current=uc,lc){for(var r=$e.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}lc=!1}if(Eo=0,qe=je=$e=null,qi=!1,Cs=0,Pm.current=null,n===null||n.return===null){Ue=1,Ps=t,Be=null;break}e:{var a=e,i=n.return,s=n,l=t;if(t=rt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Ag(i);if(h!==null){h.flags&=-257,Rg(h,i,s,a,t),h.mode&1&&Mg(a,u,t),t=h,l=u;var p=t.updateQueue;if(p===null){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}else{if(!(t&1)){Mg(a,u,t),Nm();break e}l=Error(N(426))}}else if(Me&&s.mode&1){var x=Ag(i);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Rg(x,i,s,a,t),hm(Ia(l,s));break e}}a=l=Ia(l,s),Ue!==4&&(Ue=2),Ki===null?Ki=[a]:Ki.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=ex(a,l,t);kg(a,v);break e;case 1:s=l;var g=a.type,b=a.stateNode;if(!(a.flags&128)&&(typeof g.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(zr===null||!zr.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t;var k=tx(a,s,t);kg(a,k);break e}}a=a.return}while(a!==null)}xx(n)}catch(T){t=T,Be===n&&n!==null&&(Be=n=n.return);continue}break}while(1)}function yx(){var e=cc.current;return cc.current=uc,e===null?uc:e}function Nm(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),Xe===null||!(Po&268435455)&&!(cd&268435455)||Tr(Xe,rt)}function hc(e,t){var n=ne;ne|=2;var r=yx();(Xe!==e||rt!==t)&&(Gn=null,go(e,t));do try{q7();break}catch(o){gx(e,o)}while(1);if(mm(),ne=n,cc.current=r,Be!==null)throw Error(N(261));return Xe=null,rt=0,Ue}function q7(){for(;Be!==null;)bx(Be)}function X7(){for(;Be!==null&&!x6();)bx(Be)}function bx(e){var t=kx(e.alternate,e,Ot);e.memoizedProps=e.pendingProps,t===null?xx(e):Be=t,Pm.current=null}function xx(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=j7(n,t),n!==null){n.flags&=32767,Be=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Be=null;return}}else if(n=V7(n,t,Ot),n!==null){Be=n;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);Ue===0&&(Ue=5)}function oo(e,t,n){var r=he,o=Zt.transition;try{Zt.transition=null,he=1,K7(e,t,n,r)}finally{Zt.transition=o,he=r}return null}function K7(e,t,n,r){do ka();while(Mr!==null);if(ne&6)throw Error(N(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(A6(e,a),e===Xe&&(Be=Xe=null,rt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||jl||(jl=!0,wx(qu,function(){return ka(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=Zt.transition,Zt.transition=null;var i=he;he=1;var s=ne;ne|=4,Pm.current=null,W7(e,n),px(n,e),v7(sh),Ku=!!ih,sh=ih=null,e.current=n,H7(n),S6(),ne=s,he=i,Zt.transition=a}else e.current=n;if(jl&&(jl=!1,Mr=e,fc=o),a=e.pendingLanes,a===0&&(zr=null),_6(n.stateNode),Pt(e,Ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(dc)throw dc=!1,e=Eh,Eh=null,e;return fc&1&&e.tag!==0&&ka(),a=e.pendingLanes,a&1?e===Ph?Qi++:(Qi=0,Ph=e):Qi=0,qr(),null}function ka(){if(Mr!==null){var e=J3(fc),t=Zt.transition,n=he;try{if(Zt.transition=null,he=16>e?16:e,Mr===null)var r=!1;else{if(e=Mr,Mr=null,fc=0,ne&6)throw Error(N(331));var o=ne;for(ne|=4,L=e.current;L!==null;){var a=L,i=a.child;if(L.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(L=u;L!==null;){var c=L;switch(c.tag){case 0:case 11:case 15:Xi(8,c,a)}var d=c.child;if(d!==null)d.return=c,L=d;else for(;L!==null;){c=L;var f=c.sibling,h=c.return;if(dx(c),c===u){L=null;break}if(f!==null){f.return=h,L=f;break}L=h}}}var p=a.alternate;if(p!==null){var m=p.child;if(m!==null){p.child=null;do{var x=m.sibling;m.sibling=null,m=x}while(m!==null)}}L=a}}if(a.subtreeFlags&2064&&i!==null)i.return=a,L=i;else e:for(;L!==null;){if(a=L,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Xi(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,L=v;break e}L=a.return}}var g=e.current;for(L=g;L!==null;){i=L;var b=i.child;if(i.subtreeFlags&2064&&b!==null)b.return=i,L=b;else e:for(i=g;L!==null;){if(s=L,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:ud(9,s)}}catch(T){Fe(s,s.return,T)}if(s===i){L=null;break e}var k=s.sibling;if(k!==null){k.return=s.return,L=k;break e}L=s.return}}if(ne=o,qr(),Mn&&typeof Mn.onPostCommitFiberRoot=="function")try{Mn.onPostCommitFiberRoot(td,e)}catch{}r=!0}return r}finally{he=n,Zt.transition=t}}return!1}function Wg(e,t,n){t=Ia(n,t),t=ex(e,t,1),e=Dr(e,t,1),t=gt(),e!==null&&(Qs(e,1,t),Pt(e,t))}function Fe(e,t,n){if(e.tag===3)Wg(e,e,n);else for(;t!==null;){if(t.tag===3){Wg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(zr===null||!zr.has(r))){e=Ia(n,e),e=tx(t,e,1),t=Dr(t,e,1),e=gt(),t!==null&&(Qs(t,1,e),Pt(t,e));break}}t=t.return}}function Q7(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=gt(),e.pingedLanes|=e.suspendedLanes&n,Xe===e&&(rt&n)===n&&(Ue===4||Ue===3&&(rt&130023424)===rt&&500>Ie()-Am?go(e,0):Mm|=n),Pt(e,t)}function Sx(e,t){t===0&&(e.mode&1?(t=$l,$l<<=1,!($l&130023424)&&($l=4194304)):t=1);var n=gt();e=sr(e,t),e!==null&&(Qs(e,t,n),Pt(e,n))}function Z7(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sx(e,n)}function J7(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),Sx(e,n)}var kx;kx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tt.current)_t=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _t=!1,B7(e,t,n);_t=!!(e.flags&131072)}else _t=!1,Me&&t.flags&1048576&&Cb(t,rc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xu(e,t),e=t.pendingProps;var o=Oa(t,ct.current);Sa(t,n),o=wm(null,t,r,e,o,n);var a=_m();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Et(r)?(a=!0,tc(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ym(t),o.updater=sd,t.stateNode=o,o._reactInternals=t,vh(t,r,e,n),t=bh(null,t,r,!0,a,n)):(t.tag=0,Me&&a&&dm(t),mt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=t_(r),e=an(r,e),o){case 0:t=yh(null,t,r,e,n);break e;case 1:t=Og(null,t,r,e,n);break e;case 11:t=$g(null,t,r,e,n);break e;case 14:t=Ng(null,t,r,an(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),yh(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),Og(e,t,r,o,n);case 3:e:{if(ax(t),e===null)throw Error(N(387));r=t.pendingProps,a=t.memoizedState,o=a.element,Mb(e,t),ic(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Ia(Error(N(423)),t),t=Fg(e,t,r,n,o);break e}else if(r!==o){o=Ia(Error(N(424)),t),t=Fg(e,t,r,n,o);break e}else for(Ft=Fr(t.stateNode.containerInfo.firstChild),Dt=t,Me=!0,ln=null,n=Nb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fa(),r===o){t=lr(e,t,n);break e}mt(e,t,r,n)}t=t.child}return t;case 5:return Ob(t),e===null&&hh(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,lh(r,o)?i=null:a!==null&&lh(r,a)&&(t.flags|=32),ox(e,t),mt(e,t,i,n),t.child;case 6:return e===null&&hh(t),null;case 13:return ix(e,t,n);case 4:return bm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Da(t,null,r,n):mt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),$g(e,t,r,o,n);case 7:return mt(e,t,t.pendingProps,n),t.child;case 8:return mt(e,t,t.pendingProps.children,n),t.child;case 12:return mt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Se(oc,r._currentValue),r._currentValue=i,a!==null)if(pn(a.value,i)){if(a.children===o.children&&!Tt.current){t=lr(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=tr(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),ph(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(N(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ph(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}mt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Sa(t,n),o=Jt(o),r=r(o),t.flags|=1,mt(e,t,r,n),t.child;case 14:return r=t.type,o=an(r,t.pendingProps),o=an(r.type,o),Ng(e,t,r,o,n);case 15:return nx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),xu(e,t),t.tag=1,Et(r)?(e=!0,tc(t)):e=!1,Sa(t,n),Rb(t,r,o),vh(t,r,o,n),bh(null,t,r,!0,e,n);case 19:return sx(e,t,n);case 22:return rx(e,t,n)}throw Error(N(156,t.tag))};function wx(e,t){return X3(e,t)}function e_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,n,r){return new e_(e,t,n,r)}function Om(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t_(e){if(typeof e=="function")return Om(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jp)return 11;if(e===em)return 14}return 2}function Lr(e,t){var n=e.alternate;return n===null?(n=Xt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function wu(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")Om(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Jo:return yo(n.children,o,a,t);case Zp:i=8,o|=8;break;case B0:return e=Xt(12,n,t,o|2),e.elementType=B0,e.lanes=a,e;case V0:return e=Xt(13,n,t,o),e.elementType=V0,e.lanes=a,e;case j0:return e=Xt(19,n,t,o),e.elementType=j0,e.lanes=a,e;case $3:return dd(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A3:i=10;break e;case R3:i=9;break e;case Jp:i=11;break e;case em:i=14;break e;case kr:i=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Xt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function yo(e,t,n,r){return e=Xt(7,e,r,t),e.lanes=n,e}function dd(e,t,n,r){return e=Xt(22,e,r,t),e.elementType=$3,e.lanes=n,e.stateNode={isHidden:!1},e}function If(e,t,n){return e=Xt(6,e,null,t),e.lanes=n,e}function Lf(e,t,n){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function n_(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bf(0),this.expirationTimes=bf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fm(e,t,n,r,o,a,i,s,l){return e=new n_(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Xt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ym(a),e}function r_(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Zo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _x(e){if(!e)return jr;e=e._reactInternals;e:{if(Do(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(Et(n))return wb(e,n,t)}return t}function Cx(e,t,n,r,o,a,i,s,l){return e=Fm(n,r,!0,e,o,a,i,s,l),e.context=_x(null),n=e.current,r=gt(),o=Ir(n),a=tr(r,o),a.callback=t??null,Dr(n,a,o),e.current.lanes=o,Qs(e,o,r),Pt(e,r),e}function fd(e,t,n,r){var o=t.current,a=gt(),i=Ir(o);return n=_x(n),t.context===null?t.context=n:t.pendingContext=n,t=tr(a,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Dr(o,t,i),e!==null&&(hn(e,o,i,a),gu(e,o,i)),i}function pc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Hg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Dm(e,t){Hg(e,t),(e=e.alternate)&&Hg(e,t)}function o_(){return null}var Tx=typeof reportError=="function"?reportError:function(e){console.error(e)};function zm(e){this._internalRoot=e}hd.prototype.render=zm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));fd(e,t,null,null)};hd.prototype.unmount=zm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mo(function(){fd(null,e,null,null)}),t[ir]=null}};function hd(e){this._internalRoot=e}hd.prototype.unstable_scheduleHydration=function(e){if(e){var t=nb();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cr.length&&t!==0&&t<Cr[n].priority;n++);Cr.splice(n,0,e),n===0&&ob(e)}};function Im(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Yg(){}function a_(e,t,n,r,o){if(o){if(typeof r=="function"){var a=r;r=function(){var u=pc(i);a.call(u)}}var i=Cx(t,r,e,0,null,!1,!1,"",Yg);return e._reactRootContainer=i,e[ir]=i.current,xs(e.nodeType===8?e.parentNode:e),Mo(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=pc(l);s.call(u)}}var l=Fm(e,0,!1,null,null,!1,!1,"",Yg);return e._reactRootContainer=l,e[ir]=l.current,xs(e.nodeType===8?e.parentNode:e),Mo(function(){fd(t,l,n,r)}),l}function md(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if(typeof o=="function"){var s=o;o=function(){var l=pc(i);s.call(l)}}fd(t,i,e,o)}else i=a_(n,t,e,o,r);return pc(i)}eb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=$i(t.pendingLanes);n!==0&&(rm(t,n|1),Pt(t,Ie()),!(ne&6)&&(La=Ie()+500,qr()))}break;case 13:Mo(function(){var r=sr(e,1);if(r!==null){var o=gt();hn(r,e,1,o)}}),Dm(e,1)}};om=function(e){if(e.tag===13){var t=sr(e,134217728);if(t!==null){var n=gt();hn(t,e,134217728,n)}Dm(e,134217728)}};tb=function(e){if(e.tag===13){var t=Ir(e),n=sr(e,t);if(n!==null){var r=gt();hn(n,e,t,r)}Dm(e,t)}};nb=function(){return he};rb=function(e,t){var n=he;try{return he=e,t()}finally{he=n}};Z0=function(e,t,n){switch(t){case"input":if(H0(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ad(r);if(!o)throw Error(N(90));O3(r),H0(r,o)}}}break;case"textarea":D3(e,n);break;case"select":t=n.value,t!=null&&ga(e,!!n.multiple,t,!1)}};U3=Rm;W3=Mo;var i_={usingClientEntryPoint:!1,Events:[Js,ra,ad,V3,j3,Rm]},bi={findFiberByHostInstance:uo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},s_={bundleType:bi.bundleType,version:bi.version,rendererPackageName:bi.rendererPackageName,rendererConfig:bi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:hr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=G3(e),e===null?null:e.stateNode},findFiberByHostInstance:bi.findFiberByHostInstance||o_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ul=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ul.isDisabled&&Ul.supportsFiber)try{td=Ul.inject(s_),Mn=Ul}catch{}}jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i_;jt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Im(t))throw Error(N(200));return r_(e,t,null,n)};jt.createRoot=function(e,t){if(!Im(e))throw Error(N(299));var n=!1,r="",o=Tx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Fm(e,1,!1,null,null,n,!1,r,o),e[ir]=t.current,xs(e.nodeType===8?e.parentNode:e),new zm(t)};jt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=G3(t),e=e===null?null:e.stateNode,e};jt.flushSync=function(e){return Mo(e)};jt.hydrate=function(e,t,n){if(!pd(t))throw Error(N(200));return md(null,e,t,!0,n)};jt.hydrateRoot=function(e,t,n){if(!Im(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,o=!1,a="",i=Tx;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Cx(t,null,e,1,n??null,o,!1,a,i),e[ir]=t.current,xs(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new hd(t)};jt.render=function(e,t,n){if(!pd(t))throw Error(N(200));return md(null,e,t,!1,n)};jt.unmountComponentAtNode=function(e){if(!pd(e))throw Error(N(40));return e._reactRootContainer?(Mo(function(){md(null,null,e,!1,function(){e._reactRootContainer=null,e[ir]=null})}),!0):!1};jt.unstable_batchedUpdates=Rm;jt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pd(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return md(e,t,n,!1,r)};jt.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=jt})(o6);var Gg=ds;z0.createRoot=Gg.createRoot,z0.hydrateRoot=Gg.hydrateRoot;function l_(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]}function u_(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var c_=function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(u_(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=l_(o);try{a.insertRule(r,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),lt="-ms-",mc="-moz-",se="-webkit-",Ex="comm",Lm="rule",Bm="decl",d_="@import",Px="@keyframes",f_=Math.abs,vd=String.fromCharCode,h_=Object.assign;function p_(e,t){return nt(e,0)^45?(((t<<2^nt(e,0))<<2^nt(e,1))<<2^nt(e,2))<<2^nt(e,3):0}function Mx(e){return e.trim()}function m_(e,t){return(e=t.exec(e))?e[0]:e}function ue(e,t,n){return e.replace(t,n)}function Rh(e,t){return e.indexOf(t)}function nt(e,t){return e.charCodeAt(t)|0}function Ms(e,t,n){return e.slice(t,n)}function Sn(e){return e.length}function Vm(e){return e.length}function Wl(e,t){return t.push(e),e}function v_(e,t){return e.map(t).join("")}var gd=1,Ba=1,Ax=0,At=0,Le=0,ti="";function yd(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:gd,column:Ba,length:i,return:""}}function xi(e,t){return h_(yd("",null,null,"",null,null,0),e,{length:-e.length},t)}function g_(){return Le}function y_(){return Le=At>0?nt(ti,--At):0,Ba--,Le===10&&(Ba=1,gd--),Le}function zt(){return Le=At<Ax?nt(ti,At++):0,Ba++,Le===10&&(Ba=1,gd++),Le}function Rn(){return nt(ti,At)}function _u(){return At}function tl(e,t){return Ms(ti,e,t)}function As(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 Rx(e){return gd=Ba=1,Ax=Sn(ti=e),At=0,[]}function $x(e){return ti="",e}function Cu(e){return Mx(tl(At-1,$h(e===91?e+2:e===40?e+1:e)))}function b_(e){for(;(Le=Rn())&&Le<33;)zt();return As(e)>2||As(Le)>3?"":" "}function x_(e,t){for(;--t&&zt()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return tl(e,_u()+(t<6&&Rn()==32&&zt()==32))}function $h(e){for(;zt();)switch(Le){case e:return At;case 34:case 39:e!==34&&e!==39&&$h(Le);break;case 40:e===41&&$h(e);break;case 92:zt();break}return At}function S_(e,t){for(;zt()&&e+Le!==47+10;)if(e+Le===42+42&&Rn()===47)break;return"/*"+tl(t,At-1)+"*"+vd(e===47?e:zt())}function k_(e){for(;!As(Rn());)zt();return tl(e,At)}function w_(e){return $x(Tu("",null,null,null,[""],e=Rx(e),0,[0],e))}function Tu(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,h=0,p=0,m=1,x=1,v=1,g=0,b="",k=o,T=a,E=r,P=b;x;)switch(p=g,g=zt()){case 40:if(p!=108&&nt(P,d-1)==58){Rh(P+=ue(Cu(g),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=Cu(g);break;case 9:case 10:case 13:case 32:P+=b_(p);break;case 92:P+=x_(_u()-1,7);continue;case 47:switch(Rn()){case 42:case 47:Wl(__(S_(zt(),_u()),t,n),l);break;default:P+="/"}break;case 123*m:s[u++]=Sn(P)*v;case 125*m:case 59:case 0:switch(g){case 0:case 125:x=0;case 59+c:h>0&&Sn(P)-d&&Wl(h>32?Xg(P+";",r,n,d-1):Xg(ue(P," ","")+";",r,n,d-2),l);break;case 59:P+=";";default:if(Wl(E=qg(P,t,n,u,c,o,s,b,k=[],T=[],d),a),g===123)if(c===0)Tu(P,t,E,E,k,a,d,s,T);else switch(f===99&&nt(P,3)===110?100:f){case 100:case 109:case 115:Tu(e,E,E,r&&Wl(qg(e,E,E,0,0,o,s,b,o,k=[],d),T),o,T,d,s,r?k:T);break;default:Tu(P,E,E,E,[""],T,0,s,T)}}u=c=h=0,m=v=1,b=P="",d=i;break;case 58:d=1+Sn(P),h=p;default:if(m<1){if(g==123)--m;else if(g==125&&m++==0&&y_()==125)continue}switch(P+=vd(g),g*m){case 38:v=c>0?1:(P+="\f",-1);break;case 44:s[u++]=(Sn(P)-1)*v,v=1;break;case 64:Rn()===45&&(P+=Cu(zt())),f=Rn(),c=d=Sn(b=P+=k_(_u())),g++;break;case 45:p===45&&Sn(P)==2&&(m=0)}}return a}function qg(e,t,n,r,o,a,i,s,l,u,c){for(var d=o-1,f=o===0?a:[""],h=Vm(f),p=0,m=0,x=0;p<r;++p)for(var v=0,g=Ms(e,d+1,d=f_(m=i[p])),b=e;v<h;++v)(b=Mx(m>0?f[v]+" "+g:ue(g,/&\f/g,f[v])))&&(l[x++]=b);return yd(e,t,n,o===0?Lm:s,l,u,c)}function __(e,t,n){return yd(e,t,n,Ex,vd(g_()),Ms(e,2,-2),0)}function Xg(e,t,n,r){return yd(e,t,n,Bm,Ms(e,0,r),Ms(e,r+1,-1),r)}function wa(e,t){for(var n="",r=Vm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function C_(e,t,n,r){switch(e.type){case d_:case Bm:return e.return=e.return||e.value;case Ex:return"";case Px:return e.return=e.value+"{"+wa(e.children,r)+"}";case Lm:e.value=e.props.join(",")}return Sn(n=wa(e.children,r))?e.return=e.value+"{"+n+"}":""}function T_(e){var t=Vm(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}function E_(e){return function(t){t.root||(t=t.return)&&e(t)}}var Kg=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var o=t(r);return n.set(r,o),o}};function Nx(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var P_=function(t,n,r){for(var o=0,a=0;o=a,a=Rn(),o===38&&a===12&&(n[r]=1),!As(a);)zt();return tl(t,At)},M_=function(t,n){var r=-1,o=44;do switch(As(o)){case 0:o===38&&Rn()===12&&(n[r]=1),t[r]+=P_(At-1,n,r);break;case 2:t[r]+=Cu(o);break;case 4:if(o===44){t[++r]=Rn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=vd(o)}while(o=zt());return t},A_=function(t,n){return $x(M_(Rx(t),n))},Qg=new WeakMap,R_=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Qg.get(r))&&!o){Qg.set(t,!0);for(var a=[],i=A_(n,a),s=r.props,l=0,u=0;l<i.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=a[l]?i[l].replace(/&\f/g,s[c]):s[c]+" "+i[l]}}},$_=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ox(e,t){switch(p_(e,t)){case 5103:return se+"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 se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return se+e+mc+e+lt+e+e;case 6828:case 4268:return se+e+lt+e+e;case 6165:return se+e+lt+"flex-"+e+e;case 5187:return se+e+ue(e,/(\w+).+(:[^]+)/,se+"box-$1$2"+lt+"flex-$1$2")+e;case 5443:return se+e+lt+"flex-item-"+ue(e,/flex-|-self/,"")+e;case 4675:return se+e+lt+"flex-line-pack"+ue(e,/align-content|flex-|-self/,"")+e;case 5548:return se+e+lt+ue(e,"shrink","negative")+e;case 5292:return se+e+lt+ue(e,"basis","preferred-size")+e;case 6060:return se+"box-"+ue(e,"-grow","")+se+e+lt+ue(e,"grow","positive")+e;case 4554:return se+ue(e,/([^-])(transform)/g,"$1"+se+"$2")+e;case 6187:return ue(ue(ue(e,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),e,"")+e;case 5495:case 3959:return ue(e,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return ue(ue(e,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+lt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+e+e;case 4095:case 3583:case 4068:case 2532:return ue(e,/(.+)-inline(.+)/,se+"$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(Sn(e)-1-t>6)switch(nt(e,t+1)){case 109:if(nt(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+mc+(nt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rh(e,"stretch")?Ox(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nt(e,t+1)!==115)break;case 6444:switch(nt(e,Sn(e)-3-(~Rh(e,"!important")&&10))){case 107:return ue(e,":",":"+se)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(nt(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+lt+"$2box$3")+e}break;case 5936:switch(nt(e,t+11)){case 114:return se+e+lt+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+lt+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+lt+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+lt+e+e}return e}var N_=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Bm:t.return=Ox(t.value,t.length);break;case Px:return wa([xi(t,{value:ue(t.value,"@","@"+se)})],o);case Lm:if(t.length)return v_(t.props,function(a){switch(m_(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wa([xi(t,{props:[ue(a,/:(read-\w+)/,":"+mc+"$1")]})],o);case"::placeholder":return wa([xi(t,{props:[ue(a,/:(plac\w+)/,":"+se+"input-$1")]}),xi(t,{props:[ue(a,/:(plac\w+)/,":"+mc+"$1")]}),xi(t,{props:[ue(a,/:(plac\w+)/,lt+"input-$1")]})],o)}return""})}},O_=[N_],F_=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||O_,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),v=1;v<x.length;v++)a[x[v]]=!0;s.push(m)});var l,u=[R_,$_];{var c,d=[C_,E_(function(m){c.insert(m)})],f=T_(u.concat(o,d)),h=function(x){return wa(w_(x),f)};l=function(x,v,g,b){c=g,h(x?x+"{"+v.styles+"}":v.styles),b&&(p.inserted[v.name]=!0)}}var p={key:n,sheet:new c_({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return p.sheet.hydrate(s),p};function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ao.apply(this,arguments)}var Nh={},D_={get exports(){return Nh},set exports(e){Nh=e}},pe={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ke=typeof Symbol=="function"&&Symbol.for,jm=Ke?Symbol.for("react.element"):60103,Um=Ke?Symbol.for("react.portal"):60106,bd=Ke?Symbol.for("react.fragment"):60107,xd=Ke?Symbol.for("react.strict_mode"):60108,Sd=Ke?Symbol.for("react.profiler"):60114,kd=Ke?Symbol.for("react.provider"):60109,wd=Ke?Symbol.for("react.context"):60110,Wm=Ke?Symbol.for("react.async_mode"):60111,_d=Ke?Symbol.for("react.concurrent_mode"):60111,Cd=Ke?Symbol.for("react.forward_ref"):60112,Td=Ke?Symbol.for("react.suspense"):60113,z_=Ke?Symbol.for("react.suspense_list"):60120,Ed=Ke?Symbol.for("react.memo"):60115,Pd=Ke?Symbol.for("react.lazy"):60116,I_=Ke?Symbol.for("react.block"):60121,L_=Ke?Symbol.for("react.fundamental"):60117,B_=Ke?Symbol.for("react.responder"):60118,V_=Ke?Symbol.for("react.scope"):60119;function Wt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case jm:switch(e=e.type,e){case Wm:case _d:case bd:case Sd:case xd:case Td:return e;default:switch(e=e&&e.$$typeof,e){case wd:case Cd:case Pd:case Ed:case kd:return e;default:return t}}case Um:return t}}}function Fx(e){return Wt(e)===_d}pe.AsyncMode=Wm;pe.ConcurrentMode=_d;pe.ContextConsumer=wd;pe.ContextProvider=kd;pe.Element=jm;pe.ForwardRef=Cd;pe.Fragment=bd;pe.Lazy=Pd;pe.Memo=Ed;pe.Portal=Um;pe.Profiler=Sd;pe.StrictMode=xd;pe.Suspense=Td;pe.isAsyncMode=function(e){return Fx(e)||Wt(e)===Wm};pe.isConcurrentMode=Fx;pe.isContextConsumer=function(e){return Wt(e)===wd};pe.isContextProvider=function(e){return Wt(e)===kd};pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===jm};pe.isForwardRef=function(e){return Wt(e)===Cd};pe.isFragment=function(e){return Wt(e)===bd};pe.isLazy=function(e){return Wt(e)===Pd};pe.isMemo=function(e){return Wt(e)===Ed};pe.isPortal=function(e){return Wt(e)===Um};pe.isProfiler=function(e){return Wt(e)===Sd};pe.isStrictMode=function(e){return Wt(e)===xd};pe.isSuspense=function(e){return Wt(e)===Td};pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bd||e===_d||e===Sd||e===xd||e===Td||e===z_||typeof e=="object"&&e!==null&&(e.$$typeof===Pd||e.$$typeof===Ed||e.$$typeof===kd||e.$$typeof===wd||e.$$typeof===Cd||e.$$typeof===L_||e.$$typeof===B_||e.$$typeof===V_||e.$$typeof===I_)};pe.typeOf=Wt;(function(e){e.exports=pe})(D_);var Dx=Nh,j_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},U_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zx={};zx[Dx.ForwardRef]=j_;zx[Dx.Memo]=U_;var W_=!0;function H_(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var Ix=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||W_===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Lx=function(t,n,r){Ix(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Y_(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var G_={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},q_=/[A-Z]|^ms/g,X_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Bx=function(t){return t.charCodeAt(1)===45},Zg=function(t){return t!=null&&typeof t!="boolean"},Bf=Nx(function(e){return Bx(e)?e:e.replace(q_,"-$&").toLowerCase()}),Jg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(X_,function(r,o,a){return kn={name:o,styles:a,next:kn},o})}return G_[t]!==1&&!Bx(t)&&typeof n=="number"&&n!==0?n+"px":n};function Rs(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return kn={name:n.name,styles:n.styles,next:kn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)kn={name:r.name,styles:r.styles,next:kn},r=r.next;var o=n.styles+";";return o}return K_(e,t,n)}case"function":{if(e!==void 0){var a=kn,i=n(e);return kn=a,Rs(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function K_(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Rs(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":Zg(i)&&(r+=Bf(a)+":"+Jg(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)Zg(i[s])&&(r+=Bf(a)+":"+Jg(a,i[s])+";");else{var l=Rs(e,t,i);switch(a){case"animation":case"animationName":{r+=Bf(a)+":"+l+";";break}default:r+=a+"{"+l+"}"}}}return r}var ey=/label:\s*([^\s;\n{]+)\s*(;|$)/g,kn,Hm=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,a="";kn=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=Rs(r,n,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=Rs(r,n,t[s]),o&&(a+=i[s]);ey.lastIndex=0;for(var l="",u;(u=ey.exec(a))!==null;)l+="-"+u[1];var c=Y_(a)+l;return{name:c,styles:a,next:kn}},Q_=function(t){return t()},Vx=cs["useInsertionEffect"]?cs["useInsertionEffect"]:!1,Z_=Vx||Q_,ty=Vx||y.useLayoutEffect,jx=y.createContext(typeof HTMLElement<"u"?F_({key:"css"}):null);jx.Provider;var Ux=function(t){return y.forwardRef(function(n,r){var o=y.useContext(jx);return t(n,o,r)})},$s=y.createContext({}),J_=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Ao({},t,n)},eC=Kg(function(e){return Kg(function(t){return J_(e,t)})}),tC=function(t){var n=y.useContext($s);return t.theme!==n&&(n=eC(n)(t.theme)),y.createElement($s.Provider,{value:n},t.children)},Md=Ux(function(e,t){var n=e.styles,r=Hm([n],void 0,y.useContext($s)),o=y.useRef();return ty(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),i.hydrate([l])),o.current=[i,s],function(){i.flush()}},[t]),ty(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&Lx(t,r.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush()}t.insert("",r,i,!1)},[t,r.name]),null});function nC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hm(t)}var nl=function(){var t=nC.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Wx=` + :root { + --chakra-vh: 100vh; + } + + @supports (height: -webkit-fill-available) { + :root { + --chakra-vh: -webkit-fill-available; + } + } + + @supports (height: -moz-fill-available) { + :root { + --chakra-vh: -moz-fill-available; + } + } + + @supports (height: 100dvh) { + :root { + --chakra-vh: 100dvh; + } + } +`,rC=()=>w(Md,{styles:Wx}),oC=()=>w(Md,{styles:` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + font-feature-settings: 'kern'; + } + + *, + *::before, + *::after { + border-width: 0; + border-style: solid; + box-sizing: border-box; + } + + main { + display: block; + } + + hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + pre, + code, + kbd, + samp { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + b, + strong { + font-weight: bold; + } + + small { + font-size: 80%; + } + + sub, + sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + sub { + bottom: -0.25em; + } + + sup { + top: -0.5em; + } + + img { + border-style: none; + } + + button, + input, + optgroup, + select, + textarea { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + button, + input { + overflow: visible; + } + + button, + select { + text-transform: none; + } + + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; + } + + fieldset { + padding: 0.35em 0.75em 0.625em; + } + + legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + progress { + vertical-align: baseline; + } + + textarea { + overflow: auto; + } + + [type="checkbox"], + [type="radio"] { + box-sizing: border-box; + padding: 0; + } + + [type="number"]::-webkit-inner-spin-button, + [type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + input[type="number"] { + -moz-appearance: textfield; + } + + [type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + [type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + details { + display: block; + } + + summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + body, + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre { + margin: 0; + } + + button { + background: transparent; + padding: 0; + } + + fieldset { + margin: 0; + padding: 0; + } + + ol, + ul { + margin: 0; + padding: 0; + } + + textarea { + resize: vertical; + } + + button, + [role="button"] { + cursor: pointer; + } + + button::-moz-focus-inner { + border: 0 !important; + } + + table { + border-collapse: collapse; + } + + h1, + h2, + h3, + h4, + h5, + h6 { + font-size: inherit; + font-weight: inherit; + } + + button, + input, + optgroup, + select, + textarea { + padding: 0; + line-height: inherit; + color: inherit; + } + + img, + svg, + video, + canvas, + audio, + iframe, + embed, + object { + display: block; + } + + img, + video { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) { + outline: none; + box-shadow: none; + } + + select::-ms-expand { + display: none; + } + + ${Wx} + `});function aC(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Xr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:a}=e,i=y.createContext(void 0);i.displayName=t;function s(){var l;const u=y.useContext(i);if(!u&&n){const c=new Error(a??aC(r,o));throw c.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,c,s),c}return u}return[i.Provider,s,i]}var[iC,sC]=Xr({strict:!1,name:"PortalManagerContext"});function Hx(e){const{children:t,zIndex:n}=e;return w(iC,{value:{zIndex:n},children:t})}Hx.displayName="PortalManager";var Ns=Boolean(globalThis==null?void 0:globalThis.document)?y.useLayoutEffect:y.useEffect,[Yx,lC]=Xr({strict:!1,name:"PortalContext"}),Ym="chakra-portal",uC=".chakra-portal",cC=e=>w("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),dC=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=y.useState(null),a=y.useRef(null),[,i]=y.useState({});y.useEffect(()=>i({}),[]);const s=lC(),l=sC();Ns(()=>{if(!r)return;const c=r.ownerDocument,d=t?s??c.body:c.body;if(!d)return;a.current=c.createElement("div"),a.current.className=Ym,d.appendChild(a.current),i({});const f=a.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?w(cC,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return a.current?ds.createPortal(w(Yx,{value:a.current,children:u}),a.current):w("span",{ref:c=>{c&&o(c)}})},fC=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,a=o??(typeof window<"u"?document.body:void 0),i=y.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=Ym),l},[o]),[,s]=y.useState({});return Ns(()=>s({}),[]),Ns(()=>{if(!(!i||!a))return a.appendChild(i),()=>{a.removeChild(i)}},[i,a]),a&&i?ds.createPortal(w(Yx,{value:r?i:null,children:t}),i):null};function rl(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?w(fC,{containerRef:n,...r}):w(dC,{...r})}rl.className=Ym;rl.selector=uC;rl.displayName="Portal";function hC(){const e=y.useContext($s);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var Ad=y.createContext({});Ad.displayName="ColorModeContext";function Gm(){const e=y.useContext(Ad);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Hl={light:"chakra-ui-light",dark:"chakra-ui-dark"};function pC(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o==null||o()},setClassName(r){document.body.classList.add(r?Hl.dark:Hl.light),document.body.classList.remove(r?Hl.light:Hl.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o:r==="dark")?"dark":"light"},addListener(r){const o=n.query(),a=i=>{r(i.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(a):o.addEventListener("change",a),()=>{typeof o.removeListener=="function"?o.removeListener(a):o.removeEventListener("change",a)}},preventTransition(){const r=document.createElement("style");return r.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(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var mC="chakra-ui-color-mode";function vC(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var gC=vC(mC),ny=()=>{};function ry(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function Gx(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:i=gC}=e,s=o==="dark"?"dark":"light",[l,u]=y.useState(()=>ry(i,s)),[c,d]=y.useState(()=>ry(i)),{getSystemTheme:f,setClassName:h,setDataset:p,addListener:m}=y.useMemo(()=>pC({preventTransition:a}),[a]),x=o==="system"&&!l?c:l,v=y.useCallback(k=>{const T=k==="system"?f():k;u(T),h(T==="dark"),p(T),i.set(T)},[i,f,h,p]);Ns(()=>{o==="system"&&d(f())},[]),y.useEffect(()=>{const k=i.get();if(k){v(k);return}if(o==="system"){v("system");return}v(s)},[i,s,o,v]);const g=y.useCallback(()=>{v(x==="dark"?"light":"dark")},[x,v]);y.useEffect(()=>{if(r)return m(v)},[r,m,v]);const b=y.useMemo(()=>({colorMode:t??x,toggleColorMode:t?ny:g,setColorMode:t?ny:v,forced:t!==void 0}),[x,g,v,t]);return w(Ad.Provider,{value:b,children:n})}Gx.displayName="ColorModeProvider";var yC=new Set(["dark","light","system"]);function bC(e){let t=e;return yC.has(t)||(t="light"),t}function xC(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=bC(t),a=n==="cookie",i=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + `,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); + `;return`!${a?i:s}`.trim()}function SC(e={}){const{nonce:t}=e;return w("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:xC(e)}})}function kC(){const e=Gm(),t=hC();return{...e,theme:t}}var ve=(...e)=>e.filter(Boolean).join(" ");function Mt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Tn(e,...t){return wC(e)?e(...t):e}var wC=e=>typeof e=="function",oy=e=>e?"":void 0;function Oi(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var vc={},_C={get exports(){return vc},set exports(e){vc=e}};(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,a=16,i=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",x="[object Number]",v="[object Null]",g="[object Object]",b="[object Proxy]",k="[object RegExp]",T="[object Set]",E="[object String]",P="[object Undefined]",R="[object WeakMap]",V="[object ArrayBuffer]",F="[object DataView]",D="[object Float32Array]",G="[object Float64Array]",X="[object Int8Array]",Ae="[object Int16Array]",ae="[object Int32Array]",Oe="[object Uint8Array]",ge="[object Uint8ClampedArray]",O="[object Uint16Array]",B="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,ye=/^\[object .+?Constructor\]$/,Te=/^(?:0|[1-9]\d*)$/,Z={};Z[D]=Z[G]=Z[X]=Z[Ae]=Z[ae]=Z[Oe]=Z[ge]=Z[O]=Z[B]=!0,Z[s]=Z[l]=Z[V]=Z[c]=Z[F]=Z[d]=Z[f]=Z[h]=Z[m]=Z[x]=Z[g]=Z[k]=Z[T]=Z[E]=Z[R]=!1;var dt=typeof Tl=="object"&&Tl&&Tl.Object===Object&&Tl,Bn=typeof self=="object"&&self&&self.Object===Object&&self,Ze=dt||Bn||Function("return this")(),Je=t&&!t.nodeType&&t,$t=Je&&!0&&e&&!e.nodeType&&e,z=$t&&$t.exports===Je,H=z&&dt.process,K=function(){try{var S=$t&&$t.require&&$t.require("util").types;return S||H&&H.binding&&H.binding("util")}catch{}}(),$=K&&K.isTypedArray;function at(S,_,M){switch(M.length){case 0:return S.call(_);case 1:return S.call(_,M[0]);case 2:return S.call(_,M[0],M[1]);case 3:return S.call(_,M[0],M[1],M[2])}return S.apply(_,M)}function me(S,_){for(var M=-1,I=Array(S);++M<S;)I[M]=_(M);return I}function ft(S){return function(_){return S(_)}}function ht(S,_){return S==null?void 0:S[_]}function Vn(S,_){return function(M){return S(_(M))}}var gl=Array.prototype,E4=Function.prototype,yl=Object.prototype,nf=Ze["__core-js_shared__"],bl=E4.toString,jn=yl.hasOwnProperty,x1=function(){var S=/[^.]+$/.exec(nf&&nf.keys&&nf.keys.IE_PROTO||"");return S?"Symbol(src)_1."+S:""}(),S1=yl.toString,P4=bl.call(Object),M4=RegExp("^"+bl.call(jn).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xl=z?Ze.Buffer:void 0,k1=Ze.Symbol,w1=Ze.Uint8Array,_1=xl?xl.allocUnsafe:void 0,C1=Vn(Object.getPrototypeOf,Object),T1=Object.create,A4=yl.propertyIsEnumerable,R4=gl.splice,Zr=k1?k1.toStringTag:void 0,Sl=function(){try{var S=af(Object,"defineProperty");return S({},"",{}),S}catch{}}(),$4=xl?xl.isBuffer:void 0,E1=Math.max,N4=Date.now,P1=af(Ze,"Map"),ui=af(Object,"create"),O4=function(){function S(){}return function(_){if(!eo(_))return{};if(T1)return T1(_);S.prototype=_;var M=new S;return S.prototype=void 0,M}}();function Jr(S){var _=-1,M=S==null?0:S.length;for(this.clear();++_<M;){var I=S[_];this.set(I[0],I[1])}}function F4(){this.__data__=ui?ui(null):{},this.size=0}function D4(S){var _=this.has(S)&&delete this.__data__[S];return this.size-=_?1:0,_}function z4(S){var _=this.__data__;if(ui){var M=_[S];return M===r?void 0:M}return jn.call(_,S)?_[S]:void 0}function I4(S){var _=this.__data__;return ui?_[S]!==void 0:jn.call(_,S)}function L4(S,_){var M=this.__data__;return this.size+=this.has(S)?0:1,M[S]=ui&&_===void 0?r:_,this}Jr.prototype.clear=F4,Jr.prototype.delete=D4,Jr.prototype.get=z4,Jr.prototype.has=I4,Jr.prototype.set=L4;function Un(S){var _=-1,M=S==null?0:S.length;for(this.clear();++_<M;){var I=S[_];this.set(I[0],I[1])}}function B4(){this.__data__=[],this.size=0}function V4(S){var _=this.__data__,M=kl(_,S);if(M<0)return!1;var I=_.length-1;return M==I?_.pop():R4.call(_,M,1),--this.size,!0}function j4(S){var _=this.__data__,M=kl(_,S);return M<0?void 0:_[M][1]}function U4(S){return kl(this.__data__,S)>-1}function W4(S,_){var M=this.__data__,I=kl(M,S);return I<0?(++this.size,M.push([S,_])):M[I][1]=_,this}Un.prototype.clear=B4,Un.prototype.delete=V4,Un.prototype.get=j4,Un.prototype.has=U4,Un.prototype.set=W4;function Vo(S){var _=-1,M=S==null?0:S.length;for(this.clear();++_<M;){var I=S[_];this.set(I[0],I[1])}}function H4(){this.size=0,this.__data__={hash:new Jr,map:new(P1||Un),string:new Jr}}function Y4(S){var _=_l(this,S).delete(S);return this.size-=_?1:0,_}function G4(S){return _l(this,S).get(S)}function q4(S){return _l(this,S).has(S)}function X4(S,_){var M=_l(this,S),I=M.size;return M.set(S,_),this.size+=M.size==I?0:1,this}Vo.prototype.clear=H4,Vo.prototype.delete=Y4,Vo.prototype.get=G4,Vo.prototype.has=q4,Vo.prototype.set=X4;function jo(S){var _=this.__data__=new Un(S);this.size=_.size}function K4(){this.__data__=new Un,this.size=0}function Q4(S){var _=this.__data__,M=_.delete(S);return this.size=_.size,M}function Z4(S){return this.__data__.get(S)}function J4(S){return this.__data__.has(S)}function e8(S,_){var M=this.__data__;if(M instanceof Un){var I=M.__data__;if(!P1||I.length<n-1)return I.push([S,_]),this.size=++M.size,this;M=this.__data__=new Vo(I)}return M.set(S,_),this.size=M.size,this}jo.prototype.clear=K4,jo.prototype.delete=Q4,jo.prototype.get=Z4,jo.prototype.has=J4,jo.prototype.set=e8;function t8(S,_){var M=uf(S),I=!M&&lf(S),J=!M&&!I&&N1(S),be=!M&&!I&&!J&&F1(S),Ee=M||I||J||be,Q=Ee?me(S.length,String):[],Pe=Q.length;for(var Ht in S)(_||jn.call(S,Ht))&&!(Ee&&(Ht=="length"||J&&(Ht=="offset"||Ht=="parent")||be&&(Ht=="buffer"||Ht=="byteLength"||Ht=="byteOffset")||R1(Ht,Pe)))&&Q.push(Ht);return Q}function rf(S,_,M){(M!==void 0&&!Cl(S[_],M)||M===void 0&&!(_ in S))&&of(S,_,M)}function n8(S,_,M){var I=S[_];(!(jn.call(S,_)&&Cl(I,M))||M===void 0&&!(_ in S))&&of(S,_,M)}function kl(S,_){for(var M=S.length;M--;)if(Cl(S[M][0],_))return M;return-1}function of(S,_,M){_=="__proto__"&&Sl?Sl(S,_,{configurable:!0,enumerable:!0,value:M,writable:!0}):S[_]=M}var r8=v8();function wl(S){return S==null?S===void 0?P:v:Zr&&Zr in Object(S)?g8(S):w8(S)}function M1(S){return ci(S)&&wl(S)==s}function o8(S){if(!eo(S)||S8(S))return!1;var _=df(S)?M4:ye;return _.test(E8(S))}function a8(S){return ci(S)&&O1(S.length)&&!!Z[wl(S)]}function i8(S){if(!eo(S))return k8(S);var _=$1(S),M=[];for(var I in S)I=="constructor"&&(_||!jn.call(S,I))||M.push(I);return M}function A1(S,_,M,I,J){S!==_&&r8(_,function(be,Ee){if(J||(J=new jo),eo(be))s8(S,_,Ee,M,A1,I,J);else{var Q=I?I(sf(S,Ee),be,Ee+"",S,_,J):void 0;Q===void 0&&(Q=be),rf(S,Ee,Q)}},D1)}function s8(S,_,M,I,J,be,Ee){var Q=sf(S,M),Pe=sf(_,M),Ht=Ee.get(Pe);if(Ht){rf(S,M,Ht);return}var Nt=be?be(Q,Pe,M+"",S,_,Ee):void 0,di=Nt===void 0;if(di){var ff=uf(Pe),hf=!ff&&N1(Pe),I1=!ff&&!hf&&F1(Pe);Nt=Pe,ff||hf||I1?uf(Q)?Nt=Q:P8(Q)?Nt=h8(Q):hf?(di=!1,Nt=c8(Pe,!0)):I1?(di=!1,Nt=f8(Pe,!0)):Nt=[]:M8(Pe)||lf(Pe)?(Nt=Q,lf(Q)?Nt=A8(Q):(!eo(Q)||df(Q))&&(Nt=y8(Pe))):di=!1}di&&(Ee.set(Pe,Nt),J(Nt,Pe,I,be,Ee),Ee.delete(Pe)),rf(S,M,Nt)}function l8(S,_){return C8(_8(S,_,z1),S+"")}var u8=Sl?function(S,_){return Sl(S,"toString",{configurable:!0,enumerable:!1,value:$8(_),writable:!0})}:z1;function c8(S,_){if(_)return S.slice();var M=S.length,I=_1?_1(M):new S.constructor(M);return S.copy(I),I}function d8(S){var _=new S.constructor(S.byteLength);return new w1(_).set(new w1(S)),_}function f8(S,_){var M=_?d8(S.buffer):S.buffer;return new S.constructor(M,S.byteOffset,S.length)}function h8(S,_){var M=-1,I=S.length;for(_||(_=Array(I));++M<I;)_[M]=S[M];return _}function p8(S,_,M,I){var J=!M;M||(M={});for(var be=-1,Ee=_.length;++be<Ee;){var Q=_[be],Pe=I?I(M[Q],S[Q],Q,M,S):void 0;Pe===void 0&&(Pe=S[Q]),J?of(M,Q,Pe):n8(M,Q,Pe)}return M}function m8(S){return l8(function(_,M){var I=-1,J=M.length,be=J>1?M[J-1]:void 0,Ee=J>2?M[2]:void 0;for(be=S.length>3&&typeof be=="function"?(J--,be):void 0,Ee&&b8(M[0],M[1],Ee)&&(be=J<3?void 0:be,J=1),_=Object(_);++I<J;){var Q=M[I];Q&&S(_,Q,I,be)}return _})}function v8(S){return function(_,M,I){for(var J=-1,be=Object(_),Ee=I(_),Q=Ee.length;Q--;){var Pe=Ee[S?Q:++J];if(M(be[Pe],Pe,be)===!1)break}return _}}function _l(S,_){var M=S.__data__;return x8(_)?M[typeof _=="string"?"string":"hash"]:M.map}function af(S,_){var M=ht(S,_);return o8(M)?M:void 0}function g8(S){var _=jn.call(S,Zr),M=S[Zr];try{S[Zr]=void 0;var I=!0}catch{}var J=S1.call(S);return I&&(_?S[Zr]=M:delete S[Zr]),J}function y8(S){return typeof S.constructor=="function"&&!$1(S)?O4(C1(S)):{}}function R1(S,_){var M=typeof S;return _=_??i,!!_&&(M=="number"||M!="symbol"&&Te.test(S))&&S>-1&&S%1==0&&S<_}function b8(S,_,M){if(!eo(M))return!1;var I=typeof _;return(I=="number"?cf(M)&&R1(_,M.length):I=="string"&&_ in M)?Cl(M[_],S):!1}function x8(S){var _=typeof S;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?S!=="__proto__":S===null}function S8(S){return!!x1&&x1 in S}function $1(S){var _=S&&S.constructor,M=typeof _=="function"&&_.prototype||yl;return S===M}function k8(S){var _=[];if(S!=null)for(var M in Object(S))_.push(M);return _}function w8(S){return S1.call(S)}function _8(S,_,M){return _=E1(_===void 0?S.length-1:_,0),function(){for(var I=arguments,J=-1,be=E1(I.length-_,0),Ee=Array(be);++J<be;)Ee[J]=I[_+J];J=-1;for(var Q=Array(_+1);++J<_;)Q[J]=I[J];return Q[_]=M(Ee),at(S,this,Q)}}function sf(S,_){if(!(_==="constructor"&&typeof S[_]=="function")&&_!="__proto__")return S[_]}var C8=T8(u8);function T8(S){var _=0,M=0;return function(){var I=N4(),J=a-(I-M);if(M=I,J>0){if(++_>=o)return arguments[0]}else _=0;return S.apply(void 0,arguments)}}function E8(S){if(S!=null){try{return bl.call(S)}catch{}try{return S+""}catch{}}return""}function Cl(S,_){return S===_||S!==S&&_!==_}var lf=M1(function(){return arguments}())?M1:function(S){return ci(S)&&jn.call(S,"callee")&&!A4.call(S,"callee")},uf=Array.isArray;function cf(S){return S!=null&&O1(S.length)&&!df(S)}function P8(S){return ci(S)&&cf(S)}var N1=$4||N8;function df(S){if(!eo(S))return!1;var _=wl(S);return _==h||_==p||_==u||_==b}function O1(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=i}function eo(S){var _=typeof S;return S!=null&&(_=="object"||_=="function")}function ci(S){return S!=null&&typeof S=="object"}function M8(S){if(!ci(S)||wl(S)!=g)return!1;var _=C1(S);if(_===null)return!0;var M=jn.call(_,"constructor")&&_.constructor;return typeof M=="function"&&M instanceof M&&bl.call(M)==P4}var F1=$?ft($):a8;function A8(S){return p8(S,D1(S))}function D1(S){return cf(S)?t8(S,!0):i8(S)}var R8=m8(function(S,_,M,I){A1(S,_,M,I)});function $8(S){return function(){return S}}function z1(S){return S}function N8(){return!1}e.exports=R8})(_C,vc);const Kt=vc;var CC=e=>/!(important)?$/.test(e),ay=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Oh=(e,t)=>n=>{const r=String(t),o=CC(r),a=ay(r),i=e?`${e}.${a}`:a;let s=Mt(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t;return s=ay(s),o?`${s} !important`:s};function Os(e){const{scale:t,transform:n,compose:r}=e;return(a,i)=>{var s;const l=Oh(t,a)(i);let u=(s=n==null?void 0:n(l,i))!=null?s:l;return r&&(u=r(u,i)),u}}var Yl=(...e)=>t=>e.reduce((n,r)=>r(n),t);function nn(e,t){return n=>{const r={property:n,scale:e};return r.transform=Os({scale:e,transform:t}),r}}var TC=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function EC(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:TC(t),transform:n?Os({scale:n,compose:r}):r}}var qx=["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))"];function PC(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...qx].join(" ")}function MC(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...qx].join(" ")}var AC={"--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(" ")},RC={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,/*!*/ /*!*/)"};function $C(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(", ")}}var NC={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Xx="& > :not(style) ~ :not(style)",OC={[Xx]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},FC={[Xx]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},Fh={"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"},DC=new Set(Object.values(Fh)),Kx=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),zC=e=>e.trim();function IC(e,t){var n,r;if(e==null||Kx.has(e))return e;const o=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g,{type:a,values:i}=(r=(n=o.exec(e))==null?void 0:n.groups)!=null?r:{};if(!a||!i)return e;const s=a.includes("-gradient")?a:`${a}-gradient`,[l,...u]=i.split(",").map(zC).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Fh?Fh[l]:l;u.unshift(c);const d=u.map(f=>{if(DC.has(f))return f;const h=f.indexOf(" "),[p,m]=h!==-1?[f.substr(0,h),f.substr(h+1)]:[f],x=Qx(m)?m:m&&m.split(" "),v=`colors.${p}`,g=v in t.__cssMap?t.__cssMap[v].varRef:p;return x?[g,...Array.isArray(x)?x:[x]].join(" "):g});return`${s}(${d.join(", ")})`}var Qx=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),LC=(e,t)=>IC(e,t??{});function BC(e){return/^var\(--.+\)$/.test(e)}var VC=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},gn=e=>t=>`${e}(${t})`,ee={filter(e){return e!=="auto"?e:AC},backdropFilter(e){return e!=="auto"?e:RC},ring(e){return $C(ee.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?PC():e==="auto-gpu"?MC():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=VC(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(BC(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:LC,blur:gn("blur"),opacity:gn("opacity"),brightness:gn("brightness"),contrast:gn("contrast"),dropShadow:gn("drop-shadow"),grayscale:gn("grayscale"),hueRotate:gn("hue-rotate"),invert:gn("invert"),saturate:gn("saturate"),sepia:gn("sepia"),bgImage(e){return e==null||Qx(e)||Kx.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=NC[e])!=null?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},C={borderWidths:nn("borderWidths"),borderStyles:nn("borderStyles"),colors:nn("colors"),borders:nn("borders"),radii:nn("radii",ee.px),space:nn("space",Yl(ee.vh,ee.px)),spaceT:nn("space",Yl(ee.vh,ee.px)),degreeT(e){return{property:e,transform:ee.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Os({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:nn("sizes",Yl(ee.vh,ee.px)),sizesT:nn("sizes",Yl(ee.vh,ee.fraction)),shadows:nn("shadows"),logical:EC,blur:nn("blur",ee.blur)},Eu={background:C.colors("background"),backgroundColor:C.colors("backgroundColor"),backgroundImage:C.propT("backgroundImage",ee.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ee.bgClip},bgSize:C.prop("backgroundSize"),bgPosition:C.prop("backgroundPosition"),bg:C.colors("background"),bgColor:C.colors("backgroundColor"),bgPos:C.prop("backgroundPosition"),bgRepeat:C.prop("backgroundRepeat"),bgAttachment:C.prop("backgroundAttachment"),bgGradient:C.propT("backgroundImage",ee.gradient),bgClip:{transform:ee.bgClip}};Object.assign(Eu,{bgImage:Eu.backgroundImage,bgImg:Eu.backgroundImage});var ie={border:C.borders("border"),borderWidth:C.borderWidths("borderWidth"),borderStyle:C.borderStyles("borderStyle"),borderColor:C.colors("borderColor"),borderRadius:C.radii("borderRadius"),borderTop:C.borders("borderTop"),borderBlockStart:C.borders("borderBlockStart"),borderTopLeftRadius:C.radii("borderTopLeftRadius"),borderStartStartRadius:C.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:C.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:C.radii("borderTopRightRadius"),borderStartEndRadius:C.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:C.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:C.borders("borderRight"),borderInlineEnd:C.borders("borderInlineEnd"),borderBottom:C.borders("borderBottom"),borderBlockEnd:C.borders("borderBlockEnd"),borderBottomLeftRadius:C.radii("borderBottomLeftRadius"),borderBottomRightRadius:C.radii("borderBottomRightRadius"),borderLeft:C.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:C.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:C.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:C.borders(["borderLeft","borderRight"]),borderInline:C.borders("borderInline"),borderY:C.borders(["borderTop","borderBottom"]),borderBlock:C.borders("borderBlock"),borderTopWidth:C.borderWidths("borderTopWidth"),borderBlockStartWidth:C.borderWidths("borderBlockStartWidth"),borderTopColor:C.colors("borderTopColor"),borderBlockStartColor:C.colors("borderBlockStartColor"),borderTopStyle:C.borderStyles("borderTopStyle"),borderBlockStartStyle:C.borderStyles("borderBlockStartStyle"),borderBottomWidth:C.borderWidths("borderBottomWidth"),borderBlockEndWidth:C.borderWidths("borderBlockEndWidth"),borderBottomColor:C.colors("borderBottomColor"),borderBlockEndColor:C.colors("borderBlockEndColor"),borderBottomStyle:C.borderStyles("borderBottomStyle"),borderBlockEndStyle:C.borderStyles("borderBlockEndStyle"),borderLeftWidth:C.borderWidths("borderLeftWidth"),borderInlineStartWidth:C.borderWidths("borderInlineStartWidth"),borderLeftColor:C.colors("borderLeftColor"),borderInlineStartColor:C.colors("borderInlineStartColor"),borderLeftStyle:C.borderStyles("borderLeftStyle"),borderInlineStartStyle:C.borderStyles("borderInlineStartStyle"),borderRightWidth:C.borderWidths("borderRightWidth"),borderInlineEndWidth:C.borderWidths("borderInlineEndWidth"),borderRightColor:C.colors("borderRightColor"),borderInlineEndColor:C.colors("borderInlineEndColor"),borderRightStyle:C.borderStyles("borderRightStyle"),borderInlineEndStyle:C.borderStyles("borderInlineEndStyle"),borderTopRadius:C.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:C.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:C.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:C.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ie,{rounded:ie.borderRadius,roundedTop:ie.borderTopRadius,roundedTopLeft:ie.borderTopLeftRadius,roundedTopRight:ie.borderTopRightRadius,roundedTopStart:ie.borderStartStartRadius,roundedTopEnd:ie.borderStartEndRadius,roundedBottom:ie.borderBottomRadius,roundedBottomLeft:ie.borderBottomLeftRadius,roundedBottomRight:ie.borderBottomRightRadius,roundedBottomStart:ie.borderEndStartRadius,roundedBottomEnd:ie.borderEndEndRadius,roundedLeft:ie.borderLeftRadius,roundedRight:ie.borderRightRadius,roundedStart:ie.borderInlineStartRadius,roundedEnd:ie.borderInlineEndRadius,borderStart:ie.borderInlineStart,borderEnd:ie.borderInlineEnd,borderTopStartRadius:ie.borderStartStartRadius,borderTopEndRadius:ie.borderStartEndRadius,borderBottomStartRadius:ie.borderEndStartRadius,borderBottomEndRadius:ie.borderEndEndRadius,borderStartRadius:ie.borderInlineStartRadius,borderEndRadius:ie.borderInlineEndRadius,borderStartWidth:ie.borderInlineStartWidth,borderEndWidth:ie.borderInlineEndWidth,borderStartColor:ie.borderInlineStartColor,borderEndColor:ie.borderInlineEndColor,borderStartStyle:ie.borderInlineStartStyle,borderEndStyle:ie.borderInlineEndStyle});var jC={color:C.colors("color"),textColor:C.colors("color"),fill:C.colors("fill"),stroke:C.colors("stroke")},Dh={boxShadow:C.shadows("boxShadow"),mixBlendMode:!0,blendMode:C.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:C.prop("backgroundBlendMode"),opacity:!0};Object.assign(Dh,{shadow:Dh.boxShadow});var UC={filter:{transform:ee.filter},blur:C.blur("--chakra-blur"),brightness:C.propT("--chakra-brightness",ee.brightness),contrast:C.propT("--chakra-contrast",ee.contrast),hueRotate:C.degreeT("--chakra-hue-rotate"),invert:C.propT("--chakra-invert",ee.invert),saturate:C.propT("--chakra-saturate",ee.saturate),dropShadow:C.propT("--chakra-drop-shadow",ee.dropShadow),backdropFilter:{transform:ee.backdropFilter},backdropBlur:C.blur("--chakra-backdrop-blur"),backdropBrightness:C.propT("--chakra-backdrop-brightness",ee.brightness),backdropContrast:C.propT("--chakra-backdrop-contrast",ee.contrast),backdropHueRotate:C.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:C.propT("--chakra-backdrop-invert",ee.invert),backdropSaturate:C.propT("--chakra-backdrop-saturate",ee.saturate)},gc={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ee.flexDirection},experimental_spaceX:{static:OC,transform:Os({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:FC,transform:Os({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:C.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:C.space("gap"),rowGap:C.space("rowGap"),columnGap:C.space("columnGap")};Object.assign(gc,{flexDir:gc.flexDirection});var Zx={gridGap:C.space("gridGap"),gridColumnGap:C.space("gridColumnGap"),gridRowGap:C.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},WC={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ee.outline},outlineOffset:!0,outlineColor:C.colors("outlineColor")},Yt={width:C.sizesT("width"),inlineSize:C.sizesT("inlineSize"),height:C.sizes("height"),blockSize:C.sizes("blockSize"),boxSize:C.sizes(["width","height"]),minWidth:C.sizes("minWidth"),minInlineSize:C.sizes("minInlineSize"),minHeight:C.sizes("minHeight"),minBlockSize:C.sizes("minBlockSize"),maxWidth:C.sizes("maxWidth"),maxInlineSize:C.sizes("maxInlineSize"),maxHeight:C.sizes("maxHeight"),maxBlockSize:C.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:C.propT("float",ee.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Yt,{w:Yt.width,h:Yt.height,minW:Yt.minWidth,maxW:Yt.maxWidth,minH:Yt.minHeight,maxH:Yt.maxHeight,overscroll:Yt.overscrollBehavior,overscrollX:Yt.overscrollBehaviorX,overscrollY:Yt.overscrollBehaviorY});var HC={listStyleType:!0,listStylePosition:!0,listStylePos:C.prop("listStylePosition"),listStyleImage:!0,listStyleImg:C.prop("listStyleImage")};function YC(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return e===void 0?n:e}var GC=e=>{const t=new WeakMap;return(r,o,a,i)=>{if(typeof r>"u")return e(r,o,a);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(o))return s.get(o);const l=e(r,o,a,i);return s.set(o,l),l}},qC=GC(YC),XC={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},KC={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Vf=(e,t,n)=>{const r={},o=qC(e,t,{});for(const a in o)a in n&&n[a]!=null||(r[a]=o[a]);return r},QC={srOnly:{transform(e){return e===!0?XC:e==="focusable"?KC:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Vf(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Vf(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Vf(t,e,n)}},Zi={position:!0,pos:C.prop("position"),zIndex:C.prop("zIndex","zIndices"),inset:C.spaceT("inset"),insetX:C.spaceT(["left","right"]),insetInline:C.spaceT("insetInline"),insetY:C.spaceT(["top","bottom"]),insetBlock:C.spaceT("insetBlock"),top:C.spaceT("top"),insetBlockStart:C.spaceT("insetBlockStart"),bottom:C.spaceT("bottom"),insetBlockEnd:C.spaceT("insetBlockEnd"),left:C.spaceT("left"),insetInlineStart:C.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:C.spaceT("right"),insetInlineEnd:C.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Zi,{insetStart:Zi.insetInlineStart,insetEnd:Zi.insetInlineEnd});var ZC={ring:{transform:ee.ring},ringColor:C.colors("--chakra-ring-color"),ringOffset:C.prop("--chakra-ring-offset-width"),ringOffsetColor:C.colors("--chakra-ring-offset-color"),ringInset:C.prop("--chakra-ring-inset")},we={margin:C.spaceT("margin"),marginTop:C.spaceT("marginTop"),marginBlockStart:C.spaceT("marginBlockStart"),marginRight:C.spaceT("marginRight"),marginInlineEnd:C.spaceT("marginInlineEnd"),marginBottom:C.spaceT("marginBottom"),marginBlockEnd:C.spaceT("marginBlockEnd"),marginLeft:C.spaceT("marginLeft"),marginInlineStart:C.spaceT("marginInlineStart"),marginX:C.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:C.spaceT("marginInline"),marginY:C.spaceT(["marginTop","marginBottom"]),marginBlock:C.spaceT("marginBlock"),padding:C.space("padding"),paddingTop:C.space("paddingTop"),paddingBlockStart:C.space("paddingBlockStart"),paddingRight:C.space("paddingRight"),paddingBottom:C.space("paddingBottom"),paddingBlockEnd:C.space("paddingBlockEnd"),paddingLeft:C.space("paddingLeft"),paddingInlineStart:C.space("paddingInlineStart"),paddingInlineEnd:C.space("paddingInlineEnd"),paddingX:C.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:C.space("paddingInline"),paddingY:C.space(["paddingTop","paddingBottom"]),paddingBlock:C.space("paddingBlock")};Object.assign(we,{m:we.margin,mt:we.marginTop,mr:we.marginRight,me:we.marginInlineEnd,marginEnd:we.marginInlineEnd,mb:we.marginBottom,ml:we.marginLeft,ms:we.marginInlineStart,marginStart:we.marginInlineStart,mx:we.marginX,my:we.marginY,p:we.padding,pt:we.paddingTop,py:we.paddingY,px:we.paddingX,pb:we.paddingBottom,pl:we.paddingLeft,ps:we.paddingInlineStart,paddingStart:we.paddingInlineStart,pr:we.paddingRight,pe:we.paddingInlineEnd,paddingEnd:we.paddingInlineEnd});var JC={textDecorationColor:C.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:C.shadows("textShadow")},eT={clipPath:!0,transform:C.propT("transform",ee.transform),transformOrigin:!0,translateX:C.spaceT("--chakra-translate-x"),translateY:C.spaceT("--chakra-translate-y"),skewX:C.degreeT("--chakra-skew-x"),skewY:C.degreeT("--chakra-skew-y"),scaleX:C.prop("--chakra-scale-x"),scaleY:C.prop("--chakra-scale-y"),scale:C.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:C.degreeT("--chakra-rotate")},tT={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:C.prop("transitionDuration","transition.duration"),transitionProperty:C.prop("transitionProperty","transition.property"),transitionTimingFunction:C.prop("transitionTimingFunction","transition.easing")},nT={fontFamily:C.prop("fontFamily","fonts"),fontSize:C.prop("fontSize","fontSizes",ee.px),fontWeight:C.prop("fontWeight","fontWeights"),lineHeight:C.prop("lineHeight","lineHeights"),letterSpacing:C.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},rT={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:C.spaceT("scrollMargin"),scrollMarginTop:C.spaceT("scrollMarginTop"),scrollMarginBottom:C.spaceT("scrollMarginBottom"),scrollMarginLeft:C.spaceT("scrollMarginLeft"),scrollMarginRight:C.spaceT("scrollMarginRight"),scrollMarginX:C.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:C.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:C.spaceT("scrollPadding"),scrollPaddingTop:C.spaceT("scrollPaddingTop"),scrollPaddingBottom:C.spaceT("scrollPaddingBottom"),scrollPaddingLeft:C.spaceT("scrollPaddingLeft"),scrollPaddingRight:C.spaceT("scrollPaddingRight"),scrollPaddingX:C.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:C.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Jx(e){return Mt(e)&&e.reference?e.reference:String(e)}var Rd=(e,...t)=>t.map(Jx).join(` ${e} `).replace(/calc/g,""),iy=(...e)=>`calc(${Rd("+",...e)})`,sy=(...e)=>`calc(${Rd("-",...e)})`,zh=(...e)=>`calc(${Rd("*",...e)})`,ly=(...e)=>`calc(${Rd("/",...e)})`,uy=e=>{const t=Jx(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:zh(t,-1)},so=Object.assign(e=>({add:(...t)=>so(iy(e,...t)),subtract:(...t)=>so(sy(e,...t)),multiply:(...t)=>so(zh(e,...t)),divide:(...t)=>so(ly(e,...t)),negate:()=>so(uy(e)),toString:()=>e.toString()}),{add:iy,subtract:sy,multiply:zh,divide:ly,negate:uy});function oT(e,t="-"){return e.replace(/\s+/g,t)}function aT(e){const t=oT(e.toString());return sT(iT(t))}function iT(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function sT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function lT(e,t=""){return[t,e].filter(Boolean).join("-")}function uT(e,t){return`var(${e}${t?`, ${t}`:""})`}function cT(e,t=""){return aT(`--${lT(e,t)}`)}function oe(e,t,n){const r=cT(e,n);return{variable:r,reference:uT(r,t)}}function dT(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function fT(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Ih(e){if(e==null)return e;const{unitless:t}=fT(e);return t||typeof e=="number"?`${e}px`:e}var eS=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,qm=e=>Object.fromEntries(Object.entries(e).sort(eS));function cy(e){const t=qm(e);return Object.assign(Object.values(t),t)}function hT(e){const t=Object.keys(qm(e));return new Set(t)}function dy(e){var t;if(!e)return e;e=(t=Ih(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function Fi(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Ih(e)})`),t&&n.push("and",`(max-width: ${Ih(t)})`),n.join(" ")}function pT(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=cy(e),r=Object.entries(e).sort(eS).map(([i,s],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?dy(d):void 0,{_minW:dy(s),breakpoint:i,minW:s,maxW:d,maxWQuery:Fi(null,d),minWQuery:Fi(s),minMaxQuery:Fi(s,d)}}),o=hT(e),a=Array.from(o.values());return{keys:o,normalized:n,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(l=>o.has(l))},asObject:qm(e),asArray:cy(e),details:r,media:[null,...n.map(i=>Fi(i)).slice(1)],toArrayValue(i){if(!Mt(i))throw new Error("toArrayValue: value must be an object");const s=a.map(l=>{var u;return(u=i[l])!=null?u:null});for(;dT(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,l,u)=>{const c=a[u];return c!=null&&l!=null&&(s[c]=l),s},{})}}}var et={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},vr=e=>tS(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Wn=e=>tS(t=>e(t,"~ &"),"[data-peer]",".peer"),tS=(e,...t)=>t.map(e).join(", "),$d={_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, &[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:vr(et.hover),_peerHover:Wn(et.hover),_groupFocus:vr(et.focus),_peerFocus:Wn(et.focus),_groupFocusVisible:vr(et.focusVisible),_peerFocusVisible:Wn(et.focusVisible),_groupActive:vr(et.active),_peerActive:Wn(et.active),_groupDisabled:vr(et.disabled),_peerDisabled:Wn(et.disabled),_groupInvalid:vr(et.invalid),_peerInvalid:Wn(et.invalid),_groupChecked:vr(et.checked),_peerChecked:Wn(et.checked),_groupFocusWithin:vr(et.focusWithin),_peerFocusWithin:Wn(et.focusWithin),_peerPlaceholderShown:Wn(et.placeholderShown),_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]"},mT=Object.keys($d);function fy(e,t){return oe(String(e).replace(/\./g,"-"),void 0,t)}function vT(e,t){let n={};const r={};for(const[o,a]of Object.entries(e)){const{isSemantic:i,value:s}=a,{variable:l,reference:u}=fy(o,t==null?void 0:t.cssVarPrefix);if(!i){if(o.startsWith("space")){const f=o.split("."),[h,...p]=f,m=`${h}.-${p.join(".")}`,x=so.negate(s),v=so.negate(u);r[m]={value:x,var:l,varRef:v}}n[l]=s,r[o]={value:s,var:l,varRef:u};continue}const c=f=>{const p=[String(o).split(".")[0],f].join(".");if(!e[p])return f;const{reference:x}=fy(p,t==null?void 0:t.cssVarPrefix);return x},d=Mt(s)?s:{default:s};n=Kt(n,Object.entries(d).reduce((f,[h,p])=>{var m,x;const v=c(p);if(h==="default")return f[l]=v,f;const g=(x=(m=$d)==null?void 0:m[h])!=null?x:h;return f[g]={[l]:v},f},{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}function gT(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function yT(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var bT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function xT(e){return yT(e,bT)}function ST(e){return e.semanticTokens}function kT(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function wT({tokens:e,semanticTokens:t}){var n,r;const o=Object.entries((n=Lh(e))!=null?n:{}).map(([i,s])=>[i,{isSemantic:!1,value:s}]),a=Object.entries((r=Lh(t,1))!=null?r:{}).map(([i,s])=>[i,{isSemantic:!0,value:s}]);return Object.fromEntries([...o,...a])}function Lh(e,t=1/0){return!Mt(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[r,o])=>(Mt(o)||Array.isArray(o)?Object.entries(Lh(o,t-1)).forEach(([a,i])=>{n[`${r}.${a}`]=i}):n[r]=o,n),{})}function _T(e){var t;const n=kT(e),r=xT(n),o=ST(n),a=wT({tokens:r,semanticTokens:o}),i=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=vT(a,{cssVarPrefix:i});return Object.assign(n,{__cssVars:{...{"--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:s,__breakpoints:pT(n.breakpoints)}),n}var Xm=Kt({},Eu,ie,jC,gc,Yt,UC,ZC,WC,Zx,QC,Zi,Dh,we,rT,nT,JC,eT,HC,tT);Object.assign({},we,Yt,gc,Zx,Zi);var CT=[...Object.keys(Xm),...mT],TT={...Xm,...$d},ET=e=>e in TT,PT=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,a={};for(const i in e){let s=Tn(e[i],t);if(s==null)continue;if(s=Mt(s)&&n(s)?r(s):s,!Array.isArray(s)){a[i]=s;continue}const l=s.slice(0,o.length).length;for(let u=0;u<l;u+=1){const c=o==null?void 0:o[u];if(!c){a[i]=s[u];continue}a[c]=a[c]||{},s[u]!=null&&(a[c][i]=s[u])}}return a};function MT(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const a=e[o];a==="("?(r=!0,n+=a):a===")"?(r=!1,n+=a):a===","&&!r?(t.push(n),n=""):n+=a}return n=n.trim(),n&&t.push(n),t}function AT(e){return/^var\(--.+\)$/.test(e)}var RT=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!AT(t),$T=(e,t)=>{var n,r;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},a=l=>{var u;return(u=o(l))!=null?u:l},[i,s]=MT(t);return t=(r=(n=o(i))!=null?n:a(s))!=null?r:a(t),t};function NT(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(a,i=!1)=>{var s,l,u;const c=Tn(a,r),d=PT(c)(r);let f={};for(let h in d){const p=d[h];let m=Tn(p,r);h in n&&(h=n[h]),RT(h,m)&&(m=$T(r,m));let x=t[h];if(x===!0&&(x={property:h}),Mt(m)){f[h]=(s=f[h])!=null?s:{},f[h]=Kt({},f[h],o(m,!0));continue}let v=(u=(l=x==null?void 0:x.transform)==null?void 0:l.call(x,m,r,c))!=null?u:m;v=x!=null&&x.processResult?o(v,!0):v;const g=Tn(x==null?void 0:x.property,r);if(!i&&(x!=null&&x.static)){const b=Tn(x.static,r);f=Kt({},f,b)}if(g&&Array.isArray(g)){for(const b of g)f[b]=v;continue}if(g){g==="&"&&Mt(v)?f=Kt({},f,v):f[g]=v;continue}if(Mt(v)){f=Kt({},f,v);continue}f[h]=v}return f};return o}var nS=e=>t=>NT({theme:t,pseudos:$d,configs:Xm})(e);function Ce(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function OT(e,t){if(Array.isArray(e))return e;if(Mt(e))return t(e);if(e!=null)return[e]}function FT(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function DT(e){const t=e.__breakpoints;return function(r,o,a,i){var s,l;if(!t)return;const u={},c=OT(a,t.toArrayValue);if(!c)return u;const d=c.length,f=d===1,h=!!r.parts;for(let p=0;p<d;p++){const m=t.details[p],x=t.details[FT(c,p)],v=Fi(m.minW,x==null?void 0:x._minW),g=Tn((s=r[o])==null?void 0:s[c[p]],i);if(g){if(h){(l=r.parts)==null||l.forEach(b=>{Kt(u,{[b]:f?g[b]:{[v]:g[b]}})});continue}if(!h){f?Kt(u,g):u[v]=g;continue}u[v]=g}}return u}}function zT(e){return t=>{var n;const{variant:r,size:o,theme:a}=t,i=DT(a);return Kt({},Tn((n=e.baseStyle)!=null?n:{},t),i(e,"sizes",o,t),i(e,"variants",r,t))}}function Kr(e){return gT(e,["styleConfig","size","variant","colorScheme"])}var IT=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function LT(e){return Mt(e)?IT.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var BT={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},VT=BT,jT={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},UT=jT,WT={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"}},HT=WT,YT={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},GT=YT,qT={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","dark-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"},XT=qT,KT={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"},QT={"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)"},ZT={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},JT={property:KT,easing:QT,duration:ZT},eE=JT,tE={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},nE=tE,rE={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},oE=rE,aE={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:{"3xs":"0.45rem","2xs":"0.625rem",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"}},rS=aE,oS={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"},iE={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",prose:"60ch"},sE={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},lE={...oS,...iE,container:sE},aS=lE,iS={breakpoints:UT,zIndices:VT,radii:GT,blur:nE,colors:HT,...rS,sizes:aS,shadows:XT,space:oS,borders:oE,transition:eE};function de(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){r();for(const d of c)t[d]=l(d);return de(e,t)}function a(...c){for(const d of c)d in t||(t[d]=l(d));return de(e,t)}function i(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const h=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>c}}return{parts:o,toPart:l,extend:a,selectors:i,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var uE=de("accordion").parts("root","container","button","panel").extend("icon"),cE=de("alert").parts("title","description","container").extend("icon","spinner"),dE=de("avatar").parts("label","badge","container").extend("excessLabel","group"),fE=de("breadcrumb").parts("link","item","container").extend("separator");de("button").parts();var hE=de("checkbox").parts("control","icon","container").extend("label");de("progress").parts("track","filledTrack").extend("label");var pE=de("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),mE=de("editable").parts("preview","input","textarea"),vE=de("form").parts("container","requiredIndicator","helperText"),gE=de("formError").parts("text","icon"),yE=de("input").parts("addon","field","element"),bE=de("list").parts("container","item","icon"),xE=de("menu").parts("button","list","item").extend("groupTitle","command","divider"),SE=de("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),kE=de("numberinput").parts("root","field","stepperGroup","stepper");de("pininput").parts("field");var wE=de("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),_E=de("progress").parts("label","filledTrack","track"),CE=de("radio").parts("container","control","label"),TE=de("select").parts("field","icon"),EE=de("slider").parts("container","track","thumb","filledTrack","mark"),PE=de("stat").parts("container","label","helpText","number","icon"),ME=de("switch").parts("container","track","thumb"),AE=de("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),RE=de("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),$E=de("tag").parts("container","label","closeButton"),NE=de("card").parts("container","header","body","footer");function ho(e,t,n){return Math.min(Math.max(e,n),t)}class OE extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Di=OE;function Km(e){if(typeof e!="string")throw new Di(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=jE.test(e)?zE(e):e;const n=IE.exec(t);if(n){const i=Array.from(n).slice(1);return[...i.slice(0,3).map(s=>parseInt(Fs(s,2),16)),parseInt(Fs(i[3]||"f",2),16)/255]}const r=LE.exec(t);if(r){const i=Array.from(r).slice(1);return[...i.slice(0,3).map(s=>parseInt(s,16)),parseInt(i[3]||"ff",16)/255]}const o=BE.exec(t);if(o){const i=Array.from(o).slice(1);return[...i.slice(0,3).map(s=>parseInt(s,10)),parseFloat(i[3]||"1")]}const a=VE.exec(t);if(a){const[i,s,l,u]=Array.from(a).slice(1).map(parseFloat);if(ho(0,100,s)!==s)throw new Di(e);if(ho(0,100,l)!==l)throw new Di(e);return[...UE(i,s,l),Number.isNaN(u)?1:u]}throw new Di(e)}function FE(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const hy=e=>parseInt(e.replace(/_/g,""),36),DE="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=hy(t.substring(0,3)),r=hy(t.substring(3)).toString(16);let o="";for(let a=0;a<6-r.length;a++)o+="0";return e[n]=`${o}${r}`,e},{});function zE(e){const t=e.toLowerCase().trim(),n=DE[FE(t)];if(!n)throw new Di(e);return`#${n}`}const Fs=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),IE=new RegExp(`^#${Fs("([a-f0-9])",3)}([a-f0-9])?$`,"i"),LE=new RegExp(`^#${Fs("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),BE=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Fs(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),VE=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,jE=/^[a-z]+$/i,py=e=>Math.round(e*255),UE=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(py);const o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*(t/100),i=a*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,u=i):o>=3&&o<4?(l=i,u=a):o>=4&&o<5?(s=i,u=a):o>=5&&o<6&&(s=a,u=i);const c=r-a/2,d=s+c,f=l+c,h=u+c;return[d,f,h].map(py)};function WE(e,t,n,r){return`rgba(${ho(0,255,e).toFixed()}, ${ho(0,255,t).toFixed()}, ${ho(0,255,n).toFixed()}, ${parseFloat(ho(0,1,r).toFixed(3))})`}function HE(e,t){const[n,r,o,a]=Km(e);return WE(n,r,o,a-t)}function YE(e){const[t,n,r,o]=Km(e);let a=i=>{const s=ho(0,255,i).toString(16);return s.length===1?`0${s}`:s};return`#${a(t)}${a(n)}${a(r)}${o<1?a(Math.round(o*255)):""}`}function GE(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e}var qE=e=>Object.keys(e).length===0,vt=(e,t,n)=>{const r=GE(e,`colors.${t}`,t);try{return YE(r),r}catch{return n??"#000000"}},XE=e=>{const[t,n,r]=Km(e);return(t*299+n*587+r*114)/1e3},KE=e=>t=>{const n=vt(t,e);return XE(n)<128?"dark":"light"},QE=e=>t=>KE(e)(t)==="dark",Va=(e,t)=>n=>{const r=vt(n,e);return HE(r,1-t)};function my(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${t} 25%, + transparent 25%, + transparent 50%, + ${t} 50%, + ${t} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${e} ${e}`}}var ZE=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function JE(e){const t=ZE();return!e||qE(e)?t:e.string&&e.colors?tP(e.string,e.colors):e.string&&!e.colors?eP(e.string):e.colors&&!e.string?nP(e.colors):t}function eP(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const o=t>>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function tP(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function nP(e){return e[Math.floor(Math.random()*e.length)]}function j(e,t){return n=>n.colorMode==="dark"?t:e}function Qm(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function sS(e){return Mt(e)&&e.reference?e.reference:String(e)}var Nd=(e,...t)=>t.map(sS).join(` ${e} `).replace(/calc/g,""),vy=(...e)=>`calc(${Nd("+",...e)})`,gy=(...e)=>`calc(${Nd("-",...e)})`,Bh=(...e)=>`calc(${Nd("*",...e)})`,yy=(...e)=>`calc(${Nd("/",...e)})`,by=e=>{const t=sS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Bh(t,-1)},Xn=Object.assign(e=>({add:(...t)=>Xn(vy(e,...t)),subtract:(...t)=>Xn(gy(e,...t)),multiply:(...t)=>Xn(Bh(e,...t)),divide:(...t)=>Xn(yy(e,...t)),negate:()=>Xn(by(e)),toString:()=>e.toString()}),{add:vy,subtract:gy,multiply:Bh,divide:yy,negate:by});function rP(e){return!Number.isInteger(parseFloat(e.toString()))}function oP(e,t="-"){return e.replace(/\s+/g,t)}function lS(e){const t=oP(e.toString());return t.includes("\\.")?e:rP(e)?t.replace(".","\\."):e}function aP(e,t=""){return[t,lS(e)].filter(Boolean).join("-")}function iP(e,t){return`var(${lS(e)}${t?`, ${t}`:""})`}function sP(e,t=""){return`--${aP(e,t)}`}function Ye(e,t){const n=sP(e,t==null?void 0:t.prefix);return{variable:n,reference:iP(n,lP(t==null?void 0:t.fallback))}}function lP(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:uP,definePartsStyle:Pu}=Ce(ME.keys),Ji=Ye("switch-track-width"),bo=Ye("switch-track-height"),jf=Ye("switch-track-diff"),cP=Xn.subtract(Ji,bo),Vh=Ye("switch-thumb-x"),Si=Ye("switch-bg"),dP=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ji.reference],height:[bo.reference],transitionProperty:"common",transitionDuration:"fast",[Si.variable]:"colors.gray.300",_dark:{[Si.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Si.variable]:`colors.${t}.500`,_dark:{[Si.variable]:`colors.${t}.200`}},bg:Si.reference}},fP={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[bo.reference],height:[bo.reference],_checked:{transform:`translateX(${Vh.reference})`}},hP=Pu(e=>({container:{[jf.variable]:cP,[Vh.variable]:jf.reference,_rtl:{[Vh.variable]:Xn(jf).negate().toString()}},track:dP(e),thumb:fP})),pP={sm:Pu({container:{[Ji.variable]:"1.375rem",[bo.variable]:"sizes.3"}}),md:Pu({container:{[Ji.variable]:"1.875rem",[bo.variable]:"sizes.4"}}),lg:Pu({container:{[Ji.variable]:"2.875rem",[bo.variable]:"sizes.6"}})},mP=uP({baseStyle:hP,sizes:pP,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:vP,definePartsStyle:_a}=Ce(AE.keys),gP=_a({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"}}),yc={"&[data-is-numeric=true]":{textAlign:"end"}},yP=_a(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...yc},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...yc},caption:{color:j("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),bP=_a(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...yc},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...yc},caption:{color:j("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e)},td:{background:j(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),xP={simple:yP,striped:bP,unstyled:{}},SP={sm:_a({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:_a({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:_a({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},kP=vP({baseStyle:gP,variants:xP,sizes:SP,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),wt=oe("tabs-color"),cn=oe("tabs-bg"),Gl=oe("tabs-border-color"),{defineMultiStyleConfig:wP,definePartsStyle:$n}=Ce(RE.keys),_P=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},CP=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},TP=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},EP={p:4},PP=$n(e=>({root:_P(e),tab:CP(e),tablist:TP(e),tabpanel:EP})),MP={sm:$n({tab:{py:1,px:4,fontSize:"sm"}}),md:$n({tab:{fontSize:"md",py:2,px:4}}),lg:$n({tab:{fontSize:"lg",py:3,px:4}})},AP=$n(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=n==="vertical"?"borderStart":"borderBottom",a=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[wt.variable]:`colors.${t}.600`,_dark:{[wt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[cn.variable]:"colors.gray.200",_dark:{[cn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:wt.reference,bg:cn.reference}}}),RP=$n(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Gl.variable]:"transparent",_selected:{[wt.variable]:`colors.${t}.600`,[Gl.variable]:"colors.white",_dark:{[wt.variable]:`colors.${t}.300`,[Gl.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Gl.reference},color:wt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),$P=$n(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[cn.variable]:"colors.gray.50",_dark:{[cn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[cn.variable]:"colors.white",[wt.variable]:`colors.${t}.600`,_dark:{[cn.variable]:"colors.gray.800",[wt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:wt.reference,bg:cn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),NP=$n(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:vt(n,`${t}.700`),bg:vt(n,`${t}.100`)}}}}),OP=$n(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[wt.variable]:"colors.gray.600",_dark:{[wt.variable]:"inherit"},_selected:{[wt.variable]:"colors.white",[cn.variable]:`colors.${t}.600`,_dark:{[wt.variable]:"colors.gray.800",[cn.variable]:`colors.${t}.300`}},color:wt.reference,bg:cn.reference}}}),FP=$n({}),DP={line:AP,enclosed:RP,"enclosed-colored":$P,"soft-rounded":NP,"solid-rounded":OP,unstyled:FP},zP=wP({baseStyle:PP,sizes:MP,variants:DP,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),IP={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},Ca=oe("badge-bg"),En=oe("badge-color"),LP=e=>{const{colorScheme:t,theme:n}=e,r=Va(`${t}.500`,.6)(n);return{[Ca.variable]:`colors.${t}.500`,[En.variable]:"colors.white",_dark:{[Ca.variable]:r,[En.variable]:"colors.whiteAlpha.800"},bg:Ca.reference,color:En.reference}},BP=e=>{const{colorScheme:t,theme:n}=e,r=Va(`${t}.200`,.16)(n);return{[Ca.variable]:`colors.${t}.100`,[En.variable]:`colors.${t}.800`,_dark:{[Ca.variable]:r,[En.variable]:`colors.${t}.200`},bg:Ca.reference,color:En.reference}},VP=e=>{const{colorScheme:t,theme:n}=e,r=Va(`${t}.200`,.8)(n);return{[En.variable]:`colors.${t}.500`,_dark:{[En.variable]:r},color:En.reference,boxShadow:`inset 0 0 0px 1px ${En.reference}`}},jP={solid:LP,subtle:BP,outline:VP},es={baseStyle:IP,variants:jP,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:UP,definePartsStyle:xo}=Ce($E.keys),WP={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},HP={lineHeight:1.2,overflow:"visible"},YP={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},GP=xo({container:WP,label:HP,closeButton:YP}),qP={sm:xo({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:xo({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:xo({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},XP={subtle:xo(e=>{var t;return{container:(t=es.variants)==null?void 0:t.subtle(e)}}),solid:xo(e=>{var t;return{container:(t=es.variants)==null?void 0:t.solid(e)}}),outline:xo(e=>{var t;return{container:(t=es.variants)==null?void 0:t.outline(e)}})},KP=UP({variants:XP,baseStyle:GP,sizes:qP,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Zn,defineMultiStyleConfig:QP}=Ce(yE.keys),ZP=Zn({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),gr={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"}},JP={lg:Zn({field:gr.lg,addon:gr.lg}),md:Zn({field:gr.md,addon:gr.md}),sm:Zn({field:gr.sm,addon:gr.sm}),xs:Zn({field:gr.xs,addon:gr.xs})};function Zm(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||j("blue.500","blue.300")(e),errorBorderColor:n||j("red.500","red.300")(e)}}var eM=Zn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Zm(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:j("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:vt(t,r),boxShadow:`0 0 0 1px ${vt(t,r)}`},_focusVisible:{zIndex:1,borderColor:vt(t,n),boxShadow:`0 0 0 1px ${vt(t,n)}`}},addon:{border:"1px solid",borderColor:j("inherit","whiteAlpha.50")(e),bg:j("gray.100","whiteAlpha.300")(e)}}}),tM=Zn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Zm(e);return{field:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e),_hover:{bg:j("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:vt(t,r)},_focusVisible:{bg:"transparent",borderColor:vt(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e)}}}),nM=Zn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Zm(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:vt(t,r),boxShadow:`0px 1px 0px 0px ${vt(t,r)}`},_focusVisible:{borderColor:vt(t,n),boxShadow:`0px 1px 0px 0px ${vt(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),rM=Zn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),oM={outline:eM,filled:tM,flushed:nM,unstyled:rM},le=QP({baseStyle:ZP,sizes:JP,variants:oM,defaultProps:{size:"md",variant:"outline"}}),xy,aM={...(xy=le.baseStyle)==null?void 0:xy.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Sy,ky,iM={outline:e=>{var t,n;return(n=(t=le.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=le.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=le.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(ky=(Sy=le.variants)==null?void 0:Sy.unstyled.field)!=null?ky:{}},wy,_y,Cy,Ty,Ey,Py,My,Ay,sM={xs:(_y=(wy=le.sizes)==null?void 0:wy.xs.field)!=null?_y:{},sm:(Ty=(Cy=le.sizes)==null?void 0:Cy.sm.field)!=null?Ty:{},md:(Py=(Ey=le.sizes)==null?void 0:Ey.md.field)!=null?Py:{},lg:(Ay=(My=le.sizes)==null?void 0:My.lg.field)!=null?Ay:{}},lM={baseStyle:aM,sizes:sM,variants:iM,defaultProps:{size:"md",variant:"outline"}},ql=Ye("tooltip-bg"),Uf=Ye("tooltip-fg"),uM=Ye("popper-arrow-bg"),cM={bg:ql.reference,color:Uf.reference,[ql.variable]:"colors.gray.700",[Uf.variable]:"colors.whiteAlpha.900",_dark:{[ql.variable]:"colors.gray.300",[Uf.variable]:"colors.gray.900"},[uM.variable]:ql.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},dM={baseStyle:cM},{defineMultiStyleConfig:fM,definePartsStyle:zi}=Ce(_E.keys),hM=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,a=j(my(),my("1rem","rgba(0,0,0,0.1)"))(e),i=j(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( + to right, + transparent 0%, + ${vt(n,i)} 50%, + transparent 100% + )`;return{...!r&&o&&a,...r?{bgImage:s}:{bgColor:i}}},pM={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},mM=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),vM=e=>({transitionProperty:"common",transitionDuration:"slow",...hM(e)}),gM=zi(e=>({label:pM,filledTrack:vM(e),track:mM(e)})),yM={xs:zi({track:{h:"1"}}),sm:zi({track:{h:"2"}}),md:zi({track:{h:"3"}}),lg:zi({track:{h:"4"}})},bM=fM({sizes:yM,baseStyle:gM,defaultProps:{size:"md",colorScheme:"blue"}}),xM=e=>typeof e=="function";function yt(e,...t){return xM(e)?e(...t):e}var{definePartsStyle:Mu,defineMultiStyleConfig:SM}=Ce(hE.keys),ts=oe("checkbox-size"),kM=e=>{const{colorScheme:t}=e;return{w:ts.reference,h:ts.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e),_hover:{bg:j(`${t}.600`,`${t}.300`)(e),borderColor:j(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:j("gray.200","transparent")(e),bg:j("gray.200","whiteAlpha.300")(e),color:j("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e)},_disabled:{bg:j("gray.100","whiteAlpha.100")(e),borderColor:j("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:j("red.500","red.300")(e)}}},wM={_disabled:{cursor:"not-allowed"}},_M={userSelect:"none",_disabled:{opacity:.4}},CM={transitionProperty:"transform",transitionDuration:"normal"},TM=Mu(e=>({icon:CM,container:wM,control:yt(kM,e),label:_M})),EM={sm:Mu({control:{[ts.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Mu({control:{[ts.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Mu({control:{[ts.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},bc=SM({baseStyle:TM,sizes:EM,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:PM,definePartsStyle:Au}=Ce(CE.keys),MM=e=>{var t;const n=(t=yt(bc.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},AM=Au(e=>{var t,n,r,o;return{label:(n=(t=bc).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=bc).baseStyle)==null?void 0:o.call(r,e).container,control:MM(e)}}),RM={md:Au({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Au({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Au({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},$M=PM({baseStyle:AM,sizes:RM,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:NM,definePartsStyle:OM}=Ce(TE.keys),Xl=oe("select-bg"),Ry,FM={...(Ry=le.baseStyle)==null?void 0:Ry.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Xl.reference,[Xl.variable]:"colors.white",_dark:{[Xl.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Xl.reference}},DM={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},zM=OM({field:FM,icon:DM}),Kl={paddingInlineEnd:"8"},$y,Ny,Oy,Fy,Dy,zy,Iy,Ly,IM={lg:{...($y=le.sizes)==null?void 0:$y.lg,field:{...(Ny=le.sizes)==null?void 0:Ny.lg.field,...Kl}},md:{...(Oy=le.sizes)==null?void 0:Oy.md,field:{...(Fy=le.sizes)==null?void 0:Fy.md.field,...Kl}},sm:{...(Dy=le.sizes)==null?void 0:Dy.sm,field:{...(zy=le.sizes)==null?void 0:zy.sm.field,...Kl}},xs:{...(Iy=le.sizes)==null?void 0:Iy.xs,field:{...(Ly=le.sizes)==null?void 0:Ly.xs.field,...Kl},icon:{insetEnd:"1"}}},LM=NM({baseStyle:zM,sizes:IM,variants:le.variants,defaultProps:le.defaultProps}),Wf=oe("skeleton-start-color"),Hf=oe("skeleton-end-color"),BM={[Wf.variable]:"colors.gray.100",[Hf.variable]:"colors.gray.400",_dark:{[Wf.variable]:"colors.gray.800",[Hf.variable]:"colors.gray.600"},background:Wf.reference,borderColor:Hf.reference,opacity:.7,borderRadius:"sm"},VM={baseStyle:BM},Yf=oe("skip-link-bg"),jM={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Yf.variable]:"colors.white",_dark:{[Yf.variable]:"colors.gray.700"},bg:Yf.reference}},UM={baseStyle:jM},{defineMultiStyleConfig:WM,definePartsStyle:Od}=Ce(EE.keys),Ds=oe("slider-thumb-size"),zs=oe("slider-track-size"),Er=oe("slider-bg"),HM=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Qm({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},YM=e=>({...Qm({orientation:e.orientation,horizontal:{h:zs.reference},vertical:{w:zs.reference}}),overflow:"hidden",borderRadius:"sm",[Er.variable]:"colors.gray.200",_dark:{[Er.variable]:"colors.whiteAlpha.200"},_disabled:{[Er.variable]:"colors.gray.300",_dark:{[Er.variable]:"colors.whiteAlpha.300"}},bg:Er.reference}),GM=e=>{const{orientation:t}=e;return{...Qm({orientation:t,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)"}}}),w:Ds.reference,h:Ds.reference,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"}}},qM=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Er.variable]:`colors.${t}.500`,_dark:{[Er.variable]:`colors.${t}.200`},bg:Er.reference}},XM=Od(e=>({container:HM(e),track:YM(e),thumb:GM(e),filledTrack:qM(e)})),KM=Od({container:{[Ds.variable]:"sizes.4",[zs.variable]:"sizes.1"}}),QM=Od({container:{[Ds.variable]:"sizes.3.5",[zs.variable]:"sizes.1"}}),ZM=Od({container:{[Ds.variable]:"sizes.2.5",[zs.variable]:"sizes.0.5"}}),JM={lg:KM,md:QM,sm:ZM},eA=WM({baseStyle:XM,sizes:JM,defaultProps:{size:"md",colorScheme:"blue"}}),lo=Ye("spinner-size"),tA={width:[lo.reference],height:[lo.reference]},nA={xs:{[lo.variable]:"sizes.3"},sm:{[lo.variable]:"sizes.4"},md:{[lo.variable]:"sizes.6"},lg:{[lo.variable]:"sizes.8"},xl:{[lo.variable]:"sizes.12"}},rA={baseStyle:tA,sizes:nA,defaultProps:{size:"md"}},{defineMultiStyleConfig:oA,definePartsStyle:uS}=Ce(PE.keys),aA={fontWeight:"medium"},iA={opacity:.8,marginBottom:"2"},sA={verticalAlign:"baseline",fontWeight:"semibold"},lA={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},uA=uS({container:{},label:aA,helpText:iA,number:sA,icon:lA}),cA={md:uS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},dA=oA({baseStyle:uA,sizes:cA,defaultProps:{size:"md"}}),Gf=oe("kbd-bg"),fA={[Gf.variable]:"colors.gray.100",_dark:{[Gf.variable]:"colors.whiteAlpha.100"},bg:Gf.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},hA={baseStyle:fA},pA={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},mA={baseStyle:pA},{defineMultiStyleConfig:vA,definePartsStyle:gA}=Ce(bE.keys),yA={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},bA=gA({icon:yA}),xA=vA({baseStyle:bA}),{defineMultiStyleConfig:SA,definePartsStyle:kA}=Ce(xE.keys),xn=oe("menu-bg"),qf=oe("menu-shadow"),wA={[xn.variable]:"#fff",[qf.variable]:"shadows.sm",_dark:{[xn.variable]:"colors.gray.700",[qf.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:xn.reference,boxShadow:qf.reference},_A={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[xn.variable]:"colors.gray.100",_dark:{[xn.variable]:"colors.whiteAlpha.100"}},_active:{[xn.variable]:"colors.gray.200",_dark:{[xn.variable]:"colors.whiteAlpha.200"}},_expanded:{[xn.variable]:"colors.gray.100",_dark:{[xn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:xn.reference},CA={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},TA={opacity:.6},EA={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},PA={transitionProperty:"common",transitionDuration:"normal"},MA=kA({button:PA,list:wA,item:_A,groupTitle:CA,command:TA,divider:EA}),AA=SA({baseStyle:MA}),{defineMultiStyleConfig:RA,definePartsStyle:jh}=Ce(SE.keys),$A={bg:"blackAlpha.600",zIndex:"modal"},NA=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},OA=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:j("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:j("lg","dark-lg")(e)}},FA={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},DA={position:"absolute",top:"2",insetEnd:"3"},zA=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},IA={px:"6",py:"4"},LA=jh(e=>({overlay:$A,dialogContainer:yt(NA,e),dialog:yt(OA,e),header:FA,closeButton:DA,body:yt(zA,e),footer:IA}));function rn(e){return jh(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var BA={xs:rn("xs"),sm:rn("sm"),md:rn("md"),lg:rn("lg"),xl:rn("xl"),"2xl":rn("2xl"),"3xl":rn("3xl"),"4xl":rn("4xl"),"5xl":rn("5xl"),"6xl":rn("6xl"),full:rn("full")},VA=RA({baseStyle:LA,sizes:BA,defaultProps:{size:"md"}}),{defineMultiStyleConfig:jA,definePartsStyle:cS}=Ce(kE.keys),Jm=Ye("number-input-stepper-width"),dS=Ye("number-input-input-padding"),UA=Xn(Jm).add("0.5rem").toString(),Xf=Ye("number-input-bg"),Kf=Ye("number-input-color"),Qf=Ye("number-input-border-color"),WA={[Jm.variable]:"sizes.6",[dS.variable]:UA},HA=e=>{var t,n;return(n=(t=yt(le.baseStyle,e))==null?void 0:t.field)!=null?n:{}},YA={width:Jm.reference},GA={borderStart:"1px solid",borderStartColor:Qf.reference,color:Kf.reference,bg:Xf.reference,[Kf.variable]:"colors.chakra-body-text",[Qf.variable]:"colors.chakra-border-color",_dark:{[Kf.variable]:"colors.whiteAlpha.800",[Qf.variable]:"colors.whiteAlpha.300"},_active:{[Xf.variable]:"colors.gray.200",_dark:{[Xf.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},qA=cS(e=>{var t;return{root:WA,field:(t=yt(HA,e))!=null?t:{},stepperGroup:YA,stepper:GA}});function Ql(e){var t,n,r;const o=(t=le.sizes)==null?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},i=(r=(n=o.field)==null?void 0:n.fontSize)!=null?r:"md",s=rS.fontSizes[i];return cS({field:{...o.field,paddingInlineEnd:dS.reference,verticalAlign:"top"},stepper:{fontSize:Xn(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var XA={xs:Ql("xs"),sm:Ql("sm"),md:Ql("md"),lg:Ql("lg")},KA=jA({baseStyle:qA,sizes:XA,variants:le.variants,defaultProps:le.defaultProps}),By,QA={...(By=le.baseStyle)==null?void 0:By.field,textAlign:"center"},ZA={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"}},Vy,jy,JA={outline:e=>{var t,n,r;return(r=(n=yt((t=le.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=yt((t=le.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=yt((t=le.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(jy=(Vy=le.variants)==null?void 0:Vy.unstyled.field)!=null?jy:{}},eR={baseStyle:QA,sizes:ZA,variants:JA,defaultProps:le.defaultProps},{defineMultiStyleConfig:tR,definePartsStyle:nR}=Ce(wE.keys),Zl=Ye("popper-bg"),rR=Ye("popper-arrow-bg"),Uy=Ye("popper-arrow-shadow-color"),oR={zIndex:10},aR={[Zl.variable]:"colors.white",bg:Zl.reference,[rR.variable]:Zl.reference,[Uy.variable]:"colors.gray.200",_dark:{[Zl.variable]:"colors.gray.700",[Uy.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},iR={px:3,py:2,borderBottomWidth:"1px"},sR={px:3,py:2},lR={px:3,py:2,borderTopWidth:"1px"},uR={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},cR=nR({popper:oR,content:aR,header:iR,body:sR,footer:lR,closeButton:uR}),dR=tR({baseStyle:cR}),{definePartsStyle:Uh,defineMultiStyleConfig:fR}=Ce(pE.keys),Zf=oe("drawer-bg"),Jf=oe("drawer-box-shadow");function Wo(e){return Uh(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var hR={bg:"blackAlpha.600",zIndex:"overlay"},pR={display:"flex",zIndex:"modal",justifyContent:"center"},mR=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Zf.variable]:"colors.white",[Jf.variable]:"shadows.lg",_dark:{[Zf.variable]:"colors.gray.700",[Jf.variable]:"shadows.dark-lg"},bg:Zf.reference,boxShadow:Jf.reference}},vR={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},gR={position:"absolute",top:"2",insetEnd:"3"},yR={px:"6",py:"2",flex:"1",overflow:"auto"},bR={px:"6",py:"4"},xR=Uh(e=>({overlay:hR,dialogContainer:pR,dialog:yt(mR,e),header:vR,closeButton:gR,body:yR,footer:bR})),SR={xs:Wo("xs"),sm:Wo("md"),md:Wo("lg"),lg:Wo("2xl"),xl:Wo("4xl"),full:Wo("full")},kR=fR({baseStyle:xR,sizes:SR,defaultProps:{size:"xs"}}),{definePartsStyle:wR,defineMultiStyleConfig:_R}=Ce(mE.keys),CR={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},TR={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},ER={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},PR=wR({preview:CR,input:TR,textarea:ER}),MR=_R({baseStyle:PR}),{definePartsStyle:AR,defineMultiStyleConfig:RR}=Ce(vE.keys),Ta=oe("form-control-color"),$R={marginStart:"1",[Ta.variable]:"colors.red.500",_dark:{[Ta.variable]:"colors.red.300"},color:Ta.reference},NR={mt:"2",[Ta.variable]:"colors.gray.600",_dark:{[Ta.variable]:"colors.whiteAlpha.600"},color:Ta.reference,lineHeight:"normal",fontSize:"sm"},OR=AR({container:{width:"100%",position:"relative"},requiredIndicator:$R,helperText:NR}),FR=RR({baseStyle:OR}),{definePartsStyle:DR,defineMultiStyleConfig:zR}=Ce(gE.keys),Ea=oe("form-error-color"),IR={[Ea.variable]:"colors.red.500",_dark:{[Ea.variable]:"colors.red.300"},color:Ea.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},LR={marginEnd:"0.5em",[Ea.variable]:"colors.red.500",_dark:{[Ea.variable]:"colors.red.300"},color:Ea.reference},BR=DR({text:IR,icon:LR}),VR=zR({baseStyle:BR}),jR={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},UR={baseStyle:jR},WR={fontFamily:"heading",fontWeight:"bold"},HR={"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}},YR={baseStyle:WR,sizes:HR,defaultProps:{size:"xl"}},{defineMultiStyleConfig:GR,definePartsStyle:qR}=Ce(fE.keys),XR={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},KR=qR({link:XR}),QR=GR({baseStyle:KR}),ZR={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"}}},fS=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:j("inherit","whiteAlpha.900")(e),_hover:{bg:j("gray.100","whiteAlpha.200")(e)},_active:{bg:j("gray.200","whiteAlpha.300")(e)}};const r=Va(`${t}.200`,.12)(n),o=Va(`${t}.200`,.24)(n);return{color:j(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:j(`${t}.50`,r)(e)},_active:{bg:j(`${t}.100`,o)(e)}}},JR=e=>{const{colorScheme:t}=e,n=j("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...yt(fS,e)}},e$={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},t$=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const l=j("gray.100","whiteAlpha.200")(e);return{bg:l,_hover:{bg:j("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:j("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:a=`${n}.600`,activeBg:i=`${n}.700`}=(t=e$[n])!=null?t:{},s=j(r,`${n}.200`)(e);return{bg:s,color:j(o,"gray.800")(e),_hover:{bg:j(a,`${n}.300`)(e),_disabled:{bg:s}},_active:{bg:j(i,`${n}.400`)(e)}}},n$=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:j(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:j(`${t}.700`,`${t}.500`)(e)}}},r$={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},o$={ghost:fS,outline:JR,solid:t$,link:n$,unstyled:r$},a$={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"}},i$={baseStyle:ZR,variants:o$,sizes:a$,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:So,defineMultiStyleConfig:s$}=Ce(NE.keys),xc=oe("card-bg"),nr=oe("card-padding"),hS=oe("card-shadow"),Ru=oe("card-radius"),pS=oe("card-border-width","0"),mS=oe("card-border-color"),l$=So({container:{[xc.variable]:"colors.chakra-body-bg",backgroundColor:xc.reference,boxShadow:hS.reference,borderRadius:Ru.reference,color:"chakra-body-text",borderWidth:pS.reference,borderColor:mS.reference},body:{padding:nr.reference,flex:"1 1 0%"},header:{padding:nr.reference},footer:{padding:nr.reference}}),u$={sm:So({container:{[Ru.variable]:"radii.base",[nr.variable]:"space.3"}}),md:So({container:{[Ru.variable]:"radii.md",[nr.variable]:"space.5"}}),lg:So({container:{[Ru.variable]:"radii.xl",[nr.variable]:"space.7"}})},c$={elevated:So({container:{[hS.variable]:"shadows.base",_dark:{[xc.variable]:"colors.gray.700"}}}),outline:So({container:{[pS.variable]:"1px",[mS.variable]:"colors.chakra-border-color"}}),filled:So({container:{[xc.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[nr.variable]:0},header:{[nr.variable]:0},footer:{[nr.variable]:0}}},d$=s$({baseStyle:l$,variants:c$,sizes:u$,defaultProps:{variant:"elevated",size:"md"}}),ns=Ye("close-button-size"),ki=Ye("close-button-bg"),f$={w:[ns.reference],h:[ns.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[ki.variable]:"colors.blackAlpha.100",_dark:{[ki.variable]:"colors.whiteAlpha.100"}},_active:{[ki.variable]:"colors.blackAlpha.200",_dark:{[ki.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:ki.reference},h$={lg:{[ns.variable]:"sizes.10",fontSize:"md"},md:{[ns.variable]:"sizes.8",fontSize:"xs"},sm:{[ns.variable]:"sizes.6",fontSize:"2xs"}},p$={baseStyle:f$,sizes:h$,defaultProps:{size:"md"}},{variants:m$,defaultProps:v$}=es,g$={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},y$={baseStyle:g$,variants:m$,defaultProps:v$},b$={w:"100%",mx:"auto",maxW:"prose",px:"4"},x$={baseStyle:b$},S$={opacity:.6,borderColor:"inherit"},k$={borderStyle:"solid"},w$={borderStyle:"dashed"},_$={solid:k$,dashed:w$},C$={baseStyle:S$,variants:_$,defaultProps:{variant:"solid"}},{definePartsStyle:T$,defineMultiStyleConfig:E$}=Ce(uE.keys),P$={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},M$={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},A$={pt:"2",px:"4",pb:"5"},R$={fontSize:"1.25em"},$$=T$({container:P$,button:M$,panel:A$,icon:R$}),N$=E$({baseStyle:$$}),{definePartsStyle:ol,defineMultiStyleConfig:O$}=Ce(cE.keys),It=oe("alert-fg"),ur=oe("alert-bg"),F$=ol({container:{bg:ur.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:It.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:It.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function ev(e){const{theme:t,colorScheme:n}=e,r=Va(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var D$=ol(e=>{const{colorScheme:t}=e,n=ev(e);return{container:{[It.variable]:`colors.${t}.500`,[ur.variable]:n.light,_dark:{[It.variable]:`colors.${t}.200`,[ur.variable]:n.dark}}}}),z$=ol(e=>{const{colorScheme:t}=e,n=ev(e);return{container:{[It.variable]:`colors.${t}.500`,[ur.variable]:n.light,_dark:{[It.variable]:`colors.${t}.200`,[ur.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:It.reference}}}),I$=ol(e=>{const{colorScheme:t}=e,n=ev(e);return{container:{[It.variable]:`colors.${t}.500`,[ur.variable]:n.light,_dark:{[It.variable]:`colors.${t}.200`,[ur.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:It.reference}}}),L$=ol(e=>{const{colorScheme:t}=e;return{container:{[It.variable]:"colors.white",[ur.variable]:`colors.${t}.500`,_dark:{[It.variable]:"colors.gray.900",[ur.variable]:`colors.${t}.200`},color:It.reference}}}),B$={subtle:D$,"left-accent":z$,"top-accent":I$,solid:L$},V$=O$({baseStyle:F$,variants:B$,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:vS,defineMultiStyleConfig:j$}=Ce(dE.keys),Pa=oe("avatar-border-color"),e0=oe("avatar-bg"),U$={borderRadius:"full",border:"0.2em solid",[Pa.variable]:"white",_dark:{[Pa.variable]:"colors.gray.800"},borderColor:Pa.reference},W$={[e0.variable]:"colors.gray.200",_dark:{[e0.variable]:"colors.whiteAlpha.400"},bgColor:e0.reference},Wy=oe("avatar-background"),H$=e=>{const{name:t,theme:n}=e,r=t?JE({string:t}):"colors.gray.400",o=QE(r)(n);let a="white";return o||(a="gray.800"),{bg:Wy.reference,"&:not([data-loaded])":{[Wy.variable]:r},color:a,[Pa.variable]:"colors.white",_dark:{[Pa.variable]:"colors.gray.800"},borderColor:Pa.reference,verticalAlign:"top"}},Y$=vS(e=>({badge:yt(U$,e),excessLabel:yt(W$,e),container:yt(H$,e)}));function yr(e){const t=e!=="100%"?aS[e]:void 0;return vS({container:{width:e,height:e,fontSize:`calc(${t??e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${t??e} / 2.5)`,lineHeight:e!=="100%"?t??e:void 0}})}var G$={"2xs":yr(4),xs:yr(6),sm:yr(8),md:yr(12),lg:yr(16),xl:yr(24),"2xl":yr(32),full:yr("100%")},q$=j$({baseStyle:Y$,sizes:G$,defaultProps:{size:"md"}}),X$={Accordion:N$,Alert:V$,Avatar:q$,Badge:es,Breadcrumb:QR,Button:i$,Checkbox:bc,CloseButton:p$,Code:y$,Container:x$,Divider:C$,Drawer:kR,Editable:MR,Form:FR,FormError:VR,FormLabel:UR,Heading:YR,Input:le,Kbd:hA,Link:mA,List:xA,Menu:AA,Modal:VA,NumberInput:KA,PinInput:eR,Popover:dR,Progress:bM,Radio:$M,Select:LM,Skeleton:VM,SkipLink:UM,Slider:eA,Spinner:rA,Stat:dA,Switch:mP,Table:kP,Tabs:zP,Tag:KP,Textarea:lM,Tooltip:dM,Card:d$},gS={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-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},yS={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"}}},bS="ltr",xS={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},tv={semanticTokens:gS,direction:bS,...iS,components:X$,styles:yS,config:xS},K$=tv;({...iS});function Ii(e){return typeof e=="function"}function Q$(...e){return t=>e.reduce((n,r)=>r(n),t)}var Z$=e=>function(...n){let r=[...n],o=n[n.length-1];return LT(o)&&r.length>1?r=r.slice(0,r.length-1):o=e,Q$(...r.map(a=>i=>Ii(a)?a(i):eN(i,a)))(o)},J$=Z$(tv);function eN(...e){return Kt({},...e,SS)}function SS(e,t,n,r){if((Ii(e)||Ii(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const a=Ii(e)?e(...o):e,i=Ii(t)?t(...o):t;return Kt({},a,i,SS)}}function tN(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var nN=tN();function rN(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function oN(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return e===void 0?n:e}var aN=e=>{const t=new WeakMap;return(r,o,a,i)=>{if(typeof r>"u")return e(r,o,a);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(o))return s.get(o);const l=e(r,o,a,i);return s.set(o,l),l}},kS=aN(oN);function wS(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var _S=e=>wS(e,t=>t!=null);function iN(e){return typeof e=="function"}function CS(e,...t){return iN(e)?e(...t):e}function sN(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var lN=typeof Element<"u",uN=typeof Map=="function",cN=typeof Set=="function",dN=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function $u(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!$u(e[r],t[r]))return!1;return!0}var a;if(uN&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!$u(r.value[1],t.get(r.value[0])))return!1;return!0}if(cN&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(dN&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(lN&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!$u(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var fN=function(t,n){try{return $u(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};function TS(e,t={}){var n;const{styleConfig:r,...o}=t,{theme:a,colorMode:i}=kC(),s=e?kS(a,`components.${e}`):void 0,l=r||s,u=Kt({theme:a,colorMode:i},(n=l==null?void 0:l.defaultProps)!=null?n:{},_S(rN(o,["children"]))),c=y.useRef({});if(l){const f=zT(l)(u);fN(c.current,f)||(c.current=f)}return c.current}function zo(e,t={}){return TS(e,t)}function nv(e,t={}){return TS(e,t)}var hN=new Set([...CT,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),pN=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function mN(e){return pN.has(e)||!hN.has(e)}function vN(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function gN(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}var yN=/^((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|playsInline|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)-.*))$/,bN=Nx(function(e){return yN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),xN=bN,SN=function(t){return t!=="theme"},Hy=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?xN:SN},Yy=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},kN=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ix(n,r,o),Z_(function(){return Lx(n,r,o)}),null},wN=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=Yy(t,n,r),l=s||Hy(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,h=1;h<f;h++)d.push(c[h],c[0][h])}var p=Ux(function(m,x,v){var g=u&&m.as||o,b="",k=[],T=m;if(m.theme==null){T={};for(var E in m)T[E]=m[E];T.theme=y.useContext($s)}typeof m.className=="string"?b=H_(x.registered,k,m.className):m.className!=null&&(b=m.className+" ");var P=Hm(d.concat(k),x.registered,T);b+=x.key+"-"+P.name,i!==void 0&&(b+=" "+i);var R=u&&s===void 0?Hy(g):l,V={};for(var F in m)u&&F==="as"||R(F)&&(V[F]=m[F]);return V.className=b,V.ref=v,y.createElement(y.Fragment,null,y.createElement(kN,{cache:x,serialized:P,isStringTag:typeof g=="string"}),y.createElement(g,V))});return p.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(m,x){return e(m,Ao({},n,x,{shouldForwardProp:Yy(p,x,!0)})).apply(void 0,d)},p}},_N=["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"],Sc=wN.bind();_N.forEach(function(e){Sc[e]=Sc(e)});var Gy,CN=(Gy=Sc.default)!=null?Gy:Sc,TN=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:a,...i}=t,s=wS(i,(d,f)=>ET(f)),l=CS(e,t),u=gN({},o,l,_S(s),a),c=nS(u)(t.theme);return r?[c,r]:c};function t0(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=mN);const o=TN({baseStyle:n}),a=CN(e,r)(o);return Dn.forwardRef(function(l,u){const{colorMode:c,forced:d}=Gm();return Dn.createElement(a,{ref:u,"data-theme":d?c:void 0,...l})})}function EN(){const e=new Map;return new Proxy(t0,{apply(t,n,r){return t0(...r)},get(t,n){return e.has(n)||e.set(n,t0(n)),e.get(n)}})}var Y=EN();function fe(e){return y.forwardRef(e)}function ES(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=y.createContext(void 0);o.displayName=r;function a(){var i;const s=y.useContext(o);if(!s&&t){const l=new Error(n);throw l.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,l,a),l}return s}return[o.Provider,a,o]}function PS(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=y.useMemo(()=>_T(n),[n]);return ce(tC,{theme:o,children:[w(PN,{root:t}),r]})}function PN({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return w(Md,{styles:n=>({[t]:n.__cssVars})})}ES({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function MN(e){return ES({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function AN(){const{colorMode:e}=Gm();return w(Md,{styles:t=>{const n=kS(t,"styles.global"),r=CS(n,{theme:t,colorMode:e});return r?nS(r)(t):void 0}})}var MS=y.createContext({getDocument(){return document},getWindow(){return window}});MS.displayName="EnvironmentContext";function AS(e){const{children:t,environment:n,disabled:r}=e,o=y.useRef(null),a=y.useMemo(()=>n||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[n]),i=!r||!n;return ce(MS.Provider,{value:a,children:[t,i&&w("span",{id:"__chakra_env",hidden:!0,ref:o})]})}AS.displayName="EnvironmentProvider";var RN=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetCSS:o=!0,theme:a={},environment:i,cssVarsRoot:s,disableEnvironment:l}=e,u=w(AS,{environment:i,disabled:l,children:t});return w(PS,{theme:a,cssVarsRoot:s,children:ce(Gx,{colorModeManager:n,options:a.config,children:[o?w(oC,{}):w(rC,{}),w(AN,{}),r?w(Hx,{zIndex:r,children:u}):u]})})},$N=(e,t)=>e.find(n=>n.id===t);function qy(e,t){const n=RS(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function RS(e,t){for(const[n,r]of Object.entries(e))if($N(r,t))return n}function NN(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function ON(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:a,left:i}}function FN(e,t=[]){const n=y.useRef(e);return y.useEffect(()=>{n.current=e}),y.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function DN(e,t){const n=FN(e);y.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function Xy(e,t){const n=y.useRef(!1),r=y.useRef(!1);y.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),y.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const rv=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Fd=y.createContext({});function zN(){return y.useContext(Fd).visualElement}const ni=y.createContext(null),Dd=typeof document<"u",kc=Dd?y.useLayoutEffect:y.useEffect,$S=y.createContext({strict:!1});function IN(e,t,n,r){const o=zN(),a=y.useContext($S),i=y.useContext(ni),s=y.useContext(rv).reducedMotion,l=y.useRef();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceId:i?i.id:void 0,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;return kc(()=>{u&&u.render()}),(window.HandoffAppearAnimations?kc:y.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}function ca(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function LN(e,t,n){return y.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ca(n)&&(n.current=r))},[t])}function Is(e){return typeof e=="string"||Array.isArray(e)}function zd(e){return typeof e=="object"&&typeof e.start=="function"}const BN=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Id(e){return zd(e.animate)||BN.some(t=>Is(e[t]))}function NS(e){return Boolean(Id(e)||e.variants)}function VN(e,t){if(Id(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Is(n)?n:void 0,animate:Is(r)?r:void 0}}return e.inherit!==!1?t:{}}function jN(e){const{initial:t,animate:n}=VN(e,y.useContext(Fd));return y.useMemo(()=>({initial:t,animate:n}),[Ky(t),Ky(n)])}function Ky(e){return Array.isArray(e)?e.join(" "):e}const Hn=e=>({isEnabled:t=>e.some(n=>!!t[n])}),Ls={measureLayout:Hn(["layout","layoutId","drag"]),animation:Hn(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Hn(["exit"]),drag:Hn(["drag","dragControls"]),focus:Hn(["whileFocus"]),hover:Hn(["whileHover","onHoverStart","onHoverEnd"]),tap:Hn(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Hn(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Hn(["whileInView","onViewportEnter","onViewportLeave"])};function UN(e){for(const t in e)t==="projectionNodeConstructor"?Ls.projectionNodeConstructor=e[t]:Ls[t].Component=e[t]}function Ld(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let WN=1;function HN(){return Ld(()=>{if(rs.hasEverUpdated)return WN++})}const ov=y.createContext({});class YN extends Dn.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const OS=y.createContext({}),GN=Symbol.for("motionComponentSymbol");function qN({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:o,Component:a}){e&&UN(e);function i(l,u){const c={...y.useContext(rv),...l,layoutId:XN(l)},{isStatic:d}=c;let f=null;const h=jN(l),p=d?void 0:HN(),m=o(l,d);if(!d&&Dd){h.visualElement=IN(a,m,c,t);const x=y.useContext($S).strict,v=y.useContext(OS);h.visualElement&&(f=h.visualElement.loadFeatures(c,x,e,p,n||Ls.projectionNodeConstructor,v))}return y.createElement(YN,{visualElement:h.visualElement,props:c},f,y.createElement(Fd.Provider,{value:h},r(a,l,p,LN(m,h.visualElement,u),m,d,h.visualElement)))}const s=y.forwardRef(i);return s[GN]=a,s}function XN({layoutId:e}){const t=y.useContext(ov).id;return t&&e!==void 0?t+"-"+e:e}function KN(e){function t(r,o={}){return qN(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const QN=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function av(e){return typeof e!="string"||e.includes("-")?!1:!!(QN.indexOf(e)>-1||/[A-Z]/.test(e))}const wc={};function ZN(e){Object.assign(wc,e)}const _c=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ri=new Set(_c);function FS(e,{layout:t,layoutId:n}){return ri.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!wc[e]||e==="opacity")}const Rt=e=>!!(e!=null&&e.getVelocity),JN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eO=(e,t)=>_c.indexOf(e)-_c.indexOf(t);function tO({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,a){let i="";t.sort(eO);for(const s of t)i+=`${JN[s]||s}(${e[s]}) `;return n&&!e.z&&(i+="translateZ(0)"),i=i.trim(),a?i=a(e,o?"":i):r&&o&&(i="none"),i}function DS(e){return e.startsWith("--")}const nO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ja=(e,t,n)=>Math.min(Math.max(n,e),t),Io={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},os={...Io,transform:e=>ja(0,1,e)},Jl={...Io,default:1},as=e=>Math.round(e*1e5)/1e5,Bs=/(-)?([\d]*\.?[\d])+/g,Wh=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rO=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function al(e){return typeof e=="string"}const il=e=>({test:t=>al(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=il("deg"),Nn=il("%"),U=il("px"),oO=il("vh"),aO=il("vw"),Qy={...Nn,parse:e=>Nn.parse(e)/100,transform:e=>Nn.transform(e*100)},Zy={...Io,transform:Math.round},zS={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,radius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,size:U,top:U,right:U,bottom:U,left:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:Jl,scaleX:Jl,scaleY:Jl,scaleZ:Jl,skew:xr,skewX:xr,skewY:xr,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:os,originX:Qy,originY:Qy,originZ:U,zIndex:Zy,fillOpacity:os,strokeOpacity:os,numOctaves:Zy};function iv(e,t,n,r){const{style:o,vars:a,transform:i,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(const f in t){const h=t[f];if(DS(f)){a[f]=h;continue}const p=zS[f],m=nO(h,p);if(ri.has(f)){if(u=!0,i[f]=m,s.push(f),!d)continue;h!==(p.default||0)&&(d=!1)}else f.startsWith("origin")?(c=!0,l[f]=m):o[f]=m}if(t.transform||(u||r?o.transform=tO(e,n,d,r):o.transform&&(o.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:p=0}=l;o.transformOrigin=`${f} ${h} ${p}`}}const sv=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function IS(e,t,n){for(const r in t)!Rt(t[r])&&!FS(r,n)&&(e[r]=t[r])}function iO({transformTemplate:e},t,n){return y.useMemo(()=>{const r=sv();return iv(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function sO(e,t,n){const r=e.style||{},o={};return IS(o,r,e),Object.assign(o,iO(e,t,n)),e.transformValues?e.transformValues(o):o}function lO(e,t,n){const r={},o=sO(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),r.style=o,r}const uO=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],cO=["whileTap","onTap","onTapStart","onTapCancel"],dO=["onPan","onPanStart","onPanSessionStart","onPanEnd"],fO=["whileInView","onViewportEnter","onViewportLeave","viewport"],hO=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","layoutScroll","layoutRoot","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd",...fO,...cO,...uO,...dO]);function Cc(e){return hO.has(e)}let LS=e=>!Cc(e);function pO(e){e&&(LS=t=>t.startsWith("on")?!Cc(t):e(t))}try{pO(require("@emotion/is-prop-valid").default)}catch{}function mO(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(LS(o)||n===!0&&Cc(o)||!t&&!Cc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Jy(e,t,n){return typeof e=="string"?e:U.transform(t+n*e)}function vO(e,t,n){const r=Jy(t,e.x,e.width),o=Jy(n,e.y,e.height);return`${r} ${o}`}const gO={offset:"stroke-dashoffset",array:"stroke-dasharray"},yO={offset:"strokeDashoffset",array:"strokeDasharray"};function bO(e,t,n=1,r=0,o=!0){e.pathLength=1;const a=o?gO:yO;e[a.offset]=U.transform(-r);const i=U.transform(t),s=U.transform(n);e[a.array]=`${i} ${s}`}function lv(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:a,pathSpacing:i=1,pathOffset:s=0,...l},u,c,d){if(iv(e,l,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:p}=e;f.transform&&(p&&(h.transform=f.transform),delete f.transform),p&&(r!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=vO(p,r!==void 0?r:.5,o!==void 0?o:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),a!==void 0&&bO(f,a,i,s,!1)}const BS=()=>({...sv(),attrs:{}}),uv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function xO(e,t,n,r){const o=y.useMemo(()=>{const a=BS();return lv(a,t,{enableHardwareAcceleration:!1},uv(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};IS(a,e.style,e),o.style={...a,...o.style}}return o}function SO(e=!1){return(n,r,o,a,{latestValues:i},s)=>{const u=(av(n)?xO:lO)(r,i,s,n),d={...mO(r,typeof n=="string",e),...u,ref:a},{children:f}=r,h=y.useMemo(()=>Rt(f)?f.get():f,[f]);return o&&(d["data-projection-id"]=o),y.createElement(n,{...d,children:h})}}const cv=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function VS(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const jS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function US(e,t,n,r){VS(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(jS.has(o)?o:cv(o),t.attrs[o])}function dv(e,t){const{style:n}=e,r={};for(const o in n)(Rt(n[o])||t.style&&Rt(t.style[o])||FS(o,e))&&(r[o]=n[o]);return r}function WS(e,t){const n=dv(e,t);for(const r in e)if(Rt(e[r])||Rt(t[r])){const o=r==="x"||r==="y"?"attr"+r.toUpperCase():r;n[o]=e[r]}return n}function fv(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}const Tc=e=>Array.isArray(e),kO=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),wO=e=>Tc(e)?e[e.length-1]||0:e;function Nu(e){const t=Rt(e)?e.get():e;return kO(t)?t.toValue():t}function _O({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,a){const i={latestValues:CO(r,o,a,e),renderState:t()};return n&&(i.mount=s=>n(r,s,i)),i}const HS=e=>(t,n)=>{const r=y.useContext(Fd),o=y.useContext(ni),a=()=>_O(e,t,r,o);return n?a():Ld(a)};function CO(e,t,n,r){const o={},a=r(e,{});for(const f in a)o[f]=Nu(a[f]);let{initial:i,animate:s}=e;const l=Id(e),u=NS(e);t&&u&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||i===!1;const d=c?s:i;return d&&typeof d!="boolean"&&!zd(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const p=fv(e,h);if(!p)return;const{transitionEnd:m,transition:x,...v}=p;for(const g in v){let b=v[g];if(Array.isArray(b)){const k=c?b.length-1:0;b=b[k]}b!==null&&(o[g]=b)}for(const g in m)o[g]=m[g]}),o}const TO={useVisualState:HS({scrapeMotionValuesFromProps:WS,createRenderState:BS,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}lv(n,r,{enableHardwareAcceleration:!1},uv(t.tagName),e.transformTemplate),US(t,n)}})},EO={useVisualState:HS({scrapeMotionValuesFromProps:dv,createRenderState:sv})};function PO(e,{forwardMotionProps:t=!1},n,r,o){return{...av(e)?TO:EO,preloadedFeatures:n,useRender:SO(t),createVisualElement:r,projectionNodeConstructor:o,Component:e}}var xe;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(xe||(xe={}));function Bd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Hh(e,t,n,r){y.useEffect(()=>{const o=e.current;if(n&&o)return Bd(o,t,n,r)},[e,t,n,r])}function MO({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=y.useCallback(()=>{n&&n.setActive(xe.Focus,!0)},[n]),o=y.useCallback(()=>{n&&n.setActive(xe.Focus,!1)},[n]);Hh(t,"focus",e?r:void 0),Hh(t,"blur",e?o:void 0)}const YS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function hv(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const GS=e=>t=>YS(t)&&e(t,hv(t));function Ma(e,t,n,r){return Bd(e,t,GS(n),r)}function Ec(e,t,n,r){return Hh(e,t,n&&GS(n),r)}function qS(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const e2=qS("dragHorizontal"),t2=qS("dragVertical");function XS(e){let t=!1;if(e==="y")t=t2();else if(e==="x")t=e2();else{const n=e2(),r=t2();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function KS(){const e=XS(!0);return e?(e(),!1):!0}function n2(e,t,n,r){return(o,a)=>{o.type==="touch"||KS()||(n&&e.animationState&&e.animationState.setActive(xe.Hover,t),r&&r(o,a))}}function AO({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){Ec(r,"pointerenter",y.useMemo(()=>e||n?n2(r,!0,Boolean(n),e):void 0,[e,Boolean(n),r]),{passive:!e}),Ec(r,"pointerleave",y.useMemo(()=>t||n?n2(r,!1,Boolean(n),t):void 0,[e,Boolean(n),r]),{passive:!t})}const QS=(e,t)=>t?e===t?!0:QS(e,t.parentElement):!1;function pv(e){return y.useEffect(()=>()=>e(),[])}const RO=(e,t)=>n=>t(e(n)),Vd=(...e)=>e.reduce(RO);function $O({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:o,...a}){const i=e||t||n||r,s=y.useRef(!1),l=y.useRef(null),u={passive:!(t||e||n||a.onPointerDown)};function c(){l.current&&l.current(),l.current=null}function d(){return c(),s.current=!1,o.getProps().whileTap&&o.animationState&&o.animationState.setActive(xe.Tap,!1),!KS()}function f(m,x){var v,g,b,k;d()&&(QS(o.current,m.target)?(k=(b=o.getProps()).onTap)===null||k===void 0||k.call(b,m,x):(g=(v=o.getProps()).onTapCancel)===null||g===void 0||g.call(v,m,x))}function h(m,x){var v,g;d()&&((g=(v=o.getProps()).onTapCancel)===null||g===void 0||g.call(v,m,x))}const p=y.useCallback((m,x)=>{var v;if(c(),s.current)return;s.current=!0,l.current=Vd(Ma(window,"pointerup",f,u),Ma(window,"pointercancel",h,u));const g=o.getProps();g.whileTap&&o.animationState&&o.animationState.setActive(xe.Tap,!0),(v=g.onTapStart)===null||v===void 0||v.call(g,m,x)},[Boolean(t),o]);Ec(o,"pointerdown",i?p:void 0,u),pv(c)}const Yh=new WeakMap,n0=new WeakMap,NO=e=>{const t=Yh.get(e.target);t&&t(e)},OO=e=>{e.forEach(NO)};function FO({root:e,...t}){const n=e||document;n0.has(n)||n0.set(n,{});const r=n0.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(OO,{root:e,...t})),r[o]}function DO(e,t,n){const r=FO(t);return Yh.set(e,n),r.observe(e),()=>{Yh.delete(e),r.unobserve(e)}}function zO({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:o={}}){const a=y.useRef({hasEnteredView:!1,isInView:!1});let i=Boolean(t||n||r);o.once&&a.current.hasEnteredView&&(i=!1),(typeof IntersectionObserver>"u"?BO:LO)(i,a.current,e,o)}const IO={some:0,all:1};function LO(e,t,n,{root:r,margin:o,amount:a="some",once:i}){y.useEffect(()=>{if(!e||!n.current)return;const s={root:r==null?void 0:r.current,rootMargin:o,threshold:typeof a=="number"?a:IO[a]},l=u=>{const{isIntersecting:c}=u;if(t.isInView===c||(t.isInView=c,i&&!c&&t.hasEnteredView))return;c&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(xe.InView,c);const d=n.getProps(),f=c?d.onViewportEnter:d.onViewportLeave;f&&f(u)};return DO(n.current,s,l)},[e,r,o,a])}function BO(e,t,n,{fallback:r=!0}){y.useEffect(()=>{!e||!r||requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:o}=n.getProps();o&&o(null),n.animationState&&n.animationState.setActive(xe.InView,!0)})},[e])}const Ar=e=>t=>(e(t),null),VO={inView:Ar(zO),tap:Ar($O),focus:Ar(MO),hover:Ar(AO)};function mv(){const e=y.useContext(ni);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=y.useId();return y.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function jO(){return UO(y.useContext(ni))}function UO(e){return e===null?!0:e.isPresent}function ZS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const WO=e=>/^\-?\d*\.?\d+$/.test(e),HO=e=>/^0[^.\s]+$/.test(e),rr={delta:0,timestamp:0},JS=1/60*1e3,YO=typeof performance<"u"?()=>performance.now():()=>Date.now(),ek=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(YO()),JS);function GO(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&i.add(l),f.indexOf(l)===-1&&(f.push(l),d&&o&&(r=t.length)),l},cancel:l=>{const u=n.indexOf(l);u!==-1&&n.splice(u,1),i.delete(l)},process:l=>{if(o){a=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let u=0;u<r;u++){const c=t[u];c(l),i.has(c)&&(s.schedule(c),e())}o=!1,a&&(a=!1,s.process(l))}};return s}const qO=40;let Gh=!0,Vs=!1,qh=!1;const sl=["read","update","preRender","render","postRender"],jd=sl.reduce((e,t)=>(e[t]=GO(()=>Vs=!0),e),{}),bt=sl.reduce((e,t)=>{const n=jd[t];return e[t]=(r,o=!1,a=!1)=>(Vs||KO(),n.schedule(r,o,a)),e},{}),Ur=sl.reduce((e,t)=>(e[t]=jd[t].cancel,e),{}),r0=sl.reduce((e,t)=>(e[t]=()=>jd[t].process(rr),e),{}),XO=e=>jd[e].process(rr),tk=e=>{Vs=!1,rr.delta=Gh?JS:Math.max(Math.min(e-rr.timestamp,qO),1),rr.timestamp=e,qh=!0,sl.forEach(XO),qh=!1,Vs&&(Gh=!1,ek(tk))},KO=()=>{Vs=!0,Gh=!0,qh||ek(tk)};function vv(e,t){e.indexOf(t)===-1&&e.push(t)}function gv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class yv{constructor(){this.subscriptions=[]}add(t){return vv(this.subscriptions,t),()=>gv(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let a=0;a<o;a++){const i=this.subscriptions[a];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function bv(e,t){return t?e*(1e3/t):0}const QO=e=>!isNaN(parseFloat(e));class ZO{constructor(t,n={}){this.version="8.5.2",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:i}=rr;this.lastUpdated!==i&&(this.timeDelta=a,this.lastUpdated=i,bt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>bt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=QO(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new yv);const r=this.events[t].add(n);return t==="change"?()=>{r(),bt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?bv(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ua(e,t){return new ZO(e,t)}const xv=(e,t)=>n=>Boolean(al(n)&&rO.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),nk=(e,t,n)=>r=>{if(!al(r))return r;const[o,a,i,s]=r.match(Bs);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}},JO=e=>ja(0,255,e),o0={...Io,transform:e=>Math.round(JO(e))},po={test:xv("rgb","red"),parse:nk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+o0.transform(e)+", "+o0.transform(t)+", "+o0.transform(n)+", "+as(os.transform(r))+")"};function eF(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Xh={test:xv("#"),parse:eF,transform:po.transform},da={test:xv("hsl","hue"),parse:nk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Nn.transform(as(t))+", "+Nn.transform(as(n))+", "+as(os.transform(r))+")"},pt={test:e=>po.test(e)||Xh.test(e)||da.test(e),parse:e=>po.test(e)?po.parse(e):da.test(e)?da.parse(e):Xh.parse(e),transform:e=>al(e)?e:e.hasOwnProperty("red")?po.transform(e):da.transform(e)},rk="${c}",ok="${n}";function tF(e){var t,n;return isNaN(e)&&al(e)&&(((t=e.match(Bs))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Wh))===null||n===void 0?void 0:n.length)||0)>0}function Pc(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(Wh);o&&(n=o.length,e=e.replace(Wh,rk),t.push(...o.map(pt.parse)));const a=e.match(Bs);return a&&(r=a.length,e=e.replace(Bs,ok),t.push(...a.map(Io.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function ak(e){return Pc(e).values}function ik(e){const{values:t,numColors:n,tokenised:r}=Pc(e),o=t.length;return a=>{let i=r;for(let s=0;s<o;s++)i=i.replace(s<n?rk:ok,s<n?pt.transform(a[s]):as(a[s]));return i}}const nF=e=>typeof e=="number"?0:e;function rF(e){const t=ak(e);return ik(e)(t.map(nF))}const Wr={test:tF,parse:ak,createTransformer:ik,getAnimatableNone:rF},oF=new Set(["brightness","contrast","saturate","opacity"]);function aF(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Bs)||[];if(!r)return e;const o=n.replace(r,"");let a=oF.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const iF=/([a-z-]*)\(.*?\)/g,Kh={...Wr,getAnimatableNone:e=>{const t=e.match(iF);return t?t.map(aF).join(" "):e}},sF={...zS,color:pt,backgroundColor:pt,outlineColor:pt,fill:pt,stroke:pt,borderColor:pt,borderTopColor:pt,borderRightColor:pt,borderBottomColor:pt,borderLeftColor:pt,filter:Kh,WebkitFilter:Kh},Sv=e=>sF[e];function kv(e,t){var n;let r=Sv(e);return r!==Kh&&(r=Wr),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const sk=e=>t=>t.test(e),lF={test:e=>e==="auto",parse:e=>e},lk=[Io,U,Nn,xr,aO,oO,lF],wi=e=>lk.find(sk(e)),uF=[...lk,pt,Wr],cF=e=>uF.find(sk(e));function dF(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function fF(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ud(e,t,n){const r=e.getProps();return fv(r,t,n!==void 0?n:r.custom,dF(e),fF(e))}function hF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ua(n))}function pF(e,t){const n=Ud(e,t);let{transitionEnd:r={},transition:o={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const i in a){const s=wO(a[i]);hF(e,i,s)}}function mF(e,t,n){var r,o;const a=Object.keys(t).filter(s=>!e.hasValue(s)),i=a.length;if(i)for(let s=0;s<i;s++){const l=a[s],u=t[l];let c=null;Array.isArray(u)&&(c=u[0]),c===null&&(c=(o=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&o!==void 0?o:t[l]),c!=null&&(typeof c=="string"&&(WO(c)||HO(c))?c=parseFloat(c):!cF(c)&&Wr.test(u)&&(c=kv(l,u)),e.addValue(l,Ua(c,{owner:e})),n[l]===void 0&&(n[l]=c),c!==null&&e.setBaseTarget(l,c))}}function vF(e,t){return t?(t[e]||t.default||t).from:void 0}function gF(e,t,n){var r;const o={};for(const a in e){const i=vF(a,t);o[a]=i!==void 0?i:(r=n.getValue(a))===null||r===void 0?void 0:r.get()}return o}function Mc(e){return Boolean(Rt(e)&&e.add)}const yF="framerAppearId",bF="data-"+cv(yF);var xF=function(){},Ac=function(){};const Ou=e=>e*1e3,SF={current:!1},wv=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_v=e=>t=>1-e(1-t),Cv=e=>e*e,kF=_v(Cv),Tv=wv(Cv),De=(e,t,n)=>-n*e+n*t+e;function a0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function wF({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,a=0,i=0;if(!t)o=a=i=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=a0(l,s,e+1/3),a=a0(l,s,e),i=a0(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:r}}const i0=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},_F=[Xh,po,da],CF=e=>_F.find(t=>t.test(e));function r2(e){const t=CF(e);let n=t.parse(e);return t===da&&(n=wF(n)),n}const uk=(e,t)=>{const n=r2(e),r=r2(t),o={...n};return a=>(o.red=i0(n.red,r.red,a),o.green=i0(n.green,r.green,a),o.blue=i0(n.blue,r.blue,a),o.alpha=De(n.alpha,r.alpha,a),po.transform(o))};function ck(e,t){return typeof e=="number"?n=>De(e,t,n):pt.test(e)?uk(e,t):fk(e,t)}const dk=(e,t)=>{const n=[...e],r=n.length,o=e.map((a,i)=>ck(a,t[i]));return a=>{for(let i=0;i<r;i++)n[i]=o[i](a);return n}},TF=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=ck(e[o],t[o]));return o=>{for(const a in r)n[a]=r[a](o);return n}},fk=(e,t)=>{const n=Wr.createTransformer(t),r=Pc(e),o=Pc(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Vd(dk(r.values,o.values),n):i=>`${i>0?t:e}`},Rc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},o2=(e,t)=>n=>De(e,t,n);function EF(e){return typeof e=="number"?o2:typeof e=="string"?pt.test(e)?uk:fk:Array.isArray(e)?dk:typeof e=="object"?TF:o2}function PF(e,t,n){const r=[],o=n||EF(e[0]),a=e.length-1;for(let i=0;i<a;i++){let s=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]:t;s=Vd(l,s)}r.push(s)}return r}function hk(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;Ac(a===t.length),Ac(!r||!Array.isArray(r)||r.length===a-1),e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=PF(t,r,o),s=i.length,l=u=>{let c=0;if(s>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const d=Rc(e[c],e[c+1],u);return i[c](d)};return n?u=>l(ja(e[0],e[a-1],u)):l}const Ev=e=>e,pk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,MF=1e-7,AF=12;function RF(e,t,n,r,o){let a,i,s=0;do i=t+(n-t)/2,a=pk(i,r,o)-e,a>0?n=i:t=i;while(Math.abs(a)>MF&&++s<AF);return i}function mk(e,t,n,r){if(e===t&&n===r)return Ev;const o=a=>RF(a,0,1,e,n);return a=>a===0||a===1?a:pk(o(a),t,r)}const vk=e=>1-Math.sin(Math.acos(e)),Pv=_v(vk),$F=wv(Pv),gk=mk(.33,1.53,.69,.99),Mv=_v(gk),NF=wv(Mv),OF=e=>(e*=2)<1?.5*Mv(e):.5*(2-Math.pow(2,-10*(e-1))),FF={linear:Ev,easeIn:Cv,easeInOut:Tv,easeOut:kF,circIn:vk,circInOut:$F,circOut:Pv,backIn:Mv,backInOut:NF,backOut:gk,anticipate:OF},a2=e=>{if(Array.isArray(e)){Ac(e.length===4);const[t,n,r,o]=e;return mk(t,n,r,o)}else if(typeof e=="string")return FF[e];return e},DF=e=>Array.isArray(e)&&typeof e[0]!="number";function zF(e,t){return e.map(()=>t||Tv).splice(0,e.length-1)}function IF(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function LF(e,t){return e.map(n=>n*t)}function Qh({keyframes:e,ease:t=Tv,times:n,duration:r=300}){e=[...e];const o=DF(t)?t.map(a2):a2(t),a={done:!1,value:e[0]},i=LF(n&&n.length===e.length?n:IF(e),r);function s(){return hk(i,e,{ease:Array.isArray(o)?o:zF(e,o)})}let l=s();return{next:u=>(a.value=l(u),a.done=u>=r,a),flipTarget:()=>{e.reverse(),l=s()}}}const s0=.001,BF=.01,i2=10,VF=.05,jF=1;function UF({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;xF(e<=i2*1e3);let i=1-t;i=ja(VF,jF,i),e=ja(BF,i2,e/1e3),i<1?(o=u=>{const c=u*i,d=c*e,f=c-n,h=Zh(u,i),p=Math.exp(-d);return s0-f/h*p},a=u=>{const d=u*i*e,f=d*n+n,h=Math.pow(i,2)*Math.pow(u,2)*e,p=Math.exp(-d),m=Zh(Math.pow(u,2),i);return(-o(u)+s0>0?-1:1)*((f-h)*p)/m}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-s0+c*d},a=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const s=5/e,l=HF(o,a,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:i*2*Math.sqrt(r*u),duration:e}}}const WF=12;function HF(e,t,n){let r=n;for(let o=1;o<WF;o++)r=r-e(r)/t(r);return r}function Zh(e,t){return e*Math.sqrt(1-t*t)}const YF=["duration","bounce"],GF=["stiffness","damping","mass"];function s2(e,t){return t.some(n=>e[n]!==void 0)}function qF(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!s2(e,GF)&&s2(e,YF)){const n=UF(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}const XF=5;function yk({keyframes:e,restDelta:t,restSpeed:n,...r}){let o=e[0],a=e[e.length-1];const i={done:!1,value:o},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=qF(r);let h=KF,p=c?-(c/1e3):0;const m=l/(2*Math.sqrt(s*u));function x(){const v=a-o,g=Math.sqrt(s/u)/1e3,b=Math.abs(v)<5;if(n||(n=b?.01:2),t||(t=b?.005:.5),m<1){const k=Zh(g,m);h=T=>{const E=Math.exp(-m*g*T);return a-E*((p+m*g*v)/k*Math.sin(k*T)+v*Math.cos(k*T))}}else if(m===1)h=k=>a-Math.exp(-g*k)*(v+(p+g*v)*k);else{const k=g*Math.sqrt(m*m-1);h=T=>{const E=Math.exp(-m*g*T),P=Math.min(k*T,300);return a-E*((p+m*g*v)*Math.sinh(P)+k*v*Math.cosh(P))/k}}}return x(),{next:v=>{const g=h(v);if(f)i.done=v>=d;else{let b=p;if(v!==0)if(m<1){const E=Math.max(0,v-XF);b=bv(g-h(E),v-E)}else b=0;const k=Math.abs(b)<=n,T=Math.abs(a-g)<=t;i.done=k&&T}return i.value=i.done?a:g,i},flipTarget:()=>{p=-p,[o,a]=[a,o],x()}}}yk.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const KF=e=>0;function QF({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i=e[0],s={done:!1,value:i};let l=n*t;const u=i+l,c=a===void 0?u:a(u);return c!==u&&(l=c-i),{next:d=>{const f=-l*Math.exp(-d/r);return s.done=!(f>o||f<-o),s.value=s.done?c:c+f,s},flipTarget:()=>{}}}const ZF={decay:QF,keyframes:Qh,tween:Qh,spring:yk};function bk(e,t,n=0){return e-t-n}function JF(e,t=0,n=0,r=!0){return r?bk(t+-e,t,n):t-(e-t)+n}function eD(e,t,n,r){return r?e>=t+n:e<=-n}const tD=e=>{const t=({delta:n})=>e(n);return{start:()=>bt.update(t,!0),stop:()=>Ur.update(t)}};function $c({duration:e,driver:t=tD,elapsed:n=0,repeat:r=0,repeatType:o="loop",repeatDelay:a=0,keyframes:i,autoplay:s=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:d,onUpdate:f,type:h="keyframes",...p}){var m,x;const v=n;let g,b=0,k=e,T=!1,E=!0,P;const R=ZF[i.length>2?"keyframes":h]||Qh,V=i[0],F=i[i.length-1];let D={done:!1,value:V};!((x=(m=R).needsInterpolation)===null||x===void 0)&&x.call(m,V,F)&&(P=hk([0,100],[V,F],{clamp:!1}),i=[0,100]);const G=R({...p,duration:e,keyframes:i});function X(){b++,o==="reverse"?(E=b%2===0,n=JF(n,k,a,E)):(n=bk(n,k,a),o==="mirror"&&G.flipTarget()),T=!1,d&&d()}function Ae(){g&&g.stop(),c&&c()}function ae(ge){E||(ge=-ge),n+=ge,T||(D=G.next(Math.max(0,n)),P&&(D.value=P(D.value)),T=E?D.done:n<=0),f&&f(D.value),T&&(b===0&&(k=k!==void 0?k:n),b<r?eD(n,k,a,E)&&X():Ae())}function Oe(){l&&l(),g=t(ae),g.start()}return s&&Oe(),{stop:()=>{u&&u(),g&&g.stop()},set currentTime(ge){n=v,ae(ge)},sample:ge=>{n=v;const O=e&&typeof e=="number"?Math.max(e*.5,50):50;let B=0;for(ae(0);B<=ge;){const W=ge-B;ae(Math.min(W,O)),B+=O}return D}}}function nD(e){return!e||Array.isArray(e)||typeof e=="string"&&xk[e]}const Li=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,xk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Li([0,.65,.55,1]),circOut:Li([.55,0,1,.45]),backIn:Li([.31,.01,.66,-.59]),backOut:Li([.33,1.53,.69,.99])};function rD(e){if(e)return Array.isArray(e)?Li(e):xk[e]}function oD(e,t,n,{delay:r=0,duration:o,repeat:a=0,repeatType:i="loop",ease:s,times:l}={}){return e.animate({[t]:n,offset:l},{delay:r,duration:o,easing:rD(s),fill:"both",iterations:a+1,direction:i==="reverse"?"alternate":"normal"})}const l2={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},l0={},Sk={};for(const e in l2)Sk[e]=()=>(l0[e]===void 0&&(l0[e]=l2[e]()),l0[e]);function aD(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const iD=new Set(["opacity"]),eu=10;function sD(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Sk.waapi()&&iD.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0))return!1;let{keyframes:i,duration:s=300,elapsed:l=0,ease:u}=o;if(o.type==="spring"||!nD(o.ease)){if(o.repeat===1/0)return;const d=$c({...o,elapsed:0});let f={done:!1,value:i[0]};const h=[];let p=0;for(;!f.done&&p<2e4;)f=d.sample(p),h.push(f.value),p+=eu;i=h,s=p-eu,u="linear"}const c=oD(e.owner.current,t,i,{...o,delay:-l,duration:s,ease:u});return c.onfinish=()=>{e.set(aD(i,o)),r&&r()},{get currentTime(){return c.currentTime||0},set currentTime(d){c.currentTime=d},stop:()=>{const{currentTime:d}=c;if(d){const f=$c({...o,autoplay:!1});e.setWithVelocity(f.sample(d-eu).value,f.sample(d).value,eu)}bt.update(()=>c.cancel())}}}function kk(e,t){const n=performance.now(),r=({timestamp:o})=>{const a=o-n;a>=t&&(Ur.read(r),e(a-t))};return bt.read(r,!0),()=>Ur.read(r)}function lD({keyframes:e,elapsed:t,onUpdate:n,onComplete:r}){const o=()=>{n&&n(e[e.length-1]),r&&r()};return t?{stop:kk(o,-t)}:o()}function uD({keyframes:e,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){const p=e[0];let m;function x(k){return n!==void 0&&k<n||r!==void 0&&k>r}function v(k){return n===void 0?r:r===void 0||Math.abs(n-k)<Math.abs(r-k)?n:r}function g(k){m==null||m.stop(),m=$c({keyframes:[0,1],velocity:0,...k,driver:c,onUpdate:T=>{var E;d==null||d(T),(E=k.onUpdate)===null||E===void 0||E.call(k,T)},onComplete:f,onStop:h})}function b(k){g({type:"spring",stiffness:i,damping:s,restDelta:l,...k})}if(x(p))b({velocity:t,keyframes:[p,v(p)]});else{let k=o*t+p;typeof u<"u"&&(k=u(k));const T=v(k),E=T===n?-1:1;let P,R;const V=F=>{P=R,R=F,t=bv(F-P,rr.delta),(E===1&&F>T||E===-1&&F<T)&&b({keyframes:[F,T],velocity:t})};g({type:"decay",keyframes:[p,0],velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:u,onUpdate:x(k)?V:void 0})}return{stop:()=>m==null?void 0:m.stop()}}const to=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),tu=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),u0=()=>({type:"keyframes",ease:"linear",duration:.3}),cD={type:"keyframes",duration:.8},u2={x:to,y:to,z:to,rotate:to,rotateX:to,rotateY:to,rotateZ:to,scaleX:tu,scaleY:tu,scale:tu,opacity:u0,backgroundColor:u0,color:u0,default:tu},dD=(e,{keyframes:t})=>t.length>2?cD:(u2[e]||u2.default)(t[1]),Jh=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Wr.test(t)&&!t.startsWith("url("));function fD({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:i,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function c2(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function d2(e){return typeof e=="number"?0:kv("",e)}function wk(e,t){return e[t]||e.default||e}function hD(e,t,n,r){const o=Jh(t,n);let a=r.from!==void 0?r.from:e.get();return a==="none"&&o&&typeof n=="string"?a=kv(t,n):c2(a)&&typeof n=="string"?a=d2(n):!Array.isArray(n)&&c2(n)&&typeof a=="string"&&(n=d2(a)),Array.isArray(n)?(n[0]===null&&(n[0]=a),n):[a,n]}const Av=(e,t,n,r={})=>o=>{const a=wk(r,e)||{},i=a.delay||r.delay||0;let{elapsed:s=0}=r;s=s-Ou(i);const l=hD(t,e,n,a),u=l[0],c=l[l.length-1],d=Jh(e,u),f=Jh(e,c);let h={keyframes:l,velocity:t.getVelocity(),...a,elapsed:s,onUpdate:x=>{t.set(x),a.onUpdate&&a.onUpdate(x)},onComplete:()=>{o(),a.onComplete&&a.onComplete()}};if(!d||!f||SF.current||a.type===!1)return lD(h);if(a.type==="inertia")return uD(h);fD(a)||(h={...h,...dD(e,h)}),h.duration&&(h.duration=Ou(h.duration)),h.repeatDelay&&(h.repeatDelay=Ou(h.repeatDelay));const p=t.owner,m=p&&p.current;if(p&&m instanceof HTMLElement&&!(p!=null&&p.getProps().onUpdate)){const x=sD(t,e,h);if(x)return x}return $c(h)};function pD(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(a=>ep(e,a,n));r=Promise.all(o)}else if(typeof t=="string")r=ep(e,t,n);else{const o=typeof t=="function"?Ud(e,t,n.custom):t;r=_k(e,o,n)}return r.then(()=>e.notify("AnimationComplete",t))}function ep(e,t,n={}){var r;const o=Ud(e,t,n.custom);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const i=o?()=>_k(e,o,n):()=>Promise.resolve(),s=!((r=e.variantChildren)===null||r===void 0)&&r.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=a;return mD(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[u,c]=l==="beforeChildren"?[i,s]:[s,i];return u().then(c)}else return Promise.all([i(),s(n.delay)])}function _k(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var a;let{transition:i=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");r&&(i=r);const c=[],d=o&&((a=e.animationState)===null||a===void 0?void 0:a.getState()[o]);for(const f in l){const h=e.getValue(f),p=l[f];if(!h||p===void 0||d&&gD(d,f))continue;const m={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!h.hasAnimated){const v=e.getProps()[bF];v&&(m.elapsed=window.HandoffAppearAnimations(v,f,h,bt))}let x=h.start(Av(f,h,p,e.shouldReduceMotion&&ri.has(f)?{type:!1}:m));Mc(u)&&(u.add(f),x=x.then(()=>u.remove(f))),c.push(x)}return Promise.all(c).then(()=>{s&&pF(e,s)})}function mD(e,t,n=0,r=0,o=1,a){const i=[],s=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(vD).forEach((u,c)=>{u.notify("AnimationStart",t),i.push(ep(u,t,{...a,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(i)}function vD(e,t){return e.sortNodePosition(t)}function gD({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const Rv=[xe.Animate,xe.InView,xe.Focus,xe.Hover,xe.Tap,xe.Drag,xe.Exit],yD=[...Rv].reverse(),bD=Rv.length;function xD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>pD(e,n,r)))}function SD(e){let t=xD(e);const n=wD();let r=!0;const o=(l,u)=>{const c=Ud(e,u);if(c){const{transition:d,transitionEnd:f,...h}=c;l={...l,...h,...f}}return l};function a(l){t=l(e)}function i(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let p={},m=1/0;for(let v=0;v<bD;v++){const g=yD[v],b=n[g],k=c[g]!==void 0?c[g]:d[g],T=Is(k),E=g===u?b.isActive:null;E===!1&&(m=v);let P=k===d[g]&&k!==c[g]&&T;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),b.protectedKeys={...p},!b.isActive&&E===null||!k&&!b.prevProp||zd(k)||typeof k=="boolean")continue;const R=kD(b.prevProp,k);let V=R||g===u&&b.isActive&&!P&&T||v>m&&T;const F=Array.isArray(k)?k:[k];let D=F.reduce(o,{});E===!1&&(D={});const{prevResolvedValues:G={}}=b,X={...G,...D},Ae=ae=>{V=!0,h.delete(ae),b.needsAnimating[ae]=!0};for(const ae in X){const Oe=D[ae],ge=G[ae];p.hasOwnProperty(ae)||(Oe!==ge?Tc(Oe)&&Tc(ge)?!ZS(Oe,ge)||R?Ae(ae):b.protectedKeys[ae]=!0:Oe!==void 0?Ae(ae):h.add(ae):Oe!==void 0&&h.has(ae)?Ae(ae):b.protectedKeys[ae]=!0)}b.prevProp=k,b.prevResolvedValues=D,b.isActive&&(p={...p,...D}),r&&e.blockInitialAnimation&&(V=!1),V&&!P&&f.push(...F.map(ae=>({animation:ae,options:{type:g,...l}})))}if(h.size){const v={};h.forEach(g=>{const b=e.getBaseTarget(g);b!==void 0&&(v[g]=b)}),f.push({animation:v})}let x=Boolean(f.length);return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(f):Promise.resolve()}function s(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const f=i(c,l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:i,setActive:s,setAnimateFunction:a,getState:()=>n}}function kD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ZS(t,e):!1}function no(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wD(){return{[xe.Animate]:no(!0),[xe.InView]:no(),[xe.Hover]:no(),[xe.Tap]:no(),[xe.Drag]:no(),[xe.Focus]:no(),[xe.Exit]:no()}}const _D={animation:Ar(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=SD(e)),zd(t)&&y.useEffect(()=>t.subscribe(e),[t])}),exit:Ar(e=>{const{custom:t,visualElement:n}=e,[r,o]=mv(),a=y.useContext(ni);y.useEffect(()=>{n.isPresent=r;const i=n.animationState&&n.animationState.setActive(xe.Exit,!r,{custom:a&&a.custom||t});i&&!r&&i.then(o)},[r])})},f2=(e,t)=>Math.abs(e-t);function CD(e,t){const n=f2(e.x,t.x),r=f2(e.y,t.y);return Math.sqrt(n**2+r**2)}class Ck{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=d0(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=CD(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:h}=rr;this.history.push({...f,timestamp:h});const{onStart:p,onMove:m}=this.handlers;c||(p&&p(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=c0(c,this.transformPagePoint),bt.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,h=d0(u.type==="pointercancel"?this.lastMoveEventInfo:c0(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,h),f&&f(u,h)},!YS(t))return;this.handlers=n,this.transformPagePoint=r;const o=hv(t),a=c0(o,this.transformPagePoint),{point:i}=a,{timestamp:s}=rr;this.history=[{...i,timestamp:s}];const{onSessionStart:l}=n;l&&l(t,d0(a,this.history)),this.removeListeners=Vd(Ma(window,"pointermove",this.handlePointerMove),Ma(window,"pointerup",this.handlePointerUp),Ma(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ur.update(this.updatePoint)}}function c0(e,t){return t?{point:t(e.point)}:e}function h2(e,t){return{x:e.x-t.x,y:e.y-t.y}}function d0({point:e},t){return{point:e,delta:h2(e,Tk(t)),offset:h2(e,TD(t)),velocity:ED(t,.1)}}function TD(e){return e[0]}function Tk(e){return e[e.length-1]}function ED(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Tk(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ou(t)));)n--;if(!r)return{x:0,y:0};const a=(o.timestamp-r.timestamp)/1e3;if(a===0)return{x:0,y:0};const i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Bt(e){return e.max-e.min}function tp(e,t=0,n=.01){return Math.abs(e-t)<=n}function p2(e,t,n,r=.5){e.origin=r,e.originPoint=De(t.min,t.max,e.origin),e.scale=Bt(n)/Bt(t),(tp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=De(n.min,n.max,e.origin)-e.originPoint,(tp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function is(e,t,n,r){p2(e.x,t.x,n.x,r==null?void 0:r.originX),p2(e.y,t.y,n.y,r==null?void 0:r.originY)}function m2(e,t,n){e.min=n.min+t.min,e.max=e.min+Bt(t)}function PD(e,t,n){m2(e.x,t.x,n.x),m2(e.y,t.y,n.y)}function v2(e,t,n){e.min=t.min-n.min,e.max=e.min+Bt(t)}function ss(e,t,n){v2(e.x,t.x,n.x),v2(e.y,t.y,n.y)}function MD(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?De(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?De(n,e,r.max):Math.min(e,n)),e}function g2(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function AD(e,{top:t,left:n,bottom:r,right:o}){return{x:g2(e.x,n,o),y:g2(e.y,t,r)}}function y2(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function RD(e,t){return{x:y2(e.x,t.x),y:y2(e.y,t.y)}}function $D(e,t){let n=.5;const r=Bt(e),o=Bt(t);return o>r?n=Rc(t.min,t.max-r,e.min):r>o&&(n=Rc(e.min,e.max-o,t.min)),ja(0,1,n)}function ND(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const np=.35;function OD(e=np){return e===!1?e=0:e===!0&&(e=np),{x:b2(e,"left","right"),y:b2(e,"top","bottom")}}function b2(e,t,n){return{min:x2(e,t),max:x2(e,n)}}function x2(e,t){return typeof e=="number"?e:e[t]||0}const S2=()=>({translate:0,scale:1,origin:0,originPoint:0}),ls=()=>({x:S2(),y:S2()}),k2=()=>({min:0,max:0}),Ve=()=>({x:k2(),y:k2()});function bn(e){return[e("x"),e("y")]}function Ek({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function FD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function DD(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function f0(e){return e===void 0||e===1}function rp({scale:e,scaleX:t,scaleY:n}){return!f0(e)||!f0(t)||!f0(n)}function ao(e){return rp(e)||Pk(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Pk(e){return w2(e.x)||w2(e.y)}function w2(e){return e&&e!=="0%"}function Nc(e,t,n){const r=e-n,o=t*r;return n+o}function _2(e,t,n,r,o){return o!==void 0&&(e=Nc(e,o,r)),Nc(e,n,r)+t}function op(e,t=0,n=1,r,o){e.min=_2(e.min,t,n,r,o),e.max=_2(e.max,t,n,r,o)}function Mk(e,{x:t,y:n}){op(e.x,t.translate,t.scale,t.originPoint),op(e.y,n.translate,n.scale,n.originPoint)}function zD(e,t,n,r=!1){var o,a;const i=n.length;if(!i)return;t.x=t.y=1;let s,l;for(let u=0;u<i;u++)s=n[u],l=s.projectionDelta,((a=(o=s.instance)===null||o===void 0?void 0:o.style)===null||a===void 0?void 0:a.display)!=="contents"&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&fa(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Mk(e,l)),r&&ao(s.latestValues)&&fa(e,s.latestValues));t.x=C2(t.x),t.y=C2(t.y)}function C2(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function _r(e,t){e.min=e.min+t,e.max=e.max+t}function T2(e,t,[n,r,o]){const a=t[o]!==void 0?t[o]:.5,i=De(e.min,e.max,a);op(e,t[n],t[r],i,t.scale)}const ID=["x","scaleX","originX"],LD=["y","scaleY","originY"];function fa(e,t){T2(e.x,t,ID),T2(e.y,t,LD)}function Ak(e,t){return Ek(DD(e.getBoundingClientRect(),t))}function BD(e,t,n){const r=Ak(e,n),{scroll:o}=t;return o&&(_r(r.x,o.offset.x),_r(r.y,o.offset.y)),r}const VD=new WeakMap;class jD{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ve(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(this.visualElement.isPresent===!1)return;const r=s=>{this.stopAnimation(),n&&this.snapToCursor(hv(s,"page").point)},o=(s,l)=>{var u;const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=XS(c),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),bn(h=>{var p,m;let x=this.getAxisMotionValue(h).get()||0;if(Nn.test(x)){const v=(m=(p=this.visualElement.projection)===null||p===void 0?void 0:p.layout)===null||m===void 0?void 0:m.layoutBox[h];v&&(x=Bt(v)*(parseFloat(x)/100))}this.originPoint[h]=x}),f==null||f(s,l),(u=this.visualElement.animationState)===null||u===void 0||u.setActive(xe.Drag,!0))},a=(s,l)=>{const{dragPropagation:u,dragDirectionLock:c,onDirectionLock:d,onDrag:f}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:h}=l;if(c&&this.currentDirection===null){this.currentDirection=UD(h),this.currentDirection!==null&&(d==null||d(this.currentDirection));return}this.updateAxis("x",l.point,h),this.updateAxis("y",l.point,h),this.visualElement.render(),f==null||f(s,l)},i=(s,l)=>this.stop(s,l);this.panSession=new Ck(t,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:i},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a==null||a(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(xe.Drag,!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!nu(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=MD(i,this.constraints[t],this.elastic[t])),a.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;t&&ca(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=AD(r.layoutBox,t):this.constraints=!1,this.elastic=OD(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&bn(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=ND(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ca(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=BD(r,o.root,this.visualElement.getTransformPagePoint());let i=RD(o.layout.layoutBox,a);if(n){const s=n(FD(i));this.hasMutatedConstraints=!!s,s&&(i=Ek(s))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=bn(c=>{if(!nu(c,n,this.currentDirection))return;let d=(l==null?void 0:l[c])||{};i&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,p={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Av(t,r,0,n))}stopAnimation(){bn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n;const r="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[r];return o||this.visualElement.getValue(t,((n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])||0)}snapToCursor(t){bn(n=>{const{drag:r}=this.getProps();if(!nu(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:s}=o.layout.layoutBox[n];a.set(t[n]-De(i,s,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!ca(r)||!o||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};bn(s=>{const l=this.getAxisMotionValue(s);if(l){const u=l.get();a[s]=$D({min:u,max:u},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),bn(s=>{if(!nu(s,n,null))return;const l=this.getAxisMotionValue(s),{min:u,max:c}=this.constraints[s];l.set(De(u,c,a[s]))})}addListeners(){var t;if(!this.visualElement.current)return;VD.set(this.visualElement,this);const n=this.visualElement.current,r=Ma(n,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),o=()=>{const{dragConstraints:u}=this.getProps();ca(u)&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",o);a&&!a.layout&&((t=a.root)===null||t===void 0||t.updateScroll(),a.updateLayout()),o();const s=Bd(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(bn(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{s(),r(),i(),l==null||l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:i=np,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:a,dragElastic:i,dragMomentum:s}}}function nu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function UD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function WD(e){const{dragControls:t,visualElement:n}=e,r=Ld(()=>new jD(n));y.useEffect(()=>t&&t.subscribe(r),[r,t]),y.useEffect(()=>r.addListeners(),[r])}function HD({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:o}){const a=e||t||n||r,i=y.useRef(null),{transformPagePoint:s}=y.useContext(rv),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(c,d)=>{i.current=null,n&&n(c,d)}};y.useEffect(()=>{i.current!==null&&i.current.updateHandlers(l)});function u(c){i.current=new Ck(c,l,{transformPagePoint:s})}Ec(o,"pointerdown",a&&u),pv(()=>i.current&&i.current.end())}const YD={pan:Ar(HD),drag:Ar(WD)};function ap(e){return typeof e=="string"&&e.startsWith("var(--")}const Rk=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function GD(e){const t=Rk.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function ip(e,t,n=1){const[r,o]=GD(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);return a?a.trim():ap(o)?ip(o,t,n+1):o}function qD(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const a=o.get();if(!ap(a))return;const i=ip(a,r);i&&o.set(i)});for(const o in t){const a=t[o];if(!ap(a))continue;const i=ip(a,r);i&&(t[o]=i,n&&n[o]===void 0&&(n[o]=a))}return{target:t,transitionEnd:n}}const XD=new Set(["width","height","top","left","right","bottom","x","y"]),$k=e=>XD.has(e),KD=e=>Object.keys(e).some($k),E2=e=>e===Io||e===U;var P2;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(P2||(P2={}));const M2=(e,t)=>parseFloat(e.split(", ")[t]),A2=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return M2(o[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?M2(a[1],e):0}},QD=new Set(["x","y","z"]),ZD=_c.filter(e=>!QD.has(e));function JD(e){const t=[];return ZD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const R2={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:A2(4,13),y:A2(5,14)},ez=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,a=getComputedStyle(o),{display:i}=a,s={};i==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{s[u]=R2[u](r,a)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=R2[u](l,a)}),e},tz=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter($k);let a=[],i=!1;const s=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=wi(c);const f=t[l];let h;if(Tc(f)){const p=f.length,m=f[0]===null?1:0;c=f[m],d=wi(c);for(let x=m;x<p;x++)h?Ac(wi(f[x])===h):h=wi(f[x])}else h=wi(f);if(d!==h)if(E2(d)&&E2(h)){const p=u.get();typeof p=="string"&&u.set(parseFloat(p)),typeof f=="string"?t[l]=parseFloat(f):Array.isArray(f)&&h===U&&(t[l]=f.map(parseFloat))}else d!=null&&d.transform&&(h!=null&&h.transform)&&(c===0||f===0)?c===0?u.set(h.transform(c)):t[l]=d.transform(f):(i||(a=JD(e),i=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(f))}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,u=ez(t,e,s);return a.length&&a.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Dd&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function nz(e,t,n,r){return KD(t)?tz(e,t,n,r):{target:t,transitionEnd:r}}const rz=(e,t,n,r)=>{const o=qD(e,t,r);return t=o.target,r=o.transitionEnd,nz(e,t,n,r)},sp={current:null},Nk={current:!1};function oz(){if(Nk.current=!0,!!Dd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sp.current=e.matches;e.addListener(t),t()}else sp.current=!1}function az(e,t,n){const{willChange:r}=t;for(const o in t){const a=t[o],i=n[o];if(Rt(a))e.addValue(o,a),Mc(r)&&r.add(o);else if(Rt(i))e.addValue(o,Ua(a,{owner:e})),Mc(r)&&r.remove(o);else if(i!==a)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(a)}else{const s=e.getStaticValue(o);e.addValue(o,Ua(s!==void 0?s:a,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Ok=Object.keys(Ls),iz=Ok.length,$2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sz{constructor({parent:t,props:n,reducedMotionConfig:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>bt.render(this.render,!1,!0);const{latestValues:i,renderState:s}=o;this.latestValues=i,this.baseTarget={...i},this.initialValues=n.initial?{...i}:{},this.renderState=s,this.parent=t,this.props=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.isControllingVariants=Id(n),this.isVariantNode=NS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(n,{});for(const c in u){const d=u[c];i[c]!==void 0&&Rt(d)&&(d.set(i[c],!1),Mc(l)&&l.add(c))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){var n;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(n=this.parent)===null||n===void 0?void 0:n.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),Nk.current||oz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:sp.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,n,r;(t=this.projection)===null||t===void 0||t.unmount(),Ur.update(this.notifyUpdate),Ur.render(this.render),this.valueSubscriptions.forEach(o=>o()),(n=this.removeFromVariantTree)===null||n===void 0||n.call(this),(r=this.parent)===null||r===void 0||r.children.delete(this);for(const o in this.events)this.events[o].clear();this.current=null}bindToMotionValue(t,n){const r=ri.has(t),o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&bt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,a,i,s){const l=[];for(let u=0;u<iz;u++){const c=Ok[u],{isEnabled:d,Component:f}=Ls[c];d(n)&&f&&l.push(y.createElement(f,{key:c,...n,visualElement:this}))}if(!this.projection&&i){this.projection=new i(a,this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:c,drag:d,dragConstraints:f,layoutScroll:h,layoutRoot:p}=n;this.projection.setOptions({layoutId:u,layout:c,alwaysMeasureLayout:Boolean(d)||f&&ca(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,layoutScroll:h,layoutRoot:p})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ve()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const n=this.props;this.props=t;for(let r=0;r<$2.length;r++){const o=$2[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a=t["on"+o];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=az(this,this.scrapeMotionValuesFromProps(t,n),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){var n;return(n=this.props.variants)===null||n===void 0?void 0:n[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:(t=this.parent)===null||t===void 0?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var n,r;if(t)return(n=this.parent)===null||n===void 0?void 0:n.getVariantContext();if(!this.isControllingVariants){const a=((r=this.parent)===null||r===void 0?void 0:r.getVariantContext())||{};return this.props.initial!==void 0&&(a.initial=this.props.initial),a}const o={};for(let a=0;a<lz;a++){const i=Fk[a],s=this.props[i];(Is(s)||s===!1)&&(o[i]=s)}return o}addVariantChild(t){var n;const r=this.getClosestVariantNode();if(r)return(n=r.variantChildren)===null||n===void 0||n.add(t),()=>r.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){var n;this.values.delete(t),(n=this.valueSubscriptions.get(t))===null||n===void 0||n(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ua(n,{owner:this}),this.addValue(t,r)),r}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=fv(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Rt(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yv),this.events[t].add(n)}notify(t,...n){var r;(r=this.events[t])===null||r===void 0||r.notify(...n)}}const Fk=["initial",...Rv],lz=Fk.length;class Dk extends sz{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){var r;return(r=t.style)===null||r===void 0?void 0:r[n]}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},a){let i=gF(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),i&&(i=o(i))),a){mF(this,r,i);const s=rz(this,r,i,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function uz(e){return window.getComputedStyle(e)}class cz extends Dk{readValueFromInstance(t,n){if(ri.has(n)){const r=Sv(n);return r&&r.default||0}else{const r=uz(t),o=(DS(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ak(t,n)}build(t,n,r,o){iv(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return dv(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){VS(t,n,r,o)}}class dz extends Dk{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){var r;return ri.has(n)?((r=Sv(n))===null||r===void 0?void 0:r.default)||0:(n=jS.has(n)?n:cv(n),t.getAttribute(n))}measureInstanceViewportBox(){return Ve()}scrapeMotionValuesFromProps(t,n){return WS(t,n)}build(t,n,r,o){lv(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){US(t,n,r,o)}mount(t){this.isSVGTag=uv(t.tagName),super.mount(t)}}const fz=(e,t)=>av(e)?new dz(t,{enableHardwareAcceleration:!1}):new cz(t,{enableHardwareAcceleration:!0});function N2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _i={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(U.test(e))e=parseFloat(e);else return e;const n=N2(e,t.target.x),r=N2(e,t.target.y);return`${n}% ${r}%`}},O2="_$css",hz={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),a=[];o&&(e=e.replace(Rk,h=>(a.push(h),O2)));const i=Wr.parse(e);if(i.length>5)return r;const s=Wr.createTransformer(e),l=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+l]/=u,i[1+l]/=c;const d=De(u,c,.5);typeof i[2+l]=="number"&&(i[2+l]/=d),typeof i[3+l]=="number"&&(i[3+l]/=d);let f=s(i);if(o){let h=0;f=f.replace(O2,()=>{const p=a[h];return h++,p})}return f}};class pz extends Dn.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:a}=t;ZN(vz),a&&(n.group&&n.group.add(a),r&&r.register&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),rs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:a}=this.props,i=r.projection;return i&&(i.isPresent=a,o||t.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?i.promote():i.relegate()||bt.postRender(()=>{var s;!((s=i.getStack())===null||s===void 0)&&s.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n!=null&&n.group&&n.group.remove(o),r!=null&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t==null||t()}render(){return null}}function mz(e){const[t,n]=mv(),r=y.useContext(ov);return Dn.createElement(pz,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(OS),isPresent:t,safeToRemove:n})}const vz={borderRadius:{..._i,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_i,borderTopRightRadius:_i,borderBottomLeftRadius:_i,borderBottomRightRadius:_i,boxShadow:hz},gz={measureLayout:mz};function yz(e,t,n={}){const r=Rt(e)?e:Ua(e);return r.start(Av("",r,t,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const zk=["TopLeft","TopRight","BottomLeft","BottomRight"],bz=zk.length,F2=e=>typeof e=="string"?parseFloat(e):e,D2=e=>typeof e=="number"||U.test(e);function xz(e,t,n,r,o,a){o?(e.opacity=De(0,n.opacity!==void 0?n.opacity:1,Sz(r)),e.opacityExit=De(t.opacity!==void 0?t.opacity:1,0,kz(r))):a&&(e.opacity=De(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let i=0;i<bz;i++){const s=`border${zk[i]}Radius`;let l=z2(t,s),u=z2(n,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||D2(l)===D2(u)?(e[s]=Math.max(De(F2(l),F2(u),r),0),(Nn.test(u)||Nn.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||n.rotate)&&(e.rotate=De(t.rotate||0,n.rotate||0,r))}function z2(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Sz=Ik(0,.5,Pv),kz=Ik(.5,.95,Ev);function Ik(e,t,n){return r=>r<e?0:r>t?1:n(Rc(e,t,r))}function I2(e,t){e.min=t.min,e.max=t.max}function on(e,t){I2(e.x,t.x),I2(e.y,t.y)}function L2(e,t,n,r,o){return e-=t,e=Nc(e,1/n,r),o!==void 0&&(e=Nc(e,1/o,r)),e}function wz(e,t=0,n=1,r=.5,o,a=e,i=e){if(Nn.test(t)&&(t=parseFloat(t),t=De(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=De(a.min,a.max,r);e===a&&(s-=t),e.min=L2(e.min,t,n,s,o),e.max=L2(e.max,t,n,s,o)}function B2(e,t,[n,r,o],a,i){wz(e,t[n],t[r],t[o],t.scale,a,i)}const _z=["x","scaleX","originX"],Cz=["y","scaleY","originY"];function V2(e,t,n,r){B2(e.x,t,_z,n==null?void 0:n.x,r==null?void 0:r.x),B2(e.y,t,Cz,n==null?void 0:n.y,r==null?void 0:r.y)}function j2(e){return e.translate===0&&e.scale===1}function Lk(e){return j2(e.x)&&j2(e.y)}function Bk(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function U2(e){return Bt(e.x)/Bt(e.y)}class Tz{constructor(){this.members=[]}add(t){vv(this.members,t),t.scheduleRender()}remove(t){if(gv(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){var r;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,o,a,i;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(i=(o=t.resumingFrom)===null||o===void 0?void 0:(a=o.options).onExitComplete)===null||i===void 0||i.call(a)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function W2(e,t,n){let r="";const o=e.x.translate/t.x,a=e.y.translate/t.y;if((o||a)&&(r=`translate3d(${o}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const i=e.x.scale*t.x,s=e.y.scale*t.y;return(i!==1||s!==1)&&(r+=`scale(${i}, ${s})`),r||"none"}const Ez=(e,t)=>e.depth-t.depth;class Pz{constructor(){this.children=[],this.isDirty=!1}add(t){vv(this.children,t),this.isDirty=!0}remove(t){gv(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ez),this.isDirty=!1,this.children.forEach(t)}}const H2=["","X","Y","Z"],Y2=1e3;let Mz=0;function Vk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i,s={},l=t==null?void 0:t()){this.id=Mz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach($z),this.nodes.forEach(Fz),this.nodes.forEach(Dz)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=i,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0,i&&this.root.registerPotentialNode(i,this);for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Pz)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new yv),this.eventHandlers.get(i).add(s)}notifyListeners(i,...s){const l=this.eventHandlers.get(i);l==null||l.notify(...s)}hasListeners(i){return this.eventHandlers.has(i)}registerPotentialNode(i,s){this.potentialNodes.set(i,s)}mount(i,s=!1){var l;if(this.instance)return;this.isSVG=i instanceof SVGElement&&i.tagName!=="svg",this.instance=i;const{layoutId:u,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(i),this.root.nodes.add(this),(l=this.parent)===null||l===void 0||l.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),s&&(c||u)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=kk(h,250),rs.hasAnimatedSinceResize&&(rs.hasAnimatedSinceResize=!1,this.nodes.forEach(q2))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:m})=>{var x,v,g,b,k;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const T=(v=(x=this.options.transition)!==null&&x!==void 0?x:d.getDefaultTransition())!==null&&v!==void 0?v:Vz,{onLayoutAnimationStart:E,onLayoutAnimationComplete:P}=d.getProps(),R=!this.targetLayout||!Bk(this.targetLayout,m)||p,V=!h&&p;if(this.options.layoutRoot||!((g=this.resumeFrom)===null||g===void 0)&&g.instance||V||h&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,V);const F={...wk(T,"layout"),onPlay:E,onComplete:P};(d.shouldReduceMotion||this.options.layoutRoot)&&(F.delay=0,F.type=!1),this.startAnimation(F)}else!h&&this.animationProgress===0&&q2(this),this.isLead()&&((k=(b=this.options).onExitComplete)===null||k===void 0||k.call(b));this.targetLayout=m})}unmount(){var i,s;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(i=this.getStack())===null||i===void 0||i.remove(this),(s=this.parent)===null||s===void 0||s.children.delete(this),this.instance=void 0,Ur.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var i;return this.isAnimationBlocked||((i=this.parent)===null||i===void 0?void 0:i.isTreeAnimationBlocked())||!1}startUpdate(){var i;this.isUpdateBlocked()||(this.isUpdating=!0,(i=this.nodes)===null||i===void 0||i.forEach(zz),this.animationId++)}getTransformTemplate(){var i;return(i=this.options.visualElement)===null||i===void 0?void 0:i.getProps().transformTemplate}willUpdate(i=!0){var s,l,u;if(this.root.isUpdateBlocked()){(l=(s=this.options).onExitComplete)===null||l===void 0||l.call(s);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;c===void 0&&!d||(this.prevTransformTemplateValue=(u=this.getTransformTemplate())===null||u===void 0?void 0:u(this.latestValues,""),this.updateSnapshot(),i&&this.notifyListeners("willUpdate"))}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(G2);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(jz),this.potentialNodes.clear()),this.nodes.forEach(Oz),this.nodes.forEach(Az),this.nodes.forEach(Rz),this.clearAllSnapshots(),r0.update(),r0.preRender(),r0.render())}clearAllSnapshots(){this.nodes.forEach(Nz),this.sharedNodes.forEach(Iz)}scheduleUpdateProjection(){bt.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){bt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var i;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ve(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),(i=this.options.visualElement)===null||i===void 0||i.notify("LayoutMeasure",this.layout.layoutBox,s==null?void 0:s.layoutBox)}updateScroll(i="measure"){let s=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:i,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){var i;if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Lk(this.projectionDelta),u=(i=this.getTransformTemplate())===null||i===void 0?void 0:i(this.latestValues,""),c=u!==this.prevTransformTemplateValue;s&&(l||ao(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return i&&(l=this.removeTransform(l)),Uz(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return Ve();const s=i.measureViewportBox(),{scroll:l}=this.root;return l&&(_r(s.x,l.offset.x),_r(s.y,l.offset.y)),s}removeElementScroll(i){const s=Ve();on(s,i);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:d}=u;if(u!==this.root&&c&&d.layoutScroll){if(c.isRoot){on(s,i);const{scroll:f}=this.root;f&&(_r(s.x,-f.offset.x),_r(s.y,-f.offset.y))}_r(s.x,c.offset.x),_r(s.y,c.offset.y)}}return s}applyTransform(i,s=!1){const l=Ve();on(l,i);for(let u=0;u<this.path.length;u++){const c=this.path[u];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&fa(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ao(c.latestValues)&&fa(l,c.latestValues)}return ao(this.latestValues)&&fa(l,this.latestValues),l}removeTransform(i){var s;const l=Ve();on(l,i);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!ao(c.latestValues))continue;rp(c.latestValues)&&c.updateSnapshot();const d=Ve(),f=c.measurePageBox();on(d,f),V2(l,c.latestValues,(s=c.snapshot)===null||s===void 0?void 0:s.layoutBox,d)}return ao(this.latestValues)&&V2(l,this.latestValues),l}setTargetDelta(i){this.targetDelta=i,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){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}resolveTargetDelta(){var i;const s=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:l,layoutId:u}=this.options;if(!(!this.layout||!(l||u))){if(!this.targetDelta&&!this.relativeTarget){const c=this.getClosestProjectingParent();c&&c.layout?(this.relativeParent=c,this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),ss(this.relativeTargetOrigin,this.layout.layoutBox,c.layout.layoutBox),on(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ve(),this.targetWithTransforms=Ve()),this.relativeTarget&&this.relativeTargetOrigin&&(!((i=this.relativeParent)===null||i===void 0)&&i.target)?PD(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):on(this.target,this.layout.layoutBox),Mk(this.target,this.targetDelta)):on(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const c=this.getClosestProjectingParent();c&&Boolean(c.resumingFrom)===Boolean(this.resumingFrom)&&!c.options.layoutScroll&&c.target?(this.relativeParent=c,this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),ss(this.relativeTargetOrigin,this.target,c.target),on(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||rp(this.parent.latestValues)||Pk(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta||this.parent.options.layoutRoot)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var i;const{isProjectionDirty:s,isTransformDirty:l}=this;this.isProjectionDirty=this.isTransformDirty=!1;const u=this.getLead(),c=Boolean(this.resumingFrom)||this!==u;let d=!0;if(s&&(d=!1),c&&l&&(d=!1),d)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=Boolean(((i=this.parent)===null||i===void 0?void 0:i.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;on(this.layoutCorrected,this.layout.layoutBox),zD(this.layoutCorrected,this.treeScale,this.path,c);const{target:p}=u;if(!p)return;this.projectionDelta||(this.projectionDelta=ls(),this.projectionDeltaWithTransform=ls());const m=this.treeScale.x,x=this.treeScale.y,v=this.projectionTransform;is(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=W2(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==m||this.treeScale.y!==x)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var s,l,u;(l=(s=this.options).scheduleRender)===null||l===void 0||l.call(s),i&&((u=this.getStack())===null||u===void 0||u.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(i,s=!1){var l,u;const c=this.snapshot,d=(c==null?void 0:c.latestValues)||{},f={...this.latestValues},h=ls();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=Ve(),m=(c==null?void 0:c.source)!==((l=this.layout)===null||l===void 0?void 0:l.source),x=(((u=this.getStack())===null||u===void 0?void 0:u.members.length)||0)<=1,v=Boolean(m&&!x&&this.options.crossfade===!0&&!this.path.some(Bz));this.animationProgress=0,this.mixTargetDelta=g=>{var b;const k=g/1e3;X2(h.x,i.x,k),X2(h.y,i.y,k),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(!((b=this.relativeParent)===null||b===void 0)&&b.layout)&&(ss(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Lz(this.relativeTarget,this.relativeTargetOrigin,p,k)),m&&(this.animationValues=f,xz(f,d,this.latestValues,k,v,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){var s,l;this.notifyListeners("animationStart"),(s=this.currentAnimation)===null||s===void 0||s.stop(),this.resumingFrom&&((l=this.resumingFrom.currentAnimation)===null||l===void 0||l.stop()),this.pendingAnimation&&(Ur.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=bt.update(()=>{rs.hasAnimatedSinceResize=!0,this.currentAnimation=yz(0,Y2,{...i,onUpdate:u=>{var c;this.mixTargetDelta(u),(c=i.onUpdate)===null||c===void 0||c.call(i,u)},onComplete:()=>{var u;(u=i.onComplete)===null||u===void 0||u.call(i),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var i;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(i=this.getStack())===null||i===void 0||i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var i;this.currentAnimation&&((i=this.mixTargetDelta)===null||i===void 0||i.call(this,Y2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=i;if(!(!s||!l||!u)){if(this!==i&&this.layout&&u&&jk(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ve();const d=Bt(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+d;const f=Bt(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+f}on(s,l),fa(s,c),is(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(i,s){var l,u,c;this.sharedNodes.has(i)||this.sharedNodes.set(i,new Tz),this.sharedNodes.get(i).add(s),s.promote({transition:(l=s.options.initialPromotionConfig)===null||l===void 0?void 0:l.transition,preserveFollowOpacity:(c=(u=s.options.initialPromotionConfig)===null||u===void 0?void 0:u.shouldPreserveFollowOpacity)===null||c===void 0?void 0:c.call(u,s)})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:s}=this.options;return s?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:s}=this.options;return s?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetRotation(){const{visualElement:i}=this.options;if(!i)return;let s=!1;const{latestValues:l}=i;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c<H2.length;c++){const d="rotate"+H2[c];l[d]&&(u[d]=l[d],i.setStaticValue(d,0))}i==null||i.render();for(const c in u)i.setStaticValue(c,u[c]);i.scheduleRender()}getProjectionStyles(i={}){var s,l;const u={};if(!this.instance||this.isSVG)return u;if(this.isVisible)u.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Nu(i.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=Nu(i.pointerEvents)||""),this.hasProjected&&!ao(this.latestValues)&&(m.transform=c?c({},""):"none",this.hasProjected=!1),m}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=W2(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:h,y:p}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(s=f.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const m in wc){if(f[m]===void 0)continue;const{correct:x,applyTo:v}=wc[m],g=u.transform==="none"?f[m]:x(f[m],d);if(v){const b=v.length;for(let k=0;k<b;k++)u[v[k]]=g}else u[m]=g}return this.options.layoutId&&(u.pointerEvents=d===this?Nu(i.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var s;return(s=i.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(G2),this.root.sharedNodes.clear()}}}function Az(e){e.updateLayout()}function Rz(e){var t,n,r;const o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:i}=e.layout,{animationType:s}=e.options,l=o.source!==e.layout.source;s==="size"?bn(h=>{const p=l?o.measuredBox[h]:o.layoutBox[h],m=Bt(p);p.min=a[h].min,p.max=p.min+m}):jk(s,o.layoutBox,a)&&bn(h=>{const p=l?o.measuredBox[h]:o.layoutBox[h],m=Bt(a[h]);p.max=p.min+m});const u=ls();is(u,a,o.layoutBox);const c=ls();l?is(c,e.applyTransform(i,!0),o.measuredBox):is(c,a,o.layoutBox);const d=!Lk(u);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:p,layout:m}=h;if(p&&m){const x=Ve();ss(x,o.layoutBox,p.layoutBox);const v=Ve();ss(v,a,m.layoutBox),Bk(x,v)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=x,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:o,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&((r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n));e.options.transition=void 0}function $z(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function Nz(e){e.clearSnapshot()}function G2(e){e.clearMeasurements()}function Oz(e){const{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function q2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Fz(e){e.resolveTargetDelta()}function Dz(e){e.calcProjection()}function zz(e){e.resetRotation()}function Iz(e){e.removeLeadSnapshot()}function X2(e,t,n){e.translate=De(t.translate,0,n),e.scale=De(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function K2(e,t,n,r){e.min=De(t.min,n.min,r),e.max=De(t.max,n.max,r)}function Lz(e,t,n,r){K2(e.x,t.x,n.x,r),K2(e.y,t.y,n.y,r)}function Bz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Vz={duration:.45,ease:[.4,0,.1,1]};function jz(e,t){let n=e.root;for(let a=e.path.length-1;a>=0;a--)if(Boolean(e.path[a].instance)){n=e.path[a];break}const o=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function Q2(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Uz(e){Q2(e.x),Q2(e.y)}function jk(e,t,n){return e==="position"||e==="preserve-aspect"&&!tp(U2(t),U2(n),.2)}const Wz=Vk({attachResizeListener:(e,t)=>Bd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),h0={current:void 0},Hz=Vk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!h0.current){const e=new Wz(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),h0.current=e}return h0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),Yz={..._D,...VO,...YD,...gz},oi=KN((e,t)=>PO(e,t,Yz,fz,Hz));function Uk(){const e=y.useRef(!1);return kc(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Gz(){const e=Uk(),[t,n]=y.useState(0),r=y.useCallback(()=>{e.current&&n(t+1)},[t]);return[y.useCallback(()=>bt.postRender(r),[r]),t]}class qz extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Xz({children:e,isPresent:t}){const n=y.useId(),r=y.useRef(null),o=y.useRef({width:0,height:0,top:0,left:0});return y.useInsertionEffect(()=>{const{width:a,height:i,top:s,left:l}=o.current;if(t||!r.current||!a||!i)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${a}px !important; + height: ${i}px !important; + top: ${s}px !important; + left: ${l}px !important; + } + `),()=>{document.head.removeChild(u)}},[t]),y.createElement(qz,{isPresent:t,childRef:r,sizeRef:o},y.cloneElement(e,{ref:r}))}const p0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:a,mode:i})=>{const s=Ld(Kz),l=y.useId(),u=y.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),a?void 0:[n]);return y.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[n]),y.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),i==="popLayout"&&(e=y.createElement(Xz,{isPresent:n},e)),y.createElement(ni.Provider,{value:u},e)};function Kz(){return new Map}const Qo=e=>e.key||"";function Qz(e,t){e.forEach(n=>{const r=Qo(n);t.set(r,n)})}function Zz(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const ll=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:i="sync"})=>{o&&(i="wait");let[s]=Gz();const l=y.useContext(ov).forceRender;l&&(s=l);const u=Uk(),c=Zz(e);let d=c;const f=new Set,h=y.useRef(d),p=y.useRef(new Map).current,m=y.useRef(!0);if(kc(()=>{m.current=!1,Qz(c,p),h.current=d}),pv(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return y.createElement(y.Fragment,null,d.map(b=>y.createElement(p0,{key:Qo(b),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:i},b)));d=[...d];const x=h.current.map(Qo),v=c.map(Qo),g=x.length;for(let b=0;b<g;b++){const k=x[b];v.indexOf(k)===-1&&f.add(k)}return i==="wait"&&f.size&&(d=[]),f.forEach(b=>{if(v.indexOf(b)!==-1)return;const k=p.get(b);if(!k)return;const T=x.indexOf(b),E=()=>{p.delete(b),f.delete(b);const P=h.current.findIndex(R=>R.key===b);if(h.current.splice(P,1),!f.size){if(h.current=c,u.current===!1)return;s(),r&&r()}};d.splice(T,0,y.createElement(p0,{key:Qo(k),isPresent:!1,onExitComplete:E,custom:t,presenceAffectsLayout:a,mode:i},k))}),d=d.map(b=>{const k=b.key;return f.has(k)?b:y.createElement(p0,{key:Qo(b),isPresent:!0,presenceAffectsLayout:a,mode:i},b)}),y.createElement(y.Fragment,null,f.size?d:d.map(b=>y.cloneElement(b)))};var _n=function(){return _n=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},_n.apply(this,arguments)};function Wk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Jz(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var eI={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},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]}}},Hk=y.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:a=!1,position:i="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=eI,toastSpacing:c="0.5rem"}=e,[d,f]=y.useState(s),h=jO();Xy(()=>{h||r==null||r()},[h]),Xy(()=>{f(s)},[s]);const p=()=>f(null),m=()=>f(s),x=()=>{h&&o()};y.useEffect(()=>{h&&a&&o()},[h,a,o]),DN(x,d);const v=y.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),g=y.useMemo(()=>NN(i),[i]);return w(oi.li,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:p,onHoverEnd:m,custom:{position:i},style:g,children:w(Y.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:Tn(n,{id:t,onClose:x})})})});Hk.displayName="ToastComponent";function tI(e,t){var n;const r=e??"bottom",a={"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"}}[r];return(n=a==null?void 0:a[t])!=null?n:r}var Z2={path:ce("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w("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"}),w("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},ai=fe((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...u}=e,c=ve("chakra-icon",s),d=zo("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},h={ref:t,focusable:a,className:c,__css:f},p=r??Z2.viewBox;if(n&&typeof n!="string")return w(Y.svg,{as:n,...h,...u});const m=i??Z2.path;return w(Y.svg,{verticalAlign:"middle",viewBox:p,...h,...u,children:m})});ai.displayName="Icon";function nI(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,a=y.Children.toArray(e.path),i=fe((s,l)=>w(ai,{ref:l,viewBox:t,...o,...s,children:a.length?a:w("path",{fill:"currentColor",d:n})}));return i.displayName=r,i}function rI(e){return w(ai,{viewBox:"0 0 24 24",...e,children:w("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"})})}function oI(e){return w(ai,{viewBox:"0 0 24 24",...e,children:w("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"})})}function J2(e){return w(ai,{viewBox:"0 0 24 24",...e,children:w("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"})})}var aI=nl({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),$v=fe((e,t)=>{const n=zo("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:a="0.45s",emptyColor:i="transparent",className:s,...l}=Kr(e),u=ve("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:i,borderLeftColor:i,animation:`${aI} ${a} linear infinite`,...n};return w(Y.div,{ref:t,__css:c,className:u,...l,children:r&&w(Y.span,{srOnly:!0,children:r})})});$v.displayName="Spinner";var[iI,sI]=Xr({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[lI,Nv]=Xr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Yk={info:{icon:oI,colorScheme:"blue"},warning:{icon:J2,colorScheme:"orange"},success:{icon:rI,colorScheme:"green"},error:{icon:J2,colorScheme:"red"},loading:{icon:$v,colorScheme:"blue"}};function uI(e){return Yk[e].colorScheme}function cI(e){return Yk[e].icon}var Gk=fe(function(t,n){const o={display:"inline",...Nv().description};return w(Y.div,{ref:n,...t,className:ve("chakra-alert__desc",t.className),__css:o})});Gk.displayName="AlertDescription";function qk(e){const{status:t}=sI(),n=cI(t),r=Nv(),o=t==="loading"?r.spinner:r.icon;return w(Y.span,{display:"inherit",...e,className:ve("chakra-alert__icon",e.className),__css:o,children:e.children||w(n,{h:"100%",w:"100%"})})}qk.displayName="AlertIcon";var Xk=fe(function(t,n){const r=Nv();return w(Y.div,{ref:n,...t,className:ve("chakra-alert__title",t.className),__css:r.title})});Xk.displayName="AlertTitle";var Kk=fe(function(t,n){var r;const{status:o="info",addRole:a=!0,...i}=Kr(t),s=(r=t.colorScheme)!=null?r:uI(o),l=nv("Alert",{...t,colorScheme:s}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return w(iI,{value:{status:o},children:w(lI,{value:l,children:w(Y.div,{role:a?"alert":void 0,ref:n,...i,className:ve("chakra-alert",t.className),__css:u})})})});Kk.displayName="Alert";function dI(e){return w(ai,{focusable:"false","aria-hidden":!0,...e,children:w("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,11.823a.25.25,0,0,1,0,.354Z"})})}var Ov=fe(function(t,n){const r=zo("CloseButton",t),{children:o,isDisabled:a,__css:i,...s}=Kr(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return w(Y.button,{type:"button","aria-label":"Close",ref:n,disabled:a,__css:{...l,...r,...i},...s,children:o||w(dI,{width:"1em",height:"1em"})})});Ov.displayName="CloseButton";var fI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Cn=hI(fI);function hI(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(a=>a())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,a)=>{r(i=>({...i,[a]:i[a].filter(s=>s.id!=o)}))},notify:(o,a)=>{const i=pI(o,a),{position:s,id:l}=i;return r(u=>{var c,d;const h=s.includes("top")?[i,...(c=u[s])!=null?c:[]]:[...(d=u[s])!=null?d:[],i];return{...u,[s]:h}}),l},update:(o,a)=>{o&&r(i=>{const s={...i},{position:l,index:u}=qy(s,o);return l&&u!==-1&&(s[l][u]={...s[l][u],...a,message:Qk(a)}),s})},closeAll:({positions:o}={})=>{r(a=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=a[u].map(c=>({...c,requestClose:!0})),l),{...a}))},close:o=>{r(a=>{const i=RS(a,o);return i?{...a,[i]:a[i].map(s=>s.id==o?{...s,requestClose:!0}:s)}:a})},isActive:o=>Boolean(qy(Cn.getState(),o).position)}}var e9=0;function pI(e,t={}){var n,r;e9+=1;const o=(n=t.id)!=null?n:e9,a=(r=t.position)!=null?r:"bottom";return{id:o,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Cn.removeToast(String(o),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var mI=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:a,onClose:i,description:s,icon:l}=e,u=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return ce(Kk,{addRole:!1,status:t,variant:n,id:u==null?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",children:[w(qk,{children:l}),ce(Y.div,{flex:"1",maxWidth:"100%",children:[o&&w(Xk,{id:u==null?void 0:u.title,children:o}),s&&w(Gk,{id:u==null?void 0:u.description,display:"block",children:s})]}),a&&w(Ov,{size:"sm",onClick:i,position:"absolute",insetEnd:1,top:1})]})};function Qk(e={}){const{render:t,toastComponent:n=mI}=e;return o=>typeof t=="function"?t({...o,...e}):w(n,{...o,...e})}function vI(e,t){const n=o=>{var a;return{...t,...o,position:tI((a=o==null?void 0:o.position)!=null?a:t==null?void 0:t.position,e)}},r=o=>{const a=n(o),i=Qk(a);return Cn.notify(i,a)};return r.update=(o,a)=>{Cn.update(o,n(a))},r.promise=(o,a)=>{const i=r({...a.loading,status:"loading",duration:null});o.then(s=>r.update(i,{status:"success",duration:5e3,...Tn(a.success,s)})).catch(s=>r.update(i,{status:"error",duration:5e3,...Tn(a.error,s)}))},r.closeAll=Cn.closeAll,r.close=Cn.close,r.isActive=Cn.isActive,r}var[gI,eK]=Xr({name:"ToastOptionsContext",strict:!1}),Zk=e=>{const t=y.useSyncExternalStore(Cn.subscribe,Cn.getState,Cn.getState),{motionVariants:n,component:r=Hk,portalProps:o}=e,i=Object.keys(t).map(s=>{const l=t[s];return w("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${s}`,style:ON(s),children:w(ll,{initial:!1,children:l.map(u=>w(r,{motionVariants:n,...u},u.id))})},s)});return w(rl,{...o,children:i})},yI={duration:5e3,variant:"solid"},Ho={theme:K$,colorMode:"light",toggleColorMode:()=>{},setColorMode:()=>{},defaultOptions:yI,forced:!1};function bI({theme:e=Ho.theme,colorMode:t=Ho.colorMode,toggleColorMode:n=Ho.toggleColorMode,setColorMode:r=Ho.setColorMode,defaultOptions:o=Ho.defaultOptions,motionVariants:a,toastSpacing:i,component:s,forced:l}=Ho){const u={colorMode:t,setColorMode:r,toggleColorMode:n,forced:l};return{ToastContainer:()=>w(PS,{theme:e,children:w(Ad.Provider,{value:u,children:w(Zk,{defaultOptions:o,motionVariants:a,toastSpacing:i,component:s})})}),toast:vI(e.direction,o)}}var xI=e=>function({children:n,theme:r=e,toastOptions:o,...a}){return ce(RN,{theme:r,...a,children:[w(gI,{value:o==null?void 0:o.defaultOptions,children:n}),w(Zk,{...o})]})},SI=xI(tv);function kI(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function lp(...e){return t=>{e.forEach(n=>{kI(n,t)})}}function wI(...e){return y.useMemo(()=>lp(...e),e)}var t9={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},ko={enter:{duration:.2,ease:t9.easeOut},exit:{duration:.1,ease:t9.easeIn}},wo={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},_I={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:wo.enter(ko.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:wo.exit(ko.exit,n),transitionEnd:t==null?void 0:t.exit}}},Jk={initial:"exit",animate:"enter",exit:"exit",variants:_I},CI=y.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:a,transition:i,transitionEnd:s,delay:l,...u}=t,c=o||r?"enter":"exit",d=r?o&&r:!0,f={transition:i,transitionEnd:s,delay:l};return w(ll,{custom:f,children:d&&w(oi.div,{ref:n,className:ve("chakra-fade",a),custom:f,...Jk,animate:c,...u})})});CI.displayName="Fade";var TI={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(a=n==null?void 0:n.exit)!=null?a:wo.exit(ko.exit,o)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:wo.enter(ko.enter,n),transitionEnd:e==null?void 0:e.enter}}},e5={initial:"exit",animate:"enter",exit:"exit",variants:TI},EI=y.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:a=!0,initialScale:i=.95,className:s,transition:l,transitionEnd:u,delay:c,...d}=t,f=r?o&&r:!0,h=o||r?"enter":"exit",p={initialScale:i,reverse:a,transition:l,transitionEnd:u,delay:c};return w(ll,{custom:p,children:f&&w(oi.div,{ref:n,className:ve("chakra-offset-slide",s),...e5,animate:h,custom:p,...d})})});EI.displayName="ScaleFade";var PI={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>{var a;return{opacity:0,x:e,y:t,transition:(a=n==null?void 0:n.exit)!=null?a:wo.exit(ko.exit,o),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:wo.enter(ko.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:a})=>{var i;const s={x:t,y:e};return{opacity:0,transition:(i=n==null?void 0:n.exit)!=null?i:wo.exit(ko.exit,a),...o?{...s,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...s,...r==null?void 0:r.exit}}}}},up={initial:"initial",animate:"enter",exit:"exit",variants:PI},MI=y.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:a=!0,className:i,offsetX:s=0,offsetY:l=8,transition:u,transitionEnd:c,delay:d,...f}=t,h=r?o&&r:!0,p=o||r?"enter":"exit",m={offsetX:s,offsetY:l,reverse:a,transition:u,transitionEnd:c,delay:d};return w(ll,{custom:m,children:h&&w(oi.div,{ref:n,className:ve("chakra-offset-slide",i),custom:m,...up,animate:p,...f})})});MI.displayName="SlideFade";var cp=fe(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:a,...i}=t;return w("img",{width:r,height:o,ref:n,alt:a,...i})});cp.displayName="NativeImage";function AI(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:a,crossOrigin:i,sizes:s,ignoreFallback:l}=e,[u,c]=y.useState("pending");y.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=y.useRef(),f=y.useCallback(()=>{if(!n)return;h();const p=new Image;p.src=n,i&&(p.crossOrigin=i),r&&(p.srcset=r),s&&(p.sizes=s),t&&(p.loading=t),p.onload=m=>{h(),c("loaded"),o==null||o(m)},p.onerror=m=>{h(),c("failed"),a==null||a(m)},d.current=p},[n,i,r,s,o,a,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return Ns(()=>{if(!l)return u==="loading"&&f(),()=>{h()}},[u,f,l]),l?"loaded":u}var RI=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function $I(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var t5=fe(function(t,n){const{fallbackSrc:r,fallback:o,src:a,srcSet:i,align:s,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:h,...p}=t,m=r!==void 0||o!==void 0,x=u!=null||c||!m,v=AI({...t,ignoreFallback:x}),g=RI(v,f),b={ref:n,objectFit:l,objectPosition:s,...x?p:$I(p,["onError","onLoad"])};return g?o||w(Y.img,{as:cp,className:"chakra-image__placeholder",src:r,...b}):w(Y.img,{as:cp,src:a,srcSet:i,crossOrigin:d,loading:u,referrerPolicy:h,className:"chakra-image",...b})});t5.displayName="Image";function NI(e){return y.Children.toArray(e).filter(t=>y.isValidElement(t))}var[OI,FI]=Xr({strict:!1,name:"ButtonGroupContext"}),DI={horizontal:{"> *: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}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},zI={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},n5=fe(function(t,n){const{size:r,colorScheme:o,variant:a,className:i,spacing:s="0.5rem",isAttached:l,isDisabled:u,orientation:c="horizontal",...d}=t,f=ve("chakra-button__group",i),h=y.useMemo(()=>({size:r,colorScheme:o,variant:a,isDisabled:u}),[r,o,a,u]);let p={display:"inline-flex",...l?DI[c]:zI[c](s)};const m=c==="vertical";return w(OI,{value:h,children:w(Y.div,{ref:n,role:"group",__css:p,className:f,"data-attached":l?"":void 0,"data-orientation":c,flexDir:m?"column":void 0,...d})})});n5.displayName="ButtonGroup";function II(e){const[t,n]=y.useState(!e);return{ref:y.useCallback(a=>{a&&n(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}function dp(e){const{children:t,className:n,...r}=e,o=y.isValidElement(t)?y.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=ve("chakra-button__icon",n);return w(Y.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:a,children:o})}dp.displayName="ButtonIcon";function fp(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=w($v,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:i,...s}=e,l=ve("chakra-button__spinner",a),u=n==="start"?"marginEnd":"marginStart",c=y.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...i}),[i,t,u,r]);return w(Y.div,{className:l,...s,__css:c,children:o})}fp.displayName="ButtonSpinner";var On=fe((e,t)=>{const n=FI(),r=zo("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:a,isActive:i,children:s,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:h,spinnerPlacement:p="start",className:m,as:x,...v}=Kr(e),g=y.useMemo(()=>{const E={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:E}}},[r,n]),{ref:b,type:k}=II(x),T={rightIcon:u,leftIcon:l,iconSpacing:d,children:s};return ce(Y.button,{ref:wI(t,b),as:x,type:f??k,"data-active":oy(i),"data-loading":oy(a),__css:g,className:ve("chakra-button",m),...v,disabled:o||a,children:[a&&p==="start"&&w(fp,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:h}),a?c||w(Y.span,{opacity:0,children:w(n9,{...T})}):w(n9,{...T}),a&&p==="end"&&w(fp,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:h})]})});On.displayName="Button";function n9(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return ce(T3,{children:[t&&w(dp,{marginEnd:o,children:t}),r,n&&w(dp,{marginStart:o,children:n})]})}var r5=fe((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":a,...i}=e,s=n||r,l=y.isValidElement(s)?y.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return w(On,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...i,children:l})});r5.displayName="IconButton";var[LI,o5]=MN("Card"),BI=fe(function(t,n){const{className:r,...o}=t,a=o5();return w(Y.div,{ref:n,className:ve("chakra-card__body",r),__css:a.body,...o})}),VI=fe(function(t,n){const{className:r,justify:o,...a}=t,i=o5();return w(Y.div,{ref:n,className:ve("chakra-card__footer",r),__css:{display:"flex",justifyContent:o,...i.footer},...a})}),jI=fe(function(t,n){const{className:r,children:o,direction:a="column",justify:i,align:s,...l}=Kr(t),u=nv("Card",t);return w(Y.div,{ref:n,className:ve("chakra-card",r),__css:{display:"flex",flexDirection:a,justifyContent:i,alignItems:s,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...l,children:w(LI,{value:u,children:o})})}),UI=nN?y.useLayoutEffect:y.useEffect;function r9(e,t=[]){const n=y.useRef(e);return UI(()=>{n.current=e}),y.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function WI(e,t){const n=y.useId();return y.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function HI(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function YI(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,a=r9(n),i=r9(t),[s,l]=y.useState(e.defaultIsOpen||!1),[u,c]=HI(r,s),d=WI(o,"disclosure"),f=y.useCallback(()=>{u||l(!1),i==null||i()},[u,i]),h=y.useCallback(()=>{u||l(!0),a==null||a()},[u,a]),p=y.useCallback(()=>{(c?f:h)()},[c,h,f]);return{isOpen:!!c,onOpen:h,onClose:f,onToggle:p,isControlled:u,getButtonProps:(m={})=>({...m,"aria-expanded":c,"aria-controls":d,onClick:sN(m.onClick,p)}),getDisclosureProps:(m={})=>({...m,hidden:!c,id:d})}}function Oc(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Mt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var zn=fe(function(t,n){const r=zo("Text",t),{className:o,align:a,decoration:i,casing:s,...l}=Kr(t),u=vN({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return w(Y.p,{ref:n,className:ve("chakra-text",t.className),...u,...l,__css:r})});zn.displayName="Text";function o9(e){return typeof e=="number"?`${e}px`:e}var a5=fe(function(t,n){const{spacing:r="0.5rem",spacingX:o,spacingY:a,children:i,justify:s,direction:l,align:u,className:c,shouldWrapChildren:d,...f}=t,h=y.useMemo(()=>{const{spacingX:m=r,spacingY:x=r}={spacingX:o,spacingY:a};return{"--chakra-wrap-x-spacing":v=>Oc(m,g=>o9(Oh("space",g)(v))),"--chakra-wrap-y-spacing":v=>Oc(x,g=>o9(Oh("space",g)(v))),"--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:s,alignItems:u,flexDirection:l,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)"}}},[r,o,a,s,u,l]),p=y.useMemo(()=>d?y.Children.map(i,(m,x)=>w(Fv,{children:m},x)):i,[i,d]);return w(Y.div,{ref:n,className:ve("chakra-wrap",c),overflow:"hidden",...f,children:w(Y.ul,{className:"chakra-wrap__list",__css:h,children:p})})});a5.displayName="Wrap";var Fv=fe(function(t,n){const{className:r,...o}=t;return w(Y.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:ve("chakra-wrap__listitem",r),...o})});Fv.displayName="WrapItem";var i5=e=>w(Y.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});i5.displayName="StackItem";var hp="& > *:not(style) ~ *:not(style)";function GI(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[hp]:Oc(n,o=>r[o])}}function qI(e){const{spacing:t,direction:n}=e,r={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{"&":Oc(n,o=>r[o])}}var s5=fe((e,t)=>{const{isInline:n,direction:r,align:o,justify:a,spacing:i="0.5rem",wrap:s,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,h=n?"row":r??"column",p=y.useMemo(()=>GI({direction:h,spacing:i}),[h,i]),m=y.useMemo(()=>qI({spacing:i,direction:h}),[i,h]),x=!!u,v=!d&&!x,g=y.useMemo(()=>{const k=NI(l);return v?k:k.map((T,E)=>{const P=typeof T.key<"u"?T.key:E,R=E+1===k.length,F=d?w(i5,{children:T},P):T;if(!x)return F;const D=y.cloneElement(u,{__css:m}),G=R?null:D;return ce(y.Fragment,{children:[F,G]},P)})},[u,m,x,v,d,l]),b=ve("chakra-stack",c);return w(Y.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:p.flexDirection,flexWrap:s,className:b,__css:x?{}:{[hp]:p[hp]},...f,children:g})});s5.displayName="Stack";var l5=fe(function(t,n){const r=zo("Heading",t),{className:o,...a}=Kr(t);return w(Y.h2,{ref:n,className:ve("chakra-heading",t.className),...a,__css:r})});l5.displayName="Heading";var ze=Y("div");ze.displayName="Box";var u5=fe(function(t,n){const{size:r,centerContent:o=!0,...a}=t;return w(ze,{ref:n,boxSize:r,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...a})});u5.displayName="Square";var XI=fe(function(t,n){const{size:r,...o}=t;return w(u5,{size:r,ref:n,borderRadius:"9999px",...o})});XI.displayName="Circle";var Wd=fe(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:a,borderRightWidth:i,borderWidth:s,borderStyle:l,borderColor:u,...c}=zo("Divider",t),{className:d,orientation:f="horizontal",__css:h,...p}=Kr(t),m={vertical:{borderLeftWidth:r||i||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||a||s||"1px",width:"100%"}};return w(Y.hr,{ref:n,"aria-orientation":f,...p,__css:{...c,border:"0",borderColor:u,borderStyle:l,...m[f],...h},className:ve("chakra-divider",d)})});Wd.displayName="Divider";function KI(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function QI(e){var t;if(!KI(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}var ZI=e=>e.hasAttribute("tabindex");function JI(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function c5(e){return e.parentElement&&c5(e.parentElement)?!0:e.hidden}function eL(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function tL(e){if(!QI(e)||c5(e)||JI(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():eL(e)?!0:ZI(e)}var nL=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],rL=nL.join(),oL=e=>e.offsetWidth>0&&e.offsetHeight>0;function aL(e){const t=Array.from(e.querySelectorAll(rL));return t.unshift(e),t.filter(n=>tL(n)&&oL(n))}var iL={slideInBottom:{...up,custom:{offsetY:16,reverse:!0}},slideInRight:{...up,custom:{offsetX:16,reverse:!0}},scale:{...e5,custom:{initialScale:.95,reverse:!0}},none:{}},sL=Y(oi.section),lL=e=>iL[e||"none"],d5=y.forwardRef((e,t)=>{const{preset:n,motionProps:r=lL(n),...o}=e;return w(sL,{ref:t,...r,...o})});d5.displayName="ModalTransition";var uL=Object.defineProperty,cL=(e,t,n)=>t in e?uL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dL=(e,t,n)=>(cL(e,typeof t!="symbol"?t+"":t,n),n),fL=class{constructor(){dL(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},pp=new fL;function f5(e,t){const[n,r]=y.useState(0);return y.useEffect(()=>{const o=e.current;if(o){if(t){const a=pp.add(o);r(a)}return()=>{pp.remove(o),r(0)}}},[t,e]),n}var hL=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yo=new WeakMap,ru=new WeakMap,ou={},m0=0,h5=function(e){return e&&(e.host||h5(e.parentNode))},pL=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=h5(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return Boolean(n)})},mL=function(e,t,n,r){var o=pL(t,Array.isArray(e)?e:[e]);ou[n]||(ou[n]=new WeakMap);var a=ou[n],i=[],s=new Set,l=new Set(o),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))c(f);else{var h=f.getAttribute(r),p=h!==null&&h!=="false",m=(Yo.get(f)||0)+1,x=(a.get(f)||0)+1;Yo.set(f,m),a.set(f,x),i.push(f),m===1&&p&&ru.set(f,!0),x===1&&f.setAttribute(n,"true"),p||f.setAttribute(r,"true")}})};return c(t),s.clear(),m0++,function(){i.forEach(function(d){var f=Yo.get(d)-1,h=a.get(d)-1;Yo.set(d,f),a.set(d,h),f||(ru.has(d)||d.removeAttribute(r),ru.delete(d)),h||d.removeAttribute(n)}),m0--,m0||(Yo=new WeakMap,Yo=new WeakMap,ru=new WeakMap,ou={})}},vL=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||hL(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),mL(r,o,n,"aria-hidden")):function(){return null}};function gL(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:a=!0,useInert:i=!0,onOverlayClick:s,onEsc:l}=e,u=y.useRef(null),c=y.useRef(null),[d,f,h]=bL(r,"chakra-modal","chakra-modal--header","chakra-modal--body");yL(u,t&&i),f5(u,t);const p=y.useRef(null),m=y.useCallback(R=>{p.current=R.target},[]),x=y.useCallback(R=>{R.key==="Escape"&&(R.stopPropagation(),a&&(n==null||n()),l==null||l())},[a,n,l]),[v,g]=y.useState(!1),[b,k]=y.useState(!1),T=y.useCallback((R={},V=null)=>({role:"dialog",...R,ref:lp(V,u),id:d,tabIndex:-1,"aria-modal":!0,"aria-labelledby":v?f:void 0,"aria-describedby":b?h:void 0,onClick:Oi(R.onClick,F=>F.stopPropagation())}),[h,b,d,f,v]),E=y.useCallback(R=>{R.stopPropagation(),p.current===R.target&&pp.isTopModal(u.current)&&(o&&(n==null||n()),s==null||s())},[n,o,s]),P=y.useCallback((R={},V=null)=>({...R,ref:lp(V,c),onClick:Oi(R.onClick,E),onKeyDown:Oi(R.onKeyDown,x),onMouseDown:Oi(R.onMouseDown,m)}),[x,m,E]);return{isOpen:t,onClose:n,headerId:f,bodyId:h,setBodyMounted:k,setHeaderMounted:g,dialogRef:u,overlayRef:c,getDialogProps:T,getDialogContainerProps:P}}function yL(e,t){const n=e.current;y.useEffect(()=>{if(!(!e.current||!t))return vL(e.current)},[t,e,n])}function bL(e,...t){const n=y.useId(),r=e||n;return y.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}var[xL,ii]=Xr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[SL,Ro]=Xr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),p5=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:h,onCloseComplete:p}=t,m=nv("Modal",t),v={...gL(t),autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:h};return w(SL,{value:v,children:w(xL,{value:m,children:w(ll,{onExitComplete:p,children:v.isOpen&&w(rl,{...n,children:r})})})})};p5.displayName="Modal";function kL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var mp="data-focus-lock",m5="data-focus-lock-disabled",wL="data-no-focus-lock",_L="data-autofocus-inside",CL="data-no-autofocus";function TL(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function EL(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function v5(e,t){return EL(t||null,function(n){return e.forEach(function(r){return TL(r,n)})})}var v0={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function g5(e){return e}function y5(e,t){t===void 0&&(t=g5);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var l=function(){var c=i;i=[],c.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){i.push(c),u()},filter:function(c){return i=i.filter(c),n}}}};return o}function Dv(e,t){return t===void 0&&(t=g5),y5(e,t)}function b5(e){e===void 0&&(e={});var t=y5(null);return t.options=_n({async:!0,ssr:!1},e),t}var x5=function(e){var t=e.sideCar,n=Wk(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,_n({},n))};x5.isSideCarExport=!0;function PL(e,t){return e.useMedium(t),x5}var S5=Dv({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),k5=Dv(),ML=Dv(),AL=b5({async:!0}),RL=[],zv=y.forwardRef(function(t,n){var r,o=y.useState(),a=o[0],i=o[1],s=y.useRef(),l=y.useRef(!1),u=y.useRef(null),c=t.children,d=t.disabled,f=t.noFocusGuards,h=t.persistentFocus,p=t.crossFrame,m=t.autoFocus;t.allowTextSelection;var x=t.group,v=t.className,g=t.whiteList,b=t.hasPositiveIndices,k=t.shards,T=k===void 0?RL:k,E=t.as,P=E===void 0?"div":E,R=t.lockProps,V=R===void 0?{}:R,F=t.sideCar,D=t.returnFocus,G=t.focusOptions,X=t.onActivation,Ae=t.onDeactivation,ae=y.useState({}),Oe=ae[0],ge=y.useCallback(function(){u.current=u.current||document&&document.activeElement,s.current&&X&&X(s.current),l.current=!0},[X]),O=y.useCallback(function(){l.current=!1,Ae&&Ae(s.current)},[Ae]);y.useEffect(function(){d||(u.current=null)},[]);var B=y.useCallback(function(Je){var $t=u.current;if($t&&$t.focus){var z=typeof D=="function"?D($t):D;if(z){var H=typeof z=="object"?z:void 0;u.current=null,Je?Promise.resolve().then(function(){return $t.focus(H)}):$t.focus(H)}}},[D]),W=y.useCallback(function(Je){l.current&&S5.useMedium(Je)},[]),ye=k5.useMedium,Te=y.useCallback(function(Je){s.current!==Je&&(s.current=Je,i(Je))},[]),Z=Ao((r={},r[m5]=d&&"disabled",r[mp]=x,r),V),dt=f!==!0,Bn=dt&&f!=="tail",Ze=v5([n,Te]);return y.createElement(y.Fragment,null,dt&&[y.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:v0}),b?y.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:v0}):null],!d&&y.createElement(F,{id:Oe,sideCar:AL,observed:a,disabled:d,persistentFocus:h,crossFrame:p,autoFocus:m,whiteList:g,shards:T,onActivation:ge,onDeactivation:O,returnFocus:B,focusOptions:G}),y.createElement(P,Ao({ref:Ze},Z,{className:v,onBlur:ye,onFocus:W}),c),Bn&&y.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:v0}))});zv.propTypes={};zv.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};const w5=zv;function vp(e,t){return vp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vp(e,t)}function $L(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vp(e,t)}function js(e){return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},js(e)}function NL(e,t){if(js(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(js(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OL(e){var t=NL(e,"string");return js(t)==="symbol"?t:String(t)}function FL(e,t,n){return t=OL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DL(e,t){function n(r){return r.displayName||r.name||"Component"}return function(o){var a=[],i;function s(){i=e(a.map(function(u){return u.props})),t(i)}var l=function(u){$L(c,u);function c(){return u.apply(this,arguments)||this}c.peek=function(){return i};var d=c.prototype;return d.componentDidMount=function(){a.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var h=a.indexOf(this);a.splice(h,1),s()},d.render=function(){return Dn.createElement(o,this.props)},c}(y.PureComponent);return FL(l,"displayName","SideEffect("+n(o)+")"),l}}var In=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},gp=function(e){return Array.isArray(e)?e:[e]},zL=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},_5=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},C5=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},IL=function(e,t){return!e||C5(e)||!zL(e)&&t(_5(e))},T5=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=IL(t,T5.bind(void 0,e));return e.set(t,r),r},LL=function(e,t){return e&&!C5(e)?jL(e)?t(_5(e)):!1:!0},E5=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=LL(t,E5.bind(void 0,e));return e.set(t,r),r},P5=function(e){return e.dataset},BL=function(e){return e.tagName==="BUTTON"},M5=function(e){return e.tagName==="INPUT"},A5=function(e){return M5(e)&&e.type==="radio"},VL=function(e){return!((M5(e)||BL(e))&&(e.type==="hidden"||e.disabled))},jL=function(e){var t=e.getAttribute(CL);return![!0,"true",""].includes(t)},Iv=function(e){var t;return Boolean(e&&((t=P5(e))===null||t===void 0?void 0:t.focusGuard))},Fc=function(e){return!Iv(e)},UL=function(e){return Boolean(e)},WL=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},R5=function(e,t,n){return In(e).map(function(r,o){return{node:r,index:o,tabIndex:n&&r.tabIndex===-1?(r.dataset||{}).focusGuard?0:-1:r.tabIndex}}).filter(function(r){return!t||r.tabIndex>=0}).sort(WL)},HL=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Lv=HL.join(","),YL="".concat(Lv,", [data-focus-guard]"),$5=function(e,t){var n;return In(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(r,o){return r.concat(o.matches(t?YL:Lv)?[o]:[],$5(o))},[])},Bv=function(e,t){return e.reduce(function(n,r){return n.concat($5(r,t),r.parentNode?In(r.parentNode.querySelectorAll(Lv)).filter(function(o){return o===r}):[])},[])},GL=function(e){var t=e.querySelectorAll("[".concat(_L,"]"));return In(t).map(function(n){return Bv([n])}).reduce(function(n,r){return n.concat(r)},[])},Vv=function(e,t){return In(e).filter(function(n){return T5(t,n)}).filter(function(n){return VL(n)})},a9=function(e,t){return t===void 0&&(t=new Map),In(e).filter(function(n){return E5(t,n)})},yp=function(e,t,n){return R5(Vv(Bv(e,n),t),!0,n)},i9=function(e,t){return R5(Vv(Bv(e),t),!1)},qL=function(e,t){return Vv(GL(e),t)},Us=function(e,t){return e.shadowRoot?Us(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:In(e.children).some(function(n){return Us(n,t)})},XL=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var a=e[r].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(i,s){return!t.has(s)})},N5=function(e){return e.parentNode?N5(e.parentNode):e},jv=function(e){var t=gp(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(mp);return n.push.apply(n,o?XL(In(N5(r).querySelectorAll("[".concat(mp,'="').concat(o,'"]:not([').concat(m5,'="disabled"])')))):[r]),n},[])},O5=function(e){return e.activeElement?e.activeElement.shadowRoot?O5(e.activeElement.shadowRoot):e.activeElement:void 0},Uv=function(){return document.activeElement?document.activeElement.shadowRoot?O5(document.activeElement.shadowRoot):document.activeElement:void 0},KL=function(e){return e===document.activeElement},QL=function(e){return Boolean(In(e.querySelectorAll("iframe")).some(function(t){return KL(t)}))},F5=function(e){var t=document&&Uv();return!t||t.dataset&&t.dataset.focusGuard?!1:jv(e).some(function(n){return Us(n,t)||QL(n)})},ZL=function(){var e=document&&Uv();return e?In(document.querySelectorAll("[".concat(wL,"]"))).some(function(t){return Us(t,e)}):!1},JL=function(e,t){return t.filter(A5).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Wv=function(e,t){return A5(e)&&e.name?JL(e,t):e},eB=function(e){var t=new Set;return e.forEach(function(n){return t.add(Wv(n,e))}),e.filter(function(n){return t.has(n)})},s9=function(e){return e[0]&&e.length>1?Wv(e[0],e):e[0]},l9=function(e,t){return e.length>1?e.indexOf(Wv(e[t],e)):t},D5="NEW_FOCUS",tB=function(e,t,n,r){var o=e.length,a=e[0],i=e[o-1],s=Iv(n);if(!(n&&e.indexOf(n)>=0)){var l=n!==void 0?t.indexOf(n):-1,u=r?t.indexOf(r):l,c=r?e.indexOf(r):-1,d=l-u,f=t.indexOf(a),h=t.indexOf(i),p=eB(t),m=n!==void 0?p.indexOf(n):-1,x=m-(r?p.indexOf(r):l),v=l9(e,0),g=l9(e,o-1);if(l===-1||c===-1)return D5;if(!d&&c>=0)return c;if(l<=f&&s&&Math.abs(d)>1)return g;if(l>=h&&s&&Math.abs(d)>1)return v;if(d&&Math.abs(x)>1)return c;if(l<=f)return g;if(l>h)return v;if(d)return Math.abs(d)>1?c:(o+c+d)%o}},nB=function(e){return function(t){var n,r=(n=P5(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},rB=function(e,t,n){var r=e.map(function(a){var i=a.node;return i}),o=a9(r.filter(nB(n)));return o&&o.length?s9(o):s9(a9(t))},bp=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&bp(e.parentNode.host||e.parentNode,t),t},g0=function(e,t){for(var n=bp(e),r=bp(t),o=0;o<n.length;o+=1){var a=n[o];if(r.indexOf(a)>=0)return a}return!1},z5=function(e,t,n){var r=gp(e),o=gp(t),a=r[0],i=!1;return o.filter(Boolean).forEach(function(s){i=g0(i||s,s)||i,n.filter(Boolean).forEach(function(l){var u=g0(a,l);u&&(!i||Us(u,i)?i=u:i=g0(u,i))})}),i},oB=function(e,t){return e.reduce(function(n,r){return n.concat(qL(r,t))},[])},aB=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(UL)},iB=function(e,t){var n=document&&Uv(),r=jv(e).filter(Fc),o=z5(n||e,e,r),a=new Map,i=i9(r,a),s=yp(r,a).filter(function(h){var p=h.node;return Fc(p)});if(!(!s[0]&&(s=i,!s[0]))){var l=i9([o],a).map(function(h){var p=h.node;return p}),u=aB(l,s),c=u.map(function(h){var p=h.node;return p}),d=tB(c,l,n,t);if(d===D5){var f=rB(i,c,oB(r,a));if(f)return{node:f};console.warn("focus-lock: cannot find any node to move focus into");return}return d===void 0?d:u[d]}},sB=function(e){var t=jv(e).filter(Fc),n=z5(e,e,t),r=new Map,o=yp([n],r,!0),a=yp(t,r).filter(function(i){var s=i.node;return Fc(s)}).map(function(i){var s=i.node;return s});return o.map(function(i){var s=i.node,l=i.index;return{node:s,index:l,lockItem:a.indexOf(s)>=0,guard:Iv(s)}})},lB=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},y0=0,b0=!1,uB=function(e,t,n){n===void 0&&(n={});var r=iB(e,t);if(!b0&&r){if(y0>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),b0=!0,setTimeout(function(){b0=!1},1);return}y0++,lB(r.node,n.focusOptions),y0--}};const I5=uB;function L5(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var cB=function(){return document&&document.activeElement===document.body},dB=function(){return cB()||ZL()},Aa=null,ha=null,Ra=null,Ws=!1,fB=function(){return!0},hB=function(t){return(Aa.whiteList||fB)(t)},pB=function(t,n){Ra={observerNode:t,portaledElement:n}},mB=function(t){return Ra&&Ra.portaledElement===t};function u9(e,t,n,r){var o=null,a=e;do{var i=r[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else if(i.lockItem){if(a!==e)return;o=null}else break}while((a+=n)!==t);o&&(o.node.tabIndex=0)}var vB=function(t){return t&&"current"in t?t.current:t},gB=function(t){return t?Boolean(Ws):Ws==="meanwhile"},yB=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},bB=function(t,n){return n.some(function(r){return yB(t,r,r)})},Dc=function(){var t=!1;if(Aa){var n=Aa,r=n.observed,o=n.persistentFocus,a=n.autoFocus,i=n.shards,s=n.crossFrame,l=n.focusOptions,u=r||Ra&&Ra.portaledElement,c=document&&document.activeElement;if(u){var d=[u].concat(i.map(vB).filter(Boolean));if((!c||hB(c))&&(o||gB(s)||!dB()||!ha&&a)&&(u&&!(F5(d)||c&&bB(c,d)||mB(c))&&(document&&!ha&&c&&!a?(c.blur&&c.blur(),document.body.focus()):(t=I5(d,ha,{focusOptions:l}),Ra={})),Ws=!1,ha=document&&document.activeElement),document){var f=document&&document.activeElement,h=sB(d),p=h.map(function(m){var x=m.node;return x}).indexOf(f);p>-1&&(h.filter(function(m){var x=m.guard,v=m.node;return x&&v.dataset.focusAutoGuard}).forEach(function(m){var x=m.node;return x.removeAttribute("tabIndex")}),u9(p,h.length,1,h),u9(p,-1,-1,h))}}}return t},B5=function(t){Dc()&&t&&(t.stopPropagation(),t.preventDefault())},Hv=function(){return L5(Dc)},xB=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||pB(r,n)},SB=function(){return null},V5=function(){Ws="just",setTimeout(function(){Ws="meanwhile"},0)},kB=function(){document.addEventListener("focusin",B5),document.addEventListener("focusout",Hv),window.addEventListener("blur",V5)},wB=function(){document.removeEventListener("focusin",B5),document.removeEventListener("focusout",Hv),window.removeEventListener("blur",V5)};function _B(e){return e.filter(function(t){var n=t.disabled;return!n})}function CB(e){var t=e.slice(-1)[0];t&&!Aa&&kB();var n=Aa,r=n&&t&&t.id===n.id;Aa=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var a=o.id;return a===n.id}).length||n.returnFocus(!t)),t?(ha=null,(!r||n.observed!==t.observed)&&t.onActivation(),Dc(),L5(Dc)):(wB(),ha=null)}S5.assignSyncMedium(xB);k5.assignMedium(Hv);ML.assignMedium(function(e){return e({moveFocusInside:I5,focusInside:F5})});const TB=DL(_B,CB)(SB);var j5=y.forwardRef(function(t,n){return y.createElement(w5,Ao({sideCar:TB,ref:n},t))}),U5=w5.propTypes||{};U5.sideCar;kL(U5,["sideCar"]);j5.propTypes={};const c9=j5;var d9,EB=(d9=c9.default)!=null?d9:c9,W5=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:a,isDisabled:i,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:u}=e,c=y.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&aL(r.current).length===0&&requestAnimationFrame(()=>{var p;(p=r.current)==null||p.focus()})},[t,r]),d=y.useCallback(()=>{var h;(h=n==null?void 0:n.current)==null||h.focus()},[n]);return w(EB,{crossFrame:u,persistentFocus:l,autoFocus:s,disabled:i,onActivation:c,onDeactivation:d,returnFocus:o&&!n,children:a})};W5.displayName="FocusLock";var Fu="right-scroll-bar-position",Du="width-before-scroll-bar",PB="with-scroll-bars-hidden",MB="--removed-body-scroll-bar-size",H5=b5(),x0=function(){},Hd=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:x0,onWheelCapture:x0,onTouchMoveCapture:x0}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noIsolation,p=e.inert,m=e.allowPinchZoom,x=e.as,v=x===void 0?"div":x,g=Wk(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=f,k=v5([n,t]),T=_n(_n({},g),o);return y.createElement(y.Fragment,null,c&&y.createElement(b,{sideCar:H5,removeScrollBar:u,shards:d,noIsolation:h,inert:p,setCallbacks:a,allowPinchZoom:!!m,lockRef:n}),i?y.cloneElement(y.Children.only(s),_n(_n({},T),{ref:k})):y.createElement(v,_n({},T,{className:l,ref:k}),s))});Hd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Hd.classNames={fullWidth:Du,zeroRight:Fu};var AB=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function RB(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=AB();return t&&e.setAttribute("nonce",t),e}function $B(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function NB(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var OB=function(){var e=0,t=null;return{add:function(n){e==0&&(t=RB())&&($B(t,n),NB(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},FB=function(){var e=OB();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Y5=function(){var e=FB(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},DB={left:0,top:0,right:0,gap:0},S0=function(e){return parseInt(e||"",10)||0},zB=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[S0(n),S0(r),S0(o)]},IB=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return DB;var t=zB(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},LB=Y5(),BB=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(PB,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(s,"px ").concat(r,`; + } + body { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(a,`px; + padding-right: `).concat(i,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(s,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Fu,` { + right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Du,` { + margin-right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Fu," .").concat(Fu,` { + right: 0 `).concat(r,`; + } + + .`).concat(Du," .").concat(Du,` { + margin-right: 0 `).concat(r,`; + } + + body { + `).concat(MB,": ").concat(s,`px; + } +`)},VB=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=y.useMemo(function(){return IB(o)},[o]);return y.createElement(LB,{styles:BB(a,!t,o,n?"":"!important")})},xp=!1;if(typeof window<"u")try{var au=Object.defineProperty({},"passive",{get:function(){return xp=!0,!0}});window.addEventListener("test",au,au),window.removeEventListener("test",au,au)}catch{xp=!1}var Go=xp?{passive:!1}:!1,jB=function(e){return e.tagName==="TEXTAREA"},G5=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!jB(e)&&n[t]==="visible")},UB=function(e){return G5(e,"overflowY")},WB=function(e){return G5(e,"overflowX")},f9=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=q5(e,n);if(r){var o=X5(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},HB=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},YB=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},q5=function(e,t){return e==="v"?UB(t):WB(t)},X5=function(e,t){return e==="v"?HB(t):YB(t)},GB=function(e,t){return e==="h"&&t==="rtl"?-1:1},qB=function(e,t,n,r,o){var a=GB(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),u=!1,c=i>0,d=0,f=0;do{var h=X5(e,s),p=h[0],m=h[1],x=h[2],v=m-x-a*p;(p||v)&&q5(e,s)&&(d+=v,f+=p),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(o&&d===0||!o&&i>d)||!c&&(o&&f===0||!o&&-i>f))&&(u=!0),u},iu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},h9=function(e){return[e.deltaX,e.deltaY]},p9=function(e){return e&&"current"in e?e.current:e},XB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},KB=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},QB=0,qo=[];function ZB(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),o=y.useState(QB++)[0],a=y.useState(function(){return Y5()})[0],i=y.useRef(e);y.useEffect(function(){i.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Jz([e.lockRef.current],(e.shards||[]).map(p9),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=y.useCallback(function(m,x){if("touches"in m&&m.touches.length===2)return!i.current.allowPinchZoom;var v=iu(m),g=n.current,b="deltaX"in m?m.deltaX:g[0]-v[0],k="deltaY"in m?m.deltaY:g[1]-v[1],T,E=m.target,P=Math.abs(b)>Math.abs(k)?"h":"v";if("touches"in m&&P==="h"&&E.type==="range")return!1;var R=f9(P,E);if(!R)return!0;if(R?T=P:(T=P==="v"?"h":"v",R=f9(P,E)),!R)return!1;if(!r.current&&"changedTouches"in m&&(b||k)&&(r.current=T),!T)return!0;var V=r.current||T;return qB(V,x,m,V==="h"?b:k,!0)},[]),l=y.useCallback(function(m){var x=m;if(!(!qo.length||qo[qo.length-1]!==a)){var v="deltaY"in x?h9(x):iu(x),g=t.current.filter(function(T){return T.name===x.type&&T.target===x.target&&XB(T.delta,v)})[0];if(g&&g.should){x.cancelable&&x.preventDefault();return}if(!g){var b=(i.current.shards||[]).map(p9).filter(Boolean).filter(function(T){return T.contains(x.target)}),k=b.length>0?s(x,b[0]):!i.current.noIsolation;k&&x.cancelable&&x.preventDefault()}}},[]),u=y.useCallback(function(m,x,v,g){var b={name:m,delta:x,target:v,should:g};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(k){return k!==b})},1)},[]),c=y.useCallback(function(m){n.current=iu(m),r.current=void 0},[]),d=y.useCallback(function(m){u(m.type,h9(m),m.target,s(m,e.lockRef.current))},[]),f=y.useCallback(function(m){u(m.type,iu(m),m.target,s(m,e.lockRef.current))},[]);y.useEffect(function(){return qo.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Go),document.addEventListener("touchmove",l,Go),document.addEventListener("touchstart",c,Go),function(){qo=qo.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,Go),document.removeEventListener("touchmove",l,Go),document.removeEventListener("touchstart",c,Go)}},[]);var h=e.removeScrollBar,p=e.inert;return y.createElement(y.Fragment,null,p?y.createElement(a,{styles:KB(o)}):null,h?y.createElement(VB,{gapMode:"margin"}):null)}const JB=PL(H5,ZB);var K5=y.forwardRef(function(e,t){return y.createElement(Hd,_n({},e,{ref:t,sideCar:JB}))});K5.classNames=Hd.classNames;const eV=K5;function tV(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:a,allowPinchZoom:i,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:c,isOpen:d}=Ro(),[f,h]=mv();y.useEffect(()=>{!f&&h&&setTimeout(h)},[f,h]);const p=f5(r,d);return w(W5,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:c,children:w(eV,{removeScrollBar:!u,allowPinchZoom:i,enabled:p===1&&a,forwardProps:!0,children:e.children})})}var Q5=fe((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:a,...i}=e,{getDialogProps:s,getDialogContainerProps:l}=Ro(),u=s(i,t),c=l(o),d=ve("chakra-modal__content",n),f=ii(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},p={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{motionPreset:m}=Ro();return w(tV,{children:w(Y.div,{...c,className:"chakra-modal__content-container",tabIndex:-1,__css:p,children:w(d5,{preset:m,motionProps:a,className:d,...u,__css:h,children:r})})})});Q5.displayName="ModalContent";var Z5=fe((e,t)=>{const{className:n,...r}=e,o=ve("chakra-modal__footer",n),i={display:"flex",alignItems:"center",justifyContent:"flex-end",...ii().footer};return w(Y.footer,{ref:t,...r,__css:i,className:o})});Z5.displayName="ModalFooter";var J5=fe((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:a}=Ro();y.useEffect(()=>(a(!0),()=>a(!1)),[a]);const i=ve("chakra-modal__header",n),l={flex:0,...ii().header};return w(Y.header,{ref:t,className:i,id:o,...r,__css:l})});J5.displayName="ModalHeader";var nV=Y(oi.div),ew=fe((e,t)=>{const{className:n,transition:r,motionProps:o,...a}=e,i=ve("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...ii().overlay},{motionPreset:u}=Ro();return w(nV,{...o||(u==="none"?{}:Jk),__css:l,ref:t,className:i,...a})});ew.displayName="ModalOverlay";var tw=fe((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:a}=Ro();y.useEffect(()=>(a(!0),()=>a(!1)),[a]);const i=ve("chakra-modal__body",n),s=ii();return w(Y.div,{ref:t,className:i,id:o,...r,__css:s.body})});tw.displayName="ModalBody";var nw=fe((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:a}=Ro(),i=ve("chakra-modal__close-btn",r),s=ii();return w(Ov,{ref:t,__css:s.closeButton,className:i,onClick:Oi(n,l=>{l.stopPropagation(),a()}),...o})});nw.displayName="ModalCloseButton";var Sp=e=>w(Y.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});Sp.displayName="Circle";function rV(e,t,n){return(e-t)*100/(n-t)}var oV=nl({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),aV=nl({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});nl({"0%":{left:"-40%"},"100%":{left:"100%"}});nl({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function iV(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:a,isIndeterminate:i,role:s="progressbar"}=e,l=rV(t,n,r);return{bind:{"data-indeterminate":i?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":i?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof a=="function"?a(t,l):o})(),role:s},percent:l,value:t}}var rw=e=>{const{size:t,isIndeterminate:n,...r}=e;return w(Y.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:n?`${aV} 2s linear infinite`:void 0},...r})};rw.displayName="Shape";var ow=fe((e,t)=>{var n;const{size:r="48px",max:o=100,min:a=0,valueText:i,getValueText:s,value:l,capIsRound:u,children:c,thickness:d="10px",color:f="#0078d4",trackColor:h="#edebe9",isIndeterminate:p,...m}=e,x=iV({min:a,max:o,value:l,valueText:i,getValueText:s,isIndeterminate:p}),v=p?void 0:((n=x.percent)!=null?n:0)*2.64,g=v==null?void 0:`${v} ${264-v}`,b=p?{css:{animation:`${oV} 1.5s linear infinite`}}:{strokeDashoffset:66,strokeDasharray:g,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"},k={display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:r};return ce(Y.div,{ref:t,className:"chakra-progress",...x.bind,...m,__css:k,children:[ce(rw,{size:r,isIndeterminate:p,children:[w(Sp,{stroke:h,strokeWidth:d,className:"chakra-progress__track"}),w(Sp,{stroke:f,strokeWidth:d,className:"chakra-progress__indicator",strokeLinecap:u?"round":void 0,opacity:x.value===0&&!p?0:void 0,...b})]}),c]})});ow.displayName="CircularProgress";/** + * @remix-run/router v1.3.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Hs(){return Hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hs.apply(this,arguments)}var Rr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Rr||(Rr={}));const m9="popstate";function sV(e){e===void 0&&(e={});function t(r,o){let{pathname:a,search:i,hash:s}=r.location;return kp("",{pathname:a,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:zc(o)}return cV(t,n,null,e)}function We(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function lV(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uV(){return Math.random().toString(36).substr(2,8)}function v9(e,t){return{usr:e.state,key:e.key,idx:t}}function kp(e,t,n,r){return n===void 0&&(n=null),Hs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?si(t):t,{state:n,key:t&&t.key||r||uV()})}function zc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function si(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function cV(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s=Rr.Pop,l=null,u=c();u==null&&(u=0,i.replaceState(Hs({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function d(){let x=Rr.Pop,v=c();if(v!=null){let g=v-u;s=x,u=v,l&&l({action:s,location:m.location,delta:g})}else lV(!1,"You are trying to block a POP navigation to a location that was not created by @remix-run/router. The block will fail silently in production, but in general you should do all navigation with the router (instead of using window.history.pushState directly) to avoid this situation.")}function f(x,v){s=Rr.Push;let g=kp(m.location,x,v);n&&n(g,x),u=c()+1;let b=v9(g,u),k=m.createHref(g);try{i.pushState(b,"",k)}catch{o.location.assign(k)}a&&l&&l({action:s,location:m.location,delta:1})}function h(x,v){s=Rr.Replace;let g=kp(m.location,x,v);n&&n(g,x),u=c();let b=v9(g,u),k=m.createHref(g);i.replaceState(b,"",k),a&&l&&l({action:s,location:m.location,delta:0})}function p(x){let v=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof x=="string"?x:zc(x);return We(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let m={get action(){return s},get location(){return e(o,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(m9,d),l=x,()=>{o.removeEventListener(m9,d),l=null}},createHref(x){return t(o,x)},createURL:p,encodeLocation(x){let v=p(x);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(x){return i.go(x)}};return m}var g9;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(g9||(g9={}));function dV(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?si(t):t,o=sw(r.pathname||"/",n);if(o==null)return null;let a=aw(e);fV(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=SV(a[s],_V(o));return i}function aw(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(We(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Br([r,l.relativePath]),c=n.concat(l);a.children&&a.children.length>0&&(We(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),aw(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:bV(u,a.index),routesMeta:c})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of iw(a.path))o(a,i,l)}),t}function iw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=iw(r.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function fV(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xV(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const hV=/^:\w+$/,pV=3,mV=2,vV=1,gV=10,yV=-2,y9=e=>e==="*";function bV(e,t){let n=e.split("/"),r=n.length;return n.some(y9)&&(r+=yV),t&&(r+=mV),n.filter(o=>!y9(o)).reduce((o,a)=>o+(hV.test(a)?pV:a===""?vV:gV),r)}function xV(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function SV(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let i=0;i<n.length;++i){let s=n[i],l=i===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=kV({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!c)return null;Object.assign(r,c.params);let d=s.route;a.push({params:r,pathname:Br([o,c.pathname]),pathnameBase:PV(Br([o,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(o=Br([o,c.pathnameBase]))}return a}function kV(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=wV(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,c,d)=>{if(c==="*"){let f=s[d]||"";i=a.slice(0,a.length-f.length).replace(/(.)\/+$/,"$1")}return u[c]=CV(s[d]||"",c),u},{}),pathname:a,pathnameBase:i,pattern:e}}function wV(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Yv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function _V(e){try{return decodeURI(e)}catch(t){return Yv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function CV(e,t){try{return decodeURIComponent(e)}catch(n){return Yv(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function sw(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Yv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function TV(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?si(e):e;return{pathname:n?n.startsWith("/")?n:EV(n,t):t,search:MV(r),hash:AV(o)}}function EV(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function k0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function lw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function uw(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=si(e):(o=Hs({},e),We(!o.pathname||!o.pathname.includes("?"),k0("?","pathname","search",o)),We(!o.pathname||!o.pathname.includes("#"),k0("#","pathname","hash",o)),We(!o.search||!o.search.includes("#"),k0("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(r||i==null)s=n;else{let d=t.length-1;if(i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=TV(o,s),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Br=e=>e.join("/").replace(/\/\/+/g,"/"),PV=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),MV=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AV=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class RV{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function $V(e){return e instanceof RV}const NV=["post","put","patch","delete"];[...NV];/** + * React Router v6.7.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wp.apply(this,arguments)}function OV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const FV=typeof Object.is=="function"?Object.is:OV,{useState:DV,useEffect:zV,useLayoutEffect:IV,useDebugValue:LV}=cs;function BV(e,t,n){const r=t(),[{inst:o},a]=DV({inst:{value:r,getSnapshot:t}});return IV(()=>{o.value=r,o.getSnapshot=t,w0(o)&&a({inst:o})},[e,r,t]),zV(()=>(w0(o)&&a({inst:o}),e(()=>{w0(o)&&a({inst:o})})),[e]),LV(r),r}function w0(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!FV(n,r)}catch{return!0}}function VV(e,t,n){return t()}const jV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UV=!jV,WV=UV?VV:BV;"useSyncExternalStore"in cs&&(e=>e.useSyncExternalStore)(cs);const cw=y.createContext(null),Gv=y.createContext(null),ul=y.createContext(null),Yd=y.createContext(null),Qr=y.createContext({outlet:null,matches:[]}),dw=y.createContext(null);function HV(e,t){let{relative:n}=t===void 0?{}:t;cl()||We(!1);let{basename:r,navigator:o}=y.useContext(ul),{hash:a,pathname:i,search:s}=Xv(e,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:Br([r,i])),o.createHref({pathname:l,search:s,hash:a})}function cl(){return y.useContext(Yd)!=null}function dl(){return cl()||We(!1),y.useContext(Yd).location}function qv(){cl()||We(!1);let{basename:e,navigator:t}=y.useContext(ul),{matches:n}=y.useContext(Qr),{pathname:r}=dl(),o=JSON.stringify(lw(n).map(s=>s.pathnameBase)),a=y.useRef(!1);return y.useEffect(()=>{a.current=!0}),y.useCallback(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let u=uw(s,JSON.parse(o),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Br([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,o,r])}const YV=y.createContext(null);function GV(e){let t=y.useContext(Qr).outlet;return t&&y.createElement(YV.Provider,{value:e},t)}function qV(){let{matches:e}=y.useContext(Qr),t=e[e.length-1];return t?t.params:{}}function Xv(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=y.useContext(Qr),{pathname:o}=dl(),a=JSON.stringify(lw(r).map(i=>i.pathnameBase));return y.useMemo(()=>uw(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function XV(e,t){cl()||We(!1);let{navigator:n}=y.useContext(ul),r=y.useContext(Gv),{matches:o}=y.useContext(Qr),a=o[o.length-1],i=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=dl(),u;if(t){var c;let m=typeof t=="string"?si(t):t;s==="/"||(c=m.pathname)!=null&&c.startsWith(s)||We(!1),u=m}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=dV(e,{pathname:f}),p=JV(h&&h.map(m=>Object.assign({},m,{params:Object.assign({},i,m.params),pathname:Br([s,n.encodeLocation?n.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?s:Br([s,n.encodeLocation?n.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,r||void 0);return t&&p?y.createElement(Yd.Provider,{value:{location:wp({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Rr.Pop}},p):p}function KV(){let e=rj(),t=$V(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unhandled Thrown Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:a},"errorElement")," props on ",y.createElement("code",{style:a},"<Route>")))}class QV extends y.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?y.createElement(Qr.Provider,{value:this.props.routeContext},y.createElement(dw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ZV(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(cw);return o&&o.static&&o.staticContext&&n.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Qr.Provider,{value:t},r)}function JV(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let a=r.findIndex(i=>i.route.id&&(o==null?void 0:o[i.route.id]));a>=0||We(!1),r=r.slice(0,Math.min(r.length,a+1))}return r.reduceRight((a,i,s)=>{let l=i.route.id?o==null?void 0:o[i.route.id]:null,u=n?i.route.errorElement||y.createElement(KV,null):null,c=t.concat(r.slice(0,s+1)),d=()=>y.createElement(ZV,{match:i,routeContext:{outlet:a,matches:c}},l?u:i.route.element!==void 0?i.route.element:a);return n&&(i.route.errorElement||s===0)?y.createElement(QV,{location:n.location,component:u,error:l,children:d(),routeContext:{outlet:null,matches:c}}):d()},null)}var b9;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(b9||(b9={}));var Ic;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Ic||(Ic={}));function ej(e){let t=y.useContext(Gv);return t||We(!1),t}function tj(e){let t=y.useContext(Qr);return t||We(!1),t}function nj(e){let t=tj(),n=t.matches[t.matches.length-1];return n.route.id||We(!1),n.route.id}function rj(){var e;let t=y.useContext(dw),n=ej(Ic.UseRouteError),r=nj(Ic.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function oj(e){return GV(e.context)}function Sr(e){We(!1)}function aj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Rr.Pop,navigator:a,static:i=!1}=e;cl()&&We(!1);let s=t.replace(/^\/*/,"/"),l=y.useMemo(()=>({basename:s,navigator:a,static:i}),[s,a,i]);typeof r=="string"&&(r=si(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=y.useMemo(()=>{let m=sw(u,s);return m==null?null:{pathname:m,search:c,hash:d,state:f,key:h}},[s,u,c,d,f,h]);return p==null?null:y.createElement(ul.Provider,{value:l},y.createElement(Yd.Provider,{children:n,value:{location:p,navigationType:o}}))}function ij(e){let{children:t,location:n}=e,r=y.useContext(cw),o=r&&!t?r.router.routes:_p(t);return XV(o,n)}var x9;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(x9||(x9={}));new Promise(()=>{});function _p(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,o)=>{if(!y.isValidElement(r))return;if(r.type===y.Fragment){n.push.apply(n,_p(r.props.children,t));return}r.type!==Sr&&We(!1),!r.props.index||!r.props.children||We(!1);let a=[...t,o],i={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(i.children=_p(r.props.children,a)),n.push(i)}),n}/** + * React Router DOM v6.7.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lc.apply(this,arguments)}function fw(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function sj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lj(e,t){return e.button===0&&(!t||t==="_self")&&!sj(e)}const uj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],cj=["aria-current","caseSensitive","className","end","style","to","children"];function dj(e){let{basename:t,children:n,window:r}=e,o=y.useRef();o.current==null&&(o.current=sV({window:r,v5Compat:!0}));let a=o.current,[i,s]=y.useState({action:a.action,location:a.location});return y.useLayoutEffect(()=>a.listen(s),[a]),y.createElement(aj,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:a})}const fj=y.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:i,state:s,target:l,to:u,preventScrollReset:c}=t,d=fw(t,uj),f=HV(u,{relative:o}),h=hj(u,{replace:i,state:s,target:l,preventScrollReset:c,relative:o});function p(m){r&&r(m),m.defaultPrevented||h(m)}return y.createElement("a",Lc({},d,{href:f,onClick:a?r:p,ref:n,target:l}))}),Wa=y.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:a="",end:i=!1,style:s,to:l,children:u}=t,c=fw(t,cj),d=Xv(l,{relative:c.relative}),f=dl(),h=y.useContext(Gv),{navigator:p}=y.useContext(ul),m=p.encodeLocation?p.encodeLocation(d).pathname:d.pathname,x=f.pathname,v=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;o||(x=x.toLowerCase(),v=v?v.toLowerCase():null,m=m.toLowerCase());let g=x===m||!i&&x.startsWith(m)&&x.charAt(m.length)==="/",b=v!=null&&(v===m||!i&&v.startsWith(m)&&v.charAt(m.length)==="/"),k=g?r:void 0,T;typeof a=="function"?T=a({isActive:g,isPending:b}):T=[a,g?"active":null,b?"pending":null].filter(Boolean).join(" ");let E=typeof s=="function"?s({isActive:g,isPending:b}):s;return y.createElement(fj,Lc({},c,{"aria-current":k,className:T,ref:n,style:E,to:l}),typeof u=="function"?u({isActive:g,isPending:b}):u)});var S9;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(S9||(S9={}));var k9;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(k9||(k9={}));function hj(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i}=t===void 0?{}:t,s=qv(),l=dl(),u=Xv(e,{relative:i});return y.useCallback(c=>{if(lj(c,n)){c.preventDefault();let d=r!==void 0?r:zc(l)===zc(u);s(e,{replace:d,state:o,preventScrollReset:a,relative:i})}},[l,s,u,r,o,n,e,a,i])}const w9=e=>w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2000 2000",...e,children:w("path",{d:"M1000 0C447.68 0 0 447.72 0 1000s447.68 1000 1000 1000 1000-447.72 1000-1000S1552.4 0 1000 0zm-86.88 1595.07L482 1346.21v-502L913.12 1077zm76.8-636.19L479.84 688.5 989.92 394l510.16 294.5zm510.48 388.29-429.52 248V1079l429.52-232z",fill:"#fff"})}),_9=e=>{let t;const n=new Set,r=(l,u)=>{const c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},o=()=>t,s={setState:r,getState:o,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{({VITE_SKETCHFAB_OAUTH_URL:"https://sketchfab.com/oauth2/authorize/?state=123456789&response_type=token&client_id=9NfRZIhBKq5ilnbqgOhIk6QpsGE1MJIs2AnOoH0y",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&console.warn("[DEPRECATED] The destroy method will be unsupported in the future version. You should use unsubscribe function returned by subscribe. Everything will be garbage collected if store is garbage collected."),n.clear()}};return t=e(r,o,s),s},pj=e=>e?_9(e):_9;var Cp={},mj={get exports(){return Cp},set exports(e){Cp=e}},hw={},Tp={},vj={get exports(){return Tp},set exports(e){Tp=e}},pw={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ha=y;function gj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yj=typeof Object.is=="function"?Object.is:gj,bj=Ha.useState,xj=Ha.useEffect,Sj=Ha.useLayoutEffect,kj=Ha.useDebugValue;function wj(e,t){var n=t(),r=bj({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return Sj(function(){o.value=n,o.getSnapshot=t,_0(o)&&a({inst:o})},[e,n,t]),xj(function(){return _0(o)&&a({inst:o}),e(function(){_0(o)&&a({inst:o})})},[e]),kj(n),n}function _0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yj(e,n)}catch{return!0}}function _j(e,t){return t()}var Cj=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_j:wj;pw.useSyncExternalStore=Ha.useSyncExternalStore!==void 0?Ha.useSyncExternalStore:Cj;(function(e){e.exports=pw})(vj);/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gd=y,Tj=Tp;function Ej(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pj=typeof Object.is=="function"?Object.is:Ej,Mj=Tj.useSyncExternalStore,Aj=Gd.useRef,Rj=Gd.useEffect,$j=Gd.useMemo,Nj=Gd.useDebugValue;hw.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=Aj(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=$j(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),o!==void 0&&i.hasValue){var p=i.value;if(o(p,h))return d=p}return d=h}if(p=d,Pj(c,h))return p;var m=r(h);return o!==void 0&&o(p,m)?p:(c=h,d=m)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,o]);var s=Mj(e,a[0],a[1]);return Rj(function(){i.hasValue=!0,i.value=s},[s]),Nj(s),s};(function(e){e.exports=hw})(mj);const Oj=g3(Cp),{useSyncExternalStoreWithSelector:Fj}=Oj;function Dj(e,t=e.getState,n){const r=Fj(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return y.useDebugValue(r),r}const C9=e=>{({VITE_SKETCHFAB_OAUTH_URL:"https://sketchfab.com/oauth2/authorize/?state=123456789&response_type=token&client_id=9NfRZIhBKq5ilnbqgOhIk6QpsGE1MJIs2AnOoH0y",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&typeof e!="function"&&console.warn('[DEPRECATED] Passing a vanilla store will be unsupported in the future version. Please use `import { useStore } from "zustand"` to use the vanilla store in React.');const t=typeof e=="function"?pj(e):e,n=(r,o)=>Dj(t,r,o);return Object.assign(n,t),n},zj=e=>e?C9(e):C9,Ep=zj()(e=>({sketchfabAccessToken:null,setSketchfabAccessToken:t=>e({sketchfabAccessToken:t})}));function mw(e,t){return function(){return e.apply(t,arguments)}}const{toString:vw}=Object.prototype,{getPrototypeOf:Kv}=Object,Qv=(e=>t=>{const n=vw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pr=e=>(e=e.toLowerCase(),t=>Qv(t)===e),qd=e=>t=>typeof t===e,{isArray:li}=Array,Ys=qd("undefined");function Ij(e){return e!==null&&!Ys(e)&&e.constructor!==null&&!Ys(e.constructor)&&$o(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gw=pr("ArrayBuffer");function Lj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gw(e.buffer),t}const Bj=qd("string"),$o=qd("function"),yw=qd("number"),Zv=e=>e!==null&&typeof e=="object",Vj=e=>e===!0||e===!1,zu=e=>{if(Qv(e)!=="object")return!1;const t=Kv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jj=pr("Date"),Uj=pr("File"),Wj=pr("Blob"),Hj=pr("FileList"),Yj=e=>Zv(e)&&$o(e.pipe),Gj=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||vw.call(e)===t||$o(e.toString)&&e.toString()===t)},qj=pr("URLSearchParams"),Xj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),li(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let s;for(r=0;r<i;r++)s=a[r],t.call(null,e[s],s,e)}}function bw(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const xw=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Sw=e=>!Ys(e)&&e!==xw;function Pp(){const{caseless:e}=Sw(this)&&this||{},t={},n=(r,o)=>{const a=e&&bw(t,o)||o;zu(t[a])&&zu(r)?t[a]=Pp(t[a],r):zu(r)?t[a]=Pp({},r):li(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&fl(arguments[r],n);return t}const Kj=(e,t,n,{allOwnKeys:r}={})=>(fl(t,(o,a)=>{n&&$o(o)?e[a]=mw(o,n):e[a]=o},{allOwnKeys:r}),e),Qj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zj=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Jj=(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!r||r(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&Kv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},eU=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},tU=e=>{if(!e)return null;if(li(e))return e;let t=e.length;if(!yw(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nU=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Kv(Uint8Array)),rU=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},oU=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},aU=pr("HTMLFormElement"),iU=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),T9=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sU=pr("RegExp"),kw=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};fl(n,(o,a)=>{t(o,a,e)!==!1&&(r[a]=o)}),Object.defineProperties(e,r)},lU=e=>{kw(e,(t,n)=>{if($o(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if($o(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uU=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return li(e)?r(e):r(String(e).split(t)),n},cU=()=>{},dU=(e,t)=>(e=+e,Number.isFinite(e)?e:t),fU=e=>{const t=new Array(10),n=(r,o)=>{if(Zv(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=li(r)?[]:{};return fl(r,(i,s)=>{const l=n(i,o+1);!Ys(l)&&(a[s]=l)}),t[o]=void 0,a}}return r};return n(e,0)},A={isArray:li,isArrayBuffer:gw,isBuffer:Ij,isFormData:Gj,isArrayBufferView:Lj,isString:Bj,isNumber:yw,isBoolean:Vj,isObject:Zv,isPlainObject:zu,isUndefined:Ys,isDate:jj,isFile:Uj,isBlob:Wj,isRegExp:sU,isFunction:$o,isStream:Yj,isURLSearchParams:qj,isTypedArray:nU,isFileList:Hj,forEach:fl,merge:Pp,extend:Kj,trim:Xj,stripBOM:Qj,inherits:Zj,toFlatObject:Jj,kindOf:Qv,kindOfTest:pr,endsWith:eU,toArray:tU,forEachEntry:rU,matchAll:oU,isHTMLForm:aU,hasOwnProperty:T9,hasOwnProp:T9,reduceDescriptors:kw,freezeMethods:lU,toObjectSet:uU,toCamelCase:iU,noop:cU,toFiniteNumber:dU,findKey:bw,global:xw,isContextDefined:Sw,toJSONObject:fU};function te(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}A.inherits(te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ww=te.prototype,_w={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_w[e]={value:e}});Object.defineProperties(te,_w);Object.defineProperty(ww,"isAxiosError",{value:!0});te.from=(e,t,n,r,o,a)=>{const i=Object.create(ww);return A.toFlatObject(e,i,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),te.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};var hU=typeof self=="object"?self.FormData:window.FormData;const pU=hU;function Mp(e){return A.isPlainObject(e)||A.isArray(e)}function Cw(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function E9(e,t,n){return e?e.concat(t).map(function(o,a){return o=Cw(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function mU(e){return A.isArray(e)&&!e.some(Mp)}const vU=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function gU(e){return e&&A.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Xd(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new(pU||FormData),n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,x){return!A.isUndefined(x[m])});const r=n.metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&gU(t);if(!A.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(A.isDate(p))return p.toISOString();if(!l&&A.isBlob(p))throw new te("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(p)||A.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,m,x){let v=p;if(p&&!x&&typeof p=="object"){if(A.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(A.isArray(p)&&mU(p)||A.isFileList(p)||A.endsWith(m,"[]")&&(v=A.toArray(p)))return m=Cw(m),v.forEach(function(b,k){!(A.isUndefined(b)||b===null)&&t.append(i===!0?E9([m],k,a):i===null?m:m+"[]",u(b))}),!1}return Mp(p)?!0:(t.append(E9(x,m,a),u(p)),!1)}const d=[],f=Object.assign(vU,{defaultVisitor:c,convertValue:u,isVisitable:Mp});function h(p,m){if(!A.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),A.forEach(p,function(v,g){(!(A.isUndefined(v)||v===null)&&o.call(t,v,A.isString(g)?g.trim():g,m,f))===!0&&h(v,m?m.concat(g):[g])}),d.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return h(e),t}function P9(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Jv(e,t){this._pairs=[],e&&Xd(e,this,t)}const Tw=Jv.prototype;Tw.append=function(t,n){this._pairs.push([t,n])};Tw.toString=function(t){const n=t?function(r){return t.call(this,r,P9)}:P9;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function yU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ew(e,t,n){if(!t)return e;const r=n&&n.encode||yU,o=n&&n.serialize;let a;if(o?a=o(t,n):a=A.isURLSearchParams(t)?t.toString():new Jv(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class bU{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const M9=bU,Pw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xU=typeof URLSearchParams<"u"?URLSearchParams:Jv,SU=FormData,kU=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),wU=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Pn={isBrowser:!0,classes:{URLSearchParams:xU,FormData:SU,Blob},isStandardBrowserEnv:kU,isStandardBrowserWebWorkerEnv:wU,protocols:["http","https","file","blob","url","data"]};function _U(e,t){return Xd(e,new Pn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Pn.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function CU(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function TU(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function Mw(e){function t(n,r,o,a){let i=n[a++];const s=Number.isFinite(+i),l=a>=n.length;return i=!i&&A.isArray(o)?o.length:i,l?(A.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!s):((!o[i]||!A.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],a)&&A.isArray(o[i])&&(o[i]=TU(o[i])),!s)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,o)=>{t(CU(r),o,n,0)}),n}return null}const EU={"Content-Type":void 0};function PU(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Kd={transitional:Pw,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=A.isObject(t);if(a&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return o&&o?JSON.stringify(Mw(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _U(t,this.formSerializer).toString();if((s=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Xd(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),PU(t)):t}],transformResponse:[function(t){const n=this.transitional||Kd.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&A.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?te.from(s,te.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pn.classes.FormData,Blob:Pn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};A.forEach(["delete","get","head"],function(t){Kd.headers[t]={}});A.forEach(["post","put","patch"],function(t){Kd.headers[t]=A.merge(EU)});const e1=Kd,MU=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AU=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&MU[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},A9=Symbol("internals");function Ci(e){return e&&String(e).trim().toLowerCase()}function Iu(e){return e===!1||e==null?e:A.isArray(e)?e.map(Iu):String(e)}function RU(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function $U(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function R9(e,t,n,r){if(A.isFunction(r))return r.call(this,t,n);if(A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function NU(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function OU(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,i){return this[r].call(this,t,o,a,i)},configurable:!0})})}class Qd{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(s,l,u){const c=Ci(l);if(!c)throw new Error("header name must be a non-empty string");const d=A.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=Iu(s))}const i=(s,l)=>A.forEach(s,(u,c)=>a(u,c,l));return A.isPlainObject(t)||t instanceof this.constructor?i(t,n):A.isString(t)&&(t=t.trim())&&!$U(t)?i(AU(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=Ci(t),t){const r=A.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return RU(o);if(A.isFunction(n))return n.call(this,o,r);if(A.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ci(t),t){const r=A.findKey(this,t);return!!(r&&(!n||R9(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=Ci(i),i){const s=A.findKey(r,i);s&&(!n||R9(r,r[s],s,n))&&(delete r[s],o=!0)}}return A.isArray(t)?t.forEach(a):a(t),o}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,r={};return A.forEach(this,(o,a)=>{const i=A.findKey(r,a);if(i){n[i]=Iu(o),delete n[a];return}const s=t?NU(a):String(a).trim();s!==a&&delete n[a],n[s]=Iu(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&A.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[A9]=this[A9]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=Ci(i);r[s]||(OU(o,i),r[s]=!0)}return A.isArray(t)?t.forEach(a):a(t),this}}Qd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);A.freezeMethods(Qd.prototype);A.freezeMethods(Qd);const or=Qd;function C0(e,t){const n=this||e1,r=t||n,o=or.from(r.headers);let a=r.data;return A.forEach(e,function(s){a=s.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Aw(e){return!!(e&&e.__CANCEL__)}function hl(e,t,n){te.call(this,e??"canceled",te.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(hl,te,{__CANCEL__:!0});const FU=null;function DU(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new te("Request failed with status code "+n.status,[te.ERR_BAD_REQUEST,te.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const zU=Pn.isStandardBrowserEnv?function(){return{write:function(n,r,o,a,i,s){const l=[];l.push(n+"="+encodeURIComponent(r)),A.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),A.isString(a)&&l.push("path="+a),A.isString(i)&&l.push("domain="+i),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function IU(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function LU(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Rw(e,t){return e&&!IU(t)?LU(e,t):t}const BU=Pn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(a){let i=a;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const s=A.isString(i)?o(i):i;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function VU(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jU(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[a];i||(i=u),n[o]=l,r[o]=u;let d=a,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const h=c&&u-c;return h?Math.round(f*1e3/h):void 0}}function $9(e,t){let n=0;const r=jU(50,250);return o=>{const a=o.loaded,i=o.lengthComputable?o.total:void 0,s=a-n,l=r(s),u=a<=i;n=a;const c={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&u?(i-a)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const UU=typeof XMLHttpRequest<"u",WU=UU&&function(e){return new Promise(function(n,r){let o=e.data;const a=or.from(e.headers).normalize(),i=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}A.isFormData(o)&&(Pn.isStandardBrowserEnv||Pn.isStandardBrowserWebWorkerEnv)&&a.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(h+":"+p))}const c=Rw(e.baseURL,e.url);u.open(e.method.toUpperCase(),Ew(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const h=or.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),m={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:e,request:u};DU(function(v){n(v),l()},function(v){r(v),l()},m),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new te("Request aborted",te.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new te("Network Error",te.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Pw;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),r(new te(p,m.clarifyTimeoutError?te.ETIMEDOUT:te.ECONNABORTED,e,u)),u=null},Pn.isStandardBrowserEnv){const h=(e.withCredentials||BU(c))&&e.xsrfCookieName&&zU.read(e.xsrfCookieName);h&&a.set(e.xsrfHeaderName,h)}o===void 0&&a.setContentType(null),"setRequestHeader"in u&&A.forEach(a.toJSON(),function(p,m){u.setRequestHeader(m,p)}),A.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",$9(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",$9(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=h=>{u&&(r(!h||h.type?new hl(null,e,u):h),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=VU(c);if(f&&Pn.protocols.indexOf(f)===-1){r(new te("Unsupported protocol "+f+":",te.ERR_BAD_REQUEST,e));return}u.send(o||null)})},Lu={http:FU,xhr:WU};A.forEach(Lu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const HU={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=A.isString(n)?Lu[n.toLowerCase()]:n));o++);if(!r)throw r===!1?new te(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(A.hasOwnProp(Lu,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!A.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Lu};function T0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hl(null,e)}function N9(e){return T0(e),e.headers=or.from(e.headers),e.data=C0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),HU.getAdapter(e.adapter||e1.adapter)(e).then(function(r){return T0(e),r.data=C0.call(e,e.transformResponse,r),r.headers=or.from(r.headers),r},function(r){return Aw(r)||(T0(e),r&&r.response&&(r.response.data=C0.call(e,e.transformResponse,r.response),r.response.headers=or.from(r.response.headers))),Promise.reject(r)})}const O9=e=>e instanceof or?e.toJSON():e;function Ya(e,t){t=t||{};const n={};function r(u,c,d){return A.isPlainObject(u)&&A.isPlainObject(c)?A.merge.call({caseless:d},u,c):A.isPlainObject(c)?A.merge({},c):A.isArray(c)?c.slice():c}function o(u,c,d){if(A.isUndefined(c)){if(!A.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function a(u,c){if(!A.isUndefined(c))return r(void 0,c)}function i(u,c){if(A.isUndefined(c)){if(!A.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(u,c)=>o(O9(u),O9(c),!0)};return A.forEach(Object.keys(e).concat(Object.keys(t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);A.isUndefined(f)&&d!==s||(n[c]=f)}),n}const $w="1.2.3",t1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{t1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const F9={};t1.transitional=function(t,n,r){function o(a,i){return"[Axios v"+$w+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,s)=>{if(t===!1)throw new te(o(i," has been removed"+(n?" in "+n:"")),te.ERR_DEPRECATED);return n&&!F9[i]&&(F9[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,s):!0}};function YU(e,t,n){if(typeof e!="object")throw new te("options must be an object",te.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new te("option "+a+" must be "+l,te.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new te("Unknown option "+a,te.ERR_BAD_OPTION)}}const Ap={assertOptions:YU,validators:t1},br=Ap.validators;class Bc{constructor(t){this.defaults=t,this.interceptors={request:new M9,response:new M9}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ya(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Ap.assertOptions(r,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean)},!1),o!==void 0&&Ap.assertOptions(o,{encode:br.function,serialize:br.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=a&&A.merge(a.common,a[n.method]),i&&A.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),n.headers=or.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,f;if(!l){const p=[N9.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=s.length;let h=n;for(d=0;d<f;){const p=s[d++],m=s[d++];try{h=p(h)}catch(x){m.call(this,x);break}}try{c=N9.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=Ya(this.defaults,t);const n=Rw(t.baseURL,t.url);return Ew(n,t.params,t.paramsSerializer)}}A.forEach(["delete","get","head","options"],function(t){Bc.prototype[t]=function(n,r){return this.request(Ya(r||{},{method:t,url:n,data:(r||{}).data}))}});A.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,s){return this.request(Ya(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Bc.prototype[t]=n(),Bc.prototype[t+"Form"]=n(!0)});const Bu=Bc;class n1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{r.subscribe(s),a=s}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,s){r.reason||(r.reason=new hl(a,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new n1(function(o){t=o}),cancel:t}}}const GU=n1;function qU(e){return function(n){return e.apply(null,n)}}function XU(e){return A.isObject(e)&&e.isAxiosError===!0}const Rp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rp).forEach(([e,t])=>{Rp[t]=e});const KU=Rp;function Nw(e){const t=new Bu(e),n=mw(Bu.prototype.request,t);return A.extend(n,Bu.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Nw(Ya(e,o))},n}const He=Nw(e1);He.Axios=Bu;He.CanceledError=hl;He.CancelToken=GU;He.isCancel=Aw;He.VERSION=$w;He.toFormData=Xd;He.AxiosError=te;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=qU;He.isAxiosError=XU;He.mergeConfig=Ya;He.AxiosHeaders=or;He.formToJSON=e=>Mw(A.isHTMLForm(e)?new FormData(e):e);He.HttpStatusCode=KU;He.default=He;const mo=He,QU=()=>{const e=qv(),t=window.location.href,n=Ep(o=>o.sketchfabAccessToken),r=Ep(o=>o.setSketchfabAccessToken);return y.useEffect(()=>{if(n===null){if(!t||t.indexOf("access_token=")===-1)return;const a=t.substring(t.indexOf("access_token=")+13,t.indexOf("&"));a&&(console.log(a),r(a),mo.defaults.headers.common.Authorization=`Bearer ${a}`,e("/sketchfab"))}},[t]),ce(ze,{h:"full",display:"flex",flexDir:"column",alignItems:"center",py:8,px:10,children:[w(zn,{fontSize:"3xl",textAlign:"center",children:"CyberArchWarehouse"}),ce(ze,{mt:4,display:"flex",flexDir:"column",gap:4,children:[n===null?w(On,{as:"a",href:"https://sketchfab.com/oauth2/authorize/?state=123456789&response_type=token&client_id=9NfRZIhBKq5ilnbqgOhIk6QpsGE1MJIs2AnOoH0y",size:"lg",leftIcon:w(w9,{width:"18px"}),children:"Sketchfab Login"}):w(On,{size:"lg",leftIcon:w(w9,{width:"18px"}),as:Wa,to:"sketchfab",children:"Sketchfab"}),w(On,{size:"lg",as:Wa,to:"data-visualization",children:"Data Visualization"})]})]})},{toast:ZU}=bI();mo.interceptors.response.use(async e=>e,e=>{const{data:t,status:n}=e.response;switch(n){case 401:ZU({title:t.detail,status:"error",duration:5e3,isClosable:!0,position:"bottom-right"});break}return Promise.reject(e)});const su=e=>e.data,E0={get:e=>mo.get(e).then(su),post:e=>mo.post(e).then(su),put:e=>mo.put(e).then(su),del:e=>mo.delete(e).then(su)},JU={getMe:()=>E0.get("https://api.sketchfab.com/v3/me"),getMyModels:()=>E0.get("https://api.sketchfab.com/v3/me/models"),downloadModel:e=>E0.get(`https://api.sketchfab.com/v3/models/${e}/download`)},r1={Sketchfab:JU},eW=()=>{const e=qv(),t=Ep(n=>n.sketchfabAccessToken);mo.defaults.headers.common.Authorization=`Bearer ${t}`,y.useEffect(()=>{r1.Sketchfab.getMe().catch(n=>{console.log(n),e("/")})},[t])},tW=()=>(eW(),ce(ze,{w:"full",h:"full",pt:8,px:10,display:"flex",flexDir:"column",children:[ce(ze,{w:"full",display:"flex",alignItems:"center",mb:2,children:[w(zn,{fontSize:"3xl",mr:"auto",children:"Sketchfab"}),w(On,{as:Wa,to:"",mr:4,size:"lg",children:"Remote Models"}),w(On,{as:Wa,to:"local-models",mr:4,size:"lg",children:"Local Models"})]}),w(Wd,{}),w(ze,{mt:4,h:"full",overflowY:"scroll",children:w(oj,{})})]})),nW=()=>w(ze,{w:"full",h:"full",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",children:w(zn,{fontSize:"4xl",as:"h3",children:"Welcome to CyberArchWarehouse"})}),rW=()=>w(ze,{w:"full",h:"full",display:"flex",justifyContent:"center",alignItems:"center",children:w(ow,{isIndeterminate:!0,color:"teal.200",size:"100px"})}),D9=ue5,oW=({thumbnails:e,name:t,uid:n,isDownloadable:r})=>{const{isOpen:o,onOpen:a,onClose:i}=YI(),[s,l]=y.useState(!1),u=async()=>{a(),D9("print",{message:"Downloading model..."});let c=null,d=null;l(!0),await r1.Sketchfab.downloadModel(n).then(f=>{c=f}).catch(f=>{console.log(f)}).finally(()=>{l(!1)}),console.log(c),c&&(d=c.usdz.url),D9("download_model",{link:d,name:t})};return ce(T3,{children:[ce(jI,{w:"full",minH:"440px",children:[ce(BI,{children:[w(t5,{src:e.images[0].url,alt:t,borderRadius:"lg",h:"200px",w:"100%"}),w(s5,{mt:"6",spacing:"3",children:w(l5,{size:"md",children:t})})]}),w(Wd,{}),w(VI,{children:ce(n5,{spacing:"2",children:[r&&w(On,{variant:"outline",onClick:u,isLoading:s,children:"Download"}),w(On,{variant:"ghost",as:Wa,to:`model/${n}`,children:"View"})]})})]}),ce(p5,{isOpen:o,onClose:i,isCentered:!0,size:"lg",children:[w(ew,{}),ce(Q5,{children:[w(J5,{children:t}),w(nw,{}),w(tw,{children:"Download initiated. Please wait for this process to finish before starting another download."}),w(Z5,{children:w(On,{variant:"outline",mr:3,onClick:i,children:"Close"})})]})]})]})},aW=()=>{const[e,t]=y.useState(!0),[n,r]=y.useState();return y.useEffect(()=>{r1.Sketchfab.getMyModels().then(o=>{r(o.results)}).catch(o=>console.log(o)).finally(()=>t(!1))},[]),e?w(rW,{}):n?ce(ze,{mb:"32px",children:[w(zn,{fontSize:"2xl",mb:4,children:"Remote Models"}),w(a5,{spacing:"20px",justify:"start",children:n.map(o=>w(Fv,{w:"30%",children:w(oW,{...o})},o.uid))})]}):w(zn,{children:"no models"})},iW=()=>w(ze,{children:w(zn,{fontSize:"2xl",mb:4,children:"Seach"})});function Vu(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function o1(e){let t,n,r;e.length!==2?(t=Vu,n=(s,l)=>Vu(e(s),l),r=(s,l)=>e(s)-l):(t=e===Vu||e===sW?e:lW,n=e,r=e);function o(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const d=u+c>>>1;n(s[d],l)<0?u=d+1:c=d}while(u<c)}return u}function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const d=u+c>>>1;n(s[d],l)<=0?u=d+1:c=d}while(u<c)}return u}function i(s,l,u=0,c=s.length){const d=o(s,l,u,c-1);return d>u&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:o,center:i,right:a}}function lW(){return 0}function uW(e){return e===null?NaN:+e}const cW=o1(Vu),dW=cW.right;o1(uW).center;const fW=dW;function hW(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}const pW=Math.sqrt(50),mW=Math.sqrt(10),vW=Math.sqrt(2);function Vc(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),i=a>=pW?10:a>=mW?5:a>=vW?2:1;let s,l,u;return o<0?(u=Math.pow(10,-o)/i,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,o)*i,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?Vc(e,t,n*2):[s,l,u]}function gW(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,a,i]=r?Vc(t,e,n):Vc(e,t,n);if(!(a>=o))return[];const s=a-o+1,l=new Array(s);if(r)if(i<0)for(let u=0;u<s;++u)l[u]=(a-u)/-i;else for(let u=0;u<s;++u)l[u]=(a-u)*i;else if(i<0)for(let u=0;u<s;++u)l[u]=(o+u)/-i;else for(let u=0;u<s;++u)l[u]=(o+u)*i;return l}function $p(e,t,n){return t=+t,e=+e,n=+n,Vc(e,t,n)[2]}function Np(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?$p(t,e,n):$p(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function yW(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function bW(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function xW(e){return e}var P0=1,M0=2,Op=3,Bi=4,z9=1e-6;function SW(e){return"translate("+e+",0)"}function kW(e){return"translate(0,"+e+")"}function wW(e){return t=>+e(t)}function _W(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function CW(){return!this.__axis}function Ow(e,t){var n=[],r=null,o=null,a=6,i=6,s=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=e===P0||e===Bi?-1:1,c=e===Bi||e===M0?"x":"y",d=e===P0||e===Op?SW:kW;function f(h){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=o??(t.tickFormat?t.tickFormat.apply(t,n):xW),x=Math.max(a,0)+s,v=t.range(),g=+v[0]+l,b=+v[v.length-1]+l,k=(t.bandwidth?_W:wW)(t.copy(),l),T=h.selection?h.selection():h,E=T.selectAll(".domain").data([null]),P=T.selectAll(".tick").data(p,t).order(),R=P.exit(),V=P.enter().append("g").attr("class","tick"),F=P.select("line"),D=P.select("text");E=E.merge(E.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(V),F=F.merge(V.append("line").attr("stroke","currentColor").attr(c+"2",u*a)),D=D.merge(V.append("text").attr("fill","currentColor").attr(c,u*x).attr("dy",e===P0?"0em":e===Op?"0.71em":"0.32em")),h!==T&&(E=E.transition(h),P=P.transition(h),F=F.transition(h),D=D.transition(h),R=R.transition(h).attr("opacity",z9).attr("transform",function(G){return isFinite(G=k(G))?d(G+l):this.getAttribute("transform")}),V.attr("opacity",z9).attr("transform",function(G){var X=this.parentNode.__axis;return d((X&&isFinite(X=X(G))?X:k(G))+l)})),R.remove(),E.attr("d",e===Bi||e===M0?i?"M"+u*i+","+g+"H"+l+"V"+b+"H"+u*i:"M"+l+","+g+"V"+b:i?"M"+g+","+u*i+"V"+l+"H"+b+"V"+u*i:"M"+g+","+l+"H"+b),P.attr("opacity",1).attr("transform",function(G){return d(k(G)+l)}),F.attr(c+"2",u*a),D.attr(c,u*x).text(m),T.filter(CW).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===M0?"start":e===Bi?"end":"middle"),T.each(function(){this.__axis=k})}return f.scale=function(h){return arguments.length?(t=h,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(h){return arguments.length?(n=h==null?[]:Array.from(h),f):n.slice()},f.tickValues=function(h){return arguments.length?(r=h==null?null:Array.from(h),f):r&&r.slice()},f.tickFormat=function(h){return arguments.length?(o=h,f):o},f.tickSize=function(h){return arguments.length?(a=i=+h,f):a},f.tickSizeInner=function(h){return arguments.length?(a=+h,f):a},f.tickSizeOuter=function(h){return arguments.length?(i=+h,f):i},f.tickPadding=function(h){return arguments.length?(s=+h,f):s},f.offset=function(h){return arguments.length?(l=+h,f):l},f}function TW(e){return Ow(Op,e)}function EW(e){return Ow(Bi,e)}var PW={value:()=>{}};function Fw(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new ju(n)}function ju(e){this._=e}function MW(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}ju.prototype=Fw.prototype={constructor:ju,on:function(e,t){var n=this._,r=MW(e+"",n),o,a=-1,i=r.length;if(arguments.length<2){for(;++a<i;)if((o=(e=r[a]).type)&&(o=AW(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<i;)if(o=(e=r[a]).type)n[o]=I9(n[o],e.name,t);else if(t==null)for(o in n)n[o]=I9(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ju(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,a;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,o=a.length;r<o;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,a=r.length;o<a;++o)r[o].value.apply(t,n)}};function AW(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function I9(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=PW,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Fp="http://www.w3.org/1999/xhtml";const L9={svg:"http://www.w3.org/2000/svg",xhtml:Fp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zd(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),L9.hasOwnProperty(t)?{space:L9[t],local:e}:e}function RW(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fp&&t.documentElement.namespaceURI===Fp?t.createElement(e):t.createElementNS(n,e)}}function $W(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Dw(e){var t=Zd(e);return(t.local?$W:RW)(t)}function NW(){}function a1(e){return e==null?NW:function(){return this.querySelector(e)}}function OW(e){typeof e!="function"&&(e=a1(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a=t[o],i=a.length,s=r[o]=new Array(i),l,u,c=0;c<i;++c)(l=a[c])&&(u=e.call(l,l.__data__,c,a))&&("__data__"in l&&(u.__data__=l.__data__),s[c]=u);return new Vt(r,this._parents)}function FW(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function DW(){return[]}function zw(e){return e==null?DW:function(){return this.querySelectorAll(e)}}function zW(e){return function(){return FW(e.apply(this,arguments))}}function IW(e){typeof e=="function"?e=zW(e):e=zw(e);for(var t=this._groups,n=t.length,r=[],o=[],a=0;a<n;++a)for(var i=t[a],s=i.length,l,u=0;u<s;++u)(l=i[u])&&(r.push(e.call(l,l.__data__,u,i)),o.push(l));return new Vt(r,o)}function Iw(e){return function(){return this.matches(e)}}function Lw(e){return function(t){return t.matches(e)}}var LW=Array.prototype.find;function BW(e){return function(){return LW.call(this.children,e)}}function VW(){return this.firstElementChild}function jW(e){return this.select(e==null?VW:BW(typeof e=="function"?e:Lw(e)))}var UW=Array.prototype.filter;function WW(){return Array.from(this.children)}function HW(e){return function(){return UW.call(this.children,e)}}function YW(e){return this.selectAll(e==null?WW:HW(typeof e=="function"?e:Lw(e)))}function GW(e){typeof e!="function"&&(e=Iw(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a=t[o],i=a.length,s=r[o]=[],l,u=0;u<i;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Vt(r,this._parents)}function Bw(e){return new Array(e.length)}function qW(){return new Vt(this._enter||this._groups.map(Bw),this._parents)}function jc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}jc.prototype={constructor:jc,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function XW(e){return function(){return e}}function KW(e,t,n,r,o,a){for(var i=0,s,l=t.length,u=a.length;i<u;++i)(s=t[i])?(s.__data__=a[i],r[i]=s):n[i]=new jc(e,a[i]);for(;i<l;++i)(s=t[i])&&(o[i]=s)}function QW(e,t,n,r,o,a,i){var s,l,u=new Map,c=t.length,d=a.length,f=new Array(c),h;for(s=0;s<c;++s)(l=t[s])&&(f[s]=h=i.call(l,l.__data__,s,t)+"",u.has(h)?o[s]=l:u.set(h,l));for(s=0;s<d;++s)h=i.call(e,a[s],s,a)+"",(l=u.get(h))?(r[s]=l,l.__data__=a[s],u.delete(h)):n[s]=new jc(e,a[s]);for(s=0;s<c;++s)(l=t[s])&&u.get(f[s])===l&&(o[s]=l)}function ZW(e){return e.__data__}function JW(e,t){if(!arguments.length)return Array.from(this,ZW);var n=t?QW:KW,r=this._parents,o=this._groups;typeof e!="function"&&(e=XW(e));for(var a=o.length,i=new Array(a),s=new Array(a),l=new Array(a),u=0;u<a;++u){var c=r[u],d=o[u],f=d.length,h=eH(e.call(c,c&&c.__data__,u,r)),p=h.length,m=s[u]=new Array(p),x=i[u]=new Array(p),v=l[u]=new Array(f);n(c,d,m,x,v,h,t);for(var g=0,b=0,k,T;g<p;++g)if(k=m[g]){for(g>=b&&(b=g+1);!(T=x[b])&&++b<p;);k._next=T||null}}return i=new Vt(i,r),i._enter=s,i._exit=l,i}function eH(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function tH(){return new Vt(this._exit||this._groups.map(Bw),this._parents)}function nH(e,t,n){var r=this.enter(),o=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?a.remove():n(a),r&&o?r.merge(o).order():o}function rH(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,a=r.length,i=Math.min(o,a),s=new Array(o),l=0;l<i;++l)for(var u=n[l],c=r[l],d=u.length,f=s[l]=new Array(d),h,p=0;p<d;++p)(h=u[p]||c[p])&&(f[p]=h);for(;l<o;++l)s[l]=n[l];return new Vt(s,this._parents)}function oH(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,a=r[o],i;--o>=0;)(i=r[o])&&(a&&i.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(i,a),a=i);return this}function aH(e){e||(e=iH);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a){for(var i=n[a],s=i.length,l=o[a]=new Array(s),u,c=0;c<s;++c)(u=i[c])&&(l[c]=u);l.sort(t)}return new Vt(o,this._parents).order()}function iH(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function sH(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function lH(){return Array.from(this)}function uH(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,a=r.length;o<a;++o){var i=r[o];if(i)return i}return null}function cH(){let e=0;for(const t of this)++e;return e}function dH(){return!this.node()}function fH(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],a=0,i=o.length,s;a<i;++a)(s=o[a])&&e.call(s,s.__data__,a,o);return this}function hH(e){return function(){this.removeAttribute(e)}}function pH(e){return function(){this.removeAttributeNS(e.space,e.local)}}function mH(e,t){return function(){this.setAttribute(e,t)}}function vH(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function gH(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function yH(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function bH(e,t){var n=Zd(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?pH:hH:typeof t=="function"?n.local?yH:gH:n.local?vH:mH)(n,t))}function Vw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function xH(e){return function(){this.style.removeProperty(e)}}function SH(e,t,n){return function(){this.style.setProperty(e,t,n)}}function kH(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function wH(e,t,n){return arguments.length>1?this.each((t==null?xH:typeof t=="function"?kH:SH)(e,t,n??"")):Ga(this.node(),e)}function Ga(e,t){return e.style.getPropertyValue(t)||Vw(e).getComputedStyle(e,null).getPropertyValue(t)}function _H(e){return function(){delete this[e]}}function CH(e,t){return function(){this[e]=t}}function TH(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function EH(e,t){return arguments.length>1?this.each((t==null?_H:typeof t=="function"?TH:CH)(e,t)):this.node()[e]}function jw(e){return e.trim().split(/^|\s+/)}function i1(e){return e.classList||new Uw(e)}function Uw(e){this._node=e,this._names=jw(e.getAttribute("class")||"")}Uw.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ww(e,t){for(var n=i1(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function Hw(e,t){for(var n=i1(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function PH(e){return function(){Ww(this,e)}}function MH(e){return function(){Hw(this,e)}}function AH(e,t){return function(){(t.apply(this,arguments)?Ww:Hw)(this,e)}}function RH(e,t){var n=jw(e+"");if(arguments.length<2){for(var r=i1(this.node()),o=-1,a=n.length;++o<a;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?AH:t?PH:MH)(n,t))}function $H(){this.textContent=""}function NH(e){return function(){this.textContent=e}}function OH(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function FH(e){return arguments.length?this.each(e==null?$H:(typeof e=="function"?OH:NH)(e)):this.node().textContent}function DH(){this.innerHTML=""}function zH(e){return function(){this.innerHTML=e}}function IH(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function LH(e){return arguments.length?this.each(e==null?DH:(typeof e=="function"?IH:zH)(e)):this.node().innerHTML}function BH(){this.nextSibling&&this.parentNode.appendChild(this)}function VH(){return this.each(BH)}function jH(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function UH(){return this.each(jH)}function WH(e){var t=typeof e=="function"?e:Dw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function HH(){return null}function YH(e,t){var n=typeof e=="function"?e:Dw(e),r=t==null?HH:typeof t=="function"?t:a1(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function GH(){var e=this.parentNode;e&&e.removeChild(this)}function qH(){return this.each(GH)}function XH(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function KH(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function QH(e){return this.select(e?KH:XH)}function ZH(e){return arguments.length?this.property("__data__",e):this.node().__data__}function JH(e){return function(t){e.call(this,t,this.__data__)}}function eY(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function tY(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,a;n<o;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function nY(e,t,n){return function(){var r=this.__on,o,a=JH(t);if(r){for(var i=0,s=r.length;i<s;++i)if((o=r[i]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=n),o.value=t;return}}this.addEventListener(e.type,a,n),o={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(o):this.__on=[o]}}function rY(e,t,n){var r=eY(e+""),o,a=r.length,i;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,c;l<u;++l)for(o=0,c=s[l];o<a;++o)if((i=r[o]).type===c.type&&i.name===c.name)return c.value}return}for(s=t?nY:tY,o=0;o<a;++o)this.each(s(r[o],t,n));return this}function Yw(e,t,n){var r=Vw(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function oY(e,t){return function(){return Yw(this,e,t)}}function aY(e,t){return function(){return Yw(this,e,t.apply(this,arguments))}}function iY(e,t){return this.each((typeof t=="function"?aY:oY)(e,t))}function*sY(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,a=r.length,i;o<a;++o)(i=r[o])&&(yield i)}var Gw=[null];function Vt(e,t){this._groups=e,this._parents=t}function pl(){return new Vt([[document.documentElement]],Gw)}function lY(){return this}Vt.prototype=pl.prototype={constructor:Vt,select:OW,selectAll:IW,selectChild:jW,selectChildren:YW,filter:GW,data:JW,enter:qW,exit:tH,join:nH,merge:rH,selection:lY,order:oH,sort:aH,call:sH,nodes:lH,node:uH,size:cH,empty:dH,each:fH,attr:bH,style:wH,property:EH,classed:RH,text:FH,html:LH,raise:VH,lower:UH,append:WH,insert:YH,remove:qH,clone:QH,datum:ZH,on:rY,dispatch:iY,[Symbol.iterator]:sY};function uY(e){return typeof e=="string"?new Vt([[document.querySelector(e)]],[document.documentElement]):new Vt([[e]],Gw)}function s1(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function qw(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ml(){}var Gs=.7,Uc=1/Gs,$a="\\s*([+-]?\\d+)\\s*",qs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cY=/^#([0-9a-f]{3,8})$/,dY=new RegExp(`^rgb\\(${$a},${$a},${$a}\\)$`),fY=new RegExp(`^rgb\\(${Fn},${Fn},${Fn}\\)$`),hY=new RegExp(`^rgba\\(${$a},${$a},${$a},${qs}\\)$`),pY=new RegExp(`^rgba\\(${Fn},${Fn},${Fn},${qs}\\)$`),mY=new RegExp(`^hsl\\(${qs},${Fn},${Fn}\\)$`),vY=new RegExp(`^hsla\\(${qs},${Fn},${Fn},${qs}\\)$`),B9={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};s1(ml,No,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:V9,formatHex:V9,formatHex8:gY,formatHsl:yY,formatRgb:j9,toString:j9});function V9(){return this.rgb().formatHex()}function gY(){return this.rgb().formatHex8()}function yY(){return Xw(this).formatHsl()}function j9(){return this.rgb().formatRgb()}function No(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?U9(t):n===3?new Ct(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?lu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?lu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=dY.exec(e))?new Ct(t[1],t[2],t[3],1):(t=fY.exec(e))?new Ct(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=hY.exec(e))?lu(t[1],t[2],t[3],t[4]):(t=pY.exec(e))?lu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=mY.exec(e))?Y9(t[1],t[2]/100,t[3]/100,1):(t=vY.exec(e))?Y9(t[1],t[2]/100,t[3]/100,t[4]):B9.hasOwnProperty(e)?U9(B9[e]):e==="transparent"?new Ct(NaN,NaN,NaN,0):null}function U9(e){return new Ct(e>>16&255,e>>8&255,e&255,1)}function lu(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ct(e,t,n,r)}function bY(e){return e instanceof ml||(e=No(e)),e?(e=e.rgb(),new Ct(e.r,e.g,e.b,e.opacity)):new Ct}function Dp(e,t,n,r){return arguments.length===1?bY(e):new Ct(e,t,n,r??1)}function Ct(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}s1(Ct,Dp,qw(ml,{brighter(e){return e=e==null?Uc:Math.pow(Uc,e),new Ct(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gs:Math.pow(Gs,e),new Ct(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ct(_o(this.r),_o(this.g),_o(this.b),Wc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:W9,formatHex:W9,formatHex8:xY,formatRgb:H9,toString:H9}));function W9(){return`#${vo(this.r)}${vo(this.g)}${vo(this.b)}`}function xY(){return`#${vo(this.r)}${vo(this.g)}${vo(this.b)}${vo((isNaN(this.opacity)?1:this.opacity)*255)}`}function H9(){const e=Wc(this.opacity);return`${e===1?"rgb(":"rgba("}${_o(this.r)}, ${_o(this.g)}, ${_o(this.b)}${e===1?")":`, ${e})`}`}function Wc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _o(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function vo(e){return e=_o(e),(e<16?"0":"")+e.toString(16)}function Y9(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new dn(e,t,n,r)}function Xw(e){if(e instanceof dn)return new dn(e.h,e.s,e.l,e.opacity);if(e instanceof ml||(e=No(e)),!e)return new dn;if(e instanceof dn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(t===a?i=(n-r)/s+(n<r)*6:n===a?i=(r-t)/s+2:i=(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new dn(i,s,l,e.opacity)}function SY(e,t,n,r){return arguments.length===1?Xw(e):new dn(e,t,n,r??1)}function dn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}s1(dn,SY,qw(ml,{brighter(e){return e=e==null?Uc:Math.pow(Uc,e),new dn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gs:Math.pow(Gs,e),new dn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ct(A0(e>=240?e-240:e+120,o,r),A0(e,o,r),A0(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new dn(G9(this.h),uu(this.s),uu(this.l),Wc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Wc(this.opacity);return`${e===1?"hsl(":"hsla("}${G9(this.h)}, ${uu(this.s)*100}%, ${uu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function G9(e){return e=(e||0)%360,e<0?e+360:e}function uu(e){return Math.max(0,Math.min(1,e||0))}function A0(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const l1=e=>()=>e;function kY(e,t){return function(n){return e+n*t}}function wY(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function _Y(e){return(e=+e)==1?Kw:function(t,n){return n-t?wY(t,n,e):l1(isNaN(t)?n:t)}}function Kw(e,t){var n=t-e;return n?kY(e,n):l1(isNaN(e)?t:e)}const Hc=function e(t){var n=_Y(t);function r(o,a){var i=n((o=Dp(o)).r,(a=Dp(a)).r),s=n(o.g,a.g),l=n(o.b,a.b),u=Kw(o.opacity,a.opacity);return function(c){return o.r=i(c),o.g=s(c),o.b=l(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function CY(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(a){for(o=0;o<n;++o)r[o]=e[o]*(1-a)+t[o]*a;return r}}function TY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function EY(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),a=new Array(n),i;for(i=0;i<r;++i)o[i]=u1(e[i],t[i]);for(;i<n;++i)a[i]=t[i];return function(s){for(i=0;i<r;++i)a[i]=o[i](s);return a}}function PY(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function un(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function MY(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=u1(e[o],t[o]):r[o]=t[o];return function(a){for(o in n)r[o]=n[o](a);return r}}var zp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,R0=new RegExp(zp.source,"g");function AY(e){return function(){return e}}function RY(e){return function(t){return e(t)+""}}function Qw(e,t){var n=zp.lastIndex=R0.lastIndex=0,r,o,a,i=-1,s=[],l=[];for(e=e+"",t=t+"";(r=zp.exec(e))&&(o=R0.exec(t));)(a=o.index)>n&&(a=t.slice(n,a),s[i]?s[i]+=a:s[++i]=a),(r=r[0])===(o=o[0])?s[i]?s[i]+=o:s[++i]=o:(s[++i]=null,l.push({i,x:un(r,o)})),n=R0.lastIndex;return n<t.length&&(a=t.slice(n),s[i]?s[i]+=a:s[++i]=a),s.length<2?l[0]?RY(l[0].x):AY(t):(t=l.length,function(u){for(var c=0,d;c<t;++c)s[(d=l[c]).i]=d.x(u);return s.join("")})}function u1(e,t){var n=typeof t,r;return t==null||n==="boolean"?l1(t):(n==="number"?un:n==="string"?(r=No(t))?(t=r,Hc):Qw:t instanceof No?Hc:t instanceof Date?PY:TY(t)?CY:Array.isArray(t)?EY:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?MY:un)(e,t)}function $Y(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var q9=180/Math.PI,Ip={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Zw(e,t,n,r,o,a){var i,s,l;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,i=-i),{translateX:o,translateY:a,rotate:Math.atan2(t,e)*q9,skewX:Math.atan(l)*q9,scaleX:i,scaleY:s}}var cu;function NY(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ip:Zw(t.a,t.b,t.c,t.d,t.e,t.f)}function OY(e){return e==null||(cu||(cu=document.createElementNS("http://www.w3.org/2000/svg","g")),cu.setAttribute("transform",e),!(e=cu.transform.baseVal.consolidate()))?Ip:(e=e.matrix,Zw(e.a,e.b,e.c,e.d,e.e,e.f))}function Jw(e,t,n,r){function o(u){return u.length?u.pop()+" ":""}function a(u,c,d,f,h,p){if(u!==d||c!==f){var m=h.push("translate(",null,t,null,n);p.push({i:m-4,x:un(u,d)},{i:m-2,x:un(c,f)})}else(d||f)&&h.push("translate("+d+t+f+n)}function i(u,c,d,f){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),f.push({i:d.push(o(d)+"rotate(",null,r)-2,x:un(u,c)})):c&&d.push(o(d)+"rotate("+c+r)}function s(u,c,d,f){u!==c?f.push({i:d.push(o(d)+"skewX(",null,r)-2,x:un(u,c)}):c&&d.push(o(d)+"skewX("+c+r)}function l(u,c,d,f,h,p){if(u!==d||c!==f){var m=h.push(o(h)+"scale(",null,",",null,")");p.push({i:m-4,x:un(u,d)},{i:m-2,x:un(c,f)})}else(d!==1||f!==1)&&h.push(o(h)+"scale("+d+","+f+")")}return function(u,c){var d=[],f=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,d,f),i(u.rotate,c.rotate,d,f),s(u.skewX,c.skewX,d,f),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,f),u=c=null,function(h){for(var p=-1,m=f.length,x;++p<m;)d[(x=f[p]).i]=x.x(h);return d.join("")}}}var FY=Jw(NY,"px, ","px)","deg)"),DY=Jw(OY,", ",")",")"),qa=0,Vi=0,Ti=0,e4=1e3,Yc,ji,Gc=0,Oo=0,Jd=0,Xs=typeof performance=="object"&&performance.now?performance:Date,t4=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function c1(){return Oo||(t4(zY),Oo=Xs.now()+Jd)}function zY(){Oo=0}function qc(){this._call=this._time=this._next=null}qc.prototype=n4.prototype={constructor:qc,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?c1():+n)+(t==null?0:+t),!this._next&&ji!==this&&(ji?ji._next=this:Yc=this,ji=this),this._call=e,this._time=n,Lp()},stop:function(){this._call&&(this._call=null,this._time=1/0,Lp())}};function n4(e,t,n){var r=new qc;return r.restart(e,t,n),r}function IY(){c1(),++qa;for(var e=Yc,t;e;)(t=Oo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--qa}function X9(){Oo=(Gc=Xs.now())+Jd,qa=Vi=0;try{IY()}finally{qa=0,BY(),Oo=0}}function LY(){var e=Xs.now(),t=e-Gc;t>e4&&(Jd-=t,Gc=e)}function BY(){for(var e,t=Yc,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Yc=n);ji=e,Lp(r)}function Lp(e){if(!qa){Vi&&(Vi=clearTimeout(Vi));var t=e-Oo;t>24?(e<1/0&&(Vi=setTimeout(X9,e-Xs.now()-Jd)),Ti&&(Ti=clearInterval(Ti))):(Ti||(Gc=Xs.now(),Ti=setInterval(LY,e4)),qa=1,t4(X9))}}function K9(e,t,n){var r=new qc;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var VY=Fw("start","end","cancel","interrupt"),jY=[],r4=0,Q9=1,Bp=2,Uu=3,Z9=4,Vp=5,Wu=6;function ef(e,t,n,r,o,a){var i=e.__transition;if(!i)e.__transition={};else if(n in i)return;UY(e,n,{name:t,index:r,group:o,on:VY,tween:jY,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:r4})}function d1(e,t){var n=mn(e,t);if(n.state>r4)throw new Error("too late; already scheduled");return n}function Ln(e,t){var n=mn(e,t);if(n.state>Uu)throw new Error("too late; already running");return n}function mn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function UY(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=n4(a,0,n.time);function a(u){n.state=Q9,n.timer.restart(i,n.delay,n.time),n.delay<=u&&i(u-n.delay)}function i(u){var c,d,f,h;if(n.state!==Q9)return l();for(c in r)if(h=r[c],h.name===n.name){if(h.state===Uu)return K9(i);h.state===Z9?(h.state=Wu,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=Wu,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(K9(function(){n.state===Uu&&(n.state=Z9,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=Bp,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Bp){for(n.state=Uu,o=new Array(f=n.tween.length),c=0,d=-1;c<f;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(o[++d]=h);o.length=d+1}}function s(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=Vp,1),d=-1,f=o.length;++d<f;)o[d].call(e,c);n.state===Vp&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Wu,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function WY(e,t){var n=e.__transition,r,o,a=!0,i;if(n){t=t==null?null:t+"";for(i in n){if((r=n[i]).name!==t){a=!1;continue}o=r.state>Bp&&r.state<Vp,r.state=Wu,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[i]}a&&delete e.__transition}}function HY(e){return this.each(function(){WY(this,e)})}function YY(e,t){var n,r;return function(){var o=Ln(this,e),a=o.tween;if(a!==n){r=n=a;for(var i=0,s=r.length;i<s;++i)if(r[i].name===t){r=r.slice(),r.splice(i,1);break}}o.tween=r}}function GY(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var a=Ln(this,e),i=a.tween;if(i!==r){o=(r=i).slice();for(var s={name:t,value:n},l=0,u=o.length;l<u;++l)if(o[l].name===t){o[l]=s;break}l===u&&o.push(s)}a.tween=o}}function qY(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=mn(this.node(),n).tween,o=0,a=r.length,i;o<a;++o)if((i=r[o]).name===e)return i.value;return null}return this.each((t==null?YY:GY)(n,e,t))}function f1(e,t,n){var r=e._id;return e.each(function(){var o=Ln(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return mn(o,r).value[t]}}function o4(e,t){var n;return(typeof t=="number"?un:t instanceof No?Hc:(n=No(t))?(t=n,Hc):Qw)(e,t)}function XY(e){return function(){this.removeAttribute(e)}}function KY(e){return function(){this.removeAttributeNS(e.space,e.local)}}function QY(e,t,n){var r,o=n+"",a;return function(){var i=this.getAttribute(e);return i===o?null:i===r?a:a=t(r=i,n)}}function ZY(e,t,n){var r,o=n+"",a;return function(){var i=this.getAttributeNS(e.space,e.local);return i===o?null:i===r?a:a=t(r=i,n)}}function JY(e,t,n){var r,o,a;return function(){var i,s=n(this),l;return s==null?void this.removeAttribute(e):(i=this.getAttribute(e),l=s+"",i===l?null:i===r&&l===o?a:(o=l,a=t(r=i,s)))}}function eG(e,t,n){var r,o,a;return function(){var i,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(i=this.getAttributeNS(e.space,e.local),l=s+"",i===l?null:i===r&&l===o?a:(o=l,a=t(r=i,s)))}}function tG(e,t){var n=Zd(e),r=n==="transform"?DY:o4;return this.attrTween(e,typeof t=="function"?(n.local?eG:JY)(n,r,f1(this,"attr."+e,t)):t==null?(n.local?KY:XY)(n):(n.local?ZY:QY)(n,r,t))}function nG(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function rG(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function oG(e,t){var n,r;function o(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&rG(e,a)),n}return o._value=t,o}function aG(e,t){var n,r;function o(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&nG(e,a)),n}return o._value=t,o}function iG(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Zd(e);return this.tween(n,(r.local?oG:aG)(r,t))}function sG(e,t){return function(){d1(this,e).delay=+t.apply(this,arguments)}}function lG(e,t){return t=+t,function(){d1(this,e).delay=t}}function uG(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?sG:lG)(t,e)):mn(this.node(),t).delay}function cG(e,t){return function(){Ln(this,e).duration=+t.apply(this,arguments)}}function dG(e,t){return t=+t,function(){Ln(this,e).duration=t}}function fG(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?cG:dG)(t,e)):mn(this.node(),t).duration}function hG(e,t){if(typeof t!="function")throw new Error;return function(){Ln(this,e).ease=t}}function pG(e){var t=this._id;return arguments.length?this.each(hG(t,e)):mn(this.node(),t).ease}function mG(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Ln(this,e).ease=n}}function vG(e){if(typeof e!="function")throw new Error;return this.each(mG(this._id,e))}function gG(e){typeof e!="function"&&(e=Iw(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a=t[o],i=a.length,s=r[o]=[],l,u=0;u<i;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new cr(r,this._parents,this._name,this._id)}function yG(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,a=Math.min(r,o),i=new Array(r),s=0;s<a;++s)for(var l=t[s],u=n[s],c=l.length,d=i[s]=new Array(c),f,h=0;h<c;++h)(f=l[h]||u[h])&&(d[h]=f);for(;s<r;++s)i[s]=t[s];return new cr(i,this._parents,this._name,this._id)}function bG(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function xG(e,t,n){var r,o,a=bG(t)?d1:Ln;return function(){var i=a(this,e),s=i.on;s!==r&&(o=(r=s).copy()).on(t,n),i.on=o}}function SG(e,t){var n=this._id;return arguments.length<2?mn(this.node(),n).on.on(e):this.each(xG(n,e,t))}function kG(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function wG(){return this.on("end.remove",kG(this._id))}function _G(e){var t=this._name,n=this._id;typeof e!="function"&&(e=a1(e));for(var r=this._groups,o=r.length,a=new Array(o),i=0;i<o;++i)for(var s=r[i],l=s.length,u=a[i]=new Array(l),c,d,f=0;f<l;++f)(c=s[f])&&(d=e.call(c,c.__data__,f,s))&&("__data__"in c&&(d.__data__=c.__data__),u[f]=d,ef(u[f],t,n,f,u,mn(c,n)));return new cr(a,this._parents,t,n)}function CG(e){var t=this._name,n=this._id;typeof e!="function"&&(e=zw(e));for(var r=this._groups,o=r.length,a=[],i=[],s=0;s<o;++s)for(var l=r[s],u=l.length,c,d=0;d<u;++d)if(c=l[d]){for(var f=e.call(c,c.__data__,d,l),h,p=mn(c,n),m=0,x=f.length;m<x;++m)(h=f[m])&&ef(h,t,n,m,f,p);a.push(f),i.push(c)}return new cr(a,i,t,n)}var TG=pl.prototype.constructor;function EG(){return new TG(this._groups,this._parents)}function PG(e,t){var n,r,o;return function(){var a=Ga(this,e),i=(this.style.removeProperty(e),Ga(this,e));return a===i?null:a===n&&i===r?o:o=t(n=a,r=i)}}function a4(e){return function(){this.style.removeProperty(e)}}function MG(e,t,n){var r,o=n+"",a;return function(){var i=Ga(this,e);return i===o?null:i===r?a:a=t(r=i,n)}}function AG(e,t,n){var r,o,a;return function(){var i=Ga(this,e),s=n(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Ga(this,e))),i===l?null:i===r&&l===o?a:(o=l,a=t(r=i,s))}}function RG(e,t){var n,r,o,a="style."+t,i="end."+a,s;return function(){var l=Ln(this,e),u=l.on,c=l.value[a]==null?s||(s=a4(t)):void 0;(u!==n||o!==c)&&(r=(n=u).copy()).on(i,o=c),l.on=r}}function $G(e,t,n){var r=(e+="")=="transform"?FY:o4;return t==null?this.styleTween(e,PG(e,r)).on("end.style."+e,a4(e)):typeof t=="function"?this.styleTween(e,AG(e,r,f1(this,"style."+e,t))).each(RG(this._id,e)):this.styleTween(e,MG(e,r,t),n).on("end.style."+e,null)}function NG(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function OG(e,t,n){var r,o;function a(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&NG(e,i,n)),r}return a._value=t,a}function FG(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,OG(e,t,n??""))}function DG(e){return function(){this.textContent=e}}function zG(e){return function(){var t=e(this);this.textContent=t??""}}function IG(e){return this.tween("text",typeof e=="function"?zG(f1(this,"text",e)):DG(e==null?"":e+""))}function LG(e){return function(t){this.textContent=e.call(this,t)}}function BG(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&LG(o)),t}return r._value=e,r}function VG(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,BG(e))}function jG(){for(var e=this._name,t=this._id,n=i4(),r=this._groups,o=r.length,a=0;a<o;++a)for(var i=r[a],s=i.length,l,u=0;u<s;++u)if(l=i[u]){var c=mn(l,t);ef(l,e,n,u,i,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new cr(r,this._parents,e,n)}function UG(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(a,i){var s={value:i},l={value:function(){--o===0&&a()}};n.each(function(){var u=Ln(this,r),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),u.on=t}),o===0&&a()})}var WG=0;function cr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function i4(){return++WG}var Yn=pl.prototype;cr.prototype={constructor:cr,select:_G,selectAll:CG,selectChild:Yn.selectChild,selectChildren:Yn.selectChildren,filter:gG,merge:yG,selection:EG,transition:jG,call:Yn.call,nodes:Yn.nodes,node:Yn.node,size:Yn.size,empty:Yn.empty,each:Yn.each,on:SG,attr:tG,attrTween:iG,style:$G,styleTween:FG,text:IG,textTween:VG,remove:wG,tween:qY,delay:uG,duration:fG,ease:pG,easeVarying:vG,end:UG,[Symbol.iterator]:Yn[Symbol.iterator]};function HG(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var YG={time:null,delay:0,duration:250,ease:HG};function GG(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function qG(e){var t,n;e instanceof cr?(t=e._id,e=e._name):(t=i4(),(n=YG).time=c1(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,a=0;a<o;++a)for(var i=r[a],s=i.length,l,u=0;u<s;++u)(l=i[u])&&ef(l,e,t,u,i,n||GG(l,t));return new cr(r,this._parents,e,t)}pl.prototype.interrupt=HY;pl.prototype.transition=qG;const jp=Math.PI,Up=2*jp,io=1e-6,XG=Up-io;function s4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function KG(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return s4;const n=10**t;return function(r){this._+=r[0];for(let o=1,a=r.length;o<a;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class QG{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?s4:KG(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,a,i){this._append`C${+t},${+n},${+r},${+o},${this._x1=+a},${this._y1=+i}`}arcTo(t,n,r,o,a){if(t=+t,n=+n,r=+r,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,s=this._y1,l=r-t,u=o-n,c=i-t,d=s-n,f=c*c+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>io)if(!(Math.abs(d*l-u*c)>io)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-i,p=o-s,m=l*l+u*u,x=h*h+p*p,v=Math.sqrt(m),g=Math.sqrt(f),b=a*Math.tan((jp-Math.acos((m+f-x)/(2*v*g)))/2),k=b/g,T=b/v;Math.abs(k-1)>io&&this._append`L${t+k*c},${n+k*d}`,this._append`A${a},${a},0,0,${+(d*h>c*p)},${this._x1=t+T*l},${this._y1=n+T*u}`}}arc(t,n,r,o,a,i){if(t=+t,n=+n,r=+r,i=!!i,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),u=t+s,c=n+l,d=1^i,f=i?o-a:a-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>io||Math.abs(this._y1-c)>io)&&this._append`L${u},${c}`,r&&(f<0&&(f=f%Up+Up),f>XG?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=c}`:f>io&&this._append`A${r},${r},0,${+(f>=jp)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function ZG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Xc(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Xa(e){return e=Xc(Math.abs(e)),e?e[1]:NaN}function JG(e,t){return function(n,r){for(var o=n.length,a=[],i=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[i=(i+1)%e.length];return a.reverse().join(t)}}function eq(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var tq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kc(e){if(!(t=tq.exec(e)))throw new Error("invalid format: "+e);var t;return new h1({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Kc.prototype=h1.prototype;function h1(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}h1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function nq(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var l4;function rq(e,t){var n=Xc(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(l4=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Xc(e,Math.max(0,t+a-1))[0]}function J9(e,t){var n=Xc(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const e3={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:ZG,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>J9(e*100,t),r:J9,s:rq,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function t3(e){return e}var n3=Array.prototype.map,r3=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function oq(e){var t=e.grouping===void 0||e.thousands===void 0?t3:JG(n3.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?t3:eq(n3.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Kc(d);var f=d.fill,h=d.align,p=d.sign,m=d.symbol,x=d.zero,v=d.width,g=d.comma,b=d.precision,k=d.trim,T=d.type;T==="n"?(g=!0,T="g"):e3[T]||(b===void 0&&(b=12),k=!0,T="g"),(x||f==="0"&&h==="=")&&(x=!0,f="0",h="=");var E=m==="$"?n:m==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",P=m==="$"?r:/[%p]/.test(T)?i:"",R=e3[T],V=/[defgprs%]/.test(T);b=b===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function F(D){var G=E,X=P,Ae,ae,Oe;if(T==="c")X=R(D)+X,D="";else{D=+D;var ge=D<0||1/D<0;if(D=isNaN(D)?l:R(Math.abs(D),b),k&&(D=nq(D)),ge&&+D==0&&p!=="+"&&(ge=!1),G=(ge?p==="("?p:s:p==="-"||p==="("?"":p)+G,X=(T==="s"?r3[8+l4/3]:"")+X+(ge&&p==="("?")":""),V){for(Ae=-1,ae=D.length;++Ae<ae;)if(Oe=D.charCodeAt(Ae),48>Oe||Oe>57){X=(Oe===46?o+D.slice(Ae+1):D.slice(Ae))+X,D=D.slice(0,Ae);break}}}g&&!x&&(D=t(D,1/0));var O=G.length+D.length+X.length,B=O<v?new Array(v-O+1).join(f):"";switch(g&&x&&(D=t(B+D,B.length?v-X.length:1/0),B=""),h){case"<":D=G+D+X+B;break;case"=":D=G+B+D+X;break;case"^":D=B.slice(0,O=B.length>>1)+G+D+X+B.slice(O);break;default:D=B+G+D+X;break}return a(D)}return F.toString=function(){return d+""},F}function c(d,f){var h=u((d=Kc(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(Xa(f)/3)))*3,m=Math.pow(10,-p),x=r3[8+p/3];return function(v){return h(m*v)+x}}return{format:u,formatPrefix:c}}var du,u4,c4;aq({thousands:",",grouping:[3],currency:["$",""]});function aq(e){return du=oq(e),u4=du.format,c4=du.formatPrefix,du}function iq(e){return Math.max(0,-Xa(Math.abs(e)))}function sq(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xa(t)/3)))*3-Xa(Math.abs(e)))}function lq(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Xa(t)-Xa(e))+1}function d4(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function uq(e){return function(){return e}}function cq(e){return+e}var o3=[0,1];function pa(e){return e}function Wp(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:uq(isNaN(t)?NaN:.5)}function dq(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function fq(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=Wp(o,r),a=n(i,a)):(r=Wp(r,o),a=n(a,i)),function(s){return a(r(s))}}function hq(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)o[i]=Wp(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(s){var l=fW(e,s,1,r)-1;return a[l](o[l](s))}}function f4(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function pq(){var e=o3,t=o3,n=u1,r,o,a,i=pa,s,l,u;function c(){var f=Math.min(e.length,t.length);return i!==pa&&(i=dq(e[0],e[f-1])),s=f>2?hq:fq,l=u=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=s(e.map(r),t,n)))(r(i(f)))}return d.invert=function(f){return i(o((u||(u=s(t,e.map(r),un)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,cq),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=$Y,c()},d.clamp=function(f){return arguments.length?(i=f?!0:pa,c()):i!==pa},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,h){return r=f,o=h,c()}}function h4(){return pq()(pa,pa)}function mq(e,t,n,r){var o=Np(e,t,n),a;switch(r=Kc(r??",f"),r.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=sq(o,i))&&(r.precision=a),c4(r,i)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=lq(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=iq(o))&&(r.precision=a-(r.type==="%")*2);break}}return u4(r)}function vq(e){var t=e.domain;return e.ticks=function(n){var r=t();return gW(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return mq(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,a=r.length-1,i=r[o],s=r[a],l,u,c=10;for(s<i&&(u=i,i=s,s=u,u=o,o=a,a=u);c-- >0;){if(u=$p(i,s,n),u===l)return r[o]=i,r[a]=s,t(r);if(u>0)i=Math.floor(i/u)*u,s=Math.ceil(s/u)*u;else if(u<0)i=Math.ceil(i*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function p4(){var e=h4();return e.copy=function(){return f4(e,p4())},d4.apply(e,arguments),vq(e)}function gq(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],a=e[r],i;return a<o&&(i=n,n=r,r=i,i=o,o=a,a=i),e[n]=t.floor(o),e[r]=t.ceil(a),e}const $0=new Date,N0=new Date;function Ge(e,t,n,r){function o(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(e(a=new Date(+a)),a),o.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),o.round=a=>{const i=o(a),s=o.ceil(a);return a-i<s-a?i:s},o.offset=(a,i)=>(t(a=new Date(+a),i==null?1:Math.floor(i)),a),o.range=(a,i,s)=>{const l=[];if(a=o.ceil(a),s=s==null?1:Math.floor(s),!(a<i)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<i);return l},o.filter=a=>Ge(i=>{if(i>=i)for(;e(i),!a(i);)i.setTime(i-1)},(i,s)=>{if(i>=i)if(s<0)for(;++s<=0;)for(;t(i,-1),!a(i););else for(;--s>=0;)for(;t(i,1),!a(i););}),n&&(o.count=(a,i)=>($0.setTime(+a),N0.setTime(+i),e($0),e(N0),Math.floor(n($0,N0))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(r?i=>r(i)%a===0:i=>o.count(0,i)%a===0):o)),o}const Qc=Ge(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Qc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ge(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Qc);Qc.range;const Jn=1e3,Qt=Jn*60,er=Qt*60,dr=er*24,p1=dr*7,a3=dr*30,O0=dr*365,ma=Ge(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Jn)},(e,t)=>(t-e)/Jn,e=>e.getUTCSeconds());ma.range;const m1=Ge(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jn)},(e,t)=>{e.setTime(+e+t*Qt)},(e,t)=>(t-e)/Qt,e=>e.getMinutes());m1.range;const m4=Ge(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qt)},(e,t)=>(t-e)/Qt,e=>e.getUTCMinutes());m4.range;const v1=Ge(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jn-e.getMinutes()*Qt)},(e,t)=>{e.setTime(+e+t*er)},(e,t)=>(t-e)/er,e=>e.getHours());v1.range;const v4=Ge(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*er)},(e,t)=>(t-e)/er,e=>e.getUTCHours());v4.range;const vl=Ge(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qt)/dr,e=>e.getDate()-1);vl.range;const g1=Ge(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dr,e=>e.getUTCDate()-1);g1.range;const g4=Ge(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dr,e=>Math.floor(e/dr));g4.range;function Lo(e){return Ge(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Qt)/p1)}const tf=Lo(0),Zc=Lo(1),yq=Lo(2),bq=Lo(3),Ka=Lo(4),xq=Lo(5),Sq=Lo(6);tf.range;Zc.range;yq.range;bq.range;Ka.range;xq.range;Sq.range;function Bo(e){return Ge(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/p1)}const y1=Bo(0),Jc=Bo(1),kq=Bo(2),wq=Bo(3),Qa=Bo(4),_q=Bo(5),Cq=Bo(6);y1.range;Jc.range;kq.range;wq.range;Qa.range;_q.range;Cq.range;const b1=Ge(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());b1.range;const y4=Ge(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());y4.range;const fr=Ge(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());fr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ge(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});fr.range;const Hr=Ge(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Hr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ge(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Hr.range;function b4(e,t,n,r,o,a){const i=[[ma,1,Jn],[ma,5,5*Jn],[ma,15,15*Jn],[ma,30,30*Jn],[a,1,Qt],[a,5,5*Qt],[a,15,15*Qt],[a,30,30*Qt],[o,1,er],[o,3,3*er],[o,6,6*er],[o,12,12*er],[r,1,dr],[r,2,2*dr],[n,1,p1],[t,1,a3],[t,3,3*a3],[e,1,O0]];function s(u,c,d){const f=c<u;f&&([u,c]=[c,u]);const h=d&&typeof d.range=="function"?d:l(u,c,d),p=h?h.range(u,+c+1):[];return f?p.reverse():p}function l(u,c,d){const f=Math.abs(c-u)/d,h=o1(([,,x])=>x).right(i,f);if(h===i.length)return e.every(Np(u/O0,c/O0,d));if(h===0)return Qc.every(Math.max(Np(u,c,d),1));const[p,m]=i[f/i[h-1][2]<i[h][2]/f?h-1:h];return p.every(m)}return[s,l]}b4(Hr,y4,y1,g4,v4,m4);const[Tq,Eq]=b4(fr,b1,tf,vl,v1,m1);function F0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function D0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ei(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Pq(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,u=Pi(o),c=Mi(o),d=Pi(a),f=Mi(a),h=Pi(i),p=Mi(i),m=Pi(s),x=Mi(s),v=Pi(l),g=Mi(l),b={a:ge,A:O,b:B,B:W,c:null,d:d3,e:d3,f:Qq,g:sX,G:uX,H:qq,I:Xq,j:Kq,L:x4,m:Zq,M:Jq,p:ye,q:Te,Q:p3,s:m3,S:eX,u:tX,U:nX,V:rX,w:oX,W:aX,x:null,X:null,y:iX,Y:lX,Z:cX,"%":h3},k={a:Z,A:dt,b:Bn,B:Ze,c:null,d:f3,e:f3,f:pX,g:_X,G:TX,H:dX,I:fX,j:hX,L:k4,m:mX,M:vX,p:Je,q:$t,Q:p3,s:m3,S:gX,u:yX,U:bX,V:xX,w:SX,W:kX,x:null,X:null,y:wX,Y:CX,Z:EX,"%":h3},T={a:F,A:D,b:G,B:X,c:Ae,d:u3,e:u3,f:Wq,g:l3,G:s3,H:c3,I:c3,j:Bq,L:Uq,m:Lq,M:Vq,p:V,q:Iq,Q:Yq,s:Gq,S:jq,u:Nq,U:Oq,V:Fq,w:$q,W:Dq,x:ae,X:Oe,y:l3,Y:s3,Z:zq,"%":Hq};b.x=E(n,b),b.X=E(r,b),b.c=E(t,b),k.x=E(n,k),k.X=E(r,k),k.c=E(t,k);function E(z,H){return function(K){var $=[],at=-1,me=0,ft=z.length,ht,Vn,gl;for(K instanceof Date||(K=new Date(+K));++at<ft;)z.charCodeAt(at)===37&&($.push(z.slice(me,at)),(Vn=i3[ht=z.charAt(++at)])!=null?ht=z.charAt(++at):Vn=ht==="e"?" ":"0",(gl=H[ht])&&(ht=gl(K,Vn)),$.push(ht),me=at+1);return $.push(z.slice(me,at)),$.join("")}}function P(z,H){return function(K){var $=Ei(1900,void 0,1),at=R($,z,K+="",0),me,ft;if(at!=K.length)return null;if("Q"in $)return new Date($.Q);if("s"in $)return new Date($.s*1e3+("L"in $?$.L:0));if(H&&!("Z"in $)&&($.Z=0),"p"in $&&($.H=$.H%12+$.p*12),$.m===void 0&&($.m="q"in $?$.q:0),"V"in $){if($.V<1||$.V>53)return null;"w"in $||($.w=1),"Z"in $?(me=D0(Ei($.y,0,1)),ft=me.getUTCDay(),me=ft>4||ft===0?Jc.ceil(me):Jc(me),me=g1.offset(me,($.V-1)*7),$.y=me.getUTCFullYear(),$.m=me.getUTCMonth(),$.d=me.getUTCDate()+($.w+6)%7):(me=F0(Ei($.y,0,1)),ft=me.getDay(),me=ft>4||ft===0?Zc.ceil(me):Zc(me),me=vl.offset(me,($.V-1)*7),$.y=me.getFullYear(),$.m=me.getMonth(),$.d=me.getDate()+($.w+6)%7)}else("W"in $||"U"in $)&&("w"in $||($.w="u"in $?$.u%7:"W"in $?1:0),ft="Z"in $?D0(Ei($.y,0,1)).getUTCDay():F0(Ei($.y,0,1)).getDay(),$.m=0,$.d="W"in $?($.w+6)%7+$.W*7-(ft+5)%7:$.w+$.U*7-(ft+6)%7);return"Z"in $?($.H+=$.Z/100|0,$.M+=$.Z%100,D0($)):F0($)}}function R(z,H,K,$){for(var at=0,me=H.length,ft=K.length,ht,Vn;at<me;){if($>=ft)return-1;if(ht=H.charCodeAt(at++),ht===37){if(ht=H.charAt(at++),Vn=T[ht in i3?H.charAt(at++):ht],!Vn||($=Vn(z,K,$))<0)return-1}else if(ht!=K.charCodeAt($++))return-1}return $}function V(z,H,K){var $=u.exec(H.slice(K));return $?(z.p=c.get($[0].toLowerCase()),K+$[0].length):-1}function F(z,H,K){var $=h.exec(H.slice(K));return $?(z.w=p.get($[0].toLowerCase()),K+$[0].length):-1}function D(z,H,K){var $=d.exec(H.slice(K));return $?(z.w=f.get($[0].toLowerCase()),K+$[0].length):-1}function G(z,H,K){var $=v.exec(H.slice(K));return $?(z.m=g.get($[0].toLowerCase()),K+$[0].length):-1}function X(z,H,K){var $=m.exec(H.slice(K));return $?(z.m=x.get($[0].toLowerCase()),K+$[0].length):-1}function Ae(z,H,K){return R(z,t,H,K)}function ae(z,H,K){return R(z,n,H,K)}function Oe(z,H,K){return R(z,r,H,K)}function ge(z){return i[z.getDay()]}function O(z){return a[z.getDay()]}function B(z){return l[z.getMonth()]}function W(z){return s[z.getMonth()]}function ye(z){return o[+(z.getHours()>=12)]}function Te(z){return 1+~~(z.getMonth()/3)}function Z(z){return i[z.getUTCDay()]}function dt(z){return a[z.getUTCDay()]}function Bn(z){return l[z.getUTCMonth()]}function Ze(z){return s[z.getUTCMonth()]}function Je(z){return o[+(z.getUTCHours()>=12)]}function $t(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var H=E(z+="",b);return H.toString=function(){return z},H},parse:function(z){var H=P(z+="",!1);return H.toString=function(){return z},H},utcFormat:function(z){var H=E(z+="",k);return H.toString=function(){return z},H},utcParse:function(z){var H=P(z+="",!0);return H.toString=function(){return z},H}}}var i3={"-":"",_:" ",0:"0"},Qe=/^\s*\d+/,Mq=/^%/,Aq=/[\\^$*+?|[\]().{}]/g;function re(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function Rq(e){return e.replace(Aq,"\\$&")}function Pi(e){return new RegExp("^(?:"+e.map(Rq).join("|")+")","i")}function Mi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function $q(e,t,n){var r=Qe.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Nq(e,t,n){var r=Qe.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Oq(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Fq(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Dq(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function s3(e,t,n){var r=Qe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function l3(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function zq(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Iq(e,t,n){var r=Qe.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Lq(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function u3(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Bq(e,t,n){var r=Qe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function c3(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Vq(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function jq(e,t,n){var r=Qe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Uq(e,t,n){var r=Qe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Wq(e,t,n){var r=Qe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Hq(e,t,n){var r=Mq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Yq(e,t,n){var r=Qe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Gq(e,t,n){var r=Qe.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function d3(e,t){return re(e.getDate(),t,2)}function qq(e,t){return re(e.getHours(),t,2)}function Xq(e,t){return re(e.getHours()%12||12,t,2)}function Kq(e,t){return re(1+vl.count(fr(e),e),t,3)}function x4(e,t){return re(e.getMilliseconds(),t,3)}function Qq(e,t){return x4(e,t)+"000"}function Zq(e,t){return re(e.getMonth()+1,t,2)}function Jq(e,t){return re(e.getMinutes(),t,2)}function eX(e,t){return re(e.getSeconds(),t,2)}function tX(e){var t=e.getDay();return t===0?7:t}function nX(e,t){return re(tf.count(fr(e)-1,e),t,2)}function S4(e){var t=e.getDay();return t>=4||t===0?Ka(e):Ka.ceil(e)}function rX(e,t){return e=S4(e),re(Ka.count(fr(e),e)+(fr(e).getDay()===4),t,2)}function oX(e){return e.getDay()}function aX(e,t){return re(Zc.count(fr(e)-1,e),t,2)}function iX(e,t){return re(e.getFullYear()%100,t,2)}function sX(e,t){return e=S4(e),re(e.getFullYear()%100,t,2)}function lX(e,t){return re(e.getFullYear()%1e4,t,4)}function uX(e,t){var n=e.getDay();return e=n>=4||n===0?Ka(e):Ka.ceil(e),re(e.getFullYear()%1e4,t,4)}function cX(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function f3(e,t){return re(e.getUTCDate(),t,2)}function dX(e,t){return re(e.getUTCHours(),t,2)}function fX(e,t){return re(e.getUTCHours()%12||12,t,2)}function hX(e,t){return re(1+g1.count(Hr(e),e),t,3)}function k4(e,t){return re(e.getUTCMilliseconds(),t,3)}function pX(e,t){return k4(e,t)+"000"}function mX(e,t){return re(e.getUTCMonth()+1,t,2)}function vX(e,t){return re(e.getUTCMinutes(),t,2)}function gX(e,t){return re(e.getUTCSeconds(),t,2)}function yX(e){var t=e.getUTCDay();return t===0?7:t}function bX(e,t){return re(y1.count(Hr(e)-1,e),t,2)}function w4(e){var t=e.getUTCDay();return t>=4||t===0?Qa(e):Qa.ceil(e)}function xX(e,t){return e=w4(e),re(Qa.count(Hr(e),e)+(Hr(e).getUTCDay()===4),t,2)}function SX(e){return e.getUTCDay()}function kX(e,t){return re(Jc.count(Hr(e)-1,e),t,2)}function wX(e,t){return re(e.getUTCFullYear()%100,t,2)}function _X(e,t){return e=w4(e),re(e.getUTCFullYear()%100,t,2)}function CX(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function TX(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Qa(e):Qa.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function EX(){return"+0000"}function h3(){return"%"}function p3(e){return+e}function m3(e){return Math.floor(+e/1e3)}var Xo,_4;PX({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function PX(e){return Xo=Pq(e),_4=Xo.format,Xo.parse,Xo.utcFormat,Xo.utcParse,Xo}function MX(e){return new Date(e)}function AX(e){return e instanceof Date?+e:+new Date(+e)}function C4(e,t,n,r,o,a,i,s,l,u){var c=h4(),d=c.invert,f=c.domain,h=u(".%L"),p=u(":%S"),m=u("%I:%M"),x=u("%I %p"),v=u("%a %d"),g=u("%b %d"),b=u("%B"),k=u("%Y");function T(E){return(l(E)<E?h:s(E)<E?p:i(E)<E?m:a(E)<E?x:r(E)<E?o(E)<E?v:g:n(E)<E?b:k)(E)}return c.invert=function(E){return new Date(d(E))},c.domain=function(E){return arguments.length?f(Array.from(E,AX)):f().map(MX)},c.ticks=function(E){var P=f();return e(P[0],P[P.length-1],E??10)},c.tickFormat=function(E,P){return P==null?T:u(P)},c.nice=function(E){var P=f();return(!E||typeof E.range!="function")&&(E=t(P[0],P[P.length-1],E??10)),E?f(gq(P,E)):c},c.copy=function(){return f4(c,C4(e,t,n,r,o,a,i,s,l,u))},c}function RX(){return d4.apply(C4(Tq,Eq,fr,b1,tf,vl,v1,m1,ma,_4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ko(e){return function(){return e}}function $X(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new QG(t)}function NX(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function T4(e){this._context=e}T4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function OX(e){return new T4(e)}function FX(e){return e[0]}function DX(e){return e[1]}function zX(e,t){var n=Ko(!0),r=null,o=OX,a=null,i=$X(s);e=typeof e=="function"?e:e===void 0?FX:Ko(e),t=typeof t=="function"?t:t===void 0?DX:Ko(t);function s(l){var u,c=(l=NX(l)).length,d,f=!1,h;for(r==null&&(a=o(h=i())),u=0;u<=c;++u)!(u<c&&n(d=l[u],u,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,u,l),+t(d,u,l));if(h)return a=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ko(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ko(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Ko(!!l),s):n},s.curve=function(l){return arguments.length?(o=l,r!=null&&(a=o(r)),s):o},s.context=function(l){return arguments.length?(l==null?r=a=null:a=o(r=l),s):r},s}function va(e,t,n){this.k=e,this.x=t,this.y=n}va.prototype={constructor:va,scale:function(e){return e===1?this:new va(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new va(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new va(1,0,0);va.prototype;const IX=({data:e,dimensions:t})=>{const n=Dn.useRef(null),{width:r,height:o,margin:a}=t,i=r+a.left+a.right,s=o+a.top+a.bottom;return Dn.useEffect(()=>{const l=RX().domain(hW(e[0].items,v=>v.date)).range([0,r]),u=p4().domain([bW(e[0].items,v=>v.value)-50,yW(e[0].items,v=>v.value)+50]).range([o,0]),c=uY(n.current);c.selectAll("*").remove();const d=c.append("g").attr("transform",`translate(${a.left},${a.top})`),f=TW(l).ticks(5).tickSize(-o+a.bottom),h=d.append("g").attr("transform",`translate(0, ${o-a.bottom})`).call(f);h.select(".domain").remove(),h.selectAll("line").attr("stroke","rgba(255, 255, 255, 0.2)"),h.selectAll("text").attr("opacity",.5).attr("color","white").attr("font-size","0.75rem");const p=EW(u).ticks(5).tickSize(-r).tickFormat(v=>`${v}%`),m=d.append("g").call(p);m.select(".domain").remove(),m.selectAll("line").attr("stroke","rgba(255, 255, 255, 0.2)"),m.selectAll("text").attr("opacity",.5).attr("color","white").attr("font-size","0.75rem");const x=zX().x(v=>l(v.date)).y(v=>u(v.value));d.selectAll(".line").data(e).enter().append("path").attr("fill","none").attr("stroke",v=>v.color).attr("stroke-width",3).attr("d",v=>x(v.items))},[e]),w("svg",{ref:n,width:i,height:s})},LX=[{date:"2019-07-15",marketvalue:31.900888,value:0},{date:"2019-07-16",marketvalue:31.725876,value:-.5486116875492619},{date:"2019-07-17",marketvalue:31.64809,value:-.7924481600637575},{date:"2019-07-18",marketvalue:31.725876,value:-.5486116875492619},{date:"2019-07-19",marketvalue:31.628645,value:-.8534025761289152},{date:"2019-07-22",marketvalue:31.725876,value:-.5486116875492619},{date:"2019-07-23",marketvalue:31.793936,value:-.3352633945487662},{date:"2019-07-24",marketvalue:31.891163,value:-.030485044805022357},{date:"2019-07-25",marketvalue:31.618923,value:-.8838782168070055},{date:"2019-07-26",marketvalue:31.638369,value:-.8229206660328703},{date:"2019-07-29",marketvalue:31.482803,value:-1.310574802807997},{date:"2019-07-30",marketvalue:31.268898,value:-1.9811047266145068},{date:"2019-07-31",marketvalue:31.074438,value:-2.5906802343558586},{date:"2019-08-01",marketvalue:30.870258,value:-3.2307251133573462},{date:"2019-08-02",marketvalue:30.753582,value:-3.5964704180021574},{date:"2019-08-05",marketvalue:29.849352,value:-6.430968316618647},{date:"2019-08-06",marketvalue:30.092426,value:-5.669002066650934},{date:"2019-08-07",marketvalue:30.228546,value:-5.242305480649943},{date:"2019-08-08",marketvalue:30.559124,value:-4.206039656325554},{date:"2019-08-09",marketvalue:30.37439,value:-4.785126984552907},{date:"2019-08-12",marketvalue:30.034086,value:-5.851880988391295},{date:"2019-08-13",marketvalue:30.247992,value:-5.181347929875808},{date:"2019-08-14",marketvalue:29.479881,value:-7.589152377200284},{date:"2019-08-15",marketvalue:29.450712,value:-7.680588703361487},{date:"2019-08-16",marketvalue:29.722954,value:-6.827189261941548},{date:"2019-08-19",marketvalue:29.90769,value:-6.248095664296241},{date:"2019-08-20",marketvalue:29.917412,value:-6.217620023618151},{date:"2019-08-21",marketvalue:30.160486,value:-5.455653773650439},{date:"2019-08-22",marketvalue:30.072979,value:-5.729962752134047},{date:"2019-08-23",marketvalue:29.800737,value:-6.583362193553985},{date:"2019-08-26",marketvalue:29.888243,value:-6.309056349779354},{date:"2019-08-27",marketvalue:29.946581,value:-6.126183697456948},{date:"2019-08-28",marketvalue:29.936859,value:-6.1566593381350385},{date:"2019-08-29",marketvalue:30.072979,value:-5.729962752134047},{date:"2019-08-30",marketvalue:30.30633,value:-4.9984752775534025},{date:"2019-09-03",marketvalue:30.150763,value:-5.486132549037507},{date:"2019-09-04",marketvalue:30.549402,value:-4.236515297003645},{date:"2019-09-05",marketvalue:30.850811,value:-3.2916857988404584},{date:"2019-09-06",marketvalue:30.860535,value:-3.2612038887444137},{date:"2019-09-09",marketvalue:30.889704,value:-3.169767562583211},{date:"2019-09-10",marketvalue:30.879982,value:-3.200243203261301},{date:"2019-09-11",marketvalue:31.113331,value:-2.468761998098611},{date:"2019-09-12",marketvalue:31.200838,value:-2.1944530196150027},{date:"2019-09-13",marketvalue:31.366125,value:-1.676326376870763},{date:"2019-09-16",marketvalue:31.259176,value:-2.011580367292597},{date:"2019-09-17",marketvalue:31.424463,value:-1.4934537245483575},{date:"2019-09-18",marketvalue:31.356403,value:-1.7068020175488532},{date:"2019-09-19",marketvalue:31.473078,value:-1.3410598476130193},{date:"2019-09-20",marketvalue:31.366125,value:-1.676326376870763},{date:"2019-09-23",marketvalue:31.307791,value:-1.859186490357259},{date:"2019-09-24",marketvalue:31.288343,value:-1.920150310549349},{date:"2019-09-25",marketvalue:31.016102,value:-2.7735466172603096},{date:"2019-09-26",marketvalue:31.074438,value:-2.5906802343558586},{date:"2019-09-27",marketvalue:30.841089,value:-3.322161439518549},{date:"2019-09-30",marketvalue:30.918871,value:-3.0783375058399627},{date:"2019-10-01",marketvalue:30.773029,value:-3.5355097325190448},{date:"2019-10-02",marketvalue:30.335499,value:-4.9070389513922},{date:"2019-10-03",marketvalue:30.461895,value:-4.510824275487253},{date:"2019-10-04",marketvalue:30.74386,value:-3.6269460586802476},{date:"2019-10-07",marketvalue:30.636908,value:-3.9622094532290135},{date:"2019-10-08",marketvalue:30.335499,value:-4.9070389513922},{date:"2019-10-09",marketvalue:30.549402,value:-4.236515297003645},{date:"2019-10-10",marketvalue:30.714691,value:-3.7183823848414503},{date:"2019-10-11",marketvalue:31.298065,value:-1.8896746698712588},{date:"2019-10-14",marketvalue:31.152224,value:-2.346843761841363},{date:"2019-10-15",marketvalue:31.502249,value:-1.249617252033862},{date:"2019-10-16",marketvalue:31.589756,value:-.9753082735502535},{date:"2019-10-17",marketvalue:31.725876,value:-.5486116875492619},{date:"2019-10-18",marketvalue:31.71615,value:-.5790998670632617},{date:"2019-10-21",marketvalue:31.949503,value:.15239387693533799},{date:"2019-10-22",marketvalue:31.803658,value:-.30478775387067597},{date:"2019-10-23",marketvalue:31.939777,value:.12190569742133824},{date:"2019-10-24",marketvalue:31.900888,value:0},{date:"2019-10-25",marketvalue:31.97867,value:.243823933678586},{date:"2019-10-28",marketvalue:32.04673,value:.4571722266790818},{date:"2019-10-29",marketvalue:32.085621,value:.5790841935183748},{date:"2019-10-30",marketvalue:32.18285,value:.8838688126800733},{date:"2019-10-31",marketvalue:32.143963,value:.7619693846766898},{date:"2019-11-01",marketvalue:32.464817,value:1.7677532989050335},{date:"2019-11-04",marketvalue:32.62038,value:2.255398031553228},{date:"2019-11-05",marketvalue:32.659275,value:2.3773225372284306},{date:"2019-11-06",marketvalue:32.57177,value:2.103019828162777},{date:"2019-11-07",marketvalue:32.766228,value:2.7125890664861743},{date:"2019-11-08",marketvalue:32.727333,value:2.5906645608109717},{date:"2019-11-11",marketvalue:32.775948,value:2.74305843774631},{date:"2019-11-12",marketvalue:32.74678,value:2.6516252462940844},{date:"2019-11-13",marketvalue:32.62038,value:2.255398031553228},{date:"2019-11-14",marketvalue:32.649555,value:2.3468531659682954},{date:"2019-11-15",marketvalue:32.980129,value:3.3831064514567744},{date:"2019-11-18",marketvalue:32.970409,value:3.352637080196639},{date:"2019-11-19",marketvalue:32.892628,value:3.1088162812270306},{date:"2019-11-20",marketvalue:32.795395,value:2.8040191232294225},{date:"2019-11-21",marketvalue:32.688442,value:2.468752593971679},{date:"2019-11-22",marketvalue:32.678722,value:2.438283222711543},{date:"2019-11-25",marketvalue:32.87318,value:3.0478524610349407},{date:"2019-11-26",marketvalue:32.999577,value:3.4440702716488643},{date:"2019-11-27",marketvalue:33.106529,value:3.7793336661976307},{date:"2019-11-29",marketvalue:32.989853,value:3.4135883615528195},{date:"2019-12-02",marketvalue:32.844009,value:2.956409865455783},{date:"2019-12-03",marketvalue:32.766228,value:2.7125890664861743},{date:"2019-12-04",marketvalue:33.125973,value:3.840284947553811},{date:"2019-12-05",marketvalue:33.223202,value:4.1450695667155095},{date:"2019-12-06",marketvalue:33.456554,value:4.876560176005132},{date:"2019-12-09",marketvalue:33.378773,value:4.632739377035524},{date:"2019-12-10",marketvalue:33.40794,value:4.724169433778771},{date:"2019-12-11",marketvalue:33.475998,value:4.937511457361312},{date:"2019-12-12",marketvalue:33.669998,value:5.545644998973069},{date:"2019-12-13",marketvalue:33.93,value:6.360675602509874},{date:"2019-12-16",marketvalue:34.279999,value:7.457820609883963},{date:"2019-12-17",marketvalue:34.119999,value:6.956267173503132},{date:"2019-12-18",marketvalue:34.02,value:6.642799410474091},{date:"2019-12-19",marketvalue:34.09,value:6.862229038890704},{date:"2019-12-20",marketvalue:34.060001,value:6.768190904278276},{date:"2019-12-23",marketvalue:34.200001,value:7.2070501611115025},{date:"2019-12-24",marketvalue:34.240002,value:7.332441654915687},{date:"2019-12-26",marketvalue:34.459999,value:8.022068225812397},{date:"2019-12-27",marketvalue:34.57,value:8.366889348033196},{date:"2019-12-30",marketvalue:34.490002,value:8.116118899260735},{date:"2019-12-31",marketvalue:34.650002,value:8.617672335641565},{date:"2020-01-02",marketvalue:34.900002,value:9.401349579986613},{date:"2020-01-03",marketvalue:34.540001,value:8.272851213420768},{date:"2020-01-06",marketvalue:34.5,value:8.147459719616583},{date:"2020-01-07",marketvalue:34.509998,value:8.17880053997243},{date:"2020-01-08",marketvalue:34.349998,value:7.677247103591599},{date:"2020-01-09",marketvalue:34.5,value:8.147459719616583},{date:"2020-01-10",marketvalue:34.34,value:7.645906283235752},{date:"2020-01-13",marketvalue:34.560001,value:8.33554539296837},{date:"2020-01-14",marketvalue:34.59,value:8.4295835275808},{date:"2020-01-15",marketvalue:34.610001,value:8.492280841837381},{date:"2020-01-16",marketvalue:34.66,value:8.649013155997412},{date:"2020-01-17",marketvalue:34.68,value:8.711707335545016},{date:"2020-01-21",marketvalue:34.540001,value:8.272851213420768},{date:"2020-01-22",marketvalue:34.610001,value:8.492280841837381},{date:"2020-01-23",marketvalue:34.52,value:8.210153899164187},{date:"2020-01-24",marketvalue:34.360001,value:7.708603597492333},{date:"2020-01-27",marketvalue:33.650002,value:5.482963358261375},{date:"2020-01-28",marketvalue:33.810001,value:5.984513659933228},{date:"2020-01-29",marketvalue:33.77,value:5.859122166129043},{date:"2020-01-30",marketvalue:33.73,value:5.733733807033835},{date:"2020-01-31",marketvalue:33.220001,value:4.135035363278916},{date:"2020-02-03",marketvalue:33.279999,value:4.323111632503772},{date:"2020-02-04",marketvalue:33.82,value:6.015857614998053},{date:"2020-02-05",marketvalue:34.049999,value:6.736837545086519},{date:"2020-02-06",marketvalue:34.09,value:6.862229038890704},{date:"2020-02-07",marketvalue:33.720001,value:5.702389851969011},{date:"2020-02-10",marketvalue:33.759998,value:5.827768806937287},{date:"2020-02-11",marketvalue:34.040001,value:6.705496724730672},{date:"2020-02-12",marketvalue:34.25,value:7.363782475271535},{date:"2020-02-13",marketvalue:34.16,value:7.081658667307318},{date:"2020-02-14",marketvalue:34.130001,value:6.987620532694889},{date:"2020-02-18",marketvalue:33.849998,value:6.109892614901503},{date:"2020-02-19",marketvalue:33.93,value:6.360675602509874},{date:"2020-02-20",marketvalue:33.799999,value:5.953160300741471},{date:"2020-02-21",marketvalue:33.630001,value:5.420266044004794},{date:"2020-02-24",marketvalue:32.310001,value:1.282450193862942},{date:"2020-02-25",marketvalue:31.65,value:-.7864608659169613},{date:"2020-02-26",marketvalue:31.58,value:-1.0058904943335747},{date:"2020-02-27",marketvalue:30.48,value:-4.4540703694517845},{date:"2020-02-28",marketvalue:30.24,value:-5.206400524023031},{date:"2020-03-02",marketvalue:30.67,value:-3.858475663749548},{date:"2020-03-03",marketvalue:30.639999,value:-3.9525200677799313},{date:"2020-03-04",marketvalue:31.33,value:-1.7895677386786224},{date:"2020-03-05",marketvalue:30.35,value:-4.861582536511209},{date:"2020-03-06",marketvalue:29.879999,value:-6.334898890588876},{date:"2020-03-09",marketvalue:27.459999,value:-13.920894615848939},{date:"2020-03-10",marketvalue:28.41,value:-10.942917952628779},{date:"2020-03-11",marketvalue:26.790001,value:-16.021143361275712},{date:"2020-03-12",marketvalue:23.52,value:-26.271644852017914},{date:"2020-03-13",marketvalue:24.75,value:-22.415952809840277},{date:"2020-03-16",marketvalue:21.9,value:-31.349873395373823},{date:"2020-03-17",marketvalue:22.540001,value:-29.34365651514152},{date:"2020-03-18",marketvalue:20.879999,value:-34.547279687010594},{date:"2020-03-19",marketvalue:21.07,value:-33.95168184659938},{date:"2020-03-20",marketvalue:21.08,value:-33.920334756825575},{date:"2020-03-23",marketvalue:20.700001,value:-35.11152103352107},{date:"2020-03-24",marketvalue:22.5,value:-29.469048008945705},{date:"2020-03-25",marketvalue:23.290001,value:-26.99262478210638},{date:"2020-03-26",marketvalue:24.41,value:-23.481753862149542},{date:"2020-03-27",marketvalue:23.809999,value:-25.362582383286636},{date:"2020-03-30",marketvalue:24.209999,value:-24.108698792334557}],BX=[{date:"2019-07-15",marketvalue:87.08712,value:0},{date:"2019-07-16",marketvalue:86.950516,value:-.15685901658017856},{date:"2019-07-17",marketvalue:87.282272,value:.22408824634458},{date:"2019-07-18",marketvalue:87.574997,value:.5602171710351657},{date:"2019-07-19",marketvalue:87.467674,value:.43698080726518457},{date:"2019-07-22",marketvalue:87.594528,value:.5826441384213877},{date:"2019-07-23",marketvalue:87.623802,value:.6162587533035884},{date:"2019-07-24",marketvalue:87.760414,value:.7731269560871917},{date:"2019-07-25",marketvalue:87.711609,value:.717085373818769},{date:"2019-07-26",marketvalue:87.721359,value:.7282810592427446},{date:"2019-07-29",marketvalue:87.623802,value:.6162587533035884},{date:"2019-07-30",marketvalue:87.721359,value:.7282810592427446},{date:"2019-07-31",marketvalue:87.653076,value:.6498733681857891},{date:"2019-08-01",marketvalue:88.293175,value:1.3848833214371998},{date:"2019-08-02",marketvalue:88.361679,value:1.4635447813637654},{date:"2019-08-05",marketvalue:88.547646,value:1.6770861179012464},{date:"2019-08-06",marketvalue:88.811897,value:1.9805190480521115},{date:"2019-08-07",marketvalue:88.811897,value:1.9805190480521115},{date:"2019-08-08",marketvalue:88.890198,value:2.070430162347773},{date:"2019-08-09",marketvalue:88.684677,value:1.8344354480892238},{date:"2019-08-12",marketvalue:89.027237,value:2.2277886787391754},{date:"2019-08-13",marketvalue:88.880432,value:2.059216104516948},{date:"2019-08-14",marketvalue:89.046814,value:2.25026846679509},{date:"2019-08-15",marketvalue:89.389374,value:2.6436216974450413},{date:"2019-08-16",marketvalue:89.545975,value:2.8234427777609366},{date:"2019-08-19",marketvalue:89.281723,value:2.5200086993346433},{date:"2019-08-20",marketvalue:89.614471,value:2.902095051484077},{date:"2019-08-21",marketvalue:89.731934,value:3.0369749280949927},{date:"2019-08-22",marketvalue:89.594917,value:2.879641673763009},{date:"2019-08-23",marketvalue:89.800446,value:3.115645574224983},{date:"2019-08-26",marketvalue:89.800446,value:3.115645574224983},{date:"2019-08-27",marketvalue:90.054916,value:3.4078472224136016},{date:"2019-08-28",marketvalue:90.133224,value:3.49776637463726},{date:"2019-08-29",marketvalue:89.986412,value:3.329185762487036},{date:"2019-08-30",marketvalue:89.937477,value:3.2729949044129603},{date:"2019-09-03",marketvalue:89.987526,value:3.3304649413139393},{date:"2019-09-04",marketvalue:90.242729,value:3.6235082753913552},{date:"2019-09-05",marketvalue:89.761772,value:3.071237170318642},{date:"2019-09-06",marketvalue:89.948265,value:3.2853824997313037},{date:"2019-09-09",marketvalue:89.506569,value:2.778193836241226},{date:"2019-09-10",marketvalue:88.996178,value:2.1921243922178157},{date:"2019-09-11",marketvalue:88.898026,value:2.0794188623989402},{date:"2019-09-12",marketvalue:88.888199,value:2.068134759767001},{date:"2019-09-13",marketvalue:88.279663,value:1.369367823852712},{date:"2019-09-16",marketvalue:88.554482,value:1.6849357287277384},{date:"2019-09-17",marketvalue:88.750778,value:1.9103376021620648},{date:"2019-09-18",marketvalue:88.839119,value:2.0117774017558507},{date:"2019-09-19",marketvalue:88.92746,value:2.113217201349637},{date:"2019-09-20",marketvalue:89.290634,value:2.5302409816744427},{date:"2019-09-23",marketvalue:89.369164,value:2.6204150510431394},{date:"2019-09-24",marketvalue:89.565468,value:2.8458261106808904},{date:"2019-09-25",marketvalue:89.202293,value:2.4288011820806568},{date:"2019-09-26",marketvalue:89.329903,value:2.5753326094605034},{date:"2019-09-27",marketvalue:89.437874,value:2.6993130557078935},{date:"2019-09-30",marketvalue:89.555656,value:2.8345592321803728},{date:"2019-10-01",marketvalue:89.758385,value:3.067347961443667},{date:"2019-10-02",marketvalue:89.837128,value:3.157766613478549},{date:"2019-10-03",marketvalue:90.220963,value:3.5985149124233295},{date:"2019-10-04",marketvalue:90.339066,value:3.734129685308229},{date:"2019-10-07",marketvalue:90.073326,value:3.4289869730449234},{date:"2019-10-08",marketvalue:90.132385,value:3.496802971553084},{date:"2019-10-09",marketvalue:90.073326,value:3.4289869730449234},{date:"2019-10-10",marketvalue:89.699341,value:2.9995491870669277},{date:"2019-10-11",marketvalue:89.463142,value:2.728327679225125},{date:"2019-10-14",marketvalue:89.650124,value:2.943034515322128},{date:"2019-10-15",marketvalue:89.443451,value:2.7057169877704075},{date:"2019-10-16",marketvalue:89.571404,value:2.8526422736220924},{date:"2019-10-17",marketvalue:89.640282,value:2.931733188558767},{date:"2019-10-18",marketvalue:89.778084,value:3.08996783910181},{date:"2019-10-21",marketvalue:89.59108,value:2.875235740945389},{date:"2019-10-22",marketvalue:89.758385,value:3.067347961443667},{date:"2019-10-23",marketvalue:89.758385,value:3.067347961443667},{date:"2019-10-24",marketvalue:89.886337,value:3.214272099019924},{date:"2019-10-25",marketvalue:89.74855,value:3.056054672608303},{date:"2019-10-28",marketvalue:89.59108,value:2.875235740945389},{date:"2019-10-29",marketvalue:89.482819,value:2.75092229482385},{date:"2019-10-30",marketvalue:89.71904,value:3.0221690647250705},{date:"2019-10-31",marketvalue:90.152069,value:3.519405625079805},{date:"2019-11-01",marketvalue:90.159973,value:3.528481594063508},{date:"2019-11-04",marketvalue:89.844139,value:3.1658171725049584},{date:"2019-11-05",marketvalue:89.469093,value:2.735161066297749},{date:"2019-11-06",marketvalue:89.78492,value:3.0978174499283018},{date:"2019-11-07",marketvalue:89.321037,value:2.5651519995149683},{date:"2019-11-08",marketvalue:89.242073,value:2.4744795786104765},{date:"2019-11-11",marketvalue:89.28157,value:2.5198330131941438},{date:"2019-11-12",marketvalue:89.340782,value:2.587824697842804},{date:"2019-11-13",marketvalue:89.488823,value:2.757816540494163},{date:"2019-11-14",marketvalue:89.844139,value:3.1658171725049584},{date:"2019-11-15",marketvalue:89.814529,value:3.131816737078916},{date:"2019-11-18",marketvalue:89.932968,value:3.267817330507657},{date:"2019-11-19",marketvalue:90.041542,value:3.3924901868381916},{date:"2019-11-20",marketvalue:90.140221,value:3.505800857807676},{date:"2019-11-21",marketvalue:90.041542,value:3.3924901868381916},{date:"2019-11-22",marketvalue:90.090881,value:3.4491449481852197},{date:"2019-11-25",marketvalue:90.248795,value:3.63047371413821},{date:"2019-11-26",marketvalue:90.337624,value:3.732473872140909},{date:"2019-11-27",marketvalue:90.298149,value:3.68714569961666},{date:"2019-11-29",marketvalue:90.189575,value:3.5624728432861255},{date:"2019-12-02",marketvalue:89.973839,value:3.314748495529534},{date:"2019-12-03",marketvalue:90.528023,value:3.9511043653757296},{date:"2019-12-04",marketvalue:90.399376,value:3.803382176376943},{date:"2019-12-05",marketvalue:90.330101,value:3.7238353960953123},{date:"2019-12-06",marketvalue:90.23114,value:3.6102009114551037},{date:"2019-12-09",marketvalue:90.23114,value:3.6102009114551037},{date:"2019-12-10",marketvalue:90.171768,value:3.542025502737948},{date:"2019-12-11",marketvalue:90.419167,value:3.826107695374471},{date:"2019-12-12",marketvalue:90.132179,value:3.496566426814895},{date:"2019-12-13",marketvalue:90.51812,value:3.939732993811255},{date:"2019-12-16",marketvalue:90.330101,value:3.7238353960953123},{date:"2019-12-17",marketvalue:90.339996,value:3.7351975814563625},{date:"2019-12-18",marketvalue:90.280624,value:3.6670221727392063},{date:"2019-12-19",marketvalue:90.409271,value:3.814744361737993},{date:"2019-12-20",marketvalue:90.359779,value:3.7579139142504654},{date:"2019-12-23",marketvalue:90.305206,value:3.6952490793127617},{date:"2019-12-24",marketvalue:90.50367,value:3.9231404138752093},{date:"2019-12-26",marketvalue:90.523537,value:3.9459532018052728},{date:"2019-12-27",marketvalue:90.702156,value:4.151057010497075},{date:"2019-12-30",marketvalue:90.801392,value:4.265007270880011},{date:"2019-12-31",marketvalue:90.632683,value:4.071282871680681},{date:"2020-01-02",marketvalue:90.751762,value:4.208018361383406},{date:"2020-01-03",marketvalue:91.009781,value:4.504295239066351},{date:"2020-01-06",marketvalue:90.950249,value:4.435936106280699},{date:"2020-01-07",marketvalue:90.880783,value:4.356170005392301},{date:"2020-01-08",marketvalue:90.821236,value:4.287793648475228},{date:"2020-01-09",marketvalue:90.950249,value:4.435936106280699},{date:"2020-01-10",marketvalue:91.069328,value:4.572671595983424},{date:"2020-01-13",marketvalue:90.960167,value:4.447324701976595},{date:"2020-01-14",marketvalue:91.069328,value:4.572671595983424},{date:"2020-01-15",marketvalue:91.218185,value:4.743600431384113},{date:"2020-01-16",marketvalue:91.238029,value:4.76638680897933},{date:"2020-01-17",marketvalue:91.218185,value:4.743600431384113},{date:"2020-01-21",marketvalue:91.476196,value:5.039868122863633},{date:"2020-01-22",marketvalue:91.555588,value:5.1310320056513525},{date:"2020-01-23",marketvalue:91.694527,value:5.290572245356144},{date:"2020-01-24",marketvalue:91.853294,value:5.472880490249304},{date:"2020-01-27",marketvalue:92.031921,value:5.6779934851445315},{date:"2020-01-28",marketvalue:92.002151,value:5.643809325649992},{date:"2020-01-29",marketvalue:92.190697,value:5.860312064516544},{date:"2020-01-30",marketvalue:92.319702,value:6.00844533611859},{date:"2020-01-31",marketvalue:92.627342,value:6.361700788819288},{date:"2020-02-03",marketvalue:92.530838,value:6.2508876169059215},{date:"2020-02-04",marketvalue:92.302025,value:5.988147271376065},{date:"2020-02-05",marketvalue:92.212494,value:5.885341024022841},{date:"2020-02-06",marketvalue:92.182648,value:5.851069595595766},{date:"2020-02-07",marketvalue:92.431358,value:6.136657177318529},{date:"2020-02-10",marketvalue:92.640274,value:6.376550286655478},{date:"2020-02-11",marketvalue:92.500999,value:6.216624226406844},{date:"2020-02-12",marketvalue:92.401505,value:6.1023777109634585},{date:"2020-02-13",marketvalue:92.391563,value:6.0909615566572874},{date:"2020-02-14",marketvalue:92.510941,value:6.228040380713015},{date:"2020-02-18",marketvalue:92.650215,value:6.3879652926862205},{date:"2020-02-19",marketvalue:92.600479,value:6.330854665994236},{date:"2020-02-20",marketvalue:92.799446,value:6.559323583097019},{date:"2020-02-21",marketvalue:92.978523,value:6.76495330193489},{date:"2020-02-24",marketvalue:93.117798,value:6.924879362183524},{date:"2020-02-25",marketvalue:93.25708,value:7.084813460360154},{date:"2020-02-26",marketvalue:93.157593,value:6.970574982844765},{date:"2020-02-27",marketvalue:92.898926,value:6.673554022684411},{date:"2020-02-28",marketvalue:93.674919,value:7.564607716962049},{date:"2020-03-02",marketvalue:93.485474,value:7.347072678485636},{date:"2020-03-03",marketvalue:94.442657,value:8.44618239758072},{date:"2020-03-04",marketvalue:94.542366,value:8.560675792241149},{date:"2020-03-05",marketvalue:94.482544,value:8.491983659581347},{date:"2020-03-06",marketvalue:94.372864,value:8.366040810627336},{date:"2020-03-09",marketvalue:92.787514,value:6.545622360688928},{date:"2020-03-10",marketvalue:91.551147,value:5.12593251447516},{date:"2020-03-11",marketvalue:89.237946,value:2.4697406459187077},{date:"2020-03-12",marketvalue:86.695404,value:-.4497978575936373},{date:"2020-03-13",marketvalue:88.599815,value:1.7369904987097977},{date:"2020-03-16",marketvalue:87.832069,value:.8554066318877005},{date:"2020-03-17",marketvalue:85.349358,value:-1.9954294044859906},{date:"2020-03-18",marketvalue:81.520607,value:-6.391890098099466},{date:"2020-03-19",marketvalue:79.546402,value:-8.658821189631716},{date:"2020-03-20",marketvalue:78.59919,value:-9.746481454433216},{date:"2020-03-23",marketvalue:82.866653,value:-4.8462585512071135},{date:"2020-03-24",marketvalue:83.095978,value:-4.58293028865807},{date:"2020-03-25",marketvalue:85.62854,value:-1.6748515739181637},{date:"2020-03-26",marketvalue:85.768127,value:-1.5145672517359627},{date:"2020-03-27",marketvalue:85.598625,value:-1.7092022333497767},{date:"2020-03-30",marketvalue:86.46608,value:-.713124971867252}],VX=[{date:"2019-07-15",marketvalue:96462.350117,value:0},{date:"2019-07-16",marketvalue:96525.107316,value:.06505874978567416},{date:"2019-07-17",marketvalue:96399.51708,value:-.06513736906035285},{date:"2019-07-18",marketvalue:96452.964545,value:-.009729777460963951},{date:"2019-07-19",marketvalue:96673.377824,value:.21876691449466315},{date:"2019-07-22",marketvalue:96446.730245,value:-.016192713510560883},{date:"2019-07-23",marketvalue:96483.764726,value:.02219996607383714},{date:"2019-07-24",marketvalue:96579.495121,value:.12144116731337547},{date:"2019-07-25",marketvalue:96691.287123,value:.2373330172054904},{date:"2019-07-26",marketvalue:96508.730766,value:.04808160794729189},{date:"2019-07-29",marketvalue:96565.511343,value:.10694454973870622},{date:"2019-07-30",marketvalue:96591.277652,value:.13365580959164142},{date:"2019-07-31",marketvalue:96607.294778,value:.15026034595279442},{date:"2019-08-01",marketvalue:96480.329478,value:.018638734157101378},{date:"2019-08-02",marketvalue:96577.3235,value:.1191899045177189},{date:"2019-08-05",marketvalue:96489.351828,value:.027991968853391398},{date:"2019-08-06",marketvalue:96254.421325,value:-.21555435021829908},{date:"2019-08-07",marketvalue:96496.665176,value:.03557352579361686},{date:"2019-08-08",marketvalue:96576.337347,value:.11816758544835776},{date:"2019-08-09",marketvalue:96888.061228,value:.44132359462904586},{date:"2019-08-12",marketvalue:96720.383677,value:.26749665510640047},{date:"2019-08-13",marketvalue:96719.469592,value:.26654904705114235},{date:"2019-08-14",marketvalue:96757.986517,value:.30647853762781035},{date:"2019-08-15",marketvalue:96403.474788,value:-.06103451650160878},{date:"2019-08-16",marketvalue:96685.82158,value:.23166703146766543},{date:"2019-08-19",marketvalue:96841.157439,value:.39269966110149856},{date:"2019-08-20",marketvalue:96839.713987,value:.3912032720976549},{date:"2019-08-21",marketvalue:96845.792683,value:.3975048975428437},{date:"2019-08-22",marketvalue:96892.596646,value:.4460253440623729},{date:"2019-08-23",marketvalue:96843.749491,value:.3953867737385596},{date:"2019-08-26",marketvalue:96703.057011,value:.24953455281573025},{date:"2019-08-27",marketvalue:96780.07342,value:.3293754533397027},{date:"2019-08-28",marketvalue:96842.400645,value:.39398846030501383},{date:"2019-08-29",marketvalue:96964.07836,value:.5201285707754887},{date:"2019-08-30",marketvalue:97164.496279,value:.7278965950428959},{date:"2019-09-03",marketvalue:97166.571221,value:.730047633243275},{date:"2019-09-04",marketvalue:97176.918344,value:.7407742255224905},{date:"2019-09-05",marketvalue:97537.624853,value:1.114709246349265},{date:"2019-09-06",marketvalue:97399.021771,value:.9710230497846082},{date:"2019-09-09",marketvalue:97486.474542,value:1.0616830543293116},{date:"2019-09-10",marketvalue:97437.181374,value:1.0105821139725695},{date:"2019-09-11",marketvalue:97230.638306,value:.7964643076476332},{date:"2019-09-12",marketvalue:97314.601929,value:.8835072035527816},{date:"2019-09-13",marketvalue:97384.387342,value:.9558519193049446},{date:"2019-09-16",marketvalue:97113.050706,value:.6745643126160203},{date:"2019-09-17",marketvalue:97277.18766,value:.8447208076640023},{date:"2019-09-18",marketvalue:97384.016826,value:.955467815040897},{date:"2019-09-19",marketvalue:97308.230347,value:.8769019508378395},{date:"2019-09-20",marketvalue:97327.895344,value:.8972881398288274},{date:"2019-09-23",marketvalue:97436.158107,value:1.0095213197883528},{date:"2019-09-24",marketvalue:97514.106981,value:1.090328882433732},{date:"2019-09-25",marketvalue:97526.298578,value:1.1029675927546114},{date:"2019-09-26",marketvalue:97388.084778,value:.9596849546762738},{date:"2019-09-27",marketvalue:97443.947461,value:1.0175963397215726},{date:"2019-09-30",marketvalue:97383.464669,value:.9548954082942955},{date:"2019-10-01",marketvalue:97474.627225,value:1.0494012500962298},{date:"2019-10-02",marketvalue:97342.32013,value:.9122419388835923},{date:"2019-10-03",marketvalue:97211.29761,value:.7764143130367395},{date:"2019-10-04",marketvalue:97512.613281,value:1.0887804026401253},{date:"2019-10-07",marketvalue:97776.735033,value:1.3625885274470002},{date:"2019-10-08",marketvalue:97569.263823,value:1.1475085405418954},{date:"2019-10-09",marketvalue:97407.235701,value:.9795382165725179},{date:"2019-10-10",marketvalue:97465.039155,value:1.0394615482453309},{date:"2019-10-11",marketvalue:97406.169206,value:.9784326090492652},{date:"2019-10-14",marketvalue:97452.690911,value:1.0266604460691733},{date:"2019-10-15",marketvalue:97470.595007,value:1.0452211549657366},{date:"2019-10-16",marketvalue:97466.029882,value:1.0404886090610774},{date:"2019-10-17",marketvalue:97568.950336,value:1.1471835567532775},{date:"2019-10-18",marketvalue:97634.155296,value:1.2147798364633535},{date:"2019-10-21",marketvalue:97691.341629,value:1.274063414906796},{date:"2019-10-22",marketvalue:97726.839352,value:1.310862977593113},{date:"2019-10-23",marketvalue:97811.64346,value:1.3987771823550128},{date:"2019-10-24",marketvalue:97896.967942,value:1.4872308452571805},{date:"2019-10-25",marketvalue:97905.45484,value:1.4960289908442477},{date:"2019-10-28",marketvalue:97867.999828,value:1.4572003577510557},{date:"2019-10-29",marketvalue:97811.109714,value:1.3982238618114509},{date:"2019-10-30",marketvalue:97798.521902,value:1.385174405744154},{date:"2019-10-31",marketvalue:97982.915923,value:1.5763308732948067},{date:"2019-11-01",marketvalue:98026.460333,value:1.6214722263171875},{date:"2019-11-04",marketvalue:98254.760558,value:1.858145109284576},{date:"2019-11-05",marketvalue:98229.873598,value:1.8323454475825602},{date:"2019-11-06",marketvalue:98028.29059,value:1.623369605966118},{date:"2019-11-07",marketvalue:98140.154028,value:1.7393355116944356},{date:"2019-11-08",marketvalue:97909.590581,value:1.5003164055661404},{date:"2019-11-11",marketvalue:97860.451155,value:1.449374845527018},{date:"2019-11-12",marketvalue:97819.505278,value:1.4069273238251971},{date:"2019-11-13",marketvalue:97782.130513,value:1.368181880701877},{date:"2019-11-14",marketvalue:97854.08529,value:1.442775519476721},{date:"2019-11-15",marketvalue:97997.972258,value:1.5919393827098665},{date:"2019-11-18",marketvalue:98098.840952,value:1.6965073243758693},{date:"2019-11-19",marketvalue:98175.19985,value:1.7756666004119432},{date:"2019-11-20",marketvalue:98201.76881,value:1.8032099476015713},{date:"2019-11-21",marketvalue:98219.35793,value:1.8214441291020904},{date:"2019-11-22",marketvalue:98037.0082,value:1.63240692466033},{date:"2019-11-25",marketvalue:98083.980689,value:1.6811020776843095},{date:"2019-11-26",marketvalue:98231.524896,value:1.8340573051083173},{date:"2019-11-27",marketvalue:98359.11636,value:1.9663280447753928},{date:"2019-11-29",marketvalue:98331.157465,value:1.9373437882586395},{date:"2019-12-02",marketvalue:98196.470453,value:1.7977172792251803},{date:"2019-12-03",marketvalue:97985.542392,value:1.5790536651372347},{date:"2019-12-04",marketvalue:98186.013875,value:1.7868772178050334},{date:"2019-12-05",marketvalue:98219.730127,value:1.821829976014952},{date:"2019-12-06",marketvalue:98192.107341,value:1.7931941549236181},{date:"2019-12-09",marketvalue:98290.427798,value:1.895120405819171},{date:"2019-12-10",marketvalue:98285.248089,value:1.8897507367268076},{date:"2019-12-11",marketvalue:98201.027441,value:1.802441389714374},{date:"2019-12-12",marketvalue:98201.027441,value:1.802441389714374},{date:"2019-12-13",marketvalue:98202.295923,value:1.8037563918872026},{date:"2019-12-16",marketvalue:98402.31284,value:2.011108707850268},{date:"2019-12-17",marketvalue:98425.828874,value:2.035487166359186},{date:"2019-12-18",marketvalue:98438.830245,value:2.048965348244896},{date:"2019-12-19",marketvalue:98435.414501,value:2.0454243356157646},{date:"2019-12-20",marketvalue:98538.69284,value:2.152490293344073},{date:"2019-12-23",marketvalue:98570.553713,value:2.185519628583527},{date:"2019-12-24",marketvalue:98504.782564,value:2.117336395518787},{date:"2019-12-26",marketvalue:98581.437432,value:2.196802495926899},{date:"2019-12-27",marketvalue:98720.114047,value:2.3405649222329115},{date:"2019-12-30",marketvalue:98811.176919,value:2.4349674242345207},{date:"2019-12-31",marketvalue:98781.648462,value:2.4043560437693086},{date:"2020-01-02",marketvalue:98829.828144,value:2.4543026622599036},{date:"2020-01-03",marketvalue:98984.759794,value:2.61491625897622},{date:"2020-01-06",marketvalue:99090.374196,value:2.7244039522284575},{date:"2020-01-07",marketvalue:99103.969722,value:2.7384980790909172},{date:"2020-01-08",marketvalue:98935.740683,value:2.5640994263565045},{date:"2020-01-09",marketvalue:98912.261117,value:2.5397587732711076},{date:"2020-01-10",marketvalue:98961.384815,value:2.5906840285032446},{date:"2020-01-13",marketvalue:99037.266888,value:2.669348992510406},{date:"2020-01-14",marketvalue:99161.301492,value:2.7979324282753004},{date:"2020-01-15",marketvalue:99205.498722,value:2.843750542748349},{date:"2020-01-16",marketvalue:99277.861479,value:2.9187671237379584},{date:"2020-01-17",marketvalue:99378.671186,value:3.0232739151210493},{date:"2020-01-21",marketvalue:99408.32095,value:3.05401105138617},{date:"2020-01-22",marketvalue:99466.008723,value:3.1138144595863952},{date:"2020-01-23",marketvalue:99427.619056,value:3.0740168940559713},{date:"2020-01-24",marketvalue:99471.869889,value:3.119890577359693},{date:"2020-01-27",marketvalue:99493.909123,value:3.1427380758637917},{date:"2020-01-28",marketvalue:99317.1838,value:2.9595315473211548},{date:"2020-01-29",marketvalue:99387.141368,value:3.032054731667325},{date:"2020-01-30",marketvalue:99477.812675,value:3.126051308456118},{date:"2020-01-31",marketvalue:99470.344875,value:3.1183096351598087},{date:"2020-02-03",marketvalue:99297.665981,value:2.9392979339203547},{date:"2020-02-04",marketvalue:99329.471305,value:2.9722696829617403},{date:"2020-02-05",marketvalue:99463.16128,value:3.1108625897671898},{date:"2020-02-06",marketvalue:99547.611143,value:3.1984095579859506},{date:"2020-02-07",marketvalue:99625.998005,value:3.2796711713562696},{date:"2020-02-10",marketvalue:99627.317677,value:3.2810392408656686},{date:"2020-02-11",marketvalue:99781.123177,value:3.4404853872776604},{date:"2020-02-12",marketvalue:99809.3414,value:3.4697384823616737},{date:"2020-02-13",marketvalue:99864.647901,value:3.5270732880479527},{date:"2020-02-14",marketvalue:99886.065631,value:3.549276489581009},{date:"2020-02-18",marketvalue:99962.535655,value:3.628550967040089},{date:"2020-02-19",marketvalue:99980.937927,value:3.647628121989849},{date:"2020-02-20",marketvalue:99957.573011,value:3.623406323566256},{date:"2020-02-21",marketvalue:100031.146504,value:3.6996780429580833},{date:"2020-02-24",marketvalue:100072.426001,value:3.742471419804005},{date:"2020-02-25",marketvalue:99596.767212,value:3.2493683713886705},{date:"2020-02-26",marketvalue:99157.912966,value:2.7944196318361816},{date:"2020-02-27",marketvalue:99016.338379,value:2.647652953615837},{date:"2020-02-28",marketvalue:98337.425682,value:1.943841885176657},{date:"2020-03-02",marketvalue:98301.807934,value:1.9069178957063622},{date:"2020-03-03",marketvalue:98884.455507,value:2.510933423312005},{date:"2020-03-04",marketvalue:99008.175924,value:2.6391911496165563},{date:"2020-03-05",marketvalue:99604.840305,value:3.2577375361355463},{date:"2020-03-06",marketvalue:99573.954775,value:3.2257193135206723},{date:"2020-03-09",marketvalue:99050.095595,value:2.6826481781350977},{date:"2020-03-10",marketvalue:97083.61397,value:.6440480169169255},{date:"2020-03-11",marketvalue:97555.344687,value:1.1330789356410016},{date:"2020-03-12",marketvalue:95679.567718,value:-.8114900767507288},{date:"2020-03-13",marketvalue:92576.864774,value:-4.027981215766838},{date:"2020-03-16",marketvalue:93733.407117,value:-2.8290239629140714},{date:"2020-03-17",marketvalue:91607.048274,value:-5.033364662079001},{date:"2020-03-18",marketvalue:91694.180035,value:-4.9430374402206105},{date:"2020-03-19",marketvalue:90045.520094,value:-6.652160159084837},{date:"2020-03-20",marketvalue:90212.523693,value:-6.4790318880055615},{date:"2020-03-23",marketvalue:90196.641544,value:-6.495496497234692},{date:"2020-03-24",marketvalue:90193.913538,value:-6.498324549834169},{date:"2020-03-25",marketvalue:92200.885414,value:-4.417749202493235},{date:"2020-03-26",marketvalue:92407.372467,value:-4.203689465456402},{date:"2020-03-27",marketvalue:93599.775484,value:-2.96755638809127},{date:"2020-03-30",marketvalue:93951.489511,value:-2.6029436385849567}],jX={name:"Portfolio",color:"#ffffff",items:VX.map(e=>({...e,date:new Date(e.date)}))},UX={name:"SCHC",color:"#d53e4f",items:LX.map(e=>({...e,date:new Date(e.date)}))},WX={name:"VCIT",color:"#5e4fa2",items:BX.map(e=>({...e,date:new Date(e.date)}))},HX={width:600,height:300,margin:{top:30,right:30,bottom:30,left:60}},YX=()=>ce(ze,{w:"full",h:"full",pt:8,px:10,display:"flex",flexDir:"column",children:[w(ze,{w:"full",display:"flex",alignItems:"center",mb:4,children:w(zn,{fontSize:"3xl",mr:"auto",children:"Data Visualization"})}),w(Wd,{}),w(ze,{mt:4,h:"full",overflowY:"scroll",children:w(IX,{data:[jX,UX,WX],dimensions:HX})})]}),GX=Sketchfab;var qX=nI({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});const XX=()=>{const{uid:e}=qV(),t=y.useRef(null);return y.useEffect(()=>{if(e!==void 0){var n=new GX(t.current);n.init(e,{success:function(o){o.start(),o.addEventListener("viewerready",function(){console.log("Viewer is ready")})},error:function(){console.log("Viewer error")}})}},[]),ce(ze,{children:[ce(ze,{display:"flex",gap:4,children:[w(r5,{"aria-label":"Search database",icon:w(qX,{}),as:Wa,to:"/sketchfab"}),w(zn,{fontSize:"2xl",mb:4,children:"Model Detail"})]}),w(ze,{children:w(ze,{w:"50vw",h:"400px",children:w("iframe",{style:{width:"100%",height:"100%"},ref:t,id:"api-frame",allow:"autoplay; fullscreen; xr-spatial-tracking","execution-while-out-of-viewport":"true","execution-while-not-rendered":"true","xr-spatial-tracking":"true","web-share":"true",allowFullScreen:!0})})})]})},KX=()=>w(ze,{mb:"32px",children:w(zn,{fontSize:"2xl",mb:4,children:"Local Models"})});function QX(){return w("div",{style:{height:"100vh"},children:ce(ze,{display:"flex",h:"100vh",children:[w(ze,{h:"100vh",borderRight:"1px",children:w(QU,{})}),w(ze,{w:"100%",h:"100vh",children:ce(ij,{children:[w(Sr,{index:!0,element:w(nW,{})}),ce(Sr,{path:"sketchfab",element:w(tW,{}),children:[w(Sr,{index:!0,element:w(aW,{})}),w(Sr,{path:"local-models",element:w(KX,{})}),w(Sr,{path:"search",element:w(iW,{})}),w(Sr,{path:"model/:uid",element:w(XX,{})})]}),w(Sr,{path:"data-visualization",element:w(YX,{})})]})})]})})}const ZX={initialColorMode:"dark",useSystemColorMode:!1},v3=J$({config:ZX});z0.createRoot(document.getElementById("root")).render(ce(Dn.StrictMode,{children:[w(SC,{initialColorMode:v3.config.initialColorMode}),w(SI,{theme:v3,cssVarsRoot:"html",children:w(dj,{basename:"/ui",children:w(QX,{})})})]})); + +</script> + </head> + <body> + <div id="root"></div> + <script type="text/javascript" src="https://static.sketchfab.com/api/sketchfab-viewer-1.12.1.js"></script> + + </body> +</html> diff --git a/Plugins/CyberArchWarehouse/Content/WebSource/server.py b/Plugins/CyberArchWarehouse/Content/WebSource/server.py new file mode 100644 index 0000000000000000000000000000000000000000..86f86cddc78163368828842f6e247469a8a87373 --- /dev/null +++ b/Plugins/CyberArchWarehouse/Content/WebSource/server.py @@ -0,0 +1,10 @@ +import http.server +import socketserver + +PORT = 8080 + +Handler = http.server.SimpleHTTPRequestHandler + +with socketserver.TCPServer(("", PORT), Handler) as httpd: + print("serving at port", PORT) + httpd.serve_forever() diff --git a/Plugins/CyberArchWarehouse/Content/WebSource/vite.svg b/Plugins/CyberArchWarehouse/Content/WebSource/vite.svg new file mode 100644 index 0000000000000000000000000000000000000000..e7b8dfb1b2a60bd50538bec9f876511b9cac21e3 --- /dev/null +++ b/Plugins/CyberArchWarehouse/Content/WebSource/vite.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg> \ No newline at end of file diff --git a/Plugins/CyberArchWarehouse/Content/WebUI/BP_TestPickUpArtifact.uasset b/Plugins/CyberArchWarehouse/Content/WebUI/BP_TestPickUpArtifact.uasset new file mode 100644 index 0000000000000000000000000000000000000000..e3ef0e93aaaf89388247e4df3f3857b0631a20ac --- /dev/null +++ b/Plugins/CyberArchWarehouse/Content/WebUI/BP_TestPickUpArtifact.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33fcf90dc3f3888f638662877142217d814e200deae79a2f5e4a27907d41d504 +size 20810 diff --git a/Plugins/CyberArchWarehouse/Content/WebUI/BP_USDPickUpArtifacat.uasset b/Plugins/CyberArchWarehouse/Content/WebUI/BP_USDPickUpArtifacat.uasset new file mode 100644 index 0000000000000000000000000000000000000000..a5e10f73dbab5ec2a32977143e741e28df1dc5b5 --- /dev/null +++ b/Plugins/CyberArchWarehouse/Content/WebUI/BP_USDPickUpArtifacat.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36d0e0b6dfaf09bad230ca625c2ac4002a0249ce67a5173888ad9cbe60c6917b +size 456477 diff --git a/Plugins/CyberArchWarehouse/Content/WebUI/BP_WebUIDisplay.uasset b/Plugins/CyberArchWarehouse/Content/WebUI/BP_WebUIDisplay.uasset new file mode 100644 index 0000000000000000000000000000000000000000..4b6b620a6f58b50d017d1475a47066b890817f79 --- /dev/null +++ b/Plugins/CyberArchWarehouse/Content/WebUI/BP_WebUIDisplay.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69af0599dfd4813a03ffc8a2457f6323621e579c2580d69f53edd7626b5b1607 +size 110898 diff --git a/Plugins/CyberArchWarehouse/Content/WebUI/WebInterface.uasset b/Plugins/CyberArchWarehouse/Content/WebUI/WebInterface.uasset new file mode 100644 index 0000000000000000000000000000000000000000..d153112e4b53695b016b5de5de17176b493252b6 --- /dev/null +++ b/Plugins/CyberArchWarehouse/Content/WebUI/WebInterface.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d8289417835f8e8e9477c80ff4b1e61db826229415d26892ccec5972291468e +size 24452