GRAYBYTE WORDPRESS FILE MANAGER2345

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/user-registration/chunks/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/user-registration/chunks//form_templates.js
/*! For license information please see form_templates.js.LICENSE.txt */
(()=>{var e={115:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(l=s;0!==l--;)if(!a(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!i.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!a(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((s=e.length)!=i.length)return!1;for(l=s;0!==l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(i,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!a(e[u[l]],i[u[l]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},181:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return c.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=a.test(e);return n||i.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,a,i,s,l,u=0,c=!1,d=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,a=o;return r=o=void 0,u=t,i=e.apply(a,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=a}function x(){var e=h();if(b(e))return w(e);s=setTimeout(x,function(e){var n=t-(e-l);return d?p(n,a-(e-u)):n}(e))}function w(e){return s=void 0,g&&r?y(e):(r=o=void 0,i)}function S(){var e=h(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(x,t),c?y(e):i}(l);if(d)return s=setTimeout(x,t),y(l)}return void 0===s&&(s=setTimeout(x,t)),i}return t=v(t)||0,m(n)&&(c=!!n.leading,a=(d="maxWait"in n)?f(v(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),S.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0},S.flush=function(){return void 0===s?i:w(h())},S}},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},1020:(e,t,n)=>{"use strict";var r=n(6694),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:a,_owner:s.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},2551:(e,t,n)=>{"use strict";var r=n(6694),o=n(9982);function a(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 i=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},h={};function m(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(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){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(g,y);v[t]=new m(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(g,y);v[t]=new m(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(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),z=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var F=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=F&&e[F]||e["@@iterator"])?e:null}var I,N=Object.assign;function D(e){if(void 0===I)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}var L=!1;function B(e,t){if(!e||L)return"";L=!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()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),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(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+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{L=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function $(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case S:return"Portal";case C:return"Profiler";case E:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case z:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function U(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=(e=t.render).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 V(t);case 8:return t===E?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return N({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){Y(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(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=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return N({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ae(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=N({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 ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,ke=null,Ee=null;function Ce(e){if(e=xo(e)){if("function"!=typeof Se)throw Error(a(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function _e(e){ke?Ee?Ee.push(e):Ee=[e]:ke=e}function Pe(){if(ke){var e=ke,t=Ee;if(Ee=ke=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Te(e,t){return e(t)}function Oe(){}var Ae=!1;function Re(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Te(e,t,n)}finally{Ae=!1,(null!==ke||null!==Ee)&&(Oe(),Pe())}}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)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)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var je=!1;if(c)try{var Fe={};Object.defineProperty(Fe,"passive",{get:function(){je=!0}}),window.addEventListener("test",Fe,Fe),window.removeEventListener("test",Fe,Fe)}catch(ce){je=!1}function Me(e,t,n,r,o,a,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ie=!1,Ne=null,De=!1,Le=null,Be={onError:function(e){Ie=!0,Ne=e}};function $e(e,t,n,r,o,a,i,s,l){Ie=!1,Ne=null,Me.apply(Be,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(Ve(e)!==e)throw Error(a(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return We(o),e;if(i===r)return We(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Qe=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Xe=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Ye=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null,it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~o;0!==s?r=dt(s):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function pt(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;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,St,kt,Et,Ct,_t=!1,Pt=[],Tt=null,Ot=null,At=null,Rt=new Map,zt=new Map,jt=[],Ft="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 Mt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zt.delete(t.pointerId)}}function It(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&null!==(t=xo(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Nt(e){var t=bo(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Ct(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Lt(e,t,n){Dt(e)&&n.delete(t)}function Bt(){_t=!1,null!==Tt&&Dt(Tt)&&(Tt=null),null!==Ot&&Dt(Ot)&&(Ot=null),null!==At&&Dt(At)&&(At=null),Rt.forEach(Lt),zt.forEach(Lt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Vt(e){function t(t){return $t(t,e)}if(0<Pt.length){$t(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&$t(Tt,e),null!==Ot&&$t(Ot,e),null!==At&&$t(At,e),Rt.forEach(t),zt.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Nt(n),null===n.blockedOn&&jt.shift()}var Ut=x.ReactCurrentBatchConfig,Wt=!0;function Ht(e,t,n,r){var o=bt,a=Ut.transition;Ut.transition=null;try{bt=1,Qt(e,t,n,r)}finally{bt=o,Ut.transition=a}}function qt(e,t,n,r){var o=bt,a=Ut.transition;Ut.transition=null;try{bt=4,Qt(e,t,n,r)}finally{bt=o,Ut.transition=a}}function Qt(e,t,n,r){if(Wt){var o=Xt(e,t,n,r);if(null===o)Wr(e,t,r,Gt,n),Mt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=It(Tt,e,t,n,r,o),!0;case"dragenter":return Ot=It(Ot,e,t,n,r,o),!0;case"mouseover":return At=It(At,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Rt.set(a,It(Rt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,zt.set(a,It(zt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<Ft.indexOf(e)){for(;null!==o;){var a=xo(o);if(null!==a&&wt(a),null===(a=Xt(e,t,n,r))&&Wr(e,t,r,Gt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Gt=null;function Xt(e,t,n,r){if(Gt=null,null!==(e=bo(e=we(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Kt(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(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=N({},un,{view:0,detail:0}),fn=on(dn),pn=N({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(N({},pn,{dataTransfer:0})),vn=on(N({},dn,{relatedTarget:0})),gn=on(N({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=N({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(N({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Cn(){return En}var _n=N({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(_n),Tn=on(N({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=on(N({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),An=on(N({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=N({},pn,{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}),zn=on(Rn),jn=[9,13,27,32],Fn=c&&"CompositionEvent"in window,Mn=null;c&&"documentMode"in document&&(Mn=document.documentMode);var In=c&&"TextEvent"in window&&!Mn,Nn=c&&(!Fn||Mn&&8<Mn&&11>=Mn),Dn=String.fromCharCode(32),Ln=!1;function Bn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,Un={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 Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Hn(e,t,n,r){_e(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Qn=null;function Gn(e){Dr(e,0)}function Xn(e){if(Q(wo(e)))return e}function Kn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Yn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Qn=qn=null)}function nr(e){if("value"===e.propertyName&&Xn(Qn)){var t=[];Hn(t,Qn,e,we(e)),Re(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Qn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Qn)}function ar(e,t){if("click"===e)return Xn(t)}function ir(e,t){if("input"===e||"change"===e)return Xn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)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(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=cr(n,a);var i=cr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).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;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==G(r)||(r="selectionStart"in(r=vr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=qr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},kr={},Er={};function Cr(e){if(kr[e])return kr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return kr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var _r=Cr("animationend"),Pr=Cr("animationiteration"),Tr=Cr("animationstart"),Or=Cr("transitionend"),Ar=new Map,Rr="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 zr(e,t){Ar.set(e,t),l(t,[e])}for(var jr=0;jr<Rr.length;jr++){var Fr=Rr[jr];zr(Fr.toLowerCase(),"on"+(Fr[0].toUpperCase()+Fr.slice(1)))}zr(_r,"onAnimationEnd"),zr(Pr,"onAnimationIteration"),zr(Tr,"onAnimationStart"),zr("dblclick","onDoubleClick"),zr("focusin","onFocus"),zr("focusout","onBlur"),zr(Or,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="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(" "),Ir=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Nr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,u){if($e.apply(this,arguments),Ie){if(!Ie)throw Error(a(198));var c=Ne;Ie=!1,Ne=null,De||(De=!0,Le=c)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=!!(4&t);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;Nr(o,s,u),a=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,u=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Nr(o,s,u),a=l}}}if(De)throw e=Le,De=!1,Le=null,e}function Lr(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[$r]){e[$r]=!0,i.forEach((function(t){"selectionchange"!==t&&(Ir.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Br("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Kt(t)){case 1:var o=Ht;break;case 4:o=qt;break;default:o=Qt}n=o.bind(null,t,n,e),o=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=bo(s)))return;if(5===(l=i.tag)||6===l){r=a=i;continue e}s=s.parentNode}}r=r.return}Re((function(){var r=a,o=we(n),i=[];e:{var s=Ar.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=On;break;case _r:case Pr:case Tr:l=gn;break;case Or:l=An;break;case"scroll":l=fn;break;case"wheel":l=zn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=ze(h,f))&&c.push(Hr(h,m,p))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),i.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(d=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:wo(l),p=null==u?s:wo(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,bo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Qr(p))h++;for(p=0,m=f;m;m=Qr(m))p++;for(;0<h-p;)c=Qr(c),h--;for(;0<p-h;)f=Qr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Qr(c),f=Qr(f)}c=null}else c=null;null!==l&&Gr(i,s,l,c,!1),null!==u&&null!==d&&Gr(i,d,u,c,!0)}if("select"===(l=(s=r?wo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Kn;else if(Wn(s))if(Yn)v=ir;else{v=or;var g=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ar);switch(v&&(v=v(e,r))?Hn(i,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?wo(r):window,e){case"focusin":(Wn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(i,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(i,n,o)}var y;if(Fn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Nn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=en()):(Zt="value"in(Yt=o)?Yt.value:Yt.textContent,Vn=!0)),0<(g=qr(r,b)).length&&(b=new xn(b,e,null,n,o),i.push({event:b,listeners:g}),(y||null!==(y=$n(n)))&&(b.data=y))),(y=In?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Ln=!0,Dn);case"textInput":return(e=t.data)===Dn&&Ln?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Fn&&Bn(e,t)?(e=en(),Jt=Zt=Yt=null,Vn=!1,e):null;switch(e){case"paste":default: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 Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y)}Dr(i,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=ze(e,n))&&r.unshift(Hr(e,a,o)),null!=(a=ze(e,t))&&r.push(Hr(e,a,o))),e=e.return}return r}function Qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=ze(n,a))&&i.unshift(Hr(n,l,s)):o||null!=(l=ze(n,a))&&i.push(Hr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Xr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Xr,"\n").replace(Kr,"")}function Zr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(a(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,vo="__reactEvents$"+fo,go="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function So(e){return e[ho]||null}var ko=[],Eo=-1;function Co(e){return{current:e}}function _o(e){0>Eo||(e.current=ko[Eo],ko[Eo]=null,Eo--)}function Po(e,t){Eo++,ko[Eo]=e.current,e.current=t}var To={},Oo=Co(To),Ao=Co(!1),Ro=To;function zo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function jo(e){return null!=e.childContextTypes}function Fo(){_o(Ao),_o(Oo)}function Mo(e,t,n){if(Oo.current!==To)throw Error(a(168));Po(Oo,t),Po(Ao,n)}function Io(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,U(e)||"Unknown",o));return N({},n,r)}function No(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Ro=Oo.current,Po(Oo,e),Po(Ao,Ao.current),!0}function Do(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Io(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,_o(Ao),_o(Oo),Po(Oo,e)):_o(Ao),Po(Ao,n)}var Lo=null,Bo=!1,$o=!1;function Vo(e){null===Lo?Lo=[e]:Lo.push(e)}function Uo(){if(!$o&&null!==Lo){$o=!0;var e=0,t=bt;try{var n=Lo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Lo=null,Bo=!1}catch(t){throw null!==Lo&&(Lo=Lo.slice(e+1)),Qe(Je,Uo),t}finally{bt=t,$o=!1}}return null}var Wo=[],Ho=0,qo=null,Qo=0,Go=[],Xo=0,Ko=null,Yo=1,Zo="";function Jo(e,t){Wo[Ho++]=Qo,Wo[Ho++]=qo,qo=e,Qo=t}function ea(e,t,n){Go[Xo++]=Yo,Go[Xo++]=Zo,Go[Xo++]=Ko,Ko=e;var r=Yo;e=Zo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Yo=1<<32-it(t)+o|n<<o|r,Zo=a+e}else Yo=1<<a|n<<o|r,Zo=e}function ta(e){null!==e.return&&(Jo(e,1),ea(e,1,0))}function na(e){for(;e===qo;)qo=Wo[--Ho],Wo[Ho]=null,Qo=Wo[--Ho],Wo[Ho]=null;for(;e===Ko;)Ko=Go[--Xo],Go[Xo]=null,Zo=Go[--Xo],Go[Xo]=null,Yo=Go[--Xo],Go[Xo]=null}var ra=null,oa=null,aa=!1,ia=null;function sa(e,t){var n=zu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function la(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Yo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=zu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ua(e){return!(!(1&e.mode)||128&e.flags)}function ca(e){if(aa){var t=oa;if(t){var n=t;if(!la(e,t)){if(ua(e))throw Error(a(418));t=uo(n.nextSibling);var r=ra;t&&la(e,t)?sa(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ua(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function fa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ua(e))throw pa(),Error(a(418));for(;t;)sa(e,t),t=uo(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?uo(e.stateNode.nextSibling):null;return!0}function pa(){for(var e=oa;e;)e=uo(e.nextSibling)}function ha(){oa=ra=null,aa=!1}function ma(e){null===ia?ia=[e]:ia.push(e)}var va=x.ReactCurrentBatchConfig;function ga(e,t){if(e&&e.defaultProps){for(var n in t=N({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ya=Co(null),ba=null,xa=null,wa=null;function Sa(){wa=xa=ba=null}function ka(e){var t=ya.current;_o(ya),e._currentValue=t}function Ea(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ca(e,t){ba=e,wa=xa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xs=!0),e.firstContext=null)}function _a(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===xa){if(null===ba)throw Error(a(308));xa=e,ba.dependencies={lanes:0,firstContext:e}}else xa=xa.next=e;return t}var Pa=null;function Ta(e){null===Pa?Pa=[e]:Pa.push(e)}function Oa(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ta(t)):(n.next=o.next,o.next=n),t.interleaved=n,Aa(e,r)}function Aa(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ra=!1;function za(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ja(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 Fa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ma(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ol){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Aa(e,n)}return null===(o=r.interleaved)?(t.next=t,Ta(r)):(t.next=o.next,o.next=t),r.interleaved=t,Aa(e,n)}function Ia(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Na(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Da(e,t,n,r){var o=e.updateQueue;Ra=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===i?a=u:i.next=u,i=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==a){var d=o.baseState;for(i=0,c=u=l=null,s=a;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=N({},d,f);break e;case 2:Ra=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,i|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Nl|=i,e.lanes=i,e.memoizedState=d}}function La(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Ba=(new r.Component).refs;function $a(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:N({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Va={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),a=Fa(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Ma(e,a,o))&&(ru(t,e,o,r),Ia(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),a=Fa(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Ma(e,a,o))&&(ru(t,e,o,r),Ia(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=Fa(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ma(e,o,r))&&(ru(t,e,r,n),Ia(t,e,r))}};function Ua(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,a))}function Wa(e,t,n){var r=!1,o=To,a=t.contextType;return"object"==typeof a&&null!==a?a=_a(a):(o=jo(t)?Ro:Oo.current,a=(r=null!=(r=t.contextTypes))?zo(e,o):To),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Va,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Va.enqueueReplaceState(t,t.state,null)}function qa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ba,za(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=_a(a):(a=jo(t)?Ro:Oo.current,o.context=zo(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&($a(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Va.enqueueReplaceState(o,o.state,null),Da(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Qa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Ba&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ga(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xa(e){return(0,e._init)(e._payload)}function Ka(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Fu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Du(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===z&&Xa(a)===t.type)?((r=o(t,n.props)).ref=Qa(e,t,n),r.return=e,r):((r=Mu(n.type,n.key,n.props,null,e.mode,r)).ref=Qa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Lu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Iu(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Mu(t.type,t.key,t.props,null,e.mode,n)).ref=Qa(e,null,t),n.return=e,n;case S:return(t=Lu(t,e.mode,n)).return=e,t;case z:return f(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Iu(t,e.mode,n,null)).return=e,t;Ga(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?u(e,t,n,r):null;case S:return n.key===o?c(e,t,n,r):null;case z:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||M(n))return null!==o?null:d(e,t,n,r,null);Ga(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case z:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);Ga(t,r)}return null}function m(o,a,s,l){for(var u=null,c=null,d=a,m=a=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(o,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(o,d),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g,d=v}if(m===s.length)return n(o,d),aa&&Jo(o,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(a=i(d,a,m),null===c?u=d:c.sibling=d,c=d);return aa&&Jo(o,m),u}for(d=r(o,d);m<s.length;m++)null!==(v=h(d,o,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(o,e)})),aa&&Jo(o,m),u}function v(o,s,l,u){var c=M(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(o,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,v),null===d?c=b:d.sibling=b,d=b,m=g}if(y.done)return n(o,m),aa&&Jo(o,v),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=f(o,y.value,u))&&(s=i(y,s,v),null===d?c=y:d.sibling=y,d=y);return aa&&Jo(o,v),c}for(m=r(o,m);!y.done;v++,y=l.next())null!==(y=h(m,o,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=i(y,s,v),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),aa&&Jo(o,v),c}return function e(r,a,i,l){if("object"==typeof i&&null!==i&&i.type===k&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var u=i.key,c=a;null!==c;){if(c.key===u){if((u=i.type)===k){if(7===c.tag){n(r,c.sibling),(a=o(c,i.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===z&&Xa(u)===c.type){n(r,c.sibling),(a=o(c,i.props)).ref=Qa(r,c,i),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===k?((a=Iu(i.props.children,r.mode,l,i.key)).return=r,r=a):((l=Mu(i.type,i.key,i.props,null,r.mode,l)).ref=Qa(r,a,i),l.return=r,r=l)}return s(r);case S:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Lu(i,r.mode,l)).return=r,r=a}return s(r);case z:return e(r,a,(c=i._init)(i._payload),l)}if(te(i))return m(r,a,i,l);if(M(i))return v(r,a,i,l);Ga(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Du(i,r.mode,l)).return=r,r=a),s(r)):n(r,a)}}var Ya=Ka(!0),Za=Ka(!1),Ja={},ei=Co(Ja),ti=Co(Ja),ni=Co(Ja);function ri(e){if(e===Ja)throw Error(a(174));return e}function oi(e,t){switch(Po(ni,t),Po(ti,e),Po(ei,Ja),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(ei),Po(ei,t)}function ai(){_o(ei),_o(ti),_o(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=le(t,e.type);t!==n&&(Po(ti,e),Po(ei,n))}function si(e){ti.current===e&&(_o(ei),_o(ti))}var li=Co(0);function ui(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ci=[];function di(){for(var e=0;e<ci.length;e++)ci[e]._workInProgressVersionPrimary=null;ci.length=0}var fi=x.ReactCurrentDispatcher,pi=x.ReactCurrentBatchConfig,hi=0,mi=null,vi=null,gi=null,yi=!1,bi=!1,xi=0,wi=0;function Si(){throw Error(a(321))}function ki(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ei(e,t,n,r,o,i){if(hi=i,mi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fi.current=null===e||null===e.memoizedState?ss:ls,e=n(r,o),bi){i=0;do{if(bi=!1,xi=0,25<=i)throw Error(a(301));i+=1,gi=vi=null,t.updateQueue=null,fi.current=us,e=n(r,o)}while(bi)}if(fi.current=is,t=null!==vi&&null!==vi.next,hi=0,gi=vi=mi=null,yi=!1,t)throw Error(a(300));return e}function Ci(){var e=0!==xi;return xi=0,e}function _i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===gi?mi.memoizedState=gi=e:gi=gi.next=e,gi}function Pi(){if(null===vi){var e=mi.alternate;e=null!==e?e.memoizedState:null}else e=vi.next;var t=null===gi?mi.memoizedState:gi.next;if(null!==t)gi=t,vi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(vi=e).memoizedState,baseState:vi.baseState,baseQueue:vi.baseQueue,queue:vi.queue,next:null},null===gi?mi.memoizedState=gi=e:gi=gi.next=e}return gi}function Ti(e,t){return"function"==typeof t?t(e):t}function Oi(e){var t=Pi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=vi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=s=null,u=null,c=i;do{var d=c.lane;if((hi&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,mi.lanes|=d,Nl|=d}c=c.next}while(null!==c&&c!==i);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(xs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,mi.lanes|=i,Nl|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ai(e){var t=Pi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);sr(i,t.memoizedState)||(xs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ri(){}function zi(e,t){var n=mi,r=Pi(),o=t(),i=!sr(r.memoizedState,o);if(i&&(r.memoizedState=o,xs=!0),r=r.queue,Wi(Mi.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==gi&&1&gi.memoizedState.tag){if(n.flags|=2048,Li(9,Fi.bind(null,n,r,o,t),void 0,null),null===Al)throw Error(a(349));30&hi||ji(n,t,o)}return o}function ji(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Fi(e,t,n,r){t.value=n,t.getSnapshot=r,Ii(t)&&Ni(e)}function Mi(e,t,n){return n((function(){Ii(t)&&Ni(e)}))}function Ii(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ni(e){var t=Aa(e,1);null!==t&&ru(t,e,1,-1)}function Di(e){var t=_i();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,mi,e),[t.memoizedState,e]}function Li(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bi(){return Pi().memoizedState}function $i(e,t,n,r){var o=_i();mi.flags|=e,o.memoizedState=Li(1|t,n,void 0,void 0===r?null:r)}function Vi(e,t,n,r){var o=Pi();r=void 0===r?null:r;var a=void 0;if(null!==vi){var i=vi.memoizedState;if(a=i.destroy,null!==r&&ki(r,i.deps))return void(o.memoizedState=Li(t,n,a,r))}mi.flags|=e,o.memoizedState=Li(1|t,n,a,r)}function Ui(e,t){return $i(8390656,8,e,t)}function Wi(e,t){return Vi(2048,8,e,t)}function Hi(e,t){return Vi(4,2,e,t)}function qi(e,t){return Vi(4,4,e,t)}function Qi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Gi(e,t,n){return n=null!=n?n.concat([e]):null,Vi(4,4,Qi.bind(null,t,e),n)}function Xi(){}function Ki(e,t){var n=Pi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ki(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yi(e,t){var n=Pi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ki(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Zi(e,t,n){return 21&hi?(sr(n,t)||(n=mt(),mi.lanes|=n,Nl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=n)}function Ji(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pi.transition;pi.transition={};try{e(!1),t()}finally{bt=n,pi.transition=r}}function es(){return Pi().memoizedState}function ts(e,t,n){var r=nu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?os(t,n):null!==(n=Oa(e,t,n,r))&&(ru(n,e,r,tu()),as(n,t,r))}function ns(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))os(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(o.next=o,Ta(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Oa(e,t,o,r))&&(ru(n,e,r,o=tu()),as(n,t,r))}}function rs(e){var t=e.alternate;return e===mi||null!==t&&t===mi}function os(e,t){bi=yi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function as(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var is={readContext:_a,useCallback:Si,useContext:Si,useEffect:Si,useImperativeHandle:Si,useInsertionEffect:Si,useLayoutEffect:Si,useMemo:Si,useReducer:Si,useRef:Si,useState:Si,useDebugValue:Si,useDeferredValue:Si,useTransition:Si,useMutableSource:Si,useSyncExternalStore:Si,useId:Si,unstable_isNewReconciler:!1},ss={readContext:_a,useCallback:function(e,t){return _i().memoizedState=[e,void 0===t?null:t],e},useContext:_a,useEffect:Ui,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,$i(4194308,4,Qi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){return $i(4,2,e,t)},useMemo:function(e,t){var n=_i();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_i();return t=void 0!==n?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=ts.bind(null,mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_i().memoizedState=e},useState:Di,useDebugValue:Xi,useDeferredValue:function(e){return _i().memoizedState=e},useTransition:function(){var e=Di(!1),t=e[0];return e=Ji.bind(null,e[1]),_i().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mi,o=_i();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Al)throw Error(a(349));30&hi||ji(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ui(Mi.bind(null,r,i,e),[e]),r.flags|=2048,Li(9,Fi.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_i(),t=Al.identifierPrefix;if(aa){var n=Zo;t=":"+t+"R"+(n=(Yo&~(1<<32-it(Yo)-1)).toString(32)+n),0<(n=xi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:_a,useCallback:Ki,useContext:_a,useEffect:Wi,useImperativeHandle:Gi,useInsertionEffect:Hi,useLayoutEffect:qi,useMemo:Yi,useReducer:Oi,useRef:Bi,useState:function(){return Oi(Ti)},useDebugValue:Xi,useDeferredValue:function(e){return Zi(Pi(),vi.memoizedState,e)},useTransition:function(){return[Oi(Ti)[0],Pi().memoizedState]},useMutableSource:Ri,useSyncExternalStore:zi,useId:es,unstable_isNewReconciler:!1},us={readContext:_a,useCallback:Ki,useContext:_a,useEffect:Wi,useImperativeHandle:Gi,useInsertionEffect:Hi,useLayoutEffect:qi,useMemo:Yi,useReducer:Ai,useRef:Bi,useState:function(){return Ai(Ti)},useDebugValue:Xi,useDeferredValue:function(e){var t=Pi();return null===vi?t.memoizedState=e:Zi(t,vi.memoizedState,e)},useTransition:function(){return[Ai(Ti)[0],Pi().memoizedState]},useMutableSource:Ri,useSyncExternalStore:zi,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Fa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,ql=r),fs(0,t)},n}function ms(e,t,n){(n=Fa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fs(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!=typeof r&&(null===Ql?Ql=new Set([this]):Ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=_u.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fa(-1,1)).tag=2,Ma(n,t,1))),n.lanes|=1),e)}var bs=x.ReactCurrentOwner,xs=!1;function ws(e,t,n,r){t.child=null===e?Za(t,null,n,r):Ya(t,e.child,n,r)}function Ss(e,t,n,r,o){n=n.render;var a=t.ref;return Ca(t,o),r=Ei(e,t,n,r,a,o),n=Ci(),null===e||xs?(aa&&n&&ta(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function ks(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||ju(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Es(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Fu(a,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(xs=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);131072&e.flags&&(xs=!0)}}return Ps(e,t,n,r,o)}function Cs(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Fl,jl),jl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Po(Fl,jl),jl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Fl,jl),jl|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Po(Fl,jl),jl|=r;return ws(e,t,o,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,n,r,o){var a=jo(n)?Ro:Oo.current;return a=zo(t,a),Ca(t,o),n=Ei(e,t,n,r,a,o),r=Ci(),null===e||xs?(aa&&r&&ta(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ts(e,t,n,r,o){if(jo(n)){var a=!0;No(t)}else a=!1;if(Ca(t,o),null===t.stateNode)Ws(e,t),Wa(t,n,r),qa(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,u=n.contextType;u="object"==typeof u&&null!==u?_a(u):zo(t,u=jo(n)?Ro:Oo.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==u)&&Ha(t,i,r,u),Ra=!1;var f=t.memoizedState;i.state=f,Da(t,r,i,o),l=t.memoizedState,s!==r||f!==l||Ao.current||Ra?("function"==typeof c&&($a(t,n,c,r),l=t.memoizedState),(s=Ra||Ua(t,n,s,r,f,l,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ja(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ga(t.type,s),i.props=u,d=t.pendingProps,f=i.context,l="object"==typeof(l=n.contextType)&&null!==l?_a(l):zo(t,l=jo(n)?Ro:Oo.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==l)&&Ha(t,i,r,l),Ra=!1,f=t.memoizedState,i.state=f,Da(t,r,i,o);var h=t.memoizedState;s!==d||f!==h||Ao.current||Ra?("function"==typeof p&&($a(t,n,p,r),h=t.memoizedState),(u=Ra||Ua(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=u):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Os(e,t,n,r,a,o)}function Os(e,t,n,r,o,a){_s(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Do(t,n,!1),Hs(e,t,a);r=t.stateNode,bs.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,s,a)):ws(e,t,s,a),t.memoizedState=r.state,o&&Do(t,n,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),oi(e,t.containerInfo)}function Rs(e,t,n,r,o){return ha(),ma(o),t.flags|=256,ws(e,t,n,r),t.child}var zs,js,Fs,Ms,Is={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,n){var r,o=t.pendingProps,i=li.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Po(li,1&i),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Nu(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Iu(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(n),t.memoizedState=Is,e):Ls(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=ds(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Nu({mode:"visible",children:r.children},o,0,null),(i=Iu(i,o,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Ya(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=Is,i);if(!(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=ds(i=Error(a(419)),r,void 0))}if(l=0!==(s&e.childLanes),xs||l){if(null!==(r=Al)){switch(s&-s){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}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Aa(e,o),ru(r,e,o,-1))}return vu(),Bs(e,t,s,r=ds(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=uo(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Go[Xo++]=Yo,Go[Xo++]=Zo,Go[Xo++]=Ko,Yo=e.id,Zo=e.overflow,Ko=t),(t=Ls(t,r.children)).flags|=4096,t)}(e,t,l,o,r,i,n);if(s){s=o.fallback,l=t.mode,r=(i=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=Fu(i,u)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?s=Fu(r,s):(s=Iu(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ns(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Is,o}return e=(s=e.child).sibling,o=Fu(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ls(e,t){return(t=Nu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&ma(r),Ya(t,e.child,null,n),(e=Ls(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $s(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ea(e.return,t,n)}function Vs(e,t,n,r,o){var a=e.memoizedState;null===a?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 Us(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(ws(e,t,r.children,n),2&(r=li.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$s(e,n,t);else if(19===e.tag)$s(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(li,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ui(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vs(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ui(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vs(t,!0,n,null,a);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ws(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Fu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qs(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)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 Gs(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qs(t),null;case 1:case 17:return jo(t.type)&&Fo(),Qs(t),null;case 3:return r=t.stateNode,ai(),_o(Ao),_o(Oo),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ia&&(su(ia),ia=null))),js(e,t),Qs(t),null;case 5:si(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Fs(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Qs(t),null}if(e=ri(ei.current),fa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[po]=t,r[ho]=i,e=!!(1&t.mode),n){case"dialog":Lr("cancel",r),Lr("close",r);break;case"iframe":case"object":case"embed":Lr("load",r);break;case"video":case"audio":for(o=0;o<Mr.length;o++)Lr(Mr[o],r);break;case"source":Lr("error",r);break;case"img":case"image":case"link":Lr("error",r),Lr("load",r);break;case"details":Lr("toggle",r);break;case"input":K(r,i),Lr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Lr("invalid",r);break;case"textarea":oe(r,i),Lr("invalid",r)}for(var l in ye(n,i),o=null,i)if(i.hasOwnProperty(l)){var u=i[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Lr("scroll",r)}switch(n){case"input":q(r),J(r,i,!0);break;case"textarea":q(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,zs(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Lr("cancel",e),Lr("close",e),o=r;break;case"iframe":case"object":case"embed":Lr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mr.length;o++)Lr(Mr[o],e);o=r;break;case"source":Lr("error",e),o=r;break;case"img":case"image":case"link":Lr("error",e),Lr("load",e),o=r;break;case"details":Lr("toggle",e),o=r;break;case"input":K(e,r),o=X(e,r),Lr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=N({},r,{value:void 0}),Lr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Lr("invalid",e)}for(i in ye(n,o),u=o)if(u.hasOwnProperty(i)){var c=u[i];"style"===i?ve(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===i?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Lr("scroll",e):null!=c&&b(e,i,c,l))}switch(n){case"input":q(e),J(e,r,!1);break;case"textarea":q(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}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)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Qs(t),null;case 6:if(e&&null!=t.stateNode)Ms(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=ri(ni.current),ri(ei.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Qs(t),null;case 13:if(_o(li),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&1&t.mode&&!(128&t.flags))pa(),ha(),t.flags|=98560,i=!1;else if(i=fa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[po]=t}else ha(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Qs(t),i=!1}else null!==ia&&(su(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&li.current?0===Ml&&(Ml=3):vu())),null!==t.updateQueue&&(t.flags|=4),Qs(t),null);case 4:return ai(),js(e,t),null===e&&Vr(t.stateNode.containerInfo),Qs(t),null;case 10:return ka(t.type._context),Qs(t),null;case 19:if(_o(li),null===(i=t.memoizedState))return Qs(t),null;if(r=!!(128&t.flags),null===(l=i.rendering))if(r)qs(i,!1);else{if(0!==Ml||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ui(e))){for(t.flags|=128,qs(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(li,1&li.current|2),t.child}e=e.sibling}null!==i.tail&&Ye()>Ul&&(t.flags|=128,r=!0,qs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ui(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Qs(t),null}else 2*Ye()-i.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,qs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ye(),t.sibling=null,n=li.current,Po(li,r?1&n|2:1&n),t):(Qs(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&jl)&&(Qs(t),6&t.subtreeFlags&&(t.flags|=8192)):Qs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Xs(e,t){switch(na(t),t.tag){case 1:return jo(t.type)&&Fo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),_o(Ao),_o(Oo),di(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(_o(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(li),null;case 4:return ai(),null;case 10:return ka(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}zs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},js=function(){},Fs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var a,i=null;switch(n){case"input":o=X(e,o),r=X(e,r),i=[];break;case"select":o=N({},o,{value:void 0}),r=N({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(i=i||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(i=i||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Lr("scroll",e),i||l===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Ms=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Ys=!1,Zs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cu(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Cu(e,t,n)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&tl(t,n,a)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[vo],delete t[go],delete t[yo]),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 sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var dl=null,fl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ys||el(n,t);case 6:var r=dl,o=fl;dl=null,pl(e,t,n),fl=o,null!==(dl=r)&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Vt(e)):lo(dl,n.stateNode));break;case 4:r=dl,o=fl,dl=n.stateNode.containerInfo,fl=!0,pl(e,t,n),dl=r,fl=o;break;case 0:case 11:case 14:case 15:if(!Ys&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&tl(n,t,i),o=o.next}while(o!==r)}pl(e,t,n);break;case 1:if(!Ys&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cu(n,t,e)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,pl(e,t,n),Ys=r):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach((function(t){var r=Ou.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,fl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===dl)throw Error(a(160));hl(i,s,o),dl=null,fl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Cu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vl(t,e),yl(e),4&r){try{rl(3,e,e.return),ol(3,e)}catch(t){Cu(e,e.return,t)}try{rl(5,e,e.return)}catch(t){Cu(e,e.return,t)}}break;case 1:vl(t,e),yl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(vl(t,e),yl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Cu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===i.type&&null!=i.name&&Y(o,i),be(l,s);var c=be(l,i);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ve(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,c)}switch(l){case"input":Z(o,i);break;case"textarea":ae(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?ne(o,!!i.multiple,h,!1):p!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[ho]=i}catch(t){Cu(e,e.return,t)}}break;case 6:if(vl(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Cu(e,e.return,t)}}break;case 3:if(vl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){Cu(e,e.return,t)}break;case 4:default:vl(t,e),yl(e);break;case 13:vl(t,e),yl(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Vl=Ye())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(c=Ys)||d,vl(t,e),Ys=c):vl(t,e),yl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:el(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cu(r,n,e)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){Sl(f);continue}}null!==h?(h.return=p,Js=h):Sl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Cu(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Cu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vl(t,e),yl(e),4&r&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,ll(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;ul(e,ll(e),i);break;default:throw Error(a(161))}}catch(t){Cu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Js=e,xl(e,t,n)}function xl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var o=Js,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Ks;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Ks;var u=Ys;if(Ks=i,(Ys=l)&&!u)for(Js=o;null!==Js;)l=(i=Js).child,22===i.tag&&null!==i.memoizedState?kl(o):null!==l?(l.return=i,Js=l):kl(o);for(;null!==a;)Js=a,xl(a,t,n),a=a.sibling;Js=o,Ks=s,Ys=u}wl(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Js=a):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ys||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ga(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&La(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}La(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Vt(f)}}}break;default:throw Error(a(163))}Ys||512&t.flags&&al(t)}catch(e){Cu(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function kl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(e){Cu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cu(t,o,e)}}var a=t.return;try{al(t)}catch(e){Cu(t,a,e)}break;case 5:var i=t.return;try{al(t)}catch(e){Cu(t,i,e)}}}catch(e){Cu(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var El,Cl=Math.ceil,_l=x.ReactCurrentDispatcher,Pl=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,Ol=0,Al=null,Rl=null,zl=0,jl=0,Fl=Co(0),Ml=0,Il=null,Nl=0,Dl=0,Ll=0,Bl=null,$l=null,Vl=0,Ul=1/0,Wl=null,Hl=!1,ql=null,Ql=null,Gl=!1,Xl=null,Kl=0,Yl=0,Zl=null,Jl=-1,eu=0;function tu(){return 6&Ol?Ye():-1!==Jl?Jl:Jl=Ye()}function nu(e){return 1&e.mode?2&Ol&&0!==zl?zl&-zl:null!==va.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type):1}function ru(e,t,n,r){if(50<Yl)throw Yl=0,Zl=null,Error(a(185));gt(e,n,r),2&Ol&&e===Al||(e===Al&&(!(2&Ol)&&(Dl|=n),4===Ml&&lu(e,zl)),ou(e,r),1===n&&0===Ol&&!(1&t.mode)&&(Ul=Ye()+500,Bo&&Uo()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),s=1<<i,l=o[i];-1===l?0!==(s&n)&&0===(s&r)||(o[i]=pt(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=ft(e,e===Al?zl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Bo=!0,Vo(e)}(uu.bind(null,e)):Vo(uu.bind(null,e)),io((function(){!(6&Ol)&&Uo()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Au(n,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function au(e,t){if(Jl=-1,eu=0,6&Ol)throw Error(a(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=ft(e,e===Al?zl:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=gu(e,r);else{t=r;var o=Ol;Ol|=2;var i=mu();for(Al===e&&zl===t||(Wl=null,Ul=Ye()+500,pu(e,t));;)try{bu();break}catch(t){hu(e,t)}Sa(),_l.current=i,Ol=o,null!==Rl?t=0:(Al=null,zl=0,t=Ml)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=iu(e,o)),1===t)throw n=Il,pu(e,0),lu(e,r),ou(e,Ye()),n;if(6===t)lu(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!sr(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=gu(e,r),2===t&&(i=ht(e),0!==i&&(r=i,t=iu(e,i))),1!==t)))throw n=Il,pu(e,0),lu(e,r),ou(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Su(e,$l,Wl);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Vl+500-Ye())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Su.bind(null,e,$l,Wl),t);break}Su(e,$l,Wl);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>o&&(o=s),r&=~i}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ro(Su.bind(null,e,$l,Wl),r);break}Su(e,$l,Wl);break;default:throw Error(a(329))}}}return ou(e,Ye()),e.callbackNode===n?au.bind(null,e):null}function iu(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=$l,$l=n,null!==t&&su(t)),e}function su(e){null===$l?$l=e:$l.push.apply($l,e)}function lu(e,t){for(t&=~Ll,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(6&Ol)throw Error(a(327));ku();var t=ft(e,0);if(!(1&t))return ou(e,Ye()),null;var n=gu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Il,pu(e,0),lu(e,t),ou(e,Ye()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Su(e,$l,Wl),ou(e,Ye()),null}function cu(e,t){var n=Ol;Ol|=1;try{return e(t)}finally{0===(Ol=n)&&(Ul=Ye()+500,Bo&&Uo())}}function du(e){null!==Xl&&0===Xl.tag&&!(6&Ol)&&ku();var t=Ol;Ol|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,!(6&(Ol=t))&&Uo()}}function fu(){jl=Fl.current,_o(Fl)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Fo();break;case 3:ai(),_o(Ao),_o(Oo),di();break;case 5:si(r);break;case 4:ai();break;case 13:case 19:_o(li);break;case 10:ka(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Al=e,Rl=e=Fu(e.current,null),zl=jl=t,Ml=0,Il=null,Ll=Dl=Nl=0,$l=Bl=null,null!==Pa){for(t=0;t<Pa.length;t++)if(null!==(r=(n=Pa[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Pa=null}return e}function hu(e,t){for(;;){var n=Rl;try{if(Sa(),fi.current=is,yi){for(var r=mi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}yi=!1}if(hi=0,gi=vi=mi=null,bi=!1,xi=0,Pl.current=null,null===n||null===n.return){Ml=1,Il=t,Rl=null;break}e:{var i=e,s=n.return,l=n,u=t;if(t=zl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,ys(h,s,l,0,t),1&h.mode&&vs(i,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(!(1&t)){vs(i,c,t),vu();break e}u=Error(a(426))}else if(aa&&1&l.mode){var g=gs(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),ys(g,s,l,0,t),ma(cs(u,l));break e}}i=u=cs(u,l),4!==Ml&&(Ml=2),null===Bl?Bl=[i]:Bl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Na(i,hs(0,u,t));break e;case 1:l=u;var y=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ql&&Ql.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Na(i,ms(i,l,t));break e}}i=i.return}while(null!==i)}wu(n)}catch(e){t=e,Rl===n&&null!==n&&(Rl=n=n.return);continue}break}}function mu(){var e=_l.current;return _l.current=is,null===e?is:e}function vu(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Al||!(268435455&Nl)&&!(268435455&Dl)||lu(Al,zl)}function gu(e,t){var n=Ol;Ol|=2;var r=mu();for(Al===e&&zl===t||(Wl=null,pu(e,t));;)try{yu();break}catch(t){hu(e,t)}if(Sa(),Ol=n,_l.current=r,null!==Rl)throw Error(a(261));return Al=null,zl=0,Ml}function yu(){for(;null!==Rl;)xu(Rl)}function bu(){for(;null!==Rl&&!Xe();)xu(Rl)}function xu(e){var t=El(e.alternate,e,jl);e.memoizedProps=e.pendingProps,null===t?wu(e):Rl=t,Pl.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Xs(n,t)))return n.flags&=32767,void(Rl=n);if(null===e)return Ml=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Gs(n,t,jl)))return void(Rl=n);if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Ml&&(Ml=5)}function Su(e,t,n){var r=bt,o=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,n,r){do{ku()}while(null!==Xl);if(6&Ol)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(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-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Al&&(Rl=Al=null,zl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Gl||(Gl=!0,Au(tt,(function(){return ku(),null}))),i=!!(15990&n.flags),15990&n.subtreeFlags||i){i=Tl.transition,Tl.transition=null;var s=bt;bt=1;var l=Ol;Ol|=4,Pl.current=null,function(e,t){if(eo=Wt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==i||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(l=s),p===i&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:ga(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(e){Cu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=nl,nl=!1}(e,n),gl(n,e),hr(to),Wt=!!eo,to=eo=null,e.current=n,bl(n,e,o),Ke(),Ol=l,bt=s,Tl.transition=i}else e.current=n;if(Gl&&(Gl=!1,Xl=e,Kl=o),0===(i=e.pendingLanes)&&(Ql=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ou(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=ql,ql=null,e;!!(1&Kl)&&0!==e.tag&&ku(),1&(i=e.pendingLanes)?e===Zl?Yl++:(Yl=0,Zl=e):Yl=0,Uo()}(e,t,n,r)}finally{Tl.transition=o,bt=r}return null}function ku(){if(null!==Xl){var e=xt(Kl),t=Tl.transition,n=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Xl)var r=!1;else{if(e=Xl,Xl=null,Kl=0,6&Ol)throw Error(a(331));var o=Ol;for(Ol|=4,Js=e.current;null!==Js;){var i=Js,s=i.child;if(16&Js.flags){var l=i.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,i)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(il(d),d===c){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=i.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Js=i}}if(2064&i.subtreeFlags&&null!==s)s.return=i,Js=s;else e:for(;null!==Js;){if(2048&(i=Js).flags)switch(i.tag){case 0:case 11:case 15:rl(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Js=y;break e}Js=i.return}}var b=e.current;for(Js=b;null!==Js;){var x=(s=Js).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Js=x;else e:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){Cu(l,l.return,e)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Ol=o,Uo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Tl.transition=t}}return!1}function Eu(e,t,n){e=Ma(e,t=hs(0,t=cs(n,t),1),1),t=tu(),null!==e&&(gt(e,1,t),ou(e,t))}function Cu(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ql||!Ql.has(r))){t=Ma(t,e=ms(t,e=cs(n,e),1),1),e=tu(),null!==t&&(gt(t,1,e),ou(t,e));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Al===e&&(zl&n)===n&&(4===Ml||3===Ml&&(130023424&zl)===zl&&500>Ye()-Vl?pu(e,0):Ll|=n),ou(e,t)}function Pu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=tu();null!==(e=Aa(e,t))&&(gt(e,t,n),ou(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Ou(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Pu(e,n)}function Au(e,t){return Qe(e,t)}function Ru(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 zu(e,t,n,r){return new Ru(e,t,n,r)}function ju(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fu(e,t){var n=e.alternate;return null===n?((n=zu(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mu(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)ju(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case k:return Iu(n.children,o,i,t);case E:s=8,o|=8;break;case C:return(e=zu(12,n,t,2|o)).elementType=C,e.lanes=i,e;case O:return(e=zu(13,n,t,o)).elementType=O,e.lanes=i,e;case A:return(e=zu(19,n,t,o)).elementType=A,e.lanes=i,e;case j:return Nu(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case P:s=9;break e;case T:s=11;break e;case R:s=14;break e;case z:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=zu(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Iu(e,t,n,r){return(e=zu(7,e,r,t)).lanes=n,e}function Nu(e,t,n,r){return(e=zu(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=zu(6,e,null,t)).lanes=n,e}function Lu(e,t,n){return(t=zu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(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=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $u(e,t,n,r,o,a,i,s,l){return e=new Bu(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=zu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},za(a),e}function Vu(e){if(!e)return To;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(jo(n))return Io(e,n,t)}return t}function Uu(e,t,n,r,o,a,i,s,l){return(e=$u(n,r,!0,e,0,a,0,s,l)).context=Vu(null),n=e.current,(a=Fa(r=tu(),o=nu(n))).callback=null!=t?t:null,Ma(n,a,o),e.current.lanes=o,gt(e,o,r),ou(e,r),e}function Wu(e,t,n,r){var o=t.current,a=tu(),i=nu(o);return n=Vu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ma(o,t,i))&&(ru(e,o,i,a),Ia(e,o,i)),i}function Hu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ao.current)xs=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return xs=!1,function(e,t,n){switch(t.tag){case 3:As(t),ha();break;case 5:ii(t);break;case 1:jo(t.type)&&No(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(ya,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(li,1&li.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ds(e,t,n):(Po(li,1&li.current),null!==(e=Hs(e,t,n))?e.sibling:null);Po(li,1&li.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Us(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(li,li.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Hs(e,t,n)}(e,t,n);xs=!!(131072&e.flags)}else xs=!1,aa&&1048576&t.flags&&ea(t,Qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ws(e,t),e=t.pendingProps;var o=zo(t,Oo.current);Ca(t,n),o=Ei(null,t,r,e,o,n);var i=Ci();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jo(r)?(i=!0,No(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,za(t),o.updater=Va,t.stateNode=o,o._reactInternals=t,qa(t,r,e,n),t=Os(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return ju(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===R)return 14}return 2}(r),e=ga(r,e),o){case 0:t=Ps(null,t,r,e,n);break e;case 1:t=Ts(null,t,r,e,n);break e;case 11:t=Ss(null,t,r,e,n);break e;case 14:t=ks(null,t,r,ga(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ps(e,t,r,o=t.elementType===r?o:ga(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ts(e,t,r,o=t.elementType===r?o:ga(r,o),n);case 3:e:{if(As(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,ja(e,t),Da(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Rs(e,t,r,n,o=cs(Error(a(423)),t));break e}if(r!==o){t=Rs(e,t,r,n,o=cs(Error(a(424)),t));break e}for(oa=uo(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=Za(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ha(),r===o){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&ca(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==i&&no(r,i)&&(t.flags|=32),_s(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ca(t),null;case 13:return Ds(e,t,n);case 4:return oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ya(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ss(e,t,r,o=t.elementType===r?o:ga(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Po(ya,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===o.children&&!Ao.current){t=Hs(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===i.tag){(u=Fa(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,null!==(u=i.alternate)&&(u.lanes|=n),Ea(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ea(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ca(t,n),r=r(o=_a(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ga(r=t.type,t.pendingProps),ks(e,t,r,o=ga(r.type,o),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ga(r,o),Ws(e,t),t.tag=1,jo(r)?(e=!0,No(t)):e=!1,Ca(t,n),Wa(t,r,o),qa(t,r,o,n),Os(null,t,r,!0,e,n);case 19:return Us(e,t,n);case 22:return Cs(e,t,n)}throw Error(a(156,t.tag))};var Gu="function"==typeof reportError?reportError:function(e){console.error(e)};function Xu(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=Hu(i);s.call(e)}}Wu(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Hu(i);a.call(e)}}var i=Uu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=i,e[mo]=i.current,Vr(8===e.nodeType?e.parentNode:e),du(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Hu(l);s.call(e)}}var l=$u(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[mo]=l.current,Vr(8===e.nodeType?e.parentNode:e),du((function(){Wu(t,l,n,r)})),l}(n,t,e,o,r);return Hu(i)}Ku.prototype.render=Xu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Wu(e,t,null,null)},Ku.prototype.unmount=Xu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du((function(){Wu(null,e,null,null)})),t[mo]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Nt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ou(t,Ye()),!(6&Ol)&&(Ul=Ye()+500,Uo()))}break;case 13:du((function(){var t=Aa(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Qu(e,1)}},St=function(e){if(13===e.tag){var t=Aa(e,134217728);null!==t&&ru(t,e,134217728,tu()),Qu(e,134217728)}},kt=function(e){if(13===e.tag){var t=nu(e),n=Aa(e,t);null!==n&&ru(n,e,t,tu()),Qu(e,t)}},Et=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){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=So(r);if(!o)throw Error(a(90));Q(r),Z(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cu,Oe=du;var tc={usingClientEntryPoint:!1,Events:[xo,wo,So,_e,Pe,cu]},nc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),at=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(a(299));var n=!1,r="",o=Gu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=$u(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Xu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,n){if(!Zu(t))throw Error(a(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",s=Gu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Uu(t,null,e,1,null!=n?n:null,o,0,i,s),e[mo]=t.current,Vr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ku(t)},t.render=function(e,t,n){if(!Zu(t))throw Error(a(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zu(e))throw Error(a(40));return!!e._reactRootContainer&&(du((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case a:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=w},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},4146:(e,t,n)=>{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var i=c(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),v=0;v<i.length;++v){var g=i[v];if(!(a[g]||r&&r[g]||m&&m[g]||s&&s[g])){var y=f(n,g);try{u(t,g,y)}catch(e){}}}}return t}},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},5338:(e,t,n)=>{"use strict";var r=n(961);t.createRoot=r.createRoot,r.hydrateRoot},6694:e=>{"use strict";e.exports=React},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>a(l,n))u<o&&0>a(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(v=!1,x(e),!m)if(null!==r(u))m=!0,j(S);else{var t=r(c);null!==t&&F(w,t.startTime-e)}}function S(e,n){m=!1,v&&(v=!1,y(_),_=-1),h=!0;var a=p;try{for(x(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!O());){var i=f.callback;if("function"==typeof i){f.callback=null,p=f.priorityLevel;var s=i(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&o(u),x(n)}else o(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&F(w,d.startTime-n),l=!1}return l}finally{f=null,p=a,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,E=!1,C=null,_=-1,P=5,T=-1;function O(){return!(t.unstable_now()-T<P)}function A(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?k():(E=!1,C=null)}}else E=!1}if("function"==typeof b)k=function(){b(A)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,z=R.port2;R.port1.onmessage=A,k=function(){z.postMessage(null)}}else k=function(){g(A,0)};function j(e){C=e,E||(E=!0,k())}function F(e,n){_=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,j(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(v?(y(_),_=-1):v=!0,F(w,a-i))):(e.sortIndex=s,n(u,e),m||h||(m=!0,j(S))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},7604:(e,t,n)=>{var r;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(e){return function(e,t){var n,r,i,s,l,u,c,d,f,p=1,h=e.length,m="";for(r=0;r<h;r++)if("string"==typeof e[r])m+=e[r];else if("object"==typeof e[r]){if((s=e[r]).keys)for(n=t[p],i=0;i<s.keys.length;i++){if(null==n)throw new Error(a('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[i],s.keys[i-1]));n=n[s.keys[i]]}else n=s.param_no?t[s.param_no]:t[p++];if(o.not_type.test(s.type)&&o.not_primitive.test(s.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(s.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(a("[sprintf] expecting number but found %T",n));switch(o.number.test(s.type)&&(d=n>=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(s.type)?m+=n:(!o.number.test(s.type)||d&&!s.sign?f="":(f=d?"+":"-",n=n.toString().replace(o.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",c=s.width-(f+n).length,l=s.width&&c>0?u.repeat(c):"",m+=s.align?f+n+l:"0"===u?f+l+n:l+f+n)}return m}(function(e){if(s[e])return s[e];for(var t,n=e,r=[],a=0;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var i=[],l=t[2],u=[];if(null===(u=o.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(i.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=o.key_access.exec(l)))i.push(u[1]);else{if(null===(u=o.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");i.push(u[1])}t[2]=i}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}(e),arguments)}function i(e,t){return a.apply(null,[e].concat(t||[]))}var s=Object.create(null);t.sprintf=a,t.vsprintf=i,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=i,void 0===(r=function(){return{sprintf:a,vsprintf:i}}.call(t,n,t,e))||(e.exports=r))}()},8394:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[a]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[i]=c["[object Map]"]=c["[object Number]"]=c[s]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var d,f,p,h="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,m="object"==typeof self&&self&&self.Object===Object&&self,v=h||m||Function("return this")(),g=t&&!t.nodeType&&t,y=g&&e&&!e.nodeType&&e,b=y&&y.exports===g,x=b&&h.process,w=function(){try{return y&&y.require&&y.require("util").types||x&&x.binding&&x.binding("util")}catch(e){}}(),S=w&&w.isTypedArray,k=Array.prototype,E=Function.prototype,C=Object.prototype,_=v["__core-js_shared__"],P=E.toString,T=C.hasOwnProperty,O=(d=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",A=C.toString,R=P.call(Object),z=RegExp("^"+P.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=b?v.Buffer:void 0,F=v.Symbol,M=v.Uint8Array,I=(j&&j.allocUnsafe,f=Object.getPrototypeOf,p=Object,function(e){return f(p(e))}),N=Object.create,D=C.propertyIsEnumerable,L=k.splice,B=F?F.toStringTag:void 0,$=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),V=j?j.isBuffer:void 0,U=Math.max,W=Date.now,H=se(v,"Map"),q=se(Object,"create"),Q=function(){function e(){}return function(t){if(!be(t))return{};if(N)return N(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function G(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=this.__data__=new X(e);this.size=t.size}function Z(e,t,n){(void 0!==n&&!fe(e[t],n)||void 0===n&&!(t in e))&&te(e,t,n)}function J(e,t,n){var r=e[t];T.call(e,t)&&fe(r,n)&&(void 0!==n||t in e)||te(e,t,n)}function ee(e,t){for(var n=e.length;n--;)if(fe(e[n][0],t))return n;return-1}function te(e,t,n){"__proto__"==t&&$?$(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}G.prototype.clear=function(){this.__data__=q?q(null):{},this.size=0},G.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},G.prototype.get=function(e){var t=this.__data__;if(q){var n=t[e];return n===r?void 0:n}return T.call(t,e)?t[e]:void 0},G.prototype.has=function(e){var t=this.__data__;return q?void 0!==t[e]:T.call(t,e)},G.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=q&&void 0===t?r:t,this},X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(e){var t=this.__data__,n=ee(t,e);return!(n<0||(n==t.length-1?t.pop():L.call(t,n,1),--this.size,0))},X.prototype.get=function(e){var t=this.__data__,n=ee(t,e);return n<0?void 0:t[n][1]},X.prototype.has=function(e){return ee(this.__data__,e)>-1},X.prototype.set=function(e,t){var n=this.__data__,r=ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},K.prototype.clear=function(){this.size=0,this.__data__={hash:new G,map:new(H||X),string:new G}},K.prototype.delete=function(e){var t=ie(this,e).delete(e);return this.size-=t?1:0,t},K.prototype.get=function(e){return ie(this,e).get(e)},K.prototype.has=function(e){return ie(this,e).has(e)},K.prototype.set=function(e,t){var n=ie(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Y.prototype.clear=function(){this.__data__=new X,this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Y.prototype.get=function(e){return this.__data__.get(e)},Y.prototype.has=function(e){return this.__data__.has(e)},Y.prototype.set=function(e,t){var n=this.__data__;if(n instanceof X){var r=n.__data__;if(!H||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new K(r)}return n.set(e,t),this.size=n.size,this};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?function(e){var t=T.call(e,B),n=e[B];try{e[B]=void 0;var r=!0}catch(e){}var o=A.call(e);return r&&(t?e[B]=n:delete e[B]),o}(e):function(e){return A.call(e)}(e)}function re(e){return xe(e)&&ne(e)==a}function oe(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[++r];if(!1===t(o[s],s,o))break}}(t,(function(a,i){if(o||(o=new Y),be(a))!function(e,t,n,r,o,a,i){var l=ce(e,n),u=ce(t,n),c=i.get(u);if(c)Z(e,n,c);else{var d,f,p,h,m,v=a?a(l,u,n+"",e,t,i):void 0,g=void 0===v;if(g){var y=he(u),b=!y&&ve(u),x=!y&&!b&&we(u);v=u,y||b||x?he(l)?v=l:xe(m=l)&&me(m)?v=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):b?(g=!1,v=function(e){return e.slice()}(u)):x?(g=!1,h=new(p=(d=u).buffer).constructor(p.byteLength),new M(h).set(new M(p)),f=h,v=new d.constructor(f,d.byteOffset,d.length)):v=[]:function(e){if(!xe(e)||ne(e)!=s)return!1;var t=I(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==R}(u)||pe(u)?(v=l,pe(l)?v=function(e){return function(e,t,n){var r=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var i=t[o],s=void 0;void 0===s&&(s=e[i]),r?te(n,i,s):J(n,i,s)}return n}(e,Se(e))}(l):be(l)&&!ge(l)||(v=function(e){return"function"!=typeof e.constructor||ue(e)?{}:Q(I(e))}(u))):g=!1}g&&(i.set(u,v),o(v,u,r,a,i),i.delete(u)),Z(e,n,v)}}(e,t,i,n,oe,r,o);else{var l=r?r(ce(e,i),a,i+"",e,t,o):void 0;void 0===l&&(l=a),Z(e,i,l)}}),Se)}var ae=$?function(e,t){return $(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ce;function ie(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function se(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!be(e)||function(e){return!!O&&O in e}(e))&&(ge(e)?z:l).test(function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}function le(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&u.test(e))&&e>-1&&e%1==0&&e<t}function ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||C)}function ce(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var de=function(e){var t=0,n=0;return function(){var r=W(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ae);function fe(e,t){return e===t||e!=e&&t!=t}var pe=re(function(){return arguments}())?re:function(e){return xe(e)&&T.call(e,"callee")&&!D.call(e,"callee")},he=Array.isArray;function me(e){return null!=e&&ye(e.length)&&!ge(e)}var ve=V||function(){return!1};function ge(e){if(!be(e))return!1;var t=ne(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ye(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xe(e){return null!=e&&"object"==typeof e}var we=S?function(e){return function(t){return e(t)}}(S):function(e){return xe(e)&&ye(e.length)&&!!c[ne(e)]};function Se(e){return me(e)?function(e,t){var n=he(e),r=!n&&pe(e),o=!n&&!r&&ve(e),a=!n&&!r&&!o&&we(e),i=n||r||o||a,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!T.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||le(u,l))||s.push(u);return s}(e,!0):function(e){if(!be(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ue(e),n=[];for(var r in e)("constructor"!=r||!t&&T.call(e,r))&&n.push(r);return n}(e)}var ke,Ee=(ke=function(e,t,n,r){oe(e,t,n,r)},function(e,t){return de(function(e,t,n){return t=U(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=U(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Ce),e+"")}((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=ke.length>3&&"function"==typeof o?(r--,o):void 0,a&&function(e,t,n){if(!be(n))return!1;var r=typeof t;return!!("number"==r?me(n)&&le(t,n.length):"string"==r&&t in n)&&fe(n[t],e)}(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&ke(e,i,n,o)}return e})));function Ce(e){return e}e.exports=Ee},8493:(e,t,n)=>{"use strict";var r=n(6694),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),i((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},9888:(e,t,n)=>{"use strict";e.exports=n(8493)},9982:(e,t,n)=>{"use strict";e.exports=n(7463)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r](a,a.exports,n),a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0,(()=>{"use strict";var e=n(6694),t=n.n(e),r=n(5338),o=n(7604),a=n.n(o);const i=function(e,t){var n,r,o=0;function a(){var a,i,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<l;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(a=new Array(l),i=0;i<l;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},a.clear=function(){n=null,r=null,o=0},a}(console.error);function s(e,...t){try{return a().sprintf(e,...t)}catch(t){return t instanceof Error&&i("sprintf error: \n\n"+t.toString()),e}}var l,u,c,d;l={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},u=["(","?"],c={")":["("],":":["?","?:"]},d=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var f={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};var p={contextDelimiter:"",onMissingKey:null};function h(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},p)this.options[n]=void 0!==t&&n in t?t[n]:p[n]}h.prototype.getPluralForm=function(e,t){var n,r,o,a,i=this.pluralForms[e];return i||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),a=function(e){var t=function(e){for(var t,n,r,o,a=[],i=[];t=e.match(d);){for(n=t[0],(r=e.substr(0,t.index).trim())&&a.push(r);o=i.pop();){if(c[n]){if(c[n][0]===o){n=c[n][1]||n;break}}else if(u.indexOf(o)>=0||l[o]<l[n]){i.push(o);break}a.push(o)}c[n]||i.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&a.push(e),a.concat(i.reverse())}(e);return function(e){return function(e,t){var n,r,o,a,i,s,l=[];for(n=0;n<e.length;n++){if(i=e[n],a=f[i]){for(r=a.length,o=Array(r);r--;)o[r]=l.pop();try{s=a.apply(null,o)}catch(e){return e}}else s=t.hasOwnProperty(i)?t[i]:+i;l.push(s)}return l[0]}(t,e)}}(r),o=function(e){return+a({n:e})}),i=this.pluralForms[e]=o),i(t)},h.prototype.dcnpgettext=function(e,t,n,r,o){var a,i,s;return a=void 0===o?0:this.getPluralForm(e,o),i=n,t&&(i=t+this.options.contextDelimiter+n),(s=this.data[e][i])&&s[a]?s[a]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===a?n:r)};const m={plural_forms:e=>1===e?0:1},v=/^i18n\.(n?gettext|has_translation)(_|$)/,g=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},y=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},b=function(e,t){return function(n,r,o,a=10){const i=e[t];if(!y(n))return;if(!g(r))return;if("function"!=typeof o)return void console.error("The hook callback must be a function.");if("number"!=typeof a)return void console.error("If specified, the hook priority must be a number.");const s={callback:o,priority:a,namespace:r};if(i[n]){const e=i[n].handlers;let t;for(t=e.length;t>0&&!(a>=e[t-1].priority);t--);t===e.length?e[t]=s:e.splice(t,0,s),i.__current.forEach((e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex++}))}else i[n]={handlers:[s],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,o,a)}},x=function(e,t,n=!1){return function(r,o){const a=e[t];if(!y(r))return;if(!n&&!g(o))return;if(!a[r])return 0;let i=0;if(n)i=a[r].handlers.length,a[r]={runs:a[r].runs,handlers:[]};else{const e=a[r].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===o&&(e.splice(t,1),i++,a.__current.forEach((e=>{e.name===r&&e.currentIndex>=t&&e.currentIndex--})))}return"hookRemoved"!==r&&e.doAction("hookRemoved",r,o),i}},w=function(e,t){return function(n,r){const o=e[t];return void 0!==r?n in o&&o[n].handlers.some((e=>e.namespace===r)):n in o}},S=function(e,t,n=!1){return function(r,...o){const a=e[t];a[r]||(a[r]={handlers:[],runs:0}),a[r].runs++;const i=a[r].handlers;if(!i||!i.length)return n?o[0]:void 0;const s={name:r,currentIndex:0};for(a.__current.push(s);s.currentIndex<i.length;){const e=i[s.currentIndex].callback.apply(null,o);n&&(o[0]=e),s.currentIndex++}return a.__current.pop(),n?o[0]:void 0}},k=function(e,t){return function(){var n;const r=e[t];return null!==(n=r.__current[r.__current.length-1]?.name)&&void 0!==n?n:null}},E=function(e,t){return function(n){const r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}},C=function(e,t){return function(n){const r=e[t];if(y(n))return r[n]&&r[n].runs?r[n].runs:0}};class _{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=b(this,"actions"),this.addFilter=b(this,"filters"),this.removeAction=x(this,"actions"),this.removeFilter=x(this,"filters"),this.hasAction=w(this,"actions"),this.hasFilter=w(this,"filters"),this.removeAllActions=x(this,"actions",!0),this.removeAllFilters=x(this,"filters",!0),this.doAction=S(this,"actions"),this.applyFilters=S(this,"filters",!0),this.currentAction=k(this,"actions"),this.currentFilter=k(this,"filters"),this.doingAction=E(this,"actions"),this.doingFilter=E(this,"filters"),this.didAction=C(this,"actions"),this.didFilter=C(this,"filters")}}const P=new _,{addAction:T,addFilter:O,removeAction:A,removeFilter:R,hasAction:z,hasFilter:j,removeAllActions:F,removeAllFilters:M,doAction:I,applyFilters:N,currentAction:D,currentFilter:L,doingAction:B,doingFilter:$,didAction:V,didFilter:U,actions:W,filters:H}=P,q=((e,t,n)=>{const r=new h({}),o=new Set,a=()=>{o.forEach((e=>e()))},i=(e,t="default")=>{r.data[t]={...r.data[t],...e},r.data[t][""]={...m,...r.data[t]?.[""]},delete r.pluralForms[t]},s=(e,t)=>{i(e,t),a()},l=(e="default",t,n,o,a)=>(r.data[e]||i(void 0,e),r.dcnpgettext(e,t,n,o,a)),u=(e="default")=>e,c=(e,t,r)=>{let o=l(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+u(r),o,e,t,r)):o};if(n){const e=e=>{v.test(e)&&a()};n.addAction("hookAdded","core/i18n",e),n.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>r.data[e],setLocaleData:s,addLocaleData:(e,t="default")=>{r.data[t]={...r.data[t],...e,"":{...m,...r.data[t]?.[""],...e?.[""]}},delete r.pluralForms[t],a()},resetLocaleData:(e,t)=>{r.data={},r.pluralForms={},s(e,t)},subscribe:e=>(o.add(e),()=>o.delete(e)),__:(e,t)=>{let r=l(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+u(t),r,e,t)):r},_x:c,_n:(e,t,r,o)=>{let a=l(o,void 0,e,t,r);return n?(a=n.applyFilters("i18n.ngettext",a,e,t,r,o),n.applyFilters("i18n.ngettext_"+u(o),a,e,t,r,o)):a},_nx:(e,t,r,o,a)=>{let i=l(a,o,e,t,r);return n?(i=n.applyFilters("i18n.ngettext_with_context",i,e,t,r,o,a),n.applyFilters("i18n.ngettext_with_context_"+u(a),i,e,t,r,o,a)):i},isRTL:()=>"rtl"===c("ltr","text direction"),hasTranslation:(e,t,o)=>{const a=t?t+""+e:e;let i=!!r.data?.[null!=o?o:"default"]?.[a];return n&&(i=n.applyFilters("i18n.has_translation",i,e,t,o),i=n.applyFilters("i18n.has_translation_"+u(o),i,e,t,o)),i}}})(0,0,P),Q=(q.getLocaleData.bind(q),q.setLocaleData.bind(q),q.resetLocaleData.bind(q),q.subscribe.bind(q),q.__.bind(q));q._x.bind(q),q._n.bind(q),q._nx.bind(q),q.isRTL.bind(q),q.hasTranslation.bind(q);var G=(...e)=>e.filter(Boolean).join(" ");function X(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function K(e,...t){return Y(e)?e(...t):e}var Y=e=>"function"==typeof e,Z=e=>e?"":void 0,J=e=>!!e||void 0;function ee(...e){return function(t){e.some((e=>(null==e||e(t),null==t?void 0:t.defaultPrevented)))}}var te=Object.freeze(["base","sm","md","lg","xl","2xl"]);function ne(e,t){return Array.isArray(e)?e.map((e=>null===e?null:t(e))):X(e)?Object.keys(e).reduce(((n,r)=>(n[r]=t(e[r]),n)),{}):null!=e?t(e):null}var re=Boolean(null==globalThis?void 0:globalThis.document)?e.useLayoutEffect:e.useEffect,oe=n(4848),ae=(0,e.createContext)({getDocument:()=>document,getWindow:()=>window});function ie(t){const{children:n,environment:r,disabled:o}=t,a=(0,e.useRef)(null),i=(0,e.useMemo)((()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=a.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=a.current)?void 0:e.ownerDocument.defaultView)?t:window}}),[r]),s=!o||!r;return(0,oe.jsxs)(ae.Provider,{value:i,children:[n,s&&(0,oe.jsx)("span",{id:"__chakra_env",hidden:!0,ref:a})]})}ae.displayName="EnvironmentContext",ie.displayName="EnvironmentProvider";var se=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),le=Math.abs,ue=String.fromCharCode,ce=Object.assign;function de(e){return e.trim()}function fe(e,t,n){return e.replace(t,n)}function pe(e,t){return e.indexOf(t)}function he(e,t){return 0|e.charCodeAt(t)}function me(e,t,n){return e.slice(t,n)}function ve(e){return e.length}function ge(e){return e.length}function ye(e,t){return t.push(e),e}var be=1,xe=1,we=0,Se=0,ke=0,Ee="";function Ce(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:be,column:xe,length:i,return:""}}function _e(e,t){return ce(Ce("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pe(){return ke=Se>0?he(Ee,--Se):0,xe--,10===ke&&(xe=1,be--),ke}function Te(){return ke=Se<we?he(Ee,Se++):0,xe++,10===ke&&(xe=1,be++),ke}function Oe(){return he(Ee,Se)}function Ae(){return Se}function Re(e,t){return me(Ee,e,t)}function ze(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 je(e){return be=xe=1,we=ve(Ee=e),Se=0,[]}function Fe(e){return Ee="",e}function Me(e){return de(Re(Se-1,De(91===e?e+2:40===e?e+1:e)))}function Ie(e){for(;(ke=Oe())&&ke<33;)Te();return ze(e)>2||ze(ke)>3?"":" "}function Ne(e,t){for(;--t&&Te()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return Re(e,Ae()+(t<6&&32==Oe()&&32==Te()))}function De(e){for(;Te();)switch(ke){case e:return Se;case 34:case 39:34!==e&&39!==e&&De(ke);break;case 40:41===e&&De(e);break;case 92:Te()}return Se}function Le(e,t){for(;Te()&&e+ke!==57&&(e+ke!==84||47!==Oe()););return"/*"+Re(t,Se-1)+"*"+ue(47===e?e:Te())}function Be(e){for(;!ze(Oe());)Te();return Re(e,Se)}var $e="-ms-",Ve="-moz-",Ue="-webkit-",We="comm",He="rule",qe="decl",Qe="@keyframes";function Ge(e,t){for(var n="",r=ge(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Xe(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case qe:return e.return=e.return||e.value;case We:return"";case Qe:return e.return=e.value+"{"+Ge(e.children,r)+"}";case He:e.value=e.props.join(",")}return ve(n=Ge(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ke(e){return Fe(Ye("",null,null,null,[""],e=je(e),0,[0],e))}function Ye(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,v=1,g=1,y=0,b="",x=o,w=a,S=r,k=b;v;)switch(h=y,y=Te()){case 40:if(108!=h&&58==he(k,d-1)){-1!=pe(k+=fe(Me(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:k+=Me(y);break;case 9:case 10:case 13:case 32:k+=Ie(h);break;case 92:k+=Ne(Ae()-1,7);continue;case 47:switch(Oe()){case 42:case 47:ye(Je(Le(Te(),Ae()),t,n),l);break;default:k+="/"}break;case 123*m:s[u++]=ve(k)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(k=fe(k,/\f/g,"")),p>0&&ve(k)-d&&ye(p>32?et(k+";",r,n,d-1):et(fe(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ye(S=Ze(k,t,n,u,c,o,s,b,x=[],w=[],d),a),123===y)if(0===c)Ye(k,t,S,S,x,a,d,s,w);else switch(99===f&&110===he(k,3)?100:f){case 100:case 108:case 109:case 115:Ye(e,S,S,r&&ye(Ze(e,S,S,0,0,o,s,b,o,x=[],d),w),o,w,d,s,r?x:w);break;default:Ye(k,S,S,S,[""],w,0,s,w)}}u=c=p=0,m=g=1,b=k="",d=i;break;case 58:d=1+ve(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Pe())continue;switch(k+=ue(y),y*m){case 38:g=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(ve(k)-1)*g,g=1;break;case 64:45===Oe()&&(k+=Me(Te())),f=Oe(),c=d=ve(b=k+=Be(Ae())),y++;break;case 45:45===h&&2==ve(k)&&(m=0)}}return a}function Ze(e,t,n,r,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=ge(f),h=0,m=0,v=0;h<r;++h)for(var g=0,y=me(e,d+1,d=le(m=i[h])),b=e;g<p;++g)(b=de(m>0?f[g]+" "+y:fe(y,/&\f/g,f[g])))&&(l[v++]=b);return Ce(e,t,n,0===o?He:s,l,u,c)}function Je(e,t,n){return Ce(e,t,n,We,ue(ke),me(e,2,-2),0)}function et(e,t,n,r){return Ce(e,t,n,qe,me(e,0,r),me(e,r+1,-1),r)}var tt=function(e,t,n){for(var r=0,o=0;r=o,o=Oe(),38===r&&12===o&&(t[n]=1),!ze(o);)Te();return Re(e,Se)},nt=new WeakMap,rt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||nt.get(n))&&!r){nt.set(e,!0);for(var o=[],a=function(e,t){return Fe(function(e,t){var n=-1,r=44;do{switch(ze(r)){case 0:38===r&&12===Oe()&&(t[n]=1),e[n]+=tt(Se-1,t,n);break;case 2:e[n]+=Me(r);break;case 4:if(44===r){e[++n]=58===Oe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ue(r)}}while(r=Te());return e}(je(e),t))}(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},ot=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function at(e,t){switch(function(e,t){return 45^he(e,0)?(((t<<2^he(e,0))<<2^he(e,1))<<2^he(e,2))<<2^he(e,3):0}(e,t)){case 5103:return Ue+"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 Ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ue+e+Ve+e+$e+e+e;case 6828:case 4268:return Ue+e+$e+e+e;case 6165:return Ue+e+$e+"flex-"+e+e;case 5187:return Ue+e+fe(e,/(\w+).+(:[^]+)/,Ue+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return Ue+e+$e+"flex-item-"+fe(e,/flex-|-self/,"")+e;case 4675:return Ue+e+$e+"flex-line-pack"+fe(e,/align-content|flex-|-self/,"")+e;case 5548:return Ue+e+$e+fe(e,"shrink","negative")+e;case 5292:return Ue+e+$e+fe(e,"basis","preferred-size")+e;case 6060:return Ue+"box-"+fe(e,"-grow","")+Ue+e+$e+fe(e,"grow","positive")+e;case 4554:return Ue+fe(e,/([^-])(transform)/g,"$1"+Ue+"$2")+e;case 6187:return fe(fe(fe(e,/(zoom-|grab)/,Ue+"$1"),/(image-set)/,Ue+"$1"),e,"")+e;case 5495:case 3959:return fe(e,/(image-set\([^]*)/,Ue+"$1$`$1");case 4968:return fe(fe(e,/(.+:)(flex-)?(.*)/,Ue+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ue+e+e;case 4095:case 3583:case 4068:case 2532:return fe(e,/(.+)-inline(.+)/,Ue+"$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(ve(e)-1-t>6)switch(he(e,t+1)){case 109:if(45!==he(e,t+4))break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+Ve+(108==he(e,t+3)?"$3":"$2-$3"))+e;case 115:return~pe(e,"stretch")?at(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==he(e,t+1))break;case 6444:switch(he(e,ve(e)-3-(~pe(e,"!important")&&10))){case 107:return fe(e,":",":"+Ue)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(45===he(e,14)?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(he(e,t+11)){case 114:return Ue+e+$e+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ue+e+$e+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ue+e+$e+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ue+e+$e+e+e}return e}var it=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qe:e.return=at(e.value,e.length);break;case Qe:return Ge([_e(e,{value:fe(e.value,"@","@"+Ue)})],r);case He:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ge([_e(e,{props:[fe(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ge([_e(e,{props:[fe(t,/:(plac\w+)/,":"+Ue+"input-$1")]}),_e(e,{props:[fe(t,/:(plac\w+)/,":-moz-$1")]}),_e(e,{props:[fe(t,/:(plac\w+)/,$e+"input-$1")]})],r)}return""}))}}],st=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||it,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)}));var l,u,c,d,f=[Xe,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[rt,ot].concat(a,f),c=ge(u),function(e,t,n,r){for(var o="",a=0;a<c;a++)o+=u[a](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,function(e){Ge(Ke(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new se({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return h.sheet.hydrate(s),h};function lt(){return lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lt.apply(null,arguments)}var ut=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function ct(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var dt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ft=function(e,t,n){dt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},pt={animationIterationCount:1,aspectRatio: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,scale: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};function ht(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var mt=/[A-Z]|^ms/g,vt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gt=function(e){return 45===e.charCodeAt(1)},yt=function(e){return null!=e&&"boolean"!=typeof e},bt=ht((function(e){return gt(e)?e:e.replace(mt,"-$&").toLowerCase()})),xt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(vt,(function(e,t,n){return St={name:t,styles:n,next:St},t}))}return 1===pt[e]||gt(e)||"number"!=typeof t||0===t?t:t+"px"};function wt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return St={name:o.name,styles:o.styles,next:St},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)St={name:i.name,styles:i.styles,next:St},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=wt(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":yt(s)&&(r+=bt(a)+":"+xt(a,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=wt(e,t,i);switch(a){case"animation":case"animationName":r+=bt(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var u=0;u<i.length;u++)yt(i[u])&&(r+=bt(a)+":"+xt(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=St,l=n(e);return St=s,wt(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var St,kt=/label:\s*([^\s;{]+)\s*(;|$)/g;function Et(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";St=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=wt(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=wt(n,t,e[i]),r&&(o+=a[i]);kt.lastIndex=0;for(var s,l="";null!==(s=kt.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:St}}var Ct=!!e.useInsertionEffect&&e.useInsertionEffect,_t=Ct||function(e){return e()},Pt=Ct||e.useLayoutEffect,Tt=e.createContext("undefined"!=typeof HTMLElement?st({key:"css"}):null),Ot=(Tt.Provider,function(t){return(0,e.forwardRef)((function(n,r){var o=(0,e.useContext)(Tt);return t(n,o,r)}))}),At=e.createContext({}),Rt=ut((function(e){return ut((function(t){return function(e,t){return"function"==typeof t?t(e):lt({},e,t)}(e,t)}))})),zt=function(t){var n=e.useContext(At);return t.theme!==n&&(n=Rt(n)(t.theme)),e.createElement(At.Provider,{value:n},t.children)},jt={}.hasOwnProperty,Ft="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Mt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return dt(t,n,r),_t((function(){return ft(t,n,r)})),null},It=Ot((function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var a=t[Ft],i=[o],s="";"string"==typeof t.className?s=ct(n.registered,i,t.className):null!=t.className&&(s=t.className+" ");var l=Et(i,void 0,e.useContext(At));s+=n.key+"-"+l.name;var u={};for(var c in t)jt.call(t,c)&&"css"!==c&&c!==Ft&&(u[c]=t[c]);return u.className=s,r&&(u.ref=r),e.createElement(e.Fragment,null,e.createElement(Mt,{cache:n,serialized:l,isStringTag:"string"==typeof a}),e.createElement(a,u))}));function Nt(){const t=(0,e.useContext)(At);if(!t)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return t}function Dt(t,n){var r;const o=function(t){var n,r;const o=X(t)?t:{fallback:null!=t?t:"base"},a=Nt().__breakpoints.details.map((({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")}))),i=a.map((e=>e.breakpoint===o.fallback)),s=function(t,n={}){const{ssr:r=!0,fallback:o}=n,{getWindow:a}=function({defer:t}={}){const[,n]=(0,e.useReducer)((e=>e+1),0);return re((()=>{t&&n()}),[t]),(0,e.useContext)(ae)}(),i=Array.isArray(t)?t:[t];let s=Array.isArray(o)?o:[o];s=s.filter((e=>null!=e));const[l,u]=(0,e.useState)((()=>i.map(((e,t)=>({media:e,matches:r?!!s[t]:a().matchMedia(e).matches})))));return(0,e.useEffect)((()=>{const e=a();u(i.map((t=>({media:t,matches:e.matchMedia(t).matches}))));const t=i.map((t=>e.matchMedia(t))),n=e=>{u((t=>t.slice().map((t=>t.media===e.media?{...t,matches:e.matches}:t))))};return t.forEach((e=>{"function"==typeof e.addListener?e.addListener(n):e.addEventListener("change",n)})),()=>{t.forEach((e=>{"function"==typeof e.removeListener?e.removeListener(n):e.removeEventListener("change",n)}))}}),[a]),l.map((e=>e.matches))}(a.map((e=>e.query)),{fallback:i,ssr:o.ssr});return null!=(r=null==(n=a[s.findIndex((e=>1==e))])?void 0:n.breakpoint)?r:o.fallback}(X(n)?n:{fallback:null!=n?n:"base"}),a=Nt();if(!o)return;const i=Array.from((null==(r=a.__breakpoints)?void 0:r.keys)||[]),s=Array.isArray(t)?Object.fromEntries(Object.entries(function(e,t=te){const n={};return e.forEach(((e,r)=>{const o=t[r];null!=e&&(n[o]=e)})),n}(t,i)).map((([e,t])=>[e,t]))):t;return function(e,t,n=te){let r=Object.keys(e).indexOf(t);if(-1!==r)return e[t];let o=n.indexOf(t);for(;o>=0;){const t=n[o];if(e.hasOwnProperty(t)){r=o;break}o-=1}return-1!==r?e[n[r]]:void 0}(s,o,i)}function Lt(t){return(0,e.forwardRef)(t)}var Bt=n(8394),$t=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e;function Vt(e){const{scale:t,transform:n,compose:r}=e;return(e,o)=>{var a;const i=((e,t)=>n=>{const r=String(t),o=(e=>/!(important)?$/.test(e))(r),a=$t(r),i=e?`${e}.${a}`:a;let s=X(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t;return s=$t(s),o?`${s} !important`:s})(t,e)(o);let s=null!=(a=null==n?void 0:n(i,o))?a:i;return r&&(s=r(s,o)),s}}var Ut=(...e)=>t=>e.reduce(((e,t)=>t(e)),t);function Wt(e,t){return n=>{const r={property:n,scale:e};return r.transform=Vt({scale:e,transform:t}),r}}var Ht=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,qt=["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))"],Qt={"--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(" ")},Gt={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,/*!*/ /*!*/)"},Xt={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Kt={"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"},Yt=new Set(Object.values(Kt)),Zt=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Jt=e=>e.trim(),en=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),tn=e=>t=>`${e}(${t})`,nn={filter:e=>"auto"!==e?e:Qt,backdropFilter:e=>"auto"!==e?e:Gt,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(nn.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...qt].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...qt].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}})(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){if(null==e||Zt.has(e))return e;if(!en(e)&&!Zt.has(e))return`url('${e}')`;const n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),r=null==n?void 0:n[1],o=null==n?void 0:n[2];if(!r||!o)return e;const a=r.includes("-gradient")?r:`${r}-gradient`,[i,...s]=o.split(",").map(Jt).filter(Boolean);if(0===(null==s?void 0:s.length))return e;const l=i in Kt?Kt[i]:i;return s.unshift(l),`${a}(${s.map((e=>{if(Yt.has(e))return e;const n=e.indexOf(" "),[r,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=en(o)?o:o&&o.split(" "),i=`colors.${r}`,s=i in t.__cssMap?t.__cssMap[i].varRef:r;return a?[s,...Array.isArray(a)?a:[a]].join(" "):s})).join(", ")})`}(e,null!=t?t:{}),blur:tn("blur"),opacity:tn("opacity"),brightness:tn("brightness"),contrast:tn("contrast"),dropShadow:tn("drop-shadow"),grayscale:tn("grayscale"),hueRotate:e=>tn("hue-rotate")(nn.degree(e)),invert:tn("invert"),saturate:tn("saturate"),sepia:tn("sepia"),bgImage:e=>null==e||en(e)||Zt.has(e)?e:`url(${e})`,outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=null!=(t=Xt[e])?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},rn={borderWidths:Wt("borderWidths"),borderStyles:Wt("borderStyles"),colors:Wt("colors"),borders:Wt("borders"),gradients:Wt("gradients",nn.gradient),radii:Wt("radii",nn.px),space:Wt("space",Ut(nn.vh,nn.px)),spaceT:Wt("space",Ut(nn.vh,nn.px)),degreeT:e=>({property:e,transform:nn.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:Vt({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:Wt("sizes",Ut(nn.vh,nn.px)),sizesT:Wt("sizes",Ut(nn.vh,nn.fraction)),shadows:Wt("shadows"),logical:function(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Ht(t),transform:n?Vt({scale:n,compose:r}):r}},blur:Wt("blur",nn.blur)},on={background:rn.colors("background"),backgroundColor:rn.colors("backgroundColor"),backgroundImage:rn.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:nn.bgClip},bgSize:rn.prop("backgroundSize"),bgPosition:rn.prop("backgroundPosition"),bg:rn.colors("background"),bgColor:rn.colors("backgroundColor"),bgPos:rn.prop("backgroundPosition"),bgRepeat:rn.prop("backgroundRepeat"),bgAttachment:rn.prop("backgroundAttachment"),bgGradient:rn.gradients("backgroundImage"),bgClip:{transform:nn.bgClip}};Object.assign(on,{bgImage:on.backgroundImage,bgImg:on.backgroundImage});var an={border:rn.borders("border"),borderWidth:rn.borderWidths("borderWidth"),borderStyle:rn.borderStyles("borderStyle"),borderColor:rn.colors("borderColor"),borderRadius:rn.radii("borderRadius"),borderTop:rn.borders("borderTop"),borderBlockStart:rn.borders("borderBlockStart"),borderTopLeftRadius:rn.radii("borderTopLeftRadius"),borderStartStartRadius:rn.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:rn.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:rn.radii("borderTopRightRadius"),borderStartEndRadius:rn.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:rn.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:rn.borders("borderRight"),borderInlineEnd:rn.borders("borderInlineEnd"),borderBottom:rn.borders("borderBottom"),borderBlockEnd:rn.borders("borderBlockEnd"),borderBottomLeftRadius:rn.radii("borderBottomLeftRadius"),borderBottomRightRadius:rn.radii("borderBottomRightRadius"),borderLeft:rn.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:rn.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:rn.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:rn.borders(["borderLeft","borderRight"]),borderInline:rn.borders("borderInline"),borderY:rn.borders(["borderTop","borderBottom"]),borderBlock:rn.borders("borderBlock"),borderTopWidth:rn.borderWidths("borderTopWidth"),borderBlockStartWidth:rn.borderWidths("borderBlockStartWidth"),borderTopColor:rn.colors("borderTopColor"),borderBlockStartColor:rn.colors("borderBlockStartColor"),borderTopStyle:rn.borderStyles("borderTopStyle"),borderBlockStartStyle:rn.borderStyles("borderBlockStartStyle"),borderBottomWidth:rn.borderWidths("borderBottomWidth"),borderBlockEndWidth:rn.borderWidths("borderBlockEndWidth"),borderBottomColor:rn.colors("borderBottomColor"),borderBlockEndColor:rn.colors("borderBlockEndColor"),borderBottomStyle:rn.borderStyles("borderBottomStyle"),borderBlockEndStyle:rn.borderStyles("borderBlockEndStyle"),borderLeftWidth:rn.borderWidths("borderLeftWidth"),borderInlineStartWidth:rn.borderWidths("borderInlineStartWidth"),borderLeftColor:rn.colors("borderLeftColor"),borderInlineStartColor:rn.colors("borderInlineStartColor"),borderLeftStyle:rn.borderStyles("borderLeftStyle"),borderInlineStartStyle:rn.borderStyles("borderInlineStartStyle"),borderRightWidth:rn.borderWidths("borderRightWidth"),borderInlineEndWidth:rn.borderWidths("borderInlineEndWidth"),borderRightColor:rn.colors("borderRightColor"),borderInlineEndColor:rn.colors("borderInlineEndColor"),borderRightStyle:rn.borderStyles("borderRightStyle"),borderInlineEndStyle:rn.borderStyles("borderInlineEndStyle"),borderTopRadius:rn.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:rn.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:rn.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:rn.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(an,{rounded:an.borderRadius,roundedTop:an.borderTopRadius,roundedTopLeft:an.borderTopLeftRadius,roundedTopRight:an.borderTopRightRadius,roundedTopStart:an.borderStartStartRadius,roundedTopEnd:an.borderStartEndRadius,roundedBottom:an.borderBottomRadius,roundedBottomLeft:an.borderBottomLeftRadius,roundedBottomRight:an.borderBottomRightRadius,roundedBottomStart:an.borderEndStartRadius,roundedBottomEnd:an.borderEndEndRadius,roundedLeft:an.borderLeftRadius,roundedRight:an.borderRightRadius,roundedStart:an.borderInlineStartRadius,roundedEnd:an.borderInlineEndRadius,borderStart:an.borderInlineStart,borderEnd:an.borderInlineEnd,borderTopStartRadius:an.borderStartStartRadius,borderTopEndRadius:an.borderStartEndRadius,borderBottomStartRadius:an.borderEndStartRadius,borderBottomEndRadius:an.borderEndEndRadius,borderStartRadius:an.borderInlineStartRadius,borderEndRadius:an.borderInlineEndRadius,borderStartWidth:an.borderInlineStartWidth,borderEndWidth:an.borderInlineEndWidth,borderStartColor:an.borderInlineStartColor,borderEndColor:an.borderInlineEndColor,borderStartStyle:an.borderInlineStartStyle,borderEndStyle:an.borderInlineEndStyle});var sn={color:rn.colors("color"),textColor:rn.colors("color"),fill:rn.colors("fill"),stroke:rn.colors("stroke")},ln={boxShadow:rn.shadows("boxShadow"),mixBlendMode:!0,blendMode:rn.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:rn.prop("backgroundBlendMode"),opacity:!0};Object.assign(ln,{shadow:ln.boxShadow});var un={filter:{transform:nn.filter},blur:rn.blur("--chakra-blur"),brightness:rn.propT("--chakra-brightness",nn.brightness),contrast:rn.propT("--chakra-contrast",nn.contrast),hueRotate:rn.propT("--chakra-hue-rotate",nn.hueRotate),invert:rn.propT("--chakra-invert",nn.invert),saturate:rn.propT("--chakra-saturate",nn.saturate),dropShadow:rn.propT("--chakra-drop-shadow",nn.dropShadow),backdropFilter:{transform:nn.backdropFilter},backdropBlur:rn.blur("--chakra-backdrop-blur"),backdropBrightness:rn.propT("--chakra-backdrop-brightness",nn.brightness),backdropContrast:rn.propT("--chakra-backdrop-contrast",nn.contrast),backdropHueRotate:rn.propT("--chakra-backdrop-hue-rotate",nn.hueRotate),backdropInvert:rn.propT("--chakra-backdrop-invert",nn.invert),backdropSaturate:rn.propT("--chakra-backdrop-saturate",nn.saturate)},cn={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:nn.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:rn.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:rn.space("gap"),rowGap:rn.space("rowGap"),columnGap:rn.space("columnGap")};Object.assign(cn,{flexDir:cn.flexDirection});var dn={gridGap:rn.space("gridGap"),gridColumnGap:rn.space("gridColumnGap"),gridRowGap:rn.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},fn={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:nn.outline},outlineOffset:!0,outlineColor:rn.colors("outlineColor")},pn={width:rn.sizesT("width"),inlineSize:rn.sizesT("inlineSize"),height:rn.sizes("height"),blockSize:rn.sizes("blockSize"),boxSize:rn.sizes(["width","height"]),minWidth:rn.sizes("minWidth"),minInlineSize:rn.sizes("minInlineSize"),minHeight:rn.sizes("minHeight"),minBlockSize:rn.sizes("minBlockSize"),maxWidth:rn.sizes("maxWidth"),maxInlineSize:rn.sizes("maxInlineSize"),maxHeight:rn.sizes("maxHeight"),maxBlockSize:rn.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;const a=`@media screen and (min-width: ${null!=(o=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r.minW)?o:e})`;return{[a]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;const a=`@media screen and (max-width: ${null!=(o=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r._minW)?o:e})`;return{[a]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:rn.propT("float",nn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(pn,{w:pn.width,h:pn.height,minW:pn.minWidth,maxW:pn.maxWidth,minH:pn.minHeight,maxH:pn.maxHeight,overscroll:pn.overscrollBehavior,overscrollX:pn.overscrollBehaviorX,overscrollY:pn.overscrollBehaviorY});var hn={listStyleType:!0,listStylePosition:!0,listStylePos:rn.prop("listStylePosition"),listStyleImage:!0,listStyleImg:rn.prop("listStyleImage")},mn=(e=>{const t=new WeakMap;return(n,r,o,a)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,new Map);const i=t.get(n);if(i.has(r))return i.get(r);const s=e(n,r,o,a);return i.set(r,s),s}})((function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e})),vn={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},gn={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},yn=(e,t,n)=>{const r={},o=mn(e,t,{});for(const e in o)e in n&&null!=n[e]||(r[e]=o[e]);return r},bn={srOnly:{transform:e=>!0===e?vn:"focusable"===e?gn:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>yn(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>yn(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>yn(t,e,n)}},xn={position:!0,pos:rn.prop("position"),zIndex:rn.prop("zIndex","zIndices"),inset:rn.spaceT("inset"),insetX:rn.spaceT(["left","right"]),insetInline:rn.spaceT("insetInline"),insetY:rn.spaceT(["top","bottom"]),insetBlock:rn.spaceT("insetBlock"),top:rn.spaceT("top"),insetBlockStart:rn.spaceT("insetBlockStart"),bottom:rn.spaceT("bottom"),insetBlockEnd:rn.spaceT("insetBlockEnd"),left:rn.spaceT("left"),insetInlineStart:rn.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:rn.spaceT("right"),insetInlineEnd:rn.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(xn,{insetStart:xn.insetInlineStart,insetEnd:xn.insetInlineEnd});var wn={ring:{transform:nn.ring},ringColor:rn.colors("--chakra-ring-color"),ringOffset:rn.prop("--chakra-ring-offset-width"),ringOffsetColor:rn.colors("--chakra-ring-offset-color"),ringInset:rn.prop("--chakra-ring-inset")},Sn={margin:rn.spaceT("margin"),marginTop:rn.spaceT("marginTop"),marginBlockStart:rn.spaceT("marginBlockStart"),marginRight:rn.spaceT("marginRight"),marginInlineEnd:rn.spaceT("marginInlineEnd"),marginBottom:rn.spaceT("marginBottom"),marginBlockEnd:rn.spaceT("marginBlockEnd"),marginLeft:rn.spaceT("marginLeft"),marginInlineStart:rn.spaceT("marginInlineStart"),marginX:rn.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:rn.spaceT("marginInline"),marginY:rn.spaceT(["marginTop","marginBottom"]),marginBlock:rn.spaceT("marginBlock"),padding:rn.space("padding"),paddingTop:rn.space("paddingTop"),paddingBlockStart:rn.space("paddingBlockStart"),paddingRight:rn.space("paddingRight"),paddingBottom:rn.space("paddingBottom"),paddingBlockEnd:rn.space("paddingBlockEnd"),paddingLeft:rn.space("paddingLeft"),paddingInlineStart:rn.space("paddingInlineStart"),paddingInlineEnd:rn.space("paddingInlineEnd"),paddingX:rn.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:rn.space("paddingInline"),paddingY:rn.space(["paddingTop","paddingBottom"]),paddingBlock:rn.space("paddingBlock")};Object.assign(Sn,{m:Sn.margin,mt:Sn.marginTop,mr:Sn.marginRight,me:Sn.marginInlineEnd,marginEnd:Sn.marginInlineEnd,mb:Sn.marginBottom,ml:Sn.marginLeft,ms:Sn.marginInlineStart,marginStart:Sn.marginInlineStart,mx:Sn.marginX,my:Sn.marginY,p:Sn.padding,pt:Sn.paddingTop,py:Sn.paddingY,px:Sn.paddingX,pb:Sn.paddingBottom,pl:Sn.paddingLeft,ps:Sn.paddingInlineStart,paddingStart:Sn.paddingInlineStart,pr:Sn.paddingRight,pe:Sn.paddingInlineEnd,paddingEnd:Sn.paddingInlineEnd});var kn={textDecorationColor:rn.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:rn.shadows("textShadow")},En={clipPath:!0,transform:rn.propT("transform",nn.transform),transformOrigin:!0,translateX:rn.spaceT("--chakra-translate-x"),translateY:rn.spaceT("--chakra-translate-y"),skewX:rn.degreeT("--chakra-skew-x"),skewY:rn.degreeT("--chakra-skew-y"),scaleX:rn.prop("--chakra-scale-x"),scaleY:rn.prop("--chakra-scale-y"),scale:rn.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:rn.degreeT("--chakra-rotate")},Cn={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:rn.prop("transitionDuration","transition.duration"),transitionProperty:rn.prop("transitionProperty","transition.property"),transitionTimingFunction:rn.prop("transitionTimingFunction","transition.easing")},_n={fontFamily:rn.prop("fontFamily","fonts"),fontSize:rn.prop("fontSize","fontSizes",nn.px),fontWeight:rn.prop("fontWeight","fontWeights"),lineHeight:rn.prop("lineHeight","lineHeights"),letterSpacing:rn.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)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"}},Pn={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:rn.spaceT("scrollMargin"),scrollMarginTop:rn.spaceT("scrollMarginTop"),scrollMarginBottom:rn.spaceT("scrollMarginBottom"),scrollMarginLeft:rn.spaceT("scrollMarginLeft"),scrollMarginRight:rn.spaceT("scrollMarginRight"),scrollMarginX:rn.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:rn.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:rn.spaceT("scrollPadding"),scrollPaddingTop:rn.spaceT("scrollPaddingTop"),scrollPaddingBottom:rn.spaceT("scrollPaddingBottom"),scrollPaddingLeft:rn.spaceT("scrollPaddingLeft"),scrollPaddingRight:rn.spaceT("scrollPaddingRight"),scrollPaddingX:rn.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:rn.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Tn(e){return X(e)&&e.reference?e.reference:String(e)}var On=(e,...t)=>t.map(Tn).join(` ${e} `).replace(/calc/g,""),An=(...e)=>`calc(${On("+",...e)})`,Rn=(...e)=>`calc(${On("-",...e)})`,zn=(...e)=>`calc(${On("*",...e)})`,jn=(...e)=>`calc(${On("/",...e)})`,Fn=e=>{const t=Tn(e);return null==t||Number.isNaN(parseFloat(t))?zn(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Mn=Object.assign((e=>({add:(...t)=>Mn(An(e,...t)),subtract:(...t)=>Mn(Rn(e,...t)),multiply:(...t)=>Mn(zn(e,...t)),divide:(...t)=>Mn(jn(e,...t)),negate:()=>Mn(Fn(e)),toString:()=>e.toString()})),{add:An,subtract:Rn,multiply:zn,divide:jn,negate:Fn});function In(e,t){return`var(${e}${t?`, ${t}`:""})`}function Nn(e,t=""){return function(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){return e.includes("\\.")||Number.isInteger(parseFloat(e.toString()))?e:e.replace(".","\\.")}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function Dn(e,t,n){const r=Nn(e,n);return{variable:r,reference:In(r,t)}}function Ln(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function Bn(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}var $n=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Vn=e=>Object.fromEntries(Object.entries(e).sort($n));function Un(e){const t=Vn(e);return Object.assign(Object.values(t),t)}function Wn(e){var t;return e?"number"==typeof(e=null!=(t=Bn(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,(e=>`${parseFloat(e)+-.02}`)):e}function Hn(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Bn(e)})`),t&&n.push("and",`(max-width: ${Bn(t)})`),n.join(" ")}function qn(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const n=Un(e),r=Object.entries(e).sort($n).map((([e,t],n,r)=>{var o;let[,a]=null!=(o=r[n+1])?o:[];return a=parseFloat(a)>0?Wn(a):void 0,{_minW:Wn(t),breakpoint:e,minW:t,maxW:a,maxWQuery:Hn(null,a),minWQuery:Hn(t),minMaxQuery:Hn(t,a)}})),o=function(e){const t=Object.keys(Vn(e));return new Set(t)}(e),a=Array.from(o.values());return{keys:o,normalized:n,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every((e=>o.has(e)))},asObject:Vn(e),asArray:Un(e),details:r,get:e=>r.find((t=>t.breakpoint===e)),media:[null,...n.map((e=>Hn(e))).slice(1)],toArrayValue(e){if(!X(e))throw new Error("toArrayValue: value must be an object");const t=a.map((t=>{var n;return null!=(n=e[t])?n:null}));for(;null===Ln(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce(((e,t,n)=>{const r=a[n];return null!=r&&null!=t&&(e[r]=t),e}),{})}}}var Qn=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,Gn=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,Xn=(e,t)=>`${e}:focus-visible ${t}`,Kn=(e,t)=>`${e}:focus-within ${t}`,Yn=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,Zn=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,Jn=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,er=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,tr=e=>rr((t=>e(t,"&")),"[role=group]","[data-group]",".group"),nr=e=>rr((t=>e(t,"~ &")),"[data-peer]",".peer"),rr=(e,...t)=>t.map(e).join(", "),or={_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",_firstLetter:"&::first-letter",_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:tr(Qn),_peerHover:nr(Qn),_groupFocus:tr(Gn),_peerFocus:nr(Gn),_groupFocusVisible:tr(Xn),_peerFocusVisible:nr(Xn),_groupActive:tr(Yn),_peerActive:nr(Yn),_groupDisabled:tr(Zn),_peerDisabled:nr(Zn),_groupInvalid:tr(Jn),_peerInvalid:nr(Jn),_groupChecked:tr(er),_peerChecked:nr(er),_groupFocusWithin:tr(Kn),_peerFocusWithin:nr(Kn),_peerPlaceholderShown:nr(((e,t)=>`${e}:placeholder-shown ${t}`)),_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]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},ar=Object.keys(or);function ir(e,t){return Dn(String(e).replace(/\./g,"-"),void 0,t)}function sr(e,t,n={}){const{stop:r,getKey:o}=n;return function e(n,a=[]){var i;if(function(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}(n)||Array.isArray(n)){const s={};for(const[l,u]of Object.entries(n)){const c=null!=(i=null==o?void 0:o(l))?i:l,d=[...a,c];if(null==r?void 0:r(n,d))return t(n,a);s[c]=e(u,d)}return s}return t(n,a)}(e)}var lr=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],ur=e=>ar.includes(e)||"default"===e;var cr=Bt({},on,an,sn,cn,pn,un,wn,fn,dn,bn,xn,ln,Sn,Pn,_n,kn,En,hn,Cn),dr=Object.assign({},Sn,pn,cn,dn,xn),fr=(Object.keys(dr),[...Object.keys(cr),...ar]),pr={...cr,...or},hr=e=>e in pr,mr=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),vr=(e,t)=>{var n,r;if(null==t)return t;const o=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.varRef},a=e=>{var t;return null!=(t=o(e))?t:e},[i,s]=function(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?n+=a:(t.push(n),n="")}return n=n.trim(),n&&t.push(n),t}(t);return null!=(r=null!=(n=o(i))?n:a(s))?r:a(t)};var gr=e=>t=>function(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,a=!1)=>{var i,s,l;const u=K(e,r),c=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,a={};for(const i in e){let s=K(e[i],t);if(null==s)continue;if(s=X(s)&&n(s)?r(s):s,!Array.isArray(s)){a[i]=s;continue}const l=s.slice(0,o.length).length;for(let e=0;e<l;e+=1){const t=null==o?void 0:o[e];t?(a[t]=a[t]||{},null!=s[e]&&(a[t][i]=s[e])):a[i]=s[e]}}return a})(u)(r);let d={};for(let e in c){let f=K(c[e],r);e in n&&(e=n[e]),mr(e,f)&&(f=vr(r,f));let p=t[e];if(!0===p&&(p={property:e}),X(f)){d[e]=null!=(i=d[e])?i:{},d[e]=Bt({},d[e],o(f,!0));continue}let h=null!=(l=null==(s=null==p?void 0:p.transform)?void 0:s.call(p,f,r,u))?l:f;h=(null==p?void 0:p.processResult)?o(h,!0):h;const m=K(null==p?void 0:p.property,r);if(!a&&(null==p?void 0:p.static)){const e=K(p.static,r);d=Bt({},d,e)}if(m&&Array.isArray(m))for(const e of m)d[e]=h;else m?"&"===m&&X(h)?d=Bt({},d,h):d[m]=h:X(h)?d=Bt({},d,h):d[e]=h}return d};return o}({theme:t,pseudos:or,configs:cr})(e);function yr(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function br(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}function xr(e){return function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(e,["styleConfig","size","variant","colorScheme"])}var wr=new Set([...fr,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Sr=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function kr(e){return Sr.has(e)||!wr.has(e)}var Er=(0,e.createContext)({});function Cr(){const t=(0,e.useContext)(Er);if(void 0===t)throw new Error("useColorMode must be used within a ColorModeProvider");return t}Er.displayName="ColorModeContext";var _r=(e=>{const t=new WeakMap;return(n,r,o,a)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,new Map);const i=t.get(n);if(i.has(r))return i.get(r);const s=e(n,r,o,a);return i.set(r,s),s}})((function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e}));function Pr(e,t){const n={};return Object.keys(e).forEach((r=>{const o=e[r];t(o,r,e)&&(n[r]=o)})),n}var Tr=e=>Pr(e,(e=>null!=e));function Or(e,...t){return"function"==typeof e?e(...t):e}function Ar(...e){return function(t){e.some((e=>(null==e||e(t),null==t?void 0:t.defaultPrevented)))}}var Rr,zr=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,jr=ht((function(e){return zr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Fr=function(e){return"theme"!==e},Mr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?jr:Fr},Ir=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Nr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return dt(t,n,r),_t((function(){return ft(t,n,r)})),null},Dr=function t(n,r){var o,a,i=n.__emotion_real===n,s=i&&n.__emotion_base||n;void 0!==r&&(o=r.label,a=r.target);var l=Ir(n,r,i),u=l||Mr(s),c=!u("as");return function(){var d=arguments,f=i&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&f.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,m=1;m<h;m++)f.push(d[m],p[m])}var v=Ot((function(t,n,r){var o=c&&t.as||s,i="",d=[],p=t;if(null==t.theme){for(var h in p={},t)p[h]=t[h];p.theme=e.useContext(At)}"string"==typeof t.className?i=ct(n.registered,d,t.className):null!=t.className&&(i=t.className+" ");var m=Et(f.concat(d),n.registered,p);i+=n.key+"-"+m.name,void 0!==a&&(i+=" "+a);var v=c&&void 0===l?Mr(o):u,g={};for(var y in t)c&&"as"===y||v(y)&&(g[y]=t[y]);return g.className=i,r&&(g.ref=r),e.createElement(e.Fragment,null,e.createElement(Nr,{cache:n,serialized:m,isStringTag:"string"==typeof o}),e.createElement(o,g))}));return v.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",v.defaultProps=n.defaultProps,v.__emotion_real=v,v.__emotion_base=s,v.__emotion_styles=f,v.__emotion_forwardProp=l,Object.defineProperty(v,"toString",{value:function(){return"."+a}}),v.withComponent=function(e,n){return t(e,lt({},r,n,{shouldForwardProp:Ir(v,n,!0)})).apply(void 0,f)},v}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Dr[e]=Dr(e)}));var Lr=null!=(Rr=Dr.default)?Rr:Dr;function Br(t,n){const{baseStyle:r,...o}=null!=n?n:{};o.shouldForwardProp||(o.shouldForwardProp=kr);const a=(({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:a,...i}=t,s=Pr(i,((e,t)=>hr(t))),l=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const e of t)if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in n&&delete n[t],n[t]=e[t]);return n}({},o,Or(e,t),Tr(s),a),u=gr(l)(t.theme);return r?[u,r]:u})({baseStyle:r}),i=Lr(t,o)(a);return e.forwardRef((function(t,n){const{colorMode:r,forced:o}=Cr();return e.createElement(i,{ref:n,"data-theme":o?r:void 0,...t})}))}var $r=function(){const e=new Map;return new Proxy(Br,{apply:(e,t,n)=>Br(...n),get:(t,n)=>(e.has(n)||e.set(n,Br(n)),e.get(n))})}(),Vr=Lt((function(e,t){const{direction:n,align:r,justify:o,wrap:a,basis:i,grow:s,shrink:l,...u}=e,c={display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:a,flexBasis:i,flexGrow:s,flexShrink:l};return(0,oe.jsx)($r.div,{ref:t,__css:c,...u})}));Vr.displayName="Flex",n(4146);var Ur,Wr,Hr=function(t,n){var r=arguments;if(null==n||!jt.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=It,a[1]=function(e,t){var n={};for(var r in t)jt.call(t,r)&&(n[r]=t[r]);return n[Ft]=e,n}(t,n);for(var i=2;i<o;i++)a[i]=r[i];return e.createElement.apply(null,a)};Ur=Hr||(Hr={}),Wr||(Wr=Ur.JSX||(Ur.JSX={}));var qr=Ot((function(t,n){var r=Et([t.styles],void 0,e.useContext(At)),o=e.useRef();return Pt((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),t.hydrate([i])),o.current=[t,a],function(){t.flush()}}),[n]),Pt((function(){var e=o.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&ft(n,r.next,!0),t.tags.length){var a=t.tags[t.tags.length-1].nextElementSibling;t.before=a,t.flush()}n.insert("",r,t,!1)}}),[n,r.name]),null}));function Qr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Et(t)}function Gr(){return{...Cr(),theme:Nt()}}var Xr=n(115);function Kr(t,n={}){var r;const{styleConfig:o,...a}=n,{theme:i,colorMode:s}=Gr(),l=t?_r(i,`components.${t}`):void 0,u=o||l,c=Bt({theme:i,colorMode:s},null!=(r=null==u?void 0:u.defaultProps)?r:{},Tr(function(e,t){const n={};return Object.keys(e).forEach((r=>{t.includes(r)||(n[r]=e[r])})),n}(a,["children"]))),d=(0,e.useRef)({});if(u){const e=function(e){return t=>{var n;const{variant:r,size:o,theme:a}=t,i=function(e){const t=e.__breakpoints;return function(e,n,r,o){var a,i;if(!t)return;const s={},l=function(e,t){return Array.isArray(e)?e:X(e)?t(e):null!=e?[e]:void 0}(r,t.toArrayValue);if(!l)return s;const u=l.length,c=1===u,d=!!e.parts;for(let r=0;r<u;r++){const u=t.details[r],f=t.details[br(l,r)],p=Hn(u.minW,null==f?void 0:f._minW),h=K(null==(a=e[n])?void 0:a[l[r]],o);h&&(d?null==(i=e.parts)||i.forEach((e=>{Bt(s,{[e]:c?h[e]:{[p]:h[e]}})})):d?s[p]=h:c?Bt(s,h):s[p]=h)}return s}}(a);return Bt({},K(null!=(n=e.baseStyle)?n:{},t),i(e,"sizes",o,t),i(e,"variants",r,t))}}(u),t=e(c);Xr(d.current,t)||(d.current=t)}return d.current}function Yr(e,t={}){return Kr(e,t)}function Zr(e,t={}){return Kr(e,t)}var Jr=function(){var e=Qr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),eo=Lt(((e,t)=>{const n=Yr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:a="0.45s",emptyColor:i="transparent",className:s,...l}=xr(e),u=G("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:i,borderLeftColor:i,animation:`${Jr} ${a} linear infinite`,...n};return(0,oe.jsx)($r.div,{ref:t,__css:c,className:u,...l,children:r&&(0,oe.jsx)($r.span,{srOnly:!0,children:r})})}));eo.displayName="Spinner";var to=$r("div");to.displayName="Box";var no=Lt((function(e,t){const{size:n,centerContent:r=!0,...o}=e,a=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,oe.jsx)(to,{ref:t,boxSize:n,__css:{...a,flexShrink:0,flexGrow:0},...o})}));no.displayName="Square";var ro=Lt((function(e,t){const{size:n,...r}=e;return(0,oe.jsx)(no,{size:n,ref:t,borderRadius:"9999px",...r})}));function oo(t={}){const{name:n,strict:r=!0,hookName:o="useContext",providerName:a="Provider",errorMessage:i,defaultValue:s}=t,l=(0,e.createContext)(s);return l.displayName=n,[l.Provider,function t(){var n;const s=(0,e.useContext)(l);if(!s&&r){const e=new Error(null!=i?i:`${o} returned \`undefined\`. Seems you forgot to wrap component within ${a}`);throw e.name="ContextError",null==(n=Error.captureStackTrace)||n.call(Error,e,t),e}return s},l]}function ao(t){return e.Children.toArray(t).filter((t=>(0,e.isValidElement)(t)))}function io(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}ro.displayName="Circle";var[so,lo]=oo({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),uo=Lt((function(t,n){const r=Zr("Input",t),{children:o,className:a,...i}=xr(t),s=G("chakra-input__group",a),l={},u=ao(o),c=r.field;u.forEach((e=>{var t,n;r&&(c&&"InputLeftElement"===e.type.id&&(l.paddingStart=null!=(t=c.height)?t:c.h),c&&"InputRightElement"===e.type.id&&(l.paddingEnd=null!=(n=c.height)?n:c.h),"InputRightAddon"===e.type.id&&(l.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(l.borderStartRadius=0))}));const d=u.map((n=>{var r,o;const a=io({size:(null==(r=n.props)?void 0:r.size)||t.size,variant:(null==(o=n.props)?void 0:o.variant)||t.variant});return"Input"!==n.type.id?(0,e.cloneElement)(n,a):(0,e.cloneElement)(n,Object.assign(a,l,n.props))}));return(0,oe.jsx)($r.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...i,children:(0,oe.jsx)(so,{value:r,children:d})})}));uo.displayName="InputGroup";var co=$r("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),fo=Lt((function(e,t){var n,r;const{placement:o="left",...a}=e,i=lo(),s=i.field,l="left"===o?"insetStart":"insetEnd",u={[l]:"0",width:null!=(n=null==s?void 0:s.height)?n:null==s?void 0:s.h,height:null!=(r=null==s?void 0:s.height)?r:null==s?void 0:s.h,fontSize:null==s?void 0:s.fontSize,...i.element};return(0,oe.jsx)(co,{ref:t,__css:u,...a})}));fo.id="InputElement",fo.displayName="InputElement";var po=Lt((function(e,t){const{className:n,...r}=e,o=G("chakra-input__left-element",n);return(0,oe.jsx)(fo,{ref:t,placement:"left",className:o,...r})}));po.id="InputLeftElement",po.displayName="InputLeftElement";var ho=Lt((function(e,t){const{className:n,...r}=e,o=G("chakra-input__right-element",n);return(0,oe.jsx)(fo,{ref:t,placement:"right",className:o,...r})}));function mo(...e){return t=>{e.forEach((e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)}))}}function vo(...t){return(0,e.useMemo)((()=>mo(...t)),t)}ho.id="InputRightElement",ho.displayName="InputRightElement";var[go,yo]=oo({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[bo,xo]=oo({strict:!1,name:"FormControlContext"}),wo=Lt((function(t,n){const r=Zr("Form",t),o=xr(t),{getRootProps:a,htmlProps:i,...s}=function(t){const{id:n,isRequired:r,isInvalid:o,isDisabled:a,isReadOnly:i,...s}=t,l=(0,e.useId)(),u=n||`field-${l}`,c=`${u}-label`,d=`${u}-feedback`,f=`${u}-helptext`,[p,h]=(0,e.useState)(!1),[m,v]=(0,e.useState)(!1),[g,y]=(0,e.useState)(!1),b=(0,e.useCallback)(((e={},t=null)=>({id:f,...e,ref:mo(t,(e=>{e&&v(!0)}))})),[f]),x=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-focus":Z(g),"data-disabled":Z(a),"data-invalid":Z(o),"data-readonly":Z(i),id:void 0!==e.id?e.id:c,htmlFor:void 0!==e.htmlFor?e.htmlFor:u})),[u,a,g,o,i,c]),w=(0,e.useCallback)(((e={},t=null)=>({id:d,...e,ref:mo(t,(e=>{e&&h(!0)})),"aria-live":"polite"})),[d]),S=(0,e.useCallback)(((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":Z(g),"data-disabled":Z(a),"data-invalid":Z(o),"data-readonly":Z(i)})),[s,a,g,o,i]),k=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})),[]);return{isRequired:!!r,isInvalid:!!o,isReadOnly:!!i,isDisabled:!!a,isFocused:!!g,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:p,setHasFeedbackText:h,hasHelpText:m,setHasHelpText:v,id:u,labelId:c,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:w,getRootProps:S,getLabelProps:x,getRequiredIndicatorProps:k}}(o),l=G("chakra-form-control",t.className);return(0,oe.jsx)(bo,{value:s,children:(0,oe.jsx)(go,{value:r,children:(0,oe.jsx)($r.div,{...a({},n),className:l,__css:r.container})})})}));wo.displayName="FormControl";var So=Lt((function(e,t){const n=xo(),r=yo(),o=G("chakra-form__helper-text",e.className);return(0,oe.jsx)($r.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:o})}));So.displayName="FormHelperText";var ko=Lt((function(e,t){const{htmlSize:n,...r}=e,o=Zr("Input",r),a=function(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...a}=function(e){var t,n,r;const o=xo(),{id:a,disabled:i,readOnly:s,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:h,...m}=e,v=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==o?void 0:o.hasFeedbackText)&&(null==o?void 0:o.isInvalid)&&v.push(o.feedbackId),(null==o?void 0:o.hasHelpText)&&v.push(o.helpTextId),{...m,"aria-describedby":v.join(" ")||void 0,id:null!=a?a:null==o?void 0:o.id,isDisabled:null!=(t=null!=i?i:f)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=s?s:d)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(r=null!=l?l:u)?r:null==o?void 0:o.isRequired,isInvalid:null!=c?c:null==o?void 0:o.isInvalid,onFocus:ee(null==o?void 0:o.onFocus,p),onBlur:ee(null==o?void 0:o.onBlur,h)}}(e);return{...a,disabled:t,readOnly:r,required:o,"aria-invalid":J(n),"aria-required":J(o),"aria-readonly":J(r)}}(xr(r)),i=G("chakra-input",e.className);return(0,oe.jsx)($r.input,{size:n,...a,__css:o.field,ref:t,className:i})}));ko.displayName="Input",ko.id="Input";var Eo=e=>(0,oe.jsx)($r.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Eo.displayName="StackItem";var Co=Lt(((t,n)=>{const{isInline:r,direction:o,align:a,justify:i,spacing:s="0.5rem",wrap:l,children:u,divider:c,className:d,shouldWrapChildren:f,...p}=t,h=r?"row":null!=o?o:"column",m=(0,e.useMemo)((()=>function(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{"&":ne(n,(e=>r[e]))}}({spacing:s,direction:h})),[s,h]),v=!!c,g=!f&&!v,y=(0,e.useMemo)((()=>{const t=ao(u);return g?t:t.map(((n,r)=>{const o=void 0!==n.key?n.key:r,a=r+1===t.length,i=f?(0,oe.jsx)(Eo,{children:n},o):n;if(!v)return i;const s=(0,e.cloneElement)(c,{__css:m}),l=a?null:s;return(0,oe.jsxs)(e.Fragment,{children:[i,l]},o)}))}),[c,m,v,g,f,u]),b=G("chakra-stack",d);return(0,oe.jsx)($r.div,{ref:n,display:"flex",alignItems:a,justifyContent:i,flexDirection:h,flexWrap:l,gap:v?void 0:s,className:b,...p,children:y})}));Co.displayName="Stack";var _o=Lt(((e,t)=>(0,oe.jsx)(Co,{align:"center",...e,direction:"column",ref:t})));_o.displayName="VStack";var Po=Lt(((e,t)=>(0,oe.jsx)(Co,{align:"center",...e,direction:"row",ref:t})));Po.displayName="HStack";var To=Lt((function(e,t){const n=Yr("Text",e),{className:r,align:o,decoration:a,casing:i,...s}=xr(e),l=io({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,oe.jsx)($r.p,{ref:t,className:G("chakra-text",e.className),...l,...s,__css:n})}));To.displayName="Text";var Oo=Lt((function(e,t){const n=Yr("Badge",e),{className:r,...o}=xr(e);return(0,oe.jsx)($r.span,{ref:t,className:G("chakra-badge",e.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})}));function Ao(t={}){const{strict:n=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=t,a=(0,e.createContext)(void 0);return a.displayName=o,[a.Provider,function t(){var o;const i=(0,e.useContext)(a);if(!i&&n){const e=new Error(r);throw e.name="ContextError",null==(o=Error.captureStackTrace)||o.call(Error,e,t),e}return i},a]}function Ro(t){const{cssVarsRoot:n,theme:r,children:o}=t,a=(0,e.useMemo)((()=>function(e){var t;const n=function(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}(e),r=function(e){return function(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}(e,lr)}(n),o=function(e){return e.semanticTokens}(n),a=function({tokens:e,semanticTokens:t}){const n={};return sr(e,((e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!1,value:e})})),sr(t,((e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!0,value:e})}),{stop:e=>Object.keys(e).every(ur)}),n}({tokens:r,semanticTokens:o}),i=null==(t=n.config)?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=function(e,t){let n={};const r={};for(const[o,a]of Object.entries(e)){const{isSemantic:i,value:s}=a,{variable:l,reference:u}=ir(o,null==t?void 0:t.cssVarPrefix);if(!i){if(o.startsWith("space")){const e=o.split("."),[t,...n]=e,a=`${t}.-${n.join(".")}`,i=Mn.negate(s),c=Mn.negate(u);r[a]={value:i,var:l,varRef:c}}n[l]=s,r[o]={value:s,var:l,varRef:u};continue}const c=n=>{const r=[String(o).split(".")[0],n].join(".");if(!e[r])return n;const{reference:a}=ir(r,null==t?void 0:t.cssVarPrefix);return a},d=X(s)?s:{default:s};n=Bt(n,Object.entries(d).reduce(((e,[t,n])=>{var r,o;if(!n)return e;const a=c(`${n}`);return"default"===t?(e[l]=a,e):(e[null!=(o=null==(r=or)?void 0:r[t])?o:t]={[l]:a},e)}),{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}(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:qn(n.breakpoints)}),n}(r)),[r]);return(0,oe.jsxs)(zt,{theme:a,children:[(0,oe.jsx)(zo,{root:n}),o]})}function zo({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,oe.jsx)(qr,{styles:e=>({[t]:e.__cssVars})})}Oo.displayName="Badge";var[jo,Fo]=Ao({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Mo(){const{colorMode:e}=Cr();return(0,oe.jsx)(qr,{styles:t=>{const n=Or(_r(t,"styles.global"),{theme:t,colorMode:e});if(n)return gr(n)(t)}})}var[Io,No]=Ao({name:"Card"+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Card />" '}),Do=Lt((function(e,t){const{className:n,children:r,direction:o="column",justify:a,align:i,...s}=xr(e),l=Zr("Card",e);return(0,oe.jsx)($r.div,{ref:t,className:G("chakra-card",n),__css:{display:"flex",flexDirection:o,justifyContent:a,alignItems:i,position:"relative",minWidth:0,wordWrap:"break-word",...l.container},...s,children:(0,oe.jsx)(Io,{value:l,children:r})})})),Lo=Lt((function(e,t){const{className:n,...r}=e,o=No();return(0,oe.jsx)($r.div,{ref:t,className:G("chakra-card__header",n),__css:o.header,...r})})),Bo=Lt((function(e,t){const n=Yr("Heading",e),{className:r,...o}=xr(e);return(0,oe.jsx)($r.h2,{ref:t,className:G("chakra-heading",e.className),...o,__css:n})}));Bo.displayName="Heading";var $o=Lt((function(e,t){const{className:n,justify:r,...o}=e,a=No();return(0,oe.jsx)($r.div,{ref:t,className:G("chakra-card__footer",n),__css:{display:"flex",justifyContent:r,...a.footer},...o})})),[Vo,Uo]=oo({strict:!1,name:"ButtonGroupContext"});function Wo(t){const{children:n,className:r,...o}=t,a=(0,e.isValidElement)(n)?(0,e.cloneElement)(n,{"aria-hidden":!0,focusable:!1}):n,i=G("chakra-button__icon",r);return(0,oe.jsx)($r.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:i,children:a})}function Ho(t){const{label:n,placement:r,spacing:o="0.5rem",children:a=(0,oe.jsx)(eo,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...l}=t,u=G("chakra-button__spinner",i),c="start"===r?"marginEnd":"marginStart",d=(0,e.useMemo)((()=>({display:"flex",alignItems:"center",position:n?"relative":"absolute",[c]:n?o:0,fontSize:"1em",lineHeight:"normal",...s})),[s,n,c,o]);return(0,oe.jsx)($r.div,{className:u,...l,__css:d,children:a})}Wo.displayName="ButtonIcon",Ho.displayName="ButtonSpinner";var qo=Lt(((t,n)=>{const r=Uo(),o=Yr("Button",{...r,...t}),{isDisabled:a=(null==r?void 0:r.isDisabled),isLoading:i,isActive:s,children:l,leftIcon:u,rightIcon:c,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:h,spinnerPlacement:m="start",className:v,as:g,...y}=xr(t),b=(0,e.useMemo)((()=>{const e={...null==o?void 0:o._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...o,...!!r&&{_focus:e}}}),[o,r]),{ref:x,type:w}=function(t){const[n,r]=(0,e.useState)(!t),o=(0,e.useCallback)((e=>{e&&r("BUTTON"===e.tagName)}),[]);return{ref:o,type:n?"button":void 0}}(g),S={rightIcon:c,leftIcon:u,iconSpacing:f,children:l};return(0,oe.jsxs)($r.button,{ref:vo(n,x),as:g,type:null!=p?p:w,"data-active":Z(s),"data-loading":Z(i),__css:b,className:G("chakra-button",v),...y,disabled:a||i,children:[i&&"start"===m&&(0,oe.jsx)(Ho,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),i?d||(0,oe.jsx)($r.span,{opacity:0,children:(0,oe.jsx)(Qo,{...S})}):(0,oe.jsx)(Qo,{...S}),i&&"end"===m&&(0,oe.jsx)(Ho,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})}));function Qo(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return(0,oe.jsxs)(oe.Fragment,{children:[t&&(0,oe.jsx)(Wo,{marginEnd:o,children:t}),r,n&&(0,oe.jsx)(Wo,{marginStart:o,children:n})]})}qo.displayName="Button";var Go={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Xo=e.createContext&&e.createContext(Go),Ko=["attr","size","title"];function Yo(){return Yo=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},Yo.apply(this,arguments)}function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach((function(t){ea(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ea(e,t,n){return t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ta(t){return t&&t.map(((t,n)=>e.createElement(t.tag,Jo({key:n},t.attr),ta(t.child))))}function na(t){return n=>e.createElement(ra,Yo({attr:Jo({},t.attr)},n),ta(t.child))}function ra(t){var n=n=>{var r,{attr:o,size:a,title:i}=t,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Ko),l=a||n.size||"1em";return n.className&&(r=n.className),t.className&&(r=(r?r+" ":"")+t.className),e.createElement("svg",Yo({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,s,{className:r,style:Jo(Jo({color:t.color||n.color},n.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&e.createElement("title",null,i),t.children)};return void 0!==Xo?e.createElement(Xo.Consumer,null,(e=>n(e))):n(Go)}function oa(e){return na({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z"},child:[]}]})(e)}function aa(e){return na({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M338.29 338.29 448 448"},child:[]}]})(e)}var ia=n(181),sa=n.n(ia);function la(e,t){if(e){if("string"==typeof e)return ua(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ua(e,t):void 0}}function ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ca=t().memo((function(n){var r=n.categories,o=n.selectedCategory,a=n.onCategorySelect,i=n.onSearchChange,s=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||la(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(""),2),l=s[0],u=s[1],c=(0,e.useCallback)(sa()((function(e){i(e)}),300),[i]),d=r.find((function(e){return"Favorites"===e.name})),f=d&&d.count>0?[d].concat(function(e){return function(e){if(Array.isArray(e))return ua(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||la(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(r.filter((function(e){return"Favorites"!==e.name})))):r;return t().createElement(to,null,t().createElement(uo,{mb:"26px"},t().createElement(po,{pointerEvents:"none",padding:"0px 0px 0px 8px"},t().createElement(aa,{style:{width:"18px",height:"18px"},color:"#737373"})),t().createElement(ko,{placeholder:Q("Search Templates","user-registration"),value:l,onChange:function(e){var t=e.target.value;u(t),c(t)},_focus:{borderColor:"#475bb2",outline:"none",boxShadow:"none"},fontSize:"16px",fontWeight:"400",borderRadius:"8px",borderColor:"#B0B0B0 !important"})),t().createElement(_o,{align:"stretch",gap:"2px"},f.map((function(e){return t().createElement(Po,{key:e.name,p:"12px",_hover:{bg:"#EDEFF7",color:"#475bb2","& > .badge":{bg:(e.name,"#FFFFFF")}},borderRadius:"md",cursor:"pointer",bg:o===e.name?"#EDEFF7":"transparent",onClick:function(){return a(e.name)},justifyContent:"space-between"},t().createElement(To,{color:o===e.name?"#475bb2":"",fontWeight:"500",margin:"0px",fontSize:"16px",lineHeight:"20px",alignItems:"center"},e.name),t().createElement(Oo,{className:"badge",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",padding:"6px",borderRadius:"8px",gap:"10px",color:o===e.name?"#475bb2":"",bg:o===e.name?"white":"#F2F2F2"},e.count))})),t().createElement(Do,{align:"center",background:"linear-gradient(70deg, #475bb2, #94A7E7B2)",padding:"40px 24px",marginTop:"26px"},t().createElement(Lo,{padding:"0px"},t().createElement(Bo,{fontSize:"18px",color:"#ffffff",lineHeight:"28px",padding:"0px 20px",textAlign:"center"},Q("Can't Find The Form Template You Need?","user-registration"))),t().createElement($o,{padding:"0",width:"100%"},t().createElement("a",{href:"https://wpuserregistration.com/request-template",target:"_blank",rel:"noopener noreferrer",style:{width:"inherit"}},t().createElement(qo,{backgroundColor:"#FFFFFF",color:"#475bb2",padding:"12px 10px",borderRadius:"4px",width:"inherit",fontWeight:"500",_hover:{backgroundColor:"#475BB2",color:"white !important"}},Q("Request Template","user-registration")))))))}));const da=ca;var fa={path:(0,oe.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,oe.jsx)("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"}),(0,oe.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,oe.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},pa=Lt(((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...u}=e,c={ref:t,focusable:a,className:G("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...Yr("Icon",e)}},d=null!=r?r:fa.viewBox;if(n&&"string"!=typeof n)return(0,oe.jsx)($r.svg,{as:n,...c,...u});const f=null!=i?i:fa.path;return(0,oe.jsx)($r.svg,{verticalAlign:"middle",viewBox:d,...c,...u,children:f})}));function ha(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}pa.displayName="Icon";var ma=ha()?e.useLayoutEffect:e.useEffect;function va(t,n=[]){const r=(0,e.useRef)(t);return ma((()=>{r.current=t})),(0,e.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),n)}var ga=(e,t)=>e.find((e=>e.id===t));function ya(e,t){const n=ba(e,t);return{position:n,index:n?e[n].findIndex((e=>e.id===t)):-1}}function ba(e,t){for(const[n,r]of Object.entries(e))if(ga(r,t))return n}function xa(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}function wa(t,n=[]){const r=(0,e.useRef)(t);return(0,e.useEffect)((()=>{r.current=t})),(0,e.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),n)}function Sa(t,n){const r=(0,e.useRef)(!1),o=(0,e.useRef)(!1);(0,e.useEffect)((()=>{if(r.current&&o.current)return t();o.current=!0}),n),(0,e.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[])}var ka=(0,e.createContext)(null);function Ea(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}function Ca(){var t=(0,e.useContext)(ka);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,o=t.register,a=Ta();return(0,e.useEffect)((function(){return o(a)}),[]),!n&&r?[!1,function(){return null==r?void 0:r(a)}]:[!0]}var _a=0,Pa=function(){return _a++},Ta=function(){return Ea(Pa)},Oa=function(e,t){return Oa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Oa(e,t)};function Aa(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Oa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ra=function(){return Ra=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ra.apply(this,arguments)};function za(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 ja(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Fa(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Ma=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Ia={measureLayout:Ma(["layout","layoutId","drag"]),animation:Ma(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ma(["exit"]),drag:Ma(["drag","dragControls"]),focus:Ma(["whileFocus"]),hover:Ma(["whileHover","onHoverStart","onHoverEnd"]),tap:Ma(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ma(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ma(["whileInView","onViewportEnter","onViewportLeave"])},Na=(0,e.createContext)({strict:!1}),Da=Object.keys(Ia),La=Da.length,Ba=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),$a=(0,e.createContext)({}),Va="undefined"!=typeof window,Ua=Va?e.useLayoutEffect:e.useEffect;function Wa(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ha(e){return Array.isArray(e)}function qa(e){return"string"==typeof e||Ha(e)}function Qa(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function Ga(e,t,n){var r=e.getProps();return Qa(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function Xa(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||qa(e.initial)||qa(e.animate)||qa(e.whileHover)||qa(e.whileDrag)||qa(e.whileTap)||qa(e.whileFocus)||qa(e.exit)}function Ka(e){return Boolean(Xa(e)||e.variants)}function Ya(e){return Array.isArray(e)?e.join(" "):e}const Za=1/60*1e3,Ja="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ei="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Ja())),Za);let ti=!0,ni=!1,ri=!1;const oi={delta:0,timestamp:0},ai=["read","update","preRender","render","postRender"],ii=ai.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,u=l?t:n;return a&&i.add(e),-1===u.indexOf(e)&&(u.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),i.has(r)&&(s.schedule(r),e())}o=!1,a&&(a=!1,s.process(l))}}};return s}((()=>ni=!0)),e)),{}),si=ai.reduce(((e,t)=>{const n=ii[t];return e[t]=(e,t=!1,r=!1)=>(ni||fi(),n.schedule(e,t,r)),e}),{}),li=ai.reduce(((e,t)=>(e[t]=ii[t].cancel,e)),{}),ui=ai.reduce(((e,t)=>(e[t]=()=>ii[t].process(oi),e)),{}),ci=e=>ii[e].process(oi),di=e=>{ni=!1,oi.delta=ti?Za:Math.max(Math.min(e-oi.timestamp,40),1),oi.timestamp=e,ri=!0,ai.forEach(ci),ri=!1,ni&&(ti=!1,ei(di))},fi=()=>{ni=!0,ti=!0,ri||ei(di)},pi=()=>oi,hi=si,mi=(e,t,n)=>-n*e+n*t+e;function vi(e,t){return t?e*(1e3/t):0}function gi(e,t){-1===e.indexOf(t)&&e.push(t)}function yi(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var bi=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return gi(this.subscriptions,e),function(){return yi(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),xi=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new bi,this.velocityUpdateSubscribers=new bi,this.renderSubscribers=new bi,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=pi(),o=r.delta,a=r.timestamp;n.lastUpdated!==a&&(n.timeDelta=o,n.lastUpdated=a,hi.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return hi.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?vi(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function wi(e){return new xi(e)}var Si=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)};const ki=(e,t,n)=>Math.min(Math.max(n,e),t);const Ei=12;function Ci(e,t){return e*Math.sqrt(1-t*t)}const _i=["duration","bounce"],Pi=["stiffness","damping","mass"];function Ti(e,t){return t.some((t=>void 0!==e[t]))}function Oi(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=za(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ti(e,Pi)&&Ti(e,_i)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a,i=1-t;i=ki(.05,1,i),e=ki(.01,10,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/Ci(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=Ci(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Ei;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),p=Ai,h=Ai;function m(){const e=c?-c/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*u)),i=Math.sqrt(s/u)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=Ci(i,a);p=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},h=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);p=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=p(e);if(f)i.done=e>=d;else{const a=1e3*h(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}Oi.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Ai=e=>0,Ri=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},zi=(e,t)=>n=>Math.max(Math.min(n,t),e),ji=e=>e%1?Number(e.toFixed(5)):e,Fi=/(-)?([\d]*\.?[\d])+/g,Mi=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Ii=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Ni(e){return"string"==typeof e}const Di={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Li=Object.assign(Object.assign({},Di),{transform:zi(0,1)}),Bi=Object.assign(Object.assign({},Di),{default:1}),$i=(e,t)=>n=>Boolean(Ni(n)&&Ii.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Vi=(e,t,n)=>r=>{if(!Ni(r))return r;const[o,a,i,s]=r.match(Fi);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Ui=zi(0,255),Wi=Object.assign(Object.assign({},Di),{transform:e=>Math.round(Ui(e))}),Hi={test:$i("rgb","red"),parse:Vi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Wi.transform(e)+", "+Wi.transform(t)+", "+Wi.transform(n)+", "+ji(Li.transform(r))+")"},qi={test:$i("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),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}},transform:Hi.transform},Qi=e=>({test:t=>Ni(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Gi=Qi("deg"),Xi=Qi("%"),Ki=Qi("px"),Yi=Qi("vh"),Zi=Qi("vw"),Ji=Object.assign(Object.assign({},Xi),{parse:e=>Xi.parse(e)/100,transform:e=>Xi.transform(100*e)}),es={test:$i("hsl","hue"),parse:Vi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xi.transform(ji(t))+", "+Xi.transform(ji(n))+", "+ji(Li.transform(r))+")"};function ts(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ns({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=ts(s,r,e+1/3),a=ts(s,r,e),i=ts(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const rs=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},os=[qi,Hi,es],as=e=>os.find((t=>t.test(e))),is=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,ss=(e,t)=>{let n=as(e),r=as(t);is(e),is(t);let o=n.parse(e),a=r.parse(t);n===es&&(o=ns(o),n=Hi),r===es&&(a=ns(a),r=Hi);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=rs(o[t],a[t],e));return i.alpha=mi(o.alpha,a.alpha,e),n.transform(i)}},ls={test:e=>Hi.test(e)||qi.test(e)||es.test(e),parse:e=>Hi.test(e)?Hi.parse(e):es.test(e)?es.parse(e):qi.parse(e),transform:e=>Ni(e)?e:e.hasOwnProperty("red")?Hi.transform(e):es.transform(e)},us="${c}",cs="${n}";function ds(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Mi);r&&(n=r.length,e=e.replace(Mi,us),t.push(...r.map(ls.parse)));const o=e.match(Fi);return o&&(e=e.replace(Fi,cs),t.push(...o.map(Di.parse))),{values:t,numColors:n,tokenised:e}}function fs(e){return ds(e).values}function ps(e){const{values:t,numColors:n,tokenised:r}=ds(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?us:cs,r<n?ls.transform(e[r]):ji(e[r]));return t}}const hs=e=>"number"==typeof e?0:e,ms={test:function(e){var t,n,r,o;return isNaN(e)&&Ni(e)&&(null!==(n=null===(t=e.match(Fi))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Mi))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:fs,createTransformer:ps,getAnimatableNone:function(e){const t=fs(e);return ps(e)(t.map(hs))}},vs=e=>"number"==typeof e,gs=(e,t)=>n=>t(e(n)),ys=(...e)=>e.reduce(gs);function bs(e,t){return vs(e)?n=>mi(e,t,n):ls.test(e)?ss(e,t):ks(e,t)}const xs=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>bs(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},ws=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=bs(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Ss(e){const t=ms.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const ks=(e,t)=>{const n=ms.createTransformer(t),r=Ss(e),o=Ss(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?ys(xs(r.parsed,o.parsed),n):n=>`${n>0?t:e}`},Es=(e,t)=>n=>mi(e,t,n);function Cs(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||("number"==typeof(a=e[0])?Es:"string"==typeof a?ls.test(a)?ss:ks:Array.isArray(a)?xs:"object"==typeof a?ws:void 0);var a;const i=e.length-1;for(let n=0;n<i;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=ys(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(Ri(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=Ri(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(ki(e[0],e[a-1],t)):s}const _s=e=>t=>1-e(1-t),Ps=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ts=e=>t=>t*t*((e+1)*t-e),Os=4/11,As=8/11,Rs=e=>e,zs=e=>Math.pow(e,2);const js=_s(zs),Fs=Ps(zs),Ms=e=>1-Math.sin(Math.acos(e)),Is=_s(Ms),Ns=Ps(Is),Ds=Ts(1.525),Ls=_s(Ds),Bs=Ps(Ds),$s=(()=>{const e=Ts(1.525);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),Vs=4356/361,Us=35442/1805,Ws=16061/1805,Hs=e=>{if(1===e||0===e)return e;const t=e*e;return e<Os?7.5625*t:e<As?9.075*t-9.9*e+3.4:e<.9?Vs*t-Us*e+Ws:10.8*e*e-20.52*e+10.72},qs=_s(Hs);function Qs(e,t){return e.map((()=>t||Fs)).splice(0,e.length-1)}function Gs({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(i),o);function l(){return Cs(s,i,{ease:Array.isArray(n)?n:Qs(i,n)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),u=l()}}}const Xs={keyframes:Gs,spring:Oi,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===a?l:a(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?u:u+t,i},flipTarget:()=>{}}}},Ks=1/60*1e3,Ys="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Zs="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Ys())),Ks);let Js=!0,el=!1,tl=!1;const nl={delta:0,timestamp:0},rl=["read","update","preRender","render","postRender"],ol=rl.reduce(((e,t)=>(e[t]=function(){let e=[],t=[],n=0,r=!1,o=!1;const a=new WeakSet,i={schedule:(o,i=!1,s=!1)=>{const l=s&&r,u=l?e:t;return i&&a.add(o),-1===u.indexOf(o)&&(u.push(o),l&&r&&(n=e.length)),o},cancel:e=>{const n=t.indexOf(e);-1!==n&&t.splice(n,1),a.delete(e)},process:s=>{if(r)o=!0;else{if(r=!0,[e,t]=[t,e],t.length=0,n=e.length,n)for(let t=0;t<n;t++){const n=e[t];n(s),a.has(n)&&(i.schedule(n),el=!0)}r=!1,o&&(o=!1,i.process(s))}}};return i}(),e)),{}),al=rl.reduce(((e,t)=>{const n=ol[t];return e[t]=(e,t=!1,r=!1)=>(el||ul(),n.schedule(e,t,r)),e}),{}),il=rl.reduce(((e,t)=>(e[t]=ol[t].cancel,e)),{}),sl=(rl.reduce(((e,t)=>(e[t]=()=>ol[t].process(nl),e)),{}),e=>ol[e].process(nl)),ll=e=>{el=!1,nl.delta=Js?Ks:Math.max(Math.min(e-nl.timestamp,40),1),nl.timestamp=e,tl=!0,rl.forEach(sl),tl=!1,el&&(Js=!1,Zs(ll))},ul=()=>{el=!0,Js=!0,tl||Zs(ll)},cl=al;function dl(e,t,n=0){return e-t-n}const fl=e=>{const t=({delta:t})=>e(t);return{start:()=>cl.update(t,!0),stop:()=>il.update(t)}};function pl(e){var t,n,{from:r,autoplay:o=!0,driver:a=fl,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:h}=e,m=za(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,y,{to:b}=m,x=0,w=m.duration,S=!1,k=!0;const E=function(e){if(Array.isArray(e.to))return Gs;if(Xs[e.type])return Xs[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Gs:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Oi:Gs}(m);(null===(n=(t=E).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=Cs([0,100],[r,b],{clamp:!1}),r=0,b=100);const C=E(Object.assign(Object.assign({},m),{from:r,to:b}));return o&&(null==c||c(),v=a((function(e){if(k||(e=-e),i+=e,!S){const e=C.next(Math.max(0,i));g=e.value,y&&(g=y(g)),S=k?e.done:i<=0}null==h||h(g),S&&(0===x&&(null!=w||(w=i)),x<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,w,u,k)&&(x++,"reverse"===l?(k=x%2==0,i=function(e,t,n=0,r=!0){return r?dl(t+-e,t,n):t-(e-t)+n}(i,w,u,k)):(i=dl(i,w,u),"mirror"===l&&C.flipTarget()),S=!1,p&&p()):(v.stop(),f&&f()))})),v.start()),{stop:()=>{null==d||d(),v.stop()}}}var hl=function(e){return 1e3*e};const ml=(e,t)=>1-3*t+3*e,vl=(e,t)=>3*t-6*e,gl=e=>3*e,yl=(e,t,n)=>((ml(t,n)*e+vl(t,n))*e+gl(t))*e,bl=(e,t,n)=>3*ml(t,n)*e*e+2*vl(t,n)*e+gl(t),xl=.1;function wl(e,t,n,r){if(e===t&&n===r)return Rs;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=yl(t*xl,e,n);return a=>0===a||1===a?a:yl(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=xl;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*xl,s=bl(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=bl(t,n,r);if(0===o)return t;t-=(yl(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=yl(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+xl,e,n)}(a),t,r)}var Sl={linear:Rs,easeIn:zs,easeInOut:Fs,easeOut:js,circIn:Ms,circInOut:Ns,circOut:Is,backIn:Ds,backInOut:Bs,backOut:Ls,anticipate:$s,bounceIn:qs,bounceInOut:e=>e<.5?.5*(1-Hs(1-2*e)):.5*Hs(2*e-1)+.5,bounceOut:Hs},kl=function(e){if(Array.isArray(e)){e.length;var t=ja(e,4);return wl(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),Sl[e]):e},El=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ms.test(t)||t.startsWith("url(")))},Cl=function(e){return Array.isArray(e)},_l=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Pl=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Tl=function(){return{type:"keyframes",ease:"linear",duration:.3}},Ol=function(e){return{type:"keyframes",duration:.8,values:e}},Al={x:_l,y:_l,z:_l,rotate:_l,rotateX:_l,rotateY:_l,rotateZ:_l,scaleX:Pl,scaleY:Pl,scale:Pl,opacity:Tl,backgroundColor:Tl,color:Tl,default:Pl};const Rl=new Set(["brightness","contrast","saturate","opacity"]);function zl(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Fi)||[];if(!r)return e;const o=n.replace(r,"");let a=Rl.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const jl=/([a-z-]*)\(.*?\)/g,Fl=Object.assign(Object.assign({},ms),{getAnimatableNone:e=>{const t=e.match(jl);return t?t.map(zl).join(" "):e}});var Ml=Ra(Ra({},Di),{transform:Math.round}),Il={borderWidth:Ki,borderTopWidth:Ki,borderRightWidth:Ki,borderBottomWidth:Ki,borderLeftWidth:Ki,borderRadius:Ki,radius:Ki,borderTopLeftRadius:Ki,borderTopRightRadius:Ki,borderBottomRightRadius:Ki,borderBottomLeftRadius:Ki,width:Ki,maxWidth:Ki,height:Ki,maxHeight:Ki,size:Ki,top:Ki,right:Ki,bottom:Ki,left:Ki,padding:Ki,paddingTop:Ki,paddingRight:Ki,paddingBottom:Ki,paddingLeft:Ki,margin:Ki,marginTop:Ki,marginRight:Ki,marginBottom:Ki,marginLeft:Ki,rotate:Gi,rotateX:Gi,rotateY:Gi,rotateZ:Gi,scale:Bi,scaleX:Bi,scaleY:Bi,scaleZ:Bi,skew:Gi,skewX:Gi,skewY:Gi,distance:Ki,translateX:Ki,translateY:Ki,translateZ:Ki,x:Ki,y:Ki,z:Ki,perspective:Ki,transformPerspective:Ki,opacity:Li,originX:Ji,originY:Ji,originZ:Ki,zIndex:Ml,fillOpacity:Li,strokeOpacity:Li,numOctaves:Ml},Nl=Ra(Ra({},Il),{color:ls,backgroundColor:ls,outlineColor:ls,fill:ls,stroke:ls,borderColor:ls,borderTopColor:ls,borderRightColor:ls,borderBottomColor:ls,borderLeftColor:ls,filter:Fl,WebkitFilter:Fl}),Dl=function(e){return Nl[e]};function Ll(e,t){var n,r=Dl(e);return r!==Fl&&(r=ms),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Bl=function(e){return Cl(e)?e[e.length-1]||0:e};function $l(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Fa([],ja(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=za(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Ra(Ra({},e),(o=n,a=t.to,i=Cl(a)?Ol:Al[o]||Al.default,Ra({to:a},i(a))))),Ra(Ra({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=za(e,["ease","times","yoyo","flip","loop"]),s=Ra({},i);return n&&(s.offset=n),i.duration&&(s.duration=hl(i.duration)),i.repeatDelay&&(s.repeatDelay=hl(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(kl):kl(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}function Vl(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Ul(e){return"number"==typeof e?0:Ll("",e)}function Wl(e,t){return e[t]||e.default||e}function Hl(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var a,i,s=function(e,t,n,r,o){var a,i=Wl(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=El(e,n);"none"===s&&l&&"string"==typeof n?s=Ll(e,n):Vl(s)&&"string"==typeof n?s=Ul(n):!Array.isArray(n)&&Vl(n)&&"string"==typeof s&&(n=Ul(s));var u=El(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),u&&l&&!1!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,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:p}){let h;function m(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function g(e){null==h||h.stop(),h=pl(Object.assign(Object.assign({},e),{driver:c,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function y(e){g(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r=o*t+e;void 0!==u&&(r=u(r));const i=v(r),s=i===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=vi(e-c,nl.delta),(1===s&&e>i||-1===s&&e<i)&&y({from:e,to:i,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:u,onUpdate:m(r)?f:void 0})}return{stop:()=>null==h?void 0:h.stop()}}(Ra(Ra({},r),i)):pl(Ra(Ra({},$l(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,a=Bl(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(Wl(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return i=s()};return l?a=setTimeout(u,hl(l)):u(),function(){clearTimeout(a),null==i||i.stop()}}))}var ql=["TopLeft","TopRight","BottomLeft","BottomRight"],Ql=ql.length,Gl=function(e){return"string"==typeof e?parseFloat(e):e},Xl=function(e){return"number"==typeof e||Ki.test(e)};function Kl(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Yl=Jl(0,.5,Is),Zl=Jl(.5,.95,Rs);function Jl(e,t,n){return function(r){return r<e?0:r>t?1:n(Ri(e,t,r))}}function eu(e,t){e.min=t.min,e.max=t.max}function tu(e,t){eu(e.x,t.x),eu(e.y,t.y)}function nu(e){return void 0===e||1===e}function ru(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!nu(t)||!nu(n)||!nu(r)}function ou(e){return ru(e)||au(e.x)||au(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function au(e){return e&&"0%"!==e}function iu(e,t,n){return n+t*(e-n)}function su(e,t,n,r,o){return void 0!==o&&(e=iu(e,o,r)),iu(e,n,r)+t}function lu(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=su(e.min,t,n,r,o),e.max=su(e.max,t,n,r,o)}function uu(e,t){var n=t.x,r=t.y;lu(e.x,n.translate,n.scale,n.originPoint),lu(e.y,r.translate,r.scale,r.originPoint)}function cu(e,t){e.min=e.min+t,e.max=e.max+t}function du(e,t,n){var r=ja(n,3),o=r[0],a=r[1],i=r[2],s=void 0!==t[i]?t[i]:.5,l=mi(e.min,e.max,s);lu(e,t[o],t[a],l,t.scale)}var fu=["x","scaleX","originX"],pu=["y","scaleY","originY"];function hu(e,t){du(e.x,t,fu),du(e.y,t,pu)}const mu=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),vu=e=>mu(e)&&e.hasOwnProperty("z"),gu=(e,t)=>Math.abs(e-t);function yu(e,t){if(vs(e)&&vs(t))return gu(e,t);if(mu(e)&&mu(t)){const n=gu(e.x,t.x),r=gu(e.y,t.y),o=vu(e)&&vu(t)?gu(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}function bu(e){return e.max-e.min}function xu(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),yu(e,t)<n}function wu(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=mi(t.min,t.max,e.origin),e.scale=bu(n)/bu(t),(xu(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=mi(n.min,n.max,e.origin)-e.originPoint,(xu(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Su(e,t,n,r){wu(e.x,t.x,n.x,null==r?void 0:r.originX),wu(e.y,t.y,n.y,null==r?void 0:r.originY)}function ku(e,t,n){e.min=n.min+t.min,e.max=e.min+bu(t)}function Eu(e,t,n){e.min=t.min-n.min,e.max=e.min+bu(t)}function Cu(e,t,n){Eu(e.x,t.x,n.x),Eu(e.y,t.y,n.y)}function _u(e,t,n,r,o){return e=iu(e-=t,1/n,r),void 0!==o&&(e=iu(e,1/o,r)),e}function Pu(e,t,n,r,o){var a=ja(n,3),i=a[0],s=a[1],l=a[2];!function(e,t,n,r,o,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===i&&(i=e),Xi.test(t)&&(t=parseFloat(t),t=mi(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=mi(a.min,a.max,r);e===a&&(s-=t),e.min=_u(e.min,t,n,s,o),e.max=_u(e.max,t,n,s,o)}}(e,t[i],t[s],t[l],t.scale,r,o)}var Tu=["x","scaleX","originX"],Ou=["y","scaleY","originY"];function Au(e,t,n,r){Pu(e.x,t,Tu,null==n?void 0:n.x,null==r?void 0:r.x),Pu(e.y,t,Ou,null==n?void 0:n.y,null==r?void 0:r.y)}function Ru(e){return 0===e.translate&&1===e.scale}function zu(e){return Ru(e.x)&&Ru(e.y)}function ju(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Fu=function(){function e(){this.members=[]}return e.prototype.add=function(e){gi(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(yi(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,o,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.call(o)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),Mu={};function Iu(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(n){var i=n.rotate,s=n.rotateX,l=n.rotateY;i&&(a+="rotate(".concat(i,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),l&&(a+="rotateY(".concat(l,"deg) "))}return"translate3d(0px, 0px, 0) scale(1, 1)"===(a+="scale(".concat(e.x.scale,", ").concat(e.y.scale,")"))?"none":a}function Nu(e){return[e("x"),e("y")]}var Du=["","X","Y","Z"],Lu=["transformPerspective","x","y","z"];function Bu(e,t){return Lu.indexOf(e)-Lu.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Du.forEach((function(t){return Lu.push(e+t)}))}));var $u=new Set(Lu);function Vu(e){return $u.has(e)}var Uu=new Set(["originX","originY","originZ"]);function Wu(e){return Uu.has(e)}var Hu=function(e,t){return e.depth-t.depth},qu=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){gi(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){yi(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Hu),this.isDirty=!1,this.children.forEach(e)},e}();function Qu(e){var t,n=Si(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}var Gu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xu(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(nc),o.nodes.forEach(rc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Fa(Fa([],ja(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new qu)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new bi),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Fa([],ja(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,i=a.layoutId,s=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var u,c=function(){return o.root.updateBlockedByResize=!1};t(e,(function(){o.root.updateBlockedByResize=!0,clearTimeout(u),u=setTimeout(c,250),Gu.hasAnimatedSinceResize&&(Gu.hasAnimatedSinceResize=!1,o.nodes.forEach(tc))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,a,i,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var f=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:uc,p=l.getProps().onLayoutAnimationComplete,h=!o.targetLayout||!ju(o.targetLayout,d)||c,m=!u&&c;(null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||m||u&&(h||!o.currentAnimation)?(o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,m),o.startAnimation(Ra(Ra({},Wl(f,"layout")),{onComplete:p}))):o.isLead()&&(null===(i=(a=o.options).onExitComplete)||void 0===i||i.call(a)),o.targetLayout=d}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,li.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(oc))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var a=this.path[o];a.shouldResetTransform=!0,a.updateScroll()}var i=this.options,s=i.layoutId,l=i.layout;if(void 0!==s||l){var u=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==u?void 0:u(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ju);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(cc),this.potentialNodes.clear()),this.nodes.forEach(ec),this.nodes.forEach(Ku),this.nodes.forEach(Yu),this.clearAllSnapshots(),ui.update(),ui.preRender(),ui.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Zu),this.sharedNodes.forEach(ac)},e.prototype.scheduleUpdateProjection=function(){hi.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;hi.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));fc(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();fc(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(o){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!zu(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,a=null==r?void 0:r(this.latestValues,""),i=a!==this.prevTransformTemplateValue;t&&(n||ou(this.latestValues)||i)&&(o(this.instance,a),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(cu(t.x,n.x),cu(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};tu(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll,a=r.options;r!==this.root&&o&&a.layoutScroll&&(cu(t.x,o.x),cu(t.y,o.y))}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};tu(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&hu(n,{x:-o.scroll.x,y:-o.scroll.y}),ou(o.latestValues)&&hu(n,o.latestValues)}return ou(this.latestValues)&&hu(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};tu(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&ou(o.latestValues)){ru(o.latestValues)&&o.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};tu(a,o.measure()),Au(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return ou(this.latestValues)&&Au(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Ra(Ra(Ra({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options,a=o.layout,i=o.layoutId;this.layout&&(a||i)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Cu(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),tu(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,ku(t.x,n.x,r.x),ku(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):tu(this.target,this.layout.actual),uu(this.target,this.targetDelta)):tu(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Cu(this.relativeTargetOrigin,this.target,this.relativeParent.target),tu(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!ou(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();tu(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,a;void 0===r&&(r=!1);var i=n.length;if(i){var s,l;t.x=t.y=1;for(var u=0;u<i;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(a=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&hu(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,uu(e,l)),r&&ou(s.latestValues)&&hu(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var a=o.target;if(a){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var i=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;Su(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Iu(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},i=Ra({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},u=null==o?void 0:o.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(lc));this.mixTargetDelta=function(t){var n,o,f,p,h,m=t/1e3;ic(s.x,e.x,m),ic(s.y,e.y,m),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(Cu(l,r.layout.actual,r.relativeParent.layout.actual),o=r.relativeTarget,f=r.relativeTargetOrigin,p=l,h=m,sc(o.x,f.x,p.x,h),sc(o.y,f.y,p.y,h)),u&&(r.animationValues=i,function(e,t,n,r,o,a){var i,s,l,u;o?(e.opacity=mi(0,null!==(i=n.opacity)&&void 0!==i?i:1,Yl(r)),e.opacityExit=mi(null!==(s=t.opacity)&&void 0!==s?s:1,0,Zl(r))):a&&(e.opacity=mi(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<Ql;c++){var d="border".concat(ql[c],"Radius"),f=Kl(t,d),p=Kl(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||Xl(f)===Xl(p)?(e[d]=Math.max(mi(Gl(f),Gl(p),r),0),(Xi.test(p)||Xi.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=mi(t.rotate||0,n.rotate||0,r))}(i,a,r.latestValues,m,d,c)),r.root.scheduleUpdateProjection(),r.scheduleRender()},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(li.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=hi.update((function(){Gu.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Si(0)?0:wi(0);return Hl("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Ra(Ra({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,o=e.latestValues;t&&n&&r&&(tu(t,n),hu(t,o),Su(this.projectionDeltaWithTransform,this.layoutCorrected,t,o))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Fu),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Du.length;r++){var o="rotate"+Du[r];e.getStaticValue(o)&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,a,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Qu(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=Qu(e.pointerEvents)||""),this.hasProjected&&!ou(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Iu(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,h=f.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),u.animationValues?s.opacity=u===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?null!==(a=d.opacity)&&void 0!==a?a:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,Mu)if(void 0!==d[m]){var v=Mu[m],g=v.correct,y=v.applyTo,b=g(d[m],u);if(y)for(var x=y.length,w=0;w<x;w++)s[y[w]]=b;else s[m]=b}return this.options.layoutId&&(s.pointerEvents=u===this?Qu(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Ju),this.root.sharedNodes.clear()},e}()}function Ku(e){e.updateLayout()}function Yu(e){var t,n,r,o,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?Nu((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=bu(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Nu((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=bu(s[e]);t.max=t.min+n}));var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Su(u,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?Su(c,e.applyTransform(l,!0),a.measured):Su(c,s,a.layout);var d=!zu(u),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var v={x:{min:0,max:0},y:{min:0,max:0}};Cu(v,a.layout,h.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};Cu(g,s,m.actual),ju(v,g)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function Zu(e){e.clearSnapshot()}function Ju(e){e.clearMeasurements()}function ec(e){e.resetTransform()}function tc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function nc(e){e.resolveTargetDelta()}function rc(e){e.calcProjection()}function oc(e){e.resetRotation()}function ac(e){e.removeLeadSnapshot()}function ic(e,t,n){e.translate=mi(t.translate,0,n),e.scale=mi(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sc(e,t,n,r){e.min=mi(t.min,n.min,r),e.max=mi(t.max,n.max,r)}function lc(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var uc={duration:.45,ease:[.4,0,.1,1]};function cc(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function dc(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function fc(e){dc(e.x),dc(e.y)}var pc=1,hc=(0,e.createContext)({}),mc=(0,e.createContext)({}),vc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Aa(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(e.Component);function gc(t){var n=t.preloadedFeatures,r=t.createVisualElement,o=t.projectionNodeConstructor,a=t.useRender,i=t.useVisualState,s=t.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Ia.projectionNodeConstructor=e[t]:Ia[t].Component=e[t])}(n),(0,e.forwardRef)((function(t,n){var l=function(t){var n,r=t.layoutId,o=null===(n=(0,e.useContext)(hc))||void 0===n?void 0:n.id;return o&&void 0!==r?o+"-"+r:r}(t);t=Ra(Ra({},t),{layoutId:l});var u=(0,e.useContext)(Ba),c=null,d=function(t){var n=function(e,t){if(Xa(e)){var n=e.initial,r=e.animate;return{initial:!1===n||qa(n)?n:void 0,animate:qa(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)($a)),r=n.initial,o=n.animate;return(0,e.useMemo)((function(){return{initial:r,animate:o}}),[Ya(r),Ya(o)])}(t),f=u.isStatic?void 0:Ea((function(){if(Gu.hasEverUpdated)return pc++})),p=i(t,u.isStatic);return!u.isStatic&&Va&&(d.visualElement=function(t,n,r,o){var a=(0,e.useContext)(Na),i=(0,e.useContext)($a).visualElement,s=(0,e.useContext)(ka),l=(0,e.useRef)(void 0);o||(o=a.renderer),!l.current&&o&&(l.current=o(t,{visualState:n,parent:i,props:r,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial)}));var u=l.current;return Ua((function(){null==u||u.syncRender()})),(0,e.useEffect)((function(){var e;null===(e=null==u?void 0:u.animationState)||void 0===e||e.animateChanges()})),Ua((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}(s,p,Ra(Ra({},u),t),r),function(t,n,r,o){var a,i=n.layoutId,s=n.layout,l=n.drag,u=n.dragConstraints,c=n.layoutScroll,d=(0,e.useContext)(mc);o&&r&&!(null==r?void 0:r.projection)&&(r.projection=new o(t,r.getLatestValues(),null===(a=r.parent)||void 0===a?void 0:a.projection),r.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:Boolean(l)||u&&Wa(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:d,layoutScroll:c}))}(f,t,d.visualElement,o||Ia.projectionNodeConstructor),c=function(t,n){var r=[];if((0,e.useContext)(Na),!n)return null;for(var o=0;o<La;o++){var a=Da[o],i=Ia[a],s=i.isEnabled,l=i.Component;s(t)&&l&&r.push(e.createElement(l,Ra({key:a},t,{visualElement:n})))}return r}(t,d.visualElement)),e.createElement(vc,{visualElement:d.visualElement,props:Ra(Ra({},u),t)},c,e.createElement($a.Provider,{value:d},a(s,t,f,function(t,n,r){return(0,e.useCallback)((function(e){var o;e&&(null===(o=t.mount)||void 0===o||o.call(t,e)),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):Wa(r)&&(r.current=e))}),[n])}(p,d.visualElement,n),p,u.isStatic,d.visualElement)))}))}function yc(e){function t(t,n){return void 0===n&&(n={}),gc(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var bc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function xc(e){return"string"==typeof e&&!e.includes("-")&&!!(bc.indexOf(e)>-1||/[A-Z]/.test(e))}function wc(e,t){var n=t.layout,r=t.layoutId;return Vu(e)||Wu(e)||(n||void 0!==r)&&(!!Mu[e]||"opacity"===e)}var Sc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function kc(e){return e.startsWith("--")}var Ec=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function Cc(e,t,n,r){var o,a=e.style,i=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,d=!1,f=!0;for(var p in t){var h=t[p];if(kc(p))i[p]=h;else{var m=Il[p],v=Ec(h,m);if(Vu(p)){if(c=!0,s[p]=v,l.push(p),!f)continue;h!==(null!==(o=m.default)&&void 0!==o?o:0)&&(f=!1)}else Wu(p)?(u[p]=v,d=!0):a[p]=v}}c?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,u=void 0===l||l,c="";a.sort(Bu);for(var d=!1,f=a.length,p=0;p<f;p++){var h=a[p];c+="".concat(Sc[h]||h,"(").concat(o[h],") "),"z"===h&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(o,n?"":c):u&&n&&(c="none"),c}(e,n,f,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,a=e.originZ,i=void 0===a?0:a;return"".concat(n," ").concat(o," ").concat(i)}(u))}function _c(e,t,n){for(var r in t)Si(t[r])||wc(r,n)||(e[r]=t[r])}function Pc(t,n,r){var o={},a=function(t,n,r){var o={};return _c(o,t.style||{},t),Object.assign(o,function(t,n,r){var o=t.transformTemplate;return(0,e.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Cc(e,n,{enableHardwareAcceleration:!r},o);var t=e.style;return Ra(Ra({},e.vars),t)}),[n])}(t,n,r)),t.transformValues&&(o=t.transformValues(o)),o}(t,n,r);return Boolean(t.drag)&&!1!==t.dragListener&&(o.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),o.style=a,o}var Tc=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Oc(e){return Tc.has(e)}var Ac,Rc=function(e){return!Oc(e)};try{(Ac=require("@emotion/is-prop-valid").default)&&(Rc=function(e){return e.startsWith("on")?!Oc(e):Ac(e)})}catch(Rr){}function zc(e,t,n){return"string"==typeof e?e:Ki.transform(t+n*e)}var jc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Fc={offset:"strokeDashoffset",array:"strokeDasharray"};function Mc(e,t,n,r){var o=t.attrX,a=t.attrY,i=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,d=t.pathOffset,f=void 0===d?0:d;Cc(e,za(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,h=e.style,m=e.dimensions;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==i||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=zc(t,e.x,e.width),o=zc(n,e.y,e.height);return"".concat(r," ").concat(o)}(m,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==a&&(p.y=a),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var a=o?jc:Fc;e[a.offset]=Ki.transform(-r);var i=Ki.transform(t),s=Ki.transform(n);e[a.array]="".concat(i," ").concat(s)}(p,l,c,f,!1)}var Ic=function(){return Ra(Ra({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Nc(t,n){var r=(0,e.useMemo)((function(){var e=Ic();return Mc(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),Ra(Ra({},e.attrs),{style:Ra({},e.style)})}),[n]);if(t.style){var o={};_c(o,t.style,t),r.style=Ra(Ra({},o),r.style)}return r}function Dc(t){return void 0===t&&(t=!1),function(n,r,o,a,i,s){var l=i.latestValues,u=(xc(n)?Nc:Pc)(r,l,s),c=function(e,t,n){var r={};for(var o in e)(Rc(o)||!0===n&&Oc(o)||!t&&!Oc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,t),d=Ra(Ra(Ra({},c),u),{ref:a});return o&&(d["data-projection-id"]=o),(0,e.createElement)(n,d)}}var Lc=/([a-z])([A-Z])/g,Bc=function(e){return e.replace(Lc,"$1-$2").toLowerCase()};function $c(e,t,n,r){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var Vc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Uc(e,t){for(var n in $c(e,t),t.attrs)e.setAttribute(Vc.has(n)?n:Bc(n),t.attrs[n])}function Wc(e){var t=e.style,n={};for(var r in t)(Si(t[r])||wc(r,e))&&(n[r]=t[r]);return n}function Hc(e){var t=Wc(e);for(var n in e)Si(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function qc(e){return"object"==typeof e&&"function"==typeof e.start}function Qc(e,t,n,r){var o=e.scrapeMotionValuesFromProps,a=e.createRenderState,i=e.onMount,s={latestValues:Xc(t,n,r,o),renderState:a()};return i&&(s.mount=function(e){return i(t,e,s)}),s}var Gc=function(t){return function(n,r){var o=(0,e.useContext)($a),a=(0,e.useContext)(ka);return r?Qc(t,n,o,a):Ea((function(){return Qc(t,n,o,a)}))}};function Xc(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=Qu(i[s]);var l=e.initial,u=e.animate,c=Xa(e),d=Ka(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=a||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!qc(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Qa(e,t);if(n){var r=n.transitionEnd;n.transition;var a=za(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}})),o}var Kc,Yc={useVisualState:Gc({scrapeMotionValuesFromProps:Hc,createRenderState:Ic,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Mc(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),Uc(t,r)}})},Zc={useVisualState:Gc({scrapeMotionValuesFromProps:Wc,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Jc(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function ed(t,n,r,o){(0,e.useEffect)((function(){var e=t.current;if(r&&e)return Jc(e,n,r,o)}),[t,n,r,o])}function td(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function nd(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(Kc||(Kc={}));var rd={pageX:0,pageY:0};function od(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||rd;return{x:n[t+"X"],y:n[t+"Y"]}}function ad(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function id(e,t){return void 0===t&&(t="page"),{point:nd(e)?od(e,t):ad(e,t)}}var sd=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,id(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},ld={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ud={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function cd(e){return Va&&null===window.onpointerdown?e:Va&&null===window.ontouchstart?ud[e]:Va&&null===window.onmousedown?ld[e]:e}function dd(e,t,n,r){return Jc(e,cd(t),sd(n,"pointerdown"===t),r)}function fd(e,t,n,r){return ed(e,cd(t),n&&sd(n,"pointerdown"===t),r)}function pd(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var hd=pd("dragHorizontal"),md=pd("dragVertical");function vd(e){var t=!1;if("y"===e)t=md();else if("x"===e)t=hd();else{var n=hd(),r=md();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function gd(){var e=vd(!0);return!e||(e(),!1)}function yd(e,t,n){return function(r,o){var a;td(r)&&!gd()&&(null===(a=e.animationState)||void 0===a||a.setActive(Kc.Hover,t),null==n||n(r,o))}}var bd=function(e,t){return!!t&&(e===t||bd(e,t.parentElement))};function xd(t){return(0,e.useEffect)((function(){return function(){return t()}}),[])}var wd=new WeakMap,Sd=new WeakMap,kd=function(e){var t;null===(t=wd.get(e.target))||void 0===t||t(e)},Ed=function(e){e.forEach(kd)};var Cd={some:0,all:1};function _d(t,n,r,o){var a=o.root,i=o.margin,s=o.amount,l=void 0===s?"some":s,u=o.once;(0,e.useEffect)((function(){if(t){var e={root:null==a?void 0:a.current,rootMargin:i,threshold:"number"==typeof l?l:Cd[l]};return function(e,t,n){var r=function(e){var t=e.root,n=za(e,["root"]),r=t||document;Sd.has(r)||Sd.set(r,{});var o=Sd.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(Ed,Ra({root:t},n))),o[a]}(t);return wd.set(e,n),r.observe(e),function(){wd.delete(e),r.unobserve(e)}}(r.getInstance(),e,(function(e){var t,o=e.isIntersecting;if(n.isInView!==o&&(n.isInView=o,!u||o||!n.hasEnteredView)){o&&(n.hasEnteredView=!0),null===(t=r.animationState)||void 0===t||t.setActive(Kc.InView,o);var a=r.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}))}}),[t,a,i,l])}function Pd(t,n,r){(0,e.useEffect)((function(){t&&requestAnimationFrame((function(){var e;n.hasEnteredView=!0;var t=r.getProps().onViewportEnter;null==t||t(null),null===(e=r.animationState)||void 0===e||e.setActive(Kc.InView,!0)}))}),[t])}var Td=function(e){return function(t){return e(t),null}},Od={inView:Td((function(t){var n=t.visualElement,r=t.whileInView,o=t.onViewportEnter,a=t.onViewportLeave,i=t.viewport,s=void 0===i?{}:i,l=(0,e.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(r||o||a);s.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Pd:_d)(u,l.current,n,s)})),tap:Td((function(t){var n=t.onTap,r=t.onTapStart,o=t.onTapCancel,a=t.whileTap,i=t.visualElement,s=n||r||o||a,l=(0,e.useRef)(!1),u=(0,e.useRef)(null);function c(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function d(){var e;return c(),l.current=!1,null===(e=i.animationState)||void 0===e||e.setActive(Kc.Tap,!1),!gd()}function f(e,t){d()&&(bd(i.getInstance(),e.target)?null==n||n(e,t):null==o||o(e,t))}function p(e,t){d()&&(null==o||o(e,t))}fd(i,"pointerdown",s?function(e,t){var n;c(),l.current||(l.current=!0,u.current=ys(dd(window,"pointerup",f),dd(window,"pointercancel",p)),null===(n=i.animationState)||void 0===n||n.setActive(Kc.Tap,!0),null==r||r(e,t))}:void 0),xd(c)})),focus:Td((function(e){var t=e.whileFocus,n=e.visualElement;ed(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Kc.Focus,!0)}:void 0),ed(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Kc.Focus,!1)}:void 0)})),hover:Td((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;fd(o,"pointerenter",t||r?yd(o,!0,t):void 0),fd(o,"pointerleave",n||r?yd(o,!1,n):void 0)}))};function Ad(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Rd=function(e){return function(t){return t.test(e)}},zd=[Di,Ki,Xi,Gi,Zi,Yi,{test:function(e){return"auto"===e},parse:function(e){return e}}],jd=function(e){return zd.find(Rd(e))},Fd=Fa(Fa([],ja(zd),!1),[ls,ms],!1),Md=function(e){return Fd.find(Rd(e))};function Id(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wi(n))}function Nd(e,t){if(t)return(t[e]||t.default||t).from}function Dd(e,t,n){var r;void 0===n&&(n={});var o=Ga(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return Ld(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren,a=void 0===o?0:o,s=i.staggerChildren,l=i.staggerDirection;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Bd).forEach((function(e,r){i.push(Dd(e,t,Ra(Ra({},a),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(i)}(e,t,a+r,s,l,n)}:function(){return Promise.resolve()},u=i.when;if(u){var c=ja("beforeChildren"===u?[s,l]:[l,s],2),d=c[0],f=c[1];return d().then(f)}return Promise.all([s(),l(n.delay)])}function Ld(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=za(u,["transition","transitionEnd"]);s&&(d=s);var h=[],m=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var v in p){var g=e.getValue(v),y=p[v];if(!(!g||void 0===y||m&&$d(m,v))){var b=Hl(v,g,y,Ra({delay:i},d));h.push(b)}}return Promise.all(h).then((function(){f&&function(e,t){var n=Ga(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o;r.transition;var i=za(r,["transitionEnd","transition"]);for(var s in i=Ra(Ra({},i),a))Id(e,s,Bl(i[s]))}(e,f)}))}function Bd(e,t){return e.sortNodePosition(t)}function $d(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var Vd=[Kc.Animate,Kc.InView,Kc.Focus,Kc.Hover,Kc.Tap,Kc.Drag,Kc.Exit],Ud=Fa([],ja(Vd),!1).reverse(),Wd=Vd.length;function Hd(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map((function(t){return Dd(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=Dd(e,t,n);else{var a="function"==typeof t?Ga(e,t,n.custom):t;r=Ld(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[Kc.Animate]=qd(!0),e[Kc.InView]=qd(),e[Kc.Hover]=qd(),e[Kc.Tap]=qd(),e[Kc.Drag]=qd(),e[Kc.Focus]=qd(),e[Kc.Exit]=qd(),e}(),r={},o=!0,a=function(t,n){var r=Ga(e,n);if(r){r.transition;var o=r.transitionEnd,a=za(r,["transition","transitionEnd"]);t=Ra(Ra(Ra({},t),a),o)}return t};function i(i,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},h=1/0,m=function(t){var r=Ud[t],m=n[r],v=null!==(l=u[r])&&void 0!==l?l:c[r],g=qa(v),y=r===s?m.isActive:null;!1===y&&(h=t);var b=v===c[r]&&v!==u[r]&&g;if(b&&o&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys=Ra({},p),!m.isActive&&null===y||!v&&!m.prevProp||qc(v)||"boolean"==typeof v)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!Ha(t)&&!Ad(t,e)}(m.prevProp,v),w=x||r===s&&m.isActive&&!b&&g||t>h&&g,S=Array.isArray(v)?v:[v],k=S.reduce(a,{});!1===y&&(k={});var E=m.prevResolvedValues,C=void 0===E?{}:E,_=Ra(Ra({},C),k),P=function(e){w=!0,f.delete(e),m.needsAnimating[e]=!0};for(var T in _){var O=k[T],A=C[T];p.hasOwnProperty(T)||(O!==A?Cl(O)&&Cl(A)?!Ad(O,A)||x?P(T):m.protectedKeys[T]=!0:void 0!==O?P(T):f.add(T):void 0!==O&&f.has(T)?P(T):m.protectedKeys[T]=!0)}m.prevProp=v,m.prevResolvedValues=k,m.isActive&&(p=Ra(Ra({},p),k)),o&&e.blockInitialAnimation&&(w=!1),w&&!b&&d.push.apply(d,Fa([],ja(S.map((function(e){return{animation:e,options:Ra({type:r},i)}}))),!1))},v=0;v<Wd;v++)m(v);if(r=Ra({},p),f.size){var g={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(g[t]=n)})),d.push({animation:g})}var y=Boolean(d.length);return o&&!1===u.initial&&!e.manuallyAnimateOnMount&&(y=!1),o=!1,y?t(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:i,setActive:function(t,r,o){var a;return n[t].isActive===r?Promise.resolve():(null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r,i(o,t))},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function qd(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Qd={animation:Td((function(t){var n=t.visualElement,r=t.animate;n.animationState||(n.animationState=Hd(n)),qc(r)&&(0,e.useEffect)((function(){return r.subscribe(n)}),[r])})),exit:Td((function(t){var n=t.custom,r=t.visualElement,o=ja(Ca(),2),a=o[0],i=o[1],s=(0,e.useContext)(ka);(0,e.useEffect)((function(){var e,t;r.isPresent=a;var o=null===(e=r.animationState)||void 0===e?void 0:e.setActive(Kc.Exit,!a,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:n});!a&&(null==o||o.then(i))}),[a])}))},Gd=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=Yd(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=yu(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=pi().timestamp;r.history.push(Ra(Ra({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,l=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=Xd(t,r.transformPagePoint),td(e)&&0===e.buttons?r.handlePointerUp(e,t):hi.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=Yd(Xd(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(nd(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Xd(id(e),this.transformPagePoint),i=a.point,s=pi().timestamp;this.history=[Ra(Ra({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Yd(a,this.history)),this.removeListeners=ys(dd(window,"pointermove",this.handlePointerMove),dd(window,"pointerup",this.handlePointerUp),dd(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),li.update(this.updatePoint)},e}();function Xd(e,t){return t?{point:t(e.point)}:e}function Kd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yd(e,t){var n=e.point;return{point:n,delta:Kd(n,Jd(t)),offset:Kd(n,Zd(t)),velocity:ef(t,.1)}}function Zd(e){return e[0]}function Jd(e){return e[e.length-1]}function ef(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Jd(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>hl(t)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var 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 tf(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function nf(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=ja([o,r],2))[0],o=n[1]),{min:r,max:o}}var rf=.35;function of(e,t,n){return{min:af(e,t),max:af(e,n)}}function af(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function sf(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function lf(e,t){return sf(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var uf=new WeakMap,cf=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new Gd(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(id(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),a=o.drag,i=o.dragPropagation,s=o.onDragStart;(!a||i||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=vd(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Nu((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(Xi.test(o)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(o=bu(a)*(parseFloat(o)/100))}n.originPoint[e]=o})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Kc.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.dragPropagation,a=r.dragDirectionLock,i=r.onDirectionLock,s=r.onDrag;if(o||n.openGlobalLock){var l=t.offset;if(a&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==i||i(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Kc.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&df(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?mi(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?mi(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Wa(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,a=t.right;return{x:tf(e.x,r,a),y:tf(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=rf),!1===e?e=0:!0===e&&(e=rf),{x:of(e,"left","right"),y:of(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Nu((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Wa(t))return!1;var r=t.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=lf(e,n),o=t.scroll;return o&&(cu(r.x,o.x),cu(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:nf(e.x,t.x),y:nf(e.y,t.y)}}(o.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=sf(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Nu((function(n){var l;if(df(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var d=a?200:1e6,f=a?40:1e7,p=Ra(Ra({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},i),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Hl(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Nu((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Nu((function(n){if(df(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],i=a.min,s=a.max;o.set(e[n]-mi(i,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,a=this.visualElement.projection;if(Wa(o)&&a&&this.constraints){this.stopAnimation();var i={x:0,y:0};Nu((function(e){var n,r,o,a,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();i[e]=(n={min:u,max:u},r=t.constraints[e],o=.5,a=bu(n),(s=bu(r))>a?o=Ri(r.min,r.max-a,n.min):a>s&&(o=Ri(n.min,n.max-s,r.min)),ki(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),Nu((function(e){if(df(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],a=o.min,s=o.max;n.set(mi(a,s,i[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;uf.set(this.visualElement,this);var n=dd(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=function(){Wa(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=Jc(window,"resize",(function(){t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Nu((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){i(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?rf:u,d=e.dragMomentum,f=void 0===d||d;return Ra(Ra({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function df(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var ff={pan:Td((function(t){var n=t.onPan,r=t.onPanStart,o=t.onPanEnd,a=t.onPanSessionStart,i=t.visualElement,s=n||r||o||a,l=(0,e.useRef)(null),u=(0,e.useContext)(Ba).transformPagePoint,c={onSessionStart:a,onStart:r,onMove:n,onEnd:function(e,t){l.current=null,o&&o(e,t)}};(0,e.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),fd(i,"pointerdown",s&&function(e){l.current=new Gd(e,c,{transformPagePoint:u})}),xd((function(){return l.current&&l.current.end()}))})),drag:Td((function(t){var n=t.dragControls,r=t.visualElement,o=Ea((function(){return new cf(r)}));(0,e.useEffect)((function(){return n&&n.subscribe(o)}),[o,n]),(0,e.useEffect)((function(){return o.addListeners()}),[o])}))},pf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"],hf=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,h=e.presenceId,m=e.blockInitialAnimation,v=e.visualState;void 0===t&&(t={});var g,y,b=!1,x=v.latestValues,w=v.renderState,S=function(){var e=pf.map((function(){return new bi})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){pf.forEach((function(r){var o,a="on"+r,i=e[a];null===(o=t[r])||void 0===o||o.call(t),i&&(t[r]=n[a](i))}))}};return e.forEach((function(e,t){n["on"+pf[t]]=function(t){return e.add(t)},n["notify"+pf[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.notify.apply(e,Fa([],ja(t),!1))}})),n}(),k=new Map,E=new Map,C={},_=Ra({},x);function P(){g&&b&&(T(),s(g,w,p.style,M.projection))}function T(){r(M,w,x,t,p)}function O(){S.notifyUpdate(x)}var A=d(p);for(var R in A){var z=A[R];void 0!==x[R]&&Si(z)&&z.set(x[R],!1)}var j=Xa(p),F=Ka(p),M=Ra(Ra({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:h,variantChildren:F?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(g)},mount:function(e){b=!0,g=M.current=e,M.projection&&M.projection.mount(e),F&&f&&!j&&(y=null==f?void 0:f.addVariantChild(M)),null==f||f.children.add(M),M.setProps(p)},unmount:function(){var e;null===(e=M.projection)||void 0===e||e.unmount(),li.update(O),li.render(P),E.forEach((function(e){return e()})),null==y||y(),null==f||f.children.delete(M),S.clearAllListeners(),g=void 0,b=!1},addVariantChild:function(e){var t,n=M.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(M.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return F?M:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){M.isVisible!==e&&(M.isVisible=e,M.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(M,e,p,t)},measureViewportBox:function(){return i(g,p)},addValue:function(e,t){M.hasValue(e)&&M.removeValue(e),k.set(e,t),x[e]=t.get(),function(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&hi.update(O,!1,!0)})),r=t.onRenderRequest(M.scheduleRender);E.set(e,(function(){n(),r()}))}(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=E.get(e))||void 0===t||t(),E.delete(e),delete x[e],u(e,w)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var n=k.get(e);return void 0===n&&void 0!==t&&(n=wi(t),M.addValue(e,n)),n},forEachValue:function(e){return k.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(g,e,t)},setBaseTarget:function(e,t){_[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!Si(t))return t}return _[e]}},S),{build:function(){return T(),w},scheduleRender:function(){hi.render(P,!1,!0)},syncRender:P,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&M.scheduleRender(),p=e,S.updatePropListeners(e),C=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(Si(a))e.addValue(o,a);else if(Si(i))e.addValue(o,wi(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,wi(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(M,d(p),C)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!j){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<vf;r++){var o=mf[r],a=p[o];(qa(a)||!1===a)&&(n[o]=a)}return n}});return M}},mf=Fa(["initial"],ja(Vd),!1),vf=mf.length;function gf(e){return"string"==typeof e&&e.startsWith("var(--")}var yf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function bf(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=ja(function(e){var t=yf.exec(e);if(!t)return[,];var n=ja(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():gf(a)?bf(a,t,n+1):a}}var xf,wf=new Set(["width","height","top","left","right","bottom","x","y"]),Sf=function(e){return wf.has(e)},kf=function(e,t){e.set(t,!1),e.set(t)},Ef=function(e){return e===Di||e===Ki};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(xf||(xf={}));var Cf=function(e,t){return parseFloat(e.split(", ")[t])},_f=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return Cf(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?Cf(i[1],e):0}},Pf=new Set(["x","y","z"]),Tf=Lu.filter((function(e){return!Pf.has(e)})),Of={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,a=t.paddingRight,i=void 0===a?"0":a;return n.max-n.min-parseFloat(o)-parseFloat(i)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,a=t.paddingBottom,i=void 0===a?"0":a;return n.max-n.min-parseFloat(o)-parseFloat(i)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:_f(4,13),y:_f(5,14)};function Af(e,t,n,r){return function(e){return Object.keys(e).some(Sf)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Ra({},t),r=Ra({},r);var o=Object.keys(t).filter(Sf),a=[],i=!1,s=[];if(o.forEach((function(o){var l=e.getValue(o);if(e.hasValue(o)){var u,c=n[o],d=jd(c),f=t[o];if(Cl(f)){var p=f.length,h=null===f[0]?1:0;c=f[h],d=jd(c);for(var m=h;m<p;m++)u?jd(f[m]):(u=jd(f[m]))===d||Ef(d)&&Ef(u)}else u=jd(f);if(d!==u)if(Ef(d)&&Ef(u)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===Ki&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[o]=d.transform(f):(i||(a=function(e){var t=[];return Tf.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),i=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],kf(l,f))}})),s.length){var l=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i=a.display,s={};"none"===i&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=Of[e](r,a)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);kf(r,s[n]),e[n]=Of[n](l,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=ja(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),{target:l,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var Rf={treeType:"dom",readValueFromInstance:function(e,t){if(Vu(t)){var n=Dl(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(kc(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return lf(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,s=za(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=Nd(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,a,i,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],d=t[c],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==o?o:t[c]),null!=f&&("string"==typeof f&&(/^\-?\d*\.?\d+$/.test(f)||/^0[^.\s]+$/.test(f))?f=parseFloat(f):!Md(f)&&ms.test(d)&&(f=Ll(c,d)),e.addValue(c,wi(f)),null!==(a=(i=n)[c])&&void 0!==a||(i[c]=f),e.setBaseTarget(c,f))}}(e,s,l);var u=function(e,t,n,r){var o=function(e,t,n){var r,o=za(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var i in n&&(n=Ra({},n)),e.forEachValue((function(e){var t=e.get();if(gf(t)){var n=bf(t,a);n&&e.set(n)}})),o){var s=o[i];if(gf(s)){var l=bf(s,a);l&&(o[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return Af(e,t=o.target,n,r=o.transitionEnd)}(e,s,l,i);i=u.transitionEnd,s=u.target}return Ra({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:Wc,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Cc(t,n,r,o.transformTemplate)},render:$c},zf=hf(Rf),jf=hf(Ra(Ra({},Rf),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Vu(t)?(null===(n=Dl(t))||void 0===n?void 0:n.default)||0:(t=Vc.has(t)?t:Bc(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Hc,build:function(e,t,n,r,o){Mc(t,n,r,o.transformTemplate)},render:Uc})),Ff=function(e,t){return xc(e)?jf(t,{enableHardwareAcceleration:!1}):zf(t,{enableHardwareAcceleration:!0})};function Mf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var If={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Ki.test(e))return e;e=parseFloat(e)}var n=Mf(e,t.target.x),r=Mf(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Nf="_$css",Df={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(yf,(function(e){return i.push(e),Nf})));var s=ms.parse(e);if(s.length>5)return o;var l=ms.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=d;var f=mi(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var p=l(s);if(a){var h=0;p=p.replace(Nf,(function(){var e=i[h];return h++,e}))}return p}},Lf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Aa(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,o=n.layoutGroup,a=n.switchLayoutGroup,i=n.layoutId,s=r.projection;e=Bf,Object.assign(Mu,e),s&&((null==o?void 0:o.group)&&o.group.add(s),(null==a?void 0:a.register)&&i&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Ra(Ra({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Gu.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,a=n.drag,i=n.isPresent,s=o.projection;return s?(s.isPresent=i,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||hi.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(e.Component),Bf={borderRadius:Ra(Ra({},If),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:If,borderTopRightRadius:If,borderBottomLeftRadius:If,borderBottomRightRadius:If,boxShadow:Df},$f={measureLayout:function(t){var n=ja(Ca(),2),r=n[0],o=n[1],a=(0,e.useContext)(hc);return e.createElement(Lf,Ra({},t,{layoutGroup:a,switchLayoutGroup:(0,e.useContext)(mc),isPresent:r,safeToRemove:o}))}},Vf=Xu({attachResizeListener:function(e,t){return e.addEventListener("resize",t,{passive:!0}),function(){return e.removeEventListener("resize",t)}},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),Uf={current:void 0},Wf=Xu({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Uf.current){var e=new Vf(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Uf.current=e}return Uf.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"}}),Hf=Ra(Ra(Ra(Ra({},Qd),Od),ff),$f),qf=yc((function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=xc(e)?Yc:Zc;return Ra(Ra({},s),{preloadedFeatures:n,useRender:Dc(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,Hf,Ff,Wf)})),Qf={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),{opacity:0,[n]:24*r}},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]}}},Gf=(0,e.memo)((t=>{const{id:n,message:r,onCloseComplete:o,onRequestRemove:a,requestClose:i=!1,position:s="bottom",duration:l=5e3,containerStyle:u,motionVariants:c=Qf,toastSpacing:d="0.5rem"}=t,[f,p]=(0,e.useState)(l),h=null===(m=(0,e.useContext)(ka))||m.isPresent;var m;Sa((()=>{h||null==o||o()}),[h]),Sa((()=>{p(l)}),[l]);const v=()=>{h&&a()};(0,e.useEffect)((()=>{h&&i&&a()}),[h,i,a]),function(t,n){const r=wa(t);(0,e.useEffect)((()=>{if(null==n)return;let e=null;return e=window.setTimeout((()=>{r()}),n),()=>{e&&window.clearTimeout(e)}}),[n,r])}(v,f);const g=(0,e.useMemo)((()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...u})),[u,d]),y=(0,e.useMemo)((()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s)),[s]);return(0,oe.jsx)(qf.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>p(null),onHoverEnd:()=>p(l),custom:{position:s},style:y,children:(0,oe.jsx)($r.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:K(r,{id:n,onClose:v})})})}));function Xf(e,t){var n;const r=null!=e?e:"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return null!=(n=null==o?void 0:o[t])?n:r}function Kf(e){return(0,oe.jsx)(pa,{viewBox:"0 0 24 24",...e,children:(0,oe.jsx)("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"})})}Gf.displayName="ToastComponent";var[Yf,Zf]=oo({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Jf,ep]=oo({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),tp={info:{icon:function(e){return(0,oe.jsx)(pa,{viewBox:"0 0 24 24",...e,children:(0,oe.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:Kf,colorScheme:"orange"},success:{icon:function(e){return(0,oe.jsx)(pa,{viewBox:"0 0 24 24",...e,children:(0,oe.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:Kf,colorScheme:"red"},loading:{icon:eo,colorScheme:"blue"}},np=Lt((function(e,t){var n;const{status:r="info",addRole:o=!0,...a}=xr(e),i=null!=(n=e.colorScheme)?n:function(e){return tp[e].colorScheme}(r),s=Zr("Alert",{...e,colorScheme:i}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return(0,oe.jsx)(Yf,{value:{status:r},children:(0,oe.jsx)(Jf,{value:s,children:(0,oe.jsx)($r.div,{"data-status":r,role:o?"alert":void 0,ref:t,...a,className:G("chakra-alert",e.className),__css:l})})})}));function rp(e){const{status:t}=Zf(),n=function(e){return tp[e].icon}(t),r=ep(),o="loading"===t?r.spinner:r.icon;return(0,oe.jsx)($r.span,{display:"inherit","data-status":t,...e,className:G("chakra-alert__icon",e.className),__css:o,children:e.children||(0,oe.jsx)(n,{h:"100%",w:"100%"})})}np.displayName="Alert",rp.displayName="AlertIcon";var op=Lt((function(e,t){const n=ep(),{status:r}=Zf();return(0,oe.jsx)($r.div,{ref:t,"data-status":r,...e,className:G("chakra-alert__title",e.className),__css:n.title})}));op.displayName="AlertTitle";var ap=Lt((function(e,t){const n=ep(),{status:r}=Zf(),o={display:"inline",...n.description};return(0,oe.jsx)($r.div,{ref:t,"data-status":r,...e,className:G("chakra-alert__desc",e.className),__css:o})}));function ip(e){return(0,oe.jsx)(pa,{focusable:"false","aria-hidden":!0,...e,children:(0,oe.jsx)("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"})})}ap.displayName="AlertDescription";var sp=Lt((function(e,t){const n=Yr("CloseButton",e),{children:r,isDisabled:o,__css:a,...i}=xr(e);return(0,oe.jsx)($r.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...a},...i,children:r||(0,oe.jsx)(ip,{width:"1em",height:"1em"})})}));sp.displayName="CloseButton";var lp=function(e){let t=e;const n=new Set,r=e=>{t=e(t),n.forEach((e=>e()))};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{r((()=>e)),n.delete(t)}),removeToast:(e,t)=>{r((n=>({...n,[t]:n[t].filter((t=>t.id!=e))})))},notify:(e,t)=>{const n=function(e,t={}){var n,r;up+=1;const o=null!=(n=t.id)?n:up,a=null!=(r=t.position)?r:"bottom";return{id:o,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>lp.removeToast(String(o),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:o,id:a}=n;return r((e=>{var t,r;const a=o.includes("top")?[n,...null!=(t=e[o])?t:[]]:[...null!=(r=e[o])?r:[],n];return{...e,[o]:a}})),a},update:(e,t)=>{e&&r((n=>{const r={...n},{position:o,index:a}=ya(r,e);return o&&-1!==a&&(r[o][a]={...r[o][a],...t,message:dp(t)}),r}))},closeAll:({positions:e}={})=>{r((t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce(((e,n)=>(e[n]=t[n].map((e=>({...e,requestClose:!0}))),e)),{...t})))},close:e=>{r((t=>{const n=ba(t,e);return n?{...t,[n]:t[n].map((t=>t.id==e?{...t,requestClose:!0}:t))}:t}))},isActive:e=>Boolean(ya(lp.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),up=0,cp=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:a,onClose:i,description:s,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return(0,oe.jsxs)(np,{addRole:!1,status:t,variant:n,id:null==c?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,oe.jsx)(rp,{children:u}),(0,oe.jsxs)($r.div,{flex:"1",maxWidth:"100%",children:[o&&(0,oe.jsx)(op,{id:null==c?void 0:c.title,children:o}),s&&(0,oe.jsx)(ap,{id:null==c?void 0:c.description,display:"block",children:s})]}),a&&(0,oe.jsx)(sp,{size:"sm",onClick:i,position:"absolute",insetEnd:1,top:1})]})};function dp(e={}){const{render:t,toastComponent:n=cp}=e;return r=>"function"==typeof t?t({...r,...e}):(0,oe.jsx)(n,{...r,...e})}var fp=0;function pp(){var e=fp;return fp++,e}var hp=function(t){var n=t.children,r=t.initial,o=t.isPresent,a=t.onExitComplete,i=t.custom,s=t.presenceAffectsLayout,l=Ea(mp),u=Ea(pp),c=(0,e.useMemo)((function(){return{id:u,initial:r,isPresent:o,custom:i,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),o=r.next();!o.done;o=r.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),s?void 0:[o]);return(0,e.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[o]),e.useEffect((function(){!o&&!l.size&&(null==a||a())}),[o]),e.createElement(ka.Provider,{value:c},n)};function mp(){return new Map}function vp(e){return e.key||""}var gp=function(t){var n=t.children,r=t.custom,o=t.initial,a=void 0===o||o,i=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,u=void 0===l||l,c=ja(function(){var t=(0,e.useRef)(!1),n=ja((0,e.useState)(0),2),r=n[0],o=n[1];xd((function(){return t.current=!0}));var a=(0,e.useCallback)((function(){!t.current&&o(r+1)}),[r]);return[(0,e.useCallback)((function(){return hi.postRender(a)}),[a]),r]}(),1),d=c[0],f=(0,e.useContext)(hc).forceRender;f&&(d=f);var p=(0,e.useRef)(!0),h=(0,e.useRef)(!0);(0,e.useEffect)((function(){return function(){h.current=!1}}),[]);var m=function(t){var n=[];return e.Children.forEach(t,(function(t){(0,e.isValidElement)(t)&&n.push(t)})),n}(n),v=(0,e.useRef)(m),g=(0,e.useRef)(new Map).current,y=(0,e.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var n=vp(e);t.set(n,e)}))}(m,g),p.current)return p.current=!1,e.createElement(e.Fragment,null,m.map((function(t){return e.createElement(hp,{key:vp(t),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:u},t)})));for(var b=Fa([],ja(m),!1),x=v.current.map(vp),w=m.map(vp),S=x.length,k=0;k<S;k++){var E=x[k];-1===w.indexOf(E)?y.add(E):y.delete(E)}return s&&y.size&&(b=[]),y.forEach((function(t){if(-1===w.indexOf(t)){var n=g.get(t);if(n){var o=x.indexOf(t);b.splice(o,0,e.createElement(hp,{key:vp(n),isPresent:!1,onExitComplete:function(){g.delete(t),y.delete(t);var e=v.current.findIndex((function(e){return e.key===t}));if(v.current.splice(e,1),!y.size){if(v.current=m,!1===h.current)return;d(),i&&i()}},custom:r,presenceAffectsLayout:u},n))}}})),b=b.map((function(t){var n=t.key;return y.has(n)?t:e.createElement(hp,{key:vp(t),isPresent:!0,presenceAffectsLayout:u},t)})),v.current=b,e.createElement(e.Fragment,null,y.size?b:b.map((function(t){return(0,e.cloneElement)(t)})))},[yp,bp]=oo({strict:!1,name:"PortalManagerContext"});function xp(e){const{children:t,zIndex:n}=e;return(0,oe.jsx)(yp,{value:{zIndex:n},children:t})}xp.displayName="PortalManager";var wp=n(961),[Sp,kp]=oo({strict:!1,name:"PortalContext"}),Ep="chakra-portal",Cp=e=>(0,oe.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),_p=t=>{const{appendToParentPortal:n,children:r}=t,[o,a]=(0,e.useState)(null),i=(0,e.useRef)(null),[,s]=(0,e.useState)({});(0,e.useEffect)((()=>s({})),[]);const l=kp(),u=bp();re((()=>{if(!o)return;const e=o.ownerDocument,t=n&&null!=l?l:e.body;if(!t)return;i.current=e.createElement("div"),i.current.className=Ep,t.appendChild(i.current),s({});const r=i.current;return()=>{t.contains(r)&&t.removeChild(r)}}),[o]);const c=(null==u?void 0:u.zIndex)?(0,oe.jsx)(Cp,{zIndex:null==u?void 0:u.zIndex,children:r}):r;return i.current?(0,wp.createPortal)((0,oe.jsx)(Sp,{value:i.current,children:c}),i.current):(0,oe.jsx)("span",{ref:e=>{e&&a(e)}})},Pp=t=>{const{children:n,containerRef:r,appendToParentPortal:o}=t,a=r.current,i=null!=a?a:"undefined"!=typeof window?document.body:void 0,s=(0,e.useMemo)((()=>{const e=null==a?void 0:a.ownerDocument.createElement("div");return e&&(e.className=Ep),e}),[a]),[,l]=(0,e.useState)({});return re((()=>l({})),[]),re((()=>{if(s&&i)return i.appendChild(s),()=>{i.removeChild(s)}}),[s,i]),i&&s?(0,wp.createPortal)((0,oe.jsx)(Sp,{value:o?s:null,children:n}),s):null};function Tp(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?(0,oe.jsx)(Pp,{containerRef:n,...r}):(0,oe.jsx)(_p,{...r})}Tp.className=Ep,Tp.selector=".chakra-portal",Tp.displayName="Portal";var[Op,Ap]=oo({name:"ToastOptionsContext",strict:!1}),Rp=t=>{const n=(0,e.useSyncExternalStore)(lp.subscribe,lp.getState,lp.getState),{motionVariants:r,component:o=Gf,portalProps:a}=t,i=Object.keys(n).map((e=>{const t=n[e];return(0,oe.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:xa(e),children:(0,oe.jsx)(gp,{initial:!1,children:t.map((e=>(0,oe.jsx)(o,{motionVariants:r,...e},e.id)))})},e)}));return(0,oe.jsx)(Tp,{...a,children:i})};function zp(t){const{theme:n}=Gr(),r=Ap();return(0,e.useMemo)((()=>function(e,t){const n=n=>{var r;return{...t,...n,position:Xf(null!=(r=null==n?void 0:n.position)?r:null==t?void 0:t.position,e)}},r=e=>{const t=n(e),r=dp(t);return lp.notify(r,t)};return r.update=(e,t)=>{lp.update(e,n(t))},r.promise=(e,t)=>{const n=r({...t.loading,status:"loading",duration:null});e.then((e=>r.update(n,{status:"success",duration:5e3,...K(t.success,e)}))).catch((e=>r.update(n,{status:"error",duration:5e3,...K(t.error,e)})))},r.closeAll=lp.closeAll,r.close=lp.close,r.isActive=lp.isActive,r}(n.direction,{...r,...t})),[t,n.direction,r])}var jp=Lt((function(e,t){const{templateAreas:n,gap:r,rowGap:o,columnGap:a,column:i,row:s,autoFlow:l,autoRows:u,templateRows:c,autoColumns:d,templateColumns:f,...p}=e,h={display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:a,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:u,gridTemplateRows:c,gridTemplateColumns:f};return(0,oe.jsx)($r.div,{ref:t,__css:h,...p})}));jp.displayName="Grid";var Fp=Lt((function(e,t){const{columns:n,spacingX:r,spacingY:o,spacing:a,minChildWidth:i,...s}=e,l=Nt(),u=i?function(e,t){return ne(e,(e=>{const n=function(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return n=>{const a=o.filter(Boolean),i=r.map(((t,r)=>{var o,i;return"breakpoints"===e?function(e,t,n){var r,o;if(null==t)return t;const a=t=>{var n,r;return null==(r=null==(n=e.__breakpoints)?void 0:n.asArray)?void 0:r[t]};return null!=(o=null!=(r=a(t))?r:a(n))?o:n}(n,t,null!=(o=a[r])?o:t):function(e,t,n){var r,o;if(null==t)return t;const a=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.value};return null!=(o=null!=(r=a(t))?r:a(n))?o:n}(n,`${e}.${t}`,null!=(i=a[r])?i:t)}));return Array.isArray(t)?i:i[0]}}("sizes",e,"number"==typeof(r=e)?`${r}px`:r)(t);var r;return null===e?null:`repeat(auto-fit, minmax(${n}, 1fr))`}))}(i,l):ne(n,(e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`));return(0,oe.jsx)(jp,{ref:t,gap:a,columnGap:r,rowGap:o,templateColumns:u,...s})}));Fp.displayName="SimpleGrid";var Mp=$r("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Mp.displayName="Center";var Ip={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},Np=(Lt((function(e,t){const{axis:n="both",...r}=e;return(0,oe.jsx)($r.div,{ref:t,__css:Ip[n],...r,position:"absolute"})})),Lt((function(e,t){const{htmlWidth:n,htmlHeight:r,alt:o,...a}=e;return(0,oe.jsx)("img",{width:n,height:r,ref:t,alt:o,...a})})));function Dp(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}Np.displayName="NativeImage";var Lp=Lt((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:p,...h}=t,m=null!=u||c||!(void 0!==r||void 0!==o),v=function(t){const{loading:n,src:r,srcSet:o,onLoad:a,onError:i,crossOrigin:s,sizes:l,ignoreFallback:u}=t,[c,d]=(0,e.useState)("pending");(0,e.useEffect)((()=>{d(r?"loading":"pending")}),[r]);const f=(0,e.useRef)(),p=(0,e.useCallback)((()=>{if(!r)return;h();const e=new Image;e.src=r,s&&(e.crossOrigin=s),o&&(e.srcset=o),l&&(e.sizes=l),n&&(e.loading=n),e.onload=e=>{h(),d("loaded"),null==a||a(e)},e.onerror=e=>{h(),d("failed"),null==i||i(e)},f.current=e}),[r,s,o,l,a,i,n]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return re((()=>{if(!u)return"loading"===c&&p(),()=>{h()}}),[c,p,u]),u?"loaded":c}({...t,crossOrigin:d,ignoreFallback:m}),g=((e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t)(v,f),y={ref:n,objectFit:l,objectPosition:s,...m?h:Dp(h,["onError","onLoad"])};return g?o||(0,oe.jsx)($r.img,{as:Np,className:"chakra-image__placeholder",src:r,...y}):(0,oe.jsx)($r.img,{as:Np,src:a,srcSet:i,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...y})}));Lp.displayName="Image";var Bp=Object.defineProperty,$p=new class{constructor(){((e,t,n)=>{((e,t,n)=>{t in e?Bp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(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}};function Vp(t,n){const[r,o]=(0,e.useState)(0);return(0,e.useEffect)((()=>{const e=t.current;if(e){if(n){const t=$p.add(e);o(t)}return()=>{$p.remove(e),o(0)}}}),[n,t]),r}var Up=new WeakMap,Wp=new WeakMap,Hp={},qp=0,Qp=function(e){return e&&(e.host||Qp(e.parentNode))},Gp=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Qp(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Hp[n]||(Hp[n]=new WeakMap);var a=Hp[n],i=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Up.get(e)||0)+1,u=(a.get(e)||0)+1;Up.set(e,l),a.set(e,u),i.push(e),1===l&&o&&Wp.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return c(t),s.clear(),qp++,function(){i.forEach((function(e){var t=Up.get(e)-1,o=a.get(e)-1;Up.set(e,t),a.set(e,o),t||(Wp.has(e)||e.removeAttribute(r),Wp.delete(e)),o||e.removeAttribute(n)})),--qp||(Up=new WeakMap,Up=new WeakMap,Wp=new WeakMap,Hp={})}}(r,o,n,"aria-hidden")):function(){return null}};function Xp(t){const{isOpen:n,onClose:r,id:o,closeOnOverlayClick:a=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:l,onEsc:u}=t,c=(0,e.useRef)(null),d=(0,e.useRef)(null),[f,p,h]=function(t,...n){const r=(0,e.useId)(),o=t||r;return(0,e.useMemo)((()=>n.map((e=>`${e}-${o}`))),[o,n])}(o,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(t,n){const r=t.current;(0,e.useEffect)((()=>{if(t.current&&n)return Gp(t.current)}),[n,t,r])}(c,n&&s);const m=Vp(c,n),v=(0,e.useRef)(null),g=(0,e.useCallback)((e=>{v.current=e.target}),[]),y=(0,e.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),i&&(null==r||r()),null==u||u())}),[i,r,u]),[b,x]=(0,e.useState)(!1),[w,S]=(0,e.useState)(!1),k=(0,e.useCallback)(((e={},t=null)=>({role:"dialog",...e,ref:mo(t,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":b?p:void 0,"aria-describedby":w?h:void 0,onClick:ee(e.onClick,(e=>e.stopPropagation()))})),[h,w,f,p,b]),E=(0,e.useCallback)((e=>{e.stopPropagation(),v.current===e.target&&$p.isTopModal(c.current)&&(a&&(null==r||r()),null==l||l())}),[r,a,l]),C=(0,e.useCallback)(((e={},t=null)=>({...e,ref:mo(t,d),onClick:ee(e.onClick,E),onKeyDown:ee(e.onKeyDown,y),onMouseDown:ee(e.onMouseDown,g)})),[y,g,E]);return{isOpen:n,onClose:r,headerId:p,bodyId:h,setBodyMounted:S,setHeaderMounted:x,dialogRef:c,overlayRef:d,getDialogProps:k,getDialogContainerProps:C,index:m}}var[Kp,Yp]=oo({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[Zp,Jp]=oo({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),eh=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:p,onCloseComplete:h}=t,m=Zr("Modal",t),v={...Xp(t),autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p};return(0,oe.jsx)(Zp,{value:v,children:(0,oe.jsx)(Kp,{value:m,children:(0,oe.jsx)(gp,{onExitComplete:h,children:v.isOpen&&(0,oe.jsx)(Tp,{...n,children:r})})})})};eh.displayName="Modal";var th={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},nh={enter:{duration:.2,ease:th.easeOut},exit:{duration:.1,ease:th.easeIn}},rh=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),oh=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit}),ah={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:null!=(r=null==e?void 0:e.enter)?r:rh(nh.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:null!=(r=null==e?void 0:e.exit)?r:oh(nh.exit,n),transitionEnd:null==t?void 0:t.exit}}},ih={initial:"exit",animate:"enter",exit:"exit",variants:ah},sh=(0,e.forwardRef)((function(e,t){const{unmountOnExit:n,in:r,className:o,transition:a,transitionEnd:i,delay:s,...l}=e,u=r||n?"enter":"exit",c=!n||r&&n,d={transition:a,transitionEnd:i,delay:s};return(0,oe.jsx)(gp,{custom:d,children:c&&(0,oe.jsx)(qf.div,{ref:t,className:G("chakra-fade",o),custom:d,...ih,animate:u,...l})})}));sh.displayName="Fade";var lh=$r(qf.div),uh=Lt(((e,t)=>{const{className:n,transition:r,motionProps:o,...a}=e,i=G("chakra-modal__overlay",n),s={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Yp().overlay},{motionPreset:l}=Jp(),u=o||("none"===l?{}:ih);return(0,oe.jsx)(lh,{...u,__css:s,ref:t,className:i,...a})}));uh.displayName="ModalOverlay";var ch={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>{var a;return{opacity:0,x:e,y:t,transition:null!=(a=null==n?void 0:n.exit)?a:oh(nh.exit,o),transitionEnd:null==r?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:null!=(r=null==e?void 0:e.enter)?r:rh(nh.enter,n),transitionEnd:null==t?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:null!=(i=null==n?void 0:n.exit)?i:oh(nh.exit,a),...o?{...s,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...s,...null==r?void 0:r.exit}}}}},dh={initial:"initial",animate:"enter",exit:"exit",variants:ch},fh=(0,e.forwardRef)((function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,className:a,offsetX:i=0,offsetY:s=8,transition:l,transitionEnd:u,delay:c,...d}=e,f=!n||r&&n,p=r||n?"enter":"exit",h={offsetX:i,offsetY:s,reverse:o,transition:l,transitionEnd:u,delay:c};return(0,oe.jsx)(gp,{custom:h,children:f&&(0,oe.jsx)(qf.div,{ref:t,className:G("chakra-offset-slide",a),custom:h,...dh,animate:p,...d})})}));fh.displayName="SlideFade";var ph={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:t,...null==r?void 0:r.exit}},transition:null!=(a=null==n?void 0:n.exit)?a:oh(nh.exit,o)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:null!=(r=null==t?void 0:t.enter)?r:rh(nh.enter,n),transitionEnd:null==e?void 0:e.enter}}},hh={initial:"exit",animate:"enter",exit:"exit",variants:ph},mh=(0,e.forwardRef)((function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,initialScale:a=.95,className:i,transition:s,transitionEnd:l,delay:u,...c}=e,d=!n||r&&n,f=r||n?"enter":"exit",p={initialScale:a,reverse:o,transition:s,transitionEnd:l,delay:u};return(0,oe.jsx)(gp,{custom:p,children:d&&(0,oe.jsx)(qf.div,{ref:t,className:G("chakra-offset-slide",i),...hh,animate:f,custom:p,...c})})}));mh.displayName="ScaleFade";var vh={slideInBottom:{...dh,custom:{offsetY:16,reverse:!0}},slideInRight:{...dh,custom:{offsetX:16,reverse:!0}},slideInTop:{...dh,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...dh,custom:{offsetX:-16,reverse:!0}},scale:{...hh,custom:{initialScale:.95,reverse:!0}},none:{}},gh=$r(qf.section),yh=e=>vh[e||"none"],bh=(0,e.forwardRef)(((e,t)=>{const{preset:n,motionProps:r=yh(n),...o}=e;return(0,oe.jsx)(gh,{ref:t,...r,...o})}));bh.displayName="ModalTransition";var xh="data-focus-lock",wh="data-focus-lock-disabled";function Sh(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var kh="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Eh=new WeakMap;function Ch(t,n){var r,o,a,i=(r=n||null,o=function(e){return t.forEach((function(t){return Sh(t,e)}))},(a=(0,e.useState)((function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=o,a.facade);return kh((function(){var e=Eh.get(i);if(e){var n=new Set(e),r=new Set(t),o=i.current;n.forEach((function(e){r.has(e)||Sh(e,null)})),r.forEach((function(e){n.has(e)||Sh(e,o)}))}Eh.set(i,t)}),[t]),i}var _h={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function Ph(e){return e}function Th(e,t){void 0===t&&(t=Ph);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(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return o}function Oh(e,t){return void 0===t&&(t=Ph),Th(e,t)}function Ah(e){void 0===e&&(e={});var t=Th(null);return t.options=Ra({async:!0,ssr:!1},e),t}var Rh=Oh({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),zh=Oh(),jh=Oh(),Fh=Ah({async:!0,ssr:"undefined"!=typeof document}),Mh=(0,e.createContext)(void 0),Ih=[],Nh=(0,e.forwardRef)((function(n,r){var o,a=(0,e.useState)(),i=a[0],s=a[1],l=(0,e.useRef)(),u=(0,e.useRef)(!1),c=(0,e.useRef)(null),d=(0,e.useState)({})[1],f=n.children,p=n.disabled,h=void 0!==p&&p,m=n.noFocusGuards,v=void 0!==m&&m,g=n.persistentFocus,y=void 0!==g&&g,b=n.crossFrame,x=void 0===b||b,w=n.autoFocus,S=void 0===w||w,k=(n.allowTextSelection,n.group),E=n.className,C=n.whiteList,_=n.hasPositiveIndices,P=n.shards,T=void 0===P?Ih:P,O=n.as,A=void 0===O?"div":O,R=n.lockProps,z=void 0===R?{}:R,j=n.sideCar,F=n.returnFocus,M=void 0!==F&&F,I=n.focusOptions,N=n.onActivation,D=n.onDeactivation,L=(0,e.useState)({})[0],B=(0,e.useCallback)((function(e){var t=e.captureFocusRestore;if(!c.current){var n,r=null==(n=document)?void 0:n.activeElement;c.current=r,r!==document.body&&(c.current=t(r))}l.current&&N&&N(l.current),u.current=!0,d()}),[N]),$=(0,e.useCallback)((function(){u.current=!1,D&&D(l.current),d()}),[D]),V=(0,e.useCallback)((function(e){var t=c.current;if(t){var n=("function"==typeof t?t():t)||document.body,r="function"==typeof M?M(n):M;if(r){var o="object"==typeof r?r:void 0;c.current=null,e?Promise.resolve().then((function(){return n.focus(o)})):n.focus(o)}}}),[M]),U=(0,e.useCallback)((function(e){u.current&&Rh.useMedium(e)}),[]),W=zh.useMedium,H=(0,e.useCallback)((function(e){l.current!==e&&(l.current=e,s(e))}),[]),q=lt(((o={})[wh]=h&&"disabled",o[xh]=k,o),z),Q=!0!==v,G=Q&&"tail"!==v,X=Ch([r,H]),K=(0,e.useMemo)((function(){return{observed:l,shards:T,enabled:!h,active:u.current}}),[h,u.current,T,i]);return t().createElement(e.Fragment,null,Q&&[t().createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:h?-1:0,style:_h}),_?t().createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:h?-1:1,style:_h}):null],!h&&t().createElement(j,{id:L,sideCar:Fh,observed:i,disabled:h,persistentFocus:y,crossFrame:x,autoFocus:S,whiteList:C,shards:T,onActivation:B,onDeactivation:$,returnFocus:V,focusOptions:I,noFocusGuards:v}),t().createElement(A,lt({ref:X},q,{className:E,onBlur:W,onFocus:U}),t().createElement(Mh.Provider,{value:K},f)),G&&t().createElement("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:_h}))}));Nh.propTypes={};const Dh=Nh;function Lh(e,t){return Lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lh(e,t)}function Bh(e){return Bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bh(e)}var $h=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},Vh=function(e){return Array.isArray(e)?e:[e]},Uh=function(e){return Array.isArray(e)?e[0]:e},Wh=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Hh=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},qh=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!e||Hh(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&t(Wh(e))}(t,qh.bind(void 0,e));return e.set(t,r),r},Qh=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!(e&&!Hh(e))||!!Yh(e)&&t(Wh(e))}(t,Qh.bind(void 0,e));return e.set(t,r),r},Gh=function(e){return e.dataset},Xh=function(e){return"INPUT"===e.tagName},Kh=function(e){return Xh(e)&&"radio"===e.type},Yh=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},Zh=function(e){var t;return Boolean(e&&(null===(t=Gh(e))||void 0===t?void 0:t.focusGuard))},Jh=function(e){return!Zh(e)},em=function(e){return Boolean(e)},tm=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),o=n-r,a=e.index-t.index;if(o){if(!n)return 1;if(!r)return-1}return o||a},nm=function(e,t,n){return $h(e).map((function(e,t){var r=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:n&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}})).filter((function(e){return!t||e.tabIndex>=0})).sort(tm)},rm=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),om="".concat(rm,", [data-focus-guard]"),am=function(e,t){return $h((e.shadowRoot||e).children).reduce((function(e,n){return e.concat(n.matches(t?om:rm)?[n]:[],am(n))}),[])},im=function(e,t){return e.reduce((function(e,n){var r,o=am(n,t),a=(r=[]).concat.apply(r,o.map((function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?im([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(a,n.parentNode?$h(n.parentNode.querySelectorAll(rm)).filter((function(e){return e===n})):[])}),[])},sm=function(e,t){return $h(e).filter((function(e){return qh(t,e)})).filter((function(e){return function(e){return!((Xh(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},lm=function(e,t){return void 0===t&&(t=new Map),$h(e).filter((function(e){return Qh(t,e)}))},um=function(e,t,n){return nm(sm(im(e,n),t),!0,n)},cm=function(e,t){return nm(sm(im(e),t),!1)},dm=function(e,t){return e.shadowRoot?dm(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||$h(e.children).some((function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&dm(r,t)}return dm(e,t)}))},fm=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?fm(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?fm(t.contentWindow.document):t}},pm=function(e){return e.parentNode?pm(e.parentNode):e},hm=function(e){return Vh(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(xh);return e.push.apply(e,n?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(e,n){return!t.has(n)}))}($h(pm(t).querySelectorAll("[".concat(xh,'="').concat(n,'"]:not([').concat(wh,'="disabled"])')))):[t]),e}),[])},mm=function(e,t){return void 0===t&&(t=fm(Uh(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&hm(e).some((function(e){return dm(e,t)||function(e,t){return Boolean($h(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},vm=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},gm=function(e,t){return Kh(e)&&e.name?function(e,t){return t.filter(Kh).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},ym=function(e){return e[0]&&e.length>1?gm(e[0],e):e[0]},bm=function(e,t){return e.indexOf(gm(t,e))},xm="NEW_FOCUS",wm=function(e,t,n){var r,o=e.map((function(e){return e.node})),a=lm(o.filter((r=n,function(e){var t,n=null===(t=Gh(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return a&&a.length?ym(a):ym(lm(t))},Sm=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Sm(e.parentNode.host||e.parentNode,t),t},km=function(e,t){for(var n=Sm(e),r=Sm(t),o=0;o<n.length;o+=1){var a=n[o];if(r.indexOf(a)>=0)return a}return!1},Em=function(e,t,n){var r=Vh(e),o=Vh(t),a=r[0],i=!1;return o.filter(Boolean).forEach((function(e){i=km(i||e,e)||i,n.filter(Boolean).forEach((function(e){var t=km(a,e);t&&(i=!i||dm(t,i)?t:km(t,i))}))})),i},Cm=function(e,t){return e.reduce((function(e,n){return e.concat(function(e,t){return sm((n=e.querySelectorAll("[".concat("data-autofocus-inside","]")),$h(n).map((function(e){return im([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n}(n,t))}),[])},_m=function(e,t){var n=fm(Vh(e).length>0?document:Uh(e).ownerDocument),r=hm(e).filter(Jh),o=Em(n||e,e,r),a=new Map,i=cm(r,a),s=i.filter((function(e){var t=e.node;return Jh(t)}));if(s[0]){var l,u,c,d=cm([o],a).map((function(e){return e.node})),f=(l=d,u=s,c=new Map,u.forEach((function(e){return c.set(e.node,e)})),l.map((function(e){return c.get(e)})).filter(em)),p=f.map((function(e){return e.node})),h=f.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),m=function(e,t,n,r,o){var a=e.length,i=e[0],s=e[a-1],l=Zh(r);if(!(r&&e.indexOf(r)>=0)){var u=void 0!==r?n.indexOf(r):-1,c=o?n.indexOf(o):u,d=o?e.indexOf(o):-1;if(-1===u)return-1!==d?d:xm;if(-1===d)return xm;var f,p,h=u-c,m=n.indexOf(i),v=n.indexOf(s),g=(f=n,p=new Set,f.forEach((function(e){return p.add(gm(e,f))})),f.filter((function(e){return p.has(e)}))),y=void 0!==r?g.indexOf(r):-1,b=o?g.indexOf(o):y,x=g.filter((function(e){return e.tabIndex>=0})),w=void 0!==r?x.indexOf(r):-1,S=o?x.indexOf(o):w,k=w>=0&&S>=0?S-w:b-y;if(!h&&d>=0)return d;if(0===t.length)return d;var E=bm(e,t[0]),C=bm(e,t[t.length-1]);return u<=m&&l&&Math.abs(h)>1?C:u>=v&&l&&Math.abs(h)>1?E:h&&Math.abs(k)>1?d:u<=m?C:u>v?E:h?Math.abs(h)>1?d:(a+d+h)%a:void 0}}(p,h,d,n,t);if(m===xm){var v=wm(i,h,Cm(r,a))||wm(i,p,Cm(r,a));return v?{node:v}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===m?m:f[m]}},Pm=0,Tm=!1,Om=function(e,t,n){void 0===n&&(n={});var r=_m(e,t);if(!Tm&&r){if(Pm>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Tm=!0,void setTimeout((function(){Tm=!1}),1);Pm++,vm(r.node,n.focusOptions),Pm--}};function Am(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var Rm=function(e){var t=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Am(n),parent:Am(n.parentElement),left:Am(n.previousElementSibling),right:Am(n.nextElementSibling)}),n=n.parentElement;return{element:Am(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,n,r,o,a;if(e)for(var i=e.stack,s=e.ownerDocument,l=new Map,u=0,c=i;u<c.length;u++){var d=c[u],f=null===(t=d.parent)||void 0===t?void 0:t.call(d);if(f&&s.contains(f)){for(var p=null===(n=d.left)||void 0===n?void 0:n.call(d),h=d.current(),m=f.contains(h)?h:void 0,v=null===(r=d.right)||void 0===r?void 0:r.call(d),g=um([f],l),y=null!==(a=null!==(o=null!=m?m:null==p?void 0:p.nextElementSibling)&&void 0!==o?o:v)&&void 0!==a?a:p;y;){for(var b=0,x=g;b<x.length;b++){var w=x[b];if(null==y?void 0:y.contains(w.node))return w.node}y=y.nextElementSibling}if(g.length)return g[0].node}}}(t)}},zm=function(e,t,n){void 0===t&&(t={});var r=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(t),o=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=Vh(t);if(r.every((function(t){return!dm(t,e)})))return console.error("Active element is not contained in the scope"),{};var o=n?um(r,new Map):cm(r,new Map),a=o.findIndex((function(t){return t.node===e}));return-1!==a?{prev:o[a-1],next:o[a+1],first:o[0],last:o[o.length-1]}:void 0}(e,r.scope,r.onlyTabbable);if(o){var a=n(o,r.cycle);a&&vm(a.node,r.focusOptions)}},jm=function(e,t,n){var r,o,a,i,s=(o=e,a=null===(r=t.onlyTabbable)||void 0===r||r,{first:(i=a?um(Vh(o),new Map):cm(Vh(o),new Map))[0],last:i[i.length-1]})[n];s&&vm(s.node,t.focusOptions)};function Fm(e){setTimeout(e,1)}var Mm=function(e){return e&&"current"in e?e.current:e},Im=function(){return document&&document.activeElement===document.body},Nm=null,Dm=null,Lm=function(){return null},Bm=null,$m=!1,Vm=!1,Um=function(){return!0};function Wm(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)break;if(a!==e)return;o=null}}while((a+=n)!==t);o&&(o.node.tabIndex=0)}var Hm=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},qm=function(e){return cm(e,new Map)},Qm=function(){var e,t,n,r,o,a,i=!1;if(Nm){var s=Nm,l=s.observed,u=s.persistentFocus,c=s.autoFocus,d=s.shards,f=s.crossFrame,p=s.focusOptions,h=s.noFocusGuards,m=l||Bm&&Bm.portaledElement;if(Im()&&Dm&&Dm!==document.body&&(!document.body.contains(Dm)||function(e){return!qm([e.parentNode]).some((function(t){return t.node===e}))}(Dm))){var v=Lm();v&&v.focus()}var g=document&&document.activeElement;if(m){var y=[m].concat(d.map(Mm).filter(Boolean));if(g&&!function(e){return(Nm.whiteList||Um)(e)}(g)||(u||function(){if(!(f?Boolean($m):"meanwhile"===$m)||!h||!Dm||Vm)return!1;var e=qm(y),t=e.findIndex((function(e){return e.node===Dm}));return 0===t||t===e.length-1}()||!(Im()||function(e){void 0===e&&(e=document);var t=fm(e);return!!t&&$h(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return dm(e,t)}))}())||!Dm&&c)&&(m&&!(mm(y)||g&&function(e,t){return t.some((function(t){return Hm(e,t,t)}))}(g,y)||(a=g,Bm&&Bm.portaledElement===a))&&(document&&!Dm&&g&&!c?(g.blur&&g.blur(),document.body.focus()):(i=Om(y,Dm,{focusOptions:p}),Bm={})),(Dm=document&&document.activeElement)!==document.body&&(Lm=Rm(Dm)),$m=!1),document&&g!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var b=document&&document.activeElement,x=(t=hm(e=y).filter(Jh),n=Em(e,e,t),r=nm(im([n],!0),!0,!0),o=im(t,!1),r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:Zh(t)}}))),w=x.map((function(e){return e.node})).indexOf(b);w>-1&&(x.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Wm(w,x.length,1,x),Wm(w,-1,-1,x))}}}return i},Gm=function(e){Qm()&&e&&(e.stopPropagation(),e.preventDefault())},Xm=function(){return Fm(Qm)},Km=function(){Vm=!0},Ym=function(){Vm=!1,$m="just",Fm((function(){$m="meanwhile"}))},Zm={moveFocusInside:Om,focusInside:mm,focusNextElement:function(e,t){void 0===t&&(t={}),zm(e,t,(function(e,t){var n=e.next,r=e.first;return n||t&&r}))},focusPrevElement:function(e,t){void 0===t&&(t={}),zm(e,t,(function(e,t){var n=e.prev,r=e.last;return n||t&&r}))},focusFirstElement:function(e,t){void 0===t&&(t={}),jm(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),jm(e,t,"last")},captureFocusRestore:Rm};Rh.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Bm={observerNode:n,portaledElement:t})})),zh.assignMedium(Xm),jh.assignMedium((function(e){return e(Zm)}));const Jm=(ev=function(e){return e.filter((function(e){return!e.disabled}))},tv=function(e){var t=e.slice(-1)[0];t&&!Nm&&(document.addEventListener("focusin",Gm),document.addEventListener("focusout",Xm),window.addEventListener("focus",Km),window.addEventListener("blur",Ym));var n=Nm,r=n&&t&&t.id===n.id;Nm=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Dm=null,r&&n.observed===t.observed||t.onActivation(Zm),Qm(),Fm(Qm)):(document.removeEventListener("focusin",Gm),document.removeEventListener("focusout",Xm),window.removeEventListener("focus",Km),window.removeEventListener("blur",Ym),Dm=null)},function(n){var r,o=[];function a(){r=ev(o.map((function(e){return e.props}))),tv(r)}var i=function(e){function i(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lh(e,t)}(i,e),i.peek=function(){return r};var s=i.prototype;return s.componentDidMount=function(){o.push(this),a()},s.componentDidUpdate=function(){a()},s.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),a()},s.render=function(){return t().createElement(n,this.props)},i}(e.PureComponent);return function(e,t,n){(t=function(e){var t=function(e){if("object"!=Bh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bh(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(i,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),i})((function(){return null}));var ev,tv,nv=(0,e.forwardRef)((function(e,n){return t().createElement(Dh,lt({sideCar:Jm,ref:n},e))})),rv=Dh.propTypes||{};rv.sideCar,function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}}(rv,["sideCar"]),nv.propTypes={};const ov=nv;function av(e){return!(!e.parentElement||!av(e.parentElement))||e.hidden}function iv(e){if(!function(e){var t;return!!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(e)&&e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}(e)||av(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||(e=>e.hasAttribute("tabindex"))(e)}var sv,lv=["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]"].join();var uv=null!=(sv=ov.default)?sv:ov,cv=t=>{const{initialFocusRef:n,finalFocusRef:r,contentRef:o,restoreFocus:a,children:i,isDisabled:s,autoFocus:l,persistentFocus:u,lockFocusAcrossFrames:c}=t,d=(0,e.useCallback)((()=>{(null==n?void 0:n.current)?n.current.focus():(null==o?void 0:o.current)&&0===function(e){const t=Array.from(e.querySelectorAll(lv));return t.unshift(e),t.filter((e=>iv(e)&&(e=>e.offsetWidth>0&&e.offsetHeight>0)(e)))}(o.current).length&&requestAnimationFrame((()=>{var e;null==(e=o.current)||e.focus()}))}),[n,o]),f=(0,e.useCallback)((()=>{var e;null==(e=null==r?void 0:r.current)||e.focus()}),[r]),p=a&&!r;return(0,oe.jsx)(uv,{crossFrame:c,persistentFocus:u,autoFocus:l,disabled:s,onActivation:d,onDeactivation:f,returnFocus:p,children:i})};cv.displayName="FocusLock";var dv="right-scroll-bar-position",fv="width-before-scroll-bar",pv=Ah(),hv=function(){},mv=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:hv,onWheelCapture:hv,onTouchMoveCapture:hv}),a=o[0],i=o[1],s=t.forwardProps,l=t.children,u=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,h=t.noRelative,m=t.noIsolation,v=t.inert,g=t.allowPinchZoom,y=t.as,b=void 0===y?"div":y,x=t.gapMode,w=za(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,k=Ch([r,n]),E=Ra(Ra({},w),a);return e.createElement(e.Fragment,null,d&&e.createElement(S,{sideCar:pv,removeScrollBar:c,shards:f,noRelative:h,noIsolation:m,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:r,gapMode:x}),s?e.cloneElement(e.Children.only(l),Ra(Ra({},E),{ref:k})):e.createElement(b,Ra({},E,{className:u,ref:k}),l))}));mv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},mv.classNames={fullWidth:fv,zeroRight:dv};var vv=function(t){var n=t.sideCar,r=za(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,Ra({},r))};vv.isSideCarExport=!0;var gv=function(){var e=0,t=null;return{add:function(r){var o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,r),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yv=function(){var t,n=(t=gv(),function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},bv={left:0,top:0,right:0,gap:0},xv=function(e){return parseInt(e||"",10)||0},wv=yv(),Sv="data-scroll-locked",kv=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(Sv,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(dv," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(fv," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(dv," .").concat(dv," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(fv," .").concat(fv," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(Sv,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Ev=function(){var e=parseInt(document.body.getAttribute(Sv)||"0",10);return isFinite(e)?e:0},Cv=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,a=void 0===o?"margin":o;e.useEffect((function(){return document.body.setAttribute(Sv,(Ev()+1).toString()),function(){var e=Ev()-1;e<=0?document.body.removeAttribute(Sv):document.body.setAttribute(Sv,e.toString())}}),[]);var i=e.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return bv;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[xv(n),xv(r),xv(o)]}(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])}}(a)}),[a]);return e.createElement(wv,{styles:kv(i,!n,a,r?"":"!important")})},_v=!1;if("undefined"!=typeof window)try{var Pv=Object.defineProperty({},"passive",{get:function(){return _v=!0,!0}});window.addEventListener("test",Pv,Pv),window.removeEventListener("test",Pv,Pv)}catch(e){_v=!1}var Tv=!!_v&&{passive:!1},Ov=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Av=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Rv(e,r)){var o=zv(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Rv=function(e,t){return"v"===e?function(e){return Ov(e,"overflowY")}(t):function(e){return Ov(e,"overflowX")}(t)},zv=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},jv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fv=function(e){return[e.deltaX,e.deltaY]},Mv=function(e){return e&&"current"in e?e.current:e},Iv=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Nv=0,Dv=[];function Lv(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bv=($v=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),a=e.useState(Nv++)[0],i=e.useState(yv)[0],s=e.useRef(t);e.useEffect((function(){s.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var e=Fa([t.lockRef.current],(t.shards||[]).map(Mv),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,a=jv(e),i=r.current,l="deltaX"in e?e.deltaX:i[0]-a[0],u="deltaY"in e?e.deltaY:i[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=Av(d,c);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=Av(d,c)),!f)return!1;if(!o.current&&"changedTouches"in e&&(l||u)&&(o.current=n),!n)return!0;var p=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,u=a>0,c=0,d=0;do{if(!i)break;var f=zv(e,i),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&Rv(e,i)&&(c+=h,d+=p);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(u&&(Math.abs(c)<1||!1)||!u&&(Math.abs(d)<1||!1))&&(l=!0),l}(p,t,e,"h"===p?l:u)}),[]),u=e.useCallback((function(e){var t=e;if(Dv.length&&Dv[Dv.length-1]===i){var r="deltaY"in t?Fv(t):jv(t),o=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var a=(s.current.shards||[]).map(Mv).filter(Boolean).filter((function(e){return e.contains(t.target)}));(a.length>0?l(t,a[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),c=e.useCallback((function(e,t,r,o){var a={name:e,delta:t,target:r,should:o,shadowParent:Lv(r)};n.current.push(a),setTimeout((function(){n.current=n.current.filter((function(e){return e!==a}))}),1)}),[]),d=e.useCallback((function(e){r.current=jv(e),o.current=void 0}),[]),f=e.useCallback((function(e){c(e.type,Fv(e),e.target,l(e,t.lockRef.current))}),[]),p=e.useCallback((function(e){c(e.type,jv(e),e.target,l(e,t.lockRef.current))}),[]);e.useEffect((function(){return Dv.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Tv),document.addEventListener("touchmove",u,Tv),document.addEventListener("touchstart",d,Tv),function(){Dv=Dv.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,Tv),document.removeEventListener("touchmove",u,Tv),document.removeEventListener("touchstart",d,Tv)}}),[]);var h=t.removeScrollBar,m=t.inert;return e.createElement(e.Fragment,null,m?e.createElement(i,{styles:Iv(a)}):null,h?e.createElement(Cv,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},pv.useMedium($v),vv);var $v,Vv=e.forwardRef((function(t,n){return e.createElement(mv,Ra({},t,{ref:n,sideCar:Bv}))}));Vv.classNames=mv.classNames;const Uv=Vv;function Wv(t){const{autoFocus:n,trapFocus:r,dialogRef:o,initialFocusRef:a,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:l,returnFocusOnClose:u,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:f}=Jp(),[p,h]=Ca();(0,e.useEffect)((()=>{!p&&h&&setTimeout(h)}),[p,h]);const m=Vp(o,f);return(0,oe.jsx)(cv,{autoFocus:n,isDisabled:!r,initialFocusRef:a,finalFocusRef:l,restoreFocus:u,contentRef:o,lockFocusAcrossFrames:d,children:(0,oe.jsx)(Uv,{removeScrollBar:!c,allowPinchZoom:s,enabled:1===m&&i,forwardProps:!0,children:t.children})})}var Hv=Lt(((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:a,...i}=e,{getDialogProps:s,getDialogContainerProps:l}=Jp(),u=s(i,t),c=l(o),d=G("chakra-modal__content",n),f=Yp(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},h={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{motionPreset:m}=Jp();return(0,oe.jsx)(Wv,{children:(0,oe.jsx)($r.div,{...c,className:"chakra-modal__content-container",tabIndex:-1,__css:h,children:(0,oe.jsx)(bh,{preset:m,motionProps:a,className:d,...u,__css:p,children:r})})})}));Hv.displayName="ModalContent";var qv=Lt(((t,n)=>{const{className:r,...o}=t,{headerId:a,setHeaderMounted:i}=Jp();(0,e.useEffect)((()=>(i(!0),()=>i(!1))),[i]);const s=G("chakra-modal__header",r),l={flex:0,...Yp().header};return(0,oe.jsx)($r.header,{ref:n,className:s,id:a,...o,__css:l})}));qv.displayName="ModalHeader";var Qv=Lt(((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:a}=Jp(),i=G("chakra-modal__close-btn",r),s=Yp();return(0,oe.jsx)(sp,{ref:t,__css:s.closeButton,className:i,onClick:ee(n,(e=>{e.stopPropagation(),a()})),...o})}));Qv.displayName="ModalCloseButton";var Gv=Lt(((t,n)=>{const{className:r,...o}=t,{bodyId:a,setBodyMounted:i}=Jp();(0,e.useEffect)((()=>(i(!0),()=>i(!1))),[i]);const s=G("chakra-modal__body",r),l=Yp();return(0,oe.jsx)($r.div,{ref:n,className:s,id:a,...o,__css:l.body})}));Gv.displayName="ModalBody";var Xv=Lt(((e,t)=>{const{className:n,...r}=e,o=G("chakra-modal__footer",n),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...Yp().footer};return(0,oe.jsx)($r.footer,{ref:t,...r,__css:a,className:o})}));Xv.displayName="ModalFooter";const Kv=(e,t)=>{let n,r,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(n=e.namespace.replace(/^\/|\/$/g,""),r=e.endpoint.replace(/^\//,""),o=r?n+"/"+r:n),delete e.namespace,delete e.endpoint,t({...e,path:o})};function Yv(e){const t=e.split("?"),n=t[1],r=t[0];return n?r+"?"+n.split("&").map((e=>e.split("="))).map((e=>e.map(decodeURIComponent))).sort(((e,t)=>e[0].localeCompare(t[0]))).map((e=>e.map(encodeURIComponent))).map((e=>e.join("="))).join("&"):r}function Zv(e){try{return decodeURIComponent(e)}catch(t){return e}}function Jv(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[n,r=""]=t.split("=").filter(Boolean).map(Zv);return n&&function(e,t,n){const r=t.length,o=r-1;for(let a=0;a<r;a++){let r=t[a];!r&&Array.isArray(e)&&(r=e.length.toString()),r=["__proto__","constructor","prototype"].includes(r)?r.toUpperCase():r;const i=!isNaN(Number(t[a+1]));e[r]=a===o?n:e[r]||(i?[]:{}),Array.isArray(e[r])&&!i&&(e[r]={...e[r]}),e=e[r]}}(e,n.replace(/\]/g,"").split("["),r),e}),Object.create(null))}function eg(e,t){return Jv(e)[t]}function tg(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;const r=e.indexOf("?");return-1!==r&&(t=Object.assign(Jv(e),t),n=n.substr(0,r)),n+"?"+function(e){let t="";const n=Object.entries(e);let r;for(;r=n.shift();){let[e,o]=r;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[r,o]of t)n.unshift([`${e}[${r}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}(t)}const ng=(e,t)=>{let{path:n,url:r,...o}=e;return{...o,url:r&&tg(r,t),path:n&&tg(n,t)}},rg=e=>e.json?e.json():Promise.reject(e),og=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t},ag=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),n=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||n})(e))return t(e);const n=await gg({...ng(e,{per_page:100}),parse:!1}),r=await rg(n);if(!Array.isArray(r))return r;let o=og(n);if(!o)return r;let a=[].concat(r);for(;o;){const t=await gg({...e,path:void 0,url:o,parse:!1}),n=await rg(t);a=a.concat(n),o=og(t)}return a},ig=new Set(["PATCH","PUT","DELETE"]),sg="GET";function lg(e,t){return void 0!==eg(e,t)}const ug=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?e:204===e.status?null:e.json?e.json():Promise.reject(e)}(e,t)).catch((e=>cg(e,t)))};function cg(e){if(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])throw e;return(e=>{const t={code:"invalid_json",message:Q("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((()=>{throw t}))})(e).then((e=>{const t={code:"unknown_error",message:Q("An unknown error occurred.")};throw e||t}))}const dg={Accept:"application/json, */*;q=0.1"},fg={credentials:"include"},pg=[(e,t)=>("string"!=typeof e.url||lg(e.url,"_locale")||(e.url=tg(e.url,{_locale:"user"})),"string"!=typeof e.path||lg(e.path,"_locale")||(e.path=tg(e.path,{_locale:"user"})),t(e)),Kv,(e,t)=>{const{method:n=sg}=e;return ig.has(n.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":n,"Content-Type":"application/json"},method:"POST"}),t(e)},ag],hg=e=>{if(e.status>=200&&e.status<300)return e;throw e};let mg=e=>{const{url:t,path:n,data:r,parse:o=!0,...a}=e;let{body:i,headers:s}=e;return s={...dg,...s},r&&(i=JSON.stringify(r),s["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,{...fg,...a,body:i,headers:s}).then((e=>Promise.resolve(e).then(hg).catch((e=>cg(e,o))).then((e=>ug(e,o)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:Q("You are probably offline.")}}))};function vg(e){const t=pg.reduceRight(((e,t)=>n=>t(n,e)),mg);return t(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(vg.nonceEndpoint).then(hg).then((e=>e.text())).then((t=>(vg.nonceMiddleware.nonce=t,vg(e))))))}vg.use=function(e){pg.unshift(e)},vg.setFetchHandler=function(e){mg=e},vg.createNonceMiddleware=function(e){const t=(e,n)=>{const{headers:r={}}=e;for(const o in r)if("x-wp-nonce"===o.toLowerCase()&&r[o]===t.nonce)return n(e);return n({...e,headers:{...r,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},vg.createPreloadingMiddleware=function(e){const t=Object.keys(e).reduce(((t,n)=>(t[Yv(n)]=e[n],t)),{});return(e,n)=>{const{parse:r=!0}=e;let o=e.path;if(!o&&e.url){const t=eg(e.url,"rest_route");"string"==typeof t&&(o=t)}if("string"==typeof o){const n=e.method||"GET",a=Yv(o);if("GET"===n&&t[a]){const e=t[a];return delete t[a],Promise.resolve(r?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}if("OPTIONS"===n&&t[n]&&t[n][a]){const e=t[n][a];return delete t[n][a],Promise.resolve(r?e.body:e)}}return n(e)}},vg.createRootURLMiddleware=e=>(t,n)=>Kv(t,(t=>{let r,o=t.url,a=t.path;return"string"==typeof a&&(r=e,-1!==e.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeof r&&-1!==r.indexOf("?")&&(a=a.replace("?","&")),o=r+a),n({...t,url:o})})),vg.fetchAllMiddleware=ag,vg.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let n=0;const r=e=>(n++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>n<5?r(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{const n=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&n?r(n).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:Q("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):cg(t,e.parse)})).then((t=>ug(t,e.parse)))};const gg=vg;var yg=Lt((function(e,t){const{borderLeftWidth:n,borderBottomWidth:r,borderTopWidth:o,borderRightWidth:a,borderWidth:i,borderStyle:s,borderColor:l,...u}=Yr("Divider",e),{className:c,orientation:d="horizontal",__css:f,...p}=xr(e),h={vertical:{borderLeftWidth:n||a||i||"1px",height:"100%"},horizontal:{borderBottomWidth:r||o||i||"1px",width:"100%"}};return(0,oe.jsx)($r.hr,{ref:t,"aria-orientation":d,...p,__css:{...u,border:"0",borderColor:l,borderStyle:s,...h[d],...f},className:G("chakra-divider",c)})}));yg.displayName="Divider";var[bg,xg]=oo({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Table />\" "}),wg=Lt(((e,t)=>{const n=Zr("Table",e),{className:r,layout:o,...a}=xr(e);return(0,oe.jsx)(bg,{value:n,children:(0,oe.jsx)($r.table,{ref:t,__css:{tableLayout:o,...n.table},className:G("chakra-table",r),...a})})}));wg.displayName="Table";var Sg=Lt(((e,t)=>{const n=xg();return(0,oe.jsx)($r.tbody,{...e,ref:t,__css:n.tbody})})),kg=Lt(((e,t)=>{const n=xg();return(0,oe.jsx)($r.tr,{...e,ref:t,__css:n.tr})})),Eg=Lt((({isNumeric:e,...t},n)=>{const r=xg();return(0,oe.jsx)($r.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}));function Cg(t){const{viewBox:n="0 0 24 24",d:r,displayName:o,defaultProps:a={}}=t,i=e.Children.toArray(t.path),s=Lt(((e,t)=>(0,oe.jsx)(pa,{ref:t,viewBox:n,...a,...e,children:i.length?i:(0,oe.jsx)("path",{fill:"currentColor",d:r})})));return s.displayName=o,s}const _g=Cg({displayName:"CheckCircleIcon",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"}),Pg=Cg({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",displayName:"WarningIcon"});function Tg(e){return Tg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tg(e)}function Og(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Tg(e)+" is not iterable")}function Ag(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ag(Object(n),!0).forEach((function(t){zg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ag(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zg(e,t,n){return(t=function(e){var t=function(e){if("object"!=Tg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tg(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jg(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Lg(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function Fg(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return Mg(u,"_invoke",function(n,r,o){var a,s,l,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,s=0,l=e,f.n=n,i}};function p(n,r){for(s=n,l=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],p=f.p,h=a[2];n>3?(o=h===r)&&(s=a[4]||3,l=a[5]===e?a[3]:a[5],a[4]=3,a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(s=0,f.v=r,f.n=a[1]):p<h&&(o=n<3||a[0]>r||r>h)&&(a[4]=n,a[5]=r,f.n=h,s=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==i)break}catch(t){a=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Mg(t={},r,(function(){return this})),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Mg(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,Mg(d,"constructor",u),Mg(u,"constructor",l),l.displayName="GeneratorFunction",Mg(u,o,"GeneratorFunction"),Mg(d),Mg(d,o,"Generator"),Mg(d,r,(function(){return this})),Mg(d,"toString",(function(){return"[object Generator]"})),(Fg=function(){return{w:a,m:f}})()}function Mg(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Mg=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){Mg(e,t,(function(e){return this._invoke(t,n,e)}))};a("next",0),a("throw",1),a("return",2)}},Mg(e,t,n,r)}function Ig(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ng(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Ig(a,r,o,i,s,"next",e)}function s(e){Ig(a,r,o,i,s,"throw",e)}i(void 0)}))}}function Dg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||Lg(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lg(e,t){if(e){if("string"==typeof e)return Bg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bg(e,t):void 0}}function Bg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $g=ur_templates_script,Vg=$g.restURL,Ug=$g.security;const Wg=function(n){var r=n.requiredPlugins,o=n.onActivateAndContinue,a=Dg((0,e.useState)({}),2),i=a[0],l=a[1],u=Dg((0,e.useState)(!1),2),c=u[0],d=u[1],f=Dg((0,e.useState)(!1),2),p=f[0],h=f[1],m=Dg((0,e.useState)(!1),2),v=m[0],g=m[1],y=Dg((0,e.useState)(""),2),b=y[0],x=y[1],w=zp();(0,e.useEffect)((function(){var e=function(){var e=Ng(Fg().m((function e(){var t;return Fg().w((function(e){for(;;)switch(e.n){case 0:return e.p=0,e.n=1,gg({path:"".concat(Vg,"user-registration/v1/plugin/status"),method:"GET",headers:{"X-WP-Nonce":Ug}});case 1:(t=e.v).success?(l(t.plugin_status),S(t.plugin_status)):w({title:Q("Error","user-registration"),description:Q("Invalid response format.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"}),e.n=3;break;case 2:e.p=2,e.v,w({title:Q("Error","user-registration"),description:Q("Unable to check plugin status.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"});case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(){return e.apply(this,arguments)}}();e()}),[w,r,i]);var S=function(e){var t=r.every((function(t){return"active"===e[t.key]})),n=r.some((function(t){return"not-installed"===e[t.key]})),o=r.some((function(t){return"inactive"===e[t.key]}));t?(x(Q("Continue","user-registration")),g(!0)):n?(x(Q("Install & Activate","user-registration")),g(!1)):o?(x(Q("Activate and Continue","user-registration")),g(!1)):(x(Q("Continue","user-registration")),g(!1))},k=function(){var e=Ng(Fg().m((function e(){var t,n,a,u,c,f,p,m;return Fg().w((function(e){for(;;)switch(e.n){case 0:if(!v){e.n=1;break}o(),e.n=10;break;case 1:if(t=r.some((function(e){return"not-installed"===i[e.key]})),!r.some((function(e){return"inactive"===i[e.key]}))&&!t){e.n=9;break}d(!0),h(!0),n="",a="",u="",c=jg(r),e.p=2,p=Fg().m((function e(){var t,r,o;return Fg().w((function(e){for(;;)switch(e.n){case 0:return t=f.value,e.p=1,e.n=2,gg({path:"".concat(Vg,"user-registration/v1/plugin/activate"),method:"POST",body:JSON.stringify({addonData:{name:t.value,slug:t.key,type:(i[t.key],"addon")}}),headers:{"Content-Type":"application/json","X-WP-Nonce":Ug}});case 2:(r=e.v).success?(l((function(e){return Rg(Rg({},e),{},zg({},t.key,"active"))})),n=r.message||Q("Plugin activated successfully.","user-registration"),a=Q("Success","user-registration"),u="success"):(l((function(e){return Rg(Rg({},e),{},zg({},t.key,"error"))})),n=r.message||s(Q("Failed to activate plugin: %s.","user-registration"),t.value),a=Q("Error","user-registration"),u="error"),e.n=4;break;case 3:e.p=3,o=e.v,l((function(e){return Rg(Rg({},e),{},zg({},t.key,"error"))})),n=o.message||s(Q("Unable to activate %s.","user-registration"),t.value),a=Q("Error","user-registration"),u="error";case 4:return e.a(2)}}),e,null,[[1,3]])})),c.s();case 3:if((f=c.n()).done){e.n=5;break}return e.d(Og(p()),4);case 4:e.n=3;break;case 5:e.n=7;break;case 6:e.p=6,m=e.v,c.e(m);case 7:return e.p=7,c.f(),e.f(7);case 8:d(!1),h(!1),g(!0),x("Continue"),w({title:a,description:n,status:u,position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"}),e.n=10;break;case 9:o();case 10:return e.a(2)}}),e,null,[[2,6,7,8]])})));return function(){return e.apply(this,arguments)}}();return t().createElement(_o,{spacing:4,align:"stretch"},(null==r?void 0:r.length)>0&&t().createElement(t().Fragment,null,t().createElement(yg,{color:"gray.200",mb:0}),t().createElement(To,{my:0,fontSize:16,color:"gray.700"},"This form template requires the following addons:"),t().createElement(to,{borderWidth:"1px",borderRadius:"md",overflow:"hidden",w:"100%"},t().createElement(wg,{variant:"simple"},t().createElement(Sg,null,r.map((function(e){return t().createElement(kg,{key:e.key},t().createElement(Eg,null,e.value),t().createElement(Eg,{textAlign:"right"},"active"===i[e.key]?t().createElement(pa,{as:_g,color:"green"}):"inactive"===i[e.key]||"not-installed"===i[e.key]?t().createElement(pa,{as:Pg,color:"yellow"}):t().createElement(eo,{size:"sm"})))})))))),b&&t().createElement(qo,{marginLeft:"auto",onClick:k,size:"md",isLoading:c,isDisabled:p,style:{backgroundColor:"#475BB2",color:"#FFFFFF"}},b))};function Hg(e){return na({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"},child:[]}]})(e)}function qg(e){return na({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M458.4 64.3C400.6 15.7 311.3 23 256 79.3 200.7 23 111.4 15.6 53.6 64.3-21.6 127.6-10.6 230.8 43 285.5l175.4 178.7c10 10.2 23.4 15.9 37.6 15.9 14.3 0 27.6-5.6 37.6-15.8L469 285.6c53.5-54.7 64.7-157.9-10.6-221.3zm-23.6 187.5L259.4 430.5c-2.4 2.4-4.4 2.4-6.8 0L77.2 251.8c-36.5-37.2-43.9-107.6 7.3-150.7 38.9-32.7 98.9-27.8 136.5 10.5l35 35.7 35-35.7c37.8-38.5 97.8-43.2 136.5-10.6 51.1 43.1 43.5 113.9 7.3 150.8z"},child:[]}]})(e)}const Qg=e.createContext(void 0),Gg=e.createContext(!1);function Xg(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Qg),window.ReactQueryClientContext):Qg)}const Kg=({context:t}={})=>{const n=e.useContext(Xg(t,e.useContext(Gg)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},Yg=({client:t,children:n,context:r,contextSharing:o=!1})=>{e.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]);const a=Xg(r,o);return e.createElement(Gg.Provider,{value:!r&&o},e.createElement(a.Provider,{value:t},n))},Zg="undefined"==typeof window||"Deno"in window;function Jg(){}function ey(e){return"number"==typeof e&&e>=0&&e!==1/0}function ty(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ny(e,t,n){return my(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function ry(e,t,n){return my(e)?[{...t,queryKey:e},n]:[e||{},t]}function oy(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(my(i))if(r){if(t.queryHash!==iy(i,t.options))return!1}else if(!ly(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||void 0!==o&&o!==t.state.fetchStatus||a&&!a(t))}function ay(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(my(a)){if(!t.options.mutationKey)return!1;if(n){if(sy(t.options.mutationKey)!==sy(a))return!1}else if(!ly(t.options.mutationKey,a))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||o&&!o(t))}function iy(e,t){return((null==t?void 0:t.queryKeyHashFn)||sy)(e)}function sy(e){return JSON.stringify(e,((e,t)=>py(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function ly(e,t){return uy(e,t)}function uy(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!uy(e[n],t[n])))}function cy(e,t){if(e===t)return e;const n=fy(e)&&fy(t);if(n||py(e)&&py(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),a=o.length,i=n?[]:{};let s=0;for(let r=0;r<a;r++){const a=n?r:o[r];i[a]=cy(e[a],t[a]),i[a]===e[a]&&s++}return r===a&&s===r?e:i}return t}function dy(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function fy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function py(e){if(!hy(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!hy(n)&&!!n.hasOwnProperty("isPrototypeOf")}function hy(e){return"[object Object]"===Object.prototype.toString.call(e)}function my(e){return Array.isArray(e)}function vy(e){return new Promise((t=>{setTimeout(t,e)}))}function gy(e){vy(0).then(e)}function yy(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?cy(e,t):t}const by=console,xy=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):gy((()=>{n(r)}))};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&gy((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class wy{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ey(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Zg?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Sy{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const ky=new class extends Sy{constructor(){super(),this.setup=e=>{if(!Zg&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Ey=["online","offline"],Cy=new class extends Sy{constructor(){super(),this.setup=e=>{if(!Zg&&window.addEventListener){const t=()=>e();return Ey.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Ey.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function _y(e){return Math.min(1e3*2**e,3e4)}function Py(e){return"online"!==(null!=e?e:"online")||Cy.isOnline()}class Ty{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Oy(e){return e instanceof Ty}function Ay(e){let t,n,r,o=!1,a=0,i=!1;const s=new Promise(((e,t)=>{n=e,r=t})),l=()=>!ky.isFocused()||"always"!==e.networkMode&&!Cy.isOnline(),u=r=>{i||(i=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},c=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise((n=>{t=e=>{const t=i||!l();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,i||null==e.onContinue||e.onContinue()})),f=()=>{if(i)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch((t=>{var n,r;if(i)return;const s=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:_y,p="function"==typeof u?u(a,t):u,h=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,t);!o&&h?(a++,null==e.onFail||e.onFail(a,t),vy(p).then((()=>{if(l())return d()})).then((()=>{o?c(t):f()}))):c(t)}))};return Py(e.networkMode)?f():d().then(f),{promise:s,cancel:t=>{i||(c(new Ty(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}class Ry extends wy{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||by,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=Ay({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,o,a,i,s,l,u;if(!t){var c,d,f,p;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(c=(d=this.mutationCache.config).onMutate)?void 0:c.call(d,this.state.variables,this));const e=await(null==(f=(p=this.options).onMutate)?void 0:f.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const h=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,h,this.state.variables,this.state.context,this)),await(null==(o=(a=this.options).onSuccess)?void 0:o.call(a,h,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,h,null,this.state.variables,this.state.context,this)),await(null==(l=(u=this.options).onSettled)?void 0:l.call(u,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{var h,m,v,g,y,b,x,w;throw await(null==(h=(m=this.mutationCache.config).onError)?void 0:h.call(m,e,this.state.variables,this.state.context,this)),await(null==(v=(g=this.options).onError)?void 0:v.call(g,e,this.state.variables,this.state.context)),await(null==(y=(b=this.mutationCache.config).onSettled)?void 0:y.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(x=(w=this.options).onSettled)?void 0:x.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Py(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),xy.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}class zy extends Sy{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),dy(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=this.currentMutation)||e.removeObserver(this)}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){xy.batch((()=>{var t,n,r,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(o=this.mutateOptions).onSettled)||r.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,l;null==(a=(i=this.mutateOptions).onError)||a.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}const jy=n(9888).useSyncExternalStore;function Fy(e,t){return"function"==typeof e?e(...t):!!e}function My(){}function Iy(e){return na({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 6.5a9.77 9.77 0 0 1 8.82 5.5c-1.65 3.37-5.02 5.5-8.82 5.5S4.83 15.37 3.18 12A9.77 9.77 0 0 1 12 6.5m0-2C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5s2.02 4.5 4.5 4.5 4.5-2.02 4.5-4.5-2.02-4.5-4.5-4.5z"},child:[]}]})(e)}function Ny(e){return function(e){if(Array.isArray(e))return Wy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Uy(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dy(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return Ly(u,"_invoke",function(n,r,o){var a,s,l,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,s=0,l=e,f.n=n,i}};function p(n,r){for(s=n,l=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],p=f.p,h=a[2];n>3?(o=h===r)&&(s=a[4]||3,l=a[5]===e?a[3]:a[5],a[4]=3,a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(s=0,f.v=r,f.n=a[1]):p<h&&(o=n<3||a[0]>r||r>h)&&(a[4]=n,a[5]=r,f.n=h,s=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==i)break}catch(t){a=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Ly(t={},r,(function(){return this})),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ly(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,Ly(d,"constructor",u),Ly(u,"constructor",l),l.displayName="GeneratorFunction",Ly(u,o,"GeneratorFunction"),Ly(d),Ly(d,o,"Generator"),Ly(d,r,(function(){return this})),Ly(d,"toString",(function(){return"[object Generator]"})),(Dy=function(){return{w:a,m:f}})()}function Ly(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ly=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){Ly(e,t,(function(e){return this._invoke(t,n,e)}))};a("next",0),a("throw",1),a("return",2)}},Ly(e,t,n,r)}function By(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function $y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){By(a,r,o,i,s,"next",e)}function s(e){By(a,r,o,i,s,"throw",e)}i(void 0)}))}}function Vy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||Uy(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uy(e,t){if(e){if("string"==typeof e)return Wy(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wy(e,t):void 0}}function Wy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hy.apply(null,arguments)}var qy=ur_templates_script,Qy=qy.restURL,Gy=qy.security,Xy=qy.siteURL,Ky=function(e){return t().createElement(pa,Hy({viewBox:"0 0 24 24"},e),t().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 54 54"},t().createElement("rect",{width:"54",height:"54",fill:"#FA5252",rx:"27"}),t().createElement("path",{fill:"#fff",d:"M34 22.334h-1.166v-1.167A5.84 5.84 0 0 0 27 15.334a5.84 5.84 0 0 0-5.833 5.833v1.167H20a2.333 2.333 0 0 0-2.333 2.333v11.667A2.333 2.333 0 0 0 20 38.667h14a2.333 2.333 0 0 0 2.334-2.333V24.667A2.333 2.333 0 0 0 34 22.334Zm-10.5-1.167c0-1.93 1.57-3.5 3.5-3.5s3.5 1.57 3.5 3.5v1.167h-7v-1.167Zm4.667 10.177v2.657h-2.333v-2.657a2.323 2.323 0 0 1-.484-3.66 2.333 2.333 0 0 1 3.984 1.65c0 .861-.473 1.605-1.167 2.01Z"})))};const Yy=function(n){var r=n.selectedCategory,o=n.templates,a=Vy((0,e.useState)(null),2),i=a[0],l=a[1],u=Vy((0,e.useState)(""),2),c=u[0],d=u[1],f=Vy((0,e.useState)([]),2),p=f[0],h=f[1],m=Vy((0,e.useState)(""),2),v=m[0],g=m[1],y=Vy((0,e.useState)(""),2),b=y[0],x=y[1],w=function(t={}){const{onClose:n,onOpen:r,isOpen:o,id:a}=t,i=va(r),s=va(n),[l,u]=(0,e.useState)(t.defaultIsOpen||!1),[c,d]=function(e,t){const n=void 0!==e;return[n,n&&void 0!==e?e:t]}(o,l),f=function(t,n){const r=(0,e.useId)();return(0,e.useMemo)((()=>t||[n,r].filter(Boolean).join("-")),[t,n,r])}(a,"disclosure"),p=(0,e.useCallback)((()=>{c||u(!1),null==s||s()}),[c,s]),h=(0,e.useCallback)((()=>{c||u(!0),null==i||i()}),[c,i]),m=(0,e.useCallback)((()=>{(d?p:h)()}),[d,h,p]);return{isOpen:!!d,onOpen:h,onClose:p,onToggle:m,isControlled:c,getButtonProps:(e={})=>({...e,"aria-expanded":d,"aria-controls":f,onClick:Ar(e.onClick,m)}),getDisclosureProps:(e={})=>({...e,hidden:!d,id:f})}}(),S=w.isOpen,k=w.onOpen,E=w.onClose,C=Vy((0,e.useState)(null),2),_=C[0],P=C[1],T=Vy((0,e.useState)([]),2),O=T[0],A=T[1],R=zp(),z=Kg(),j=Vy((0,e.useState)(!1),2),F=j[0],M=j[1],I=Vy((0,e.useState)(!1),2),N=I[0],D=I[1];(0,e.useEffect)((function(){var e=function(){var e=$y(Dy().m((function e(){var t,n,r;return Dy().w((function(e){for(;;)switch(e.n){case 0:return e.p=0,e.n=1,gg({path:"".concat(Qy,"user-registration/v1/form-templates/favorite_forms"),method:"GET",headers:{"X-WP-Nonce":Gy}});case 1:(t=e.v)&&t.success&&(n=Object.keys(t.favorites).map((function(e){return t.favorites[e]})),A(n)),e.n=3;break;case 2:e.p=2,r=e.v,console.error("Error fetching favorites:",r);case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(){return e.apply(this,arguments)}}();e();var t=function(){var e=$y(Dy().m((function e(){var t;return Dy().w((function(e){for(;;)switch(e.n){case 0:return e.p=0,e.n=1,gg({path:"".concat(Qy,"user-registration/v1/plugin/get_plan"),method:"GET",headers:{"X-WP-Nonce":Gy}});case 1:(t=e.v).license_plan&&(h(!0),g(t.license_plan)),e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(){return e.apply(this,arguments)}}();t()}),[]);var L=function(){var e=$y(Dy().m((function e(t){var n,r,o,a,i,s;return Dy().w((function(e){for(;;)switch(e.n){case 0:if(n=t.addons?Object.keys(t.addons):[],!t.isPro){e.n=4;break}r=v.toLocaleLowerCase().replace("user registration","").replace("lifetime","").trim(),o={},a=t.plan[0],i=a,e.n="personal"===i?1:"plus"===i?2:3;break;case 1:return o=["personal","plus","professional","themegrill agency"],e.a(3,3);case 2:return o=["plus","professional","themegrill agency"],e.a(3,3);case 3:o.indexOf(r)<0?(D(!0),M(!0)):(D(!1),M(!1)),e.n=5;break;case 4:D(!1);case 5:return e.p=5,e.n=6,gg({path:"".concat(Qy,"user-registration/v1/plugin/upgrade"),method:"POST",body:JSON.stringify({requiredPlugins:n}),headers:{"Content-Type":"application/json","X-WP-Nonce":Gy}});case 6:if(e.v.plugin_status){e.n=7;break}return d(t.title),M(!0),e.a(2);case 7:x(t.slug),l(t),d(t.title),k(),e.n=9;break;case 8:e.p=8,s=e.v,console.log(s),R({title:Q("Error","user-registration"),description:Q("An error occurred while checking the plugin status. Please try again.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"});case 9:return e.a(2)}}),e,null,[[5,8]])})));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=$y(Dy().m((function e(){var t;return Dy().w((function(e){for(;;)switch(e.n){case 0:if(c){e.n=1;break}return R({title:Q("Form name required","user-registration"),description:Q("Please provide a name for your form.","user-registration"),status:"warning",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"}),e.a(2);case 1:return e.p=1,e.n=2,gg({path:"".concat(Qy,"user-registration/v1/form-templates/create"),method:"POST",body:JSON.stringify({title:c,slug:b}),headers:{"Content-Type":"application/json","X-WP-Nonce":Gy}});case 2:(t=e.v).success&&t.data?window.location.href=t.data.redirect:R({title:Q("Error","user-registration"),description:t.message||Q("Failed to create form template.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"}),e.n=4;break;case 3:e.p=3,e.v,R({title:Q("Error","user-registration"),description:Q("An error occurred while creating the form template.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"});case 4:return e.a(2)}}),e,null,[[1,3]])})));return function(){return e.apply(this,arguments)}}(),$=function(t,n,r){const o=function(e,t,n){return my(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(t,n,r),a=Kg({context:o.context}),[i]=e.useState((()=>new zy(a,o)));e.useEffect((()=>{i.setOptions(o)}),[i,o]);const s=jy(e.useCallback((e=>i.subscribe(xy.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),l=e.useCallback(((e,t)=>{i.mutate(e,t).catch(My)}),[i]);if(s.error&&Fy(i.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}(function(){var e=$y(Dy().m((function e(t){var n;return Dy().w((function(e){for(;;)switch(e.n){case 0:return n=O.includes(t)?O.filter((function(e){return e!==t})):[].concat(Ny(O),[t]),A(n),e.n=1,gg({path:"".concat(Qy,"user-registration/v1/form-templates/favorite"),method:"POST",body:JSON.stringify({action:n.includes(t)?"add_favorite":"remove_favorite",slug:t}),headers:{"Content-Type":"application/json","X-WP-Nonce":Gy}});case 1:return e.a(2,n)}}),e)})));return function(t){return e.apply(this,arguments)}}(),{onError:function(e){R({title:Q("Error","user-registration"),description:Q("An error occurred while updating favorites.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})},onSuccess:function(e){z.invalidateQueries(["templates"]),A(e),z.invalidateQueries(["favorites"])}}),V=(null!=i&&i.addons?Object.entries(i.addons).map((function(e){var t=Vy(e,2);return{key:t[0],value:t[1]}})):[]).map((function(e){return{key:e.key,value:e.value}}));return t().createElement(to,null,t().createElement(Bo,{as:"h3",fontSize:"18px",lineHeight:"26px",fontWeight:"semibold",m:"0px 0px 32px",color:"#26262E",borderBottom:"1px solid #CDD0D8",paddingBottom:"20px"},r.toUpperCase()),null!=o&&o.length?t().createElement(Fp,{columns:{base:4,"2xl":5},spacing:6},o.map((function(e){var n,r,o,a;return t().createElement(to,{key:e.slug,borderWidth:"2px",borderRadius:"8px",borderColor:"#F6F4FA",overflow:"hidden",position:"relative",onMouseOver:function(){return P(e.id)},onMouseLeave:function(){return P(null)},textAlign:"center",bg:"white",p:0,transition:"all .3s",_hover:{boxShadow:"0px 5px 24px rgba(58, 34, 93, 0.12)","::before":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"207px",bg:"rgba(0, 0, 0, 0.4)",zIndex:1},"& > div > .template-title":{color:"#475bb2"}}},t().createElement(Mp,{mb:0,height:"207px"},t().createElement(to,{position:"relative",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",bg:"#ECECF6",borderRadius:"4px 4px 0px 0px",overflow:"hidden",transition:"all .3s"},t().createElement(Lp,{boxShadow:"blank"==e.slug?"none":"0px 3px 12px rgba(58, 34, 93, 0.12)",src:(r=e.imageUrl,o=r.split("/"),a=o.pop(),"blank.png"===a?r:[].concat(Ny(o),["user-registration-".concat(a)]).join("/")),alt:e.title,objectFit:"contain",height:"100%"}),e.isPro?p?t().createElement(Oo,{bg:"#4BCE61",color:"white",position:"absolute",bottom:"12px",right:"12px",borderRadius:"4px",fontSize:"12px",p:"2px 6px",textTransform:"capitalize",zIndex:"2",fontWeight:"500"},(null===(n=e.plan)||void 0===n?void 0:n[0])||Q("Pro","user-registration")):t().createElement(Oo,{bg:"#4BCE61",color:"white",position:"absolute",bottom:"12px",right:"12px",borderRadius:"4px",fontSize:"12px",p:"2px 6px",textTransform:"capitalize",zIndex:"2",fontWeight:"500"},Q("Pro","user-registration")):null,_===e.id&&t().createElement(_o,{spacing:4,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},t().createElement(qo,{borderRadius:"50px",leftIcon:t().createElement(oa,null),style:{borderColor:"#475bb2",color:"white"},onClick:function(){return L(e)},bg:"#475bb2",_hover:{bg:"#4153A2"},width:"100%"},Q("Get Started","user-registration")),e.preview_link&&t().createElement(qo,{borderRadius:"50px",leftIcon:t().createElement(Iy,null),color:"#4D4D4D",variant:"outline",onClick:function(){return window.open(e.preview_link,"_blank")},_hover:{color:"#4D4D4D",bg:"#EFEFEF"},bg:"#FFFFFF",width:"100%"},Q("Preview","user-registration"))))),_===e.id&&t().createElement(to,{as:"button",onClick:function(){return t=e.slug,void $.mutate(t);var t},"aria-label":"Toggle favorite for ".concat(e.title),position:"absolute",top:2,right:2,zIndex:3,bg:"transparent",border:"none",_hover:{color:"red.600"}},t().createElement(pa,{as:O.includes(e.slug)?Hg:qg,boxSize:6,color:O.includes(e.slug)?"red":"white"})),t().createElement(_o,{padding:"8px 16px 16px 16px",gap:"10px"},t().createElement(Bo,{className:"template-title",width:"100%",textAlign:"left",fontWeight:"500",fontSize:"16px",margin:"0px",lineHeight:"22px"},e.title),t().createElement(To,{textAlign:"left",margin:"0px",fontSize:"14px",fontWeight:"400",color:"gray.600",lineHeight:"25px"},e.description)))}))):t().createElement(to,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"80vh",width:"100%"},t().createElement(Lp,{src:Xy+"/wp-content/plugins/user-registration/assets/images/empty-table.png",alt:Q("Not Found","user-registration"),boxSize:"300px",objectFit:"cover"}),t().createElement(To,{mt:4,fontSize:"lg",fontWeight:"bold",textAlign:"center"},Q("No Templates Found","user-registration")),t().createElement(To,{margin:0,fontSize:"sm",textAlign:"center",color:"gray.600"},Q("Sorry, we didn't find any templates that match your criteria","user-registration"))),t().createElement(eh,{isCentered:!0,isOpen:F,onClose:function(){return M(!1)},size:"lg"},t().createElement(uh,null),t().createElement(Hv,{borderRadius:"8px",padding:"20px"},t().createElement(qv,{padding:"0px",textAlign:"center",fontSize:"20px",lineHeight:"28px",color:"#26262E"},t().createElement(Ky,{boxSize:10}),t().createElement(Bo,{as:"h2",margin:"10px 0px 0px 0px",fontSize:"20px",lineHeight:"28px",fontWeight:"bold"},s(Q(N?"%s Requires License Upgrade":"%s is a Premium Template","user-registration"),c))),t().createElement(Qv,{top:"12px",right:"12px"}),t().createElement(Gv,{padding:"0px",marginTop:"16px",textAlign:"center"},t().createElement(To,{margin:"0px",fontSize:"16px",lineHeight:"24px",mb:"20px"},Q(N?"This template requires plus and above plan. Please upgrade to the Plus and above to unlock all these awesome templates.":"This template requires premium addons. Please upgrade to the Premium to unlock all these awesome templates.","user-registration"))),t().createElement(Xv,{justifyContent:"flex-end",padding:"0px"},t().createElement(qo,{variant:"ghost",onClick:function(){return M(!1)},border:"1px solid #DFDFDF"},Q("OK","user-registration")),t().createElement("a",{href:"https://wpuserregistration.com/pricing/?utm_source=form-template&utm_medium=premium-form-templates-popup&utm_campaign=lite-version",target:"_blank",rel:"noopener noreferrer",style:{width:"inherit"}},t().createElement(qo,{style:{backgroundColor:"#475BB2",color:"#FFFFFF"},ml:3},Q("Upgrade Plan","user-registration")))))),t().createElement(eh,{isCentered:!0,isOpen:S&&!N,onClose:E,size:"xl"},t().createElement(uh,null),t().createElement(Hv,{borderRadius:"8px",padding:"40px"},t().createElement(qv,{padding:"0px",textAlign:"left",fontSize:"20px",lineHeight:"28px",color:"#26262E"},Q("Uplift your form experience to the next level.","user-registration")),t().createElement(Qv,{top:"12px",right:"12px"}),t().createElement(Gv,{padding:"0px",marginTop:"16px"},t().createElement(to,{mb:"20px",padding:"0px"},t().createElement(To,{margin:"0px 0px 6px",fontSize:"16px",lineHeight:"29px"},Q("Give it a name","user-registration")),t().createElement(ko,{width:"full",value:c,onChange:function(e){return d(e.target.value)},placeholder:"Give it a name.",size:"md",_focus:{borderColor:"#475BB2",outline:"none",boxShadow:"none"}})),t().createElement(to,{overflow:"hidden",mb:"0px",padding:"0px"},t().createElement(Wg,{requiredPlugins:V,onActivateAndContinue:B}))))))};class Zy extends Sy{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),Jy(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eb(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eb(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),dy(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&tb(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){return!n.keepPreviousData&&(void 0!==n.placeholderData?t.isPlaceholderData:!dy(e.getCurrentResult(),t))}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Jg)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Zg||this.currentResult.isStale||!ey(this.options.staleTime))return;const e=ty(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Zg&&!1!==this.options.enabled&&ey(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||ky.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,o=this.currentResult,a=this.currentResultState,i=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:c}=e;let d,{dataUpdatedAt:f,error:p,errorUpdatedAt:h,fetchStatus:m,status:v}=c,g=!1,y=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&Jy(e,t),i=o&&tb(e,n,t,r);(a||i)&&(m=Py(e.options.networkMode)?"fetching":"paused",f||(v="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!c.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==v)d=u.data,f=u.dataUpdatedAt,v=u.status,g=!0;else if(t.select&&void 0!==c.data)if(o&&c.data===(null==a?void 0:a.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(c.data),d=yy(null==o?void 0:o.data,d,t),this.selectResult=d,this.selectError=null}catch(e){this.selectError=e}else d=c.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===v){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(v="success",d=yy(null==o?void 0:o.data,e,t),y=!0)}this.selectError&&(p=this.selectError,d=this.selectResult,h=Date.now(),v="error");const b="fetching"===m,x="loading"===v,w="error"===v;return{status:v,fetchStatus:m,isLoading:x,isSuccess:"success"===v,isError:w,isInitialLoading:x&&b,data:d,dataUpdatedAt:f,error:p,errorUpdatedAt:h,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:w&&0===c.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:y,isPreviousData:g,isRefetchError:w&&0!==c.dataUpdatedAt,isStale:nb(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,dy(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||Oy(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){xy.batch((()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var a,i,s,l;null==(a=(i=this.options).onError)||a.call(i,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function Jy(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&eb(e,t,t.refetchOnMount)}function eb(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&nb(e,t)}return!1}function tb(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&nb(e,n)}function nb(e,t){return e.isStaleByTime(t.staleTime)}const rb=e.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),ob=e.createContext(!1);function ab(e){return ab="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ab(e)}function ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ib(Object(n),!0).forEach((function(t){lb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ib(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lb(e,t,n){return(t=function(e){var t=function(e){if("object"!=ab(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ab(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ab(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ub(e,t){if(e){if("string"==typeof e)return cb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cb(e,t):void 0}}function cb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function db(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return fb(u,"_invoke",function(n,r,o){var a,s,l,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,s=0,l=e,f.n=n,i}};function p(n,r){for(s=n,l=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],p=f.p,h=a[2];n>3?(o=h===r)&&(s=a[4]||3,l=a[5]===e?a[3]:a[5],a[4]=3,a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(s=0,f.v=r,f.n=a[1]):p<h&&(o=n<3||a[0]>r||r>h)&&(a[4]=n,a[5]=r,f.n=h,s=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==i)break}catch(t){a=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(fb(t={},r,(function(){return this})),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,fb(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,fb(d,"constructor",u),fb(u,"constructor",l),l.displayName="GeneratorFunction",fb(u,o,"GeneratorFunction"),fb(d),fb(d,o,"Generator"),fb(d,r,(function(){return this})),fb(d,"toString",(function(){return"[object Generator]"})),(db=function(){return{w:a,m:f}})()}function fb(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fb=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){fb(e,t,(function(e){return this._invoke(t,n,e)}))};a("next",0),a("throw",1),a("return",2)}},fb(e,t,n,r)}function pb(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}ob.Provider;var hb=ur_templates_script,mb=hb.restURL,vb=hb.security,gb=function(){var e,t=(e=db().m((function e(){var t,n;return db().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,gg({path:"".concat(mb,"user-registration/v1/form-templates"),method:"GET",headers:{"X-WP-Nonce":vb}});case 1:if(!(t=e.v)||!Array.isArray(t.templates)){e.n=2;break}return n=t.templates.flatMap((function(e){return e.templates})),e.a(2,n);case 2:throw new Error(Q("Unexpected response format.","user-registration"));case 3:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){pb(a,r,o,i,s,"next",e)}function s(e){pb(a,r,o,i,s,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();const yb=function(n){var r=n.filter,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||ub(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)({selectedCategory:Q("All Forms","user-registration"),searchTerm:""}),2),a=o[0],i=o[1],s=a.selectedCategory,l=a.searchTerm,u=function(t,n){const r=Kg({context:t.context}),o=e.useContext(ob),a=e.useContext(rb),i=r.defaultQueryOptions(t);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=xy.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=xy.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=xy.batchCalls(i.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,a),(t=>{e.useEffect((()=>{t.clearReset()}),[t])})(a);const[s]=e.useState((()=>new n(r,i))),l=s.getOptimisticResult(i);if(jy(e.useCallback((e=>{const t=o?()=>{}:s.subscribe(xy.batchCalls(e));return s.updateResult(),t}),[s,o]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),e.useEffect((()=>{s.setOptions(i,{listeners:!1})}),[i,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,l,o))throw((e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})))(i,s,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Fy(n,[e.error,r]))({result:l,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:s.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:s.trackResult(l)}(ny(["templates"],gb,undefined),Zy),c=u.data,d=void 0===c?[]:c,f=u.isLoading,p=u.error,h=(0,e.useMemo)((function(){var e=new Set;return d.forEach((function(t){t.categories.forEach((function(t){return e.add(t)}))})),[{name:Q("All Forms","user-registration"),count:d.length}].concat(function(e){return function(e){if(Array.isArray(e))return cb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ub(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array.from(e).map((function(e){return{name:e,count:d.filter((function(t){return t.categories.includes(e)})).length}}))))}),[d]),m=(0,e.useMemo)((function(){return d.filter((function(e){return(s===Q("All Forms","user-registration")||e.categories.includes(s))&&e.title.toLowerCase().includes(l.toLowerCase())&&("All"===r||"Free"===r&&!e.isPro||"Premium"===r&&e.isPro)}))}),[s,l,d,r]),v=(0,e.useCallback)((function(e){"undefined"!=typeof window&&window.scrollTo(0,0),i((function(t){return sb(sb({},t),{},{selectedCategory:e})}))}),[]),g=(0,e.useCallback)((function(e){i((function(t){return sb(sb({},t),{},{searchTerm:e})}))}),[]),y=Dt({base:"100%",md:"250px"});return f?t().createElement(Vr,{justify:"center",align:"center",height:"100vh"},t().createElement(eo,{size:"xl"})):p?t().createElement("div",null,p.message):t().createElement(to,null,t().createElement(Vr,{direction:{base:"column",md:"row"}},t().createElement(to,{width:y,mr:{base:0,md:4},mb:{base:4,md:0}},t().createElement(da,{categories:h,selectedCategory:a.selectedCategory,onCategorySelect:v,onSearchChange:g})),t().createElement(to,{width:"1px",bg:"linear-gradient(90deg, #CDD0D8 0%, rgba(255, 255, 255, 0) 158.04%)",mx:"4",marginRight:"28px"}),t().createElement(to,{flex:1},t().createElement(Yy,{selectedCategory:s,templates:m}))))};function bb(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function xb(t={}){const{ref:n,isDisabled:r,isFocusable:o,clickOnEnter:a=!0,clickOnSpace:i=!0,onMouseDown:s,onMouseUp:l,onClick:u,onKeyDown:c,onKeyUp:d,tabIndex:f,onMouseOver:p,onMouseLeave:h,...m}=t,[v,g]=(0,e.useState)(!0),[y,b]=(0,e.useState)(!1),x=function(){const t=(0,e.useRef)(new Map),n=t.current,r=(0,e.useCallback)(((e,n,r,o)=>{t.current.set(r,{type:n,el:e,options:o}),e.addEventListener(n,r,o)}),[]),o=(0,e.useCallback)(((e,n,r,o)=>{e.removeEventListener(n,r,o),t.current.delete(r)}),[]);return(0,e.useEffect)((()=>()=>{n.forEach(((e,t)=>{o(e.el,e.type,t,e.options)}))}),[o,n]),{add:r,remove:o}}(),w=v?f:f||0,S=r&&!o,k=(0,e.useCallback)((e=>{if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==u||u(e)}),[r,u]),E=(0,e.useCallback)((e=>{y&&bb(e)&&(e.preventDefault(),e.stopPropagation(),b(!1),x.remove(document,"keyup",E,!1))}),[y,x]),C=(0,e.useCallback)((e=>{if(null==c||c(e),r||e.defaultPrevented||e.metaKey)return;if(!bb(e.nativeEvent)||v)return;const t=a&&"Enter"===e.key;i&&" "===e.key&&(e.preventDefault(),b(!0)),t&&(e.preventDefault(),e.currentTarget.click()),x.add(document,"keyup",E,!1)}),[r,v,c,a,i,x,E]),_=(0,e.useCallback)((e=>{null==d||d(e),r||e.defaultPrevented||e.metaKey||bb(e.nativeEvent)&&!v&&i&&" "===e.key&&(e.preventDefault(),b(!1),e.currentTarget.click())}),[i,v,r,d]),P=(0,e.useCallback)((e=>{0===e.button&&(b(!1),x.remove(document,"mouseup",P,!1))}),[x]),T=(0,e.useCallback)((e=>{if(0===e.button){if(r)return e.stopPropagation(),void e.preventDefault();v||b(!0),e.currentTarget.focus({preventScroll:!0}),x.add(document,"mouseup",P,!1),null==s||s(e)}}),[r,v,s,x,P]),O=(0,e.useCallback)((e=>{0===e.button&&(v||b(!1),null==l||l(e))}),[l,v]),A=(0,e.useCallback)((e=>{r?e.preventDefault():null==p||p(e)}),[r,p]),R=(0,e.useCallback)((e=>{y&&(e.preventDefault(),b(!1)),null==h||h(e)}),[y,h]),z=mo(n,(e=>{e&&"BUTTON"!==e.tagName&&g(!1)}));return v?{...m,ref:z,type:"button","aria-disabled":S?void 0:r,disabled:S,onClick:k,onMouseDown:s,onMouseUp:l,onKeyUp:d,onKeyDown:c,onMouseOver:p,onMouseLeave:h}:{...m,ref:z,role:"button","data-active":Z(y),"aria-disabled":r?"true":void 0,tabIndex:S?void 0:w,onClick:k,onMouseDown:T,onMouseUp:O,onKeyUp:_,onKeyDown:C,onMouseOver:A,onMouseLeave:R}}var wb=Object.defineProperty,Sb=(e,t,n)=>(((e,t,n)=>{t in e?wb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);function kb(e){return e.sort(((e,t)=>{const n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function Eb(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function Cb(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var _b="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Pb=class{constructor(){Sb(this,"descendants",new Map),Sb(this,"register",(e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}})),Sb(this,"unregister",(e=>{this.descendants.delete(e);const t=kb(Array.from(this.descendants.keys()));this.assignIndex(t)})),Sb(this,"destroy",(()=>{this.descendants.clear()})),Sb(this,"assignIndex",(e=>{this.descendants.forEach((t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()}))})),Sb(this,"count",(()=>this.descendants.size)),Sb(this,"enabledCount",(()=>this.enabledValues().length)),Sb(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),Sb(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),Sb(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),Sb(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),Sb(this,"first",(()=>this.item(0))),Sb(this,"firstEnabled",(()=>this.enabledItem(0))),Sb(this,"last",(()=>this.item(this.descendants.size-1))),Sb(this,"lastEnabled",(()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)})),Sb(this,"indexOf",(e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1})),Sb(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),Sb(this,"next",((e,t=!0)=>{const n=Eb(e,this.count(),t);return this.item(n)})),Sb(this,"nextEnabled",((e,t=!0)=>{const n=this.item(e);if(!n)return;const r=Eb(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)})),Sb(this,"prev",((e,t=!0)=>{const n=Cb(e,this.count()-1,t);return this.item(n)})),Sb(this,"prevEnabled",((e,t=!0)=>{const n=this.item(e);if(!n)return;const r=Cb(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)})),Sb(this,"registerNode",((e,t)=>{if(!e||this.descendants.has(e))return;const n=kb(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)}))}},[Tb,Ob]=oo({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),[Ab,Rb,zb,jb]=[Tb,()=>Ob(),()=>function(){const t=(0,e.useRef)(new Pb);return _b((()=>()=>t.current.destroy())),t.current}(),t=>function(t){const n=Ob(),[r,o]=(0,e.useState)(-1),a=(0,e.useRef)(null);_b((()=>()=>{a.current&&n.unregister(a.current)}),[]),_b((()=>{if(!a.current)return;const e=Number(a.current.dataset.index);r==e||Number.isNaN(e)||o(e)}));const i=t?n.register(t):n.register;return{descendants:n,index:r,enabledIndex:n.enabledIndexOf(a.current),register:mo(i,a)}}(t)];var[Fb,Mb]=oo({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"}),[Ib,Nb]=oo({});function Db(e,t){return`${e}--tab-${t}`}function Lb(e,t){return`${e}--tabpanel-${t}`}var[Bb,$b]=oo({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tabs />\" "}),Vb=Lt((function(t,n){const r=Zr("Tabs",t),{children:o,className:a,...i}=xr(t),{htmlProps:s,descendants:l,...u}=function(t){var n;const{defaultIndex:r,onChange:o,index:a,isManual:i,isLazy:s,lazyBehavior:l="unmount",orientation:u="horizontal",direction:c="ltr",...d}=t,[f,p]=(0,e.useState)(null!=r?r:0),[h,m]=function(t){const{value:n,defaultValue:r,onChange:o,shouldUpdate:a=(e,t)=>e!==t}=t,i=wa(o),s=wa(a),[l,u]=(0,e.useState)(r),c=void 0!==n,d=c?n:l,f=wa((e=>{const t="function"==typeof e?e(d):e;s(d,t)&&(c||u(t),i(t))}),[c,i,d,s]);return[d,f]}({defaultValue:null!=r?r:0,value:a,onChange:o});(0,e.useEffect)((()=>{null!=a&&p(a)}),[a]);const v=zb(),g=(0,e.useId)();return{id:`tabs-${null!=(n=t.id)?n:g}`,selectedIndex:h,focusedIndex:f,setSelectedIndex:m,setFocusedIndex:p,isManual:i,isLazy:s,lazyBehavior:l,orientation:u,descendants:v,direction:c,htmlProps:d}}(i),c=(0,e.useMemo)((()=>u),[u]),{isFitted:d,...f}=s,p={position:"relative",...r.root};return(0,oe.jsx)(Ab,{value:l,children:(0,oe.jsx)(Fb,{value:c,children:(0,oe.jsx)(Bb,{value:r,children:(0,oe.jsx)($r.div,{className:G("chakra-tabs",a),ref:n,...f,__css:p,children:o})})})})}));Vb.displayName="Tabs";var Ub=Lt((function(t,n){const r=function(t){const{focusedIndex:n,orientation:r,direction:o}=Mb(),a=Rb(),i=(0,e.useCallback)((e=>{const t=()=>{var e;const t=a.nextEnabled(n);t&&(null==(e=t.node)||e.focus())},i=()=>{var e;const t=a.prevEnabled(n);t&&(null==(e=t.node)||e.focus())},s="horizontal"===r,l="vertical"===r,u=e.key,c="ltr"===o?"ArrowLeft":"ArrowRight",d="ltr"===o?"ArrowRight":"ArrowLeft",f={[c]:()=>s&&i(),[d]:()=>s&&t(),ArrowDown:()=>l&&t(),ArrowUp:()=>l&&i(),Home:()=>{var e;const t=a.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;const t=a.lastEnabled();t&&(null==(e=t.node)||e.focus())}},p=f[u];p&&(e.preventDefault(),p(e))}),[a,n,r,o]);return{...t,role:"tablist","aria-orientation":r,onKeyDown:ee(t.onKeyDown,i)}}({...t,ref:n}),o={display:"flex",...$b().tablist};return(0,oe.jsx)($r.div,{...r,className:G("chakra-tabs__tablist",t.className),__css:o})}));Ub.displayName="TabList";var Wb=Lt((function(e,t){const n=$b(),r=function(e){const{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:o,isManual:a,id:i,setFocusedIndex:s,selectedIndex:l}=Mb(),{index:u,register:c}=jb({disabled:t&&!n}),d=u===l;return{...xb({...r,ref:mo(c,e.ref),isDisabled:t,isFocusable:n,onClick:ee(e.onClick,(()=>{o(u)}))}),id:Db(i,u),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":Lb(i,u),onFocus:t?void 0:ee(e.onFocus,(()=>{s(u),!a&&(!t||!n)&&o(u)}))}}({...e,ref:t}),o={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return(0,oe.jsx)($r.button,{...r,className:G("chakra-tabs__tab",e.className),__css:o})}));Wb.displayName="Tab";var Hb,qb=String.raw,Qb=qb`
  :root,
  :host {
    --chakra-vh: 100vh;
  }

  @supports (height: -webkit-fill-available) {
    :root,
    :host {
      --chakra-vh: -webkit-fill-available;
    }
  }

  @supports (height: -moz-fill-available) {
    :root,
    :host {
      --chakra-vh: -moz-fill-available;
    }
  }

  @supports (height: 100dvh) {
    :root,
    :host {
      --chakra-vh: 100dvh;
    }
  }
`,Gb=()=>(0,oe.jsx)(qr,{styles:Qb}),Xb=({scope:e=""})=>(0,oe.jsx)(qr,{styles:qb`
      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%;
        margin: 0;
        font-feature-settings: "kern";
      }

      ${e} :where(*, *::before, *::after) {
        border-width: 0;
        border-style: solid;
        box-sizing: border-box;
        word-wrap: break-word;
      }

      main {
        display: block;
      }

      ${e} hr {
        border-top-width: 1px;
        box-sizing: content-box;
        height: 0;
        overflow: visible;
      }

      ${e} :where(pre, code, kbd,samp) {
        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 1em;
      }

      ${e} a {
        background-color: transparent;
        color: inherit;
        text-decoration: inherit;
      }

      ${e} abbr[title] {
        border-bottom: none;
        text-decoration: underline;
        -webkit-text-decoration: underline dotted;
        text-decoration: underline dotted;
      }

      ${e} :where(b, strong) {
        font-weight: bold;
      }

      ${e} small {
        font-size: 80%;
      }

      ${e} :where(sub,sup) {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
      }

      ${e} sub {
        bottom: -0.25em;
      }

      ${e} sup {
        top: -0.5em;
      }

      ${e} img {
        border-style: none;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        font-family: inherit;
        font-size: 100%;
        line-height: 1.15;
        margin: 0;
      }

      ${e} :where(button, input) {
        overflow: visible;
      }

      ${e} :where(button, select) {
        text-transform: none;
      }

      ${e} :where(
          button::-moz-focus-inner,
          [type="button"]::-moz-focus-inner,
          [type="reset"]::-moz-focus-inner,
          [type="submit"]::-moz-focus-inner
        ) {
        border-style: none;
        padding: 0;
      }

      ${e} fieldset {
        padding: 0.35em 0.75em 0.625em;
      }

      ${e} legend {
        box-sizing: border-box;
        color: inherit;
        display: table;
        max-width: 100%;
        padding: 0;
        white-space: normal;
      }

      ${e} progress {
        vertical-align: baseline;
      }

      ${e} textarea {
        overflow: auto;
      }

      ${e} :where([type="checkbox"], [type="radio"]) {
        box-sizing: border-box;
        padding: 0;
      }

      ${e} input[type="number"]::-webkit-inner-spin-button,
      ${e} input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
      }

      ${e} input[type="number"] {
        -moz-appearance: textfield;
      }

      ${e} input[type="search"] {
        -webkit-appearance: textfield;
        outline-offset: -2px;
      }

      ${e} input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none !important;
      }

      ${e} ::-webkit-file-upload-button {
        -webkit-appearance: button;
        font: inherit;
      }

      ${e} details {
        display: block;
      }

      ${e} summary {
        display: list-item;
      }

      template {
        display: none;
      }

      [hidden] {
        display: none !important;
      }

      ${e} :where(
          blockquote,
          dl,
          dd,
          h1,
          h2,
          h3,
          h4,
          h5,
          h6,
          hr,
          figure,
          p,
          pre
        ) {
        margin: 0;
      }

      ${e} button {
        background: transparent;
        padding: 0;
      }

      ${e} fieldset {
        margin: 0;
        padding: 0;
      }

      ${e} :where(ol, ul) {
        margin: 0;
        padding: 0;
      }

      ${e} textarea {
        resize: vertical;
      }

      ${e} :where(button, [role="button"]) {
        cursor: pointer;
      }

      ${e} button::-moz-focus-inner {
        border: 0 !important;
      }

      ${e} table {
        border-collapse: collapse;
      }

      ${e} :where(h1, h2, h3, h4, h5, h6) {
        font-size: inherit;
        font-weight: inherit;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        padding: 0;
        line-height: inherit;
        color: inherit;
      }

      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
        display: block;
      }

      ${e} :where(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;
      }

      ${e} select::-ms-expand {
        display: none;
      }

      ${Qb}
    `}),Kb="chakra-ui-light",Yb="chakra-ui-dark",Zb="chakra-ui-color-mode",Jb=(Hb=Zb,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(Hb)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(Hb,e)}catch(e){}}});var ex=()=>{};function tx(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function nx(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:a,disableTransitionOnChange:i}={},colorModeManager:s=Jb}=t,l="dark"===a?"dark":"light",[u,c]=(0,e.useState)((()=>tx(s,l))),[d,f]=(0,e.useState)((()=>tx(s))),{getSystemTheme:p,setClassName:h,setDataset:m,addListener:v}=(0,e.useMemo)((()=>function(e={}){const{preventTransition:t=!0}=e,n={setDataset:e=>{const r=t?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==r||r()},setClassName(e){document.body.classList.add(e?Yb:Kb),document.body.classList.remove(e?Kb:Yb)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=n.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=n.query(),r=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{"function"==typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame((()=>{requestAnimationFrame((()=>{document.head.removeChild(e)}))}))}}};return n}({preventTransition:i})),[i]),g="system"!==a||u?u:d,y=(0,e.useCallback)((e=>{const t="system"===e?p():e;c(t),h("dark"===t),m(t),s.set(t)}),[s,p,h,m]);re((()=>{"system"===a&&f(p())}),[]),(0,e.useEffect)((()=>{const e=s.get();y(e||("system"!==a?l:"system"))}),[s,l,a,y]);const b=(0,e.useCallback)((()=>{y("dark"===g?"light":"dark")}),[g,y]);(0,e.useEffect)((()=>{if(o)return v(y)}),[o,v,y]);const x=(0,e.useMemo)((()=>({colorMode:null!=n?n:g,toggleColorMode:n?ex:b,setColorMode:n?ex:y,forced:void 0!==n})),[g,b,y,n]);return(0,oe.jsx)(Er.Provider,{value:x,children:r})}nx.displayName="ColorModeProvider";var rx=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:a=!0,theme:i={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=(0,oe.jsx)(ie,{environment:s,disabled:u,children:t});return(0,oe.jsx)(Ro,{theme:i,cssVarsRoot:l,children:(0,oe.jsxs)(nx,{colorModeManager:n,options:i.config,children:[a?(0,oe.jsx)(Xb,{scope:o}):(0,oe.jsx)(Gb,{}),!c&&(0,oe.jsx)(Mo,{}),r?(0,oe.jsx)(xp,{zIndex:r,children:d}):d]})})},ox={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"}},ax={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"},ix={...ax,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",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},sx={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...ox,sizes:ix,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","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"},space:ax,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},{defineMultiStyleConfig:lx,definePartsStyle:ux}=yr(["stepper","step","title","description","indicator","separator","icon","number"]),cx=Dn("stepper-indicator-size"),dx=Dn("stepper-icon-size"),fx=Dn("stepper-title-font-size"),px=Dn("stepper-description-font-size"),hx=Dn("stepper-accent-color"),mx=ux((({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[hx.variable]:`colors.${e}.500`,_dark:{[hx.variable]:`colors.${e}.200`}},title:{fontSize:fx.reference,fontWeight:"medium"},description:{fontSize:px.reference,color:"chakra-subtle-text"},number:{fontSize:fx.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:dx.reference,height:dx.reference},indicator:{flexShrink:0,borderRadius:"full",width:cx.reference,height:cx.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:hx.reference},"&[data-status=complete]":{bg:hx.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:hx.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${cx.reference} - 8px)`,top:`calc(${cx.reference} + 4px)`,insetStart:`calc(${cx.reference} / 2 - 1px)`}}}))),vx=lx({baseStyle:mx,sizes:{xs:ux({stepper:{[cx.variable]:"sizes.4",[dx.variable]:"sizes.3",[fx.variable]:"fontSizes.xs",[px.variable]:"fontSizes.xs"}}),sm:ux({stepper:{[cx.variable]:"sizes.6",[dx.variable]:"sizes.4",[fx.variable]:"fontSizes.sm",[px.variable]:"fontSizes.xs"}}),md:ux({stepper:{[cx.variable]:"sizes.8",[dx.variable]:"sizes.5",[fx.variable]:"fontSizes.md",[px.variable]:"fontSizes.sm"}}),lg:ux({stepper:{[cx.variable]:"sizes.10",[dx.variable]:"sizes.6",[fx.variable]:"fontSizes.lg",[px.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function gx(e,t={}){let n=!1;function r(t){const n=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:n,selector:`.${n}`,toString:()=>t}}return{parts:function(...o){!function(){if(n)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");n=!0}();for(const e of o)t[e]=r(e);return gx(e,t)},toPart:r,extend:function(...n){for(const e of n)e in t||(t[e]=r(e));return gx(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.selector])));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.className])));return e},get keys(){return Object.keys(t)},__type:{}}}var yx=gx("accordion").parts("root","container","button","panel").extend("icon"),bx=gx("alert").parts("title","description","container").extend("icon","spinner"),xx=gx("avatar").parts("label","badge","container").extend("excessLabel","group"),wx=gx("breadcrumb").parts("link","item","container").extend("separator"),Sx=(gx("button").parts(),gx("checkbox").parts("control","icon","container").extend("label")),kx=(gx("progress").parts("track","filledTrack").extend("label"),gx("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),Ex=gx("editable").parts("preview","input","textarea"),Cx=gx("form").parts("container","requiredIndicator","helperText"),_x=gx("formError").parts("text","icon"),Px=gx("input").parts("addon","field","element","group"),Tx=gx("list").parts("container","item","icon"),Ox=gx("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),Ax=gx("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Rx=gx("numberinput").parts("root","field","stepperGroup","stepper"),zx=(gx("pininput").parts("field"),gx("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),jx=gx("progress").parts("label","filledTrack","track"),Fx=gx("radio").parts("container","control","label"),Mx=gx("select").parts("field","icon"),Ix=gx("slider").parts("container","track","thumb","filledTrack","mark"),Nx=gx("stat").parts("container","label","helpText","number","icon"),Dx=gx("switch").parts("container","track","thumb","label"),Lx=gx("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Bx=gx("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),$x=gx("tag").parts("container","label","closeButton"),Vx=gx("card").parts("container","header","body","footer");function Ux(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function Wx(e,t){return`var(${Ux(e)}${t?`, ${t}`:""})`}function Hx(e,t){const n=function(e,t=""){return`--${function(e,t=""){return[t,Ux(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:n,reference:Wx(n,(r=null==t?void 0:t.fallback,"string"==typeof r?r:null==r?void 0:r.reference))};var r}function qx(e){return X(e)&&e.reference?e.reference:String(e)}gx("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var Qx=(e,...t)=>t.map(qx).join(` ${e} `).replace(/calc/g,""),Gx=(...e)=>`calc(${Qx("+",...e)})`,Xx=(...e)=>`calc(${Qx("-",...e)})`,Kx=(...e)=>`calc(${Qx("*",...e)})`,Yx=(...e)=>`calc(${Qx("/",...e)})`,Zx=e=>{const t=qx(e);return null==t||Number.isNaN(parseFloat(t))?Kx(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Jx=Object.assign((e=>({add:(...t)=>Jx(Gx(e,...t)),subtract:(...t)=>Jx(Xx(e,...t)),multiply:(...t)=>Jx(Kx(e,...t)),divide:(...t)=>Jx(Yx(e,...t)),negate:()=>Jx(Zx(e)),toString:()=>e.toString()})),{add:Gx,subtract:Xx,multiply:Kx,divide:Yx,negate:Zx}),{defineMultiStyleConfig:ew,definePartsStyle:tw}=yr(Dx.keys),nw=Hx("switch-track-width"),rw=Hx("switch-track-height"),ow=Hx("switch-track-diff"),aw=Jx.subtract(nw,rw),iw=Hx("switch-thumb-x"),sw=Hx("switch-bg"),lw=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[nw.reference],height:[rw.reference],transitionProperty:"common",transitionDuration:"fast",[sw.variable]:"colors.gray.300",_dark:{[sw.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[sw.variable]:`colors.${t}.500`,_dark:{[sw.variable]:`colors.${t}.200`}},bg:sw.reference}},uw={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[rw.reference],height:[rw.reference],_checked:{transform:`translateX(${iw.reference})`}},cw=ew({baseStyle:tw((e=>({container:{[ow.variable]:aw,[iw.variable]:ow.reference,_rtl:{[iw.variable]:Jx(ow).negate().toString()}},track:lw(e),thumb:uw}))),sizes:{sm:tw({container:{[nw.variable]:"1.375rem",[rw.variable]:"sizes.3"}}),md:tw({container:{[nw.variable]:"1.875rem",[rw.variable]:"sizes.4"}}),lg:tw({container:{[nw.variable]:"2.875rem",[rw.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function dw(e,t){return n=>"dark"===n.colorMode?t:e}function fw(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?"vertical"===t?n:r:{}}var{defineMultiStyleConfig:pw,definePartsStyle:hw}=yr(Lx.keys),mw=hw({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"}}),vw={"&[data-is-numeric=true]":{textAlign:"end"}},gw=hw((e=>{const{colorScheme:t}=e;return{th:{color:dw("gray.600","gray.400")(e),borderBottom:"1px",borderColor:dw(`${t}.100`,`${t}.700`)(e),...vw},td:{borderBottom:"1px",borderColor:dw(`${t}.100`,`${t}.700`)(e),...vw},caption:{color:dw("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),yw=hw((e=>{const{colorScheme:t}=e;return{th:{color:dw("gray.600","gray.400")(e),borderBottom:"1px",borderColor:dw(`${t}.100`,`${t}.700`)(e),...vw},td:{borderBottom:"1px",borderColor:dw(`${t}.100`,`${t}.700`)(e),...vw},caption:{color:dw("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:dw(`${t}.100`,`${t}.700`)(e)},td:{background:dw(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),bw=pw({baseStyle:mw,variants:{simple:gw,striped:yw,unstyled:{}},sizes:{sm:hw({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:hw({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:hw({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function xw(e,t,n){return Math.min(Math.max(e,n),t)}class ww extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var Sw=ww;function kw(e){if("string"!=typeof e)throw new Sw(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=Rw.test(e)?function(e){const t=e.toLowerCase().trim(),n=Cw[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new Sw(e);return`#${n}`}(e):e;const n=Pw.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(_w(e,2),16))),parseInt(_w(e[3]||"f",2),16)/255]}const r=Tw.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const o=Ow.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const a=Aw.exec(t);if(a){const[t,n,r,o]=Array.from(a).slice(1).map(parseFloat);if(xw(0,100,n)!==n)throw new Sw(e);if(xw(0,100,r)!==r)throw new Sw(e);return[...jw(t,n,r),Number.isNaN(o)?1:o]}throw new Sw(e)}const Ew=e=>parseInt(e.replace(/_/g,""),36),Cw="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=Ew(t.substring(0,3)),r=Ew(t.substring(3)).toString(16);let o="";for(let e=0;e<6-r.length;e++)o+="0";return e[n]=`${o}${r}`,e}),{}),_w=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),Pw=new RegExp(`^#${_w("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Tw=new RegExp(`^#${_w("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Ow=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${_w(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Aw=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Rw=/^[a-z]+$/i,zw=e=>Math.round(255*e),jw=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(zw);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;return[s+c,l+c,u+c].map(zw)};function Fw(e,t){const[n,r,o,a]=kw(e);return function(e,t,n,r){return`rgba(${xw(0,255,e).toFixed()}, ${xw(0,255,t).toFixed()}, ${xw(0,255,n).toFixed()}, ${parseFloat(xw(0,1,r).toFixed(3))})`}(n,r,o,a-t)}var Mw=(e,t,n)=>{const r=function(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}(e,`colors.${t}`,t);try{return function(e){const[t,n,r,o]=kw(e);let a=e=>{const t=xw(0,255,e).toString(16);return 1===t.length?`0${t}`:t};a(t),a(n),a(r),o<1&&a(Math.round(255*o))}(r),r}catch{return null!=n?n:"#000000"}},Iw=(e,t)=>n=>Fw(Mw(n,e),1-t);function Nw(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n    45deg,\n    ${t} 25%,\n    transparent 25%,\n    transparent 50%,\n    ${t} 50%,\n    ${t} 75%,\n    transparent 75%,\n    transparent\n  )`,backgroundSize:`${e} ${e}`}}var Dw=Dn("tabs-color"),Lw=Dn("tabs-bg"),Bw=Dn("tabs-border-color"),{defineMultiStyleConfig:$w,definePartsStyle:Vw}=yr(Bx.keys),Uw=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},Ww=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}}},Hw=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===n?"column":"row"}},qw={p:4},Qw=Vw((e=>({root:Uw(e),tab:Ww(e),tablist:Hw(e),tabpanel:qw}))),Gw={sm:Vw({tab:{py:1,px:4,fontSize:"sm"}}),md:Vw({tab:{fontSize:"md",py:2,px:4}}),lg:Vw({tab:{fontSize:"lg",py:3,px:4}})},Xw=Vw((e=>{const{colorScheme:t,orientation:n}=e,r="vertical"===n,o=r?"borderStart":"borderBottom",a=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[Dw.variable]:`colors.${t}.600`,_dark:{[Dw.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Lw.variable]:"colors.gray.200",_dark:{[Lw.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Dw.reference,bg:Lw.reference}}})),Kw=Vw((e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Bw.variable]:"transparent",_selected:{[Dw.variable]:`colors.${t}.600`,[Bw.variable]:"colors.white",_dark:{[Dw.variable]:`colors.${t}.300`,[Bw.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Bw.reference},color:Dw.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Yw=Vw((e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Lw.variable]:"colors.gray.50",_dark:{[Lw.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Lw.variable]:"colors.white",[Dw.variable]:`colors.${t}.600`,_dark:{[Lw.variable]:"colors.gray.800",[Dw.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Dw.reference,bg:Lw.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Zw=Vw((e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Mw(n,`${t}.700`),bg:Mw(n,`${t}.100`)}}}})),Jw=Vw((e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Dw.variable]:"colors.gray.600",_dark:{[Dw.variable]:"inherit"},_selected:{[Dw.variable]:"colors.white",[Lw.variable]:`colors.${t}.600`,_dark:{[Dw.variable]:"colors.gray.800",[Lw.variable]:`colors.${t}.300`}},color:Dw.reference,bg:Lw.reference}}})),eS=$w({baseStyle:Qw,sizes:Gw,variants:{line:Xw,enclosed:Kw,"enclosed-colored":Yw,"soft-rounded":Zw,"solid-rounded":Jw,unstyled:Vw({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),tS=function(e){const t={};for(const n of["bg","color","shadow"])if(Array.isArray(n)){const[r,o]=n;t[r]=Dn(`${e}-${r}`,o)}else t[n]=Dn(`${e}-${n}`);return t}("badge"),nS={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:tS.bg.reference,color:tS.color.reference,boxShadow:tS.shadow.reference},variants:{solid:e=>{const{colorScheme:t,theme:n}=e,r=Iw(`${t}.500`,.6)(n);return{[tS.bg.variable]:`colors.${t}.500`,[tS.color.variable]:"colors.white",_dark:{[tS.bg.variable]:r,[tS.color.variable]:"colors.whiteAlpha.800"}}},subtle:e=>{const{colorScheme:t,theme:n}=e,r=Iw(`${t}.200`,.16)(n);return{[tS.bg.variable]:`colors.${t}.100`,[tS.color.variable]:`colors.${t}.800`,_dark:{[tS.bg.variable]:r,[tS.color.variable]:`colors.${t}.200`}}},outline:e=>{const{colorScheme:t,theme:n}=e,r=Iw(`${t}.200`,.8)(n);return{[tS.color.variable]:`colors.${t}.500`,_dark:{[tS.color.variable]:r},[tS.shadow.variable]:`inset 0 0 0px 1px ${tS.color.reference}`}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:rS,definePartsStyle:oS}=yr($x.keys),aS=Dn("tag-bg"),iS=Dn("tag-color"),sS=Dn("tag-shadow"),lS=Dn("tag-min-height"),uS=Dn("tag-min-width"),cS=Dn("tag-font-size"),dS=Dn("tag-padding-inline"),fS=oS({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[iS.variable]:tS.color.reference,[aS.variable]:tS.bg.reference,[sS.variable]:tS.shadow.reference,color:iS.reference,bg:aS.reference,boxShadow:sS.reference,borderRadius:"md",minH:lS.reference,minW:uS.reference,fontSize:cS.reference,px:dS.reference,_focusVisible:{[sS.variable]:"shadows.outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{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}}}),pS={sm:oS({container:{[lS.variable]:"sizes.5",[uS.variable]:"sizes.5",[cS.variable]:"fontSizes.xs",[dS.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:oS({container:{[lS.variable]:"sizes.6",[uS.variable]:"sizes.6",[cS.variable]:"fontSizes.sm",[dS.variable]:"space.2"}}),lg:oS({container:{[lS.variable]:"sizes.8",[uS.variable]:"sizes.8",[cS.variable]:"fontSizes.md",[dS.variable]:"space.3"}})},hS={subtle:oS((e=>{var t;return{container:null==(t=nS.variants)?void 0:t.subtle(e)}})),solid:oS((e=>{var t;return{container:null==(t=nS.variants)?void 0:t.solid(e)}})),outline:oS((e=>{var t;return{container:null==(t=nS.variants)?void 0:t.outline(e)}}))},mS=rS({variants:hS,baseStyle:fS,sizes:pS,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:vS,defineMultiStyleConfig:gS}=yr(Px.keys),yS=Dn("input-height"),bS=Dn("input-font-size"),xS=Dn("input-padding"),wS=Dn("input-border-radius"),SS=vS({addon:{height:yS.reference,fontSize:bS.reference,px:xS.reference,borderRadius:wS.reference},field:{width:"100%",height:yS.reference,fontSize:bS.reference,px:xS.reference,borderRadius:wS.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),kS={lg:{[bS.variable]:"fontSizes.lg",[xS.variable]:"space.4",[wS.variable]:"radii.md",[yS.variable]:"sizes.12"},md:{[bS.variable]:"fontSizes.md",[xS.variable]:"space.4",[wS.variable]:"radii.md",[yS.variable]:"sizes.10"},sm:{[bS.variable]:"fontSizes.sm",[xS.variable]:"space.3",[wS.variable]:"radii.sm",[yS.variable]:"sizes.8"},xs:{[bS.variable]:"fontSizes.xs",[xS.variable]:"space.2",[wS.variable]:"radii.sm",[yS.variable]:"sizes.6"}},ES={lg:vS({field:kS.lg,group:kS.lg}),md:vS({field:kS.md,group:kS.md}),sm:vS({field:kS.sm,group:kS.sm}),xs:vS({field:kS.xs,group:kS.xs})};function CS(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||dw("blue.500","blue.300")(e),errorBorderColor:n||dw("red.500","red.300")(e)}}var _S,PS,TS,OS,AS,RS,zS,jS,FS,MS,IS,NS=vS((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=CS(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:dw("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Mw(t,r),boxShadow:`0 0 0 1px ${Mw(t,r)}`},_focusVisible:{zIndex:1,borderColor:Mw(t,n),boxShadow:`0 0 0 1px ${Mw(t,n)}`}},addon:{border:"1px solid",borderColor:dw("inherit","whiteAlpha.50")(e),bg:dw("gray.100","whiteAlpha.300")(e)}}})),DS=vS((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=CS(e);return{field:{border:"2px solid",borderColor:"transparent",bg:dw("gray.100","whiteAlpha.50")(e),_hover:{bg:dw("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Mw(t,r)},_focusVisible:{bg:"transparent",borderColor:Mw(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:dw("gray.100","whiteAlpha.50")(e)}}})),LS=vS((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=CS(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Mw(t,r),boxShadow:`0px 1px 0px 0px ${Mw(t,r)}`},_focusVisible:{borderColor:Mw(t,n),boxShadow:`0px 1px 0px 0px ${Mw(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),BS=gS({baseStyle:SS,sizes:ES,variants:{outline:NS,filled:DS,flushed:LS,unstyled:vS({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),$S={...null==(_S=BS.baseStyle)?void 0:_S.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},VS={outline:e=>{var t,n;return null!=(n=null==(t=BS.variants)?void 0:t.outline(e).field)?n:{}},flushed:e=>{var t,n;return null!=(n=null==(t=BS.variants)?void 0:t.flushed(e).field)?n:{}},filled:e=>{var t,n;return null!=(n=null==(t=BS.variants)?void 0:t.filled(e).field)?n:{}},unstyled:null!=(TS=null==(PS=BS.variants)?void 0:PS.unstyled.field)?TS:{}},US={baseStyle:$S,sizes:{xs:null!=(AS=null==(OS=BS.sizes)?void 0:OS.xs.field)?AS:{},sm:null!=(zS=null==(RS=BS.sizes)?void 0:RS.sm.field)?zS:{},md:null!=(FS=null==(jS=BS.sizes)?void 0:jS.md.field)?FS:{},lg:null!=(IS=null==(MS=BS.sizes)?void 0:MS.lg.field)?IS:{}},variants:VS,defaultProps:{size:"md",variant:"outline"}},WS=Hx("tooltip-bg"),HS=Hx("tooltip-fg"),qS=Hx("popper-arrow-bg"),QS={baseStyle:{bg:WS.reference,color:HS.reference,[WS.variable]:"colors.gray.700",[HS.variable]:"colors.whiteAlpha.900",_dark:{[WS.variable]:"colors.gray.300",[HS.variable]:"colors.gray.900"},[qS.variable]:WS.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},{defineMultiStyleConfig:GS,definePartsStyle:XS}=yr(jx.keys),KS=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,a=dw(Nw(),Nw("1rem","rgba(0,0,0,0.1)"))(e),i=dw(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n    to right,\n    transparent 0%,\n    ${Mw(n,i)} 50%,\n    transparent 100%\n  )`;return{...!r&&o&&a,...r?{bgImage:s}:{bgColor:i}}},YS={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},ZS=e=>({bg:dw("gray.100","whiteAlpha.300")(e)}),JS=e=>({transitionProperty:"common",transitionDuration:"slow",...KS(e)}),ek=XS((e=>({label:YS,filledTrack:JS(e),track:ZS(e)}))),tk=GS({sizes:{xs:XS({track:{h:"1"}}),sm:XS({track:{h:"2"}}),md:XS({track:{h:"3"}}),lg:XS({track:{h:"4"}})},baseStyle:ek,defaultProps:{size:"md",colorScheme:"blue"}});function nk(e,...t){return"function"==typeof e?e(...t):e}var rk,ok,ak,ik,sk,lk,uk,ck,dk,{definePartsStyle:fk,defineMultiStyleConfig:pk}=yr(Sx.keys),hk=Dn("checkbox-size"),mk=e=>{const{colorScheme:t}=e;return{w:hk.reference,h:hk.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:dw(`${t}.500`,`${t}.200`)(e),borderColor:dw(`${t}.500`,`${t}.200`)(e),color:dw("white","gray.900")(e),_hover:{bg:dw(`${t}.600`,`${t}.300`)(e),borderColor:dw(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:dw("gray.200","transparent")(e),bg:dw("gray.200","whiteAlpha.300")(e),color:dw("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:dw(`${t}.500`,`${t}.200`)(e),borderColor:dw(`${t}.500`,`${t}.200`)(e),color:dw("white","gray.900")(e)},_disabled:{bg:dw("gray.100","whiteAlpha.100")(e),borderColor:dw("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:dw("red.500","red.300")(e)}}},vk={_disabled:{cursor:"not-allowed"}},gk={userSelect:"none",_disabled:{opacity:.4}},yk={transitionProperty:"transform",transitionDuration:"normal"},bk=pk({baseStyle:fk((e=>({icon:yk,container:vk,control:nk(mk,e),label:gk}))),sizes:{sm:fk({control:{[hk.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:fk({control:{[hk.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:fk({control:{[hk.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:xk,definePartsStyle:wk}=yr(Fx.keys),Sk=e=>{var t;const n=null==(t=nk(bk.baseStyle,e))?void 0:t.control;return{...n,borderRadius:"full",_checked:{...null==n?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},kk=wk((e=>{var t,n,r,o;return{label:null==(n=(t=bk).baseStyle)?void 0:n.call(t,e).label,container:null==(o=(r=bk).baseStyle)?void 0:o.call(r,e).container,control:Sk(e)}})),Ek=xk({baseStyle:kk,sizes:{md:wk({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:wk({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:wk({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ck,definePartsStyle:_k}=yr(Mx.keys),Pk=Dn("select-bg"),Tk={paddingInlineEnd:"8"},Ok=Ck({baseStyle:_k({field:{...null==(rk=BS.baseStyle)?void 0:rk.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Pk.reference,[Pk.variable]:"colors.white",_dark:{[Pk.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Pk.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...null==(ok=BS.sizes)?void 0:ok.lg,field:{...null==(ak=BS.sizes)?void 0:ak.lg.field,...Tk}},md:{...null==(ik=BS.sizes)?void 0:ik.md,field:{...null==(sk=BS.sizes)?void 0:sk.md.field,...Tk}},sm:{...null==(lk=BS.sizes)?void 0:lk.sm,field:{...null==(uk=BS.sizes)?void 0:uk.sm.field,...Tk}},xs:{...null==(ck=BS.sizes)?void 0:ck.xs,field:{...null==(dk=BS.sizes)?void 0:dk.xs.field,...Tk},icon:{insetEnd:"1"}}},variants:BS.variants,defaultProps:BS.defaultProps}),Ak=Dn("skeleton-start-color"),Rk=Dn("skeleton-end-color"),zk={baseStyle:{[Ak.variable]:"colors.gray.100",[Rk.variable]:"colors.gray.400",_dark:{[Ak.variable]:"colors.gray.800",[Rk.variable]:"colors.gray.600"},background:Ak.reference,borderColor:Rk.reference,opacity:.7,borderRadius:"sm"}},jk=Dn("skip-link-bg"),Fk={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[jk.variable]:"colors.white",_dark:{[jk.variable]:"colors.gray.700"},bg:jk.reference}}},{defineMultiStyleConfig:Mk,definePartsStyle:Ik}=yr(Ix.keys),Nk=Dn("slider-thumb-size"),Dk=Dn("slider-track-size"),Lk=Dn("slider-bg"),Bk=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...fw({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},$k=e=>({...fw({orientation:e.orientation,horizontal:{h:Dk.reference},vertical:{w:Dk.reference}}),overflow:"hidden",borderRadius:"sm",[Lk.variable]:"colors.gray.200",_dark:{[Lk.variable]:"colors.whiteAlpha.200"},_disabled:{[Lk.variable]:"colors.gray.300",_dark:{[Lk.variable]:"colors.whiteAlpha.300"}},bg:Lk.reference}),Vk=e=>{const{orientation:t}=e;return{...fw({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:Nk.reference,h:Nk.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"}}},Uk=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Lk.variable]:`colors.${t}.500`,_dark:{[Lk.variable]:`colors.${t}.200`},bg:Lk.reference}},Wk=Mk({baseStyle:Ik((e=>({container:Bk(e),track:$k(e),thumb:Vk(e),filledTrack:Uk(e)}))),sizes:{lg:Ik({container:{[Nk.variable]:"sizes.4",[Dk.variable]:"sizes.1"}}),md:Ik({container:{[Nk.variable]:"sizes.3.5",[Dk.variable]:"sizes.1"}}),sm:Ik({container:{[Nk.variable]:"sizes.2.5",[Dk.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Hk=Hx("spinner-size"),qk={baseStyle:{width:[Hk.reference],height:[Hk.reference]},sizes:{xs:{[Hk.variable]:"sizes.3"},sm:{[Hk.variable]:"sizes.4"},md:{[Hk.variable]:"sizes.6"},lg:{[Hk.variable]:"sizes.8"},xl:{[Hk.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:Qk,definePartsStyle:Gk}=yr(Nx.keys),Xk=Qk({baseStyle:Gk({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:Gk({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),Kk=Dn("kbd-bg"),Yk={baseStyle:{[Kk.variable]:"colors.gray.100",_dark:{[Kk.variable]:"colors.whiteAlpha.100"},bg:Kk.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},{defineMultiStyleConfig:Zk,definePartsStyle:Jk}=yr(Tx.keys),eE=Zk({baseStyle:Jk({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:tE,definePartsStyle:nE}=yr(Ox.keys),rE=Dn("menu-bg"),oE=Dn("menu-shadow"),aE=tE({baseStyle:nE({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[rE.variable]:"#fff",[oE.variable]:"shadows.sm",_dark:{[rE.variable]:"colors.gray.700",[oE.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:rE.reference,boxShadow:oE.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[rE.variable]:"colors.gray.100",_dark:{[rE.variable]:"colors.whiteAlpha.100"}},_active:{[rE.variable]:"colors.gray.200",_dark:{[rE.variable]:"colors.whiteAlpha.200"}},_expanded:{[rE.variable]:"colors.gray.100",_dark:{[rE.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:rE.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),{defineMultiStyleConfig:iE,definePartsStyle:sE}=yr(Ax.keys),lE=Dn("modal-bg"),uE=Dn("modal-shadow"),cE={bg:"blackAlpha.600",zIndex:"modal"},dE=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===n?"hidden":"auto",overscrollBehaviorY:"none"}},fE=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===n?"calc(100% - 7.5rem)":void 0,[lE.variable]:"colors.white",[uE.variable]:"shadows.lg",_dark:{[lE.variable]:"colors.gray.700",[uE.variable]:"shadows.dark-lg"},bg:lE.reference,boxShadow:uE.reference}},pE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},hE={position:"absolute",top:"2",insetEnd:"3"},mE=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},vE={px:"6",py:"4"};function gE(e){return sE("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var yE=iE({baseStyle:sE((e=>({overlay:cE,dialogContainer:nk(dE,e),dialog:nk(fE,e),header:pE,closeButton:hE,body:nk(mE,e),footer:vE}))),sizes:{xs:gE("xs"),sm:gE("sm"),md:gE("md"),lg:gE("lg"),xl:gE("xl"),"2xl":gE("2xl"),"3xl":gE("3xl"),"4xl":gE("4xl"),"5xl":gE("5xl"),"6xl":gE("6xl"),full:gE("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:bE,definePartsStyle:xE}=yr(Rx.keys),wE=Hx("number-input-stepper-width"),SE=Hx("number-input-input-padding"),kE=Jx(wE).add("0.5rem").toString(),EE=Hx("number-input-bg"),CE=Hx("number-input-color"),_E=Hx("number-input-border-color"),PE={[wE.variable]:"sizes.6",[SE.variable]:kE},TE=e=>{var t,n;return null!=(n=null==(t=nk(BS.baseStyle,e))?void 0:t.field)?n:{}},OE={width:wE.reference},AE={borderStart:"1px solid",borderStartColor:_E.reference,color:CE.reference,bg:EE.reference,[CE.variable]:"colors.chakra-body-text",[_E.variable]:"colors.chakra-border-color",_dark:{[CE.variable]:"colors.whiteAlpha.800",[_E.variable]:"colors.whiteAlpha.300"},_active:{[EE.variable]:"colors.gray.200",_dark:{[EE.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},RE=xE((e=>{var t;return{root:PE,field:null!=(t=nk(TE,e))?t:{},stepperGroup:OE,stepper:AE}}));function zE(e){var t,n,r;const o=null==(t=BS.sizes)?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},i=null!=(r=null==(n=o.field)?void 0:n.fontSize)?r:"md",s=ox.fontSizes[i];return xE({field:{...o.field,paddingInlineEnd:SE.reference,verticalAlign:"top"},stepper:{fontSize:Jx(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var jE,FE,ME,IE=bE({baseStyle:RE,sizes:{xs:zE("xs"),sm:zE("sm"),md:zE("md"),lg:zE("lg")},variants:BS.variants,defaultProps:BS.defaultProps}),NE={...null==(jE=BS.baseStyle)?void 0:jE.field,textAlign:"center"},DE={outline:e=>{var t,n,r;return null!=(r=null==(n=nk(null==(t=BS.variants)?void 0:t.outline,e))?void 0:n.field)?r:{}},flushed:e=>{var t,n,r;return null!=(r=null==(n=nk(null==(t=BS.variants)?void 0:t.flushed,e))?void 0:n.field)?r:{}},filled:e=>{var t,n,r;return null!=(r=null==(n=nk(null==(t=BS.variants)?void 0:t.filled,e))?void 0:n.field)?r:{}},unstyled:null!=(ME=null==(FE=BS.variants)?void 0:FE.unstyled.field)?ME:{}},LE={baseStyle:NE,sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:DE,defaultProps:BS.defaultProps},{defineMultiStyleConfig:BE,definePartsStyle:$E}=yr(zx.keys),VE=Hx("popper-bg"),UE=Hx("popper-arrow-bg"),WE=Hx("popper-arrow-shadow-color"),HE=BE({baseStyle:$E({popper:{zIndex:10},content:{[VE.variable]:"colors.white",bg:VE.reference,[UE.variable]:VE.reference,[WE.variable]:"colors.gray.200",_dark:{[VE.variable]:"colors.gray.700",[WE.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),{definePartsStyle:qE,defineMultiStyleConfig:QE}=yr(kx.keys),GE=Dn("drawer-bg"),XE=Dn("drawer-box-shadow");function KE(e){return qE("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var YE={bg:"blackAlpha.600",zIndex:"modal"},ZE={display:"flex",zIndex:"modal",justifyContent:"center"},JE=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[GE.variable]:"colors.white",[XE.variable]:"shadows.lg",_dark:{[GE.variable]:"colors.gray.700",[XE.variable]:"shadows.dark-lg"},bg:GE.reference,boxShadow:XE.reference}},eC={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},tC={position:"absolute",top:"2",insetEnd:"3"},nC={px:"6",py:"2",flex:"1",overflow:"auto"},rC={px:"6",py:"4"},oC=QE({baseStyle:qE((e=>({overlay:YE,dialogContainer:ZE,dialog:nk(JE,e),header:eC,closeButton:tC,body:nC,footer:rC}))),sizes:{xs:KE("xs"),sm:KE("md"),md:KE("lg"),lg:KE("2xl"),xl:KE("4xl"),full:KE("full")},defaultProps:{size:"xs"}}),{definePartsStyle:aC,defineMultiStyleConfig:iC}=yr(Ex.keys),sC=iC({baseStyle:aC({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),{definePartsStyle:lC,defineMultiStyleConfig:uC}=yr(Cx.keys),cC=Dn("form-control-color"),dC=uC({baseStyle:lC({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[cC.variable]:"colors.red.500",_dark:{[cC.variable]:"colors.red.300"},color:cC.reference},helperText:{mt:"2",[cC.variable]:"colors.gray.600",_dark:{[cC.variable]:"colors.whiteAlpha.600"},color:cC.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:fC,defineMultiStyleConfig:pC}=yr(_x.keys),hC=Dn("form-error-color"),mC=pC({baseStyle:fC({text:{[hC.variable]:"colors.red.500",_dark:{[hC.variable]:"colors.red.300"},color:hC.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[hC.variable]:"colors.red.500",_dark:{[hC.variable]:"colors.red.300"},color:hC.reference}})}),{defineMultiStyleConfig:vC,definePartsStyle:gC}=yr(wx.keys),yC=Dn("breadcrumb-link-decor"),bC=vC({baseStyle:gC({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:yC.reference,[yC.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[yC.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})}),xC=e=>{const{colorScheme:t,theme:n}=e;if("gray"===t)return{color:dw("gray.800","whiteAlpha.900")(e),_hover:{bg:dw("gray.100","whiteAlpha.200")(e)},_active:{bg:dw("gray.200","whiteAlpha.300")(e)}};const r=Iw(`${t}.200`,.12)(n),o=Iw(`${t}.200`,.24)(n);return{color:dw(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:dw(`${t}.50`,r)(e)},_active:{bg:dw(`${t}.100`,o)(e)}}},wC={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},SC={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:xC,outline:e=>{const{colorScheme:t}=e,n=dw("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?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"},...nk(xC,e)}},solid:e=>{var t;const{colorScheme:n}=e;if("gray"===n){const t=dw("gray.100","whiteAlpha.200")(e);return{bg:t,color:dw("gray.800","whiteAlpha.900")(e),_hover:{bg:dw("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:dw("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:a=`${n}.600`,activeBg:i=`${n}.700`}=null!=(t=wC[n])?t:{},s=dw(r,`${n}.200`)(e);return{bg:s,color:dw(o,"gray.800")(e),_hover:{bg:dw(a,`${n}.300`)(e),_disabled:{bg:s}},_active:{bg:dw(i,`${n}.400`)(e)}}},link:e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:dw(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:dw(`${t}.700`,`${t}.500`)(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:kC,defineMultiStyleConfig:EC}=yr(Vx.keys),CC=Dn("card-bg"),_C=Dn("card-padding"),PC=Dn("card-shadow"),TC=Dn("card-radius"),OC=Dn("card-border-width","0"),AC=Dn("card-border-color"),RC=kC({container:{[CC.variable]:"colors.chakra-body-bg",backgroundColor:CC.reference,boxShadow:PC.reference,borderRadius:TC.reference,color:"chakra-body-text",borderWidth:OC.reference,borderColor:AC.reference},body:{padding:_C.reference,flex:"1 1 0%"},header:{padding:_C.reference},footer:{padding:_C.reference}}),zC={sm:kC({container:{[TC.variable]:"radii.base",[_C.variable]:"space.3"}}),md:kC({container:{[TC.variable]:"radii.md",[_C.variable]:"space.5"}}),lg:kC({container:{[TC.variable]:"radii.xl",[_C.variable]:"space.7"}})},jC=EC({baseStyle:RC,variants:{elevated:kC({container:{[PC.variable]:"shadows.base",_dark:{[CC.variable]:"colors.gray.700"}}}),outline:kC({container:{[OC.variable]:"1px",[AC.variable]:"colors.chakra-border-color"}}),filled:kC({container:{[CC.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[_C.variable]:0},header:{[_C.variable]:0},footer:{[_C.variable]:0}}},sizes:zC,defaultProps:{variant:"elevated",size:"md"}}),FC=Hx("close-button-size"),MC=Hx("close-button-bg"),IC={baseStyle:{w:[FC.reference],h:[FC.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[MC.variable]:"colors.blackAlpha.100",_dark:{[MC.variable]:"colors.whiteAlpha.100"}},_active:{[MC.variable]:"colors.blackAlpha.200",_dark:{[MC.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:MC.reference},sizes:{lg:{[FC.variable]:"sizes.10",fontSize:"md"},md:{[FC.variable]:"sizes.8",fontSize:"xs"},sm:{[FC.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:NC,defaultProps:DC}=nS,LC={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:tS.bg.reference,color:tS.color.reference,boxShadow:tS.shadow.reference},variants:NC,defaultProps:DC},{definePartsStyle:BC,defineMultiStyleConfig:$C}=yr(yx.keys),VC=$C({baseStyle:BC({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})}),{definePartsStyle:UC,defineMultiStyleConfig:WC}=yr(bx.keys),HC=Dn("alert-fg"),qC=Dn("alert-bg"),QC=UC({container:{bg:qC.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:HC.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:HC.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function GC(e){const{theme:t,colorScheme:n}=e;return{light:`colors.${n}.100`,dark:Iw(`${n}.200`,.16)(t)}}var XC=UC((e=>{const{colorScheme:t}=e,n=GC(e);return{container:{[HC.variable]:`colors.${t}.600`,[qC.variable]:n.light,_dark:{[HC.variable]:`colors.${t}.200`,[qC.variable]:n.dark}}}})),KC=UC((e=>{const{colorScheme:t}=e,n=GC(e);return{container:{[HC.variable]:`colors.${t}.600`,[qC.variable]:n.light,_dark:{[HC.variable]:`colors.${t}.200`,[qC.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:HC.reference}}})),YC=UC((e=>{const{colorScheme:t}=e,n=GC(e);return{container:{[HC.variable]:`colors.${t}.600`,[qC.variable]:n.light,_dark:{[HC.variable]:`colors.${t}.200`,[qC.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:HC.reference}}})),ZC=UC((e=>{const{colorScheme:t}=e;return{container:{[HC.variable]:"colors.white",[qC.variable]:`colors.${t}.600`,_dark:{[HC.variable]:"colors.gray.900",[qC.variable]:`colors.${t}.200`},color:HC.reference}}})),JC=WC({baseStyle:QC,variants:{subtle:XC,"left-accent":KC,"top-accent":YC,solid:ZC},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:e_,defineMultiStyleConfig:t_}=yr(xx.keys),n_=Dn("avatar-border-color"),r_=Dn("avatar-bg"),o_=Dn("avatar-font-size"),a_=Dn("avatar-size"),i_={borderRadius:"full",border:"0.2em solid",borderColor:n_.reference,[n_.variable]:"white",_dark:{[n_.variable]:"colors.gray.800"}},s_={bg:r_.reference,fontSize:o_.reference,width:a_.reference,height:a_.reference,lineHeight:"1",[r_.variable]:"colors.gray.200",_dark:{[r_.variable]:"colors.whiteAlpha.400"}},l_=e=>{const{name:t,theme:n}=e,r=t?function(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(n=e,0!==Object.keys(n).length)?e.string&&e.colors?function(e,t){let n=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)n=e.charCodeAt(t)+((n<<5)-n),n&=n;return n=(n%t.length+t.length)%t.length,t[n]}(e.string,e.colors):e.string&&!e.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t&=t;let n="#";for(let e=0;e<3;e+=1)n+=`00${(t>>8*e&255).toString(16)}`.substr(-2);return n}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t:t;var n}({string:t}):"colors.gray.400",o=(e=>t=>"dark"===(e=>t=>{const n=(e=>{const[t,n,r]=kw(e);return(299*t+587*n+114*r)/1e3})(Mw(t,e));return n<128?"dark":"light"})(e)(t))(r)(n);let a="white";return o||(a="gray.800"),{bg:r_.reference,fontSize:o_.reference,color:a,borderColor:n_.reference,verticalAlign:"top",width:a_.reference,height:a_.reference,"&:not([data-loaded])":{[r_.variable]:r},[n_.variable]:"colors.white",_dark:{[n_.variable]:"colors.gray.800"}}},u_={fontSize:o_.reference,lineHeight:"1"};function c_(e){const t="100%"!==e?ix[e]:void 0;return e_({container:{[a_.variable]:null!=t?t:e,[o_.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[a_.variable]:null!=t?t:e,[o_.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var d_={Accordion:VC,Alert:JC,Avatar:t_({baseStyle:e_((e=>({badge:nk(i_,e),excessLabel:nk(s_,e),container:nk(l_,e),label:u_}))),sizes:{"2xs":c_(4),xs:c_(6),sm:c_(8),md:c_(12),lg:c_(16),xl:c_(24),"2xl":c_(32),full:c_("100%")},defaultProps:{size:"md"}}),Badge:nS,Breadcrumb:bC,Button:SC,Checkbox:bk,CloseButton:IC,Code:LC,Container:{baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},Divider:{baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},Drawer:oC,Editable:sC,Form:dC,FormError:mC,FormLabel:{baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},Heading:{baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},Input:BS,Kbd:Yk,Link:{baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},List:eE,Menu:aE,Modal:yE,NumberInput:IE,PinInput:LE,Popover:HE,Progress:tk,Radio:Ek,Select:Ok,Skeleton:zk,SkipLink:Fk,Slider:Wk,Spinner:qk,Stat:Xk,Switch:cw,Table:bw,Tabs:eS,Tag:mS,Textarea:US,Tooltip:QS,Card:jC,Stepper:vx},f_={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-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},p_={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"}}},h_={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},m_={semanticTokens:f_,direction:"ltr",...sx,components:d_,styles:p_,config:h_},v_={semanticTokens:f_,direction:"ltr",components:{},...sx,styles:p_,config:h_},g_=e=>function({children:t,theme:n=e,toastOptions:r,...o}){return(0,oe.jsxs)(rx,{theme:n,...o,children:[(0,oe.jsx)(Op,{value:null==r?void 0:r.defaultOptions,children:t}),(0,oe.jsx)(Rp,{...r})]})},y_=g_(m_);function b_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}g_(v_);var x_=function(e){return t().createElement(pa,{viewBox:"0 0 32 32",width:"26px",height:"26px"},t().createElement("path",{fill:"#475BB2",fillRule:"evenodd",d:"M29.2401 2.25439C27.1109 3.50683 25.107 5.13503 23.3536 6.88846C21.6002 8.64188 19.972 10.6458 18.7195 12.6497C19.5962 14.4031 20.3477 16.1566 20.9739 18.0352C22.1011 15.6556 23.4788 13.5264 25.2323 11.6477V18.4109C25.2323 22.544 22.4769 26.1761 18.4691 27.3033H18.2185C17.9681 24.047 17.2166 20.9158 16.0894 17.91C14.4612 13.7769 11.9563 10.0196 8.69995 6.88846C6.94652 5.13503 4.94263 3.63208 2.81347 2.25439L2.3125 2.00388V18.2857C2.3125 24.9237 7.07177 30.6849 13.7097 31.8121H13.835C15.3379 32.0626 16.8409 32.0626 18.2185 31.8121H18.3438C24.9818 30.6849 29.7411 24.9237 29.7411 18.2857V2.00388L29.2401 2.25439ZM6.82128 18.2857V11.6477C10.7039 16.0313 13.0835 21.4168 13.5845 27.1781C9.57669 26.0509 6.82128 22.4188 6.82128 18.2857ZM15.9642 0C14.0855 0 12.5825 1.50291 12.5825 3.38158C12.5825 5.26025 14.0855 6.7632 15.9642 6.7632C17.8428 6.7632 19.3457 5.26025 19.3457 3.38158C19.3457 1.50291 17.8428 0 15.9642 0Z",clipRule:"evenodd"}))},w_=function(n){var r=n.onTabChange,o=(0,e.useMemo)((function(){return[Q("All","user-registration"),Q("Free","user-registration"),Q("Premium","user-registration")]}),[]);return t().createElement(Vb,{variant:"unstyled",ml:"auto",onChange:r},t().createElement(Ub,{gap:"8px"},o.map((function(e){return t().createElement(Wb,{key:e,_selected:{color:"#475bb2",borderBottom:"2px solid",borderColor:"#475bb2"},color:"#383838",fontWeight:"500",fontSize:"16px",lineHeight:"20px",px:{base:1,md:2},boxShadow:"none !important"},e)}))))};const S_=function(){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b_(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(Q("All","user-registration")),2),r=n[0],o=n[1];return t().createElement(y_,null,t().createElement(to,{border:"1px solid #EDF2F7",borderRadius:"4px",backgroundColor:"white"},t().createElement(to,{padding:"0px 20px 50px",gap:"24px",display:"flex",flexDirection:"column"},t().createElement(Po,{align:"center",bg:"white",direction:{base:"column",md:"row"},borderBottom:"1px solid #CDD0D8",padding:"20px 10px",boxShadow:"none"},t().createElement(Po,{gap:"24px"},t().createElement(Po,{gap:"16px"},t().createElement(x_,{boxSize:{base:5,md:6,lg:7}}),t().createElement(yg,{orientation:"vertical",height:{base:"16px",md:"24px",lg:"32px"},border:"1px solid #CDDOD8"}),t().createElement(To,{fontSize:{base:"12px",md:"14px",lg:"16px"},fontWeight:"500",textAlign:{base:"center",md:"left"},color:"#383838"},Q("Add New Form","user-registration"))),t().createElement(qo,{style:{borderColor:"#475bb2",color:"#475bb2"},variant:"outline",onClick:function(){var e=new URL(window.location.href);e.searchParams.set("refresh",Date.now().toString()),window.location.href=e.toString()},width:{base:"full",md:"auto"},className:"chakra-link ",display:{base:"none",md:"inline-flex"},padding:"8px 12px",gap:"4px",fontWeight:"500",fontSize:"16px",_hover:{backgroundColor:"#475BB2",color:"white !important"}},Q("Refresh Templates","user-registration"))),t().createElement(w_,{onTabChange:function(e){var t=[Q("All","user-registration"),Q("Free","user-registration"),Q("Premium","user-registration")];o(t[e])}})),t().createElement(to,{bg:"white",p:"0px 8px",rounded:"md",gap:"24px"},t().createElement(_o,{align:"start",gap:"8px"},t().createElement(Bo,{as:"h2",fontSize:"20px",lineHeight:"28px",m:0,color:"#26262E",fontWeight:"500",letterSpacing:"0.5px"},Q("Select a Template","user-registration")),t().createElement(To,{fontSize:"14px",lineHeight:"25px",fontWeight:"400",color:"#4D4D4D",m:0},Q("To get started quickly, you can pick from our ready-made templates, begin with a blank form, or design your own.","user-registration")))),t().createElement(to,{bg:"white",rounded:"md",gap:"24px",boxShadow:"none"},t().createElement(yb,{filter:r})))))};class k_ extends wy{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||by,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=yy(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Jg).catch(Jg):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!ty(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;s(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(u=l.fetchOptions)?void 0:u.meta});const c=e=>{var t,n,r,o;Oy(e)&&e.silent||this.dispatch({type:"error",error:e}),Oy(e)||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Ay({fn:l.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,r,o;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):c(new Error(this.queryHash+" data is undefined"))},onError:c,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Py(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return Oy(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),xy.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class E_ extends Sy{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const o=t.queryKey,a=null!=(r=t.queryHash)?r:iy(o,t);let i=this.get(a);return i||(i=new k_({cache:this,logger:e.getLogger(),queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(i)),i}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){xy.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=ry(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>oy(n,e)))}findAll(e,t){const[n]=ry(e,t);return Object.keys(n).length>0?this.queries.filter((e=>oy(n,e))):this.queries}notify(e){xy.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){xy.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){xy.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class C_ extends Sy{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new Ry({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){xy.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>ay(e,t)))}findAll(e){return this.mutations.filter((t=>ay(e,t)))}notify(e){xy.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return xy.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(Jg)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function __(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var P_=function(){return null},T_=new class{constructor(e={}){this.queryCache=e.queryCache||new E_,this.mutationCache=e.mutationCache||new C_,this.logger=e.logger||by,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=ky.subscribe((()=>{ky.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Cy.subscribe((()=>{Cy.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=ry(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=ny(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const a=ny(e),i=this.defaultQueryOptions(a);return this.queryCache.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return xy.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=ry(e,t),r=this.queryCache;xy.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,o]=ry(e,t,n),a=this.queryCache,i={type:"active",...r};return xy.batch((()=>(a.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(i,o))))}cancelQueries(e,t,n){const[r,o={}]=ry(e,t,n);void 0===o.revert&&(o.revert=!0);const a=xy.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(o)))));return Promise.all(a).then(Jg).catch(Jg)}invalidateQueries(e,t,n){const[r,o]=ry(e,t,n);return xy.batch((()=>{var e,t;if(this.queryCache.findAll(r).forEach((e=>{e.invalidate()})),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)}))}refetchQueries(e,t,n){const[r,o]=ry(e,t,n),a=xy.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let i=Promise.all(a).then(Jg);return null!=o&&o.throwOnError||(i=i.catch(Jg)),i}fetchQuery(e,t,n){const r=ny(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Jg).catch(Jg)}fetchInfiniteQuery(e,t,n){const r=ny(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,u=null==l?void 0:l.pageParam,c="forward"===(null==l?void 0:l.direction),d="backward"===(null==l?void 0:l.direction),f=(null==(a=e.state.data)?void 0:a.pages)||[],p=(null==(i=e.state.data)?void 0:i.pageParams)||[];let h=p,m=!1;const v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),g=(e,t,n,r)=>(h=r?[t,...h]:[...h,t],r?[n,...e]:[...e,n]),y=(t,n,r,o)=>{if(m)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}});const s=v(a);return Promise.resolve(s).then((e=>g(t,r,e,o)))};let b;if(f.length)if(c){const t=void 0!==u,n=t?u:__(e.options,f);b=y(f,t,n)}else if(d){const t=void 0!==u,n=t?u:function(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}(e.options,f);b=y(f,t,n,!0)}else{h=[];const t=void 0===e.options.getNextPageParam;b=s&&f[0]&&!s(f[0],0,f)?Promise.resolve(g([],p[0],f[0])):y([],t,p[0]);for(let n=1;n<f.length;n++)b=b.then((r=>{if(!s||!f[n]||s(f[n],n,f)){const o=t?p[n]:__(e.options,r);return y(r,t,o)}return Promise.resolve(g(r,p[n],f[n]))}))}else b=y([]);return b.then((e=>({pages:e,pageParams:h})))}}},this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Jg).catch(Jg)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>sy(e)===sy(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>ly(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>sy(e)===sy(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>ly(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=iy(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1}}});(0,r.createRoot)(document.getElementById("user-registration-form-templates")).render(t().createElement(Yg,{client:T_},t().createElement(S_,null),t().createElement(P_,{initialIsOpen:!1})))})()})();

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
content-restriction-enhanced
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
edit-password
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
edit-profile
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
login-form
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
login-logout-menu
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
membership-listing
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
myaccount
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
registration-form
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
thank-you
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:25
inteuuod / inteuuod
0644
blocks.js
555.145 KB
June 19 2025 14:56:36
inteuuod / inteuuod
0644
blocks.js.LICENSE.txt
1.117 KB
June 19 2025 14:56:36
inteuuod / inteuuod
0644
dashboard.js
1.44 MB
June 19 2025 14:56:36
inteuuod / inteuuod
0644
dashboard.js.LICENSE.txt
2.111 KB
June 19 2025 14:56:36
inteuuod / inteuuod
0644
divi-builder.js
19.856 KB
April 16 2025 15:38:10
inteuuod / inteuuod
0644
form_templates.js
548.701 KB
June 19 2025 14:56:36
inteuuod / inteuuod
0644
form_templates.js.LICENSE.txt
1.37 KB
June 19 2025 14:56:36
inteuuod / inteuuod
0644
formblock.js
3.829 KB
July 03 2024 08:32:50
inteuuod / inteuuod
0644
reactPlayerPreview.js
2.597 KB
September 10 2024 15:52:12
inteuuod / inteuuod
0644
welcome.js
597.107 KB
June 19 2025 14:56:36
inteuuod / inteuuod
0644
welcome.js.LICENSE.txt
0.957 KB
April 15 2024 09:24:46
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF