diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..e52f6c5 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +www.coms-configuration-tool.portal.evam.life diff --git a/assets/index-BWH1YflQ.css b/assets/index-BWH1YflQ.css new file mode 100644 index 0000000..f3769ce --- /dev/null +++ b/assets/index-BWH1YflQ.css @@ -0,0 +1 @@ +@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/lato-latin-ext-400-normal-C8eBZ-j2.woff2) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAA58AA0AAAAAE4QAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHUE9TAAABMAAAAIYAAACulG+XaUdTVUIAAAG4AAAAJwAAACi4/LjqT1MvMgAAAeAAAABYAAAAYHjAX4djbWFwAAACOAAAAGIAAACEBd8lTGdhc3AAAAKcAAAADAAAAAwAEgAYZ2x5ZgAAAqgAAAibAAALupo4vshoZWFkAAALRAAAADYAAAA2/JzyI2hoZWEAAAt8AAAAHwAAACQPtgbEaG10eAAAC5wAAAB+AAAApptvC9Fsb2NhAAAMHAAAAFgAAABYRc5IuG1heHAAAAx0AAAAHAAAACAAOQDmbmFtZQAADJAAAAEuAAACmDboUwRwb3N0AAANwAAAALkAAAEQ+VviIHjaRIq1gQJAEEXfuQvuLinaAZIgERnu7hRARD1UQRE0sww++o0H4JMwSR6T6WwB66i+mvDLM4BSPEjfMTwO2wvxzxcQ7ZR4PP13WaMweKVAnjjBUz8I/0WPHQcuPDzxr3Zo1B6drHiqxJ9ai7oVtYZO1qQ2PGBXvcMYmIDi14CsGADB6yDuAAB42mNgZGBg4GJQA0ImFzefEAahnMSSPAY+BhBgARH//4NIAFpJBVUAeNpjYGYRYpzAwMrAwFrBKsLAwCgBoZl3MVQwfuFgZuJnZWJiYmFmYm5gYOBlQAIllQE+DA4MDAoKbF7/qhgnsG9jXKXAwDAZJMf8lXUmkFJgYAIAG7kNFHjaY2BgYAJiZiAWAZKMYJqFoQBISzAIAEU4gCxeBgVGdkZJRhfGaMZExjrGSQoK//8DxSEyLIwSjI6MUYwJjBVQGcb/X/8//s/179e/y//2/dv1b8m/iQ/YgGbjAAAfRhpDAAAAAQACABIAB///AA942pVWBVwi6xb/YmZokJoRlEFAGXABXdIEdcXruuZ227rd3bu3u8O7t1t/t7u7u7u7uy/g+wZY9PV7JufM+U79z/c/AyjgBQD/RY+AEhAClaAWAH0UB/w8MhrUlAY6BGeUCgWdDrsaOeyCPhjOPiOSE9q0tgj5/dNU2djhiw1Pd/PecLmD0u5QUmZvpLxoeqW7wlWoMCn7o+Wsy6LVWlxseTR1MX424ffj/sT51GbWadE66hZVRDqrpzhLuOWb7YEpLl+VK1CjY3Vs4q+yOi3v5jgXr41Rl/05HKY9AIKF49/TMnoU+ACAfitUQ4fdB1EoqAsXB/wsJ0krKDFno4FHAX8URcLURXmq1vl/3XAwcWPf8nuh7KILPlkQk+i0Kosr3NJXt/G+49rajrx1ed3QvBlOLXSpZg1tWPkAVF9yCVQ/uLJv9gK5Sl9YVKjvOO3FA0e9eGqrpmiqXUPCg2sBoCtI/1gikNjQB0PagJZ0R4A8NGod2gDUmU15OIrRWB9n1SQeQmhsgB5RGf563DyVw7/9OZynpyKmckMCEzfEY9X49/gtUh3BIlMaylbCZPsuRKIw4M8UFgr6mFAwisS68QkyQ57WG++N1w9Ms1f37ty/s7e6budNG47/pKtCyqmN4a6Ns+KrZriqe8ijnurqdZev3PZoC3WHRmN32x01XWU1HRVuT2T2jgVLL9/RNDh3sULjDXud8Z7q+lkVgjs8d39360lrGlqbAQRSAKiPScIGACCpEooJkIq5KIzAKKyG6NUHkj+NmXkFbDYUKBRmAzxMZjVdjaqSj6Iq3G3WJ19yRHlr1I68eRbiby7xdwbxpyL+jAYJtBltoWAE2kLUGcbEK9j/1/N67El8Ro802/m/TryglS+gtlxAzrWM/4j3UjQo/cduie0hv9asNtekuDRPo3GE2ypaNrQJpa2rG+tnVxTrOIW/4dE13Zdui8e237hxxWUxXK9QmnhTaOCk+YtP7g1YnVZtfdeMpiMf3LX+/uPb4zERqdMAwO+Q2BwAAa0YKoOLiLp4ZRiJ9rQVTrm64dKVs/bO8dy4fFXHsVX4l5I10xdGBk+am9yJjty4t7U+yYq+ogR1DfFVQwTm/wAdvao0aZyR1qC3OVDgbVnav7TF6+87acmKq2tKpaxO56rsqg22B03elu7+7hZv+eKj5g5cWIXbWbaAXKuQVQg6LTZXzbzapq3z/PFwo0pdaC8s8NXYSyOCpcgdXVRftbKrPBYRc2wi9c7BvwBx8A1MFqOwCJINz1Erkm8jd5JWKZGQfA99j0f1DnXSeXyLypGH3jtBPP8wdTyaQyZbRgSshlOgWBOa84W6wLjiDLWtiB5NpTSqHzkjQECeGqNPI/MggDIAaD+bwdEpxiPNwLb0eRiADjU2GlixK9CGnYIaSugBiQwV8ksC8wc7akxF0qOSu4+S2E1nodpHUG2JodTOTi3leIMqEUPcB6xRYZS/JKUbOEtHQ9Wgk8zpwtQVukJ65M9hhVUoMzunSGRS9Bk6LNzljpsBQGBxagx/TknANDALAFsufGBSjoRwnGVQjQ8NXiRHoUSdHRLoF/XicR7hHRNp0bnsWSFkzZcbXK2zu6uqh1u9Dad/e/Vgf/2C+jJOZ5YVzX5wy5wjFvpS/jIyjvzOq1dNNXtqJnLO1mSpCHj1kqKlxZWCwdYwGK9ZOzdCdWzZbnPb9OrKrs6KgZPmJD/RO/xFL1FWf2Opq6pEC8bHMxzL/IqcgAIASIALfgGIPnPf6FGil6X1KvATSPNgaowKEryc/4gWWRDGQ78TYFHMJJCSC/HGZCfyJl9C1y+a6MQkWOiRC1LF56S4CybqAwi0ECQeS9+Z+D9G9WGx75llxThsPJ5gA0kuCUyuqC3oQ+iLXDINweFr9jTV77h+zaJz18V0puRSVD57U/O03qYyLav0+0+faRBshkx+9+w/Q4cEe0P3oURDS0pQ83GP719x+9FttRtHV5UW9pzUXWYtJtRRc5haYXX6TOnUqTlnHhEdnuEW++YBgDKSvmmJUEKIj063ShIKxqA2AEfhvoLUQbQq8eJdpksexCUP77eo707ZL0Wl3UeaVXPR08RDGAA0g34A5IlMHCHlagghZz3AkRuVmrNvvMF0Dv1A8sG2oTyjZFqSRne0LrcoGtFegmd6f6VxprM4Py/inOG2NM7yDM6QEfWZ7cT8SnBmMvYZfYa/0vaKjD24cpL92+iQvRvmTbIfydkXg7NFfWavMD8SvSStF2CjqM/sh3Se0mzcdlGf4aR0XGU27s0T9hJ9zr4Uzp9kf2fOvgTcMsn/2zl799/Zj+Tsi0X/AIIVqYvwj/S1wJHhMkcomH7P0As+WAsDIrERJMQ7ryE0iS5eYPru1RpvV8wjXXDQaHzFmP/Vm4VWX1edV8bCBgySzmfuWFpprlrciJ7XIJN++lWP3tdn4cxVSxov2Q8gye1UNJCZEm2aaFiyaGPpRYsdO5Uss0/B0BJ6H8Mptr53BT0ip3fL5LSc2s3IUr+T8zdT98Ab6DuBXmRuNZpYiDyCNxgdPrPZazcY7F6z2ecw0lU5qcxhMDjKxHq3pM6ldPSDwApA9i2Qw+Qfh8nC97MWaNPqSbmCXmvb4p5ib+3sFPJdoYiTa7847nGltnHOSMiVn9qKz7KWy+RKDD/nuFS+xAzLrTWpnsRvHIdl8CKAxr9nWLSF+ZFkKpBI/5Ar/Q/y0zrezRkFXqfjBSPn5nVwTMe7WPF1Ucu7ONbF65gDrCBKAis+F+3/QQYQXMLI0WnMr+IkQjqzl3AAnZZ6U2s2HveSXKtjtcyvryulT8mVUgzg+NfEfhvzNtARe4eQxoOHOUDgcdd/e7SyUHYASxCS4AOyQuXRjPxFCbMUMRgzaCkjITFvZ6zwaon+XyJyNem9Kd9j0+ttnnwTwYI5h0gGgyh5RGQ84G89W3ecAAABAAAAARqgpsgxBl8PPPUAGQfQAAAAAMqTXnAAAAAAyt8uhf9E/pMIuQctAAAACQACAAAAAAAAeNpjYGRgYN/2L4yBgZPpv8t/Z46dQBFUoAEAh9AFjQB42mNRZ9BlgALGJgYG1iiGKNYXDOtYVBisWF4xcLA8YAhjXsbgxRLBMIk5hcGOeQ6DG1MawxHWAAYu5m8MMSD1YPklQD0SQNqOQYepicEMZAZID4sHgxVIH4sKhIaZCTIHg+5gyAKazQDEW4DsMqa0/x8YFv1/w7ADAHhIJcMAAAAAAFoAWgBaAFoAoADJARwBRAFgAZ4BxAIWAjYCTAKZAwwDGAMkA14DwAPhBAAEDAQYBCQEMAQ8BEgEVARgBGwEeASEBJAEnATTBPMFFAVIBYIFmgW8Bd142mNgZGBg0GZoYmBnSGJgAfMQgImBEQAaiQEgeNp1kQVKBFAQQJ/dEiYlg4TdUkra3UFjd/fuWTyGB/SBf9fm15se5gPlHFFEQXEFFNQXtCQuoLygMXEhtQXliYvY4C1xMc28Ji5hhYXEpeqHE9dKcMKD64YR+lz37HPHqfKD3Mu9fOF7rfZY+zJTLLh2tV/TwxqH6h/12dVjS+kOY7RdEQzQ6+m3zqjSttZ74/TR2sUK18adqjsh5BstV9xLj3rsK+XqxPc66jIpeteIAxa0nMv3ZJnwnHKo1tcsI8S/ebQxSD8Dru+WXMS458ZqzkSrsyJoN2tHLtLTk88R7Okbv/qLbx3Grx6DZ98HTlKH9547ntCDYAqnqTVYMsOl2qA116HUSyiZJ83vI+oRK2Me2cxSsM6snsFymnU+968M3cQ/v9n7DgZiZhEAAHjabUrDYQQBFH1/1kYPsXmJeYltDNY2jrmnjTSRUsJ1E+vRaT+fwECsThp5DKoJgBgw0GAYc1jGKtawjzNc4wnvpCEtWmiTjvQoo0IGMpKJzKiihk+ykJVsZEcdDXyghG+8kYOc5CK39vjq8NCwFfPFop6QgZX/nvw90tcfs3wm7dFHpXchvZT07qVXFJ/5XoilWZ73RNPmogptQsCT9KQCqWmeTXnMYlKCPJuMRUVoV9Mi7QLLwkcgAAAA) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/lato-latin-400-normal-BEhtfm5r.woff2) format("woff2"),url(/assets/lato-latin-400-normal-B11PyLys.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} diff --git a/assets/index-CK5Fhwwr.js b/assets/index-CK5Fhwwr.js new file mode 100644 index 0000000..ba00a55 --- /dev/null +++ b/assets/index-CK5Fhwwr.js @@ -0,0 +1,453 @@ +var YB=Object.defineProperty;var XB=(e,t,r)=>t in e?YB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Kb=(e,t,r)=>(XB(e,typeof t!="symbol"?t+"":t,r),r);function QB(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rs(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var kR={exports:{}},t0={},CR={exports:{}},ht={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Fh=Symbol.for("react.element"),JB=Symbol.for("react.portal"),e8=Symbol.for("react.fragment"),t8=Symbol.for("react.strict_mode"),r8=Symbol.for("react.profiler"),n8=Symbol.for("react.provider"),i8=Symbol.for("react.context"),o8=Symbol.for("react.forward_ref"),s8=Symbol.for("react.suspense"),a8=Symbol.for("react.memo"),l8=Symbol.for("react.lazy"),kT=Symbol.iterator;function u8(e){return e===null||typeof e!="object"?null:(e=kT&&e[kT]||e["@@iterator"],typeof e=="function"?e:null)}var TR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ER=Object.assign,PR={};function Vc(e,t,r){this.props=e,this.context=t,this.refs=PR,this.updater=r||TR}Vc.prototype.isReactComponent={};Vc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Vc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function AR(){}AR.prototype=Vc.prototype;function Mw(e,t,r){this.props=e,this.context=t,this.refs=PR,this.updater=r||TR}var zw=Mw.prototype=new AR;zw.constructor=Mw;ER(zw,Vc.prototype);zw.isPureReactComponent=!0;var CT=Array.isArray,RR=Object.prototype.hasOwnProperty,Lw={current:null},OR={key:!0,ref:!0,__self:!0,__source:!0};function IR(e,t,r){var n,i={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)RR.call(t,n)&&!OR.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1>>1,X=oe[Y];if(0>>1;Yi(pe,he))Aei(He,pe)?(oe[Y]=He,oe[Ae]=he,Y=Ae):(oe[Y]=pe,oe[me]=he,Y=me);else if(Aei(He,he))oe[Y]=He,oe[Ae]=he,Y=Ae;else break e}}return ee}function i(oe,ee){var he=oe.sortIndex-ee.sortIndex;return he!==0?he:oe.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],d=[],f=1,h=null,m=3,v=!1,x=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(oe){for(var ee=r(d);ee!==null;){if(ee.callback===null)n(d);else if(ee.startTime<=oe)n(d),ee.sortIndex=ee.expirationTime,t(u,ee);else break;ee=r(d)}}function C(oe){if(g=!1,_(oe),!x)if(r(u)!==null)x=!0,ge(T);else{var ee=r(d);ee!==null&&G(C,ee.startTime-oe)}}function T(oe,ee){x=!1,g&&(g=!1,b(z),z=-1),v=!0;var he=m;try{for(_(ee),h=r(u);h!==null&&(!(h.expirationTime>ee)||oe&&!ce());){var Y=h.callback;if(typeof Y=="function"){h.callback=null,m=h.priorityLevel;var X=Y(h.expirationTime<=ee);ee=e.unstable_now(),typeof X=="function"?h.callback=X:h===r(u)&&n(u),_(ee)}else n(u);h=r(u)}if(h!==null)var xe=!0;else{var me=r(d);me!==null&&G(C,me.startTime-ee),xe=!1}return xe}finally{h=null,m=he,v=!1}}var I=!1,$=null,z=-1,N=5,V=-1;function ce(){return!(e.unstable_now()-Voe||125Y?(oe.sortIndex=he,t(d,oe),r(u)===null&&oe===r(d)&&(g?(b(z),z=-1):g=!0,G(C,he-Y))):(oe.sortIndex=X,t(u,oe),x||v||(x=!0,ge(T))),oe},e.unstable_shouldYield=ce,e.unstable_wrapCallback=function(oe){var ee=m;return function(){var he=m;m=ee;try{return oe.apply(this,arguments)}finally{m=he}}}})(MR);DR.exports=MR;var x8=DR.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var _8=R,ci=x8;function Se(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ix=Object.prototype.hasOwnProperty,w8=/^[: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]*$/,PT={},AT={};function S8(e){return Ix.call(AT,e)?!0:Ix.call(PT,e)?!1:w8.test(e)?AT[e]=!0:(PT[e]=!0,!1)}function k8(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C8(e,t,r,n){if(t===null||typeof t>"u"||k8(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function On(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var rn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rn[e]=new On(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rn[t]=new On(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rn[e]=new On(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rn[e]=new On(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){rn[e]=new On(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rn[e]=new On(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rn[e]=new On(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rn[e]=new On(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rn[e]=new On(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bw=/[\-:]([a-z])/g;function Vw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Bw,Vw);rn[t]=new On(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(Bw,Vw);rn[t]=new On(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(Bw,Vw);rn[t]=new On(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rn[e]=new On(e,1,!1,e.toLowerCase(),null,!1,!1)});rn.xlinkHref=new On("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rn[e]=new On(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ww(e,t,r,n){var i=rn.hasOwnProperty(t)?rn[t]:null;(i!==null?i.type!==0:n||!(2l||i[s]!==o[l]){var u=` +`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{qb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Kd(e):""}function T8(e){switch(e.tag){case 5:return Kd(e.type);case 16:return Kd("Lazy");case 13:return Kd("Suspense");case 19:return Kd("SuspenseList");case 0:case 2:case 15:return e=Yb(e.type,!1),e;case 11:return e=Yb(e.type.render,!1),e;case 1:return e=Yb(e.type,!0),e;default:return""}}function Dx(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ou:return"Fragment";case Ru:return"Portal";case $x:return"Profiler";case Uw:return"StrictMode";case Fx:return"Suspense";case jx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NR:return(e.displayName||"Context")+".Consumer";case LR:return(e._context.displayName||"Context")+".Provider";case Hw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kw:return t=e.displayName||null,t!==null?t:Dx(e.type)||"Memo";case ea:t=e._payload,e=e._init;try{return Dx(e(t))}catch{}}return null}function E8(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Dx(t);case 8:return t===Uw?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ka(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function VR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function P8(e){var t=VR(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bm(e){e._valueTracker||(e._valueTracker=P8(e))}function WR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=VR(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Uv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mx(e,t){var r=t.checked;return hr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function OT(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ka(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function UR(e,t){t=t.checked,t!=null&&Ww(e,"checked",t,!1)}function zx(e,t){UR(e,t);var r=ka(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Lx(e,t.type,r):t.hasOwnProperty("defaultValue")&&Lx(e,t.type,ka(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function IT(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Lx(e,t,r){(t!=="number"||Uv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Gd=Array.isArray;function rc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=xm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var af={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},A8=["Webkit","ms","Moz","O"];Object.keys(af).forEach(function(e){A8.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),af[t]=af[e]})});function ZR(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||af.hasOwnProperty(e)&&af[e]?(""+t).trim():t+"px"}function qR(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=ZR(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var R8=hr({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 Vx(e,t){if(t){if(R8[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Se(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Se(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Se(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Se(62))}}function Wx(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ux=null;function Gw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hx=null,nc=null,ic=null;function jT(e){if(e=Mh(e)){if(typeof Hx!="function")throw Error(Se(280));var t=e.stateNode;t&&(t=s0(t),Hx(e.stateNode,e.type,t))}}function YR(e){nc?ic?ic.push(e):ic=[e]:nc=e}function XR(){if(nc){var e=nc,t=ic;if(ic=nc=null,jT(e),t)for(e=0;e>>=0,e===0?32:31-(B8(e)/V8|0)|0}var _m=64,wm=4194304;function Zd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Zv(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var l=s&~i;l!==0?n=Zd(l):(o&=s,o!==0&&(n=Zd(o)))}else s=r&~i,s!==0?n=Zd(s):o!==0&&(n=Zd(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function jh(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ao(t),e[t]=r}function K8(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=uf),UT=" ",HT=!1;function gO(e,t){switch(e){case"keyup":return xV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Iu=!1;function wV(e,t){switch(e){case"compositionend":return yO(t);case"keypress":return t.which!==32?null:(HT=!0,UT);case"textInput":return e=t.data,e===UT&&HT?null:e;default:return null}}function SV(e,t){if(Iu)return e==="compositionend"||!tS&&gO(e,t)?(e=mO(),lv=Qw=ua=null,Iu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)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=qT(r)}}function wO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function SO(){for(var e=window,t=Uv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Uv(e.document)}return t}function rS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function IV(e){var t=SO(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&wO(r.ownerDocument.documentElement,r)){if(n!==null&&rS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=YT(r,o);var s=YT(r,n);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,$u=null,Xx=null,df=null,Qx=!1;function XT(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Qx||$u==null||$u!==Uv(n)||(n=$u,"selectionStart"in n&&rS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),df&&Bf(df,n)||(df=n,n=Xv(Xx,"onSelect"),0Du||(e.current=i_[Du],i_[Du]=null,Du--)}function Zt(e,t){Du++,i_[Du]=e.current,e.current=t}var Ca={},gn=Fa(Ca),Vn=Fa(!1),El=Ca;function _c(e,t){var r=e.type.contextTypes;if(!r)return Ca;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Wn(e){return e=e.childContextTypes,e!=null}function Jv(){er(Vn),er(gn)}function iE(e,t,r){if(gn.current!==Ca)throw Error(Se(168));Zt(gn,t),Zt(Vn,r)}function IO(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(Se(108,E8(e)||"Unknown",i));return hr({},r,n)}function eg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ca,El=gn.current,Zt(gn,e),Zt(Vn,Vn.current),!0}function oE(e,t,r){var n=e.stateNode;if(!n)throw Error(Se(169));r?(e=IO(e,t,El),n.__reactInternalMemoizedMergedChildContext=e,er(Vn),er(gn),Zt(gn,e)):er(Vn),Zt(Vn,r)}var us=null,a0=!1,c1=!1;function $O(e){us===null?us=[e]:us.push(e)}function UV(e){a0=!0,$O(e)}function ja(){if(!c1&&us!==null){c1=!0;var e=0,t=jt;try{var r=us;for(jt=1;e>=s,i-=s,fs=1<<32-ao(t)+i|r<z?(N=$,$=null):N=$.sibling;var V=m(b,$,_[z],C);if(V===null){$===null&&($=N);break}e&&$&&V.alternate===null&&t(b,$),y=o(V,y,z),I===null?T=V:I.sibling=V,I=V,$=N}if(z===_.length)return r(b,$),ir&&el(b,z),T;if($===null){for(;z<_.length;z++)$=h(b,_[z],C),$!==null&&(y=o($,y,z),I===null?T=$:I.sibling=$,I=$);return ir&&el(b,z),T}for($=n(b,$);z<_.length;z++)N=v($,b,z,_[z],C),N!==null&&(e&&N.alternate!==null&&$.delete(N.key===null?z:N.key),y=o(N,y,z),I===null?T=N:I.sibling=N,I=N);return e&&$.forEach(function(ce){return t(b,ce)}),ir&&el(b,z),T}function g(b,y,_,C){var T=Ad(_);if(typeof T!="function")throw Error(Se(150));if(_=T.call(_),_==null)throw Error(Se(151));for(var I=T=null,$=y,z=y=0,N=null,V=_.next();$!==null&&!V.done;z++,V=_.next()){$.index>z?(N=$,$=null):N=$.sibling;var ce=m(b,$,V.value,C);if(ce===null){$===null&&($=N);break}e&&$&&ce.alternate===null&&t(b,$),y=o(ce,y,z),I===null?T=ce:I.sibling=ce,I=ce,$=N}if(V.done)return r(b,$),ir&&el(b,z),T;if($===null){for(;!V.done;z++,V=_.next())V=h(b,V.value,C),V!==null&&(y=o(V,y,z),I===null?T=V:I.sibling=V,I=V);return ir&&el(b,z),T}for($=n(b,$);!V.done;z++,V=_.next())V=v($,b,z,V.value,C),V!==null&&(e&&V.alternate!==null&&$.delete(V.key===null?z:V.key),y=o(V,y,z),I===null?T=V:I.sibling=V,I=V);return e&&$.forEach(function(D){return t(b,D)}),ir&&el(b,z),T}function S(b,y,_,C){if(typeof _=="object"&&_!==null&&_.type===Ou&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case ym:e:{for(var T=_.key,I=y;I!==null;){if(I.key===T){if(T=_.type,T===Ou){if(I.tag===7){r(b,I.sibling),y=i(I,_.props.children),y.return=b,b=y;break e}}else if(I.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===ea&&lE(T)===I.type){r(b,I.sibling),y=i(I,_.props),y.ref=Fd(b,I,_),y.return=b,b=y;break e}r(b,I);break}else t(b,I);I=I.sibling}_.type===Ou?(y=gl(_.props.children,b.mode,C,_.key),y.return=b,b=y):(C=vv(_.type,_.key,_.props,null,b.mode,C),C.ref=Fd(b,y,_),C.return=b,b=C)}return s(b);case Ru:e:{for(I=_.key;y!==null;){if(y.key===I)if(y.tag===4&&y.stateNode.containerInfo===_.containerInfo&&y.stateNode.implementation===_.implementation){r(b,y.sibling),y=i(y,_.children||[]),y.return=b,b=y;break e}else{r(b,y);break}else t(b,y);y=y.sibling}y=y1(_,b.mode,C),y.return=b,b=y}return s(b);case ea:return I=_._init,S(b,y,I(_._payload),C)}if(Gd(_))return x(b,y,_,C);if(Ad(_))return g(b,y,_,C);Am(b,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,y!==null&&y.tag===6?(r(b,y.sibling),y=i(y,_),y.return=b,b=y):(r(b,y),y=g1(_,b.mode,C),y.return=b,b=y),s(b)):r(b,y)}return S}var Sc=MO(!0),zO=MO(!1),ng=Fa(null),ig=null,Lu=null,sS=null;function aS(){sS=Lu=ig=null}function lS(e){var t=ng.current;er(ng),e._currentValue=t}function a_(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function sc(e,t){ig=e,sS=Lu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Bn=!0),e.firstContext=null)}function Ni(e){var t=e._currentValue;if(sS!==e)if(e={context:e,memoizedValue:t,next:null},Lu===null){if(ig===null)throw Error(Se(308));Lu=e,ig.dependencies={lanes:0,firstContext:e}}else Lu=Lu.next=e;return t}var dl=null;function uS(e){dl===null?dl=[e]:dl.push(e)}function LO(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,uS(t)):(r.next=i.next,i.next=r),t.interleaved=r,ks(e,n)}function ks(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ta=!1;function cS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function NO(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 vs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ga(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,St&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,ks(e,r)}return i=n.interleaved,i===null?(t.next=t,uS(n)):(t.next=i.next,i.next=t),n.interleaved=t,ks(e,r)}function cv(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,qw(e,r)}}function uE(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function og(e,t,r,n){var i=e.updateQueue;ta=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,d=u.next;u.next=null,s===null?o=d:s.next=d,s=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==s&&(l===null?f.firstBaseUpdate=d:l.next=d,f.lastBaseUpdate=u))}if(o!==null){var h=i.baseState;s=0,f=d=u=null,l=o;do{var m=l.lane,v=l.eventTime;if((n&m)===m){f!==null&&(f=f.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,g=l;switch(m=t,v=r,g.tag){case 1:if(x=g.payload,typeof x=="function"){h=x.call(v,h,m);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,m=typeof x=="function"?x.call(v,h,m):x,m==null)break e;h=hr({},h,m);break e;case 2:ta=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else v={eventTime:v,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(d=f=v,u=h):f=f.next=v,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(f===null&&(u=h),i.baseState=u,i.firstBaseUpdate=d,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Rl|=s,e.lanes=s,e.memoizedState=h}}function cE(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=f1.transition;f1.transition={};try{e(!1),t()}finally{jt=r,f1.transition=n}}function nI(){return Bi().memoizedState}function ZV(e,t,r){var n=ba(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},iI(e))oI(t,r);else if(r=LO(e,t,r,n),r!==null){var i=Tn();lo(r,e,n,i),sI(r,t,n)}}function qV(e,t,r){var n=ba(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(iI(e))oI(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,r);if(i.hasEagerState=!0,i.eagerState=l,fo(l,s)){var u=t.interleaved;u===null?(i.next=i,uS(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=LO(e,t,i,n),r!==null&&(i=Tn(),lo(r,e,n,i),sI(r,t,n))}}function iI(e){var t=e.alternate;return e===fr||t!==null&&t===fr}function oI(e,t){ff=ag=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function sI(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,qw(e,r)}}var lg={readContext:Ni,useCallback:un,useContext:un,useEffect:un,useImperativeHandle:un,useInsertionEffect:un,useLayoutEffect:un,useMemo:un,useReducer:un,useRef:un,useState:un,useDebugValue:un,useDeferredValue:un,useTransition:un,useMutableSource:un,useSyncExternalStore:un,useId:un,unstable_isNewReconciler:!1},YV={readContext:Ni,useCallback:function(e,t){return ko().memoizedState=[e,t===void 0?null:t],e},useContext:Ni,useEffect:fE,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,fv(4194308,4,QO.bind(null,t,e),r)},useLayoutEffect:function(e,t){return fv(4194308,4,e,t)},useInsertionEffect:function(e,t){return fv(4,2,e,t)},useMemo:function(e,t){var r=ko();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ko();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ZV.bind(null,fr,e),[n.memoizedState,e]},useRef:function(e){var t=ko();return e={current:e},t.memoizedState=e},useState:dE,useDebugValue:yS,useDeferredValue:function(e){return ko().memoizedState=e},useTransition:function(){var e=dE(!1),t=e[0];return e=GV.bind(null,e[1]),ko().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=fr,i=ko();if(ir){if(r===void 0)throw Error(Se(407));r=r()}else{if(r=t(),Hr===null)throw Error(Se(349));Al&30||UO(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,fE(KO.bind(null,n,o,e),[e]),n.flags|=2048,qf(9,HO.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=ko(),t=Hr.identifierPrefix;if(ir){var r=hs,n=fs;r=(n&~(1<<32-ao(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Gf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Ao]=t,e[Uf]=n,vI(e,t,!1,!1),t.stateNode=e;e:{switch(s=Wx(r,n),r){case"dialog":Yt("cancel",e),Yt("close",e),i=n;break;case"iframe":case"object":case"embed":Yt("load",e),i=n;break;case"video":case"audio":for(i=0;iTc&&(t.flags|=128,n=!0,jd(o,!1),t.lanes=4194304)}else{if(!n)if(e=sg(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),jd(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ir)return cn(t),null}else 2*Cr()-o.renderingStartTime>Tc&&r!==1073741824&&(t.flags|=128,n=!0,jd(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Cr(),t.sibling=null,r=ur.current,Zt(ur,n?r&1|2:r&1),t):(cn(t),null);case 22:case 23:return kS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ei&1073741824&&(cn(t),t.subtreeFlags&6&&(t.flags|=8192)):cn(t),null;case 24:return null;case 25:return null}throw Error(Se(156,t.tag))}function i9(e,t){switch(iS(t),t.tag){case 1:return Wn(t.type)&&Jv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kc(),er(Vn),er(gn),hS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fS(t),null;case 13:if(er(ur),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Se(340));wc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return er(ur),null;case 4:return kc(),null;case 10:return lS(t.type._context),null;case 22:case 23:return kS(),null;case 24:return null;default:return null}}var Om=!1,hn=!1,o9=typeof WeakSet=="function"?WeakSet:Set,ze=null;function Nu(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){xr(e,t,n)}else r.current=null}function v_(e,t,r){try{r()}catch(n){xr(e,t,n)}}var SE=!1;function s9(e,t){if(Jx=qv,e=SO(),rS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,l=-1,u=-1,d=0,f=0,h=e,m=null;t:for(;;){for(var v;h!==r||i!==0&&h.nodeType!==3||(l=s+i),h!==o||n!==0&&h.nodeType!==3||(u=s+n),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===r&&++d===i&&(l=s),m===o&&++f===n&&(u=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}r=l===-1||u===-1?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(e_={focusedElem:e,selectionRange:r},qv=!1,ze=t;ze!==null;)if(t=ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ze=e;else for(;ze!==null;){t=ze;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,S=x.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:to(t.type,g),S);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Se(163))}}catch(C){xr(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,ze=e;break}ze=t.return}return x=SE,SE=!1,x}function hf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&v_(t,r,o)}i=i.next}while(i!==n)}}function c0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function g_(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function bI(e){var t=e.alternate;t!==null&&(e.alternate=null,bI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ao],delete t[Uf],delete t[n_],delete t[VV],delete t[WV])),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 xI(e){return e.tag===5||e.tag===3||e.tag===4}function kE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xI(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function y_(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Qv));else if(n!==4&&(e=e.child,e!==null))for(y_(e,t,r),e=e.sibling;e!==null;)y_(e,t,r),e=e.sibling}function b_(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(b_(e,t,r),e=e.sibling;e!==null;)b_(e,t,r),e=e.sibling}var Yr=null,ro=!1;function Zs(e,t,r){for(r=r.child;r!==null;)_I(e,t,r),r=r.sibling}function _I(e,t,r){if(Io&&typeof Io.onCommitFiberUnmount=="function")try{Io.onCommitFiberUnmount(r0,r)}catch{}switch(r.tag){case 5:hn||Nu(r,t);case 6:var n=Yr,i=ro;Yr=null,Zs(e,t,r),Yr=n,ro=i,Yr!==null&&(ro?(e=Yr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Yr.removeChild(r.stateNode));break;case 18:Yr!==null&&(ro?(e=Yr,r=r.stateNode,e.nodeType===8?u1(e.parentNode,r):e.nodeType===1&&u1(e,r),Lf(e)):u1(Yr,r.stateNode));break;case 4:n=Yr,i=ro,Yr=r.stateNode.containerInfo,ro=!0,Zs(e,t,r),Yr=n,ro=i;break;case 0:case 11:case 14:case 15:if(!hn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&v_(r,t,s),i=i.next}while(i!==n)}Zs(e,t,r);break;case 1:if(!hn&&(Nu(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){xr(r,t,l)}Zs(e,t,r);break;case 21:Zs(e,t,r);break;case 22:r.mode&1?(hn=(n=hn)||r.memoizedState!==null,Zs(e,t,r),hn=n):Zs(e,t,r);break;default:Zs(e,t,r)}}function CE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new o9),t.forEach(function(n){var i=m9.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ji(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=s),n&=~o}if(n=i,n=Cr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*l9(n/1960))-n,10e?16:e,ca===null)var n=!1;else{if(e=ca,ca=null,dg=0,St&6)throw Error(Se(331));var i=St;for(St|=4,ze=e.current;ze!==null;){var o=ze,s=o.child;if(ze.flags&16){var l=o.deletions;if(l!==null){for(var u=0;uCr()-wS?vl(e,0):_S|=r),Un(e,t)}function AI(e,t){t===0&&(e.mode&1?(t=wm,wm<<=1,!(wm&130023424)&&(wm=4194304)):t=1);var r=Tn();e=ks(e,t),e!==null&&(jh(e,t,r),Un(e,r))}function p9(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),AI(e,r)}function m9(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Se(314))}n!==null&&n.delete(t),AI(e,r)}var RI;RI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vn.current)Bn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Bn=!1,r9(e,t,r);Bn=!!(e.flags&131072)}else Bn=!1,ir&&t.flags&1048576&&FO(t,rg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;hv(e,t),e=t.pendingProps;var i=_c(t,gn.current);sc(t,r),i=mS(null,t,n,e,i,r);var o=vS();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wn(n)?(o=!0,eg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,cS(t),i.updater=u0,t.stateNode=i,i._reactInternals=t,u_(t,n,e,r),t=f_(null,t,n,!0,o,r)):(t.tag=0,ir&&o&&nS(t),Sn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(hv(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=g9(n),e=to(n,e),i){case 0:t=d_(null,t,n,e,r);break e;case 1:t=xE(null,t,n,e,r);break e;case 11:t=yE(null,t,n,e,r);break e;case 14:t=bE(null,t,n,to(n.type,e),r);break e}throw Error(Se(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:to(n,i),d_(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:to(n,i),xE(e,t,n,i,r);case 3:e:{if(hI(t),e===null)throw Error(Se(387));n=t.pendingProps,o=t.memoizedState,i=o.element,NO(e,t),og(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Cc(Error(Se(423)),t),t=_E(e,t,n,r,i);break e}else if(n!==i){i=Cc(Error(Se(424)),t),t=_E(e,t,n,r,i);break e}else for(ii=va(t.stateNode.containerInfo.firstChild),si=t,ir=!0,no=null,r=zO(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(wc(),n===i){t=Cs(e,t,r);break e}Sn(e,t,n,r)}t=t.child}return t;case 5:return BO(t),e===null&&s_(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,t_(n,i)?s=null:o!==null&&t_(n,o)&&(t.flags|=32),fI(e,t),Sn(e,t,s,r),t.child;case 6:return e===null&&s_(t),null;case 13:return pI(e,t,r);case 4:return dS(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Sc(t,null,n,r):Sn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:to(n,i),yE(e,t,n,i,r);case 7:return Sn(e,t,t.pendingProps,r),t.child;case 8:return Sn(e,t,t.pendingProps.children,r),t.child;case 12:return Sn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Zt(ng,n._currentValue),n._currentValue=s,o!==null)if(fo(o.value,s)){if(o.children===i.children&&!Vn.current){t=Cs(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=vs(-1,r&-r),u.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?u.next=u:(u.next=f.next,f.next=u),d.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),a_(o.return,r,t),l.lanes|=r;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Se(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),a_(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Sn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,sc(t,r),i=Ni(i),n=n(i),t.flags|=1,Sn(e,t,n,r),t.child;case 14:return n=t.type,i=to(n,t.pendingProps),i=to(n.type,i),bE(e,t,n,i,r);case 15:return cI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:to(n,i),hv(e,t),t.tag=1,Wn(n)?(e=!0,eg(t)):e=!1,sc(t,r),aI(t,n,i),u_(t,n,i,r),f_(null,t,n,!0,e,r);case 19:return mI(e,t,r);case 22:return dI(e,t,r)}throw Error(Se(156,t.tag))};function OI(e,t){return iO(e,t)}function v9(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fi(e,t,r,n){return new v9(e,t,r,n)}function TS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g9(e){if(typeof e=="function")return TS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hw)return 11;if(e===Kw)return 14}return 2}function xa(e,t){var r=e.alternate;return r===null?(r=Fi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function vv(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")TS(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ou:return gl(r.children,i,o,t);case Uw:s=8,i|=8;break;case $x:return e=Fi(12,r,t,i|2),e.elementType=$x,e.lanes=o,e;case Fx:return e=Fi(13,r,t,i),e.elementType=Fx,e.lanes=o,e;case jx:return e=Fi(19,r,t,i),e.elementType=jx,e.lanes=o,e;case BR:return f0(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case LR:s=10;break e;case NR:s=9;break e;case Hw:s=11;break e;case Kw:s=14;break e;case ea:s=16,n=null;break e}throw Error(Se(130,e==null?e:typeof e,""))}return t=Fi(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function gl(e,t,r,n){return e=Fi(7,e,n,t),e.lanes=r,e}function f0(e,t,r,n){return e=Fi(22,e,n,t),e.elementType=BR,e.lanes=r,e.stateNode={isHidden:!1},e}function g1(e,t,r){return e=Fi(6,e,null,t),e.lanes=r,e}function y1(e,t,r){return t=Fi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y9(e,t,r,n,i){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=Qb(0),this.expirationTimes=Qb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qb(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ES(e,t,r,n,i,o,s,l,u){return e=new y9(e,t,r,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Fi(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},cS(o),e}function b9(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jI)}catch(e){console.error(e)}}jI(),jR.exports=pi;var g0=jR.exports,$E=g0;Ox.createRoot=$E.createRoot,Ox.hydrateRoot=$E.hydrateRoot;const FE="pushstate",jE="popstate",DI="beforeunload",MI=e=>(e.preventDefault(),e.returnValue=""),k9=()=>{removeEventListener(DI,MI,{capture:!0})};function zI(e){let t=e.getLocation();const r=new Set;let n=[];const i=()=>{t=e.getLocation(),r.forEach(s=>s())},o=async s=>{var l;if(typeof document<"u"&&n.length){for(const u of n)if(!await u()){(l=e.onBlocked)==null||l.call(e,i);return}}s()};return{get location(){return t},subscribe:s=>(r.add(s),()=>{r.delete(s)}),push:(s,l)=>{l=vf(l),o(()=>{e.pushState(s,l),i()})},replace:(s,l)=>{l=vf(l),o(()=>{e.replaceState(s,l),i()})},go:s=>{o(()=>{e.go(s),i()})},back:()=>{o(()=>{e.back(),i()})},forward:()=>{o(()=>{e.forward(),i()})},createHref:s=>e.createHref(s),block:s=>(n.push(s),n.length===1&&addEventListener(DI,MI,{capture:!0}),()=>{n=n.filter(l=>l!==s),n.length||k9()}),flush:()=>{var s;return(s=e.flush)==null?void 0:s.call(e)},destroy:()=>{var s;return(s=e.destroy)==null?void 0:s.call(e)},notify:i}}function vf(e){return e||(e={}),{...e,key:LI()}}function C9(e){const t=typeof document<"u"?window:void 0,r=t.history.pushState,n=t.history.replaceState,i=g=>g,o=()=>k_(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state);let s=o(),l;const u=()=>s;let d,f;const h=()=>{if(!d)return;(d.isPush?r:n).call(t.history,d.state,"",d.href),d=void 0,f=void 0,l=void 0},m=(g,S,b)=>{const y=i(S);f||(l=s),s=k_(S,b),d={href:y,state:b,isPush:(d==null?void 0:d.isPush)||g==="push"},f||(f=Promise.resolve().then(()=>h()))},v=()=>{s=o(),x.notify()},x=zI({getLocation:u,pushState:(g,S)=>m("push",g,S),replaceState:(g,S)=>m("replace",g,S),back:()=>t.history.back(),forward:()=>t.history.forward(),go:g=>t.history.go(g),createHref:g=>i(g),flush:h,destroy:()=>{t.history.pushState=r,t.history.replaceState=n,t.removeEventListener(FE,v),t.removeEventListener(jE,v)},onBlocked:g=>{l&&s!==l&&(s=l,g())}});return t.addEventListener(FE,v),t.addEventListener(jE,v),t.history.pushState=function(...g){const S=r.apply(t.history,g);return v(),S},t.history.replaceState=function(...g){const S=n.apply(t.history,g);return v(),S},x}function T9(e={initialEntries:["/"]}){const t=e.initialEntries;let r=e.initialIndex??t.length-1,n={key:LI()};return zI({getLocation:()=>k_(t[r],n),pushState:(o,s)=>{n=s,t.push(o),r=Math.max(t.length-1,0)},replaceState:(o,s)=>{n=s,t[r]=o},back:()=>{n=vf(n),r--},forward:()=>{n=vf(n),r=Math.min(r+1,t.length-1)},go:o=>{n=vf(n),r=Math.min(Math.max(r+o,0),t.length-1)},createHref:o=>o})}function k_(e,t){const r=e.indexOf("#"),n=e.indexOf("?");return{href:e,pathname:e.substring(0,r>0?n>0?Math.min(r,n):r:n>0?n:e.length),hash:r>-1?e.substring(r):"",search:n>-1?e.slice(n,r===-1?void 0:r):"",state:t||{}}}function LI(){return(Math.random()+1).toString(36).substring(7)}var E9="Invariant failed";function Ln(e,t){if(!e)throw new Error(E9)}const b1=R.createContext(null);function NI(){return typeof document>"u"?b1:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=b1,b1)}function Da(e){const t=R.useContext(NI());return e==null||e.warn,t}var BI={exports:{}},VI={},WI={exports:{}},UI={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ec=R;function P9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var A9=typeof Object.is=="function"?Object.is:P9,R9=Ec.useState,O9=Ec.useEffect,I9=Ec.useLayoutEffect,$9=Ec.useDebugValue;function F9(e,t){var r=t(),n=R9({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return I9(function(){i.value=r,i.getSnapshot=t,x1(i)&&o({inst:i})},[e,r,t]),O9(function(){return x1(i)&&o({inst:i}),e(function(){x1(i)&&o({inst:i})})},[e]),$9(r),r}function x1(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!A9(e,r)}catch{return!0}}function j9(e,t){return t()}var D9=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?j9:F9;UI.useSyncExternalStore=Ec.useSyncExternalStore!==void 0?Ec.useSyncExternalStore:D9;WI.exports=UI;var M9=WI.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var y0=R,z9=M9;function L9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var N9=typeof Object.is=="function"?Object.is:L9,B9=z9.useSyncExternalStore,V9=y0.useRef,W9=y0.useEffect,U9=y0.useMemo,H9=y0.useDebugValue;VI.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=V9(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=U9(function(){function u(v){if(!d){if(d=!0,f=v,v=n(v),i!==void 0&&s.hasValue){var x=s.value;if(i(x,v))return h=x}return h=v}if(x=h,N9(f,v))return x;var g=n(v);return i!==void 0&&i(x,g)?x:(f=v,h=g)}var d=!1,f,h,m=r===void 0?null:r;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,r,n,i]);var l=B9(e,o[0],o[1]);return W9(function(){s.hasValue=!0,s.value=l},[l]),H9(l),l};BI.exports=VI;var K9=BI.exports,G9=class{constructor(e,t){this.listeners=new Set,this._batching=!1,this._flushing=0,this._nextPriority=null,this.subscribe=r=>{var i,o;this.listeners.add(r);const n=(o=(i=this.options)==null?void 0:i.onSubscribe)==null?void 0:o.call(i,r,this);return()=>{this.listeners.delete(r),n==null||n()}},this.setState=(r,n)=>{var s,l,u,d,f;const i=this.state;this.state=(s=this.options)!=null&&s.updateFn?this.options.updateFn(i)(r):r(i);const o=(n==null?void 0:n.priority)??((l=this.options)==null?void 0:l.defaultPriority)??"high";this._nextPriority===null?this._nextPriority=o:this._nextPriority==="high"?this._nextPriority=o:this._nextPriority=((u=this.options)==null?void 0:u.defaultPriority)??"high",(f=(d=this.options)==null?void 0:d.onUpdate)==null||f.call(d,{priority:this._nextPriority}),this._flush()},this._flush=()=>{if(this._batching)return;const r=++this._flushing;this.listeners.forEach(n=>{this._flushing===r&&n({priority:this._nextPriority??"high"})})},this.batch=r=>{if(this._batching)return r();this._batching=!0,r(),this._batching=!1,this._flush()},this.state=e,this.options=t}};function Z9(e,t=r=>r){return K9.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,q9)}function q9(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n{t.substring(0,1)==="?"&&(t=t.substring(1));const r=X9(t);for(const n in r){const i=r[n];if(typeof i=="string")try{r[n]=e(i)}catch{}}return r}}function tW(e,t){function r(n){if(typeof n=="object"&&n!==null)try{return e(n)}catch{}else if(typeof n=="string"&&typeof t=="function")try{return t(n),e(n)}catch{}return n}return n=>{n={...n},Object.keys(n).forEach(o=>{const s=n[o];typeof s>"u"||s===void 0?delete n[o]:n[o]=r(s)});const i=Y9(n).toString();return i?`?${i}`:""}}function sl(e){return e[e.length-1]}function rW(e){return typeof e=="function"}function Vu(e,t){return rW(e)?e(t):e}function gf(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function os(e,t){if(e===t)return e;const r=t,n=zE(e)&&zE(r);if(n||pg(e)&&pg(r)){const i=n?e:Object.keys(e),o=i.length,s=n?r:Object.keys(r),l=s.length,u=n?[]:{};let d=0;for(let f=0;f"u")return!0;const r=t.prototype;return!(!ME(r)||!r.hasOwnProperty("isPrototypeOf"))}function ME(e){return Object.prototype.toString.call(e)==="[object Object]"}function zE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function lc(e,t,r=!1){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(pg(e)&&pg(t)){const n=Object.keys(e),i=Object.keys(t);return!r&&n.length!==i.length?!1:!i.some(o=>!(o in e)||!lc(e[o],t[o],r))}return Array.isArray(e)&&Array.isArray(t)?!e.some((n,i)=>!lc(n,t[i],r)):!1}const Fm=typeof window<"u"?R.useLayoutEffect:R.useEffect;function LE(e){return e.endsWith("/")&&e!=="/"?e.slice(0,-1):e}function nW(e,t){return LE(e)===LE(t)}function yf(e){let t,r;const n=new Promise((i,o)=>{t=i,r=o});return n.status="pending",n.resolve=()=>{n.status="resolved",t(),e==null||e()},n.reject=i=>{n.status="rejected",r(i)},n}function NE(e){const t=R.useRef({value:e,prev:null}),r=t.current.value;return e!==r&&(t.current={value:e,prev:r}),t.current.prev}function OS(e){const t=e.errorComponent??b0;return w.jsx(iW,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:r,reset:n})=>r?R.createElement(t,{error:r,reset:n}):e.children})}class iW extends R.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,r){r.error&&r.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,r){this.props.onCatch&&this.props.onCatch(t,r)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}}function b0({error:e}){const[t,r]=R.useState(!1);return w.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[w.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),w.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r(n=>!n),children:t?"Hide Error":"Show Error"})]}),w.jsx("div",{style:{height:".25rem"}}),t?w.jsx("div",{children:w.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?w.jsx("code",{children:e.message}):null})}):null]})}function En(e){const t=Da({warn:(e==null?void 0:e.router)===void 0});return Z9(((e==null?void 0:e.router)||t).__store,e==null?void 0:e.select)}function Co(e){return!!(e!=null&&e.isNotFound)}function oW(e){const t=En({select:r=>`not-found-${r.location.pathname}-${r.status}`});return w.jsx(OS,{getResetKey:()=>t,onCatch:(r,n)=>{var i;if(Co(r))(i=e.onCatch)==null||i.call(e,r,n);else throw r},errorComponent:({error:r})=>{var n;return(n=e.fallback)==null?void 0:n.call(e,r)},children:e.children})}function sW(){return w.jsx("p",{children:"Not Found"})}function rl(e){return!!(e!=null&&e.isRedirect)}function BE(e){return!!(e!=null&&e.isRedirect)&&e.href}function aW(){const e=Da(),t=R.useRef({router:e,mounted:!1}),r=En({select:d=>gf(d,["isLoading","location","resolvedLocation","isTransitioning"])}),[n,i]=R.useTransition(),o=En({select:d=>d.matches.some(f=>f.status==="pending")}),s=NE(r.isLoading),l=r.isLoading||n||o,u=NE(l);return e.isServer||(e.startReactTransition=i),Fm(()=>{const d=e.history.subscribe(e.load),f=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0});return e.state.location.href!==f.href&&e.commitLocation({...f,replace:!0}),()=>{d()}},[e,e.history]),Fm(()=>{if(window.__TSR_DEHYDRATED__||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(f){console.error(f)}})()},[e]),Fm(()=>{if(s&&!r.isLoading){const d=e.state.location,f=e.state.resolvedLocation,h=f.href!==d.href;e.emit({type:"onLoad",fromLocation:f,toLocation:d,pathChanged:h})}},[s,e,r.isLoading]),Fm(()=>{if(u&&!l){const d=e.state.location,f=e.state.resolvedLocation,h=f.href!==d.href;if(e.emit({type:"onResolved",fromLocation:f,toLocation:d,pathChanged:h}),e.__store.setState(m=>({...m,status:"idle",resolvedLocation:m.location})),document.querySelector&&e.state.location.hash!==""){const m=document.getElementById(e.state.location.hash);m&&m.scrollIntoView()}}},[l,u,e]),null}const x0=R.createContext(void 0);function lW(){const e=Da(),t=e.options.defaultPendingComponent?w.jsx(e.options.defaultPendingComponent,{}):null,r=e.state.matches.length?gv:R.Suspense,n=w.jsxs(r,{fallback:t,children:[w.jsx(aW,{}),w.jsx(uW,{})]});return e.options.InnerWrap?w.jsx(e.options.InnerWrap,{children:n}):n}function uW(){const e=En({select:r=>{var n;return(n=r.matches[0])==null?void 0:n.id}}),t=En({select:r=>r.resolvedLocation.state.key});return w.jsx(x0.Provider,{value:e,children:w.jsx(OS,{getResetKey:()=>t,errorComponent:b0,onCatch:r=>{r.message||r.toString()},children:e?w.jsx(HI,{matchId:e}):null})})}function gv(e){return w.jsx(w.Fragment,{children:e.children})}function HI({matchId:e}){var t,r;const n=Da(),i=En({select:g=>{var S;return(S=g.matches.find(b=>b.id===e))==null?void 0:S.routeId}});Ln(i);const o=n.routesById[i],s=o.options.pendingComponent??n.options.defaultPendingComponent,l=s?w.jsx(s,{}):null,u=o.options.errorComponent??n.options.defaultErrorComponent,d=o.options.onCatch??n.options.defaultOnCatch,f=o.isRoot?o.options.notFoundComponent??((t=n.options.notFoundRoute)==null?void 0:t.options.component):o.options.notFoundComponent,h=(!o.isRoot||o.options.wrapInSuspense)&&(o.options.wrapInSuspense??s??((r=o.options.errorComponent)==null?void 0:r.preload))?R.Suspense:gv,m=u?OS:gv,v=f?oW:gv,x=En({select:g=>g.resolvedLocation.state.key});return w.jsx(x0.Provider,{value:e,children:w.jsx(h,{fallback:l,children:w.jsx(m,{getResetKey:()=>x,errorComponent:u||b0,onCatch:(g,S)=>{if(Co(g))throw g;d==null||d(g,S)},children:w.jsx(v,{fallback:g=>{if(!f||g.routeId&&g.routeId!==i||!g.routeId&&!o.isRoot)throw g;return R.createElement(f,g)},children:w.jsx(cW,{matchId:e})})})})})}function cW({matchId:e}){var t,r;const n=Da(),i=En({select:u=>{var d;return(d=u.matches.find(f=>f.id===e))==null?void 0:d.routeId}}),o=n.routesById[i],s=En({select:u=>gf(u.matches.find(d=>d.id===e),["id","status","error","loadPromise","minPendingPromise"])}),l=(o.options.errorComponent??n.options.defaultErrorComponent)||b0;if(s.status==="notFound"){let u;return VE(s.error)?u=(((t=n.options.errorSerializer)==null?void 0:t.deserialize)??WE)(s.error.data):u=s.error,Ln(Co(u)),KI(n,o,u)}if(s.status==="redirected")throw Ln(rl(s.error)),s.loadPromise;if(s.status==="error"){if(n.isServer)return w.jsx(l,{error:s.error,info:{componentStack:""}});throw VE(s.error)?(((r=n.options.errorSerializer)==null?void 0:r.deserialize)??WE)(s.error.data):s.error}if(s.status==="pending"){const u=o.options.pendingMinMs??n.options.defaultPendingMinMs;throw u&&!s.minPendingPromise&&(s.minPendingPromise=yf(),n.isServer||(Promise.resolve().then(()=>{n.__store.setState(d=>({...d,matches:d.matches.map(f=>f.id===s.id?{...f,minPendingPromise:yf()}:f)}))}),setTimeout(()=>{n.__store.setState(d=>({...d,matches:d.matches.map(f=>{var h;return f.id===s.id?{...f,minPendingPromise:((h=f.minPendingPromise)==null||h.resolve(),void 0)}:f})}))},u))),s.loadPromise}if(s.status==="success"){const u=o.options.component??n.options.defaultComponent;return u?w.jsx(u,{}):w.jsx(IS,{})}Ln(!1)}const IS=R.memo(function(){const t=Da(),r=R.useContext(x0),n=En({select:d=>{var f;return(f=d.matches.find(h=>h.id===r))==null?void 0:f.routeId}}),i=t.routesById[n],{parentGlobalNotFound:o}=En({select:d=>{const h=d.matches.find(m=>m.id===r);return Ln(h),{parentGlobalNotFound:h.globalNotFound}}}),s=En({select:d=>{var f;const h=d.matches,m=h.findIndex(v=>v.id===r);return(f=h[m+1])==null?void 0:f.id}});if(o)return KI(t,i,void 0);if(!s)return null;const l=w.jsx(HI,{matchId:s}),u=t.options.defaultPendingComponent?w.jsx(t.options.defaultPendingComponent,{}):null;return r===ti?w.jsx(R.Suspense,{fallback:u,children:l}):l});function KI(e,t,r){return t.options.notFoundComponent?w.jsx(t.options.notFoundComponent,{data:r}):e.options.defaultNotFoundComponent?w.jsx(e.options.defaultNotFoundComponent,{data:r}):w.jsx(sW,{})}function VE(e){return!(typeof e=="object"&&e&&"data"in e)||!("__isServerError"in e&&e.__isServerError)||!(typeof e.data=="object"&&e.data)?!1:e.__isServerError===!0}function WE(e){if("name"in e&&"message"in e){const t=new Error(e.message);return t.name=e.name,t}return e.data}function dW({router:e,children:t,...r}){e.update({...e.options,...r,context:{...e.options.context,...r.context}});const n=NI(),i=w.jsx(n.Provider,{value:e,children:t});return e.options.Wrap?w.jsx(e.options.Wrap,{children:i}):i}function fW({router:e,...t}){return w.jsx(dW,{router:e,...t,children:w.jsx(lW,{})})}function jm(e,t){return[...e.cachedMatches,...e.pendingMatches??[],...e.matches].find(r=>r.id===t)}function _a(e){return _0(e.filter(Boolean).join("/"))}function _0(e){return e.replace(/\/{2,}/g,"/")}function $S(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function yv(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function hW(e){return yv($S(e))}function pW({basepath:e,base:t,to:r,trailingSlash:n="never"}){var i,o;t=t.replace(new RegExp(`^${e}`),"/"),r=r.replace(new RegExp(`^${e}`),"/");let s=Pc(t);const l=Pc(r);s.length>1&&((i=sl(s))==null?void 0:i.value)==="/"&&s.pop(),l.forEach((d,f)=>{d.value==="/"?f?f===l.length-1&&s.push(d):s=[d]:d.value===".."?s.pop():d.value==="."||s.push(d)}),s.length>1&&(((o=sl(s))==null?void 0:o.value)==="/"?n==="never"&&s.pop():n==="always"&&s.push({type:"pathname",value:"/"}));const u=_a([e,...s.map(d=>d.value)]);return _0(u)}function Pc(e){if(!e)return[];e=_0(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const r=e.split("/").filter(Boolean);return t.push(...r.map(n=>n==="$"||n==="*"?{type:"wildcard",value:n}:n.charAt(0)==="$"?{type:"param",value:n}:{type:"pathname",value:n})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function _1({path:e,params:t,leaveWildcards:r,leaveParams:n}){const i=Pc(e);return _a(i.map(o=>{if(o.type==="wildcard"){const s=t._splat;return r?`${o.value}${s??""}`:s}if(o.type==="param"){if(n){const s=t[o.value];return`${o.value}${s??""}`}return t[o.value.substring(1)]??"undefined"}return o.value}))}function w1(e,t,r){const n=mW(e,t,r);if(!(r.to&&!n))return n??{}}function UE(e,t){return e!="/"?t.replace(e,""):t}function mW(e,t,r){t=UE(e,t);const n=UE(e,`${r.to??"$"}`),i=Pc(t),o=Pc(n);t.startsWith("/")||i.unshift({type:"pathname",value:"/"}),n.startsWith("/")||o.unshift({type:"pathname",value:"/"});const s={};return(()=>{for(let u=0;u=i.length-1,m=u>=o.length-1;if(f){if(f.type==="wildcard"){if(d!=null&&d.value){const v=decodeURI(_a(i.slice(u).map(x=>x.value)));return s["*"]=v,s._splat=v,!0}return!1}if(f.type==="pathname"){if(f.value==="/"&&!(d!=null&&d.value))return!0;if(d){if(r.caseSensitive){if(f.value!==d.value)return!1}else if(f.value.toLowerCase()!==d.value.toLowerCase())return!1}}if(!d)return!1;if(f.type==="param"){if(d.value==="/")return!1;d.value.charAt(0)!=="$"&&(s[f.value.substring(1)]=decodeURIComponent(d.value))}}if(!h&&m)return s["**"]=_a(i.slice(u+1).map(v=>v.value)),!!r.fuzzy&&(f==null?void 0:f.value)!=="/"}return!0})()?s:void 0}const vW=["component","errorComponent","pendingComponent","notFoundComponent"];function gW(e){return new yW(e)}class yW{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.latestLoadPromise=Promise.resolve(),this.subscribers=new Set,this.isServer=typeof document>"u",this.startReactTransition=r=>r(),this.update=r=>{r.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/guide/not-found-errors#migrating-from-notfoundroute for more info.");const n=this.options;this.options={...this.options,...r},(!this.basepath||r.basepath&&r.basepath!==n.basepath)&&(r.basepath===void 0||r.basepath===""||r.basepath==="/"?this.basepath="/":this.basepath=`/${hW(r.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(typeof document<"u"?C9():T9({initialEntries:[this.options.basepath||"/"]})),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new G9(_W(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(i=>!["redirected"].includes(i.status))}}}))},this.buildRouteTree=()=>{this.routesById={},this.routesByPath={};const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r);const n=s=>{s.forEach((l,u)=>{l.init({originalIndex:u});const d=this.routesById[l.id];if(Ln(!d,`Duplicate routes found with id: ${String(l.id)}`),this.routesById[l.id]=l,!l.isRoot&&l.path){const h=yv(l.fullPath);(!this.routesByPath[h]||l.fullPath.endsWith("/"))&&(this.routesByPath[h]=l)}const f=l.children;f!=null&&f.length&&n(f)})};n([this.routeTree]);const i=[];Object.values(this.routesById).forEach((s,l)=>{var u;if(s.isRoot||!s.path)return;const d=$S(s.fullPath),f=Pc(d);for(;f.length>1&&((u=f[0])==null?void 0:u.value)==="/";)f.shift();const h=f.map(m=>m.value==="/"?.75:m.type==="param"?.5:m.type==="wildcard"?.25:1);i.push({child:s,trimmed:d,parsed:f,index:l,scores:h})}),this.flatRoutes=i.sort((s,l)=>{const u=Math.min(s.scores.length,l.scores.length);for(let d=0;dl.parsed[d].value?1:-1;return s.index-l.index}).map((s,l)=>(s.child.rank=l,s.child))},this.subscribe=(r,n)=>{const i={eventType:r,fn:n};return this.subscribers.add(i),()=>{this.subscribers.delete(i)}},this.emit=r=>{this.subscribers.forEach(n=>{n.eventType===r.type&&n.fn(r)})},this.checkLatest=r=>{if(this.latestLoadPromise!==r)throw this.latestLoadPromise},this.parseLocation=r=>{const n=({pathname:l,search:u,hash:d,state:f})=>{const h=this.options.parseSearch(u),m=this.options.stringifySearch(h);return{pathname:l,searchStr:m,search:os(r==null?void 0:r.search,h),hash:d.split("#").reverse()[0]??"",href:`${l}${m}${d}`,state:os(r==null?void 0:r.state,f)}},i=n(this.history.location),{__tempLocation:o,__tempKey:s}=i.state;if(o&&(!s||s===this.tempLocationKey)){const l=n(o);return l.state.key=i.state.key,delete l.state.__tempLocation,{...l,maskedLocation:i}}return i},this.resolvePathWithBase=(r,n)=>pW({basepath:this.basepath,base:r,to:_0(n),trailingSlash:this.options.trailingSlash}),this.matchRoutes=(r,n,i)=>{let o={};const s=this.flatRoutes.find(v=>{const x=w1(this.basepath,yv(r),{to:v.fullPath,caseSensitive:v.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});return x?(o=x,!0):!1});let l=s||this.routesById[ti];const u=[l];let d=!1;for((s?s.path!=="/"&&o["**"]:yv(r))&&(this.options.notFoundRoute?u.push(this.options.notFoundRoute):d=!0);l.parentRoute;)l=l.parentRoute,u.unshift(l);const f=(()=>{if(d){if(this.options.notFoundMode!=="root")for(let v=u.length-1;v>=0;v--){const x=u[v];if(x.children)return x.id}return ti}})(),h=u.map(v=>{let x;if(v.options.parseParams)try{const g=v.options.parseParams(o);Object.assign(o,g)}catch(g){if(x=new xW(g.message,{cause:g}),i!=null&&i.throwOnError)throw x;return x}}),m=[];return u.forEach((v,x)=>{var g,S,b,y,_,C,T,I,$,z;const N=m[x-1],[V,ce]=(()=>{const ee=(N==null?void 0:N.search)??n;try{const he=typeof v.options.validateSearch=="object"?v.options.validateSearch.parse:v.options.validateSearch,Y=(he==null?void 0:he(ee))??{};return[{...ee,...Y},void 0]}catch(he){const Y=new bW(he.message,{cause:he});if(i!=null&&i.throwOnError)throw Y;return[ee,Y]}})(),D=((S=(g=v.options).loaderDeps)==null?void 0:S.call(g,{search:V}))??"",U=D?JSON.stringify(D):"",A=_1({path:v.fullPath,params:o}),Q=_1({path:v.id,params:o,leaveWildcards:!0})+U,ge=jm(this.state,Q),G=this.state.matches.find(ee=>ee.id===Q)?"stay":"enter";let oe;if(ge)oe={...ge,cause:G,params:o};else{const ee=v.options.loader||v.options.beforeLoad?"pending":"success",he=yf();ee==="success"&&he.resolve(),oe={id:Q,routeId:v.id,params:o,pathname:_a([this.basepath,A]),updatedAt:Date.now(),search:{},searchError:void 0,status:"pending",isFetching:!1,error:void 0,paramsError:h[x],loaderPromise:Promise.resolve(),loadPromise:he,routeContext:void 0,context:void 0,abortController:new AbortController,fetchCount:0,cause:G,loaderDeps:D,invalid:!1,preload:!1,links:(y=(b=v.options).links)==null?void 0:y.call(b),scripts:(C=(_=v.options).scripts)==null?void 0:C.call(_),staticData:v.options.staticData||{}}}oe.status==="success"&&(oe.meta=(I=(T=v.options).meta)==null?void 0:I.call(T,{matches:m,params:oe.params,loaderData:oe.loaderData}),oe.headers=(z=($=v.options).headers)==null?void 0:z.call($,{loaderData:oe.loaderData})),i!=null&&i.preload||(oe.globalNotFound=f===v.id),oe.search=os(oe.search,V),oe.searchError=ce,m.push(oe)}),m},this.cancelMatch=r=>{var n;(n=jm(this.state,r))==null||n.abortController.abort()},this.cancelMatches=()=>{var r;(r=this.state.pendingMatches)==null||r.forEach(n=>{this.cancelMatch(n.id)})},this.buildLocation=r=>{const n=(o={},s)=>{var l,u,d,f;let h=this.latestLocation.pathname,m=o.fromSearch||this.latestLocation.search;const v=this.matchRoutes(this.latestLocation.pathname,m);h=((l=v.find(U=>U.id===o.from))==null?void 0:l.pathname)||h,m=((u=sl(v))==null?void 0:u.search)||this.latestLocation.search;const x=s==null?void 0:s.filter(U=>v.find(A=>A.routeId===U.routeId)),g=this.routesById[(d=x==null?void 0:x.find(U=>U.pathname===h))==null?void 0:d.routeId];let S=o.to?this.resolvePathWithBase(h,`${o.to}`):this.resolvePathWithBase(h,(g==null?void 0:g.to)??h);const b={...(f=sl(v))==null?void 0:f.params};let y=(o.params??!0)===!0?b:{...b,...Vu(o.params,b)};Object.keys(y).length>0&&(s==null||s.map(U=>this.looseRoutesById[U.routeId].options.stringifyParams).filter(Boolean).forEach(U=>{y={...y,...U(y)}})),Object.keys(y).forEach(U=>{["*","_splat"].includes(U)?y[U]=encodeURI(y[U]):y[U]=encodeURIComponent(y[U])}),S=_1({path:S,params:y??{},leaveWildcards:!1,leaveParams:r.leaveParams});const _=(x==null?void 0:x.map(U=>this.looseRoutesById[U.routeId].options.preSearchFilters??[]).flat().filter(Boolean))??[],C=(x==null?void 0:x.map(U=>this.looseRoutesById[U.routeId].options.postSearchFilters??[]).flat().filter(Boolean))??[],T=_.length?_.reduce((U,A)=>A(U),m):m,I=o.search===!0?T:o.search?Vu(o.search,T):_.length?T:{},$=C.length?C.reduce((U,A)=>A(U),I):I,z=os(m,$),N=this.options.stringifySearch(z),V=o.hash===!0?this.latestLocation.hash:o.hash?Vu(o.hash,this.latestLocation.hash):void 0,ce=V?`#${V}`:"";let D=o.state===!0?this.latestLocation.state:o.state?Vu(o.state,this.latestLocation.state):{};return D=os(this.latestLocation.state,D),{pathname:S,search:z,searchStr:N,state:D,hash:V??"",href:`${S}${N}${ce}`,unmaskOnReload:o.unmaskOnReload}},i=(o={},s)=>{var l;const u=n(o);let d=s?n(s):void 0;if(!d){let x={};const g=(l=this.options.routeMasks)==null?void 0:l.find(S=>{const b=w1(this.basepath,u.pathname,{to:S.from,caseSensitive:!1,fuzzy:!1});return b?(x=b,!0):!1});g&&(s={...gf(r,["from"]),...g,params:x},d=n(s))}const f=this.matchRoutes(u.pathname,u.search),h=d?this.matchRoutes(d.pathname,d.search):void 0,m=d?n(s,h):void 0,v=n(o,f);return m&&(v.maskedLocation=m),v};return r.mask?i(r,{...gf(r,["from"]),...r.mask}):i(r)},this.commitLocation=async({startTransition:r,viewTransition:n,...i})=>{const o=()=>{i.state.key=this.latestLocation.state.key;const l=lc(i.state,this.latestLocation.state);return delete i.state.key,l};if(this.latestLocation.href===i.href&&o())this.load();else{let{maskedLocation:l,...u}=i;l&&(u={...l,state:{...l.state,__tempKey:void 0,__tempLocation:{...u,search:u.searchStr,state:{...u.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(u.unmaskOnReload??this.options.unmaskOnReload??!1)&&(u.state.__tempKey=this.tempLocationKey)),this.shouldViewTransition=n,this.history[i.replace?"replace":"push"](u.href,u.state)}return this.resetNextScroll=i.resetScroll??!0,this.latestLoadPromise},this.buildAndCommitLocation=({replace:r,resetScroll:n,startTransition:i,viewTransition:o,...s}={})=>{const l=this.buildLocation(s);return this.commitLocation({...l,startTransition:i,viewTransition:o,replace:r,resetScroll:n})},this.navigate=({from:r,to:n,...i})=>{const o=String(n);let s;try{new URL(`${o}`),s=!0}catch{}return Ln(!s),this.buildAndCommitLocation({...i,from:r,to:n})},this.load=async()=>{if(this.latestLocation=this.parseLocation(this.latestLocation),this.state.location===this.latestLocation)return;const r=yf();this.latestLoadPromise=r;let n,i;return this.startReactTransition(async()=>{try{const o=this.latestLocation,s=this.state.resolvedLocation,l=s.href!==o.href;this.cancelMatches(),this.emit({type:"onBeforeLoad",fromLocation:s,toLocation:o,pathChanged:l});let u;this.__store.batch(()=>{u=this.matchRoutes(o.pathname,o.search),this.__store.setState(d=>({...d,status:"pending",isLoading:!0,location:o,pendingMatches:u,cachedMatches:d.cachedMatches.filter(f=>!u.find(h=>h.id===f.id))}))}),await this.loadMatches({matches:u,location:o,checkLatest:()=>this.checkLatest(r),onReady:async()=>{await this.startViewTransition(async()=>{let d,f,h;this.__store.batch(()=>{this.__store.setState(m=>{const v=m.matches,x=m.pendingMatches||m.matches;return d=v.filter(g=>!x.find(S=>S.id===g.id)),f=x.filter(g=>!v.find(S=>S.id===g.id)),h=v.filter(g=>x.find(S=>S.id===g.id)),{...m,isLoading:!1,matches:x,pendingMatches:void 0,cachedMatches:[...m.cachedMatches,...d.filter(g=>g.status!=="error")]}}),this.cleanCache()}),[[d,"onLeave"],[f,"onEnter"],[h,"onStay"]].forEach(([m,v])=>{m.forEach(x=>{var g,S;(S=(g=this.looseRoutesById[x.routeId].options)[v])==null||S.call(g,x)})})})}})}catch(o){BE(o)?(n=o,this.isServer||(this.navigate({...o,replace:!0}),this.load())):Co(o)&&(i=o),this.__store.setState(s=>({...s,statusCode:n?n.statusCode:i?404:s.matches.some(l=>l.status==="error")?500:200,redirect:n}))}r.resolve()}),this.latestLoadPromise},this.startViewTransition=async r=>{var n,i;const o=this.shouldViewTransition??this.options.defaultViewTransition;delete this.shouldViewTransition,(i=(n=o&&typeof document<"u"?document:void 0)==null?void 0:n.startViewTransition)!=null&&i.call(n,r)||r()},this.loadMatches=async({checkLatest:r,location:n,matches:i,preload:o,onReady:s})=>{let l,u=!1;const d=async()=>{u||(u=!0,await(s==null?void 0:s()))};!this.isServer&&!this.state.matches.length&&d();const f=(m,v,x)=>{var g;let S;const b=(g=this.state.pendingMatches)==null?void 0:g.find(C=>C.id===m),y=this.state.matches.find(C=>C.id===m),_=b?"pendingMatches":y?"matches":"cachedMatches";return this.__store.setState(C=>{var T;return{...C,[_]:(T=C[_])==null?void 0:T.map(I=>I.id===m?S=v(I):I)}}),S},h=(m,v)=>{if(BE(v))throw v;if(rl(v)||Co(v)){if(f(m.id,x=>({...x,status:rl(v)?"redirected":Co(v)?"notFound":"error",isFetching:!1,error:v})),v.routeId||(v.routeId=m.routeId),rl(v))throw u=!0,v=this.resolveRedirect(v),v;if(Co(v))throw this.handleNotFound(i,v),v}};try{await new Promise((m,v)=>{(async()=>{var x,g;try{for(let[y,_]of i.entries()){const C=i[y-1],T=this.looseRoutesById[_.routeId],I=new AbortController;let $=_.loadPromise;const z=T.options.pendingMs??this.options.defaultPendingMs;if(!!(s&&!this.isServer&&!o&&(T.options.loader||T.options.beforeLoad)&&typeof z=="number"&&z!==1/0&&(T.options.pendingComponent??this.options.defaultPendingComponent))&&setTimeout(()=>{try{r(),d()}catch{}},z),_.isFetching)continue;const V=$.resolve;$=yf(V),i[y]=_=f(_.id,D=>({...D,isFetching:"beforeLoad",loadPromise:$}));const ce=(D,U)=>{var A,Q;if(D instanceof Promise)throw D;D.routerCode=U,l=l??y,h(_,D);try{(Q=(A=T.options).onError)==null||Q.call(A,D)}catch(ge){D=ge,h(_,D)}i[y]=_=f(_.id,()=>({..._,error:D,status:"error",updatedAt:Date.now(),abortController:new AbortController}))};_.paramsError&&ce(_.paramsError,"PARSE_PARAMS"),_.searchError&&ce(_.searchError,"VALIDATE_SEARCH");try{const D=(C==null?void 0:C.context)??this.options.context??{};i[y]=_=f(_.id,()=>({..._,routeContext:os(_.routeContext,D),abortController:I}));const U=await((g=(x=T.options).beforeLoad)==null?void 0:g.call(x,{search:_.search,abortController:I,params:_.params,preload:!!o,context:D,location:n,navigate:Q=>this.navigate({...Q,from:_.pathname}),buildLocation:this.buildLocation,cause:o?"preload":_.cause}))??{};r(),(rl(U)||Co(U))&&ce(U,"BEFORE_LOAD");const A={...D,...U};i[y]=_={..._,routeContext:os(_.routeContext,U),context:os(_.context,A),abortController:I},f(_.id,()=>_)}catch(D){ce(D,"BEFORE_LOAD");break}}r();const S=i.slice(0,l),b=[];S.forEach((y,_)=>{const C=async()=>{const T=b[_-1],I=this.looseRoutesById[y.routeId],$={params:y.params,deps:y.loaderDeps,preload:!!o,parentMatchPromise:T,abortController:y.abortController,context:y.context,location:n,navigate:A=>this.navigate({...A,from:y.pathname}),cause:o?"preload":y.cause,route:I},z=async()=>{var A,Q,ge,G,oe,ee,he,Y,X;const xe=jm(this.state,y.id);let me=Promise.resolve(),pe=Promise.resolve(),Ae=xe.loaderPromise;const He=async()=>{const Te=jm(this.state,y.id);Te!=null&&Te.minPendingPromise&&(await Te.minPendingPromise,r(),f(Te.id,Me=>({...Me,minPendingPromise:void 0})))};try{y.isFetching==="beforeLoad"&&(i[_]=y=f(y.id,Ne=>({...Ne,isFetching:"loader",fetchCount:y.fetchCount+1})),me=((A=I.lazyFn)==null?void 0:A.call(I).then(Ne=>{Object.assign(I.options,Ne.options)}))||Promise.resolve(),pe=me.then(()=>Promise.all(vW.map(async Ne=>{const Ee=I.options[Ne];Ee!=null&&Ee.preload&&await Ee.preload()}))),await me,r(),Ae=(ge=(Q=I.options).loader)==null?void 0:ge.call(Q,$),i[_]=y=f(y.id,Ne=>({...Ne,loaderPromise:Ae})));const Te=await Ae;r(),h(y,Te),await He(),r();const Me=(oe=(G=I.options).meta)==null?void 0:oe.call(G,{matches:i,params:y.params,loaderData:Te}),Qe=(he=(ee=I.options).headers)==null?void 0:he.call(ee,{loaderData:Te});i[_]=y=f(y.id,Ne=>({...Ne,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:Te,meta:Me,headers:Qe}))}catch(Te){r();let Me=Te;await He(),r(),h(y,Te);try{(X=(Y=I.options).onError)==null||X.call(Y,Te)}catch(Qe){Me=Qe,h(y,Qe)}i[_]=y=f(y.id,Qe=>({...Qe,error:Me,status:"error",isFetching:!1}))}await pe,r(),y.loadPromise.resolve()},N=Date.now()-y.updatedAt,V=o?I.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:I.options.staleTime??this.options.defaultStaleTime??0,ce=I.options.shouldReload,D=typeof ce=="function"?ce($):ce;i[_]=y={...y,preload:!!o&&!this.state.matches.find(A=>A.id===y.id)};const U=async()=>{try{await z()}catch(A){r(),h(y,A)}};if(y.status==="success"&&(y.invalid||(D??N>V))){(async()=>{try{await U()}catch{}})();return}y.status!=="success"&&await U()};b.push(C())}),await Promise.all(b),r(),m()}catch(S){v(S)}})()}),await d()}catch(m){if(rl(m)||Co(m))throw Co(m)&&!o&&await d(),m}return i},this.invalidate=()=>{const r=n=>({...n,invalid:!0,...n.status==="error"?{status:"pending"}:{}});return this.__store.setState(n=>{var i;return{...n,matches:n.matches.map(r),cachedMatches:n.cachedMatches.map(r),pendingMatches:(i=n.pendingMatches)==null?void 0:i.map(r)}}),this.load()},this.resolveRedirect=r=>{const n=r;return n.href||(n.href=this.buildLocation(n).href),n},this.cleanCache=()=>{this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(n=>{const i=this.looseRoutesById[n.routeId];if(!i.options.loader)return!1;const o=(n.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return n.status!=="error"&&Date.now()-n.updatedAt{const n=this.buildLocation(r);let i=this.matchRoutes(n.pathname,n.search,{throwOnError:!0,preload:!0});const o=Object.fromEntries([...this.state.matches,...this.state.pendingMatches??[],...this.state.cachedMatches].map(d=>[d.id,!0]));this.__store.batch(()=>{i.forEach(d=>{o[d.id]||this.__store.setState(f=>({...f,cachedMatches:[...f.cachedMatches,d]}))})});const s=sl(i),l=sl(this.state.matches),u=sl(this.state.pendingMatches??[]);if(!(s&&((l==null?void 0:l.id)===s.id||(u==null?void 0:u.id)===s.id)))try{return i=await this.loadMatches({matches:i,location:n,preload:!0,checkLatest:()=>{}}),i}catch(d){if(rl(d))return await this.preloadRoute({fromSearch:n.search,from:n.pathname,...d});console.error(d);return}},this.matchRoute=(r,n)=>{const i={...r,to:r.to?this.resolvePathWithBase(r.from||"",r.to):void 0,params:r.params||{},leaveParams:!0},o=this.buildLocation(i);if(n!=null&&n.pending&&this.state.status!=="pending")return!1;const s=n!=null&&n.pending?this.latestLocation:this.state.resolvedLocation,l=w1(this.basepath,s.pathname,{...n,to:o.pathname});return!l||r.params&&!lc(l,r.params,!0)?!1:l&&((n==null?void 0:n.includeSearch)??!0)?lc(s.search,o.search,!0)?l:!1:l},this.registeredDeferredsIds=new Map,this.registeredDeferreds=new WeakMap,this.getDeferred=r=>{const n=this.registeredDeferredsIds.get(r);if(n)return this.registeredDeferreds.get(n)},this.dehydrate=()=>{var r;const n=((r=this.options.errorSerializer)==null?void 0:r.serialize)??wW;return{state:{dehydratedMatches:this.state.matches.map(i=>({...gf(i,["id","status","updatedAt","loaderData"]),error:i.error?{data:n(i.error),__isServerError:!0}:void 0}))},manifest:this.manifest}},this.hydrate=async r=>{var n,i,o;let s=r;typeof document<"u"&&(s=(n=window.__TSR_DEHYDRATED__)==null?void 0:n.data),Ln(s);const l=this.options.transformer.parse(s);this.dehydratedData=l.payload,(o=(i=this.options).hydrate)==null||o.call(i,l.payload);const u=l.router.state,d=this.matchRoutes(this.state.location.pathname,this.state.location.search).map((f,h,m)=>{var v,x,g,S,b,y;const _=u.dehydratedMatches.find(I=>I.id===f.id);Ln(_,`Could not find a client-side match for dehydrated match with id: ${f.id}!`);const C=this.looseRoutesById[f.routeId],T=_.status==="notFound"||_.status==="redirected"?{}:{meta:(x=(v=C.options).meta)==null?void 0:x.call(v,{matches:m,params:f.params,loaderData:_.loaderData}),links:(S=(g=C.options).links)==null?void 0:S.call(g),scripts:(y=(b=C.options).scripts)==null?void 0:y.call(b)};return{...f,..._,...T}});this.__store.setState(f=>({...f,matches:d})),this.manifest=l.router.manifest},this.handleNotFound=(r,n)=>{const i=Object.fromEntries(r.map(l=>[l.routeId,l]));let o=(n.global?this.looseRoutesById[ti]:this.looseRoutesById[n.routeId])||this.looseRoutesById[ti];for(;!o.options.notFoundComponent&&!this.options.defaultNotFoundComponent&&o.id!==ti;)o=o.parentRoute,Ln(o);const s=i[o.id];Ln(s,"Could not find match for route: "+o.id),Object.assign(s,{status:"notFound",error:n,isFetching:!1})},this.hasNotFoundMatch=()=>this.__store.state.matches.some(r=>r.status==="notFound"||r.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,stringifySearch:t.stringifySearch??J9,parseSearch:t.parseSearch??Q9,transformer:t.transformer??JSON}),typeof document<"u"&&(window.__TSR__ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}}class bW extends Error{}class xW extends Error{}function _W(e){return{isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:{...e},location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function wW(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Il(e){const t=R.useContext(x0);return En({select:n=>{const i=n.matches.find(o=>e.from?e.from===o.routeId:o.id===t);return Ln(i,`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),e.select?e.select(i):i}})}function SW(e){return Il({...e,select:t=>typeof e.select=="function"?e.select(t.loaderDeps):t.loaderDeps})}function kW(e){return Il({...e,select:t=>typeof e.select=="function"?e.select(t.loaderData):t.loaderData})}function CW(e){return Il({...e,select:t=>e.select?e.select(t.params):t.params})}function TW(e){return Il({...e,select:t=>e.select?e.select(t.search):t.search})}function Lh(e){const t=Da();return R.useCallback(r=>t.navigate({...r,from:r.to?t.state.resolvedLocation.pathname:void 0}),[t])}let GI=class{constructor(t){this.init=r=>{var n,i;this.originalIndex=r.originalIndex;const o=this.options,s=!(o!=null&&o.path)&&!(o!=null&&o.id);this.parentRoute=(i=(n=this.options)==null?void 0:n.getParentRoute)==null?void 0:i.call(n),s?this.path=ti:Ln(this.parentRoute);let l=s?ti:o.path;l&&l!=="/"&&(l=$S(l));const u=(o==null?void 0:o.id)||l;let d=s?ti:_a([this.parentRoute.id===ti?"":this.parentRoute.id,u]);l===ti&&(l="/"),d!==ti&&(d=_a(["/",d]));const f=d===ti?"/":_a([this.parentRoute.fullPath,l]);this.path=l,this.id=d,this.fullPath=f,this.to=f},this.addChildren=r=>(this.children=Array.isArray(r)?r:Object.values(r),this),this.updateLoader=r=>(Object.assign(this.options,r),this),this.update=r=>(Object.assign(this.options,r),this),this.lazy=r=>(this.lazyFn=r,this),this.useMatch=r=>Il({...r,from:this.id}),this.useRouteContext=r=>Il({...r,from:this.id,select:n=>r!=null&&r.select?r.select(n.context):n.context}),this.useSearch=r=>TW({...r,from:this.id}),this.useParams=r=>CW({...r,from:this.id}),this.useLoaderDeps=r=>SW({...r,from:this.id}),this.useLoaderData=r=>kW({...r,from:this.id}),this.useNavigate=()=>Lh({from:this.id}),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),Ln(!(t!=null&&t.id&&(t!=null&&t.path))),this.$$typeof=Symbol.for("react.memo")}};function EW(e){return new GI(e)}class PW extends GI{constructor(t){super(t)}}function AW(e){return new PW(e)}function FS(e){return new RW(e,{silent:!0}).createRoute}class RW{constructor(t,r){this.path=t,this.createRoute=n=>{this.silent;const i=EW(n);return i.isRoot=!1,i},this.silent=r==null?void 0:r.silent}}const OW="Error preloading route! ā˜ļø";function IW(e){const t=Da(),r=Il({strict:!1,select:Ee=>Ee.pathname}),[n,i]=R.useState(!1),{activeProps:o=()=>({className:"active"}),inactiveProps:s=()=>({}),activeOptions:l,hash:u,search:d,params:f,to:h,state:m,mask:v,preload:x,preloadDelay:g,replace:S,startTransition:b,resetScroll:y,viewTransition:_,children:C,target:T,disabled:I,style:$,className:z,onClick:N,onFocus:V,onMouseEnter:ce,onMouseLeave:D,onTouchStart:U,...A}=e,Q={...e.to&&{from:r},...e};let ge="internal";try{new URL(`${h}`),ge="external"}catch{}const G=t.buildLocation(Q),oe=x??t.options.defaultPreload,ee=g??t.options.defaultPreloadDelay??0,he=En({select:Ee=>{const We=Ee.location.pathname.split("/"),le=G.pathname.split("/").every((j,W)=>j===We[W]),ue=l!=null&&l.exact?nW(Ee.location.pathname,G.pathname):le,L=l!=null&&l.includeHash?Ee.location.hash===G.hash:!0,E=(l==null?void 0:l.includeSearch)??!0?lc(Ee.location.search,G.search,!(l!=null&&l.exact)):!0;return ue&&L&&E}});if(ge==="external")return{...A,type:ge,href:h,...C&&{children:C},...T&&{target:T},...I&&{disabled:I},...$&&{style:$},...z&&{className:z},...N&&{onClick:N},...V&&{onFocus:V},...ce&&{onMouseEnter:ce},...D&&{onMouseLeave:D},...U&&{onTouchStart:U}};const Y=Ee=>{if(!I&&!FW(Ee)&&!Ee.defaultPrevented&&(!T||T==="_self")&&Ee.button===0){Ee.preventDefault(),g0.flushSync(()=>{i(!0)});const We=t.subscribe("onResolved",()=>{We(),i(!1)});t.commitLocation({...G,replace:S,resetScroll:y,startTransition:b,viewTransition:_})}},X=()=>{t.preloadRoute(Q).catch(Ee=>{console.warn(Ee),console.warn(OW)})},xe=Ee=>{I||oe&&X()},me=xe,pe=Ee=>{if(I)return;const We=Ee.target||{};if(oe){if(We.preloadTimeout)return;We.preloadTimeout=setTimeout(()=>{We.preloadTimeout=null,X()},ee)}},Ae=Ee=>{if(I)return;const We=Ee.target||{};We.preloadTimeout&&(clearTimeout(We.preloadTimeout),We.preloadTimeout=null)},He=Ee=>We=>{var P;(P=We.persist)==null||P.call(We),Ee.filter(Boolean).forEach(le=>{We.defaultPrevented||le(We)})},Te=he?Vu(o,{})??{}:{},Me=he?{}:Vu(s,{}),Qe=[z,Te.className,Me.className].filter(Boolean).join(" "),Ne={...$,...Te.style,...Me.style};return{...Te,...Me,...A,href:I?void 0:G.maskedLocation?t.history.createHref(G.maskedLocation.href):t.history.createHref(G.href),onClick:He([N,Y]),onFocus:He([V,xe]),onMouseEnter:He([ce,pe]),onMouseLeave:He([D,Ae]),onTouchStart:He([U,me]),disabled:!!I,target:T,...Object.keys(Ne).length&&{style:Ne},...Qe&&{className:Qe},...I&&{role:"link","aria-disabled":!0},...he&&{"data-status":"active","aria-current":"page"},...n&&{"data-transitioning":"transitioning"}}}const $W=R.forwardRef((e,t)=>{const{_asChild:r,...n}=e,{type:i,...o}=IW(n),s=typeof n.children=="function"?n.children({isActive:o["data-status"]==="active"}):n.children;return typeof r>"u"&&delete o.disabled,R.createElement(r||"a",{...o,ref:t},s)});function FW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jW(e){return En({select:t=>t.location})}var Nh=e=>e.type==="checkbox",Wu=e=>e instanceof Date,kn=e=>e==null;const ZI=e=>typeof e=="object";var zr=e=>!kn(e)&&!Array.isArray(e)&&ZI(e)&&!Wu(e),DW=e=>zr(e)&&e.target?Nh(e.target)?e.target.checked:e.target.value:e,MW=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,zW=(e,t)=>e.has(MW(t)),LW=e=>{const t=e.constructor&&e.constructor.prototype;return zr(t)&&t.hasOwnProperty("isPrototypeOf")},jS=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Xr(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(jS&&(e instanceof Blob||e instanceof FileList))&&(r||zr(e)))if(t=r?[]:{},!r&&!LW(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Xr(e[n]));else return e;return t}var Hc=e=>Array.isArray(e)?e.filter(Boolean):[],Qt=e=>e===void 0,Oe=(e,t,r)=>{if(!t||!zr(e))return r;const n=Hc(t.split(/[,[\].]+?/)).reduce((i,o)=>kn(i)?i:i[o],e);return Qt(n)||n===e?Qt(e[t])?r:e[t]:n},oa=e=>typeof e=="boolean",DS=e=>/^\w*$/.test(e),qI=e=>Hc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Kt=(e,t,r)=>{let n=-1;const i=DS(t)?[t]:qI(t),o=i.length,s=o-1;for(;++nft.useContext(YI),NW=e=>{const{children:t,...r}=e;return ft.createElement(YI.Provider,{value:r},t)};var BW=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==$i.all&&(t._proxyFormState[s]=!n||$i.all),e[s]}});return i},Mn=e=>zr(e)&&!Object.keys(e).length,VW=(e,t,r,n)=>{r(e);const{name:i,...o}=e;return Mn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===$i.all)},ji=e=>Array.isArray(e)?e:[e];function QI(e){const t=ft.useRef(e);t.current=e,ft.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}var Oo=e=>typeof e=="string",WW=(e,t,r,n,i)=>Oo(e)?(n&&t.watch.add(e),Oe(r,e,i)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),Oe(r,o))):(n&&(t.watchAll=!0),r),JI=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},qs=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=(Math.random()*16+e)%16|0;return(t=="x"?r:r&3|8).toString(16)})},S1=(e,t,r={})=>r.shouldFocus||Qt(r.shouldFocus)?r.focusName||`${e}.${Qt(r.focusIndex)?t:r.focusIndex}.`:"",bf=e=>({isOnSubmit:!e||e===$i.onSubmit,isOnBlur:e===$i.onBlur,isOnChange:e===$i.onChange,isOnAll:e===$i.all,isOnTouch:e===$i.onTouched}),C_=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const uc=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const o=Oe(e,i);if(o){const{_f:s,...l}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!n)break;if(s.ref&&t(s.ref,s.name)&&!n)break;uc(l,t)}else zr(l)&&uc(l,t)}}};var e3=(e,t,r)=>{const n=Hc(Oe(e,r));return Kt(n,"root",t[r]),Kt(e,r,n),e},MS=e=>e.type==="file",da=e=>typeof e=="function",mg=e=>{if(!jS)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},bv=e=>Oo(e),zS=e=>e.type==="radio",vg=e=>e instanceof RegExp;const KE={value:!1,isValid:!1},GE={value:!0,isValid:!0};var t3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Qt(e[0].attributes.value)?Qt(e[0].value)||e[0].value===""?GE:{value:e[0].value,isValid:!0}:GE:KE}return KE};const ZE={isValid:!1,value:null};var r3=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,ZE):ZE;function qE(e,t,r="validate"){if(bv(e)||Array.isArray(e)&&e.every(bv)||oa(e)&&!e)return{type:r,message:bv(e)?e:"",ref:t}}var pu=e=>zr(e)&&!vg(e)?e:{value:e,message:""},T_=async(e,t,r,n,i)=>{const{ref:o,refs:s,required:l,maxLength:u,minLength:d,min:f,max:h,pattern:m,validate:v,name:x,valueAsNumber:g,mount:S,disabled:b}=e._f,y=Oe(t,x);if(!S||b)return{};const _=s?s[0]:o,C=D=>{n&&_.reportValidity&&(_.setCustomValidity(oa(D)?"":D||""),_.reportValidity())},T={},I=zS(o),$=Nh(o),z=I||$,N=(g||MS(o))&&Qt(o.value)&&Qt(y)||mg(o)&&o.value===""||y===""||Array.isArray(y)&&!y.length,V=JI.bind(null,x,r,T),ce=(D,U,A,Q=ns.maxLength,ge=ns.minLength)=>{const G=D?U:A;T[x]={type:D?Q:ge,message:G,ref:o,...V(D?Q:ge,G)}};if(i?!Array.isArray(y)||!y.length:l&&(!z&&(N||kn(y))||oa(y)&&!y||$&&!t3(s).isValid||I&&!r3(s).isValid)){const{value:D,message:U}=bv(l)?{value:!!l,message:l}:pu(l);if(D&&(T[x]={type:ns.required,message:U,ref:_,...V(ns.required,U)},!r))return C(U),T}if(!N&&(!kn(f)||!kn(h))){let D,U;const A=pu(h),Q=pu(f);if(!kn(y)&&!isNaN(y)){const ge=o.valueAsNumber||y&&+y;kn(A.value)||(D=ge>A.value),kn(Q.value)||(U=genew Date(new Date().toDateString()+" "+he),oe=o.type=="time",ee=o.type=="week";Oo(A.value)&&y&&(D=oe?G(y)>G(A.value):ee?y>A.value:ge>new Date(A.value)),Oo(Q.value)&&y&&(U=oe?G(y)+D.value,Q=!kn(U.value)&&y.length<+U.value;if((A||Q)&&(ce(A,D.message,U.message),!r))return C(T[x].message),T}if(m&&!N&&Oo(y)){const{value:D,message:U}=pu(m);if(vg(D)&&!y.match(D)&&(T[x]={type:ns.pattern,message:U,ref:o,...V(ns.pattern,U)},!r))return C(U),T}if(v){if(da(v)){const D=await v(y,t),U=qE(D,_);if(U&&(T[x]={...U,...V(ns.validate,U.message)},!r))return C(U.message),T}else if(zr(v)){let D={};for(const U in v){if(!Mn(D)&&!r)break;const A=qE(await v[U](y,t),_,U);A&&(D={...A,...V(U,A.message)},C(A.message),r&&(T[x]=D))}if(!Mn(D)&&(T[x]={ref:_,...D},!r))return T}}return C(!0),T},k1=(e,t)=>[...e,...ji(t)],C1=e=>Array.isArray(e)?e.map(()=>{}):void 0;function T1(e,t,r){return[...e.slice(0,t),...ji(r),...e.slice(t)]}var E1=(e,t,r)=>Array.isArray(e)?(Qt(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],P1=(e,t)=>[...ji(t),...ji(e)];function UW(e,t){let r=0;const n=[...e];for(const i of t)n.splice(i-r,1),r++;return Hc(n).length?n:[]}var A1=(e,t)=>Qt(t)?[]:UW(e,ji(t).sort((r,n)=>r-n)),R1=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function HW(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function GW(e){const t=XI(),{control:r=t.control,name:n,keyName:i="id",shouldUnregister:o}=e,[s,l]=ft.useState(r._getFieldArray(n)),u=ft.useRef(r._getFieldArray(n).map(qs)),d=ft.useRef(s),f=ft.useRef(n),h=ft.useRef(!1);f.current=n,d.current=s,r._names.array.add(n),e.rules&&r.register(n,e.rules),QI({next:({values:T,name:I})=>{if(I===f.current||!I){const $=Oe(T,f.current);Array.isArray($)&&(l($),u.current=$.map(qs))}},subject:r._subjects.array});const m=ft.useCallback(T=>{h.current=!0,r._updateFieldArray(n,T)},[r,n]),v=(T,I)=>{const $=ji(Xr(T)),z=k1(r._getFieldArray(n),$);r._names.focus=S1(n,z.length-1,I),u.current=k1(u.current,$.map(qs)),m(z),l(z),r._updateFieldArray(n,z,k1,{argA:C1(T)})},x=(T,I)=>{const $=ji(Xr(T)),z=P1(r._getFieldArray(n),$);r._names.focus=S1(n,0,I),u.current=P1(u.current,$.map(qs)),m(z),l(z),r._updateFieldArray(n,z,P1,{argA:C1(T)})},g=T=>{const I=A1(r._getFieldArray(n),T);u.current=A1(u.current,T),m(I),l(I),r._updateFieldArray(n,I,A1,{argA:T})},S=(T,I,$)=>{const z=ji(Xr(I)),N=T1(r._getFieldArray(n),T,z);r._names.focus=S1(n,T,$),u.current=T1(u.current,T,z.map(qs)),m(N),l(N),r._updateFieldArray(n,N,T1,{argA:T,argB:C1(I)})},b=(T,I)=>{const $=r._getFieldArray(n);R1($,T,I),R1(u.current,T,I),m($),l($),r._updateFieldArray(n,$,R1,{argA:T,argB:I},!1)},y=(T,I)=>{const $=r._getFieldArray(n);E1($,T,I),E1(u.current,T,I),m($),l($),r._updateFieldArray(n,$,E1,{argA:T,argB:I},!1)},_=(T,I)=>{const $=Xr(I),z=YE(r._getFieldArray(n),T,$);u.current=[...z].map((N,V)=>!N||V===T?qs():u.current[V]),m(z),l([...z]),r._updateFieldArray(n,z,YE,{argA:T,argB:$},!0,!1)},C=T=>{const I=ji(Xr(T));u.current=I.map(qs),m([...I]),l([...I]),r._updateFieldArray(n,[...I],$=>$,{},!0,!1)};return ft.useEffect(()=>{if(r._state.action=!1,C_(n,r._names)&&r._subjects.state.next({...r._formState}),h.current&&(!bf(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(T=>{const I=Oe(T.errors,n),$=Oe(r._formState.errors,n);($?!I&&$.type||I&&($.type!==I.type||$.message!==I.message):I&&I.type)&&(I?Kt(r._formState.errors,n,I):Rr(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const T=Oe(r._fields,n);T&&T._f&&!(bf(r._options.reValidateMode).isOnSubmit&&bf(r._options.mode).isOnSubmit)&&T_(T,r._formValues,r._options.criteriaMode===$i.all,r._options.shouldUseNativeValidation,!0).then(I=>!Mn(I)&&r._subjects.state.next({errors:e3(r._formState.errors,I,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&uc(r._fields,(T,I)=>{if(r._names.focus&&I.startsWith(r._names.focus)&&T.focus)return T.focus(),1}),r._names.focus="",r._updateValid(),h.current=!1},[s,n,r]),ft.useEffect(()=>(!Oe(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)}),[n,r,i,o]),{swap:ft.useCallback(b,[m,n,r]),move:ft.useCallback(y,[m,n,r]),prepend:ft.useCallback(x,[m,n,r]),append:ft.useCallback(v,[m,n,r]),remove:ft.useCallback(g,[m,n,r]),insert:ft.useCallback(S,[m,n,r]),update:ft.useCallback(_,[m,n,r]),replace:ft.useCallback(C,[m,n,r]),fields:ft.useMemo(()=>s.map((T,I)=>({...T,[i]:u.current[I]||qs()})),[s,i])}}var O1=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},gg=e=>kn(e)||!ZI(e);function hl(e,t){if(gg(e)||gg(t))return e===t;if(Wu(e)&&Wu(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const o=e[i];if(!n.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Wu(o)&&Wu(s)||zr(o)&&zr(s)||Array.isArray(o)&&Array.isArray(s)?!hl(o,s):o!==s)return!1}}return!0}var n3=e=>e.type==="select-multiple",ZW=e=>zS(e)||Nh(e),I1=e=>mg(e)&&e.isConnected,i3=e=>{for(const t in e)if(da(e[t]))return!0;return!1};function yg(e,t={}){const r=Array.isArray(e);if(zr(e)||r)for(const n in e)Array.isArray(e[n])||zr(e[n])&&!i3(e[n])?(t[n]=Array.isArray(e[n])?[]:{},yg(e[n],t[n])):kn(e[n])||(t[n]=!0);return t}function o3(e,t,r){const n=Array.isArray(e);if(zr(e)||n)for(const i in e)Array.isArray(e[i])||zr(e[i])&&!i3(e[i])?Qt(t)||gg(r[i])?r[i]=Array.isArray(e[i])?yg(e[i],[]):{...yg(e[i])}:o3(e[i],kn(t)?{}:t[i],r[i]):r[i]=!hl(e[i],t[i]);return r}var Dm=(e,t)=>o3(e,t,yg(t)),s3=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Qt(e)?e:t?e===""?NaN:e&&+e:r&&Oo(e)?new Date(e):n?n(e):e;function $1(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return MS(t)?t.files:zS(t)?r3(e.refs).value:n3(t)?[...t.selectedOptions].map(({value:r})=>r):Nh(t)?t3(e.refs).value:s3(Qt(t.value)?e.ref.value:t.value,e)}var qW=(e,t,r,n)=>{const i={};for(const o of e){const s=Oe(t,o);s&&Kt(i,o,s._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},Md=e=>Qt(e)?e:vg(e)?e.source:zr(e)?vg(e.value)?e.value.source:e.value:e,YW=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function XE(e,t,r){const n=Oe(e,r);if(n||DS(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const o=i.join("."),s=Oe(t,o),l=Oe(e,o);if(s&&!Array.isArray(s)&&r!==o)return{name:r};if(l&&l.type)return{name:o,error:l};i.pop()}return{name:r}}var XW=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,QW=(e,t)=>!Hc(Oe(e,t)).length&&Rr(e,t);const JW={mode:$i.onSubmit,reValidateMode:$i.onChange,shouldFocusError:!0};function e7(e={}){let t={...JW,...e},r={submitCount:0,isDirty:!1,isLoading:da(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=zr(t.defaultValues)||zr(t.values)?Xr(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Xr(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:O1(),array:O1(),state:O1()},m=bf(t.mode),v=bf(t.reValidateMode),x=t.criteriaMode===$i.all,g=E=>j=>{clearTimeout(d),d=setTimeout(E,j)},S=async E=>{if(f.isValid||E){const j=t.resolver?Mn((await z()).errors):await V(n,!0);j!==r.isValid&&h.state.next({isValid:j})}},b=(E,j)=>{(f.isValidating||f.validatingFields)&&((E||Array.from(l.mount)).forEach(W=>{W&&(j?Kt(r.validatingFields,W,j):Rr(r.validatingFields,W))}),h.state.next({validatingFields:r.validatingFields,isValidating:!Mn(r.validatingFields)}))},y=(E,j=[],W,J,H=!0,te=!0)=>{if(J&&W){if(s.action=!0,te&&Array.isArray(Oe(n,E))){const q=W(Oe(n,E),J.argA,J.argB);H&&Kt(n,E,q)}if(te&&Array.isArray(Oe(r.errors,E))){const q=W(Oe(r.errors,E),J.argA,J.argB);H&&Kt(r.errors,E,q),QW(r.errors,E)}if(f.touchedFields&&te&&Array.isArray(Oe(r.touchedFields,E))){const q=W(Oe(r.touchedFields,E),J.argA,J.argB);H&&Kt(r.touchedFields,E,q)}f.dirtyFields&&(r.dirtyFields=Dm(i,o)),h.state.next({name:E,isDirty:D(E,j),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Kt(o,E,j)},_=(E,j)=>{Kt(r.errors,E,j),h.state.next({errors:r.errors})},C=E=>{r.errors=E,h.state.next({errors:r.errors,isValid:!1})},T=(E,j,W,J)=>{const H=Oe(n,E);if(H){const te=Oe(o,E,Qt(W)?Oe(i,E):W);Qt(te)||J&&J.defaultChecked||j?Kt(o,E,j?te:$1(H._f)):Q(E,te),s.mount&&S()}},I=(E,j,W,J,H)=>{let te=!1,q=!1;const ae={name:E},we=!!(Oe(n,E)&&Oe(n,E)._f.disabled);if(!W||J){f.isDirty&&(q=r.isDirty,r.isDirty=ae.isDirty=D(),te=q!==ae.isDirty);const $e=we||hl(Oe(i,E),j);q=!!(!we&&Oe(r.dirtyFields,E)),$e||we?Rr(r.dirtyFields,E):Kt(r.dirtyFields,E,!0),ae.dirtyFields=r.dirtyFields,te=te||f.dirtyFields&&q!==!$e}if(W){const $e=Oe(r.touchedFields,E);$e||(Kt(r.touchedFields,E,W),ae.touchedFields=r.touchedFields,te=te||f.touchedFields&&$e!==W)}return te&&H&&h.state.next(ae),te?ae:{}},$=(E,j,W,J)=>{const H=Oe(r.errors,E),te=f.isValid&&oa(j)&&r.isValid!==j;if(e.delayError&&W?(u=g(()=>_(E,W)),u(e.delayError)):(clearTimeout(d),u=null,W?Kt(r.errors,E,W):Rr(r.errors,E)),(W?!hl(H,W):H)||!Mn(J)||te){const q={...J,...te&&oa(j)?{isValid:j}:{},errors:r.errors,name:E};r={...r,...q},h.state.next(q)}},z=async E=>{b(E,!0);const j=await t.resolver(o,t.context,qW(E||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return b(E),j},N=async E=>{const{errors:j}=await z(E);if(E)for(const W of E){const J=Oe(j,W);J?Kt(r.errors,W,J):Rr(r.errors,W)}else r.errors=j;return j},V=async(E,j,W={valid:!0})=>{for(const J in E){const H=E[J];if(H){const{_f:te,...q}=H;if(te){const ae=l.array.has(te.name);b([J],!0);const we=await T_(H,o,x,t.shouldUseNativeValidation&&!j,ae);if(b([J]),we[te.name]&&(W.valid=!1,j))break;!j&&(Oe(we,te.name)?ae?e3(r.errors,we,te.name):Kt(r.errors,te.name,we[te.name]):Rr(r.errors,te.name))}q&&await V(q,j,W)}}return W.valid},ce=()=>{for(const E of l.unMount){const j=Oe(n,E);j&&(j._f.refs?j._f.refs.every(W=>!I1(W)):!I1(j._f.ref))&&Ae(E)}l.unMount=new Set},D=(E,j)=>(E&&j&&Kt(o,E,j),!hl(Y(),i)),U=(E,j,W)=>WW(E,l,{...s.mount?o:Qt(j)?i:Oo(E)?{[E]:j}:j},W,j),A=E=>Hc(Oe(s.mount?o:i,E,e.shouldUnregister?Oe(i,E,[]):[])),Q=(E,j,W={})=>{const J=Oe(n,E);let H=j;if(J){const te=J._f;te&&(!te.disabled&&Kt(o,E,s3(j,te)),H=mg(te.ref)&&kn(j)?"":j,n3(te.ref)?[...te.ref.options].forEach(q=>q.selected=H.includes(q.value)):te.refs?Nh(te.ref)?te.refs.length>1?te.refs.forEach(q=>(!q.defaultChecked||!q.disabled)&&(q.checked=Array.isArray(H)?!!H.find(ae=>ae===q.value):H===q.value)):te.refs[0]&&(te.refs[0].checked=!!H):te.refs.forEach(q=>q.checked=q.value===H):MS(te.ref)?te.ref.value="":(te.ref.value=H,te.ref.type||h.values.next({name:E,values:{...o}})))}(W.shouldDirty||W.shouldTouch)&&I(E,H,W.shouldTouch,W.shouldDirty,!0),W.shouldValidate&&he(E)},ge=(E,j,W)=>{for(const J in j){const H=j[J],te=`${E}.${J}`,q=Oe(n,te);(l.array.has(E)||!gg(H)||q&&!q._f)&&!Wu(H)?ge(te,H,W):Q(te,H,W)}},G=(E,j,W={})=>{const J=Oe(n,E),H=l.array.has(E),te=Xr(j);Kt(o,E,te),H?(h.array.next({name:E,values:{...o}}),(f.isDirty||f.dirtyFields)&&W.shouldDirty&&h.state.next({name:E,dirtyFields:Dm(i,o),isDirty:D(E,te)})):J&&!J._f&&!kn(te)?ge(E,te,W):Q(E,te,W),C_(E,l)&&h.state.next({...r}),h.values.next({name:s.mount?E:void 0,values:{...o}})},oe=async E=>{s.mount=!0;const j=E.target;let W=j.name,J=!0;const H=Oe(n,W),te=()=>j.type?$1(H._f):DW(E),q=ae=>{J=Number.isNaN(ae)||ae===Oe(o,W,ae)};if(H){let ae,we;const $e=te(),Ie=E.type===HE.BLUR||E.type===HE.FOCUS_OUT,Nt=!YW(H._f)&&!t.resolver&&!Oe(r.errors,W)&&!H._f.deps||XW(Ie,Oe(r.touchedFields,W),r.isSubmitted,v,m),or=C_(W,l,Ie);Kt(o,W,$e),Ie?(H._f.onBlur&&H._f.onBlur(E),u&&u(0)):H._f.onChange&&H._f.onChange(E);const qt=I(W,$e,Ie,!1),Nr=!Mn(qt)||or;if(!Ie&&h.values.next({name:W,type:E.type,values:{...o}}),Nt)return f.isValid&&S(),Nr&&h.state.next({name:W,...or?{}:qt});if(!Ie&&or&&h.state.next({...r}),t.resolver){const{errors:xt}=await z([W]);if(q($e),J){const Gr=XE(r.errors,n,W),pr=XE(xt,n,Gr.name||W);ae=pr.error,W=pr.name,we=Mn(xt)}}else b([W],!0),ae=(await T_(H,o,x,t.shouldUseNativeValidation))[W],b([W]),q($e),J&&(ae?we=!1:f.isValid&&(we=await V(n,!0)));J&&(H._f.deps&&he(H._f.deps),$(W,we,ae,qt))}},ee=(E,j)=>{if(Oe(r.errors,j)&&E.focus)return E.focus(),1},he=async(E,j={})=>{let W,J;const H=ji(E);if(t.resolver){const te=await N(Qt(E)?E:H);W=Mn(te),J=E?!H.some(q=>Oe(te,q)):W}else E?(J=(await Promise.all(H.map(async te=>{const q=Oe(n,te);return await V(q&&q._f?{[te]:q}:q)}))).every(Boolean),!(!J&&!r.isValid)&&S()):J=W=await V(n);return h.state.next({...!Oo(E)||f.isValid&&W!==r.isValid?{}:{name:E},...t.resolver||!E?{isValid:W}:{},errors:r.errors}),j.shouldFocus&&!J&&uc(n,ee,E?H:l.mount),J},Y=E=>{const j={...s.mount?o:i};return Qt(E)?j:Oo(E)?Oe(j,E):E.map(W=>Oe(j,W))},X=(E,j)=>({invalid:!!Oe((j||r).errors,E),isDirty:!!Oe((j||r).dirtyFields,E),isTouched:!!Oe((j||r).touchedFields,E),isValidating:!!Oe((j||r).validatingFields,E),error:Oe((j||r).errors,E)}),xe=E=>{E&&ji(E).forEach(j=>Rr(r.errors,j)),h.state.next({errors:E?r.errors:{}})},me=(E,j,W)=>{const J=(Oe(n,E,{_f:{}})._f||{}).ref,H=Oe(r.errors,E)||{},{ref:te,message:q,type:ae,...we}=H;Kt(r.errors,E,{...we,...j,ref:J}),h.state.next({name:E,errors:r.errors,isValid:!1}),W&&W.shouldFocus&&J&&J.focus&&J.focus()},pe=(E,j)=>da(E)?h.values.subscribe({next:W=>E(U(void 0,j),W)}):U(E,j,!0),Ae=(E,j={})=>{for(const W of E?ji(E):l.mount)l.mount.delete(W),l.array.delete(W),j.keepValue||(Rr(n,W),Rr(o,W)),!j.keepError&&Rr(r.errors,W),!j.keepDirty&&Rr(r.dirtyFields,W),!j.keepTouched&&Rr(r.touchedFields,W),!j.keepIsValidating&&Rr(r.validatingFields,W),!t.shouldUnregister&&!j.keepDefaultValue&&Rr(i,W);h.values.next({values:{...o}}),h.state.next({...r,...j.keepDirty?{isDirty:D()}:{}}),!j.keepIsValid&&S()},He=({disabled:E,name:j,field:W,fields:J,value:H})=>{if(oa(E)&&s.mount||E){const te=E?void 0:Qt(H)?$1(W?W._f:Oe(J,j)._f):H;Kt(o,j,te),I(j,te,!1,!1,!0)}},Te=(E,j={})=>{let W=Oe(n,E);const J=oa(j.disabled);return Kt(n,E,{...W||{},_f:{...W&&W._f?W._f:{ref:{name:E}},name:E,mount:!0,...j}}),l.mount.add(E),W?He({field:W,disabled:j.disabled,name:E,value:j.value}):T(E,!0,j.value),{...J?{disabled:j.disabled}:{},...t.progressive?{required:!!j.required,min:Md(j.min),max:Md(j.max),minLength:Md(j.minLength),maxLength:Md(j.maxLength),pattern:Md(j.pattern)}:{},name:E,onChange:oe,onBlur:oe,ref:H=>{if(H){Te(E,j),W=Oe(n,E);const te=Qt(H.value)&&H.querySelectorAll&&H.querySelectorAll("input,select,textarea")[0]||H,q=ZW(te),ae=W._f.refs||[];if(q?ae.find(we=>we===te):te===W._f.ref)return;Kt(n,E,{_f:{...W._f,...q?{refs:[...ae.filter(I1),te,...Array.isArray(Oe(i,E))?[{}]:[]],ref:{type:te.type,name:E}}:{ref:te}}}),T(E,!1,void 0,te)}else W=Oe(n,E,{}),W._f&&(W._f.mount=!1),(t.shouldUnregister||j.shouldUnregister)&&!(zW(l.array,E)&&s.action)&&l.unMount.add(E)}}},Me=()=>t.shouldFocusError&&uc(n,ee,l.mount),Qe=E=>{oa(E)&&(h.state.next({disabled:E}),uc(n,(j,W)=>{const J=Oe(n,W);J&&(j.disabled=J._f.disabled||E,Array.isArray(J._f.refs)&&J._f.refs.forEach(H=>{H.disabled=J._f.disabled||E}))},0,!1))},Ne=(E,j)=>async W=>{let J;W&&(W.preventDefault&&W.preventDefault(),W.persist&&W.persist());let H=Xr(o);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:te,values:q}=await z();r.errors=te,H=q}else await V(n);if(Rr(r.errors,"root"),Mn(r.errors)){h.state.next({errors:{}});try{await E(H,W)}catch(te){J=te}}else j&&await j({...r.errors},W),Me(),setTimeout(Me);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Mn(r.errors)&&!J,submitCount:r.submitCount+1,errors:r.errors}),J)throw J},Ee=(E,j={})=>{Oe(n,E)&&(Qt(j.defaultValue)?G(E,Xr(Oe(i,E))):(G(E,j.defaultValue),Kt(i,E,Xr(j.defaultValue))),j.keepTouched||Rr(r.touchedFields,E),j.keepDirty||(Rr(r.dirtyFields,E),r.isDirty=j.defaultValue?D(E,Xr(Oe(i,E))):D()),j.keepError||(Rr(r.errors,E),f.isValid&&S()),h.state.next({...r}))},We=(E,j={})=>{const W=E?Xr(E):i,J=Xr(W),H=Mn(E),te=H?i:J;if(j.keepDefaultValues||(i=W),!j.keepValues){if(j.keepDirtyValues)for(const q of l.mount)Oe(r.dirtyFields,q)?Kt(te,q,Oe(o,q)):G(q,Oe(te,q));else{if(jS&&Qt(E))for(const q of l.mount){const ae=Oe(n,q);if(ae&&ae._f){const we=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(mg(we)){const $e=we.closest("form");if($e){$e.reset();break}}}}n={}}o=e.shouldUnregister?j.keepDefaultValues?Xr(i):{}:Xr(te),h.array.next({values:{...te}}),h.values.next({values:{...te}})}l={mount:j.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!f.isValid||!!j.keepIsValid||!!j.keepDirtyValues,s.watch=!!e.shouldUnregister,h.state.next({submitCount:j.keepSubmitCount?r.submitCount:0,isDirty:H?!1:j.keepDirty?r.isDirty:!!(j.keepDefaultValues&&!hl(E,i)),isSubmitted:j.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:H?[]:j.keepDirtyValues?j.keepDefaultValues&&o?Dm(i,o):r.dirtyFields:j.keepDefaultValues&&E?Dm(i,E):{},touchedFields:j.keepTouched?r.touchedFields:{},errors:j.keepErrors?r.errors:{},isSubmitSuccessful:j.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},P=(E,j)=>We(da(E)?E(o):E,j);return{control:{register:Te,unregister:Ae,getFieldState:X,handleSubmit:Ne,setError:me,_executeSchema:z,_getWatch:U,_getDirty:D,_updateValid:S,_removeUnmounted:ce,_updateFieldArray:y,_updateDisabledField:He,_getFieldArray:A,_reset:We,_resetDefaultValues:()=>da(t.defaultValues)&&t.defaultValues().then(E=>{P(E,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:E=>{r={...r,...E}},_disableForm:Qe,_subjects:h,_proxyFormState:f,_setErrors:C,get _fields(){return n},get _formValues(){return o},get _state(){return s},set _state(E){s=E},get _defaultValues(){return i},get _names(){return l},set _names(E){l=E},get _formState(){return r},set _formState(E){r=E},get _options(){return t},set _options(E){t={...t,...E}}},trigger:he,register:Te,handleSubmit:Ne,watch:pe,setValue:G,getValues:Y,reset:P,resetField:Ee,clearErrors:xe,unregister:Ae,setError:me,setFocus:(E,j={})=>{const W=Oe(n,E),J=W&&W._f;if(J){const H=J.refs?J.refs[0]:J.ref;H.focus&&(H.focus(),j.shouldSelect&&H.select())}},getFieldState:X}}function t7(e={}){const t=ft.useRef(),r=ft.useRef(),[n,i]=ft.useState({isDirty:!1,isValidating:!1,isLoading:da(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:da(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...e7(e),formState:n});const o=t.current.control;return o._options=e,QI({subject:o._subjects.state,next:s=>{VW(s,o._proxyFormState,o._updateFormState)&&i({...o._formState})}}),ft.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ft.useEffect(()=>{if(o._proxyFormState.isDirty){const s=o._getDirty();s!==n.isDirty&&o._subjects.state.next({isDirty:s})}},[o,n.isDirty]),ft.useEffect(()=>{e.values&&!hl(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,i(s=>({...s}))):o._resetDefaultValues()},[e.values,o]),ft.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ft.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ft.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=BW(n,o),t.current}var QE=function(e,t,r){if(e&&"reportValidity"in e){var n=Oe(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},a3=function(e,t){var r=function(i){var o=t.fields[i];o&&o.ref&&"reportValidity"in o.ref?QE(o.ref,i,e):o.refs&&o.refs.forEach(function(s){return QE(s,i,e)})};for(var n in t.fields)r(n)},r7=function(e){return e instanceof Date},n7=function(e){return e==null},i7=function(e){return typeof e=="object"},o7=function(e){return!n7(e)&&!Array.isArray(e)&&i7(e)&&!r7(e)},s7=function(e){return/^\w*$/.test(e)},F1=function(e,t,r){for(var n=-1,i=s7(t)?[t]:function(f){return h=f.replace(/["|']|\]/g,"").split(/\.|\[/),Array.isArray(h)?h.filter(Boolean):[];var h}(t),o=i.length,s=o-1;++ni;function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{const o={};for(const s of i)o[s]=s;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(l=>typeof i[i[l]]!="number"),s={};for(const l of o)s[l]=i[l];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&o.push(s);return o},e.find=(i,o)=>{for(const s of i)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,o=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=n,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(_t||(_t={}));var E_;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(E_||(E_={}));const Fe=_t.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),sa=e=>{switch(typeof e){case"undefined":return Fe.undefined;case"string":return Fe.string;case"number":return isNaN(e)?Fe.nan:Fe.number;case"boolean":return Fe.boolean;case"function":return Fe.function;case"bigint":return Fe.bigint;case"symbol":return Fe.symbol;case"object":return Array.isArray(e)?Fe.array:e===null?Fe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Fe.promise:typeof Map<"u"&&e instanceof Map?Fe.map:typeof Set<"u"&&e instanceof Set?Fe.set:typeof Date<"u"&&e instanceof Date?Fe.date:Fe.object;default:return Fe.unknown}},ke=_t.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),d7=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class ai extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(o){return o.message},n={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)n._errors.push(r(s));else{let l=n,u=0;for(;ur.message){const r={},n=[];for(const i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}ai.create=e=>new ai(e);const Ac=(e,t)=>{let r;switch(e.code){case ke.invalid_type:e.received===Fe.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case ke.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,_t.jsonStringifyReplacer)}`;break;case ke.unrecognized_keys:r=`Unrecognized key(s) in object: ${_t.joinValues(e.keys,", ")}`;break;case ke.invalid_union:r="Invalid input";break;case ke.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${_t.joinValues(e.options)}`;break;case ke.invalid_enum_value:r=`Invalid enum value. Expected ${_t.joinValues(e.options)}, received '${e.received}'`;break;case ke.invalid_arguments:r="Invalid function arguments";break;case ke.invalid_return_type:r="Invalid function return type";break;case ke.invalid_date:r="Invalid date";break;case ke.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:_t.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case ke.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case ke.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case ke.custom:r="Invalid input";break;case ke.invalid_intersection_types:r="Intersection results could not be merged";break;case ke.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case ke.not_finite:r="Number must be finite";break;default:r=t.defaultError,_t.assertNever(e)}return{message:r}};let l3=Ac;function f7(e){l3=e}function bg(){return l3}const xg=e=>{const{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],s={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let l="";const u=n.filter(d=>!!d).slice().reverse();for(const d of u)l=d(s,{data:t,defaultError:l}).message;return{...i,path:o,message:l}},h7=[];function Re(e,t){const r=bg(),n=xg({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Ac?void 0:Ac].filter(i=>!!i)});e.common.issues.push(n)}class yn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const i of r){if(i.status==="aborted")return tt;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const i of r){const o=await i.key,s=await i.value;n.push({key:o,value:s})}return yn.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const i of r){const{key:o,value:s}=i;if(o.status==="aborted"||s.status==="aborted")return tt;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(n[o.value]=s.value)}return{status:t.value,value:n}}}const tt=Object.freeze({status:"aborted"}),Uu=e=>({status:"dirty",value:e}),An=e=>({status:"valid",value:e}),P_=e=>e.status==="aborted",_g=e=>e.status==="dirty",Xf=e=>e.status==="valid",Qf=e=>typeof Promise<"u"&&e instanceof Promise;function wg(e,t,r,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function u3(e,t,r,n,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var Ve;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Ve||(Ve={}));var Yd,Xd;class Bo{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const JE=(e,t)=>{if(Xf(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new ai(e.common.issues);return this._error=r,this._error}}};function it(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,l)=>{var u,d;const{message:f}=e;return s.code==="invalid_enum_value"?{message:f??l.defaultError}:typeof l.data>"u"?{message:(u=f??n)!==null&&u!==void 0?u:l.defaultError}:s.code!=="invalid_type"?{message:l.defaultError}:{message:(d=f??r)!==null&&d!==void 0?d:l.defaultError}},description:i}}class at{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return sa(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:sa(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new yn,ctx:{common:t.parent.common,data:t.data,parsedType:sa(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Qf(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;const i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:sa(t)},o=this._parseSync({data:t,path:i.path,parent:i});return JE(i,o)}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:sa(t)},i=this._parse({data:t,path:n.path,parent:n}),o=await(Qf(i)?i:Promise.resolve(i));return JE(n,o)}refine(t,r){const n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,o)=>{const s=t(i),l=()=>o.addIssue({code:ke.custom,...n(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(u=>u?!0:(l(),!1)):s?!0:(l(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new ho({schema:this,typeName:et.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Fo.create(this,this._def)}nullable(){return Aa.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return uo.create(this,this._def)}promise(){return Oc.create(this,this._def)}or(t){return rh.create([this,t],this._def)}and(t){return nh.create(this,t,this._def)}transform(t){return new ho({...it(this._def),schema:this,typeName:et.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new lh({...it(this._def),innerType:this,defaultValue:r,typeName:et.ZodDefault})}brand(){return new LS({typeName:et.ZodBranded,type:this,...it(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new uh({...it(this._def),innerType:this,catchValue:r,typeName:et.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Bh.create(this,t)}readonly(){return ch.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const p7=/^c[^\s-]{8,}$/i,m7=/^[0-9a-z]+$/,v7=/^[0-9A-HJKMNP-TV-Z]{26}$/,g7=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,y7=/^[a-z0-9_-]{21}$/i,b7=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,x7=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_7="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let j1;const w7=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,S7=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,k7=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,c3="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",C7=new RegExp(`^${c3}$`);function d3(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function T7(e){return new RegExp(`^${d3(e)}$`)}function f3(e){let t=`${c3}T${d3(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function E7(e,t){return!!((t==="v4"||!t)&&w7.test(e)||(t==="v6"||!t)&&S7.test(e))}class oo extends at{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Fe.string){const o=this._getOrReturnCtx(t);return Re(o,{code:ke.invalid_type,expected:Fe.string,received:o.parsedType}),tt}const n=new yn;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.lengtho.value&&(i=this._getOrReturnCtx(t,i),Re(i,{code:ke.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,l=t.data.lengtht.test(i),{validation:r,code:ke.invalid_string,...Ve.errToObj(n)})}_addCheck(t){return new oo({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ve.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ve.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ve.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ve.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ve.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ve.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ve.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ve.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ve.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ve.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!1,...Ve.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Ve.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Ve.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Ve.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...Ve.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Ve.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Ve.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Ve.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Ve.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Ve.errToObj(r)})}nonempty(t){return this.min(1,Ve.errToObj(t))}trim(){return new oo({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new oo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new oo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value{var t;return new oo({checks:[],typeName:et.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...it(e)})};function P7(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,o=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return o%s/Math.pow(10,i)}class Ta extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Fe.number){const o=this._getOrReturnCtx(t);return Re(o,{code:ke.invalid_type,expected:Fe.number,received:o.parsedType}),tt}let n;const i=new yn;for(const o of this._def.checks)o.kind==="int"?_t.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),Re(n,{code:ke.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.datao.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),Re(n,{code:ke.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?P7(t.data,o.value)!==0&&(n=this._getOrReturnCtx(t,n),Re(n,{code:ke.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),Re(n,{code:ke.not_finite,message:o.message}),i.dirty()):_t.assertNever(o);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Ve.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Ve.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Ve.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Ve.toString(r))}setLimit(t,r,n,i){return new Ta({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Ve.toString(i)}]})}_addCheck(t){return new Ta({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ve.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ve.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ve.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ve.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ve.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Ve.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Ve.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ve.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ve.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuet.kind==="int"||t.kind==="multipleOf"&&_t.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.valuenew Ta({checks:[],typeName:et.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...it(e)});class Ea extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Fe.bigint){const o=this._getOrReturnCtx(t);return Re(o,{code:ke.invalid_type,expected:Fe.bigint,received:o.parsedType}),tt}let n;const i=new yn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.datao.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),Re(n,{code:ke.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),Re(n,{code:ke.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):_t.assertNever(o);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Ve.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Ve.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Ve.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Ve.toString(r))}setLimit(t,r,n,i){return new Ea({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Ve.toString(i)}]})}_addCheck(t){return new Ea({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ve.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ve.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ve.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ve.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Ve.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value{var t;return new Ea({checks:[],typeName:et.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...it(e)})};class Jf extends at{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Fe.boolean){const n=this._getOrReturnCtx(t);return Re(n,{code:ke.invalid_type,expected:Fe.boolean,received:n.parsedType}),tt}return An(t.data)}}Jf.create=e=>new Jf({typeName:et.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...it(e)});class $l extends at{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Fe.date){const o=this._getOrReturnCtx(t);return Re(o,{code:ke.invalid_type,expected:Fe.date,received:o.parsedType}),tt}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return Re(o,{code:ke.invalid_date}),tt}const n=new yn;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()o.value&&(i=this._getOrReturnCtx(t,i),Re(i,{code:ke.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):_t.assertNever(o);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new $l({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Ve.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Ve.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew $l({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:et.ZodDate,...it(e)});class Sg extends at{_parse(t){if(this._getType(t)!==Fe.symbol){const n=this._getOrReturnCtx(t);return Re(n,{code:ke.invalid_type,expected:Fe.symbol,received:n.parsedType}),tt}return An(t.data)}}Sg.create=e=>new Sg({typeName:et.ZodSymbol,...it(e)});class eh extends at{_parse(t){if(this._getType(t)!==Fe.undefined){const n=this._getOrReturnCtx(t);return Re(n,{code:ke.invalid_type,expected:Fe.undefined,received:n.parsedType}),tt}return An(t.data)}}eh.create=e=>new eh({typeName:et.ZodUndefined,...it(e)});class th extends at{_parse(t){if(this._getType(t)!==Fe.null){const n=this._getOrReturnCtx(t);return Re(n,{code:ke.invalid_type,expected:Fe.null,received:n.parsedType}),tt}return An(t.data)}}th.create=e=>new th({typeName:et.ZodNull,...it(e)});class Rc extends at{constructor(){super(...arguments),this._any=!0}_parse(t){return An(t.data)}}Rc.create=e=>new Rc({typeName:et.ZodAny,...it(e)});class yl extends at{constructor(){super(...arguments),this._unknown=!0}_parse(t){return An(t.data)}}yl.create=e=>new yl({typeName:et.ZodUnknown,...it(e)});class Ts extends at{_parse(t){const r=this._getOrReturnCtx(t);return Re(r,{code:ke.invalid_type,expected:Fe.never,received:r.parsedType}),tt}}Ts.create=e=>new Ts({typeName:et.ZodNever,...it(e)});class kg extends at{_parse(t){if(this._getType(t)!==Fe.undefined){const n=this._getOrReturnCtx(t);return Re(n,{code:ke.invalid_type,expected:Fe.void,received:n.parsedType}),tt}return An(t.data)}}kg.create=e=>new kg({typeName:et.ZodVoid,...it(e)});class uo extends at{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==Fe.array)return Re(r,{code:ke.invalid_type,expected:Fe.array,received:r.parsedType}),tt;if(i.exactLength!==null){const s=r.data.length>i.exactLength.value,l=r.data.lengthi.maxLength.value&&(Re(r,{code:ke.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((s,l)=>i.type._parseAsync(new Bo(r,s,r.path,l)))).then(s=>yn.mergeArray(n,s));const o=[...r.data].map((s,l)=>i.type._parseSync(new Bo(r,s,r.path,l)));return yn.mergeArray(n,o)}get element(){return this._def.type}min(t,r){return new uo({...this._def,minLength:{value:t,message:Ve.toString(r)}})}max(t,r){return new uo({...this._def,maxLength:{value:t,message:Ve.toString(r)}})}length(t,r){return new uo({...this._def,exactLength:{value:t,message:Ve.toString(r)}})}nonempty(t){return this.min(1,t)}}uo.create=(e,t)=>new uo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:et.ZodArray,...it(t)});function Au(e){if(e instanceof lr){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=Fo.create(Au(n))}return new lr({...e._def,shape:()=>t})}else return e instanceof uo?new uo({...e._def,type:Au(e.element)}):e instanceof Fo?Fo.create(Au(e.unwrap())):e instanceof Aa?Aa.create(Au(e.unwrap())):e instanceof Vo?Vo.create(e.items.map(t=>Au(t))):e}class lr extends at{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=_t.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==Fe.object){const d=this._getOrReturnCtx(t);return Re(d,{code:ke.invalid_type,expected:Fe.object,received:d.parsedType}),tt}const{status:n,ctx:i}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),l=[];if(!(this._def.catchall instanceof Ts&&this._def.unknownKeys==="strip"))for(const d in i.data)s.includes(d)||l.push(d);const u=[];for(const d of s){const f=o[d],h=i.data[d];u.push({key:{status:"valid",value:d},value:f._parse(new Bo(i,h,i.path,d)),alwaysSet:d in i.data})}if(this._def.catchall instanceof Ts){const d=this._def.unknownKeys;if(d==="passthrough")for(const f of l)u.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(d==="strict")l.length>0&&(Re(i,{code:ke.unrecognized_keys,keys:l}),n.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const f of l){const h=i.data[f];u.push({key:{status:"valid",value:f},value:d._parse(new Bo(i,h,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const d=[];for(const f of u){const h=await f.key,m=await f.value;d.push({key:h,value:m,alwaysSet:f.alwaysSet})}return d}).then(d=>yn.mergeObjectSync(n,d)):yn.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return Ve.errToObj,new lr({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var i,o,s,l;const u=(s=(o=(i=this._def).errorMap)===null||o===void 0?void 0:o.call(i,r,n).message)!==null&&s!==void 0?s:n.defaultError;return r.code==="unrecognized_keys"?{message:(l=Ve.errToObj(t).message)!==null&&l!==void 0?l:u}:{message:u}}}:{}})}strip(){return new lr({...this._def,unknownKeys:"strip"})}passthrough(){return new lr({...this._def,unknownKeys:"passthrough"})}extend(t){return new lr({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new lr({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:et.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new lr({...this._def,catchall:t})}pick(t){const r={};return _t.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new lr({...this._def,shape:()=>r})}omit(t){const r={};return _t.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new lr({...this._def,shape:()=>r})}deepPartial(){return Au(this)}partial(t){const r={};return _t.objectKeys(this.shape).forEach(n=>{const i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional()}),new lr({...this._def,shape:()=>r})}required(t){const r={};return _t.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof Fo;)o=o._def.innerType;r[n]=o}}),new lr({...this._def,shape:()=>r})}keyof(){return h3(_t.objectKeys(this.shape))}}lr.create=(e,t)=>new lr({shape:()=>e,unknownKeys:"strip",catchall:Ts.create(),typeName:et.ZodObject,...it(t)});lr.strictCreate=(e,t)=>new lr({shape:()=>e,unknownKeys:"strict",catchall:Ts.create(),typeName:et.ZodObject,...it(t)});lr.lazycreate=(e,t)=>new lr({shape:e,unknownKeys:"strip",catchall:Ts.create(),typeName:et.ZodObject,...it(t)});class rh extends at{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function i(o){for(const l of o)if(l.result.status==="valid")return l.result;for(const l of o)if(l.result.status==="dirty")return r.common.issues.push(...l.ctx.common.issues),l.result;const s=o.map(l=>new ai(l.ctx.common.issues));return Re(r,{code:ke.invalid_union,unionErrors:s}),tt}if(r.common.async)return Promise.all(n.map(async o=>{const s={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(i);{let o;const s=[];for(const u of n){const d={...r,common:{...r.common,issues:[]},parent:null},f=u._parseSync({data:r.data,path:r.path,parent:d});if(f.status==="valid")return f;f.status==="dirty"&&!o&&(o={result:f,ctx:d}),d.common.issues.length&&s.push(d.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const l=s.map(u=>new ai(u));return Re(r,{code:ke.invalid_union,unionErrors:l}),tt}}get options(){return this._def.options}}rh.create=(e,t)=>new rh({options:e,typeName:et.ZodUnion,...it(t)});const ss=e=>e instanceof oh?ss(e.schema):e instanceof ho?ss(e.innerType()):e instanceof sh?[e.value]:e instanceof Pa?e.options:e instanceof ah?_t.objectValues(e.enum):e instanceof lh?ss(e._def.innerType):e instanceof eh?[void 0]:e instanceof th?[null]:e instanceof Fo?[void 0,...ss(e.unwrap())]:e instanceof Aa?[null,...ss(e.unwrap())]:e instanceof LS||e instanceof ch?ss(e.unwrap()):e instanceof uh?ss(e._def.innerType):[];class w0 extends at{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Fe.object)return Re(r,{code:ke.invalid_type,expected:Fe.object,received:r.parsedType}),tt;const n=this.discriminator,i=r.data[n],o=this.optionsMap.get(i);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(Re(r,{code:ke.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),tt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const i=new Map;for(const o of r){const s=ss(o.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const l of s){if(i.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);i.set(l,o)}}return new w0({typeName:et.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:i,...it(n)})}}function A_(e,t){const r=sa(e),n=sa(t);if(e===t)return{valid:!0,data:e};if(r===Fe.object&&n===Fe.object){const i=_t.objectKeys(t),o=_t.objectKeys(e).filter(l=>i.indexOf(l)!==-1),s={...e,...t};for(const l of o){const u=A_(e[l],t[l]);if(!u.valid)return{valid:!1};s[l]=u.data}return{valid:!0,data:s}}else if(r===Fe.array&&n===Fe.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o{if(P_(o)||P_(s))return tt;const l=A_(o.value,s.value);return l.valid?((_g(o)||_g(s))&&r.dirty(),{status:r.value,value:l.data}):(Re(n,{code:ke.invalid_intersection_types}),tt)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([o,s])=>i(o,s)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}nh.create=(e,t,r)=>new nh({left:e,right:t,typeName:et.ZodIntersection,...it(r)});class Vo extends at{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Fe.array)return Re(n,{code:ke.invalid_type,expected:Fe.array,received:n.parsedType}),tt;if(n.data.lengththis._def.items.length&&(Re(n,{code:ke.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...n.data].map((s,l)=>{const u=this._def.items[l]||this._def.rest;return u?u._parse(new Bo(n,s,n.path,l)):null}).filter(s=>!!s);return n.common.async?Promise.all(o).then(s=>yn.mergeArray(r,s)):yn.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new Vo({...this._def,rest:t})}}Vo.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Vo({items:e,typeName:et.ZodTuple,rest:null,...it(t)})};class ih extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Fe.object)return Re(n,{code:ke.invalid_type,expected:Fe.object,received:n.parsedType}),tt;const i=[],o=this._def.keyType,s=this._def.valueType;for(const l in n.data)i.push({key:o._parse(new Bo(n,l,n.path,l)),value:s._parse(new Bo(n,n.data[l],n.path,l)),alwaysSet:l in n.data});return n.common.async?yn.mergeObjectAsync(r,i):yn.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof at?new ih({keyType:t,valueType:r,typeName:et.ZodRecord,...it(n)}):new ih({keyType:oo.create(),valueType:t,typeName:et.ZodRecord,...it(r)})}}class Cg extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Fe.map)return Re(n,{code:ke.invalid_type,expected:Fe.map,received:n.parsedType}),tt;const i=this._def.keyType,o=this._def.valueType,s=[...n.data.entries()].map(([l,u],d)=>({key:i._parse(new Bo(n,l,n.path,[d,"key"])),value:o._parse(new Bo(n,u,n.path,[d,"value"]))}));if(n.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const u of s){const d=await u.key,f=await u.value;if(d.status==="aborted"||f.status==="aborted")return tt;(d.status==="dirty"||f.status==="dirty")&&r.dirty(),l.set(d.value,f.value)}return{status:r.value,value:l}})}else{const l=new Map;for(const u of s){const d=u.key,f=u.value;if(d.status==="aborted"||f.status==="aborted")return tt;(d.status==="dirty"||f.status==="dirty")&&r.dirty(),l.set(d.value,f.value)}return{status:r.value,value:l}}}}Cg.create=(e,t,r)=>new Cg({valueType:t,keyType:e,typeName:et.ZodMap,...it(r)});class Fl extends at{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Fe.set)return Re(n,{code:ke.invalid_type,expected:Fe.set,received:n.parsedType}),tt;const i=this._def;i.minSize!==null&&n.data.sizei.maxSize.value&&(Re(n,{code:ke.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());const o=this._def.valueType;function s(u){const d=new Set;for(const f of u){if(f.status==="aborted")return tt;f.status==="dirty"&&r.dirty(),d.add(f.value)}return{status:r.value,value:d}}const l=[...n.data.values()].map((u,d)=>o._parse(new Bo(n,u,n.path,d)));return n.common.async?Promise.all(l).then(u=>s(u)):s(l)}min(t,r){return new Fl({...this._def,minSize:{value:t,message:Ve.toString(r)}})}max(t,r){return new Fl({...this._def,maxSize:{value:t,message:Ve.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Fl.create=(e,t)=>new Fl({valueType:e,minSize:null,maxSize:null,typeName:et.ZodSet,...it(t)});class cc extends at{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Fe.function)return Re(r,{code:ke.invalid_type,expected:Fe.function,received:r.parsedType}),tt;function n(l,u){return xg({data:l,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,bg(),Ac].filter(d=>!!d),issueData:{code:ke.invalid_arguments,argumentsError:u}})}function i(l,u){return xg({data:l,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,bg(),Ac].filter(d=>!!d),issueData:{code:ke.invalid_return_type,returnTypeError:u}})}const o={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof Oc){const l=this;return An(async function(...u){const d=new ai([]),f=await l._def.args.parseAsync(u,o).catch(v=>{throw d.addIssue(n(u,v)),d}),h=await Reflect.apply(s,this,f);return await l._def.returns._def.type.parseAsync(h,o).catch(v=>{throw d.addIssue(i(h,v)),d})})}else{const l=this;return An(function(...u){const d=l._def.args.safeParse(u,o);if(!d.success)throw new ai([n(u,d.error)]);const f=Reflect.apply(s,this,d.data),h=l._def.returns.safeParse(f,o);if(!h.success)throw new ai([i(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new cc({...this._def,args:Vo.create(t).rest(yl.create())})}returns(t){return new cc({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new cc({args:t||Vo.create([]).rest(yl.create()),returns:r||yl.create(),typeName:et.ZodFunction,...it(n)})}}class oh extends at{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}oh.create=(e,t)=>new oh({getter:e,typeName:et.ZodLazy,...it(t)});class sh extends at{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return Re(r,{received:r.data,code:ke.invalid_literal,expected:this._def.value}),tt}return{status:"valid",value:t.data}}get value(){return this._def.value}}sh.create=(e,t)=>new sh({value:e,typeName:et.ZodLiteral,...it(t)});function h3(e,t){return new Pa({values:e,typeName:et.ZodEnum,...it(t)})}class Pa extends at{constructor(){super(...arguments),Yd.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return Re(r,{expected:_t.joinValues(n),received:r.parsedType,code:ke.invalid_type}),tt}if(wg(this,Yd)||u3(this,Yd,new Set(this._def.values)),!wg(this,Yd).has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return Re(r,{received:r.data,code:ke.invalid_enum_value,options:n}),tt}return An(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Pa.create(t,{...this._def,...r})}exclude(t,r=this._def){return Pa.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Yd=new WeakMap;Pa.create=h3;class ah extends at{constructor(){super(...arguments),Xd.set(this,void 0)}_parse(t){const r=_t.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==Fe.string&&n.parsedType!==Fe.number){const i=_t.objectValues(r);return Re(n,{expected:_t.joinValues(i),received:n.parsedType,code:ke.invalid_type}),tt}if(wg(this,Xd)||u3(this,Xd,new Set(_t.getValidEnumValues(this._def.values))),!wg(this,Xd).has(t.data)){const i=_t.objectValues(r);return Re(n,{received:n.data,code:ke.invalid_enum_value,options:i}),tt}return An(t.data)}get enum(){return this._def.values}}Xd=new WeakMap;ah.create=(e,t)=>new ah({values:e,typeName:et.ZodNativeEnum,...it(t)});class Oc extends at{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Fe.promise&&r.common.async===!1)return Re(r,{code:ke.invalid_type,expected:Fe.promise,received:r.parsedType}),tt;const n=r.parsedType===Fe.promise?r.data:Promise.resolve(r.data);return An(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Oc.create=(e,t)=>new Oc({type:e,typeName:et.ZodPromise,...it(t)});class ho extends at{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===et.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:s=>{Re(n,s),s.fatal?r.abort():r.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const s=i.transform(n.data,o);if(n.common.async)return Promise.resolve(s).then(async l=>{if(r.value==="aborted")return tt;const u=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return u.status==="aborted"?tt:u.status==="dirty"||r.value==="dirty"?Uu(u.value):u});{if(r.value==="aborted")return tt;const l=this._def.schema._parseSync({data:s,path:n.path,parent:n});return l.status==="aborted"?tt:l.status==="dirty"||r.value==="dirty"?Uu(l.value):l}}if(i.type==="refinement"){const s=l=>{const u=i.refinement(l,o);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){const l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?tt:(l.status==="dirty"&&r.dirty(),s(l.value),{status:r.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?tt:(l.status==="dirty"&&r.dirty(),s(l.value).then(()=>({status:r.value,value:l.value}))))}if(i.type==="transform")if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Xf(s))return s;const l=i.transform(s.value,o);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>Xf(s)?Promise.resolve(i.transform(s.value,o)).then(l=>({status:r.value,value:l})):s);_t.assertNever(i)}}ho.create=(e,t,r)=>new ho({schema:e,typeName:et.ZodEffects,effect:t,...it(r)});ho.createWithPreprocess=(e,t,r)=>new ho({schema:t,effect:{type:"preprocess",transform:e},typeName:et.ZodEffects,...it(r)});class Fo extends at{_parse(t){return this._getType(t)===Fe.undefined?An(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Fo.create=(e,t)=>new Fo({innerType:e,typeName:et.ZodOptional,...it(t)});class Aa extends at{_parse(t){return this._getType(t)===Fe.null?An(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Aa.create=(e,t)=>new Aa({innerType:e,typeName:et.ZodNullable,...it(t)});class lh extends at{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===Fe.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}lh.create=(e,t)=>new lh({innerType:e,typeName:et.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...it(t)});class uh extends at{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Qf(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ai(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ai(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}uh.create=(e,t)=>new uh({innerType:e,typeName:et.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...it(t)});class Tg extends at{_parse(t){if(this._getType(t)!==Fe.nan){const n=this._getOrReturnCtx(t);return Re(n,{code:ke.invalid_type,expected:Fe.nan,received:n.parsedType}),tt}return{status:"valid",value:t.data}}}Tg.create=e=>new Tg({typeName:et.ZodNaN,...it(e)});const A7=Symbol("zod_brand");class LS extends at{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Bh extends at{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?tt:o.status==="dirty"?(r.dirty(),Uu(o.value)):this._def.out._parseAsync({data:o.value,path:n.path,parent:n})})();{const i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?tt:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new Bh({in:t,out:r,typeName:et.ZodPipeline})}}class ch extends at{_parse(t){const r=this._def.innerType._parse(t),n=i=>(Xf(i)&&(i.value=Object.freeze(i.value)),i);return Qf(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}}ch.create=(e,t)=>new ch({innerType:e,typeName:et.ZodReadonly,...it(t)});function p3(e,t={},r){return e?Rc.create().superRefine((n,i)=>{var o,s;if(!e(n)){const l=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,u=(s=(o=l.fatal)!==null&&o!==void 0?o:r)!==null&&s!==void 0?s:!0,d=typeof l=="string"?{message:l}:l;i.addIssue({code:"custom",...d,fatal:u})}}):Rc.create()}const R7={object:lr.lazycreate};var et;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(et||(et={}));const O7=(e,t={message:`Input not instance of ${e.name}`})=>p3(r=>r instanceof e,t),m3=oo.create,v3=Ta.create,I7=Tg.create,$7=Ea.create,g3=Jf.create,F7=$l.create,j7=Sg.create,D7=eh.create,M7=th.create,z7=Rc.create,L7=yl.create,N7=Ts.create,B7=kg.create,V7=uo.create,W7=lr.create,U7=lr.strictCreate,H7=rh.create,K7=w0.create,G7=nh.create,Z7=Vo.create,q7=ih.create,Y7=Cg.create,X7=Fl.create,Q7=cc.create,J7=oh.create,eU=sh.create,tU=Pa.create,rU=ah.create,nU=Oc.create,eP=ho.create,iU=Fo.create,oU=Aa.create,sU=ho.createWithPreprocess,aU=Bh.create,lU=()=>m3().optional(),uU=()=>v3().optional(),cU=()=>g3().optional(),dU={string:e=>oo.create({...e,coerce:!0}),number:e=>Ta.create({...e,coerce:!0}),boolean:e=>Jf.create({...e,coerce:!0}),bigint:e=>Ea.create({...e,coerce:!0}),date:e=>$l.create({...e,coerce:!0})},fU=tt;var Ce=Object.freeze({__proto__:null,defaultErrorMap:Ac,setErrorMap:f7,getErrorMap:bg,makeIssue:xg,EMPTY_PATH:h7,addIssueToContext:Re,ParseStatus:yn,INVALID:tt,DIRTY:Uu,OK:An,isAborted:P_,isDirty:_g,isValid:Xf,isAsync:Qf,get util(){return _t},get objectUtil(){return E_},ZodParsedType:Fe,getParsedType:sa,ZodType:at,datetimeRegex:f3,ZodString:oo,ZodNumber:Ta,ZodBigInt:Ea,ZodBoolean:Jf,ZodDate:$l,ZodSymbol:Sg,ZodUndefined:eh,ZodNull:th,ZodAny:Rc,ZodUnknown:yl,ZodNever:Ts,ZodVoid:kg,ZodArray:uo,ZodObject:lr,ZodUnion:rh,ZodDiscriminatedUnion:w0,ZodIntersection:nh,ZodTuple:Vo,ZodRecord:ih,ZodMap:Cg,ZodSet:Fl,ZodFunction:cc,ZodLazy:oh,ZodLiteral:sh,ZodEnum:Pa,ZodNativeEnum:ah,ZodPromise:Oc,ZodEffects:ho,ZodTransformer:ho,ZodOptional:Fo,ZodNullable:Aa,ZodDefault:lh,ZodCatch:uh,ZodNaN:Tg,BRAND:A7,ZodBranded:LS,ZodPipeline:Bh,ZodReadonly:ch,custom:p3,Schema:at,ZodSchema:at,late:R7,get ZodFirstPartyTypeKind(){return et},coerce:dU,any:z7,array:V7,bigint:$7,boolean:g3,date:F7,discriminatedUnion:K7,effect:eP,enum:tU,function:Q7,instanceof:O7,intersection:G7,lazy:J7,literal:eU,map:Y7,nan:I7,nativeEnum:rU,never:N7,null:M7,nullable:oU,number:v3,object:W7,oboolean:cU,onumber:uU,optional:iU,ostring:lU,pipeline:aU,preprocess:sU,promise:nU,record:q7,set:X7,strictObject:U7,string:m3,symbol:j7,transformer:eP,tuple:Z7,undefined:D7,union:H7,unknown:L7,void:B7,NEVER:fU,ZodIssueCode:ke,quotelessJson:d7,ZodError:ai});const y3=["green","teal","grey","blue","red","purple"];var Eg={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Eg.exports;(function(e,t){(function(){var r,n="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,m=2,v=4,x=1,g=2,S=1,b=2,y=4,_=8,C=16,T=32,I=64,$=128,z=256,N=512,V=30,ce="...",D=800,U=16,A=1,Q=2,ge=3,G=1/0,oe=9007199254740991,ee=17976931348623157e292,he=NaN,Y=4294967295,X=Y-1,xe=Y>>>1,me=[["ary",$],["bind",S],["bindKey",b],["curry",_],["curryRight",C],["flip",N],["partial",T],["partialRight",I],["rearg",z]],pe="[object Arguments]",Ae="[object Array]",He="[object AsyncFunction]",Te="[object Boolean]",Me="[object Date]",Qe="[object DOMException]",Ne="[object Error]",Ee="[object Function]",We="[object GeneratorFunction]",P="[object Map]",le="[object Number]",ue="[object Null]",L="[object Object]",E="[object Promise]",j="[object Proxy]",W="[object RegExp]",J="[object Set]",H="[object String]",te="[object Symbol]",q="[object Undefined]",ae="[object WeakMap]",we="[object WeakSet]",$e="[object ArrayBuffer]",Ie="[object DataView]",Nt="[object Float32Array]",or="[object Float64Array]",qt="[object Int8Array]",Nr="[object Int16Array]",xt="[object Int32Array]",Gr="[object Uint8Array]",pr="[object Uint8ClampedArray]",mr="[object Uint16Array]",gi="[object Uint32Array]",vo=/\b__p \+= '';/g,La=/\b(__p \+=) '' \+/g,Kl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gi=/&(?:amp|lt|gt|quot|#39);/g,go=/[&<>"']/g,In=RegExp(Gi.source),vy=RegExp(go.source),gy=/<%-([\s\S]+?)%>/g,yy=/<%([\s\S]+?)%>/g,lp=/<%=([\s\S]+?)%>/g,by=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zi=/^\w*$/,xy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rd=/[\\^$.*+?()[\]{}|]/g,_y=RegExp(rd.source),nd=/^\s+/,wy=/\s/,js=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Sy=/\{\n\/\* \[wrapped with (.+)\] \*/,ky=/,? & /,Cy=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ty=/[()=,{}\[\]\/\s]/,Ey=/\\(\\)?/g,Ds=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,up=/\w*$/,Py=/^[-+]0x[0-9a-f]+$/i,Ay=/^0b[01]+$/i,Ry=/^\[object .+?Constructor\]$/,Oy=/^0o[0-7]+$/i,Iy=/^(?:0|[1-9]\d*)$/,id=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gl=/($^)/,Zl=/['\n\r\u2028\u2029\\]/g,Ms="\\ud800-\\udfff",$y="\\u0300-\\u036f",ql="\\ufe20-\\ufe2f",cp="\\u20d0-\\u20ff",dp=$y+ql+cp,fp="\\u2700-\\u27bf",hp="a-z\\xdf-\\xf6\\xf8-\\xff",pp="\\xac\\xb1\\xd7\\xf7",Fy="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jy="\\u2000-\\u206f",Dy=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mp="A-Z\\xc0-\\xd6\\xd8-\\xde",vp="\\ufe0e\\ufe0f",gp=pp+Fy+jy+Dy,od="['ā€™]",My="["+Ms+"]",yp="["+gp+"]",Yl="["+dp+"]",Na="\\d+",sd="["+fp+"]",bp="["+hp+"]",xp="[^"+Ms+gp+Na+fp+hp+mp+"]",Xl="\\ud83c[\\udffb-\\udfff]",zy="(?:"+Yl+"|"+Xl+")",_p="[^"+Ms+"]",ad="(?:\\ud83c[\\udde6-\\uddff]){2}",Ql="[\\ud800-\\udbff][\\udc00-\\udfff]",zs="["+mp+"]",wp="\\u200d",Sp="(?:"+bp+"|"+xp+")",ld="(?:"+zs+"|"+xp+")",kp="(?:"+od+"(?:d|ll|m|re|s|t|ve))?",Cp="(?:"+od+"(?:D|LL|M|RE|S|T|VE))?",Tp=zy+"?",Ba="["+vp+"]?",ud="(?:"+wp+"(?:"+[_p,ad,Ql].join("|")+")"+Ba+Tp+")*",cd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ep=Ba+Tp+ud,Pp="(?:"+[sd,ad,Ql].join("|")+")"+Ep,fd="(?:"+[_p+Yl+"?",Yl,ad,Ql,My].join("|")+")",Ap=RegExp(od,"g"),Ho=RegExp(Yl,"g"),Ko=RegExp(Xl+"(?="+Xl+")|"+fd+Ep,"g"),Ly=RegExp([zs+"?"+bp+"+"+kp+"(?="+[yp,zs,"$"].join("|")+")",ld+"+"+Cp+"(?="+[yp,zs+Sp,"$"].join("|")+")",zs+"?"+Sp+"+"+kp,zs+"+"+Cp,dd,cd,Na,Pp].join("|"),"g"),Rp=RegExp("["+wp+Ms+dp+vp+"]"),Ny=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Op=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],By=-1,Bt={};Bt[Nt]=Bt[or]=Bt[qt]=Bt[Nr]=Bt[xt]=Bt[Gr]=Bt[pr]=Bt[mr]=Bt[gi]=!0,Bt[pe]=Bt[Ae]=Bt[$e]=Bt[Te]=Bt[Ie]=Bt[Me]=Bt[Ne]=Bt[Ee]=Bt[P]=Bt[le]=Bt[L]=Bt[W]=Bt[J]=Bt[H]=Bt[ae]=!1;var It={};It[pe]=It[Ae]=It[$e]=It[Ie]=It[Te]=It[Me]=It[Nt]=It[or]=It[qt]=It[Nr]=It[xt]=It[P]=It[le]=It[L]=It[W]=It[J]=It[H]=It[te]=It[Gr]=It[pr]=It[mr]=It[gi]=!0,It[Ne]=It[Ee]=It[ae]=!1;var Vy={ƀ:"A",Ɓ:"A",Ƃ:"A",ƃ:"A",Ƅ:"A",ƅ:"A",Ć :"a",Ć”:"a",Ć¢:"a",Ć£:"a",Ƥ:"a",Ć„:"a",Ƈ:"C",Ƨ:"c",Ɛ:"D",Ć°:"d",ƈ:"E",Ɖ:"E",Ɗ:"E",Ƌ:"E",ĆØ:"e",Ć©:"e",ĆŖ:"e",Ć«:"e",ƌ:"I",ƍ:"I",Ǝ:"I",Ə:"I",Ƭ:"i",Ć­:"i",Ć®:"i",ĆÆ:"i",Ƒ:"N",Ʊ:"n",ƒ:"O",Ɠ:"O",Ɣ:"O",ƕ:"O",Ɩ:"O",Ƙ:"O",Ć²:"o",Ć³:"o",Ć“:"o",Ƶ:"o",ƶ:"o",Ćø:"o",ƙ:"U",ƚ:"U",ƛ:"U",Ɯ:"U",Ć¹:"u",Ćŗ:"u",Ć»:"u",Ć¼:"u",Ɲ:"Y",Ć½:"y",Ćæ:"y",Ɔ:"Ae",Ʀ:"ae",ƞ:"Th",Ć¾:"th",Ɵ:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ä :"G",Ä¢:"G",ĝ:"g",ğ:"g",Ä”:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä„:"h",ħ:"h",ÄØ:"I",ÄŖ:"I",Ĭ:"I",Ä®:"I",Ä°:"I",Ä©:"i",Ä«:"i",Ä­:"i",ÄÆ:"i",ı:"i",Ä“:"J",ĵ:"j",Ķ:"K",Ä·:"k",Äø:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Äæ:"L",Ł:"L",Äŗ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Å :"S",ś:"s",ŝ:"s",ş:"s",Å”:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å„:"t",ŧ:"t",ÅØ:"U",ÅŖ:"U",Ŭ:"U",Å®:"U",Å°:"U",Ų:"U",Å©:"u",Å«:"u",Å­:"u",ÅÆ:"u",ű:"u",ų:"u",Å“:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Åø:"Y",Ź:"Z",Å»:"Z",Ž:"Z",Åŗ:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",Åæ:"s"},B={"&":"&","<":"<",">":">",'"':""","'":"'"},re={"&":"&","<":"<",">":">",""":'"',"'":"'"},fe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Le=parseFloat,mt=parseInt,Rt=typeof ri=="object"&&ri&&ri.Object===Object&&ri,Ht=typeof self=="object"&&self&&self.Object===Object&&self,Je=Rt||Ht||Function("return this")(),zt=t&&!t.nodeType&&t,$r=zt&&!0&&e&&!e.nodeType&&e,on=$r&&$r.exports===zt,Go=on&&Rt.process,sn=function(){try{var ie=$r&&$r.require&&$r.require("util").types;return ie||Go&&Go.binding&&Go.binding("util")}catch{}}(),Jl=sn&&sn.isArrayBuffer,hd=sn&&sn.isDate,_C=sn&&sn.isMap,wC=sn&&sn.isRegExp,SC=sn&&sn.isSet,kC=sn&&sn.isTypedArray;function Zn(ie,ve,de){switch(de.length){case 0:return ie.call(ve);case 1:return ie.call(ve,de[0]);case 2:return ie.call(ve,de[0],de[1]);case 3:return ie.call(ve,de[0],de[1],de[2])}return ie.apply(ve,de)}function bD(ie,ve,de,De){for(var rt=-1,kt=ie==null?0:ie.length;++rt-1}function Wy(ie,ve,de){for(var De=-1,rt=ie==null?0:ie.length;++De-1;);return de}function IC(ie,ve){for(var de=ie.length;de--&&eu(ve,ie[de],0)>-1;);return de}function PD(ie,ve){for(var de=ie.length,De=0;de--;)ie[de]===ve&&++De;return De}var AD=Gy(Vy),RD=Gy(B);function OD(ie){return"\\"+fe[ie]}function ID(ie,ve){return ie==null?r:ie[ve]}function tu(ie){return Rp.test(ie)}function $D(ie){return Ny.test(ie)}function FD(ie){for(var ve,de=[];!(ve=ie.next()).done;)de.push(ve.value);return de}function Xy(ie){var ve=-1,de=Array(ie.size);return ie.forEach(function(De,rt){de[++ve]=[rt,De]}),de}function $C(ie,ve){return function(de){return ie(ve(de))}}function Bs(ie,ve){for(var de=-1,De=ie.length,rt=0,kt=[];++de-1}function _M(a,c){var p=this.__data__,k=qp(p,a);return k<0?(++this.size,p.push([a,c])):p[k][1]=c,this}Zo.prototype.clear=gM,Zo.prototype.delete=yM,Zo.prototype.get=bM,Zo.prototype.has=xM,Zo.prototype.set=_M;function qo(a){var c=-1,p=a==null?0:a.length;for(this.clear();++c=c?a:c)),a}function _i(a,c,p,k,O,M){var K,Z=c&h,se=c&m,ye=c&v;if(p&&(K=O?p(a,k,O,M):p(a)),K!==r)return K;if(!sr(a))return a;var be=nt(a);if(be){if(K=Cz(a),!Z)return $n(a,K)}else{var _e=ln(a),Pe=_e==Ee||_e==We;if(Gs(a))return m2(a,Z);if(_e==L||_e==pe||Pe&&!O){if(K=se||Pe?{}:F2(a),!Z)return se?pz(a,MM(K,a)):hz(a,HC(K,a))}else{if(!It[_e])return O?a:{};K=Tz(a,_e,Z)}}M||(M=new Yi);var Be=M.get(a);if(Be)return Be;M.set(a,K),uT(a)?a.forEach(function(Ye){K.add(_i(Ye,c,p,Ye,a,M))}):aT(a)&&a.forEach(function(Ye,ut){K.set(ut,_i(Ye,c,p,ut,a,M))});var qe=ye?se?Sb:wb:se?jn:Br,st=be?r:qe(a);return yi(st||a,function(Ye,ut){st&&(ut=Ye,Ye=a[ut]),xd(K,ut,_i(Ye,c,p,ut,a,M))}),K}function zM(a){var c=Br(a);return function(p){return KC(p,a,c)}}function KC(a,c,p){var k=p.length;if(a==null)return!k;for(a=Vt(a);k--;){var O=p[k],M=c[O],K=a[O];if(K===r&&!(O in a)||!M(K))return!1}return!0}function GC(a,c,p){if(typeof a!="function")throw new bi(s);return Ed(function(){a.apply(r,p)},c)}function _d(a,c,p,k){var O=-1,M=Ip,K=!0,Z=a.length,se=[],ye=c.length;if(!Z)return se;p&&(c=tr(c,qn(p))),k?(M=Wy,K=!1):c.length>=i&&(M=pd,K=!1,c=new Ua(c));e:for(;++OO?0:O+p),k=k===r||k>O?O:ot(k),k<0&&(k+=O),k=p>k?0:dT(k);p0&&p(Z)?c>1?Zr(Z,c-1,p,k,O):Ns(O,Z):k||(O[O.length]=Z)}return O}var ib=_2(),YC=_2(!0);function yo(a,c){return a&&ib(a,c,Br)}function ob(a,c){return a&&YC(a,c,Br)}function Xp(a,c){return Ls(c,function(p){return es(a[p])})}function Ka(a,c){c=Hs(c,a);for(var p=0,k=c.length;a!=null&&pc}function BM(a,c){return a!=null&&$t.call(a,c)}function VM(a,c){return a!=null&&c in Vt(a)}function WM(a,c,p){return a>=an(c,p)&&a=120&&be.length>=120)?new Ua(K&&be):r}be=a[0];var _e=-1,Pe=Z[0];e:for(;++_e-1;)Z!==a&&Vp.call(Z,se,1),Vp.call(a,se,1);return a}function a2(a,c){for(var p=a?c.length:0,k=p-1;p--;){var O=c[p];if(p==k||O!==M){var M=O;Jo(O)?Vp.call(a,O,1):mb(a,O)}}return a}function fb(a,c){return a+Hp(BC()*(c-a+1))}function rz(a,c,p,k){for(var O=-1,M=jr(Up((c-a)/(p||1)),0),K=de(M);M--;)K[k?M:++O]=a,a+=p;return K}function hb(a,c){var p="";if(!a||c<1||c>oe)return p;do c%2&&(p+=a),c=Hp(c/2),c&&(a+=a);while(c);return p}function lt(a,c){return Rb(M2(a,c,Dn),a+"")}function nz(a){return UC(fu(a))}function iz(a,c){var p=fu(a);return lm(p,Ha(c,0,p.length))}function kd(a,c,p,k){if(!sr(a))return a;c=Hs(c,a);for(var O=-1,M=c.length,K=M-1,Z=a;Z!=null&&++OO?0:O+c),p=p>O?O:p,p<0&&(p+=O),O=c>p?0:p-c>>>0,c>>>=0;for(var M=de(O);++k>>1,K=a[M];K!==null&&!Xn(K)&&(p?K<=c:K=i){var ye=c?null:yz(a);if(ye)return Fp(ye);K=!1,O=pd,se=new Ua}else se=c?[]:Z;e:for(;++k=k?a:wi(a,c,p)}var p2=qD||function(a){return Je.clearTimeout(a)};function m2(a,c){if(c)return a.slice();var p=a.length,k=DC?DC(p):new a.constructor(p);return a.copy(k),k}function bb(a){var c=new a.constructor(a.byteLength);return new Np(c).set(new Np(a)),c}function uz(a,c){var p=c?bb(a.buffer):a.buffer;return new a.constructor(p,a.byteOffset,a.byteLength)}function cz(a){var c=new a.constructor(a.source,up.exec(a));return c.lastIndex=a.lastIndex,c}function dz(a){return bd?Vt(bd.call(a)):{}}function v2(a,c){var p=c?bb(a.buffer):a.buffer;return new a.constructor(p,a.byteOffset,a.length)}function g2(a,c){if(a!==c){var p=a!==r,k=a===null,O=a===a,M=Xn(a),K=c!==r,Z=c===null,se=c===c,ye=Xn(c);if(!Z&&!ye&&!M&&a>c||M&&K&&se&&!Z&&!ye||k&&K&&se||!p&&se||!O)return 1;if(!k&&!M&&!ye&&a=Z)return se;var ye=p[k];return se*(ye=="desc"?-1:1)}}return a.index-c.index}function y2(a,c,p,k){for(var O=-1,M=a.length,K=p.length,Z=-1,se=c.length,ye=jr(M-K,0),be=de(se+ye),_e=!k;++Z1?p[O-1]:r,K=O>2?p[2]:r;for(M=a.length>3&&typeof M=="function"?(O--,M):r,K&&_n(p[0],p[1],K)&&(M=O<3?r:M,O=1),c=Vt(c);++k-1?O[M?c[K]:K]:r}}function k2(a){return Qo(function(c){var p=c.length,k=p,O=xi.prototype.thru;for(a&&c.reverse();k--;){var M=c[k];if(typeof M!="function")throw new bi(s);if(O&&!K&&sm(M)=="wrapper")var K=new xi([],!0)}for(k=K?k:p;++k1&&yt.reverse(),be&&seZ))return!1;var ye=M.get(a),be=M.get(c);if(ye&&be)return ye==c&&be==a;var _e=-1,Pe=!0,Be=p&g?new Ua:r;for(M.set(a,c),M.set(c,a);++_e1?"& ":"")+c[k],c=c.join(p>2?", ":" "),a.replace(js,`{ +/* [wrapped with `+c+`] */ +`)}function Pz(a){return nt(a)||qa(a)||!!(LC&&a&&a[LC])}function Jo(a,c){var p=typeof a;return c=c??oe,!!c&&(p=="number"||p!="symbol"&&Iy.test(a))&&a>-1&&a%1==0&&a0){if(++c>=D)return arguments[0]}else c=0;return a.apply(r,arguments)}}function lm(a,c){var p=-1,k=a.length,O=k-1;for(c=c===r?k:c;++p1?a[c-1]:r;return p=typeof p=="function"?(a.pop(),p):r,q2(a,p)});function Y2(a){var c=F(a);return c.__chain__=!0,c}function LL(a,c){return c(a),a}function um(a,c){return c(a)}var NL=Qo(function(a){var c=a.length,p=c?a[0]:0,k=this.__wrapped__,O=function(M){return nb(M,a)};return c>1||this.__actions__.length||!(k instanceof vt)||!Jo(p)?this.thru(O):(k=k.slice(p,+p+(c?1:0)),k.__actions__.push({func:um,args:[O],thisArg:r}),new xi(k,this.__chain__).thru(function(M){return c&&!M.length&&M.push(r),M}))});function BL(){return Y2(this)}function VL(){return new xi(this.value(),this.__chain__)}function WL(){this.__values__===r&&(this.__values__=cT(this.value()));var a=this.__index__>=this.__values__.length,c=a?r:this.__values__[this.__index__++];return{done:a,value:c}}function UL(){return this}function HL(a){for(var c,p=this;p instanceof Zp;){var k=W2(p);k.__index__=0,k.__values__=r,c?O.__wrapped__=k:c=k;var O=k;p=p.__wrapped__}return O.__wrapped__=a,c}function KL(){var a=this.__wrapped__;if(a instanceof vt){var c=a;return this.__actions__.length&&(c=new vt(this)),c=c.reverse(),c.__actions__.push({func:um,args:[Ob],thisArg:r}),new xi(c,this.__chain__)}return this.thru(Ob)}function GL(){return f2(this.__wrapped__,this.__actions__)}var ZL=tm(function(a,c,p){$t.call(a,p)?++a[p]:Yo(a,p,1)});function qL(a,c,p){var k=nt(a)?CC:LM;return p&&_n(a,c,p)&&(c=r),k(a,Ze(c,3))}function YL(a,c){var p=nt(a)?Ls:qC;return p(a,Ze(c,3))}var XL=S2(U2),QL=S2(H2);function JL(a,c){return Zr(cm(a,c),1)}function eN(a,c){return Zr(cm(a,c),G)}function tN(a,c,p){return p=p===r?1:ot(p),Zr(cm(a,c),p)}function X2(a,c){var p=nt(a)?yi:Ws;return p(a,Ze(c,3))}function Q2(a,c){var p=nt(a)?xD:ZC;return p(a,Ze(c,3))}var rN=tm(function(a,c,p){$t.call(a,p)?a[p].push(c):Yo(a,p,[c])});function nN(a,c,p,k){a=Fn(a)?a:fu(a),p=p&&!k?ot(p):0;var O=a.length;return p<0&&(p=jr(O+p,0)),mm(a)?p<=O&&a.indexOf(c,p)>-1:!!O&&eu(a,c,p)>-1}var iN=lt(function(a,c,p){var k=-1,O=typeof c=="function",M=Fn(a)?de(a.length):[];return Ws(a,function(K){M[++k]=O?Zn(c,K,p):wd(K,c,p)}),M}),oN=tm(function(a,c,p){Yo(a,p,c)});function cm(a,c){var p=nt(a)?tr:t2;return p(a,Ze(c,3))}function sN(a,c,p,k){return a==null?[]:(nt(c)||(c=c==null?[]:[c]),p=k?r:p,nt(p)||(p=p==null?[]:[p]),o2(a,c,p))}var aN=tm(function(a,c,p){a[p?0:1].push(c)},function(){return[[],[]]});function lN(a,c,p){var k=nt(a)?Uy:AC,O=arguments.length<3;return k(a,Ze(c,4),p,O,Ws)}function uN(a,c,p){var k=nt(a)?_D:AC,O=arguments.length<3;return k(a,Ze(c,4),p,O,ZC)}function cN(a,c){var p=nt(a)?Ls:qC;return p(a,hm(Ze(c,3)))}function dN(a){var c=nt(a)?UC:nz;return c(a)}function fN(a,c,p){(p?_n(a,c,p):c===r)?c=1:c=ot(c);var k=nt(a)?FM:iz;return k(a,c)}function hN(a){var c=nt(a)?jM:sz;return c(a)}function pN(a){if(a==null)return 0;if(Fn(a))return mm(a)?ru(a):a.length;var c=ln(a);return c==P||c==J?a.size:ub(a).length}function mN(a,c,p){var k=nt(a)?Hy:az;return p&&_n(a,c,p)&&(c=r),k(a,Ze(c,3))}var vN=lt(function(a,c){if(a==null)return[];var p=c.length;return p>1&&_n(a,c[0],c[1])?c=[]:p>2&&_n(c[0],c[1],c[2])&&(c=[c[0]]),o2(a,Zr(c,1),[])}),dm=YD||function(){return Je.Date.now()};function gN(a,c){if(typeof c!="function")throw new bi(s);return a=ot(a),function(){if(--a<1)return c.apply(this,arguments)}}function J2(a,c,p){return c=p?r:c,c=a&&c==null?a.length:c,Xo(a,$,r,r,r,r,c)}function eT(a,c){var p;if(typeof c!="function")throw new bi(s);return a=ot(a),function(){return--a>0&&(p=c.apply(this,arguments)),a<=1&&(c=r),p}}var $b=lt(function(a,c,p){var k=S;if(p.length){var O=Bs(p,cu($b));k|=T}return Xo(a,k,c,p,O)}),tT=lt(function(a,c,p){var k=S|b;if(p.length){var O=Bs(p,cu(tT));k|=T}return Xo(c,k,a,p,O)});function rT(a,c,p){c=p?r:c;var k=Xo(a,_,r,r,r,r,r,c);return k.placeholder=rT.placeholder,k}function nT(a,c,p){c=p?r:c;var k=Xo(a,C,r,r,r,r,r,c);return k.placeholder=nT.placeholder,k}function iT(a,c,p){var k,O,M,K,Z,se,ye=0,be=!1,_e=!1,Pe=!0;if(typeof a!="function")throw new bi(s);c=ki(c)||0,sr(p)&&(be=!!p.leading,_e="maxWait"in p,M=_e?jr(ki(p.maxWait)||0,c):M,Pe="trailing"in p?!!p.trailing:Pe);function Be(wr){var Qi=k,rs=O;return k=O=r,ye=wr,K=a.apply(rs,Qi),K}function qe(wr){return ye=wr,Z=Ed(ut,c),be?Be(wr):K}function st(wr){var Qi=wr-se,rs=wr-ye,ST=c-Qi;return _e?an(ST,M-rs):ST}function Ye(wr){var Qi=wr-se,rs=wr-ye;return se===r||Qi>=c||Qi<0||_e&&rs>=M}function ut(){var wr=dm();if(Ye(wr))return yt(wr);Z=Ed(ut,st(wr))}function yt(wr){return Z=r,Pe&&k?Be(wr):(k=O=r,K)}function Qn(){Z!==r&&p2(Z),ye=0,k=se=O=Z=r}function wn(){return Z===r?K:yt(dm())}function Jn(){var wr=dm(),Qi=Ye(wr);if(k=arguments,O=this,se=wr,Qi){if(Z===r)return qe(se);if(_e)return p2(Z),Z=Ed(ut,c),Be(se)}return Z===r&&(Z=Ed(ut,c)),K}return Jn.cancel=Qn,Jn.flush=wn,Jn}var yN=lt(function(a,c){return GC(a,1,c)}),bN=lt(function(a,c,p){return GC(a,ki(c)||0,p)});function xN(a){return Xo(a,N)}function fm(a,c){if(typeof a!="function"||c!=null&&typeof c!="function")throw new bi(s);var p=function(){var k=arguments,O=c?c.apply(this,k):k[0],M=p.cache;if(M.has(O))return M.get(O);var K=a.apply(this,k);return p.cache=M.set(O,K)||M,K};return p.cache=new(fm.Cache||qo),p}fm.Cache=qo;function hm(a){if(typeof a!="function")throw new bi(s);return function(){var c=arguments;switch(c.length){case 0:return!a.call(this);case 1:return!a.call(this,c[0]);case 2:return!a.call(this,c[0],c[1]);case 3:return!a.call(this,c[0],c[1],c[2])}return!a.apply(this,c)}}function _N(a){return eT(2,a)}var wN=lz(function(a,c){c=c.length==1&&nt(c[0])?tr(c[0],qn(Ze())):tr(Zr(c,1),qn(Ze()));var p=c.length;return lt(function(k){for(var O=-1,M=an(k.length,p);++O=c}),qa=QC(function(){return arguments}())?QC:function(a){return vr(a)&&$t.call(a,"callee")&&!zC.call(a,"callee")},nt=de.isArray,MN=Jl?qn(Jl):HM;function Fn(a){return a!=null&&pm(a.length)&&!es(a)}function _r(a){return vr(a)&&Fn(a)}function zN(a){return a===!0||a===!1||vr(a)&&xn(a)==Te}var Gs=QD||Hb,LN=hd?qn(hd):KM;function NN(a){return vr(a)&&a.nodeType===1&&!Pd(a)}function BN(a){if(a==null)return!0;if(Fn(a)&&(nt(a)||typeof a=="string"||typeof a.splice=="function"||Gs(a)||du(a)||qa(a)))return!a.length;var c=ln(a);if(c==P||c==J)return!a.size;if(Td(a))return!ub(a).length;for(var p in a)if($t.call(a,p))return!1;return!0}function VN(a,c){return Sd(a,c)}function WN(a,c,p){p=typeof p=="function"?p:r;var k=p?p(a,c):r;return k===r?Sd(a,c,r,p):!!k}function jb(a){if(!vr(a))return!1;var c=xn(a);return c==Ne||c==Qe||typeof a.message=="string"&&typeof a.name=="string"&&!Pd(a)}function UN(a){return typeof a=="number"&&NC(a)}function es(a){if(!sr(a))return!1;var c=xn(a);return c==Ee||c==We||c==He||c==j}function sT(a){return typeof a=="number"&&a==ot(a)}function pm(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=oe}function sr(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}function vr(a){return a!=null&&typeof a=="object"}var aT=_C?qn(_C):ZM;function HN(a,c){return a===c||lb(a,c,Cb(c))}function KN(a,c,p){return p=typeof p=="function"?p:r,lb(a,c,Cb(c),p)}function GN(a){return lT(a)&&a!=+a}function ZN(a){if(Oz(a))throw new rt(o);return JC(a)}function qN(a){return a===null}function YN(a){return a==null}function lT(a){return typeof a=="number"||vr(a)&&xn(a)==le}function Pd(a){if(!vr(a)||xn(a)!=L)return!1;var c=Bp(a);if(c===null)return!0;var p=$t.call(c,"constructor")&&c.constructor;return typeof p=="function"&&p instanceof p&&Mp.call(p)==KD}var Db=wC?qn(wC):qM;function XN(a){return sT(a)&&a>=-oe&&a<=oe}var uT=SC?qn(SC):YM;function mm(a){return typeof a=="string"||!nt(a)&&vr(a)&&xn(a)==H}function Xn(a){return typeof a=="symbol"||vr(a)&&xn(a)==te}var du=kC?qn(kC):XM;function QN(a){return a===r}function JN(a){return vr(a)&&ln(a)==ae}function e6(a){return vr(a)&&xn(a)==we}var t6=om(cb),r6=om(function(a,c){return a<=c});function cT(a){if(!a)return[];if(Fn(a))return mm(a)?qi(a):$n(a);if(md&&a[md])return FD(a[md]());var c=ln(a),p=c==P?Xy:c==J?Fp:fu;return p(a)}function ts(a){if(!a)return a===0?a:0;if(a=ki(a),a===G||a===-G){var c=a<0?-1:1;return c*ee}return a===a?a:0}function ot(a){var c=ts(a),p=c%1;return c===c?p?c-p:c:0}function dT(a){return a?Ha(ot(a),0,Y):0}function ki(a){if(typeof a=="number")return a;if(Xn(a))return he;if(sr(a)){var c=typeof a.valueOf=="function"?a.valueOf():a;a=sr(c)?c+"":c}if(typeof a!="string")return a===0?a:+a;a=RC(a);var p=Ay.test(a);return p||Oy.test(a)?mt(a.slice(2),p?2:8):Py.test(a)?he:+a}function fT(a){return bo(a,jn(a))}function n6(a){return a?Ha(ot(a),-oe,oe):a===0?a:0}function Ot(a){return a==null?"":Yn(a)}var i6=lu(function(a,c){if(Td(c)||Fn(c)){bo(c,Br(c),a);return}for(var p in c)$t.call(c,p)&&xd(a,p,c[p])}),hT=lu(function(a,c){bo(c,jn(c),a)}),vm=lu(function(a,c,p,k){bo(c,jn(c),a,k)}),o6=lu(function(a,c,p,k){bo(c,Br(c),a,k)}),s6=Qo(nb);function a6(a,c){var p=au(a);return c==null?p:HC(p,c)}var l6=lt(function(a,c){a=Vt(a);var p=-1,k=c.length,O=k>2?c[2]:r;for(O&&_n(c[0],c[1],O)&&(k=1);++p1),M}),bo(a,Sb(a),p),k&&(p=_i(p,h|m|v,bz));for(var O=c.length;O--;)mb(p,c[O]);return p});function T6(a,c){return mT(a,hm(Ze(c)))}var E6=Qo(function(a,c){return a==null?{}:ez(a,c)});function mT(a,c){if(a==null)return{};var p=tr(Sb(a),function(k){return[k]});return c=Ze(c),s2(a,p,function(k,O){return c(k,O[0])})}function P6(a,c,p){c=Hs(c,a);var k=-1,O=c.length;for(O||(O=1,a=r);++kc){var k=a;a=c,c=k}if(p||a%1||c%1){var O=BC();return an(a+O*(c-a+Le("1e-"+((O+"").length-1))),c)}return fb(a,c)}var L6=uu(function(a,c,p){return c=c.toLowerCase(),a+(p?yT(c):c)});function yT(a){return Lb(Ot(a).toLowerCase())}function bT(a){return a=Ot(a),a&&a.replace(id,AD).replace(Ho,"")}function N6(a,c,p){a=Ot(a),c=Yn(c);var k=a.length;p=p===r?k:Ha(ot(p),0,k);var O=p;return p-=c.length,p>=0&&a.slice(p,O)==c}function B6(a){return a=Ot(a),a&&vy.test(a)?a.replace(go,RD):a}function V6(a){return a=Ot(a),a&&_y.test(a)?a.replace(rd,"\\$&"):a}var W6=uu(function(a,c,p){return a+(p?"-":"")+c.toLowerCase()}),U6=uu(function(a,c,p){return a+(p?" ":"")+c.toLowerCase()}),H6=w2("toLowerCase");function K6(a,c,p){a=Ot(a),c=ot(c);var k=c?ru(a):0;if(!c||k>=c)return a;var O=(c-k)/2;return im(Hp(O),p)+a+im(Up(O),p)}function G6(a,c,p){a=Ot(a),c=ot(c);var k=c?ru(a):0;return c&&k>>0,p?(a=Ot(a),a&&(typeof c=="string"||c!=null&&!Db(c))&&(c=Yn(c),!c&&tu(a))?Ks(qi(a),0,p):a.split(c,p)):[]}var eB=uu(function(a,c,p){return a+(p?" ":"")+Lb(c)});function tB(a,c,p){return a=Ot(a),p=p==null?0:Ha(ot(p),0,a.length),c=Yn(c),a.slice(p,p+c.length)==c}function rB(a,c,p){var k=F.templateSettings;p&&_n(a,c,p)&&(c=r),a=Ot(a),c=vm({},c,k,A2);var O=vm({},c.imports,k.imports,A2),M=Br(O),K=Yy(O,M),Z,se,ye=0,be=c.interpolate||Gl,_e="__p += '",Pe=Qy((c.escape||Gl).source+"|"+be.source+"|"+(be===lp?Ds:Gl).source+"|"+(c.evaluate||Gl).source+"|$","g"),Be="//# sourceURL="+($t.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++By+"]")+` +`;a.replace(Pe,function(Ye,ut,yt,Qn,wn,Jn){return yt||(yt=Qn),_e+=a.slice(ye,Jn).replace(Zl,OD),ut&&(Z=!0,_e+=`' + +__e(`+ut+`) + +'`),wn&&(se=!0,_e+=`'; +`+wn+`; +__p += '`),yt&&(_e+=`' + +((__t = (`+yt+`)) == null ? '' : __t) + +'`),ye=Jn+Ye.length,Ye}),_e+=`'; +`;var qe=$t.call(c,"variable")&&c.variable;if(!qe)_e=`with (obj) { +`+_e+` +} +`;else if(Ty.test(qe))throw new rt(l);_e=(se?_e.replace(vo,""):_e).replace(La,"$1").replace(Kl,"$1;"),_e="function("+(qe||"obj")+`) { +`+(qe?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(se?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+_e+`return __p +}`;var st=_T(function(){return kt(M,Be+"return "+_e).apply(r,K)});if(st.source=_e,jb(st))throw st;return st}function nB(a){return Ot(a).toLowerCase()}function iB(a){return Ot(a).toUpperCase()}function oB(a,c,p){if(a=Ot(a),a&&(p||c===r))return RC(a);if(!a||!(c=Yn(c)))return a;var k=qi(a),O=qi(c),M=OC(k,O),K=IC(k,O)+1;return Ks(k,M,K).join("")}function sB(a,c,p){if(a=Ot(a),a&&(p||c===r))return a.slice(0,FC(a)+1);if(!a||!(c=Yn(c)))return a;var k=qi(a),O=IC(k,qi(c))+1;return Ks(k,0,O).join("")}function aB(a,c,p){if(a=Ot(a),a&&(p||c===r))return a.replace(nd,"");if(!a||!(c=Yn(c)))return a;var k=qi(a),O=OC(k,qi(c));return Ks(k,O).join("")}function lB(a,c){var p=V,k=ce;if(sr(c)){var O="separator"in c?c.separator:O;p="length"in c?ot(c.length):p,k="omission"in c?Yn(c.omission):k}a=Ot(a);var M=a.length;if(tu(a)){var K=qi(a);M=K.length}if(p>=M)return a;var Z=p-ru(k);if(Z<1)return k;var se=K?Ks(K,0,Z).join(""):a.slice(0,Z);if(O===r)return se+k;if(K&&(Z+=se.length-Z),Db(O)){if(a.slice(Z).search(O)){var ye,be=se;for(O.global||(O=Qy(O.source,Ot(up.exec(O))+"g")),O.lastIndex=0;ye=O.exec(be);)var _e=ye.index;se=se.slice(0,_e===r?Z:_e)}}else if(a.indexOf(Yn(O),Z)!=Z){var Pe=se.lastIndexOf(O);Pe>-1&&(se=se.slice(0,Pe))}return se+k}function uB(a){return a=Ot(a),a&&In.test(a)?a.replace(Gi,zD):a}var cB=uu(function(a,c,p){return a+(p?" ":"")+c.toUpperCase()}),Lb=w2("toUpperCase");function xT(a,c,p){return a=Ot(a),c=p?r:c,c===r?$D(a)?BD(a):kD(a):a.match(c)||[]}var _T=lt(function(a,c){try{return Zn(a,r,c)}catch(p){return jb(p)?p:new rt(p)}}),dB=Qo(function(a,c){return yi(c,function(p){p=xo(p),Yo(a,p,$b(a[p],a))}),a});function fB(a){var c=a==null?0:a.length,p=Ze();return a=c?tr(a,function(k){if(typeof k[1]!="function")throw new bi(s);return[p(k[0]),k[1]]}):[],lt(function(k){for(var O=-1;++Ooe)return[];var p=Y,k=an(a,Y);c=Ze(c),a-=Y;for(var O=qy(k,c);++p0||c<0)?new vt(p):(a<0?p=p.takeRight(-a):a&&(p=p.drop(a)),c!==r&&(c=ot(c),p=c<0?p.dropRight(-c):p.take(c-a)),p)},vt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},vt.prototype.toArray=function(){return this.take(Y)},yo(vt.prototype,function(a,c){var p=/^(?:filter|find|map|reject)|While$/.test(c),k=/^(?:head|last)$/.test(c),O=F[k?"take"+(c=="last"?"Right":""):c],M=k||/^find/.test(c);O&&(F.prototype[c]=function(){var K=this.__wrapped__,Z=k?[1]:arguments,se=K instanceof vt,ye=Z[0],be=se||nt(K),_e=function(ut){var yt=O.apply(F,Ns([ut],Z));return k&&Pe?yt[0]:yt};be&&p&&typeof ye=="function"&&ye.length!=1&&(se=be=!1);var Pe=this.__chain__,Be=!!this.__actions__.length,qe=M&&!Pe,st=se&&!Be;if(!M&&be){K=st?K:new vt(this);var Ye=a.apply(K,Z);return Ye.__actions__.push({func:um,args:[_e],thisArg:r}),new xi(Ye,Pe)}return qe&&st?a.apply(this,Z):(Ye=this.thru(_e),qe?k?Ye.value()[0]:Ye.value():Ye)})}),yi(["pop","push","shift","sort","splice","unshift"],function(a){var c=jp[a],p=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",k=/^(?:pop|shift)$/.test(a);F.prototype[a]=function(){var O=arguments;if(k&&!this.__chain__){var M=this.value();return c.apply(nt(M)?M:[],O)}return this[p](function(K){return c.apply(nt(K)?K:[],O)})}}),yo(vt.prototype,function(a,c){var p=F[c];if(p){var k=p.name+"";$t.call(su,k)||(su[k]=[]),su[k].push({name:c,func:p})}}),su[rm(r,b).name]=[{name:"wrapper",func:r}],vt.prototype.clone=uM,vt.prototype.reverse=cM,vt.prototype.value=dM,F.prototype.at=NL,F.prototype.chain=BL,F.prototype.commit=VL,F.prototype.next=WL,F.prototype.plant=HL,F.prototype.reverse=KL,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=GL,F.prototype.first=F.prototype.head,md&&(F.prototype[md]=UL),F},nu=VD();$r?(($r.exports=nu)._=nu,zt._=nu):Je._=nu}).call(ri)})(Eg,Eg.exports);var Ur=Eg.exports;const hU=Bc(Ur),Kc=Ce.enum(y3),b3=Ce.object({rowCount:Ce.literal(4),columnCount:Ce.literal(4)}).or(Ce.object({rowCount:Ce.literal(3),columnCount:Ce.literal(3)})).or(Ce.object({rowCount:Ce.literal(4),columnCount:Ce.literal(3)})).optional().default({rowCount:4,columnCount:4}),x3=Ce.object({type:Ce.literal("duplex"),parameters:Ce.object({name:Ce.string(),recipientType:Ce.string(),recipientNumber:Ce.string(),buttonColor:Kc})}),_3=Ce.object({type:Ce.literal("simplex"),parameters:Ce.object({name:Ce.string(),recipientType:Ce.string(),recipientNumber:Ce.string(),buttonColor:Kc})}),w3=Ce.object({type:Ce.literal("SDSStatus"),parameters:Ce.object({name:Ce.string().array().or(Ce.string().transform(Ur.castArray)),recipientType:Ce.literal("msisdn").or(Ce.literal("issi")),recipientNumber:Ce.string(),buttonColor:Kc,statusValue:Ce.number().int()})}),S3=Ce.object({type:Ce.literal("raw"),parameters:Ce.object({name:Ce.string().array().or(Ce.string().transform(Ur.castArray)),buttonColor:Kc,value:Ce.string().array()})}),k3=Ce.object({type:Ce.literal("changeTalkGroup"),parameters:Ce.object({name:Ce.string().array().or(Ce.string().transform(Ur.castArray)),buttonColor:Kc,value:Ce.string()})}),C3=Ce.object({type:Ce.literal("phoneCall"),parameters:Ce.object({name:Ce.string(),recipientNumber:Ce.string(),buttonColor:Kc})}),T3=Ce.null(),pU=Ce.object({type:Ce.literal("folder"),parameters:Ce.object({name:Ce.string().array().or(Ce.string().transform(Ur.castArray)),content:Ce.object({gridConfig:b3,elements:Ce.array(Ce.union([T3,x3,_3,w3,S3,k3,C3]))}).transform(e=>{const t=e.gridConfig,r=(()=>{if(t===void 0)return[];const n=t.columnCount*t.rowCount;return e.elements.length{const l=e.elements.at(s);return l===void 0?null:l}):e.elements})();return{gridConfig:t,elements:r}})})}),mU=Ce.object({type:Ce.literal("intercom"),parameters:Ce.object({side:Ce.literal("left").or(Ce.literal("right"))})}),vU=Ce.object({type:Ce.literal("audio")}),gU=Ce.union([T3,x3,_3,w3,S3,k3,C3,pU,mU,vU]),yU=Ce.array(gU),bU=Ce.object({name:Ce.string(),simplex:Ce.object({recipientType:Ce.string(),recipientNumber:Ce.string()}).nullable(),duplex:Ce.object({recipientType:Ce.string(),recipientNumber:Ce.string()}).nullable(),status:Ce.object({recipientType:Ce.string(),recipientNumber:Ce.string(),statusValue:Ce.number().int()}).nullable(),raw:Ce.object({value:Ce.string().array(),fieldName:Ce.string()}).nullable(),phone:Ce.object({recipientNumber:Ce.string()}).nullable()}),R_=Ce.object({general:Ce.object({radioOem:Ce.enum(["motorola","airbus","sepura"]).optional().default("sepura")}),favourites:Ce.object({gridConfig:b3,elements:yU}).transform(e=>{const t=e.gridConfig,r=(()=>{if(t===void 0)return[];const n=t.columnCount*t.rowCount,i=e.elements.lengthn;return!i&&!o?e.elements:Array.from({length:n}).map((s,l)=>{const u=e.elements.at(l);return u===void 0?null:u})})();return{gridConfig:t,elements:r}}),contacts:Ce.array(bU)}),xU=({children:e})=>{const t=t7({resolver:c7(R_),defaultValues:R_.parse({favourites:{gridConfig:{columnCount:4,rowCount:4},elements:[]},general:{},contacts:[]})});return w.jsx(NW,{...t,children:w.jsx("form",{children:e})})},mu={color:"rgba(255,255,255,0.1)",outlineColor:"rgba(0,0,0,0)"},so=e=>({blue:{button:{color:"#234E8E",outlineColor:"#70757A"},chip:mu},grey:{button:{color:"#3B4042",outlineColor:"#70757A"},chip:mu},red:{button:{color:"#7C3C3C",outlineColor:"#70757A"},chip:mu},teal:{button:{color:"#1C6A61",outlineColor:"#70757A"},chip:mu},green:{button:{color:"#496230",outlineColor:"#70757A"},chip:mu},purple:{button:{color:"#512E66",outlineColor:"#70757A"},chip:mu}})[e],E3=e=>({text:e.filter(t=>t!=="").map(t=>({value:t,styleDay:{fontStyle:{bold:!1,italics:!1},fontColor:"#FFFFFF"},styleNight:{fontStyle:{bold:!1,italics:!1},fontColor:"#FFFFFF"}})),chip:null,styleDay:{color:"#000000",outlineColor:"#80868b"},styleNight:{color:"#000000",outlineColor:"#80868b"}}),O_=(e,t,r,n)=>{const{button:i,chip:o}=so(t);return{type:"rakel",value:{actionList:(()=>{switch(e){case"phoneCall":return[{type:"makeCall",value:r},{type:"navigate",value:"5"}];case"simplex":return[{type:"raw",value:"AT+CTSDC=0,0,0,0,1,0,0\r"},{type:"raw",value:`ATD${r}\r`},{type:"navigate",value:"5"}];case"duplex":return[{type:"raw",value:"AT+CTSDC=0,0,0,0\r"},{type:"raw",value:`ATD${r}\r`},{type:"navigate",value:"5"}]}})(),presentation:{text:[{value:n,styleDay:{fontStyle:{bold:!0,italics:!1},fontColor:"#FFFFFF"},styleNight:{fontStyle:{bold:!0,italics:!1},fontColor:"#FFFFFF"}}],chip:{icon:e==="phoneCall"?"Phone":"Radio",text:{value:e==="phoneCall"?"Phone":e==="duplex"?"Duplex":"Simplex",styleDay:{fontColor:"white",fontStyle:{bold:!0,italics:!1}},styleNight:{fontColor:"white",fontStyle:{bold:!0,italics:!0}}},styleNight:o,styleDay:o},styleDay:i,styleNight:i}}}},P3=(e,t,r,n)=>{switch(e.type){case"duplex":case"simplex":case"phoneCall":return O_(e.type,e.parameters.buttonColor,e.parameters.recipientNumber,e.parameters.name);case"intercom":return{type:"intercom",value:{side:e.parameters.side}};case"audio":return{type:"audio"};case"raw":{const{button:i}=so(e.parameters.buttonColor);return{type:"rakel",value:{actionList:e.parameters.value.map(o=>({type:"raw",value:o})),presentation:{text:e.parameters.name.filter(o=>o!=="").map(o=>({value:o,styleDay:{fontStyle:{bold:!1,italics:!1},fontColor:"#FFFFFF"},styleNight:{fontStyle:{bold:!1,italics:!1},fontColor:"#FFFFFF"}})),chip:null,styleDay:i,styleNight:i}}}}case"folder":{const i=[];let o=0;for(let s=0;ss!=="").map(s=>({value:s,styleDay:{fontStyle:{bold:!0,italics:!1},fontColor:"#FFFFFF"},styleNight:{fontStyle:{bold:!0,italics:!1},fontColor:"#FFFFFF"}})),chip:null,styleDay:o,styleNight:o}}}}case"SDSStatus":{const{buttonColor:i,recipientNumber:o,statusValue:s,recipientType:l,name:u}=e.parameters,{button:d}=so(i),f=`AT+CTSDS=13,${l==="issi"?0:4},0,0,0\r`,h=`AT+CMGS=${o},16\r${s.toString(16)}`;return{type:"rakel",value:{actionList:[{type:"raw",value:f},{type:"raw",value:h}],presentation:{text:u.filter(m=>m!=="").map(m=>({value:m,styleDay:{fontStyle:{bold:!0,italics:!1},fontColor:"#FFFFFF"},styleNight:{fontStyle:{bold:!0,italics:!1},fontColor:"#FFFFFF"}})),chip:null,styleDay:d,styleNight:d}}}}}},_U=e=>{const t=e.favourites.gridConfig.columnCount,r=e.favourites.gridConfig.rowCount,n={initial:{columnCount:t,rowCount:r}};let i=[],o=0;for(let s=0;se.map((t,r)=>{let n=0;const i=()=>{const y=Ur.floor(n/Mm)+1,_=n%Mm+1;return n++,{x:_,y}},{simplex:o,duplex:s,raw:l,phone:u,status:d}=t,f=o!==null,h=s!==null,m=l!==null,v=u!==null,x=d!==null,g=[];if(f){const{y,x:_}=i(),C=O_("simplex","grey",o.recipientNumber,"");if(C.type!=="rakel")throw Error();g.push({position:{initial:{row:y,column:_}},content:{type:"rakel",value:C.value}})}if(h){const{y,x:_}=i(),C=O_("duplex","grey",s.recipientNumber,"");if(C.type!=="rakel")throw Error();g.push({position:{initial:{row:y,column:_}},content:{type:"rakel",value:C.value}})}if(m){const{y,x:_}=i(),{button:C}=so("grey");g.push({content:{type:"rakel",value:{actionList:l.value.map(T=>({type:"raw",value:T})),presentation:{text:[{value:l.fieldName,styleDay:{fontStyle:{bold:!1,italics:!1},fontColor:"#FFFFFF"},styleNight:{fontStyle:{bold:!1,italics:!1},fontColor:"#FFFFFF"}}],chip:null,styleDay:C,styleNight:C}}},position:{initial:{row:y,column:_}}})}if(v){const{y,x:_}=i(),{button:C,chip:T}=so("grey");g.push({position:{initial:{row:y,column:_}},content:{type:"phone",value:{actionList:[],presentation:{text:[{value:"",styleDay:{fontStyle:{bold:!0,italics:!1},fontColor:"#FFFFFF"},styleNight:{fontStyle:{bold:!0,italics:!1},fontColor:"#FFFFFF"}}],chip:{icon:"Phone",text:{value:"Phone",styleDay:{fontColor:"white",fontStyle:{bold:!0,italics:!1}},styleNight:{fontColor:"white",fontStyle:{bold:!0,italics:!0}}},styleNight:T,styleDay:T},styleDay:C,styleNight:C}}}})}if(x){const{y,x:_}=i(),{recipientNumber:C,recipientType:T,statusValue:I}=d,{button:$}=so("grey"),z=`AT+CTSDS=13,${T==="issi"?0:4},0,0,0\r`,N=`AT+CMGS=${C},16\r${I.toString(16)}`;g.push({position:{initial:{row:y,column:_}},content:{type:"rakel",value:{actionList:[{type:"raw",value:z},{type:"raw",value:N}],presentation:{text:[{value:"Status",styleDay:{fontStyle:{bold:!0,italics:!1},fontColor:"#FFFFFF"},styleNight:{fontStyle:{bold:!0,italics:!1},fontColor:"#FFFFFF"}}],chip:null,styleDay:$,styleNight:$}}}})}const S=Ur.floor(r/Pg)+1,b=r%Pg+1;return{content:{type:"folder",value:{presentation:E3([t.name]),elements:{content:g,size:{initial:{rowCount:Mm,columnCount:Mm}}}}},position:{initial:{row:S,column:b}}}}),SU=e=>({size:{initial:{columnCount:Pg,rowCount:Ur.ceil(e.contacts.length/Pg)}},content:wU(e.contacts)}),kU=e=>Ur.upperCase(e.general.radioOem),zm="24000010",CU=e=>{const t=new Map([]);return e.forEach(({name:r,duplex:n,phone:i,simplex:o})=>{const s=o!==null,l=n!==null,u=i!==null,d=f=>{const h=t.get(f)||[],m=Ur.uniq([...h,r]);t.set(f,m)};s&&(d(o.recipientNumber),o.recipientNumber.startsWith(zm)||d(`${zm}${o.recipientNumber}`)),l&&(d(n.recipientNumber),n.recipientNumber.startsWith(zm)||d(`${zm}${n.recipientNumber}`)),u&&d(i.recipientNumber)}),Object.fromEntries(t)},TU=e=>({SEPURA:{profile:"RakelV1",parameters:{unblockedCommandsWriting:'["ATH","ATA"]',noRetryCommands:'["ATH","ATD","ATA"]',unblockedCommandsReading:'["ATH","ATA"]',readTimeoutMs:"10000",blockMap:'[{"message":"+CTICN","timeout":"20000", "onTimeout": ["ATH\\r"],"cancelTimeout": ["ATH", "ATA", "+CTCR"] },{"message":"+CTSDSR","timeout":"1000" }]'},initSequence:["AT+CTSP=1,0,0\r","ATE1\r","AT+CTSP=1,3,138\r","AT+CTSP=2,3,130\r","AT+CTSP=2,2,20\r"],initSequenceTriggers:[{command:"AT\r",assertContains:["OK"],repeatDelayMs:1e3}],portSettings:{baudRate:38400,dataBits:8,stopBits:1,parity:0}},MOTOROLA:{profile:"RakelV1",parameters:{unblockedCommandsWriting:'["ATH","ATA"]',noRetryCommands:'["ATH","ATD","ATA"]',unblockedCommandsReading:'["ATH","ATA"]',readTimeoutMs:"10000",blockMap:'[{"message":"+CTICN","timeout":"20000", "onTimeout": ["ATH\\r"],"cancelTimeout": ["ATH", "ATA", "+CTCR"] },{"message":"+CTSDSR","timeout":"1000" }]'},initSequence:["AT+CTSP=1,0,0\r","ATE1\r","AT+CTSP=1,1,11\r","AT+CTSP=1,3,138\r","AT+CTSP=2,2,20\r"],initSequenceTriggers:[{command:"AT\r",assertContains:["OK"],repeatDelayMs:1e3}],portSettings:{baudRate:9600,dataBits:8,stopBits:1,parity:0}},AIRBUS:{profile:"RakelV1Airbus",parameters:{unblockedCommandsWriting:'["ATH","ATA"]',noRetryCommands:'["ATH","ATD","ATA"]',unblockedCommandsReading:'["ATH","ATA"]',readTimeoutMs:"10000",blockMap:'[{"message":"+CTICN","timeout":"20000", "onTimeout": ["ATH\\r"],"cancelTimeout": ["ATH", "ATA", "+CTCR"] },{"message":"+CTSDSR","timeout":"1000" }]'},initSequence:["AT+CTSP=1,2\r","AT+CMGF=7\r","AT+CMEE=1\r"],initSequenceTriggers:[{command:"AT\r",assertContains:["OK"],repeatDelayMs:1e3}],portSettings:{baudRate:9600,dataBits:8,stopBits:1,parity:0}}})[e],EU=e=>{const t=_U(e),r=SU(e),n=kU(e);return{settingJson:{contactNames:CU(e.contacts),favouriteList:t,radioManufacturer:n,contactList:r},dispatchComSettings:TU(n)}};function Lm(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var A3={exports:{}};/*! + +JSZip v3.10.1 - A JavaScript class for generating and reading zip files + + +(c) 2009-2016 Stuart Knightley +Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. + +JSZip uses the library pako released under the MIT license : +https://github.com/nodeca/pako/blob/main/LICENSE +*/(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function s(d,f){if(!i[d]){if(!n[d]){var h=typeof Lm=="function"&&Lm;if(!f&&h)return h(d,!0);if(l)return l(d,!0);var m=new Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m}var v=i[d]={exports:{}};n[d][0].call(v.exports,function(x){var g=n[d][1][x];return s(g||x)},v,v.exports,r,n,i,o)}return i[d].exports}for(var l=typeof Lm=="function"&&Lm,u=0;u>2,v=(3&d)<<4|f>>4,x=1<_?(15&f)<<2|h>>6:64,g=2<_?63&h:64,S.push(l.charAt(m)+l.charAt(v)+l.charAt(x)+l.charAt(g));return S.join("")},i.decode=function(u){var d,f,h,m,v,x,g=0,S=0,b="data:";if(u.substr(0,b.length)===b)throw new Error("Invalid base64 input, it looks like a data url.");var y,_=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===l.charAt(64)&&_--,u.charAt(u.length-2)===l.charAt(64)&&_--,_%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=s.uint8array?new Uint8Array(0|_):new Array(0|_);g>4,f=(15&m)<<4|(v=l.indexOf(u.charAt(g++)))>>2,h=(3&v)<<6|(x=l.indexOf(u.charAt(g++))),y[S++]=d,v!==64&&(y[S++]=f),x!==64&&(y[S++]=h);return y}},{"./support":30,"./utils":32}],2:[function(r,n,i){var o=r("./external"),s=r("./stream/DataWorker"),l=r("./stream/Crc32Probe"),u=r("./stream/DataLengthProbe");function d(f,h,m,v,x){this.compressedSize=f,this.uncompressedSize=h,this.crc32=m,this.compression=v,this.compressedContent=x}d.prototype={getContentWorker:function(){var f=new s(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),h=this;return f.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),f},getCompressedWorker:function(){return new s(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},d.createWorkerFrom=function(f,h,m){return f.pipe(new l).pipe(new u("uncompressedSize")).pipe(h.compressWorker(m)).pipe(new u("compressedSize")).withStreamInfo("compression",h)},n.exports=d},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,n,i){var o=r("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,n,i){var o=r("./utils"),s=function(){for(var l,u=[],d=0;d<256;d++){l=d;for(var f=0;f<8;f++)l=1&l?3988292384^l>>>1:l>>>1;u[d]=l}return u}();n.exports=function(l,u){return l!==void 0&&l.length?o.getTypeOf(l)!=="string"?function(d,f,h,m){var v=s,x=m+h;d^=-1;for(var g=m;g>>8^v[255&(d^f[g])];return-1^d}(0|u,l,l.length,0):function(d,f,h,m){var v=s,x=m+h;d^=-1;for(var g=m;g>>8^v[255&(d^f.charCodeAt(g))];return-1^d}(0|u,l,l.length,0):0}},{"./utils":32}],5:[function(r,n,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(r,n,i){var o=null;o=typeof Promise<"u"?Promise:r("lie"),n.exports={Promise:o}},{lie:37}],7:[function(r,n,i){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=r("pako"),l=r("./utils"),u=r("./stream/GenericWorker"),d=o?"uint8array":"array";function f(h,m){u.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=m,this.meta={}}i.magic="\b\0",l.inherits(f,u),f.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(l.transformTo(d,h.data),!1)},f.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},f.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},f.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(m){h.push({data:m,meta:h.meta})}},i.compressWorker=function(h){return new f("Deflate",h)},i.uncompressWorker=function(){return new f("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,n,i){function o(v,x){var g,S="";for(g=0;g>>=8;return S}function s(v,x,g,S,b,y){var _,C,T=v.file,I=v.compression,$=y!==d.utf8encode,z=l.transformTo("string",y(T.name)),N=l.transformTo("string",d.utf8encode(T.name)),V=T.comment,ce=l.transformTo("string",y(V)),D=l.transformTo("string",d.utf8encode(V)),U=N.length!==T.name.length,A=D.length!==V.length,Q="",ge="",G="",oe=T.dir,ee=T.date,he={crc32:0,compressedSize:0,uncompressedSize:0};x&&!g||(he.crc32=v.crc32,he.compressedSize=v.compressedSize,he.uncompressedSize=v.uncompressedSize);var Y=0;x&&(Y|=8),$||!U&&!A||(Y|=2048);var X=0,xe=0;oe&&(X|=16),b==="UNIX"?(xe=798,X|=function(pe,Ae){var He=pe;return pe||(He=Ae?16893:33204),(65535&He)<<16}(T.unixPermissions,oe)):(xe=20,X|=function(pe){return 63&(pe||0)}(T.dosPermissions)),_=ee.getUTCHours(),_<<=6,_|=ee.getUTCMinutes(),_<<=5,_|=ee.getUTCSeconds()/2,C=ee.getUTCFullYear()-1980,C<<=4,C|=ee.getUTCMonth()+1,C<<=5,C|=ee.getUTCDate(),U&&(ge=o(1,1)+o(f(z),4)+N,Q+="up"+o(ge.length,2)+ge),A&&(G=o(1,1)+o(f(ce),4)+D,Q+="uc"+o(G.length,2)+G);var me="";return me+=` +\0`,me+=o(Y,2),me+=I.magic,me+=o(_,2),me+=o(C,2),me+=o(he.crc32,4),me+=o(he.compressedSize,4),me+=o(he.uncompressedSize,4),me+=o(z.length,2),me+=o(Q.length,2),{fileRecord:h.LOCAL_FILE_HEADER+me+z+Q,dirRecord:h.CENTRAL_FILE_HEADER+o(xe,2)+me+o(ce.length,2)+"\0\0\0\0"+o(X,4)+o(S,4)+z+Q+ce}}var l=r("../utils"),u=r("../stream/GenericWorker"),d=r("../utf8"),f=r("../crc32"),h=r("../signature");function m(v,x,g,S){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=x,this.zipPlatform=g,this.encodeFileName=S,this.streamFiles=v,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}l.inherits(m,u),m.prototype.push=function(v){var x=v.meta.percent||0,g=this.entriesCount,S=this._sources.length;this.accumulate?this.contentBuffer.push(v):(this.bytesWritten+=v.data.length,u.prototype.push.call(this,{data:v.data,meta:{currentFile:this.currentFile,percent:g?(x+100*(g-S-1))/g:100}}))},m.prototype.openedSource=function(v){this.currentSourceOffset=this.bytesWritten,this.currentFile=v.file.name;var x=this.streamFiles&&!v.file.dir;if(x){var g=s(v,x,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(v){this.accumulate=!1;var x=this.streamFiles&&!v.file.dir,g=s(v,x,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),x)this.push({data:function(S){return h.DATA_DESCRIPTOR+o(S.crc32,4)+o(S.compressedSize,4)+o(S.uncompressedSize,4)}(v),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var v=this.bytesWritten,x=0;x=this.index;u--)d=(d<<8)+this.byteAt(u);return this.index+=l,d},readString:function(l){return o.transformTo("string",this.readData(l))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var l=this.readInt(4);return new Date(Date.UTC(1980+(l>>25&127),(l>>21&15)-1,l>>16&31,l>>11&31,l>>5&63,(31&l)<<1))}},n.exports=s},{"../utils":32}],19:[function(r,n,i){var o=r("./Uint8ArrayReader");function s(l){o.call(this,l)}r("../utils").inherits(s,o),s.prototype.readData=function(l){this.checkOffset(l);var u=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,u},n.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,n,i){var o=r("./DataReader");function s(l){o.call(this,l)}r("../utils").inherits(s,o),s.prototype.byteAt=function(l){return this.data.charCodeAt(this.zero+l)},s.prototype.lastIndexOfSignature=function(l){return this.data.lastIndexOf(l)-this.zero},s.prototype.readAndCheckSignature=function(l){return l===this.readData(4)},s.prototype.readData=function(l){this.checkOffset(l);var u=this.data.slice(this.zero+this.index,this.zero+this.index+l);return this.index+=l,u},n.exports=s},{"../utils":32,"./DataReader":18}],21:[function(r,n,i){var o=r("./ArrayReader");function s(l){o.call(this,l)}r("../utils").inherits(s,o),s.prototype.readData=function(l){if(this.checkOffset(l),l===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+l);return this.index+=l,u},n.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(r,n,i){var o=r("../utils"),s=r("../support"),l=r("./ArrayReader"),u=r("./StringReader"),d=r("./NodeBufferReader"),f=r("./Uint8ArrayReader");n.exports=function(h){var m=o.getTypeOf(h);return o.checkSupport(m),m!=="string"||s.uint8array?m==="nodebuffer"?new d(h):s.uint8array?new f(o.transformTo("uint8array",h)):new l(o.transformTo("array",h)):new u(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,n,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,n,i){var o=r("./GenericWorker"),s=r("../utils");function l(u){o.call(this,"ConvertWorker to "+u),this.destType=u}s.inherits(l,o),l.prototype.processChunk=function(u){this.push({data:s.transformTo(this.destType,u.data),meta:u.meta})},n.exports=l},{"../utils":32,"./GenericWorker":28}],25:[function(r,n,i){var o=r("./GenericWorker"),s=r("../crc32");function l(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(l,o),l.prototype.processChunk=function(u){this.streamInfo.crc32=s(u.data,this.streamInfo.crc32||0),this.push(u)},n.exports=l},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,n,i){var o=r("../utils"),s=r("./GenericWorker");function l(u){s.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}o.inherits(l,s),l.prototype.processChunk=function(u){if(u){var d=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=d+u.data.length}s.prototype.processChunk.call(this,u)},n.exports=l},{"../utils":32,"./GenericWorker":28}],27:[function(r,n,i){var o=r("../utils"),s=r("./GenericWorker");function l(u){s.call(this,"DataWorker");var d=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(f){d.dataIsReady=!0,d.data=f,d.max=f&&f.length||0,d.type=o.getTypeOf(f),d.isPaused||d._tickAndRepeat()},function(f){d.error(f)})}o.inherits(l,s),l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},l.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},l.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},l.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,d=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,d);break;case"uint8array":u=this.data.subarray(this.index,d);break;case"array":case"nodebuffer":u=this.data.slice(this.index,d)}return this.index=d,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=l},{"../utils":32,"./GenericWorker":28}],28:[function(r,n,i){function o(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,l){return this._listeners[s].push(l),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,l){if(this._listeners[s])for(var u=0;u "+s:s}},n.exports=o},{}],29:[function(r,n,i){var o=r("../utils"),s=r("./ConvertWorker"),l=r("./GenericWorker"),u=r("../base64"),d=r("../support"),f=r("../external"),h=null;if(d.nodestream)try{h=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function m(x,g){return new f.Promise(function(S,b){var y=[],_=x._internalType,C=x._outputType,T=x._mimeType;x.on("data",function(I,$){y.push(I),g&&g($)}).on("error",function(I){y=[],b(I)}).on("end",function(){try{var I=function($,z,N){switch($){case"blob":return o.newBlob(o.transformTo("arraybuffer",z),N);case"base64":return u.encode(z);default:return o.transformTo($,z)}}(C,function($,z){var N,V=0,ce=null,D=0;for(N=0;N"u")i.blob=!1;else{var o=new ArrayBuffer(0);try{i.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(o),i.blob=s.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!r("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(r,n,i){for(var o=r("./utils"),s=r("./support"),l=r("./nodejsUtils"),u=r("./stream/GenericWorker"),d=new Array(256),f=0;f<256;f++)d[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;d[254]=d[254]=1;function h(){u.call(this,"utf-8 decode"),this.leftOver=null}function m(){u.call(this,"utf-8 encode")}i.utf8encode=function(v){return s.nodebuffer?l.newBufferFrom(v,"utf-8"):function(x){var g,S,b,y,_,C=x.length,T=0;for(y=0;y>>6:(S<65536?g[_++]=224|S>>>12:(g[_++]=240|S>>>18,g[_++]=128|S>>>12&63),g[_++]=128|S>>>6&63),g[_++]=128|63&S);return g}(v)},i.utf8decode=function(v){return s.nodebuffer?o.transformTo("nodebuffer",v).toString("utf-8"):function(x){var g,S,b,y,_=x.length,C=new Array(2*_);for(g=S=0;g<_;)if((b=x[g++])<128)C[S++]=b;else if(4<(y=d[b]))C[S++]=65533,g+=y-1;else{for(b&=y===2?31:y===3?15:7;1>10&1023,C[S++]=56320|1023&b)}return C.length!==S&&(C.subarray?C=C.subarray(0,S):C.length=S),o.applyFromCharCode(C)}(v=o.transformTo(s.uint8array?"uint8array":"array",v))},o.inherits(h,u),h.prototype.processChunk=function(v){var x=o.transformTo(s.uint8array?"uint8array":"array",v.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var g=x;(x=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),x.set(g,this.leftOver.length)}else x=this.leftOver.concat(x);this.leftOver=null}var S=function(y,_){var C;for((_=_||y.length)>y.length&&(_=y.length),C=_-1;0<=C&&(192&y[C])==128;)C--;return C<0||C===0?_:C+d[y[C]]>_?C:_}(x),b=x;S!==x.length&&(s.uint8array?(b=x.subarray(0,S),this.leftOver=x.subarray(S,x.length)):(b=x.slice(0,S),this.leftOver=x.slice(S,x.length))),this.push({data:i.utf8decode(b),meta:v.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,o.inherits(m,u),m.prototype.processChunk=function(v){this.push({data:i.utf8encode(v.data),meta:v.meta})},i.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,n,i){var o=r("./support"),s=r("./base64"),l=r("./nodejsUtils"),u=r("./external");function d(g){return g}function f(g,S){for(var b=0;b>8;this.dir=!!(16&this.externalFileAttributes),v==0&&(this.dosPermissions=63&this.externalFileAttributes),v==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var v=o(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=v.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=v.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=v.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=v.readInt(4))}},readExtraFields:function(v){var x,g,S,b=v.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});v.index+4>>6:(v<65536?m[S++]=224|v>>>12:(m[S++]=240|v>>>18,m[S++]=128|v>>>12&63),m[S++]=128|v>>>6&63),m[S++]=128|63&v);return m},i.buf2binstring=function(h){return f(h,h.length)},i.binstring2buf=function(h){for(var m=new o.Buf8(h.length),v=0,x=m.length;v>10&1023,y[x++]=56320|1023&g)}return f(y,x)},i.utf8border=function(h,m){var v;for((m=m||h.length)>h.length&&(m=h.length),v=m-1;0<=v&&(192&h[v])==128;)v--;return v<0||v===0?m:v+u[h[v]]>m?v:m}},{"./common":41}],43:[function(r,n,i){n.exports=function(o,s,l,u){for(var d=65535&o|0,f=o>>>16&65535|0,h=0;l!==0;){for(l-=h=2e3>>1:s>>>1;l[u]=s}return l}();n.exports=function(s,l,u,d){var f=o,h=d+u;s^=-1;for(var m=d;m>>8^f[255&(s^l[m])];return-1^s}},{}],46:[function(r,n,i){var o,s=r("../utils/common"),l=r("./trees"),u=r("./adler32"),d=r("./crc32"),f=r("./messages"),h=0,m=4,v=0,x=-2,g=-1,S=4,b=2,y=8,_=9,C=286,T=30,I=19,$=2*C+1,z=15,N=3,V=258,ce=V+N+1,D=42,U=113,A=1,Q=2,ge=3,G=4;function oe(P,le){return P.msg=f[le],le}function ee(P){return(P<<1)-(4P.avail_out&&(ue=P.avail_out),ue!==0&&(s.arraySet(P.output,le.pending_buf,le.pending_out,ue,P.next_out),P.next_out+=ue,le.pending_out+=ue,P.total_out+=ue,P.avail_out-=ue,le.pending-=ue,le.pending===0&&(le.pending_out=0))}function X(P,le){l._tr_flush_block(P,0<=P.block_start?P.block_start:-1,P.strstart-P.block_start,le),P.block_start=P.strstart,Y(P.strm)}function xe(P,le){P.pending_buf[P.pending++]=le}function me(P,le){P.pending_buf[P.pending++]=le>>>8&255,P.pending_buf[P.pending++]=255&le}function pe(P,le){var ue,L,E=P.max_chain_length,j=P.strstart,W=P.prev_length,J=P.nice_match,H=P.strstart>P.w_size-ce?P.strstart-(P.w_size-ce):0,te=P.window,q=P.w_mask,ae=P.prev,we=P.strstart+V,$e=te[j+W-1],Ie=te[j+W];P.prev_length>=P.good_match&&(E>>=2),J>P.lookahead&&(J=P.lookahead);do if(te[(ue=le)+W]===Ie&&te[ue+W-1]===$e&&te[ue]===te[j]&&te[++ue]===te[j+1]){j+=2,ue++;do;while(te[++j]===te[++ue]&&te[++j]===te[++ue]&&te[++j]===te[++ue]&&te[++j]===te[++ue]&&te[++j]===te[++ue]&&te[++j]===te[++ue]&&te[++j]===te[++ue]&&te[++j]===te[++ue]&&jH&&--E!=0);return W<=P.lookahead?W:P.lookahead}function Ae(P){var le,ue,L,E,j,W,J,H,te,q,ae=P.w_size;do{if(E=P.window_size-P.lookahead-P.strstart,P.strstart>=ae+(ae-ce)){for(s.arraySet(P.window,P.window,ae,ae,0),P.match_start-=ae,P.strstart-=ae,P.block_start-=ae,le=ue=P.hash_size;L=P.head[--le],P.head[le]=ae<=L?L-ae:0,--ue;);for(le=ue=ae;L=P.prev[--le],P.prev[le]=ae<=L?L-ae:0,--ue;);E+=ae}if(P.strm.avail_in===0)break;if(W=P.strm,J=P.window,H=P.strstart+P.lookahead,te=E,q=void 0,q=W.avail_in,te=N)for(j=P.strstart-P.insert,P.ins_h=P.window[j],P.ins_h=(P.ins_h<=N&&(P.ins_h=(P.ins_h<=N)if(L=l._tr_tally(P,P.strstart-P.match_start,P.match_length-N),P.lookahead-=P.match_length,P.match_length<=P.max_lazy_match&&P.lookahead>=N){for(P.match_length--;P.strstart++,P.ins_h=(P.ins_h<=N&&(P.ins_h=(P.ins_h<=N&&P.match_length<=P.prev_length){for(E=P.strstart+P.lookahead-N,L=l._tr_tally(P,P.strstart-1-P.prev_match,P.prev_length-N),P.lookahead-=P.prev_length-1,P.prev_length-=2;++P.strstart<=E&&(P.ins_h=(P.ins_h<P.pending_buf_size-5&&(ue=P.pending_buf_size-5);;){if(P.lookahead<=1){if(Ae(P),P.lookahead===0&&le===h)return A;if(P.lookahead===0)break}P.strstart+=P.lookahead,P.lookahead=0;var L=P.block_start+ue;if((P.strstart===0||P.strstart>=L)&&(P.lookahead=P.strstart-L,P.strstart=L,X(P,!1),P.strm.avail_out===0)||P.strstart-P.block_start>=P.w_size-ce&&(X(P,!1),P.strm.avail_out===0))return A}return P.insert=0,le===m?(X(P,!0),P.strm.avail_out===0?ge:G):(P.strstart>P.block_start&&(X(P,!1),P.strm.avail_out),A)}),new Me(4,4,8,4,He),new Me(4,5,16,8,He),new Me(4,6,32,32,He),new Me(4,4,16,16,Te),new Me(8,16,32,32,Te),new Me(8,16,128,128,Te),new Me(8,32,128,256,Te),new Me(32,128,258,1024,Te),new Me(32,258,258,4096,Te)],i.deflateInit=function(P,le){return We(P,le,y,15,8,0)},i.deflateInit2=We,i.deflateReset=Ee,i.deflateResetKeep=Ne,i.deflateSetHeader=function(P,le){return P&&P.state?P.state.wrap!==2?x:(P.state.gzhead=le,v):x},i.deflate=function(P,le){var ue,L,E,j;if(!P||!P.state||5>8&255),xe(L,L.gzhead.time>>16&255),xe(L,L.gzhead.time>>24&255),xe(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),xe(L,255&L.gzhead.os),L.gzhead.extra&&L.gzhead.extra.length&&(xe(L,255&L.gzhead.extra.length),xe(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(P.adler=d(P.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=69):(xe(L,0),xe(L,0),xe(L,0),xe(L,0),xe(L,0),xe(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),xe(L,3),L.status=U);else{var W=y+(L.w_bits-8<<4)<<8;W|=(2<=L.strategy||L.level<2?0:L.level<6?1:L.level===6?2:3)<<6,L.strstart!==0&&(W|=32),W+=31-W%31,L.status=U,me(L,W),L.strstart!==0&&(me(L,P.adler>>>16),me(L,65535&P.adler)),P.adler=1}if(L.status===69)if(L.gzhead.extra){for(E=L.pending;L.gzindex<(65535&L.gzhead.extra.length)&&(L.pending!==L.pending_buf_size||(L.gzhead.hcrc&&L.pending>E&&(P.adler=d(P.adler,L.pending_buf,L.pending-E,E)),Y(P),E=L.pending,L.pending!==L.pending_buf_size));)xe(L,255&L.gzhead.extra[L.gzindex]),L.gzindex++;L.gzhead.hcrc&&L.pending>E&&(P.adler=d(P.adler,L.pending_buf,L.pending-E,E)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=73)}else L.status=73;if(L.status===73)if(L.gzhead.name){E=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>E&&(P.adler=d(P.adler,L.pending_buf,L.pending-E,E)),Y(P),E=L.pending,L.pending===L.pending_buf_size)){j=1;break}j=L.gzindexE&&(P.adler=d(P.adler,L.pending_buf,L.pending-E,E)),j===0&&(L.gzindex=0,L.status=91)}else L.status=91;if(L.status===91)if(L.gzhead.comment){E=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>E&&(P.adler=d(P.adler,L.pending_buf,L.pending-E,E)),Y(P),E=L.pending,L.pending===L.pending_buf_size)){j=1;break}j=L.gzindexE&&(P.adler=d(P.adler,L.pending_buf,L.pending-E,E)),j===0&&(L.status=103)}else L.status=103;if(L.status===103&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&Y(P),L.pending+2<=L.pending_buf_size&&(xe(L,255&P.adler),xe(L,P.adler>>8&255),P.adler=0,L.status=U)):L.status=U),L.pending!==0){if(Y(P),P.avail_out===0)return L.last_flush=-1,v}else if(P.avail_in===0&&ee(le)<=ee(ue)&&le!==m)return oe(P,-5);if(L.status===666&&P.avail_in!==0)return oe(P,-5);if(P.avail_in!==0||L.lookahead!==0||le!==h&&L.status!==666){var J=L.strategy===2?function(H,te){for(var q;;){if(H.lookahead===0&&(Ae(H),H.lookahead===0)){if(te===h)return A;break}if(H.match_length=0,q=l._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,q&&(X(H,!1),H.strm.avail_out===0))return A}return H.insert=0,te===m?(X(H,!0),H.strm.avail_out===0?ge:G):H.last_lit&&(X(H,!1),H.strm.avail_out===0)?A:Q}(L,le):L.strategy===3?function(H,te){for(var q,ae,we,$e,Ie=H.window;;){if(H.lookahead<=V){if(Ae(H),H.lookahead<=V&&te===h)return A;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=N&&0H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=N?(q=l._tr_tally(H,1,H.match_length-N),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(q=l._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),q&&(X(H,!1),H.strm.avail_out===0))return A}return H.insert=0,te===m?(X(H,!0),H.strm.avail_out===0?ge:G):H.last_lit&&(X(H,!1),H.strm.avail_out===0)?A:Q}(L,le):o[L.level].func(L,le);if(J!==ge&&J!==G||(L.status=666),J===A||J===ge)return P.avail_out===0&&(L.last_flush=-1),v;if(J===Q&&(le===1?l._tr_align(L):le!==5&&(l._tr_stored_block(L,0,0,!1),le===3&&(he(L.head),L.lookahead===0&&(L.strstart=0,L.block_start=0,L.insert=0))),Y(P),P.avail_out===0))return L.last_flush=-1,v}return le!==m?v:L.wrap<=0?1:(L.wrap===2?(xe(L,255&P.adler),xe(L,P.adler>>8&255),xe(L,P.adler>>16&255),xe(L,P.adler>>24&255),xe(L,255&P.total_in),xe(L,P.total_in>>8&255),xe(L,P.total_in>>16&255),xe(L,P.total_in>>24&255)):(me(L,P.adler>>>16),me(L,65535&P.adler)),Y(P),0=ue.w_size&&(j===0&&(he(ue.head),ue.strstart=0,ue.block_start=0,ue.insert=0),te=new s.Buf8(ue.w_size),s.arraySet(te,le,q-ue.w_size,ue.w_size,0),le=te,q=ue.w_size),W=P.avail_in,J=P.next_in,H=P.input,P.avail_in=q,P.next_in=0,P.input=le,Ae(ue);ue.lookahead>=N;){for(L=ue.strstart,E=ue.lookahead-(N-1);ue.ins_h=(ue.ins_h<>>=N=z>>>24,_-=N,(N=z>>>16&255)===0)Q[f++]=65535&z;else{if(!(16&N)){if(!(64&N)){z=C[(65535&z)+(y&(1<>>=N,_-=N),_<15&&(y+=A[u++]<<_,_+=8,y+=A[u++]<<_,_+=8),z=T[y&$];r:for(;;){if(y>>>=N=z>>>24,_-=N,!(16&(N=z>>>16&255))){if(!(64&N)){z=T[(65535&z)+(y&(1<>>=N,_-=N,(N=f-h)>3,y&=(1<<(_-=V<<3))-1,o.next_in=u,o.next_out=f,o.avail_in=u>>24&255)+(D>>>8&65280)+((65280&D)<<8)+((255&D)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(D){var U;return D&&D.state?(U=D.state,D.total_in=D.total_out=U.total=0,D.msg="",U.wrap&&(D.adler=1&U.wrap),U.mode=x,U.last=0,U.havedict=0,U.dmax=32768,U.head=null,U.hold=0,U.bits=0,U.lencode=U.lendyn=new o.Buf32(g),U.distcode=U.distdyn=new o.Buf32(S),U.sane=1,U.back=-1,m):v}function C(D){var U;return D&&D.state?((U=D.state).wsize=0,U.whave=0,U.wnext=0,_(D)):v}function T(D,U){var A,Q;return D&&D.state?(Q=D.state,U<0?(A=0,U=-U):(A=1+(U>>4),U<48&&(U&=15)),U&&(U<8||15=G.wsize?(o.arraySet(G.window,U,A-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):(Q<(ge=G.wsize-G.wnext)&&(ge=Q),o.arraySet(G.window,U,A-Q,ge,G.wnext),(Q-=ge)?(o.arraySet(G.window,U,A-Q,Q,0),G.wnext=Q,G.whave=G.wsize):(G.wnext+=ge,G.wnext===G.wsize&&(G.wnext=0),G.whave>>8&255,A.check=l(A.check,j,2,0),X=Y=0,A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&Y)<<8)+(Y>>8))%31){D.msg="incorrect header check",A.mode=30;break}if((15&Y)!=8){D.msg="unknown compression method",A.mode=30;break}if(X-=4,P=8+(15&(Y>>>=4)),A.wbits===0)A.wbits=P;else if(P>A.wbits){D.msg="invalid window size",A.mode=30;break}A.dmax=1<>8&1),512&A.flags&&(j[0]=255&Y,j[1]=Y>>>8&255,A.check=l(A.check,j,2,0)),X=Y=0,A.mode=3;case 3:for(;X<32;){if(ee===0)break e;ee--,Y+=Q[G++]<>>8&255,j[2]=Y>>>16&255,j[3]=Y>>>24&255,A.check=l(A.check,j,4,0)),X=Y=0,A.mode=4;case 4:for(;X<16;){if(ee===0)break e;ee--,Y+=Q[G++]<>8),512&A.flags&&(j[0]=255&Y,j[1]=Y>>>8&255,A.check=l(A.check,j,2,0)),X=Y=0,A.mode=5;case 5:if(1024&A.flags){for(;X<16;){if(ee===0)break e;ee--,Y+=Q[G++]<>>8&255,A.check=l(A.check,j,2,0)),X=Y=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(ee<(pe=A.length)&&(pe=ee),pe&&(A.head&&(P=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),o.arraySet(A.head.extra,Q,G,pe,P)),512&A.flags&&(A.check=l(A.check,Q,pe,G)),ee-=pe,G+=pe,A.length-=pe),A.length))break e;A.length=0,A.mode=7;case 7:if(2048&A.flags){if(ee===0)break e;for(pe=0;P=Q[G+pe++],A.head&&P&&A.length<65536&&(A.head.name+=String.fromCharCode(P)),P&&pe>9&1,A.head.done=!0),D.adler=A.check=0,A.mode=12;break;case 10:for(;X<32;){if(ee===0)break e;ee--,Y+=Q[G++]<>>=7&X,X-=7&X,A.mode=27;break}for(;X<3;){if(ee===0)break e;ee--,Y+=Q[G++]<>>=1)){case 0:A.mode=14;break;case 1:if(V(A),A.mode=20,U!==6)break;Y>>>=2,X-=2;break e;case 2:A.mode=17;break;case 3:D.msg="invalid block type",A.mode=30}Y>>>=2,X-=2;break;case 14:for(Y>>>=7&X,X-=7&X;X<32;){if(ee===0)break e;ee--,Y+=Q[G++]<>>16^65535)){D.msg="invalid stored block lengths",A.mode=30;break}if(A.length=65535&Y,X=Y=0,A.mode=15,U===6)break e;case 15:A.mode=16;case 16:if(pe=A.length){if(ee>>=5,X-=5,A.ndist=1+(31&Y),Y>>>=5,X-=5,A.ncode=4+(15&Y),Y>>>=4,X-=4,286>>=3,X-=3}for(;A.have<19;)A.lens[W[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,ue={bits:A.lenbits},le=d(0,A.lens,0,19,A.lencode,0,A.work,ue),A.lenbits=ue.bits,le){D.msg="invalid code lengths set",A.mode=30;break}A.have=0,A.mode=19;case 19:for(;A.have>>16&255,Qe=65535&E,!((Te=E>>>24)<=X);){if(ee===0)break e;ee--,Y+=Q[G++]<>>=Te,X-=Te,A.lens[A.have++]=Qe;else{if(Qe===16){for(L=Te+2;X>>=Te,X-=Te,A.have===0){D.msg="invalid bit length repeat",A.mode=30;break}P=A.lens[A.have-1],pe=3+(3&Y),Y>>>=2,X-=2}else if(Qe===17){for(L=Te+3;X>>=Te)),Y>>>=3,X-=3}else{for(L=Te+7;X>>=Te)),Y>>>=7,X-=7}if(A.have+pe>A.nlen+A.ndist){D.msg="invalid bit length repeat",A.mode=30;break}for(;pe--;)A.lens[A.have++]=P}}if(A.mode===30)break;if(A.lens[256]===0){D.msg="invalid code -- missing end-of-block",A.mode=30;break}if(A.lenbits=9,ue={bits:A.lenbits},le=d(f,A.lens,0,A.nlen,A.lencode,0,A.work,ue),A.lenbits=ue.bits,le){D.msg="invalid literal/lengths set",A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,ue={bits:A.distbits},le=d(h,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,ue),A.distbits=ue.bits,le){D.msg="invalid distances set",A.mode=30;break}if(A.mode=20,U===6)break e;case 20:A.mode=21;case 21:if(6<=ee&&258<=he){D.next_out=oe,D.avail_out=he,D.next_in=G,D.avail_in=ee,A.hold=Y,A.bits=X,u(D,me),oe=D.next_out,ge=D.output,he=D.avail_out,G=D.next_in,Q=D.input,ee=D.avail_in,Y=A.hold,X=A.bits,A.mode===12&&(A.back=-1);break}for(A.back=0;Me=(E=A.lencode[Y&(1<>>16&255,Qe=65535&E,!((Te=E>>>24)<=X);){if(ee===0)break e;ee--,Y+=Q[G++]<>Ne)])>>>16&255,Qe=65535&E,!(Ne+(Te=E>>>24)<=X);){if(ee===0)break e;ee--,Y+=Q[G++]<>>=Ne,X-=Ne,A.back+=Ne}if(Y>>>=Te,X-=Te,A.back+=Te,A.length=Qe,Me===0){A.mode=26;break}if(32&Me){A.back=-1,A.mode=12;break}if(64&Me){D.msg="invalid literal/length code",A.mode=30;break}A.extra=15&Me,A.mode=22;case 22:if(A.extra){for(L=A.extra;X>>=A.extra,X-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=23;case 23:for(;Me=(E=A.distcode[Y&(1<>>16&255,Qe=65535&E,!((Te=E>>>24)<=X);){if(ee===0)break e;ee--,Y+=Q[G++]<>Ne)])>>>16&255,Qe=65535&E,!(Ne+(Te=E>>>24)<=X);){if(ee===0)break e;ee--,Y+=Q[G++]<>>=Ne,X-=Ne,A.back+=Ne}if(Y>>>=Te,X-=Te,A.back+=Te,64&Me){D.msg="invalid distance code",A.mode=30;break}A.offset=Qe,A.extra=15&Me,A.mode=24;case 24:if(A.extra){for(L=A.extra;X>>=A.extra,X-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){D.msg="invalid distance too far back",A.mode=30;break}A.mode=25;case 25:if(he===0)break e;if(pe=me-he,A.offset>pe){if((pe=A.offset-pe)>A.whave&&A.sane){D.msg="invalid distance too far back",A.mode=30;break}Ae=pe>A.wnext?(pe-=A.wnext,A.wsize-pe):A.wnext-pe,pe>A.length&&(pe=A.length),He=A.window}else He=ge,Ae=oe-A.offset,pe=A.length;for(he$?(N=Ae[He+S[U]],X[xe+S[U]]):(N=96,0),y=1<>oe)+(_-=y)]=z<<24|N<<16|V|0,_!==0;);for(y=1<>=1;if(y!==0?(Y&=y-1,Y+=y):Y=0,U++,--me[D]==0){if(D===Q)break;D=h[m+S[U]]}if(ge>>7)]}function xe(E,j){E.pending_buf[E.pending++]=255&j,E.pending_buf[E.pending++]=j>>>8&255}function me(E,j,W){E.bi_valid>b-W?(E.bi_buf|=j<>b-E.bi_valid,E.bi_valid+=W-b):(E.bi_buf|=j<>>=1,W<<=1,0<--j;);return W>>>1}function He(E,j,W){var J,H,te=new Array(S+1),q=0;for(J=1;J<=S;J++)te[J]=q=q+W[J-1]<<1;for(H=0;H<=j;H++){var ae=E[2*H+1];ae!==0&&(E[2*H]=Ae(te[ae]++,ae))}}function Te(E){var j;for(j=0;j>1;1<=W;W--)Ne(E,te,W);for(H=we;W=E.heap[1],E.heap[1]=E.heap[E.heap_len--],Ne(E,te,1),J=E.heap[1],E.heap[--E.heap_max]=W,E.heap[--E.heap_max]=J,te[2*H]=te[2*W]+te[2*J],E.depth[H]=(E.depth[W]>=E.depth[J]?E.depth[W]:E.depth[J])+1,te[2*W+1]=te[2*J+1]=H,E.heap[1]=H++,Ne(E,te,1),2<=E.heap_len;);E.heap[--E.heap_max]=E.heap[1],function(Ie,Nt){var or,qt,Nr,xt,Gr,pr,mr=Nt.dyn_tree,gi=Nt.max_code,vo=Nt.stat_desc.static_tree,La=Nt.stat_desc.has_stree,Kl=Nt.stat_desc.extra_bits,Gi=Nt.stat_desc.extra_base,go=Nt.stat_desc.max_length,In=0;for(xt=0;xt<=S;xt++)Ie.bl_count[xt]=0;for(mr[2*Ie.heap[Ie.heap_max]+1]=0,or=Ie.heap_max+1;or>=7;H>>=1)if(1&$e&&ae.dyn_ltree[2*we]!==0)return s;if(ae.dyn_ltree[18]!==0||ae.dyn_ltree[20]!==0||ae.dyn_ltree[26]!==0)return l;for(we=32;we>>3,(te=E.static_len+3+7>>>3)<=H&&(H=te)):H=te=W+5,W+4<=H&&j!==-1?L(E,j,W,J):E.strategy===4||te===H?(me(E,2+(J?1:0),3),Ee(E,ce,D)):(me(E,4+(J?1:0),3),function(ae,we,$e,Ie){var Nt;for(me(ae,we-257,5),me(ae,$e-1,5),me(ae,Ie-4,4),Nt=0;Nt>>8&255,E.pending_buf[E.d_buf+2*E.last_lit+1]=255&j,E.pending_buf[E.l_buf+E.last_lit]=255&W,E.last_lit++,j===0?E.dyn_ltree[2*W]++:(E.matches++,j--,E.dyn_ltree[2*(A[W]+h+1)]++,E.dyn_dtree[2*X(j)]++),E.last_lit===E.lit_bufsize-1},i._tr_align=function(E){me(E,2,3),pe(E,_,ce),function(j){j.bi_valid===16?(xe(j,j.bi_buf),j.bi_buf=0,j.bi_valid=0):8<=j.bi_valid&&(j.pending_buf[j.pending++]=255&j.bi_buf,j.bi_buf>>=8,j.bi_valid-=8)}(E)}},{"../utils/common":41}],53:[function(r,n,i){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,n,i){(function(o){(function(s,l){if(!s.setImmediate){var u,d,f,h,m=1,v={},x=!1,g=s.document,S=Object.getPrototypeOf&&Object.getPrototypeOf(s);S=S&&S.setTimeout?S:s,u={}.toString.call(s.process)==="[object process]"?function(C){process.nextTick(function(){y(C)})}:function(){if(s.postMessage&&!s.importScripts){var C=!0,T=s.onmessage;return s.onmessage=function(){C=!1},s.postMessage("","*"),s.onmessage=T,C}}()?(h="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",_,!1):s.attachEvent("onmessage",_),function(C){s.postMessage(h+C,"*")}):s.MessageChannel?((f=new MessageChannel).port1.onmessage=function(C){y(C.data)},function(C){f.port2.postMessage(C)}):g&&"onreadystatechange"in g.createElement("script")?(d=g.documentElement,function(C){var T=g.createElement("script");T.onreadystatechange=function(){y(C),T.onreadystatechange=null,d.removeChild(T),T=null},d.appendChild(T)}):function(C){setTimeout(y,0,C)},S.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var T=new Array(arguments.length-1),I=0;I"u"?o===void 0?this:o:self)}).call(this,typeof ri<"u"?ri:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(A3);var PU=A3.exports;const R3=Bc(PU),AU=e=>{const t=new R3,r=EU(e),n=JSON.stringify({settingJson:JSON.stringify(r.settingJson),dispatchComSettings:r.dispatchComSettings}),i=JSON.stringify(e);t.file("v1.configuration/.generated/app-settings.json",n),t.file("v1.configuration/certifiedApps/life.evam.hydras.communication-suite/config.json",i),t.generateAsync({type:"blob"}).then(o=>{const s=document.createElement("a");s.href=window.URL.createObjectURL(o),s.download="config.evam",s.click()})},po=()=>{const e=XI(),t=Lh();return R.useMemo(()=>({...e,exit:()=>{window.location.reload()},selectDefault:e.reset,manualSubmit:()=>AU(e.getValues())}),[t])},O3=AW({component:()=>{const{formState:{isDirty:e}}=po(),{pathname:t}=jW(),r=Lh();return R.useEffect(()=>{!e&&t!=="/"&&r({to:"/"})},[]),w.jsx(IS,{})}});function RU(e){if(e.sheet)return e.sheet;for(var t=0;t0?Jr(Gc,--Gn):0,Ic--,Or===10&&(Ic=1,k0--),Or}function li(){return Or=Gn2||fh(Or)>3?"":" "}function WU(e,t){for(;--t&&li()&&!(Or<48||Or>102||Or>57&&Or<65||Or>70&&Or<97););return Vh(e,xv()+(t<6&&jo()==32&&li()==32))}function $_(e){for(;li();)switch(Or){case e:return Gn;case 34:case 39:e!==34&&e!==39&&$_(Or);break;case 40:e===41&&$_(e);break;case 92:li();break}return Gn}function UU(e,t){for(;li()&&e+Or!==57;)if(e+Or===84&&jo()===47)break;return"/*"+Vh(t,Gn-1)+"*"+S0(e===47?e:li())}function HU(e){for(;!fh(jo());)li();return Vh(e,Gn)}function KU(e){return M3(wv("",null,null,null,[""],e=D3(e),0,[0],e))}function wv(e,t,r,n,i,o,s,l,u){for(var d=0,f=0,h=s,m=0,v=0,x=0,g=1,S=1,b=1,y=0,_="",C=i,T=o,I=n,$=_;S;)switch(x=y,y=li()){case 40:if(x!=108&&Jr($,h-1)==58){I_($+=Et(_v(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:$+=_v(y);break;case 9:case 10:case 13:case 32:$+=VU(x);break;case 92:$+=WU(xv()-1,7);continue;case 47:switch(jo()){case 42:case 47:Nm(GU(UU(li(),xv()),t,r),u);break;default:$+="/"}break;case 123*g:l[d++]=Eo($)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:S=0;case 59+f:b==-1&&($=Et($,/\f/g,"")),v>0&&Eo($)-h&&Nm(v>32?rP($+";",n,r,h-1):rP(Et($," ","")+";",n,r,h-2),u);break;case 59:$+=";";default:if(Nm(I=tP($,t,r,d,f,i,l,_,C=[],T=[],h),o),y===123)if(f===0)wv($,t,I,I,C,o,h,l,T);else switch(m===99&&Jr($,3)===110?100:m){case 100:case 108:case 109:case 115:wv(e,I,I,n&&Nm(tP(e,I,I,0,0,i,l,_,i,C=[],h),T),i,T,h,l,n?C:T);break;default:wv($,I,I,I,[""],T,0,l,T)}}d=f=v=0,g=b=1,_=$="",h=s;break;case 58:h=1+Eo($),v=x;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&BU()==125)continue}switch($+=S0(y),y*g){case 38:b=f>0?1:($+="\f",-1);break;case 44:l[d++]=(Eo($)-1)*b,b=1;break;case 64:jo()===45&&($+=_v(li())),m=jo(),f=h=Eo(_=$+=HU(xv())),y++;break;case 45:x===45&&Eo($)==2&&(g=0)}}return o}function tP(e,t,r,n,i,o,s,l,u,d,f){for(var h=i-1,m=i===0?o:[""],v=VS(m),x=0,g=0,S=0;x0?m[b]+" "+y:Et(y,/&\f/g,m[b])))&&(u[S++]=_);return C0(e,t,r,i===0?NS:l,u,d,f)}function GU(e,t,r){return C0(e,t,r,I3,S0(NU()),dh(e,2,-2),0)}function rP(e,t,r,n){return C0(e,t,r,BS,dh(e,0,n),dh(e,n+1,-1),n)}function dc(e,t){for(var r="",n=VS(e),i=0;i6)switch(Jr(e,t+1)){case 109:if(Jr(e,t+4)!==45)break;case 102:return Et(e,/(.+:)(.+)-([^]+)/,"$1"+Tt+"$2-$3$1"+Ag+(Jr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~I_(e,"stretch")?L3(Et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jr(e,t+1)!==115)break;case 6444:switch(Jr(e,Eo(e)-3-(~I_(e,"!important")&&10))){case 107:return Et(e,":",":"+Tt)+e;case 101:return Et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tt+(Jr(e,14)===45?"inline-":"")+"box$3$1"+Tt+"$2$3$1"+dn+"$2box$3")+e}break;case 5936:switch(Jr(e,t+11)){case 114:return Tt+e+dn+Et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tt+e+dn+Et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tt+e+dn+Et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tt+e+dn+e+e}return e}var rH=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case BS:t.return=L3(t.value,t.length);break;case $3:return dc([zd(t,{value:Et(t.value,"@","@"+Tt)})],i);case NS:if(t.length)return LU(t.props,function(o){switch(zU(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return dc([zd(t,{props:[Et(o,/:(read-\w+)/,":"+Ag+"$1")]})],i);case"::placeholder":return dc([zd(t,{props:[Et(o,/:(plac\w+)/,":"+Tt+"input-$1")]}),zd(t,{props:[Et(o,/:(plac\w+)/,":"+Ag+"$1")]}),zd(t,{props:[Et(o,/:(plac\w+)/,dn+"input-$1")]})],i)}return""})}},nH=[rH],N3=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||nH,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var S=g.getAttribute("data-emotion").split(" "),b=1;b=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var vH={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,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},gH=/[A-Z]|^ms/g,yH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,G3=function(t){return t.charCodeAt(1)===45},oP=function(t){return t!=null&&typeof t!="boolean"},D1=z3(function(e){return G3(e)?e:e.replace(gH,"-$&").toLowerCase()}),sP=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(yH,function(n,i,o){return Po={name:i,styles:o,next:Po},i})}return vH[t]!==1&&!G3(t)&&typeof r=="number"&&r!==0?r+"px":r};function hh(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Po={name:r.name,styles:r.styles,next:Po},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Po={name:n.name,styles:n.styles,next:Po},n=n.next;var i=r.styles+";";return i}return bH(e,t,r)}case"function":{if(e!==void 0){var o=Po,s=r(e);return Po=o,hh(e,t,s)}break}}if(t==null)return r;var l=t[r];return l!==void 0?l:r}function bH(e,t,r){var n="";if(Array.isArray(r))for(var i=0;iw.jsx(Wh,{styles:J3}),EH=({scope:e=""})=>w.jsx(Wh,{styles:Q3` + 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; + } + + ${J3} + `});function PH(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function nn(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,l=R.createContext(s);l.displayName=t;function u(){var d;const f=R.useContext(l);if(!f&&r){const h=new Error(o??PH(n,i));throw h.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,h,u),h}return f}return[l.Provider,u,l]}var[AH,RH]=nn({strict:!1,name:"PortalManagerContext"});function e$(e){const{children:t,zIndex:r}=e;return w.jsx(AH,{value:{zIndex:r},children:t})}e$.displayName="PortalManager";var gs=globalThis!=null&&globalThis.document?R.useLayoutEffect:R.useEffect,[t$,OH]=nn({strict:!1,name:"PortalContext"}),GS="chakra-portal",IH=".chakra-portal",$H=e=>w.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),FH=e=>{const{appendToParentPortal:t,children:r}=e,[n,i]=R.useState(null),o=R.useRef(null),[,s]=R.useState({});R.useEffect(()=>s({}),[]);const l=OH(),u=RH();gs(()=>{if(!n)return;const f=n.ownerDocument,h=t?l??f.body:f.body;if(!h)return;o.current=f.createElement("div"),o.current.className=GS,h.appendChild(o.current),s({});const m=o.current;return()=>{h.contains(m)&&h.removeChild(m)}},[n]);const d=u!=null&&u.zIndex?w.jsx($H,{zIndex:u==null?void 0:u.zIndex,children:r}):r;return o.current?g0.createPortal(w.jsx(t$,{value:o.current,children:d}),o.current):w.jsx("span",{ref:f=>{f&&i(f)}})},jH=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,i=r.current,o=i??(typeof window<"u"?document.body:void 0),s=R.useMemo(()=>{const u=i==null?void 0:i.ownerDocument.createElement("div");return u&&(u.className=GS),u},[i]),[,l]=R.useState({});return gs(()=>l({}),[]),gs(()=>{if(!(!s||!o))return o.appendChild(s),()=>{o.removeChild(s)}},[s,o]),o&&s?g0.createPortal(w.jsx(t$,{value:n?s:null,children:t}),s):null};function Zc(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?w.jsx(jH,{containerRef:r,...n}):w.jsx(FH,{...n})}Zc.className=GS;Zc.selector=IH;Zc.displayName="Portal";function ZS(){const e=R.useContext(jl);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var qS=R.createContext({});qS.displayName="ColorModeContext";function YS(){const e=R.useContext(qS);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Bm={light:"chakra-ui-light",dark:"chakra-ui-dark"};function DH(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,i==null||i()},setClassName(n){document.body.classList.add(n?Bm.dark:Bm.light),document.body.classList.remove(n?Bm.light:Bm.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var i;return((i=r.query().matches)!=null?i:n==="dark")?"dark":"light"},addListener(n){const i=r.query(),o=s=>{n(s.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const n=document.createElement("style");return n.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(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var MH="chakra-ui-color-mode";function zH(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var LH=zH(MH),uP=()=>{};function cP(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function r$(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:s=LH}=e,l=i==="dark"?"dark":"light",[u,d]=R.useState(()=>cP(s,l)),[f,h]=R.useState(()=>cP(s)),{getSystemTheme:m,setClassName:v,setDataset:x,addListener:g}=R.useMemo(()=>DH({preventTransition:o}),[o]),S=i==="system"&&!u?f:u,b=R.useCallback(C=>{const T=C==="system"?m():C;d(T),v(T==="dark"),x(T),s.set(T)},[s,m,v,x]);gs(()=>{i==="system"&&h(m())},[]),R.useEffect(()=>{const C=s.get();if(C){b(C);return}if(i==="system"){b("system");return}b(l)},[s,l,i,b]);const y=R.useCallback(()=>{b(S==="dark"?"light":"dark")},[S,b]);R.useEffect(()=>{if(n)return g(b)},[n,g,b]);const _=R.useMemo(()=>({colorMode:t??S,toggleColorMode:t?uP:y,setColorMode:t?uP:b,forced:t!==void 0}),[S,y,b,t]);return w.jsx(qS.Provider,{value:_,children:r})}r$.displayName="ColorModeProvider";function NH(){const e=YS(),t=ZS();return{...e,theme:t}}function BH(e,t,r){var n,i;if(t==null)return t;const o=s=>{var l,u;return(u=(l=e.__cssMap)==null?void 0:l[s])==null?void 0:u.value};return(i=(n=o(t))!=null?n:o(r))!=null?i:r}function VH(e,t,r){const n=Array.isArray(t)?t:[t],i=Array.isArray(r)?r:[r];return o=>{const s=i.filter(Boolean),l=n.map((u,d)=>{var f;const h=`${e}.${u}`;return BH(o,h,(f=s[d])!=null?f:u)});return Array.isArray(t)?l:l[0]}}var pt=(...e)=>e.filter(Boolean).join(" ");function zi(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function fa(e,...t){return WH(e)?e(...t):e}var WH=e=>typeof e=="function",gt=e=>e?"":void 0,M1=e=>e?!0:void 0;function Gt(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function UH(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var Rg={exports:{}};Rg.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=800,o=16,s=9007199254740991,l="[object Arguments]",u="[object Array]",d="[object AsyncFunction]",f="[object Boolean]",h="[object Date]",m="[object Error]",v="[object Function]",x="[object GeneratorFunction]",g="[object Map]",S="[object Number]",b="[object Null]",y="[object Object]",_="[object Proxy]",C="[object RegExp]",T="[object Set]",I="[object String]",$="[object Undefined]",z="[object WeakMap]",N="[object ArrayBuffer]",V="[object DataView]",ce="[object Float32Array]",D="[object Float64Array]",U="[object Int8Array]",A="[object Int16Array]",Q="[object Int32Array]",ge="[object Uint8Array]",G="[object Uint8ClampedArray]",oe="[object Uint16Array]",ee="[object Uint32Array]",he=/[\\^$.*+?()[\]{}|]/g,Y=/^\[object .+?Constructor\]$/,X=/^(?:0|[1-9]\d*)$/,xe={};xe[ce]=xe[D]=xe[U]=xe[A]=xe[Q]=xe[ge]=xe[G]=xe[oe]=xe[ee]=!0,xe[l]=xe[u]=xe[N]=xe[f]=xe[V]=xe[h]=xe[m]=xe[v]=xe[g]=xe[S]=xe[y]=xe[C]=xe[T]=xe[I]=xe[z]=!1;var me=typeof ri=="object"&&ri&&ri.Object===Object&&ri,pe=typeof self=="object"&&self&&self.Object===Object&&self,Ae=me||pe||Function("return this")(),He=t&&!t.nodeType&&t,Te=He&&!0&&e&&!e.nodeType&&e,Me=Te&&Te.exports===He,Qe=Me&&me.process,Ne=function(){try{var B=Te&&Te.require&&Te.require("util").types;return B||Qe&&Qe.binding&&Qe.binding("util")}catch{}}(),Ee=Ne&&Ne.isTypedArray;function We(B,re,fe){switch(fe.length){case 0:return B.call(re);case 1:return B.call(re,fe[0]);case 2:return B.call(re,fe[0],fe[1]);case 3:return B.call(re,fe[0],fe[1],fe[2])}return B.apply(re,fe)}function P(B,re){for(var fe=-1,Le=Array(B);++fe-1}function wy(B,re){var fe=this.__data__,Le=Zl(fe,B);return Le<0?(++this.size,fe.push([B,re])):fe[Le][1]=re,this}Zi.prototype.clear=xy,Zi.prototype.delete=rd,Zi.prototype.get=_y,Zi.prototype.has=nd,Zi.prototype.set=wy;function js(B){var re=-1,fe=B==null?0:B.length;for(this.clear();++re1?fe[mt-1]:void 0,Ht=mt>2?fe[2]:void 0;for(Rt=B.length>3&&typeof Rt=="function"?(mt--,Rt):void 0,Ht&&zy(fe[0],fe[1],Ht)&&(Rt=mt<3?void 0:Rt,mt=1),re=Object(re);++Le-1&&B%1==0&&B0){if(++re>=i)return arguments[0]}else re=0;return B.apply(void 0,arguments)}}function Tp(B){if(B!=null){try{return H.call(B)}catch{}try{return B+""}catch{}}return""}function Ba(B,re){return B===re||B!==B&&re!==re}var ud=cp(function(){return arguments}())?cp:function(B){return Ko(B)&&te.call(B,"callee")&&!xt.call(B,"callee")},cd=Array.isArray;function dd(B){return B!=null&&Ap(B.length)&&!fd(B)}function Ep(B){return Ko(B)&&dd(B)}var Pp=gi||Vy;function fd(B){if(!Ho(B))return!1;var re=ql(B);return re==v||re==x||re==d||re==_}function Ap(B){return typeof B=="number"&&B>-1&&B%1==0&&B<=s}function Ho(B){var re=typeof B;return B!=null&&(re=="object"||re=="function")}function Ko(B){return B!=null&&typeof B=="object"}function Ly(B){if(!Ko(B)||ql(B)!=y)return!1;var re=qt(B);if(re===null)return!0;var fe=te.call(re,"constructor")&&re.constructor;return typeof fe=="function"&&fe instanceof fe&&H.call(fe)==we}var Rp=Ee?le(Ee):fp;function Ny(B){return My(B,Op(B))}function Op(B){return dd(B)?Iy(B):hp(B)}var By=yp(function(B,re,fe,Le){pp(B,re,fe,Le)});function Bt(B){return function(){return B}}function It(B){return B}function Vy(){return!1}e.exports=By})(Rg,Rg.exports);var HH=Rg.exports;const Di=Bc(HH);var KH=e=>/!(important)?$/.test(e),dP=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,GH=(e,t)=>r=>{const n=String(t),i=KH(n),o=dP(n),s=e?`${e}.${o}`:o;let l=zi(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return l=dP(l),i?`${l} !important`:l};function XS(e){const{scale:t,transform:r,compose:n}=e;return(o,s)=>{var l;const u=GH(t,o)(s);let d=(l=r==null?void 0:r(u,s))!=null?l:u;return n&&(d=n(d,s)),d}}var Vm=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Ci(e,t){return r=>{const n={property:r,scale:e};return n.transform=XS({scale:e,transform:t}),n}}var ZH=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function qH(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:ZH(t),transform:r?XS({scale:r,compose:n}):n}}var n$=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function YH(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...n$].join(" ")}function XH(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...n$].join(" ")}var QH={"--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(" ")},JH={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function eK(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var tK={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},F_={"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"},rK=new Set(Object.values(F_)),j_=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),nK=e=>e.trim();function iK(e,t){if(e==null||j_.has(e))return e;if(!(D_(e)||j_.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],s=i==null?void 0:i[2];if(!o||!s)return e;const l=o.includes("-gradient")?o:`${o}-gradient`,[u,...d]=s.split(",").map(nK).filter(Boolean);if((d==null?void 0:d.length)===0)return e;const f=u in F_?F_[u]:u;d.unshift(f);const h=d.map(m=>{if(rK.has(m))return m;const v=m.indexOf(" "),[x,g]=v!==-1?[m.substr(0,v),m.substr(v+1)]:[m],S=D_(g)?g:g&&g.split(" "),b=`colors.${x}`,y=b in t.__cssMap?t.__cssMap[b].varRef:x;return S?[y,...Array.isArray(S)?S:[S]].join(" "):y});return`${l}(${h.join(", ")})`}var D_=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),oK=(e,t)=>iK(e,t??{});function sK(e){return/^var\(--.+\)$/.test(e)}var aK=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},wo=e=>t=>`${e}(${t})`,bt={filter(e){return e!=="auto"?e:QH},backdropFilter(e){return e!=="auto"?e:JH},ring(e){return eK(bt.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?YH():e==="auto-gpu"?XH():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=aK(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(sK(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:oK,blur:wo("blur"),opacity:wo("opacity"),brightness:wo("brightness"),contrast:wo("contrast"),dropShadow:wo("drop-shadow"),grayscale:wo("grayscale"),hueRotate:e=>wo("hue-rotate")(bt.degree(e)),invert:wo("invert"),saturate:wo("saturate"),sepia:wo("sepia"),bgImage(e){return e==null||D_(e)||j_.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=tK[e])!=null?t:{},i={flexDirection:e};return r&&(i[r]=1),n&&(i[n]=1),i}},ne={borderWidths:Ci("borderWidths"),borderStyles:Ci("borderStyles"),colors:Ci("colors"),borders:Ci("borders"),gradients:Ci("gradients",bt.gradient),radii:Ci("radii",bt.px),space:Ci("space",Vm(bt.vh,bt.px)),spaceT:Ci("space",Vm(bt.vh,bt.px)),degreeT(e){return{property:e,transform:bt.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:XS({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Ci("sizes",Vm(bt.vh,bt.px)),sizesT:Ci("sizes",Vm(bt.vh,bt.fraction)),shadows:Ci("shadows"),logical:qH,blur:Ci("blur",bt.blur)},Sv={background:ne.colors("background"),backgroundColor:ne.colors("backgroundColor"),backgroundImage:ne.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:bt.bgClip},bgSize:ne.prop("backgroundSize"),bgPosition:ne.prop("backgroundPosition"),bg:ne.colors("background"),bgColor:ne.colors("backgroundColor"),bgPos:ne.prop("backgroundPosition"),bgRepeat:ne.prop("backgroundRepeat"),bgAttachment:ne.prop("backgroundAttachment"),bgGradient:ne.gradients("backgroundImage"),bgClip:{transform:bt.bgClip}};Object.assign(Sv,{bgImage:Sv.backgroundImage,bgImg:Sv.backgroundImage});var Ct={border:ne.borders("border"),borderWidth:ne.borderWidths("borderWidth"),borderStyle:ne.borderStyles("borderStyle"),borderColor:ne.colors("borderColor"),borderRadius:ne.radii("borderRadius"),borderTop:ne.borders("borderTop"),borderBlockStart:ne.borders("borderBlockStart"),borderTopLeftRadius:ne.radii("borderTopLeftRadius"),borderStartStartRadius:ne.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:ne.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:ne.radii("borderTopRightRadius"),borderStartEndRadius:ne.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:ne.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:ne.borders("borderRight"),borderInlineEnd:ne.borders("borderInlineEnd"),borderBottom:ne.borders("borderBottom"),borderBlockEnd:ne.borders("borderBlockEnd"),borderBottomLeftRadius:ne.radii("borderBottomLeftRadius"),borderBottomRightRadius:ne.radii("borderBottomRightRadius"),borderLeft:ne.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:ne.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:ne.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:ne.borders(["borderLeft","borderRight"]),borderInline:ne.borders("borderInline"),borderY:ne.borders(["borderTop","borderBottom"]),borderBlock:ne.borders("borderBlock"),borderTopWidth:ne.borderWidths("borderTopWidth"),borderBlockStartWidth:ne.borderWidths("borderBlockStartWidth"),borderTopColor:ne.colors("borderTopColor"),borderBlockStartColor:ne.colors("borderBlockStartColor"),borderTopStyle:ne.borderStyles("borderTopStyle"),borderBlockStartStyle:ne.borderStyles("borderBlockStartStyle"),borderBottomWidth:ne.borderWidths("borderBottomWidth"),borderBlockEndWidth:ne.borderWidths("borderBlockEndWidth"),borderBottomColor:ne.colors("borderBottomColor"),borderBlockEndColor:ne.colors("borderBlockEndColor"),borderBottomStyle:ne.borderStyles("borderBottomStyle"),borderBlockEndStyle:ne.borderStyles("borderBlockEndStyle"),borderLeftWidth:ne.borderWidths("borderLeftWidth"),borderInlineStartWidth:ne.borderWidths("borderInlineStartWidth"),borderLeftColor:ne.colors("borderLeftColor"),borderInlineStartColor:ne.colors("borderInlineStartColor"),borderLeftStyle:ne.borderStyles("borderLeftStyle"),borderInlineStartStyle:ne.borderStyles("borderInlineStartStyle"),borderRightWidth:ne.borderWidths("borderRightWidth"),borderInlineEndWidth:ne.borderWidths("borderInlineEndWidth"),borderRightColor:ne.colors("borderRightColor"),borderInlineEndColor:ne.colors("borderInlineEndColor"),borderRightStyle:ne.borderStyles("borderRightStyle"),borderInlineEndStyle:ne.borderStyles("borderInlineEndStyle"),borderTopRadius:ne.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:ne.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:ne.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:ne.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ct,{rounded:Ct.borderRadius,roundedTop:Ct.borderTopRadius,roundedTopLeft:Ct.borderTopLeftRadius,roundedTopRight:Ct.borderTopRightRadius,roundedTopStart:Ct.borderStartStartRadius,roundedTopEnd:Ct.borderStartEndRadius,roundedBottom:Ct.borderBottomRadius,roundedBottomLeft:Ct.borderBottomLeftRadius,roundedBottomRight:Ct.borderBottomRightRadius,roundedBottomStart:Ct.borderEndStartRadius,roundedBottomEnd:Ct.borderEndEndRadius,roundedLeft:Ct.borderLeftRadius,roundedRight:Ct.borderRightRadius,roundedStart:Ct.borderInlineStartRadius,roundedEnd:Ct.borderInlineEndRadius,borderStart:Ct.borderInlineStart,borderEnd:Ct.borderInlineEnd,borderTopStartRadius:Ct.borderStartStartRadius,borderTopEndRadius:Ct.borderStartEndRadius,borderBottomStartRadius:Ct.borderEndStartRadius,borderBottomEndRadius:Ct.borderEndEndRadius,borderStartRadius:Ct.borderInlineStartRadius,borderEndRadius:Ct.borderInlineEndRadius,borderStartWidth:Ct.borderInlineStartWidth,borderEndWidth:Ct.borderInlineEndWidth,borderStartColor:Ct.borderInlineStartColor,borderEndColor:Ct.borderInlineEndColor,borderStartStyle:Ct.borderInlineStartStyle,borderEndStyle:Ct.borderInlineEndStyle});var lK={color:ne.colors("color"),textColor:ne.colors("color"),fill:ne.colors("fill"),stroke:ne.colors("stroke")},M_={boxShadow:ne.shadows("boxShadow"),mixBlendMode:!0,blendMode:ne.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:ne.prop("backgroundBlendMode"),opacity:!0};Object.assign(M_,{shadow:M_.boxShadow});var uK={filter:{transform:bt.filter},blur:ne.blur("--chakra-blur"),brightness:ne.propT("--chakra-brightness",bt.brightness),contrast:ne.propT("--chakra-contrast",bt.contrast),hueRotate:ne.propT("--chakra-hue-rotate",bt.hueRotate),invert:ne.propT("--chakra-invert",bt.invert),saturate:ne.propT("--chakra-saturate",bt.saturate),dropShadow:ne.propT("--chakra-drop-shadow",bt.dropShadow),backdropFilter:{transform:bt.backdropFilter},backdropBlur:ne.blur("--chakra-backdrop-blur"),backdropBrightness:ne.propT("--chakra-backdrop-brightness",bt.brightness),backdropContrast:ne.propT("--chakra-backdrop-contrast",bt.contrast),backdropHueRotate:ne.propT("--chakra-backdrop-hue-rotate",bt.hueRotate),backdropInvert:ne.propT("--chakra-backdrop-invert",bt.invert),backdropSaturate:ne.propT("--chakra-backdrop-saturate",bt.saturate)},Og={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:bt.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:ne.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:ne.space("gap"),rowGap:ne.space("rowGap"),columnGap:ne.space("columnGap")};Object.assign(Og,{flexDir:Og.flexDirection});var i$={gridGap:ne.space("gridGap"),gridColumnGap:ne.space("gridColumnGap"),gridRowGap:ne.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},cK={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:bt.outline},outlineOffset:!0,outlineColor:ne.colors("outlineColor")},Ei={width:ne.sizesT("width"),inlineSize:ne.sizesT("inlineSize"),height:ne.sizes("height"),blockSize:ne.sizes("blockSize"),boxSize:ne.sizes(["width","height"]),minWidth:ne.sizes("minWidth"),minInlineSize:ne.sizes("minInlineSize"),minHeight:ne.sizes("minHeight"),minBlockSize:ne.sizes("minBlockSize"),maxWidth:ne.sizes("maxWidth"),maxInlineSize:ne.sizes("maxInlineSize"),maxHeight:ne.sizes("maxHeight"),maxBlockSize:ne.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 r,n,i;return{[`@media screen and (min-width: ${(i=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (max-width: ${(i=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:ne.propT("float",bt.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ei,{w:Ei.width,h:Ei.height,minW:Ei.minWidth,maxW:Ei.maxWidth,minH:Ei.minHeight,maxH:Ei.maxHeight,overscroll:Ei.overscrollBehavior,overscrollX:Ei.overscrollBehaviorX,overscrollY:Ei.overscrollBehaviorY});var dK={listStyleType:!0,listStylePosition:!0,listStylePos:ne.prop("listStylePosition"),listStyleImage:!0,listStyleImg:ne.prop("listStyleImage")};function fK(e,t,r,n){const i=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,i,o,s)=>{if(typeof n>"u")return e(n,i,o);t.has(n)||t.set(n,new Map);const l=t.get(n);if(l.has(i))return l.get(i);const u=e(n,i,o,s);return l.set(i,u),u}},pK=hK(fK),mK={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},vK={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},z1=(e,t,r)=>{const n={},i=pK(e,t,{});for(const o in i)o in r&&r[o]!=null||(n[o]=i[o]);return n},gK={srOnly:{transform(e){return e===!0?mK:e==="focusable"?vK:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>z1(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>z1(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>z1(t,e,r)}},xf={position:!0,pos:ne.prop("position"),zIndex:ne.prop("zIndex","zIndices"),inset:ne.spaceT("inset"),insetX:ne.spaceT(["left","right"]),insetInline:ne.spaceT("insetInline"),insetY:ne.spaceT(["top","bottom"]),insetBlock:ne.spaceT("insetBlock"),top:ne.spaceT("top"),insetBlockStart:ne.spaceT("insetBlockStart"),bottom:ne.spaceT("bottom"),insetBlockEnd:ne.spaceT("insetBlockEnd"),left:ne.spaceT("left"),insetInlineStart:ne.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:ne.spaceT("right"),insetInlineEnd:ne.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(xf,{insetStart:xf.insetInlineStart,insetEnd:xf.insetInlineEnd});var yK={ring:{transform:bt.ring},ringColor:ne.colors("--chakra-ring-color"),ringOffset:ne.prop("--chakra-ring-offset-width"),ringOffsetColor:ne.colors("--chakra-ring-offset-color"),ringInset:ne.prop("--chakra-ring-inset")},Xt={margin:ne.spaceT("margin"),marginTop:ne.spaceT("marginTop"),marginBlockStart:ne.spaceT("marginBlockStart"),marginRight:ne.spaceT("marginRight"),marginInlineEnd:ne.spaceT("marginInlineEnd"),marginBottom:ne.spaceT("marginBottom"),marginBlockEnd:ne.spaceT("marginBlockEnd"),marginLeft:ne.spaceT("marginLeft"),marginInlineStart:ne.spaceT("marginInlineStart"),marginX:ne.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:ne.spaceT("marginInline"),marginY:ne.spaceT(["marginTop","marginBottom"]),marginBlock:ne.spaceT("marginBlock"),padding:ne.space("padding"),paddingTop:ne.space("paddingTop"),paddingBlockStart:ne.space("paddingBlockStart"),paddingRight:ne.space("paddingRight"),paddingBottom:ne.space("paddingBottom"),paddingBlockEnd:ne.space("paddingBlockEnd"),paddingLeft:ne.space("paddingLeft"),paddingInlineStart:ne.space("paddingInlineStart"),paddingInlineEnd:ne.space("paddingInlineEnd"),paddingX:ne.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:ne.space("paddingInline"),paddingY:ne.space(["paddingTop","paddingBottom"]),paddingBlock:ne.space("paddingBlock")};Object.assign(Xt,{m:Xt.margin,mt:Xt.marginTop,mr:Xt.marginRight,me:Xt.marginInlineEnd,marginEnd:Xt.marginInlineEnd,mb:Xt.marginBottom,ml:Xt.marginLeft,ms:Xt.marginInlineStart,marginStart:Xt.marginInlineStart,mx:Xt.marginX,my:Xt.marginY,p:Xt.padding,pt:Xt.paddingTop,py:Xt.paddingY,px:Xt.paddingX,pb:Xt.paddingBottom,pl:Xt.paddingLeft,ps:Xt.paddingInlineStart,paddingStart:Xt.paddingInlineStart,pr:Xt.paddingRight,pe:Xt.paddingInlineEnd,paddingEnd:Xt.paddingInlineEnd});var bK={textDecorationColor:ne.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:ne.shadows("textShadow")},xK={clipPath:!0,transform:ne.propT("transform",bt.transform),transformOrigin:!0,translateX:ne.spaceT("--chakra-translate-x"),translateY:ne.spaceT("--chakra-translate-y"),skewX:ne.degreeT("--chakra-skew-x"),skewY:ne.degreeT("--chakra-skew-y"),scaleX:ne.prop("--chakra-scale-x"),scaleY:ne.prop("--chakra-scale-y"),scale:ne.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:ne.degreeT("--chakra-rotate")},_K={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:ne.prop("transitionDuration","transition.duration"),transitionProperty:ne.prop("transitionProperty","transition.property"),transitionTimingFunction:ne.prop("transitionTimingFunction","transition.easing")},wK={fontFamily:ne.prop("fontFamily","fonts"),fontSize:ne.prop("fontSize","fontSizes",bt.px),fontWeight:ne.prop("fontWeight","fontWeights"),lineHeight:ne.prop("lineHeight","lineHeights"),letterSpacing:ne.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},SK={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:ne.spaceT("scrollMargin"),scrollMarginTop:ne.spaceT("scrollMarginTop"),scrollMarginBottom:ne.spaceT("scrollMarginBottom"),scrollMarginLeft:ne.spaceT("scrollMarginLeft"),scrollMarginRight:ne.spaceT("scrollMarginRight"),scrollMarginX:ne.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:ne.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:ne.spaceT("scrollPadding"),scrollPaddingTop:ne.spaceT("scrollPaddingTop"),scrollPaddingBottom:ne.spaceT("scrollPaddingBottom"),scrollPaddingLeft:ne.spaceT("scrollPaddingLeft"),scrollPaddingRight:ne.spaceT("scrollPaddingRight"),scrollPaddingX:ne.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:ne.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function o$(e){return zi(e)&&e.reference?e.reference:String(e)}var D0=(e,...t)=>t.map(o$).join(` ${e} `).replace(/calc/g,""),fP=(...e)=>`calc(${D0("+",...e)})`,hP=(...e)=>`calc(${D0("-",...e)})`,z_=(...e)=>`calc(${D0("*",...e)})`,pP=(...e)=>`calc(${D0("/",...e)})`,mP=e=>{const t=o$(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:z_(t,-1)},al=Object.assign(e=>({add:(...t)=>al(fP(e,...t)),subtract:(...t)=>al(hP(e,...t)),multiply:(...t)=>al(z_(e,...t)),divide:(...t)=>al(pP(e,...t)),negate:()=>al(mP(e)),toString:()=>e.toString()}),{add:fP,subtract:hP,multiply:z_,divide:pP,negate:mP});function kK(e,t="-"){return e.replace(/\s+/g,t)}function CK(e){const t=kK(e.toString());return EK(TK(t))}function TK(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function EK(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function PK(e,t=""){return[t,e].filter(Boolean).join("-")}function AK(e,t){return`var(${e}${t?`, ${t}`:""})`}function RK(e,t=""){return CK(`--${PK(e,t)}`)}function Ge(e,t,r){const n=RK(e,r);return{variable:n,reference:AK(n,t)}}function OK(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[i,o]=n;r[i]=Ge(`${e}-${i}`,o);continue}r[n]=Ge(`${e}-${n}`)}return r}function IK(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function $K(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function L_(e){if(e==null)return e;const{unitless:t}=$K(e);return t||typeof e=="number"?`${e}px`:e}var s$=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,QS=e=>Object.fromEntries(Object.entries(e).sort(s$));function vP(e){const t=QS(e);return Object.assign(Object.values(t),t)}function FK(e){const t=Object.keys(QS(e));return new Set(t)}function gP(e){var t;if(!e)return e;e=(t=L_(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Qd(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${L_(e)})`),t&&r.push("and",`(max-width: ${L_(t)})`),r.join(" ")}function jK(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=vP(e),n=Object.entries(e).sort(s$).map(([s,l],u,d)=>{var f;let[,h]=(f=d[u+1])!=null?f:[];return h=parseFloat(h)>0?gP(h):void 0,{_minW:gP(l),breakpoint:s,minW:l,maxW:h,maxWQuery:Qd(null,h),minWQuery:Qd(l),minMaxQuery:Qd(l,h)}}),i=FK(e),o=Array.from(i.values());return{keys:i,normalized:r,isResponsive(s){const l=Object.keys(s);return l.length>0&&l.every(u=>i.has(u))},asObject:QS(e),asArray:vP(e),details:n,get(s){return n.find(l=>l.breakpoint===s)},media:[null,...r.map(s=>Qd(s)).slice(1)],toArrayValue(s){if(!zi(s))throw new Error("toArrayValue: value must be an object");const l=o.map(u=>{var d;return(d=s[u])!=null?d:null});for(;IK(l)===null;)l.pop();return l},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((l,u,d)=>{const f=o[d];return f!=null&&u!=null&&(l[f]=u),l},{})}}}var qr={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Ys=e=>a$(t=>e(t,"&"),"[role=group]","[data-group]",".group"),is=e=>a$(t=>e(t,"~ &"),"[data-peer]",".peer"),a$=(e,...t)=>t.map(e).join(", "),M0={_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:Ys(qr.hover),_peerHover:is(qr.hover),_groupFocus:Ys(qr.focus),_peerFocus:is(qr.focus),_groupFocusVisible:Ys(qr.focusVisible),_peerFocusVisible:is(qr.focusVisible),_groupActive:Ys(qr.active),_peerActive:is(qr.active),_groupDisabled:Ys(qr.disabled),_peerDisabled:is(qr.disabled),_groupInvalid:Ys(qr.invalid),_peerInvalid:is(qr.invalid),_groupChecked:Ys(qr.checked),_peerChecked:is(qr.checked),_groupFocusWithin:Ys(qr.focusWithin),_peerFocusWithin:is(qr.focusWithin),_peerPlaceholderShown:is(qr.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},l$=Object.keys(M0);function yP(e,t){return Ge(String(e).replace(/\./g,"-"),void 0,t)}function DK(e,t){let r={};const n={};for(const[i,o]of Object.entries(e)){const{isSemantic:s,value:l}=o,{variable:u,reference:d}=yP(i,t==null?void 0:t.cssVarPrefix);if(!s){if(i.startsWith("space")){const m=i.split("."),[v,...x]=m,g=`${v}.-${x.join(".")}`,S=al.negate(l),b=al.negate(d);n[g]={value:S,var:u,varRef:b}}r[u]=l,n[i]={value:l,var:u,varRef:d};continue}const f=m=>{const x=[String(i).split(".")[0],m].join(".");if(!e[x])return m;const{reference:S}=yP(x,t==null?void 0:t.cssVarPrefix);return S},h=zi(l)?l:{default:l};r=Di(r,Object.entries(h).reduce((m,[v,x])=>{var g,S;if(!x)return m;const b=f(`${x}`);if(v==="default")return m[u]=b,m;const y=(S=(g=M0)==null?void 0:g[v])!=null?S:v;return m[y]={[u]:b},m},{})),n[i]={value:d,var:u,varRef:d}}return{cssVars:r,cssMap:n}}function MK(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function zK(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function LK(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function bP(e,t,r={}){const{stop:n,getKey:i}=r;function o(s,l=[]){var u;if(LK(s)||Array.isArray(s)){const d={};for(const[f,h]of Object.entries(s)){const m=(u=i==null?void 0:i(f))!=null?u:f,v=[...l,m];if(n!=null&&n(s,v))return t(s,l);d[m]=o(h,v)}return d}return t(s,l)}return o(e)}var NK=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function BK(e){return zK(e,NK)}function VK(e){return e.semanticTokens}function WK(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}var UK=e=>l$.includes(e)||e==="default";function HK({tokens:e,semanticTokens:t}){const r={};return bP(e,(n,i)=>{n!=null&&(r[i.join(".")]={isSemantic:!1,value:n})}),bP(t,(n,i)=>{n!=null&&(r[i.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(UK)}),r}function KK(e){var t;const r=WK(e),n=BK(r),i=VK(r),o=HK({tokens:n,semanticTokens:i}),s=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:l,cssVars:u}=DK(o,{cssVarPrefix:s});return Object.assign(r,{__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"},...u},__cssMap:l,__breakpoints:jK(r.breakpoints)}),r}var JS=Di({},Sv,Ct,lK,Og,Ei,uK,yK,cK,i$,gK,xf,M_,Xt,SK,wK,bK,xK,dK,_K),GK=Object.assign({},Xt,Ei,Og,i$,xf),ZK=Object.keys(GK),qK=[...Object.keys(JS),...l$],YK={...JS,...M0},XK=e=>e in YK,QK=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:i}=t.__breakpoints,o={};for(const s in e){let l=fa(e[s],t);if(l==null)continue;if(l=zi(l)&&r(l)?n(l):l,!Array.isArray(l)){o[s]=l;continue}const u=l.slice(0,i.length).length;for(let d=0;de.startsWith("--")&&typeof t=="string"&&!eG(t),rG=(e,t)=>{var r,n;if(t==null)return t;const i=u=>{var d,f;return(f=(d=e.__cssMap)==null?void 0:d[u])==null?void 0:f.varRef},o=u=>{var d;return(d=i(u))!=null?d:u},[s,l]=JK(t);return t=(n=(r=i(s))!=null?r:o(l))!=null?n:o(t),t};function nG(e){const{configs:t={},pseudos:r={},theme:n}=e,i=(o,s=!1)=>{var l,u,d;const f=fa(o,n),h=QK(f)(n);let m={};for(let v in h){const x=h[v];let g=fa(x,n);v in r&&(v=r[v]),tG(v,g)&&(g=rG(n,g));let S=t[v];if(S===!0&&(S={property:v}),zi(g)){m[v]=(l=m[v])!=null?l:{},m[v]=Di({},m[v],i(g,!0));continue}let b=(d=(u=S==null?void 0:S.transform)==null?void 0:u.call(S,g,n,f))!=null?d:g;b=S!=null&&S.processResult?i(b,!0):b;const y=fa(S==null?void 0:S.property,n);if(!s&&(S!=null&&S.static)){const _=fa(S.static,n);m=Di({},m,_)}if(y&&Array.isArray(y)){for(const _ of y)m[_]=b;continue}if(y){y==="&"&&zi(b)?m=Di({},m,b):m[y]=b;continue}if(zi(b)){m=Di({},m,b);continue}m[v]=b}return m};return i}var u$=e=>t=>nG({theme:t,pseudos:M0,configs:JS})(e);function Ut(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function iG(e,t){if(Array.isArray(e))return e;if(zi(e))return t(e);if(e!=null)return[e]}function oG(e,t){for(let r=t+1;r{Di(d,{[_]:m?y[_]:{[b]:y[_]}})});continue}if(!v){m?Di(d,y):d[b]=y;continue}d[b]=y}}return d}}function aG(e){return t=>{var r;const{variant:n,size:i,theme:o}=t,s=sG(o);return Di({},fa((r=e.baseStyle)!=null?r:{},t),s(e,"sizes",i,t),s(e,"variants",n,t))}}function lG(e,t,r){var n,i,o;return(o=(i=(n=e.__cssMap)==null?void 0:n[`${t}.${r}`])==null?void 0:i.varRef)!=null?o:r}function bn(e){return MK(e,["styleConfig","size","variant","colorScheme"])}var uG=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function cG(e){return zi(e)?uG.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var dG={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"},fG={"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)"},hG={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},pG={property:dG,easing:fG,duration:hG},mG=pG,vG={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},gG=vG,yG={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},bG=yG,xG={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},_G=xG,wG={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"}},SG=wG,kG={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},CG=kG,TG={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"},EG=TG,PG={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},AG=PG,RG={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"}},c$=RG,d$={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"},OG={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"},IG={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},$G={...d$,...OG,container:IG},f$=$G,FG={breakpoints:_G,zIndices:gG,radii:CG,blur:AG,colors:SG,...c$,sizes:f$,shadows:EG,space:d$,borders:bG,transition:mG},{defineMultiStyleConfig:jG,definePartsStyle:Jd}=Ut(["stepper","step","title","description","indicator","separator","icon","number"]),cs=Ge("stepper-indicator-size"),Hu=Ge("stepper-icon-size"),Ku=Ge("stepper-title-font-size"),ef=Ge("stepper-description-font-size"),Ld=Ge("stepper-accent-color"),DG=Jd(({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"},[Ld.variable]:`colors.${e}.500`,_dark:{[Ld.variable]:`colors.${e}.200`}},title:{fontSize:Ku.reference,fontWeight:"medium"},description:{fontSize:ef.reference,color:"chakra-subtle-text"},number:{fontSize:Ku.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:Hu.reference,height:Hu.reference},indicator:{flexShrink:0,borderRadius:"full",width:cs.reference,height:cs.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Ld.reference},"&[data-status=complete]":{bg:Ld.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Ld.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${cs.reference} - 8px)`,top:`calc(${cs.reference} + 4px)`,insetStart:`calc(${cs.reference} / 2 - 1px)`}}})),MG=jG({baseStyle:DG,sizes:{xs:Jd({stepper:{[cs.variable]:"sizes.4",[Hu.variable]:"sizes.3",[Ku.variable]:"fontSizes.xs",[ef.variable]:"fontSizes.xs"}}),sm:Jd({stepper:{[cs.variable]:"sizes.6",[Hu.variable]:"sizes.4",[Ku.variable]:"fontSizes.sm",[ef.variable]:"fontSizes.xs"}}),md:Jd({stepper:{[cs.variable]:"sizes.8",[Hu.variable]:"sizes.5",[Ku.variable]:"fontSizes.md",[ef.variable]:"fontSizes.sm"}}),lg:Jd({stepper:{[cs.variable]:"sizes.10",[Hu.variable]:"sizes.6",[Ku.variable]:"fontSizes.lg",[ef.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function At(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...f){n();for(const h of f)t[h]=u(h);return At(e,t)}function o(...f){for(const h of f)h in t||(t[h]=u(h));return At(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.className]))}function u(f){const v=`chakra-${(["container","root"].includes(f??"")?[e]:[e,f]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>f}}return{parts:i,toPart:u,extend:o,selectors:s,classnames:l,get keys(){return Object.keys(t)},__type:{}}}var zG=At("accordion").parts("root","container","button","panel").extend("icon"),LG=At("alert").parts("title","description","container").extend("icon","spinner"),NG=At("avatar").parts("label","badge","container").extend("excessLabel","group"),BG=At("breadcrumb").parts("link","item","container").extend("separator");At("button").parts();var h$=At("checkbox").parts("control","icon","container").extend("label");At("progress").parts("track","filledTrack").extend("label");var VG=At("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),WG=At("editable").parts("preview","input","textarea"),UG=At("form").parts("container","requiredIndicator","helperText"),HG=At("formError").parts("text","icon"),KG=At("input").parts("addon","field","element","group"),GG=At("list").parts("container","item","icon"),ZG=At("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),qG=At("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),YG=At("numberinput").parts("root","field","stepperGroup","stepper");At("pininput").parts("field");var XG=At("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),QG=At("progress").parts("label","filledTrack","track"),JG=At("radio").parts("container","control","label"),eZ=At("select").parts("field","icon"),tZ=At("slider").parts("container","track","thumb","filledTrack","mark"),rZ=At("stat").parts("container","label","helpText","number","icon"),nZ=At("switch").parts("container","track","thumb","label"),iZ=At("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),oZ=At("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),sZ=At("tag").parts("container","label","closeButton"),aZ=At("card").parts("container","header","body","footer");At("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function pl(e,t,r){return Math.min(Math.max(e,r),t)}class lZ extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var tf=lZ;function ek(e){if(typeof e!="string")throw new tf(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=vZ.test(e)?dZ(e):e;const r=fZ.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(l=>parseInt(ph(l,2),16)),parseInt(ph(s[3]||"f",2),16)/255]}const n=hZ.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(l=>parseInt(l,16)),parseInt(s[3]||"ff",16)/255]}const i=pZ.exec(t);if(i){const s=Array.from(i).slice(1);return[...s.slice(0,3).map(l=>parseInt(l,10)),parseFloat(s[3]||"1")]}const o=mZ.exec(t);if(o){const[s,l,u,d]=Array.from(o).slice(1).map(parseFloat);if(pl(0,100,l)!==l)throw new tf(e);if(pl(0,100,u)!==u)throw new tf(e);return[...gZ(s,l,u),Number.isNaN(d)?1:d]}throw new tf(e)}function uZ(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const xP=e=>parseInt(e.replace(/_/g,""),36),cZ="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 r=xP(t.substring(0,3)),n=xP(t.substring(3)).toString(16);let i="";for(let o=0;o<6-n.length;o++)i+="0";return e[r]=`${i}${n}`,e},{});function dZ(e){const t=e.toLowerCase().trim(),r=cZ[uZ(t)];if(!r)throw new tf(e);return`#${r}`}const ph=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),fZ=new RegExp(`^#${ph("([a-f0-9])",3)}([a-f0-9])?$`,"i"),hZ=new RegExp(`^#${ph("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),pZ=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ph(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),mZ=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,vZ=/^[a-z]+$/i,_P=e=>Math.round(e*255),gZ=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(_P);const i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*(t/100),s=o*(1-Math.abs(i%2-1));let l=0,u=0,d=0;i>=0&&i<1?(l=o,u=s):i>=1&&i<2?(l=s,u=o):i>=2&&i<3?(u=o,d=s):i>=3&&i<4?(u=s,d=o):i>=4&&i<5?(l=s,d=o):i>=5&&i<6&&(l=o,d=s);const f=n-o/2,h=l+f,m=u+f,v=d+f;return[h,m,v].map(_P)};function yZ(e,t,r,n){return`rgba(${pl(0,255,e).toFixed()}, ${pl(0,255,t).toFixed()}, ${pl(0,255,r).toFixed()}, ${parseFloat(pl(0,1,n).toFixed(3))})`}function bZ(e,t){const[r,n,i,o]=ek(e);return yZ(r,n,i,o-t)}function xZ(e){const[t,r,n,i]=ek(e);let o=s=>{const l=pl(0,255,s).toString(16);return l.length===1?`0${l}`:l};return`#${o(t)}${o(r)}${o(n)}${i<1?o(Math.round(i*255)):""}`}function _Z(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,Cn=(e,t,r)=>{const n=_Z(e,`colors.${t}`,t);try{return xZ(n),n}catch{return r??"#000000"}},SZ=e=>{const[t,r,n]=ek(e);return(t*299+r*587+n*114)/1e3},kZ=e=>t=>{const r=Cn(t,e);return SZ(r)<128?"dark":"light"},CZ=e=>t=>kZ(e)(t)==="dark",$c=(e,t)=>r=>{const n=Cn(r,e);return bZ(n,1-t)};function wP(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${t} 25%, + transparent 25%, + transparent 50%, + ${t} 50%, + ${t} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${e} ${e}`}}var TZ=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function EZ(e){const t=TZ();return!e||wZ(e)?t:e.string&&e.colors?AZ(e.string,e.colors):e.string&&!e.colors?PZ(e.string):e.colors&&!e.string?RZ(e.colors):t}function PZ(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${i.toString(16)}`.substr(-2)}return r}function AZ(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function tk(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function p$(e){return zi(e)&&e.reference?e.reference:String(e)}var z0=(e,...t)=>t.map(p$).join(` ${e} `).replace(/calc/g,""),SP=(...e)=>`calc(${z0("+",...e)})`,kP=(...e)=>`calc(${z0("-",...e)})`,N_=(...e)=>`calc(${z0("*",...e)})`,CP=(...e)=>`calc(${z0("/",...e)})`,TP=e=>{const t=p$(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:N_(t,-1)},ds=Object.assign(e=>({add:(...t)=>ds(SP(e,...t)),subtract:(...t)=>ds(kP(e,...t)),multiply:(...t)=>ds(N_(e,...t)),divide:(...t)=>ds(CP(e,...t)),negate:()=>ds(TP(e)),toString:()=>e.toString()}),{add:SP,subtract:kP,multiply:N_,divide:CP,negate:TP});function OZ(e){return!Number.isInteger(parseFloat(e.toString()))}function IZ(e,t="-"){return e.replace(/\s+/g,t)}function m$(e){const t=IZ(e.toString());return t.includes("\\.")?e:OZ(e)?t.replace(".","\\."):e}function $Z(e,t=""){return[t,m$(e)].filter(Boolean).join("-")}function FZ(e,t){return`var(${m$(e)}${t?`, ${t}`:""})`}function jZ(e,t=""){return`--${$Z(e,t)}`}function Lr(e,t){const r=jZ(e,void 0);return{variable:r,reference:FZ(r,DZ(void 0))}}function DZ(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:MZ,definePartsStyle:kv}=Ut(nZ.keys),_f=Lr("switch-track-width"),bl=Lr("switch-track-height"),L1=Lr("switch-track-diff"),zZ=ds.subtract(_f,bl),B_=Lr("switch-thumb-x"),Nd=Lr("switch-bg"),LZ=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[_f.reference],height:[bl.reference],transitionProperty:"common",transitionDuration:"fast",[Nd.variable]:"colors.gray.300",_dark:{[Nd.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Nd.variable]:`colors.${t}.500`,_dark:{[Nd.variable]:`colors.${t}.200`}},bg:Nd.reference}},NZ={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[bl.reference],height:[bl.reference],_checked:{transform:`translateX(${B_.reference})`}},BZ=kv(e=>({container:{[L1.variable]:zZ,[B_.variable]:L1.reference,_rtl:{[B_.variable]:ds(L1).negate().toString()}},track:LZ(e),thumb:NZ})),VZ={sm:kv({container:{[_f.variable]:"1.375rem",[bl.variable]:"sizes.3"}}),md:kv({container:{[_f.variable]:"1.875rem",[bl.variable]:"sizes.4"}}),lg:kv({container:{[_f.variable]:"2.875rem",[bl.variable]:"sizes.6"}})},WZ=MZ({baseStyle:BZ,sizes:VZ,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:UZ,definePartsStyle:fc}=Ut(iZ.keys),HZ=fc({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"}}),Ig={"&[data-is-numeric=true]":{textAlign:"end"}},KZ=fc(e=>{const{colorScheme:t}=e;return{th:{color:Ke("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Ke(`${t}.100`,`${t}.700`)(e),...Ig},td:{borderBottom:"1px",borderColor:Ke(`${t}.100`,`${t}.700`)(e),...Ig},caption:{color:Ke("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),GZ=fc(e=>{const{colorScheme:t}=e;return{th:{color:Ke("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Ke(`${t}.100`,`${t}.700`)(e),...Ig},td:{borderBottom:"1px",borderColor:Ke(`${t}.100`,`${t}.700`)(e),...Ig},caption:{color:Ke("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Ke(`${t}.100`,`${t}.700`)(e)},td:{background:Ke(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),ZZ={simple:KZ,striped:GZ,unstyled:{}},qZ={sm:fc({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:fc({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:fc({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},YZ=UZ({baseStyle:HZ,variants:ZZ,sizes:qZ,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Nn=Ge("tabs-color"),io=Ge("tabs-bg"),Wm=Ge("tabs-border-color"),{defineMultiStyleConfig:XZ,definePartsStyle:Do}=Ut(oZ.keys),QZ=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},JZ=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}}},eq=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},tq={p:4},rq=Do(e=>({root:QZ(e),tab:JZ(e),tablist:eq(e),tabpanel:tq})),nq={sm:Do({tab:{py:1,px:4,fontSize:"sm"}}),md:Do({tab:{fontSize:"md",py:2,px:4}}),lg:Do({tab:{fontSize:"lg",py:3,px:4}})},iq=Do(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",i=n?"borderStart":"borderBottom",o=n?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[Nn.variable]:`colors.${t}.600`,_dark:{[Nn.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[io.variable]:"colors.gray.200",_dark:{[io.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Nn.reference,bg:io.reference}}}),oq=Do(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Wm.variable]:"transparent",_selected:{[Nn.variable]:`colors.${t}.600`,[Wm.variable]:"colors.white",_dark:{[Nn.variable]:`colors.${t}.300`,[Wm.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Wm.reference},color:Nn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),sq=Do(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[io.variable]:"colors.gray.50",_dark:{[io.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[io.variable]:"colors.white",[Nn.variable]:`colors.${t}.600`,_dark:{[io.variable]:"colors.gray.800",[Nn.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Nn.reference,bg:io.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),aq=Do(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Cn(r,`${t}.700`),bg:Cn(r,`${t}.100`)}}}}),lq=Do(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Nn.variable]:"colors.gray.600",_dark:{[Nn.variable]:"inherit"},_selected:{[Nn.variable]:"colors.white",[io.variable]:`colors.${t}.600`,_dark:{[Nn.variable]:"colors.gray.800",[io.variable]:`colors.${t}.300`}},color:Nn.reference,bg:io.reference}}}),uq=Do({}),cq={line:iq,enclosed:oq,"enclosed-colored":sq,"soft-rounded":aq,"solid-rounded":lq,unstyled:uq},dq=XZ({baseStyle:rq,sizes:nq,variants:cq,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Er=OK("badge",["bg","color","shadow"]),fq={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Er.bg.reference,color:Er.color.reference,boxShadow:Er.shadow.reference},hq=e=>{const{colorScheme:t,theme:r}=e,n=$c(`${t}.500`,.6)(r);return{[Er.bg.variable]:`colors.${t}.500`,[Er.color.variable]:"colors.white",_dark:{[Er.bg.variable]:n,[Er.color.variable]:"colors.whiteAlpha.800"}}},pq=e=>{const{colorScheme:t,theme:r}=e,n=$c(`${t}.200`,.16)(r);return{[Er.bg.variable]:`colors.${t}.100`,[Er.color.variable]:`colors.${t}.800`,_dark:{[Er.bg.variable]:n,[Er.color.variable]:`colors.${t}.200`}}},mq=e=>{const{colorScheme:t,theme:r}=e,n=$c(`${t}.200`,.8)(r);return{[Er.color.variable]:`colors.${t}.500`,_dark:{[Er.color.variable]:n},[Er.shadow.variable]:`inset 0 0 0px 1px ${Er.color.reference}`}},vq={solid:hq,subtle:pq,outline:mq},wf={baseStyle:fq,variants:vq,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:gq,definePartsStyle:xl}=Ut(sZ.keys),EP=Ge("tag-bg"),PP=Ge("tag-color"),N1=Ge("tag-shadow"),Cv=Ge("tag-min-height"),Tv=Ge("tag-min-width"),Ev=Ge("tag-font-size"),Pv=Ge("tag-padding-inline"),yq={fontWeight:"medium",lineHeight:1.2,outline:0,[PP.variable]:Er.color.reference,[EP.variable]:Er.bg.reference,[N1.variable]:Er.shadow.reference,color:PP.reference,bg:EP.reference,boxShadow:N1.reference,borderRadius:"md",minH:Cv.reference,minW:Tv.reference,fontSize:Ev.reference,px:Pv.reference,_focusVisible:{[N1.variable]:"shadows.outline"}},bq={lineHeight:1.2,overflow:"visible"},xq={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}},_q=xl({container:yq,label:bq,closeButton:xq}),wq={sm:xl({container:{[Cv.variable]:"sizes.5",[Tv.variable]:"sizes.5",[Ev.variable]:"fontSizes.xs",[Pv.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:xl({container:{[Cv.variable]:"sizes.6",[Tv.variable]:"sizes.6",[Ev.variable]:"fontSizes.sm",[Pv.variable]:"space.2"}}),lg:xl({container:{[Cv.variable]:"sizes.8",[Tv.variable]:"sizes.8",[Ev.variable]:"fontSizes.md",[Pv.variable]:"space.3"}})},Sq={subtle:xl(e=>{var t;return{container:(t=wf.variants)==null?void 0:t.subtle(e)}}),solid:xl(e=>{var t;return{container:(t=wf.variants)==null?void 0:t.solid(e)}}),outline:xl(e=>{var t;return{container:(t=wf.variants)==null?void 0:t.outline(e)}})},kq=gq({variants:Sq,baseStyle:_q,sizes:wq,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:ps,defineMultiStyleConfig:Cq}=Ut(KG.keys),Gu=Ge("input-height"),Zu=Ge("input-font-size"),qu=Ge("input-padding"),Yu=Ge("input-border-radius"),Tq=ps({addon:{height:Gu.reference,fontSize:Zu.reference,px:qu.reference,borderRadius:Yu.reference},field:{width:"100%",height:Gu.reference,fontSize:Zu.reference,px:qu.reference,borderRadius:Yu.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Xs={lg:{[Zu.variable]:"fontSizes.lg",[qu.variable]:"space.4",[Yu.variable]:"radii.md",[Gu.variable]:"sizes.12"},md:{[Zu.variable]:"fontSizes.md",[qu.variable]:"space.4",[Yu.variable]:"radii.md",[Gu.variable]:"sizes.10"},sm:{[Zu.variable]:"fontSizes.sm",[qu.variable]:"space.3",[Yu.variable]:"radii.sm",[Gu.variable]:"sizes.8"},xs:{[Zu.variable]:"fontSizes.xs",[qu.variable]:"space.2",[Yu.variable]:"radii.sm",[Gu.variable]:"sizes.6"}},Eq={lg:ps({field:Xs.lg,group:Xs.lg}),md:ps({field:Xs.md,group:Xs.md}),sm:ps({field:Xs.sm,group:Xs.sm}),xs:ps({field:Xs.xs,group:Xs.xs})};function rk(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||Ke("blue.500","blue.300")(e),errorBorderColor:r||Ke("red.500","red.300")(e)}}var Pq=ps(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=rk(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Ke("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Cn(t,n),boxShadow:`0 0 0 1px ${Cn(t,n)}`},_focusVisible:{zIndex:1,borderColor:Cn(t,r),boxShadow:`0 0 0 1px ${Cn(t,r)}`}},addon:{border:"1px solid",borderColor:Ke("inherit","whiteAlpha.50")(e),bg:Ke("gray.100","whiteAlpha.300")(e)}}}),Aq=ps(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=rk(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Ke("gray.100","whiteAlpha.50")(e),_hover:{bg:Ke("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Cn(t,n)},_focusVisible:{bg:"transparent",borderColor:Cn(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:Ke("gray.100","whiteAlpha.50")(e)}}}),Rq=ps(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=rk(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Cn(t,n),boxShadow:`0px 1px 0px 0px ${Cn(t,n)}`},_focusVisible:{borderColor:Cn(t,r),boxShadow:`0px 1px 0px 0px ${Cn(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Oq=ps({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Iq={outline:Pq,filled:Aq,flushed:Rq,unstyled:Oq},Pt=Cq({baseStyle:Tq,sizes:Eq,variants:Iq,defaultProps:{size:"md",variant:"outline"}}),AP,$q={...(AP=Pt.baseStyle)==null?void 0:AP.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},RP,OP,Fq={outline:e=>{var t,r;return(r=(t=Pt.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=Pt.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=Pt.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(OP=(RP=Pt.variants)==null?void 0:RP.unstyled.field)!=null?OP:{}},IP,$P,FP,jP,DP,MP,zP,LP,jq={xs:($P=(IP=Pt.sizes)==null?void 0:IP.xs.field)!=null?$P:{},sm:(jP=(FP=Pt.sizes)==null?void 0:FP.sm.field)!=null?jP:{},md:(MP=(DP=Pt.sizes)==null?void 0:DP.md.field)!=null?MP:{},lg:(LP=(zP=Pt.sizes)==null?void 0:zP.lg.field)!=null?LP:{}},Dq={baseStyle:$q,sizes:jq,variants:Fq,defaultProps:{size:"md",variant:"outline"}},Um=Lr("tooltip-bg"),B1=Lr("tooltip-fg"),Mq=Lr("popper-arrow-bg"),zq={bg:Um.reference,color:B1.reference,[Um.variable]:"colors.gray.700",[B1.variable]:"colors.whiteAlpha.900",_dark:{[Um.variable]:"colors.gray.300",[B1.variable]:"colors.gray.900"},[Mq.variable]:Um.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},Lq={baseStyle:zq},{defineMultiStyleConfig:Nq,definePartsStyle:rf}=Ut(QG.keys),Bq=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=Ke(wP(),wP("1rem","rgba(0,0,0,0.1)"))(e),s=Ke(`${t}.500`,`${t}.200`)(e),l=`linear-gradient( + to right, + transparent 0%, + ${Cn(r,s)} 50%, + transparent 100% + )`;return{...!n&&i&&o,...n?{bgImage:l}:{bgColor:s}}},Vq={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Wq=e=>({bg:Ke("gray.100","whiteAlpha.300")(e)}),Uq=e=>({transitionProperty:"common",transitionDuration:"slow",...Bq(e)}),Hq=rf(e=>({label:Vq,filledTrack:Uq(e),track:Wq(e)})),Kq={xs:rf({track:{h:"1"}}),sm:rf({track:{h:"2"}}),md:rf({track:{h:"3"}}),lg:rf({track:{h:"4"}})},Gq=Nq({sizes:Kq,baseStyle:Hq,defaultProps:{size:"md",colorScheme:"blue"}}),Zq=e=>typeof e=="function";function Pn(e,...t){return Zq(e)?e(...t):e}var{definePartsStyle:Av,defineMultiStyleConfig:qq}=Ut(h$.keys),Sf=Ge("checkbox-size"),Yq=e=>{const{colorScheme:t}=e;return{w:Sf.reference,h:Sf.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Ke(`${t}.500`,`${t}.200`)(e),borderColor:Ke(`${t}.500`,`${t}.200`)(e),color:Ke("white","gray.900")(e),_hover:{bg:Ke(`${t}.600`,`${t}.300`)(e),borderColor:Ke(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Ke("gray.200","transparent")(e),bg:Ke("gray.200","whiteAlpha.300")(e),color:Ke("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Ke(`${t}.500`,`${t}.200`)(e),borderColor:Ke(`${t}.500`,`${t}.200`)(e),color:Ke("white","gray.900")(e)},_disabled:{bg:Ke("gray.100","whiteAlpha.100")(e),borderColor:Ke("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Ke("red.500","red.300")(e)}}},Xq={_disabled:{cursor:"not-allowed"}},Qq={userSelect:"none",_disabled:{opacity:.4}},Jq={transitionProperty:"transform",transitionDuration:"normal"},eY=Av(e=>({icon:Jq,container:Xq,control:Pn(Yq,e),label:Qq})),tY={sm:Av({control:{[Sf.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Av({control:{[Sf.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Av({control:{[Sf.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},$g=qq({baseStyle:eY,sizes:tY,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rY,definePartsStyle:Rv}=Ut(JG.keys),nY=e=>{var t;const r=(t=Pn($g.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},iY=Rv(e=>{var t,r,n,i;return{label:(r=(t=$g).baseStyle)==null?void 0:r.call(t,e).label,container:(i=(n=$g).baseStyle)==null?void 0:i.call(n,e).container,control:nY(e)}}),oY={md:Rv({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Rv({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Rv({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},sY=rY({baseStyle:iY,sizes:oY,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:aY,definePartsStyle:lY}=Ut(eZ.keys),Hm=Ge("select-bg"),NP,uY={...(NP=Pt.baseStyle)==null?void 0:NP.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Hm.reference,[Hm.variable]:"colors.white",_dark:{[Hm.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Hm.reference}},cY={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},dY=lY({field:uY,icon:cY}),Km={paddingInlineEnd:"8"},BP,VP,WP,UP,HP,KP,GP,ZP,fY={lg:{...(BP=Pt.sizes)==null?void 0:BP.lg,field:{...(VP=Pt.sizes)==null?void 0:VP.lg.field,...Km}},md:{...(WP=Pt.sizes)==null?void 0:WP.md,field:{...(UP=Pt.sizes)==null?void 0:UP.md.field,...Km}},sm:{...(HP=Pt.sizes)==null?void 0:HP.sm,field:{...(KP=Pt.sizes)==null?void 0:KP.sm.field,...Km}},xs:{...(GP=Pt.sizes)==null?void 0:GP.xs,field:{...(ZP=Pt.sizes)==null?void 0:ZP.xs.field,...Km},icon:{insetEnd:"1"}}},hY=aY({baseStyle:dY,sizes:fY,variants:Pt.variants,defaultProps:Pt.defaultProps}),V1=Ge("skeleton-start-color"),W1=Ge("skeleton-end-color"),pY={[V1.variable]:"colors.gray.100",[W1.variable]:"colors.gray.400",_dark:{[V1.variable]:"colors.gray.800",[W1.variable]:"colors.gray.600"},background:V1.reference,borderColor:W1.reference,opacity:.7,borderRadius:"sm"},mY={baseStyle:pY},U1=Ge("skip-link-bg"),vY={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[U1.variable]:"colors.white",_dark:{[U1.variable]:"colors.gray.700"},bg:U1.reference}},gY={baseStyle:vY},{defineMultiStyleConfig:yY,definePartsStyle:L0}=Ut(tZ.keys),mh=Ge("slider-thumb-size"),vh=Ge("slider-track-size"),aa=Ge("slider-bg"),bY=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...tk({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},xY=e=>({...tk({orientation:e.orientation,horizontal:{h:vh.reference},vertical:{w:vh.reference}}),overflow:"hidden",borderRadius:"sm",[aa.variable]:"colors.gray.200",_dark:{[aa.variable]:"colors.whiteAlpha.200"},_disabled:{[aa.variable]:"colors.gray.300",_dark:{[aa.variable]:"colors.whiteAlpha.300"}},bg:aa.reference}),_Y=e=>{const{orientation:t}=e;return{...tk({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:mh.reference,h:mh.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"}}},wY=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[aa.variable]:`colors.${t}.500`,_dark:{[aa.variable]:`colors.${t}.200`},bg:aa.reference}},SY=L0(e=>({container:bY(e),track:xY(e),thumb:_Y(e),filledTrack:wY(e)})),kY=L0({container:{[mh.variable]:"sizes.4",[vh.variable]:"sizes.1"}}),CY=L0({container:{[mh.variable]:"sizes.3.5",[vh.variable]:"sizes.1"}}),TY=L0({container:{[mh.variable]:"sizes.2.5",[vh.variable]:"sizes.0.5"}}),EY={lg:kY,md:CY,sm:TY},PY=yY({baseStyle:SY,sizes:EY,defaultProps:{size:"md",colorScheme:"blue"}}),ll=Lr("spinner-size"),AY={width:[ll.reference],height:[ll.reference]},RY={xs:{[ll.variable]:"sizes.3"},sm:{[ll.variable]:"sizes.4"},md:{[ll.variable]:"sizes.6"},lg:{[ll.variable]:"sizes.8"},xl:{[ll.variable]:"sizes.12"}},OY={baseStyle:AY,sizes:RY,defaultProps:{size:"md"}},{defineMultiStyleConfig:IY,definePartsStyle:v$}=Ut(rZ.keys),$Y={fontWeight:"medium"},FY={opacity:.8,marginBottom:"2"},jY={verticalAlign:"baseline",fontWeight:"semibold"},DY={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},MY=v$({container:{},label:$Y,helpText:FY,number:jY,icon:DY}),zY={md:v$({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},LY=IY({baseStyle:MY,sizes:zY,defaultProps:{size:"md"}}),H1=Ge("kbd-bg"),NY={[H1.variable]:"colors.gray.100",_dark:{[H1.variable]:"colors.whiteAlpha.100"},bg:H1.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},BY={baseStyle:NY},VY={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},WY={baseStyle:VY},{defineMultiStyleConfig:UY,definePartsStyle:HY}=Ut(GG.keys),KY={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},GY=HY({icon:KY}),ZY=UY({baseStyle:GY}),{defineMultiStyleConfig:qY,definePartsStyle:YY}=Ut(ZG.keys),To=Ge("menu-bg"),K1=Ge("menu-shadow"),XY={[To.variable]:"#fff",[K1.variable]:"shadows.sm",_dark:{[To.variable]:"colors.gray.700",[K1.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:To.reference,boxShadow:K1.reference},QY={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[To.variable]:"colors.gray.100",_dark:{[To.variable]:"colors.whiteAlpha.100"}},_active:{[To.variable]:"colors.gray.200",_dark:{[To.variable]:"colors.whiteAlpha.200"}},_expanded:{[To.variable]:"colors.gray.100",_dark:{[To.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:To.reference},JY={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},eX={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},tX={opacity:.6},rX={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},nX={transitionProperty:"common",transitionDuration:"normal"},iX=YY({button:nX,list:XY,item:QY,groupTitle:JY,icon:eX,command:tX,divider:rX}),oX=qY({baseStyle:iX}),{defineMultiStyleConfig:sX,definePartsStyle:V_}=Ut(qG.keys),G1=Ge("modal-bg"),Z1=Ge("modal-shadow"),aX={bg:"blackAlpha.600",zIndex:"modal"},lX=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},uX=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[G1.variable]:"colors.white",[Z1.variable]:"shadows.lg",_dark:{[G1.variable]:"colors.gray.700",[Z1.variable]:"shadows.dark-lg"},bg:G1.reference,boxShadow:Z1.reference}},cX={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},dX={position:"absolute",top:"2",insetEnd:"3"},fX=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},hX={px:"6",py:"4"},pX=V_(e=>({overlay:aX,dialogContainer:Pn(lX,e),dialog:Pn(uX,e),header:cX,closeButton:dX,body:Pn(fX,e),footer:hX}));function eo(e){return V_(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var mX={xs:eo("xs"),sm:eo("sm"),md:eo("md"),lg:eo("lg"),xl:eo("xl"),"2xl":eo("2xl"),"3xl":eo("3xl"),"4xl":eo("4xl"),"5xl":eo("5xl"),"6xl":eo("6xl"),full:eo("full")},vX=sX({baseStyle:pX,sizes:mX,defaultProps:{size:"md"}}),{defineMultiStyleConfig:gX,definePartsStyle:g$}=Ut(YG.keys),nk=Lr("number-input-stepper-width"),y$=Lr("number-input-input-padding"),yX=ds(nk).add("0.5rem").toString(),q1=Lr("number-input-bg"),Y1=Lr("number-input-color"),X1=Lr("number-input-border-color"),bX={[nk.variable]:"sizes.6",[y$.variable]:yX},xX=e=>{var t,r;return(r=(t=Pn(Pt.baseStyle,e))==null?void 0:t.field)!=null?r:{}},_X={width:nk.reference},wX={borderStart:"1px solid",borderStartColor:X1.reference,color:Y1.reference,bg:q1.reference,[Y1.variable]:"colors.chakra-body-text",[X1.variable]:"colors.chakra-border-color",_dark:{[Y1.variable]:"colors.whiteAlpha.800",[X1.variable]:"colors.whiteAlpha.300"},_active:{[q1.variable]:"colors.gray.200",_dark:{[q1.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},SX=g$(e=>{var t;return{root:bX,field:(t=Pn(xX,e))!=null?t:{},stepperGroup:_X,stepper:wX}});function Gm(e){var t,r,n;const i=(t=Pt.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(n=(r=i.field)==null?void 0:r.fontSize)!=null?n:"md",l=c$.fontSizes[s];return g$({field:{...i.field,paddingInlineEnd:y$.reference,verticalAlign:"top"},stepper:{fontSize:ds(l).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var kX={xs:Gm("xs"),sm:Gm("sm"),md:Gm("md"),lg:Gm("lg")},CX=gX({baseStyle:SX,sizes:kX,variants:Pt.variants,defaultProps:Pt.defaultProps}),qP,TX={...(qP=Pt.baseStyle)==null?void 0:qP.field,textAlign:"center"},EX={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"}},YP,XP,PX={outline:e=>{var t,r,n;return(n=(r=Pn((t=Pt.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=Pn((t=Pt.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=Pn((t=Pt.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(XP=(YP=Pt.variants)==null?void 0:YP.unstyled.field)!=null?XP:{}},AX={baseStyle:TX,sizes:EX,variants:PX,defaultProps:Pt.defaultProps},{defineMultiStyleConfig:RX,definePartsStyle:OX}=Ut(XG.keys),Zm=Lr("popper-bg"),IX=Lr("popper-arrow-bg"),QP=Lr("popper-arrow-shadow-color"),$X={zIndex:10},FX={[Zm.variable]:"colors.white",bg:Zm.reference,[IX.variable]:Zm.reference,[QP.variable]:"colors.gray.200",_dark:{[Zm.variable]:"colors.gray.700",[QP.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},jX={px:3,py:2,borderBottomWidth:"1px"},DX={px:3,py:2},MX={px:3,py:2,borderTopWidth:"1px"},zX={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},LX=OX({popper:$X,content:FX,header:jX,body:DX,footer:MX,closeButton:zX}),NX=RX({baseStyle:LX}),{definePartsStyle:W_,defineMultiStyleConfig:BX}=Ut(VG.keys),Q1=Ge("drawer-bg"),J1=Ge("drawer-box-shadow");function vu(e){return W_(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var VX={bg:"blackAlpha.600",zIndex:"modal"},WX={display:"flex",zIndex:"modal",justifyContent:"center"},UX=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Q1.variable]:"colors.white",[J1.variable]:"shadows.lg",_dark:{[Q1.variable]:"colors.gray.700",[J1.variable]:"shadows.dark-lg"},bg:Q1.reference,boxShadow:J1.reference}},HX={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},KX={position:"absolute",top:"2",insetEnd:"3"},GX={px:"6",py:"2",flex:"1",overflow:"auto"},ZX={px:"6",py:"4"},qX=W_(e=>({overlay:VX,dialogContainer:WX,dialog:Pn(UX,e),header:HX,closeButton:KX,body:GX,footer:ZX})),YX={xs:vu("xs"),sm:vu("md"),md:vu("lg"),lg:vu("2xl"),xl:vu("4xl"),full:vu("full")},XX=BX({baseStyle:qX,sizes:YX,defaultProps:{size:"xs"}}),{definePartsStyle:QX,defineMultiStyleConfig:JX}=Ut(WG.keys),eQ={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},tQ={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},rQ={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},nQ=QX({preview:eQ,input:tQ,textarea:rQ}),iQ=JX({baseStyle:nQ}),{definePartsStyle:oQ,defineMultiStyleConfig:sQ}=Ut(UG.keys),hc=Ge("form-control-color"),aQ={marginStart:"1",[hc.variable]:"colors.red.500",_dark:{[hc.variable]:"colors.red.300"},color:hc.reference},lQ={mt:"2",[hc.variable]:"colors.gray.600",_dark:{[hc.variable]:"colors.whiteAlpha.600"},color:hc.reference,lineHeight:"normal",fontSize:"sm"},uQ=oQ({container:{width:"100%",position:"relative"},requiredIndicator:aQ,helperText:lQ}),cQ=sQ({baseStyle:uQ}),{definePartsStyle:dQ,defineMultiStyleConfig:fQ}=Ut(HG.keys),pc=Ge("form-error-color"),hQ={[pc.variable]:"colors.red.500",_dark:{[pc.variable]:"colors.red.300"},color:pc.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},pQ={marginEnd:"0.5em",[pc.variable]:"colors.red.500",_dark:{[pc.variable]:"colors.red.300"},color:pc.reference},mQ=dQ({text:hQ,icon:pQ}),vQ=fQ({baseStyle:mQ}),gQ={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},yQ={baseStyle:gQ},bQ={fontFamily:"heading",fontWeight:"bold"},xQ={"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}},_Q={baseStyle:bQ,sizes:xQ,defaultProps:{size:"xl"}},{defineMultiStyleConfig:wQ,definePartsStyle:SQ}=Ut(BG.keys),ex=Ge("breadcrumb-link-decor"),kQ={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ex.reference,[ex.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ex.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},CQ=SQ({link:kQ}),TQ=wQ({baseStyle:CQ}),EQ={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"}}},b$=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:Ke("gray.800","whiteAlpha.900")(e),_hover:{bg:Ke("gray.100","whiteAlpha.200")(e)},_active:{bg:Ke("gray.200","whiteAlpha.300")(e)}};const n=$c(`${t}.200`,.12)(r),i=$c(`${t}.200`,.24)(r);return{color:Ke(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Ke(`${t}.50`,n)(e)},_active:{bg:Ke(`${t}.100`,i)(e)}}},PQ=e=>{const{colorScheme:t}=e,r=Ke("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"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"},...Pn(b$,e)}},AQ={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},RQ=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const u=Ke("gray.100","whiteAlpha.200")(e);return{bg:u,color:Ke("gray.800","whiteAlpha.900")(e),_hover:{bg:Ke("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:Ke("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:s=`${r}.700`}=(t=AQ[r])!=null?t:{},l=Ke(n,`${r}.200`)(e);return{bg:l,color:Ke(i,"gray.800")(e),_hover:{bg:Ke(o,`${r}.300`)(e),_disabled:{bg:l}},_active:{bg:Ke(s,`${r}.400`)(e)}}},OQ=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Ke(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Ke(`${t}.700`,`${t}.500`)(e)}}},IQ={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},$Q={ghost:b$,outline:PQ,solid:RQ,link:OQ,unstyled:IQ},FQ={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"}},jQ={baseStyle:EQ,variants:$Q,sizes:FQ,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:_l,defineMultiStyleConfig:DQ}=Ut(aZ.keys),Fg=Ge("card-bg"),ys=Ge("card-padding"),x$=Ge("card-shadow"),Ov=Ge("card-radius"),_$=Ge("card-border-width","0"),w$=Ge("card-border-color"),MQ=_l({container:{[Fg.variable]:"colors.chakra-body-bg",backgroundColor:Fg.reference,boxShadow:x$.reference,borderRadius:Ov.reference,color:"chakra-body-text",borderWidth:_$.reference,borderColor:w$.reference},body:{padding:ys.reference,flex:"1 1 0%"},header:{padding:ys.reference},footer:{padding:ys.reference}}),zQ={sm:_l({container:{[Ov.variable]:"radii.base",[ys.variable]:"space.3"}}),md:_l({container:{[Ov.variable]:"radii.md",[ys.variable]:"space.5"}}),lg:_l({container:{[Ov.variable]:"radii.xl",[ys.variable]:"space.7"}})},LQ={elevated:_l({container:{[x$.variable]:"shadows.base",_dark:{[Fg.variable]:"colors.gray.700"}}}),outline:_l({container:{[_$.variable]:"1px",[w$.variable]:"colors.chakra-border-color"}}),filled:_l({container:{[Fg.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[ys.variable]:0},header:{[ys.variable]:0},footer:{[ys.variable]:0}}},NQ=DQ({baseStyle:MQ,variants:LQ,sizes:zQ,defaultProps:{variant:"elevated",size:"md"}}),kf=Lr("close-button-size"),Bd=Lr("close-button-bg"),BQ={w:[kf.reference],h:[kf.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Bd.variable]:"colors.blackAlpha.100",_dark:{[Bd.variable]:"colors.whiteAlpha.100"}},_active:{[Bd.variable]:"colors.blackAlpha.200",_dark:{[Bd.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Bd.reference},VQ={lg:{[kf.variable]:"sizes.10",fontSize:"md"},md:{[kf.variable]:"sizes.8",fontSize:"xs"},sm:{[kf.variable]:"sizes.6",fontSize:"2xs"}},WQ={baseStyle:BQ,sizes:VQ,defaultProps:{size:"md"}},{variants:UQ,defaultProps:HQ}=wf,KQ={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Er.bg.reference,color:Er.color.reference,boxShadow:Er.shadow.reference},GQ={baseStyle:KQ,variants:UQ,defaultProps:HQ},ZQ={w:"100%",mx:"auto",maxW:"prose",px:"4"},qQ={baseStyle:ZQ},YQ={opacity:.6,borderColor:"inherit"},XQ={borderStyle:"solid"},QQ={borderStyle:"dashed"},JQ={solid:XQ,dashed:QQ},eJ={baseStyle:YQ,variants:JQ,defaultProps:{variant:"solid"}},{definePartsStyle:tJ,defineMultiStyleConfig:rJ}=Ut(zG.keys),nJ={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},iJ={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},oJ={pt:"2",px:"4",pb:"5"},sJ={fontSize:"1.25em"},aJ=tJ({container:nJ,button:iJ,panel:oJ,icon:sJ}),lJ=rJ({baseStyle:aJ}),{definePartsStyle:Hh,defineMultiStyleConfig:uJ}=Ut(LG.keys),ui=Ge("alert-fg"),Es=Ge("alert-bg"),cJ=Hh({container:{bg:Es.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ui.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ui.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function ik(e){const{theme:t,colorScheme:r}=e,n=$c(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var dJ=Hh(e=>{const{colorScheme:t}=e,r=ik(e);return{container:{[ui.variable]:`colors.${t}.600`,[Es.variable]:r.light,_dark:{[ui.variable]:`colors.${t}.200`,[Es.variable]:r.dark}}}}),fJ=Hh(e=>{const{colorScheme:t}=e,r=ik(e);return{container:{[ui.variable]:`colors.${t}.600`,[Es.variable]:r.light,_dark:{[ui.variable]:`colors.${t}.200`,[Es.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ui.reference}}}),hJ=Hh(e=>{const{colorScheme:t}=e,r=ik(e);return{container:{[ui.variable]:`colors.${t}.600`,[Es.variable]:r.light,_dark:{[ui.variable]:`colors.${t}.200`,[Es.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ui.reference}}}),pJ=Hh(e=>{const{colorScheme:t}=e;return{container:{[ui.variable]:"colors.white",[Es.variable]:`colors.${t}.600`,_dark:{[ui.variable]:"colors.gray.900",[Es.variable]:`colors.${t}.200`},color:ui.reference}}}),mJ={subtle:dJ,"left-accent":fJ,"top-accent":hJ,solid:pJ},vJ=uJ({baseStyle:cJ,variants:mJ,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:S$,defineMultiStyleConfig:gJ}=Ut(NG.keys),mc=Ge("avatar-border-color"),Cf=Ge("avatar-bg"),gh=Ge("avatar-font-size"),Fc=Ge("avatar-size"),yJ={borderRadius:"full",border:"0.2em solid",borderColor:mc.reference,[mc.variable]:"white",_dark:{[mc.variable]:"colors.gray.800"}},bJ={bg:Cf.reference,fontSize:gh.reference,width:Fc.reference,height:Fc.reference,lineHeight:"1",[Cf.variable]:"colors.gray.200",_dark:{[Cf.variable]:"colors.whiteAlpha.400"}},xJ=e=>{const{name:t,theme:r}=e,n=t?EZ({string:t}):"colors.gray.400",i=CZ(n)(r);let o="white";return i||(o="gray.800"),{bg:Cf.reference,fontSize:gh.reference,color:o,borderColor:mc.reference,verticalAlign:"top",width:Fc.reference,height:Fc.reference,"&:not([data-loaded])":{[Cf.variable]:n},[mc.variable]:"colors.white",_dark:{[mc.variable]:"colors.gray.800"}}},_J={fontSize:gh.reference,lineHeight:"1"},wJ=S$(e=>({badge:Pn(yJ,e),excessLabel:Pn(bJ,e),container:Pn(xJ,e),label:_J}));function Qs(e){const t=e!=="100%"?f$[e]:void 0;return S$({container:{[Fc.variable]:t??e,[gh.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Fc.variable]:t??e,[gh.variable]:`calc(${t??e} / 2.5)`}})}var SJ={"2xs":Qs(4),xs:Qs(6),sm:Qs(8),md:Qs(12),lg:Qs(16),xl:Qs(24),"2xl":Qs(32),full:Qs("100%")},kJ=gJ({baseStyle:wJ,sizes:SJ,defaultProps:{size:"md"}}),CJ={Accordion:lJ,Alert:vJ,Avatar:kJ,Badge:wf,Breadcrumb:TQ,Button:jQ,Checkbox:$g,CloseButton:WQ,Code:GQ,Container:qQ,Divider:eJ,Drawer:XX,Editable:iQ,Form:cQ,FormError:vQ,FormLabel:yQ,Heading:_Q,Input:Pt,Kbd:BY,Link:WY,List:ZY,Menu:oX,Modal:vX,NumberInput:CX,PinInput:AX,Popover:NX,Progress:Gq,Radio:sY,Select:hY,Skeleton:mY,SkipLink:gY,Slider:PY,Spinner:OY,Stat:LY,Switch:WZ,Table:YZ,Tabs:dq,Tag:kq,Textarea:Dq,Tooltip:Lq,Card:NQ,Stepper:MG},TJ={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"}}},EJ={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"}}},PJ="ltr",AJ={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},k$={semanticTokens:TJ,direction:PJ,...FG,components:CJ,styles:EJ,config:AJ};function nf(e){return typeof e=="function"}function RJ(...e){return t=>e.reduce((r,n)=>n(r),t)}var OJ=e=>function(...r){let n=[...r],i=r[r.length-1];return cG(i)&&n.length>1?n=n.slice(0,n.length-1):i=e,RJ(...n.map(o=>s=>nf(o)?o(s):$J(s,o)))(i)},IJ=OJ(k$);function $J(...e){return Di({},...e,C$)}function C$(e,t,r,n){if((nf(e)||nf(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...i)=>{const o=nf(e)?e(...i):e,s=nf(t)?t(...i):t;return Di({},o,s,C$)}}function FJ(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function T$(e){var t;return FJ(e)&&(t=e.ownerDocument)!=null?t:document}function jJ(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var DJ=jJ();function MJ(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function zJ(e,t,r,n){const i=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,i,o,s)=>{if(typeof n>"u")return e(n,i,o);t.has(n)||t.set(n,new Map);const l=t.get(n);if(l.has(i))return l.get(i);const u=e(n,i,o,s);return l.set(i,u),u}},E$=LJ(zJ);function P$(e,t){const r={};return Object.keys(e).forEach(n=>{const i=e[n];t(i,n,e)&&(r[n]=i)}),r}var A$=e=>P$(e,t=>t!=null);function NJ(e){return typeof e=="function"}function R$(e,...t){return NJ(e)?e(...t):e}function BJ(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var VJ=typeof Element<"u",WJ=typeof Map=="function",UJ=typeof Set=="function",HJ=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Iv(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Iv(e[n],t[n]))return!1;return!0}var o;if(WJ&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!Iv(n.value[1],t.get(n.value[0])))return!1;return!0}if(UJ&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(HJ&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if(VJ&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!Iv(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var KJ=function(t,r){try{return Iv(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const GJ=Bc(KJ);function O$(e,t={}){var r;const{styleConfig:n,...i}=t,{theme:o,colorMode:s}=NH(),l=e?E$(o,`components.${e}`):void 0,u=n||l,d=Di({theme:o,colorMode:s},(r=u==null?void 0:u.defaultProps)!=null?r:{},A$(MJ(i,["children"]))),f=R.useRef({});if(u){const m=aG(u)(d);GJ(f.current,m)||(f.current=m)}return f.current}function Is(e,t={}){return O$(e,t)}function $s(e,t={}){return O$(e,t)}var ZJ=new Set([...qK,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),qJ=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function YJ(e){return qJ.has(e)||!ZJ.has(e)}function XJ(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(i in r&&delete r[i],r[i]=n[i]);return r}function I$(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var QJ=/^((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|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)-.*))$/,JJ=z3(function(e){return QJ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),eee=JJ,tee=function(t){return t!=="theme"},JP=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?eee:tee},eA=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},ree=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return H3(r,n,i),_H(function(){return K3(r,n,i)}),null},nee=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,s;r!==void 0&&(o=r.label,s=r.target);var l=eA(t,r,n),u=l||JP(i),d=!u("as");return function(){var f=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var m=f.length,v=1;vt=>{const{theme:r,css:n,__css:i,sx:o,...s}=t,l=P$(s,(h,m)=>XK(m)),u=R$(e,t),d=XJ({},i,u,A$(l),o),f=u$(d)(t.theme);return n?[f,n]:f};function tx(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=YJ);const i=see({baseStyle:r}),o=oee(e,n)(i);return ft.forwardRef(function(u,d){const{colorMode:f,forced:h}=YS();return ft.createElement(o,{ref:d,"data-theme":h?f:void 0,...u})})}function aee(){const e=new Map;return new Proxy(tx,{apply(t,r,n){return tx(...n)},get(t,r){return e.has(r)||e.set(r,tx(r)),e.get(r)}})}var je=aee();function Ue(e){return R.forwardRef(e)}function lee(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,i=R.createContext(void 0);i.displayName=n;function o(){var s;const l=R.useContext(i);if(!l&&t){const u=new Error(r);throw u.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,u,o),u}return l}return[i.Provider,o,i]}function uee(e){const{cssVarsRoot:t,theme:r,children:n}=e,i=R.useMemo(()=>KK(r),[r]);return w.jsxs(CH,{theme:i,children:[w.jsx(cee,{root:t}),n]})}function cee({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return w.jsx(Wh,{styles:r=>({[t]:r.__cssVars})})}lee({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function dee(){const{colorMode:e}=YS();return w.jsx(Wh,{styles:t=>{const r=E$(t,"styles.global"),n=R$(r,{theme:t,colorMode:e});return n?u$(n)(t):void 0}})}var $$=R.createContext({getDocument(){return document},getWindow(){return window}});$$.displayName="EnvironmentContext";function F$(e){const{children:t,environment:r,disabled:n}=e,i=R.useRef(null),o=R.useMemo(()=>r||{getDocument:()=>{var l,u;return(u=(l=i.current)==null?void 0:l.ownerDocument)!=null?u:document},getWindow:()=>{var l,u;return(u=(l=i.current)==null?void 0:l.ownerDocument.defaultView)!=null?u:window}},[r]),s=!n||!r;return w.jsxs($$.Provider,{value:o,children:[t,s&&w.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}F$.displayName="EnvironmentProvider";var fee=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:o=!0,theme:s={},environment:l,cssVarsRoot:u,disableEnvironment:d,disableGlobalStyle:f}=e,h=w.jsx(F$,{environment:l,disabled:d,children:t});return w.jsx(uee,{theme:s,cssVarsRoot:u,children:w.jsxs(r$,{colorModeManager:r,options:s.config,children:[o?w.jsx(EH,{scope:i}):w.jsx(TH,{}),!f&&w.jsx(dee,{}),n?w.jsx(e$,{zIndex:n,children:h}):h]})})},hee=(e,t)=>e.find(r=>r.id===t);function rA(e,t){const r=j$(e,t),n=r?e[r].findIndex(i=>i.id===t):-1;return{position:r,index:n}}function j$(e,t){for(const[r,n]of Object.entries(e))if(hee(n,t))return r}function pee(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function mee(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:i,right:o,left:s}}function Mo(e,t=[]){const r=R.useRef(e);return R.useEffect(()=>{r.current=e}),R.useCallback((...n)=>{var i;return(i=r.current)==null?void 0:i.call(r,...n)},t)}function vee(e,t){const r=Mo(e);R.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function U_(e,t){const r=R.useRef(!1),n=R.useRef(!1);R.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),R.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const ok=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),N0=R.createContext({}),Kh=R.createContext(null),sk=typeof document<"u",ak=sk?R.useLayoutEffect:R.useEffect,D$=R.createContext({strict:!1}),lk=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gee="framerAppearId",M$="data-"+lk(gee),yee={skipAnimations:!1,useManualTiming:!1};class nA{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function bee(e){let t=new nA,r=new nA,n=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(u,d=!1,f=!1)=>{const h=f&&i,m=h?t:r;return d&&s.add(u),m.add(u)&&h&&i&&(n=t.order.length),u},cancel:u=>{r.remove(u),s.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let d=0;d(h[m]=bee(()=>r=!0),h),{}),s=h=>{o[h].process(i)},l=()=>{const h=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(h-i.timestamp,xee),1),i.timestamp=h,i.isProcessing=!0,qm.forEach(s),i.isProcessing=!1,r&&t&&(n=!1,e(l))},u=()=>{r=!0,n=!0,i.isProcessing||e(l)};return{schedule:qm.reduce((h,m)=>{const v=o[m];return h[m]=(x,g=!1,S=!1)=>(r||u(),v.schedule(x,g,S)),h},{}),cancel:h=>qm.forEach(m=>o[m].cancel(h)),state:i,steps:o}}const{schedule:uk,cancel:bme}=z$(queueMicrotask,!1);function _ee(e,t,r,n){const{visualElement:i}=R.useContext(N0),o=R.useContext(D$),s=R.useContext(Kh),l=R.useContext(ok).reducedMotion,u=R.useRef();n=n||o.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const d=u.current;R.useInsertionEffect(()=>{d&&d.update(r,s)});const f=R.useRef(!!(r[M$]&&!window.HandoffComplete));return ak(()=>{d&&(uk.render(d.render),f.current&&d.animationState&&d.animationState.animateChanges())}),R.useEffect(()=>{d&&(d.updateFeatures(),!f.current&&d.animationState&&d.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),d}function Xu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wee(e,t,r){return R.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Xu(r)&&(r.current=n))},[t])}function bh(e){return typeof e=="string"||Array.isArray(e)}function B0(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ck=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],dk=["initial",...ck];function V0(e){return B0(e.animate)||dk.some(t=>bh(e[t]))}function L$(e){return!!(V0(e)||e.variants)}function See(e,t){if(V0(e)){const{initial:r,animate:n}=e;return{initial:r===!1||bh(r)?r:void 0,animate:bh(n)?n:void 0}}return e.inherit!==!1?t:{}}function kee(e){const{initial:t,animate:r}=See(e,R.useContext(N0));return R.useMemo(()=>({initial:t,animate:r}),[iA(t),iA(r)])}function iA(e){return Array.isArray(e)?e.join(" "):e}const oA={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},xh={};for(const e in oA)xh[e]={isEnabled:t=>oA[e].some(r=>!!t[r])};function Cee(e){for(const t in e)xh[t]={...xh[t],...e[t]}}const fk=R.createContext({}),N$=R.createContext({}),Tee=Symbol.for("motionComponentSymbol");function Eee({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&Cee(e);function o(l,u){let d;const f={...R.useContext(ok),...l,layoutId:Pee(l)},{isStatic:h}=f,m=kee(l),v=n(l,h);if(!h&&sk){m.visualElement=_ee(i,v,f,t);const x=R.useContext(N$),g=R.useContext(D$).strict;m.visualElement&&(d=m.visualElement.loadFeatures(f,g,e,x))}return w.jsxs(N0.Provider,{value:m,children:[d&&m.visualElement?w.jsx(d,{visualElement:m.visualElement,...f}):null,r(i,l,wee(v,m.visualElement,u),v,h,m.visualElement)]})}const s=R.forwardRef(o);return s[Tee]=i,s}function Pee({layoutId:e}){const t=R.useContext(fk).id;return t&&e!==void 0?t+"-"+e:e}function Aee(e){function t(n,i={}){return Eee(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const Ree=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function hk(e){return typeof e!="string"||e.includes("-")?!1:!!(Ree.indexOf(e)>-1||/[A-Z]/u.test(e))}const jg={};function Oee(e){Object.assign(jg,e)}const Gh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ul=new Set(Gh);function B$(e,{layout:t,layoutId:r}){return Ul.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!jg[e]||e==="opacity")}const pn=e=>!!(e&&e.getVelocity),Iee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$ee=Gh.length;function Fee(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let s=0;s<$ee;s++){const l=Gh[s];if(e[l]!==void 0){const u=Iee[l]||l;o+=`${u}(${e[l]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}const V$=e=>t=>typeof t=="string"&&t.startsWith(e),W$=V$("--"),jee=V$("var(--"),pk=e=>jee(e)?Dee.test(e.split("/*")[0].trim()):!1,Dee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Mee=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ra=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},Tf={...qc,transform:e=>Ra(0,1,e)},Ym={...qc,default:1},Ef=e=>Math.round(e*1e5)/1e5,mk=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,zee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Lee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Zh(e){return typeof e=="string"}const qh=e=>({test:t=>Zh(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Js=qh("deg"),zo=qh("%"),Xe=qh("px"),Nee=qh("vh"),Bee=qh("vw"),sA={...zo,parse:e=>zo.parse(e)/100,transform:e=>zo.transform(e*100)},aA={...qc,transform:Math.round},U$={borderWidth:Xe,borderTopWidth:Xe,borderRightWidth:Xe,borderBottomWidth:Xe,borderLeftWidth:Xe,borderRadius:Xe,radius:Xe,borderTopLeftRadius:Xe,borderTopRightRadius:Xe,borderBottomRightRadius:Xe,borderBottomLeftRadius:Xe,width:Xe,maxWidth:Xe,height:Xe,maxHeight:Xe,size:Xe,top:Xe,right:Xe,bottom:Xe,left:Xe,padding:Xe,paddingTop:Xe,paddingRight:Xe,paddingBottom:Xe,paddingLeft:Xe,margin:Xe,marginTop:Xe,marginRight:Xe,marginBottom:Xe,marginLeft:Xe,rotate:Js,rotateX:Js,rotateY:Js,rotateZ:Js,scale:Ym,scaleX:Ym,scaleY:Ym,scaleZ:Ym,skew:Js,skewX:Js,skewY:Js,distance:Xe,translateX:Xe,translateY:Xe,translateZ:Xe,x:Xe,y:Xe,z:Xe,perspective:Xe,transformPerspective:Xe,opacity:Tf,originX:sA,originY:sA,originZ:Xe,zIndex:aA,backgroundPositionX:Xe,backgroundPositionY:Xe,fillOpacity:Tf,strokeOpacity:Tf,numOctaves:aA};function vk(e,t,r,n){const{style:i,vars:o,transform:s,transformOrigin:l}=e;let u=!1,d=!1,f=!0;for(const h in t){const m=t[h];if(W$(h)){o[h]=m;continue}const v=U$[h],x=Mee(m,v);if(Ul.has(h)){if(u=!0,s[h]=x,!f)continue;m!==(v.default||0)&&(f=!1)}else h.startsWith("origin")?(d=!0,l[h]=x):i[h]=x}if(t.transform||(u||n?i.transform=Fee(e.transform,r,f,n):i.transform&&(i.transform="none")),d){const{originX:h="50%",originY:m="50%",originZ:v=0}=l;i.transformOrigin=`${h} ${m} ${v}`}}const gk=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function H$(e,t,r){for(const n in t)!pn(t[n])&&!B$(n,r)&&(e[n]=t[n])}function Vee({transformTemplate:e},t,r){return R.useMemo(()=>{const n=gk();return vk(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function Wee(e,t,r){const n=e.style||{},i={};return H$(i,n,e),Object.assign(i,Vee(e,t,r)),i}function Uee(e,t,r){const n={},i=Wee(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const Hee=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Dg(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Hee.has(e)}let K$=e=>!Dg(e);function Kee(e){e&&(K$=t=>t.startsWith("on")?!Dg(t):e(t))}try{Kee(require("@emotion/is-prop-valid").default)}catch{}function Gee(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(K$(i)||r===!0&&Dg(i)||!t&&!Dg(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function lA(e,t,r){return typeof e=="string"?e:Xe.transform(t+r*e)}function Zee(e,t,r){const n=lA(t,e.x,e.width),i=lA(r,e.y,e.height);return`${n} ${i}`}const qee={offset:"stroke-dashoffset",array:"stroke-dasharray"},Yee={offset:"strokeDashoffset",array:"strokeDasharray"};function Xee(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?qee:Yee;e[o.offset]=Xe.transform(-n);const s=Xe.transform(t),l=Xe.transform(r);e[o.array]=`${s} ${l}`}function yk(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:u=0,...d},f,h,m){if(vk(e,d,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:x,dimensions:g}=e;v.transform&&(g&&(x.transform=v.transform),delete v.transform),g&&(i!==void 0||o!==void 0||x.transform)&&(x.transformOrigin=Zee(g,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(v.x=t),r!==void 0&&(v.y=r),n!==void 0&&(v.scale=n),s!==void 0&&Xee(v,s,l,u,!1)}const G$=()=>({...gk(),attrs:{}}),bk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Qee(e,t,r,n){const i=R.useMemo(()=>{const o=G$();return yk(o,t,{enableHardwareAcceleration:!1},bk(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};H$(o,e.style,e),i.style={...o,...i.style}}return i}function Jee(e=!1){return(r,n,i,{latestValues:o},s)=>{const u=(hk(r)?Qee:Uee)(n,o,s,r),d=Gee(n,typeof r=="string",e),f=r!==R.Fragment?{...d,...u,ref:i}:{},{children:h}=n,m=R.useMemo(()=>pn(h)?h.get():h,[h]);return R.createElement(r,{...f,children:m})}}function Z$(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const q$=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Y$(e,t,r,n){Z$(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(q$.has(i)?i:lk(i),t.attrs[i])}function xk(e,t,r){var n;const{style:i}=e,o={};for(const s in i)(pn(i[s])||t.style&&pn(t.style[s])||B$(s,e)||((n=r==null?void 0:r.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function X$(e,t,r){const n=xk(e,t,r);for(const i in e)if(pn(e[i])||pn(t[i])){const o=Gh.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[o]=e[i]}return n}function uA(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function _k(e,t,r,n){if(typeof t=="function"){const[i,o]=uA(n);t=t(r!==void 0?r:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=uA(n);t=t(r!==void 0?r:e.custom,i,o)}return t}function Q$(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const H_=e=>Array.isArray(e),ete=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),tte=e=>H_(e)?e[e.length-1]||0:e;function $v(e){const t=pn(e)?e.get():e;return ete(t)?t.toValue():t}function rte({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const s={latestValues:nte(n,i,o,e),renderState:t()};return r&&(s.mount=l=>r(n,l,s)),s}const J$=e=>(t,r)=>{const n=R.useContext(N0),i=R.useContext(Kh),o=()=>rte(e,t,n,i);return r?o():Q$(o)};function nte(e,t,r,n){const i={},o=n(e,{});for(const m in o)i[m]=$v(o[m]);let{initial:s,animate:l}=e;const u=V0(e),d=L$(e);t&&d&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let f=r?r.initial===!1:!1;f=f||s===!1;const h=f?l:s;return h&&typeof h!="boolean"&&!B0(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{const x=_k(e,v);if(!x)return;const{transitionEnd:g,transition:S,...b}=x;for(const y in b){let _=b[y];if(Array.isArray(_)){const C=f?_.length-1:0;_=_[C]}_!==null&&(i[y]=_)}for(const y in g)i[y]=g[y]}),i}const mn=e=>e,{schedule:Lt,cancel:Oa,state:Qr,steps:rx}=z$(typeof requestAnimationFrame<"u"?requestAnimationFrame:mn,!0),ite={useVisualState:J$({scrapeMotionValuesFromProps:X$,createRenderState:G$,onMount:(e,t,{renderState:r,latestValues:n})=>{Lt.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Lt.render(()=>{yk(r,n,{enableHardwareAcceleration:!1},bk(t.tagName),e.transformTemplate),Y$(t,r)})}})},ote={useVisualState:J$({scrapeMotionValuesFromProps:xk,createRenderState:gk})};function ste(e,{forwardMotionProps:t=!1},r,n){return{...hk(e)?ite:ote,preloadedFeatures:r,useRender:Jee(t),createVisualElement:n,Component:e}}function ms(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const eF=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function W0(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const ate=e=>t=>eF(t)&&e(t,W0(t));function bs(e,t,r,n){return ms(e,t,ate(r),n)}const lte=(e,t)=>r=>t(e(r)),xs=(...e)=>e.reduce(lte);function tF(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const cA=tF("dragHorizontal"),dA=tF("dragVertical");function rF(e){let t=!1;if(e==="y")t=dA();else if(e==="x")t=cA();else{const r=cA(),n=dA();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function nF(){const e=rF(!0);return e?(e(),!1):!0}class Ma{constructor(t){this.isMounted=!1,this.node=t}update(){}}function fA(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",i=(o,s)=>{if(o.pointerType==="touch"||nF())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t);const u=l[n];u&&Lt.postRender(()=>u(o,s))};return bs(e.current,r,i,{passive:!e.getProps()[n]})}class ute extends Ma{mount(){this.unmount=xs(fA(this.node,!0),fA(this.node,!1))}unmount(){}}class cte extends Ma{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xs(ms(this.node.current,"focus",()=>this.onFocus()),ms(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const iF=(e,t)=>t?e===t?!0:iF(e,t.parentElement):!1;function nx(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,W0(r))}class dte extends Ma{constructor(){super(...arguments),this.removeStartListeners=mn,this.removeEndListeners=mn,this.removeAccessibleListeners=mn,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),o=bs(window,"pointerup",(l,u)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:f,globalTapTarget:h}=this.node.getProps(),m=!h&&!iF(this.node.current,l.target)?f:d;m&&Lt.update(()=>m(l,u))},{passive:!(n.onTap||n.onPointerUp)}),s=bs(window,"pointercancel",(l,u)=>this.cancelPress(l,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=xs(o,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||nx("up",(u,d)=>{const{onTap:f}=this.node.getProps();f&&Lt.postRender(()=>f(u,d))})};this.removeEndListeners(),this.removeEndListeners=ms(this.node.current,"keyup",s),nx("down",(l,u)=>{this.startPress(l,u)})},r=ms(this.node.current,"keydown",t),n=()=>{this.isPressing&&nx("cancel",(o,s)=>this.cancelPress(o,s))},i=ms(this.node.current,"blur",n);this.removeAccessibleListeners=xs(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Lt.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!nF()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Lt.postRender(()=>n(t,r))}mount(){const t=this.node.getProps(),r=bs(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=ms(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=xs(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const K_=new WeakMap,ix=new WeakMap,fte=e=>{const t=K_.get(e.target);t&&t(e)},hte=e=>{e.forEach(fte)};function pte({root:e,...t}){const r=e||document;ix.has(r)||ix.set(r,{});const n=ix.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(hte,{root:e,...t})),n[i]}function mte(e,t,r){const n=pte(t);return K_.set(e,r),n.observe(e),()=>{K_.delete(e),n.unobserve(e)}}const vte={some:0,all:1};class gte extends Ma{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:o}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:vte[i]},l=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(u)};return mte(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(yte(t,r))&&this.startObserver()}unmount(){}}function yte({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const bte={inView:{Feature:gte},tap:{Feature:dte},focus:{Feature:cte},hover:{Feature:ute}};function oF(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;ne*1e3,_s=e=>e/1e3,xte={type:"spring",stiffness:500,damping:25,restSpeed:10},_te=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),wte={type:"keyframes",duration:.8},Ste={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kte=(e,{keyframes:t})=>t.length>2?wte:Ul.has(e)?e.startsWith("scale")?_te(t[1]):xte:Ste;function Cte({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:u,elapsed:d,...f}){return!!Object.keys(f).length}function wk(e,t){return e[t]||e.default||e}const Tte=e=>e!==null;function H0(e,{repeat:t,repeatType:r="loop"},n){const i=e.filter(Tte),o=t&&r!=="loop"&&t%2===1?0:i.length-1;return!o||n===void 0?i[o]:n}let Fv;function Ete(){Fv=void 0}const Sa={now:()=>(Fv===void 0&&Sa.set(Qr.isProcessing||yee.useManualTiming?Qr.timestamp:performance.now()),Fv),set:e=>{Fv=e,queueMicrotask(Ete)}},sF=e=>/^0[^.\s]+$/u.test(e);function Pte(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||sF(e):!0}let G_=mn;const aF=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ate=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rte(e){const t=Ate.exec(e);if(!t)return[,];const[,r,n,i]=t;return[`--${r??n}`,i]}function lF(e,t,r=1){const[n,i]=Rte(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const s=o.trim();return aF(s)?parseFloat(s):s}return pk(i)?lF(i,t,r+1):i}const Ote=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),hA=e=>e===qc||e===Xe,pA=(e,t)=>parseFloat(e.split(", ")[t]),mA=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/u);if(i)return pA(i[1],t);{const o=n.match(/^matrix\((.+)\)$/u);return o?pA(o[1],e):0}},Ite=new Set(["x","y","z"]),$te=Gh.filter(e=>!Ite.has(e));function Fte(e){const t=[];return $te.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const jc={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:mA(4,13),y:mA(5,14)};jc.translateX=jc.x;jc.translateY=jc.y;const uF=e=>t=>t.test(e),jte={test:e=>e==="auto",parse:e=>e},cF=[qc,Xe,zo,Js,Bee,Nee,jte],vA=e=>cF.find(uF(e)),wl=new Set;let Z_=!1,q_=!1;function dF(){if(q_){const e=Array.from(wl).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const i=Fte(n);i.length&&(r.set(n,i),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const i=r.get(n);i&&i.forEach(([o,s])=>{var l;(l=n.getValue(o))===null||l===void 0||l.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}q_=!1,Z_=!1,wl.forEach(e=>e.complete()),wl.clear()}function fF(){wl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(q_=!0)})}function Dte(){fF(),dF()}class Sk{constructor(t,r,n,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(wl.add(this),Z_||(Z_=!0,Lt.read(fF),Lt.resolveKeyframes(dF))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:i}=this;for(let o=0;or=>!!(Zh(r)&&Lee.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),hF=(e,t,r)=>n=>{if(!Zh(n))return n;const[i,o,s,l]=n.match(mk);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},Mte=e=>Ra(0,255,e),ox={...qc,transform:e=>Math.round(Mte(e))},ml={test:kk("rgb","red"),parse:hF("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+ox.transform(e)+", "+ox.transform(t)+", "+ox.transform(r)+", "+Ef(Tf.transform(n))+")"};function zte(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Y_={test:kk("#"),parse:zte,transform:ml.transform},Qu={test:kk("hsl","hue"),parse:hF("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+zo.transform(Ef(t))+", "+zo.transform(Ef(r))+", "+Ef(Tf.transform(n))+")"},fn={test:e=>ml.test(e)||Y_.test(e)||Qu.test(e),parse:e=>ml.test(e)?ml.parse(e):Qu.test(e)?Qu.parse(e):Y_.parse(e),transform:e=>Zh(e)?e:e.hasOwnProperty("red")?ml.transform(e):Qu.transform(e)};function Lte(e){var t,r;return isNaN(e)&&Zh(e)&&(((t=e.match(mk))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(zee))===null||r===void 0?void 0:r.length)||0)>0}const pF="number",mF="color",Nte="var",Bte="var(",gA="${}",Vte=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _h(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(Vte,u=>(fn.test(u)?(n.color.push(o),i.push(mF),r.push(fn.parse(u))):u.startsWith(Bte)?(n.var.push(o),i.push(Nte),r.push(u)):(n.number.push(o),i.push(pF),r.push(parseFloat(u))),++o,gA)).split(gA);return{values:r,split:l,indexes:n,types:i}}function vF(e){return _h(e).values}function gF(e){const{split:t,types:r}=_h(e),n=t.length;return i=>{let o="";for(let s=0;stypeof e=="number"?0:e;function Ute(e){const t=vF(e);return gF(e)(t.map(Wte))}const Ia={test:Lte,parse:vF,createTransformer:gF,getAnimatableNone:Ute},Hte=new Set(["brightness","contrast","saturate","opacity"]);function Kte(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(mk)||[];if(!n)return e;const i=r.replace(n,"");let o=Hte.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const Gte=/\b([a-z-]*)\(.*?\)/gu,X_={...Ia,getAnimatableNone:e=>{const t=e.match(Gte);return t?t.map(Kte).join(" "):e}},Zte={...U$,color:fn,backgroundColor:fn,outlineColor:fn,fill:fn,stroke:fn,borderColor:fn,borderTopColor:fn,borderRightColor:fn,borderBottomColor:fn,borderLeftColor:fn,filter:X_,WebkitFilter:X_},Ck=e=>Zte[e];function yF(e,t){let r=Ck(e);return r!==X_&&(r=Ia),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const qte=new Set(["auto","none","0"]);function Yte(e,t,r){let n=0,i;for(;n{r.getValue(u).set(d)}),this.resolveNoneKeyframes()}}function Xte(e){let t;return()=>(t===void 0&&(t=e()),t)}const yA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ia.test(e)||e==="0")&&!e.startsWith("url("));function Qte(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r{this.resolveFinishedPromise=t})}}function _F(e,t){return t?e*(1e3/t):0}const ere=5;function wF(e,t,r){const n=Math.max(t-ere,0);return _F(r-e(n),t-n)}const sx=.001,tre=.01,rre=10,nre=.05,ire=1;function ore({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o,s=1-t;s=Ra(nre,ire,s),e=Ra(tre,rre,_s(e)),s<1?(i=d=>{const f=d*s,h=f*e,m=f-r,v=Q_(d,s),x=Math.exp(-h);return sx-m/v*x},o=d=>{const h=d*s*e,m=h*r+r,v=Math.pow(s,2)*Math.pow(d,2)*e,x=Math.exp(-h),g=Q_(Math.pow(d,2),s);return(-i(d)+sx>0?-1:1)*((m-v)*x)/g}):(i=d=>{const f=Math.exp(-d*e),h=(d-r)*e+1;return-sx+f*h},o=d=>{const f=Math.exp(-d*e),h=(r-d)*(e*e);return f*h});const l=5/e,u=are(i,o,l);if(e=wa(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(u,2)*n;return{stiffness:d,damping:s*2*Math.sqrt(n*d),duration:e}}}const sre=12;function are(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function cre(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!bA(e,ure)&&bA(e,lre)){const r=ore(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function SF({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:m}=cre({...n,velocity:-_s(n.velocity||0)}),v=h||0,x=u/(2*Math.sqrt(l*d)),g=o-i,S=_s(Math.sqrt(l/d)),b=Math.abs(g)<5;r||(r=b?.01:2),t||(t=b?.005:.5);let y;if(x<1){const _=Q_(S,x);y=C=>{const T=Math.exp(-x*S*C);return o-T*((v+x*S*g)/_*Math.sin(_*C)+g*Math.cos(_*C))}}else if(x===1)y=_=>o-Math.exp(-S*_)*(g+(v+S*g)*_);else{const _=S*Math.sqrt(x*x-1);y=C=>{const T=Math.exp(-x*S*C),I=Math.min(_*C,300);return o-T*((v+x*S*g)*Math.sinh(I)+_*g*Math.cosh(I))/_}}return{calculatedDuration:m&&f||null,next:_=>{const C=y(_);if(m)s.done=_>=f;else{let T=v;_!==0&&(x<1?T=wF(y,_,C):T=0);const I=Math.abs(T)<=r,$=Math.abs(o-C)<=t;s.done=I&&$}return s.value=s.done?o:C,s}}}function xA({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:u,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},v=z=>l!==void 0&&zu,x=z=>l===void 0?u:u===void 0||Math.abs(l-z)-g*Math.exp(-z/n),_=z=>b+y(z),C=z=>{const N=y(z),V=_(z);m.done=Math.abs(N)<=d,m.value=m.done?b:V};let T,I;const $=z=>{v(m.value)&&(T=z,I=SF({keyframes:[m.value,x(m.value)],velocity:wF(_,z,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return $(0),{calculatedDuration:null,next:z=>{let N=!1;return!I&&T===void 0&&(N=!0,C(z),$(z)),T!==void 0&&z>=T?I.next(z-T):(!N&&C(z),m)}}}const kF=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,dre=1e-7,fre=12;function hre(e,t,r,n,i){let o,s,l=0;do s=t+(r-t)/2,o=kF(s,n,i)-e,o>0?r=s:t=s;while(Math.abs(o)>dre&&++lhre(o,0,1,e,r);return o=>o===0||o===1?o:kF(i(o),t,n)}const pre=Yh(.42,0,1,1),mre=Yh(0,0,.58,1),CF=Yh(.42,0,.58,1),vre=e=>Array.isArray(e)&&typeof e[0]!="number",TF=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,EF=e=>t=>1-e(1-t),Tk=e=>1-Math.sin(Math.acos(e)),PF=EF(Tk),gre=TF(Tk),AF=Yh(.33,1.53,.69,.99),Ek=EF(AF),yre=TF(Ek),bre=e=>(e*=2)<1?.5*Ek(e):.5*(2-Math.pow(2,-10*(e-1))),_A={linear:mn,easeIn:pre,easeInOut:CF,easeOut:mre,circIn:Tk,circInOut:gre,circOut:PF,backIn:Ek,backInOut:yre,backOut:AF,anticipate:bre},wA=e=>{if(Array.isArray(e)){G_(e.length===4);const[t,r,n,i]=e;return Yh(t,r,n,i)}else if(typeof e=="string")return G_(_A[e]!==void 0),_A[e];return e},wh=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},dr=(e,t,r)=>e+(t-e)*r;function ax(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function xre({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,s=0;if(!t)i=o=s=r;else{const l=r<.5?r*(1+t):r+t-r*t,u=2*r-l;i=ax(u,l,e+1/3),o=ax(u,l,e),s=ax(u,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}const lx=(e,t,r)=>{const n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},_re=[Y_,ml,Qu],wre=e=>_re.find(t=>t.test(e));function SA(e){const t=wre(e);let r=t.parse(e);return t===Qu&&(r=xre(r)),r}const kA=(e,t)=>{const r=SA(e),n=SA(t),i={...r};return o=>(i.red=lx(r.red,n.red,o),i.green=lx(r.green,n.green,o),i.blue=lx(r.blue,n.blue,o),i.alpha=dr(r.alpha,n.alpha,o),ml.transform(i))},J_=new Set(["none","hidden"]);function Sre(e,t){return J_.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function ew(e,t){return r=>r>0?t:e}function kre(e,t){return r=>dr(e,t,r)}function Pk(e){return typeof e=="number"?kre:typeof e=="string"?pk(e)?ew:fn.test(e)?kA:Ere:Array.isArray(e)?RF:typeof e=="object"?fn.test(e)?kA:Cre:ew}function RF(e,t){const r=[...e],n=r.length,i=e.map((o,s)=>Pk(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in n)r[o]=n[o](i);return r}}function Tre(e,t){var r;const n=[],i={color:0,var:0,number:0};for(let o=0;o{const r=Ia.createTransformer(t),n=_h(e),i=_h(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?J_.has(e)&&!i.values.length||J_.has(t)&&!n.values.length?Sre(e,t):xs(RF(Tre(n,i),i.values),r):ew(e,t)};function OF(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?dr(e,t,r):Pk(e)(e,t)}function Pre(e,t,r){const n=[],i=r||OF,o=e.length-1;for(let s=0;st[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Pre(t,n,i),l=s.length,u=d=>{let f=0;if(l>1)for(;fu(Ra(e[0],e[o-1],d)):u}function Rre(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=wh(0,t,n);e.push(dr(r,1,i))}}function Ore(e){const t=[0];return Rre(t,e.length-1),t}function Ire(e,t){return e.map(r=>r*t)}function $re(e,t){return e.map(()=>t||CF).splice(0,e.length-1)}function Mg({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=vre(n)?n.map(wA):wA(n),o={done:!1,value:t[0]},s=Ire(r&&r.length===t.length?r:Ore(t),e),l=Are(s,t,{ease:Array.isArray(i)?i:$re(t,i)});return{calculatedDuration:e,next:u=>(o.value=l(u),o.done=u>=e,o)}}const CA=2e4;function Fre(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=CA?1/0:t}const jre=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Lt.update(t,!0),stop:()=>Oa(t),now:()=>Qr.isProcessing?Qr.timestamp:Sa.now()}},Dre={decay:xA,inertia:xA,tween:Mg,keyframes:Mg,spring:SF},Mre=e=>e/100;class Ak extends xF{constructor({KeyframeResolver:t=Sk,...r}){super(r),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:i,keyframes:o}=this.options,s=(l,u)=>this.onKeyframesResolved(l,u);n&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,s,n,i):this.resolver=new t(o,s,n,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,l=Dre[r]||Mg;let u,d;l!==Mg&&typeof t[0]!="number"&&(u=xs(Mre,OF(t[0],t[1])),t=[0,100]);const f=l({...this.options,keyframes:t});o==="mirror"&&(d=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),f.calculatedDuration===null&&(f.calculatedDuration=Fre(f));const{calculatedDuration:h}=f,m=h+i,v=m*(n+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:h,resolvedDuration:m,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:z}=this.options;return{done:!0,value:z[z.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=n;if(this.startTime===null)return o.next(0);const{delay:m,repeat:v,repeatType:x,repeatDelay:g,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?b<0:b>f;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let _=this.currentTime,C=o;if(v){const z=Math.min(this.currentTime,f)/h;let N=Math.floor(z),V=z%1;!V&&z>=1&&(V=1),V===1&&N--,N=Math.min(N,v+1),!!(N%2)&&(x==="reverse"?(V=1-V,g&&(V-=g/h)):x==="mirror"&&(C=s)),_=Ra(0,1,V)*h}const T=y?{done:!1,value:u[0]}:C.next(_);l&&(T.value=l(T.value));let{done:I}=T;!y&&d!==null&&(I=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return $&&i!==void 0&&(T.value=H0(u,this.options,i)),S&&S(T.value),$&&this.finish(),T}get duration(){const{resolved:t}=this;return t?_s(t.calculatedDuration):0}get time(){return _s(this.currentTime)}set time(t){t=wa(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=_s(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=jre,onPlay:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),r&&r();const n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=n),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const IF=e=>Array.isArray(e)&&typeof e[0]=="number";function $F(e){return!!(!e||typeof e=="string"&&e in Rk||IF(e)||Array.isArray(e)&&e.every($F))}const of=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Rk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:of([0,.65,.55,1]),circOut:of([.55,0,1,.45]),backIn:of([.31,.01,.66,-.59]),backOut:of([.33,1.53,.69,.99])};function zre(e){return FF(e)||Rk.easeOut}function FF(e){if(e)return IF(e)?of(e):Array.isArray(e)?e.map(zre):Rk[e]}function Lre(e,t,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:l,times:u}={}){const d={[t]:r};u&&(d.offset=u);const f=FF(l);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:n,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const Nre=Xte(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Bre=new Set(["opacity","clipPath","filter","transform"]),zg=10,Vre=2e4;function Wre(e){return e.type==="spring"||e.name==="backgroundColor"||!$F(e.ease)}function Ure(e,t){const r=new Ak({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const i=[];let o=0;for(;!n.done&&othis.onKeyframesResolved(o,s),r,n),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:i=300,times:o,ease:s,type:l,motionValue:u,name:d}=this.options;if(!(!((n=u.owner)===null||n===void 0)&&n.current))return!1;if(Wre(this.options)){const{onComplete:h,onUpdate:m,motionValue:v,...x}=this.options,g=Ure(t,x);t=g.keyframes,t.length===1&&(t[1]=t[0]),i=g.duration,o=g.times,s=g.ease,l="keyframes"}const f=Lre(u.owner.current,d,t,{...this.options,duration:i,times:o,ease:s});return f.startTime=Sa.now(),this.pendingTimeline?(f.timeline=this.pendingTimeline,this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:h}=this.options;u.set(H0(t,this.options,r)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:i,times:o,type:l,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:r}=t;return _s(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return _s(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=wa(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:r}=t;return r.playbackRate}set speed(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:r}=t;return r.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return mn;const{animation:n}=r;n.timeline=t,n.onfinish=null}return mn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:i,type:o,ease:s,times:l}=t;if(!(r.playState==="idle"||r.playState==="finished")){if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,...h}=this.options,m=new Ak({...h,keyframes:n,duration:i,type:o,ease:s,times:l,isGenerator:!0}),v=wa(this.time);u.setWithVelocity(m.sample(v-zg).value,m.sample(v).value,zg)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:i,repeatType:o,damping:s,type:l}=t;return Nre()&&n&&Bre.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!i&&o!=="mirror"&&s!==0&&l!=="inertia"}}const Ok=(e,t,r,n={},i,o)=>s=>{const l=wk(n,e)||{},u=l.delay||n.delay||0;let{elapsed:d=0}=n;d=d-wa(u);let f={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:m=>{t.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};Cte(l)||(f={...f,...kte(e,f)}),f.duration&&(f.duration=wa(f.duration)),f.repeatDelay&&(f.repeatDelay=wa(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=H0(f.keyframes,l);if(m!==void 0){Lt.update(()=>{f.onUpdate(m),f.onComplete()});return}}return!o&&TA.supports(f)?new TA(f):new Ak(f)};function Lg(e){return!!(pn(e)&&e.add)}function Ik(e,t){e.indexOf(t)===-1&&e.push(t)}function $k(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Fk{constructor(){this.subscriptions=[]}add(t){return Ik(this.subscriptions,t),()=>$k(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o!isNaN(parseFloat(e));class Kre{constructor(t,r={}){this.version="11.2.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{const o=Sa.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Sa.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Hre(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Fk);const n=this.events[t].add(r);return t==="change"?()=>{n(),Lt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Sa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>EA)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,EA);return _F(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Sh(e,t){return new Kre(e,t)}function Gre(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Sh(r))}function Zre(e,t){const r=U0(e,t);let{transitionEnd:n={},transition:i={},...o}=r||{};o={...o,...n};for(const s in o){const l=tte(o[s]);Gre(e,s,l)}}function qre({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function jF(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;const d=e.getValue("willChange");n&&(s=n);const f=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const v=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),x=u[m];if(x===void 0||h&&qre(h,m))continue;const g={delay:r,elapsed:0,...wk(s||{},m)};let S=!1;if(window.HandoffAppearAnimations){const _=e.getProps()[M$];if(_){const C=window.HandoffAppearAnimations(_,m,v,Lt);C!==null&&(g.elapsed=C,S=!0)}}v.start(Ok(m,v,x,e.shouldReduceMotion&&Ul.has(m)?{type:!1}:g,e,S));const b=v.animation;b&&(Lg(d)&&(d.add(m),b.then(()=>d.remove(m))),f.push(b))}return l&&Promise.all(f).then(()=>{Lt.update(()=>{l&&Zre(e,l)})}),f}function tw(e,t,r={}){var n;const i=U0(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);const s=i?()=>Promise.all(jF(e,i,r)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return Yre(e,t,f+d,h,m,r)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,f]=u==="beforeChildren"?[s,l]:[l,s];return d().then(()=>f())}else return Promise.all([s(),l(r.delay)])}function Yre(e,t,r=0,n=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*n,u=i===1?(d=0)=>d*n:(d=0)=>l-d*n;return Array.from(e.variantChildren).sort(Xre).forEach((d,f)=>{d.notify("AnimationStart",t),s.push(tw(d,t,{...o,delay:r+u(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function Xre(e,t){return e.sortNodePosition(t)}function Qre(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(o=>tw(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=tw(e,t,r);else{const i=typeof t=="function"?U0(e,t,r.custom):t;n=Promise.all(jF(e,i,r))}return n.then(()=>{Lt.postRender(()=>{e.notify("AnimationComplete",t)})})}const Jre=[...ck].reverse(),ene=ck.length;function tne(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Qre(e,r,n)))}function rne(e){let t=tne(e);const r=ine();let n=!0;const i=u=>(d,f)=>{var h;const m=U0(e,f,u==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:v,transitionEnd:x,...g}=m;d={...d,...g,...x}}return d};function o(u){t=u(e)}function s(u){const d=e.getProps(),f=e.getVariantContext(!0)||{},h=[],m=new Set;let v={},x=1/0;for(let S=0;Sx&&C,N=!1;const V=Array.isArray(_)?_:[_];let ce=V.reduce(i(b),{});T===!1&&(ce={});const{prevResolvedValues:D={}}=y,U={...D,...ce},A=Q=>{z=!0,m.has(Q)&&(N=!0,m.delete(Q)),y.needsAnimating[Q]=!0;const ge=e.getValue(Q);ge&&(ge.liveStyle=!1)};for(const Q in U){const ge=ce[Q],G=D[Q];if(v.hasOwnProperty(Q))continue;let oe=!1;H_(ge)&&H_(G)?oe=!oF(ge,G):oe=ge!==G,oe?ge!=null?A(Q):m.add(Q):ge!==void 0&&m.has(Q)?A(Q):y.protectedKeys[Q]=!0}y.prevProp=_,y.prevResolvedValues=ce,y.isActive&&(v={...v,...ce}),n&&e.blockInitialAnimation&&(z=!1),z&&(!I||N)&&h.push(...V.map(Q=>({animation:Q,options:{type:b}})))}if(m.size){const S={};m.forEach(b=>{const y=e.getBaseTarget(b),_=e.getValue(b);_&&(_.liveStyle=!0),S[b]=y??null}),h.push({animation:S})}let g=!!h.length;return n&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(g=!1),n=!1,g?t(h):Promise.resolve()}function l(u,d){var f;if(r[u].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var v;return(v=m.animationState)===null||v===void 0?void 0:v.setActive(u,d)}),r[u].isActive=d;const h=s(u);for(const m in r)r[m].protectedKeys={};return h}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>r}}function nne(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!oF(t,e):!1}function Ya(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ine(){return{animate:Ya(!0),whileInView:Ya(),whileHover:Ya(),whileTap:Ya(),whileDrag:Ya(),whileFocus:Ya(),exit:Ya()}}class one extends Ma{constructor(t){super(t),t.animationState||(t.animationState=rne(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),B0(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let sne=0;class ane extends Ma{constructor(){super(...arguments),this.id=sne++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const lne={animation:{Feature:one},exit:{Feature:ane}},PA=(e,t)=>Math.abs(e-t);function une(e,t){const r=PA(e.x,t.x),n=PA(e.y,t.y);return Math.sqrt(r**2+n**2)}class DF{constructor(t,r,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=cx(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=une(h.offset,{x:0,y:0})>=3;if(!m&&!v)return;const{point:x}=h,{timestamp:g}=Qr;this.history.push({...x,timestamp:g});const{onStart:S,onMove:b}=this.handlers;m||(S&&S(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ux(m,this.transformPagePoint),Lt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:v,onSessionEnd:x,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=cx(h.type==="pointercancel"?this.lastMoveEventInfo:ux(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(h,S),x&&x(h,S)},!eF(t))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=n,this.contextWindow=i||window;const s=W0(t),l=ux(s,this.transformPagePoint),{point:u}=l,{timestamp:d}=Qr;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=r;f&&f(t,cx(l,this.history)),this.removeListeners=xs(bs(this.contextWindow,"pointermove",this.handlePointerMove),bs(this.contextWindow,"pointerup",this.handlePointerUp),bs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Oa(this.updatePoint)}}function ux(e,t){return t?{point:t(e.point)}:e}function AA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cx({point:e},t){return{point:e,delta:AA(e,MF(t)),offset:AA(e,cne(t)),velocity:dne(t,.1)}}function cne(e){return e[0]}function MF(e){return e[e.length-1]}function dne(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=MF(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>wa(t)));)r--;if(!n)return{x:0,y:0};const o=_s(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function di(e){return e.max-e.min}function rw(e,t=0,r=.01){return Math.abs(e-t)<=r}function RA(e,t,r,n=.5){e.origin=n,e.originPoint=dr(t.min,t.max,e.origin),e.scale=di(r)/di(t),(rw(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=dr(r.min,r.max,e.origin)-e.originPoint,(rw(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Pf(e,t,r,n){RA(e.x,t.x,r.x,n?n.originX:void 0),RA(e.y,t.y,r.y,n?n.originY:void 0)}function OA(e,t,r){e.min=r.min+t.min,e.max=e.min+di(t)}function fne(e,t,r){OA(e.x,t.x,r.x),OA(e.y,t.y,r.y)}function IA(e,t,r){e.min=t.min-r.min,e.max=e.min+di(t)}function Af(e,t,r){IA(e.x,t.x,r.x),IA(e.y,t.y,r.y)}function hne(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?dr(r,e,n.max):Math.min(e,r)),e}function $A(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function pne(e,{top:t,left:r,bottom:n,right:i}){return{x:$A(e.x,r,i),y:$A(e.y,t,n)}}function FA(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=wh(t.min,t.max-n,e.min):n>i&&(r=wh(e.min,e.max-i,t.min)),Ra(0,1,r)}function gne(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const nw=.35;function yne(e=nw){return e===!1?e=0:e===!0&&(e=nw),{x:jA(e,"left","right"),y:jA(e,"top","bottom")}}function jA(e,t,r){return{min:DA(e,t),max:DA(e,r)}}function DA(e,t){return typeof e=="number"?e:e[t]||0}const MA=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ju=()=>({x:MA(),y:MA()}),zA=()=>({min:0,max:0}),Sr=()=>({x:zA(),y:zA()});function Pi(e){return[e("x"),e("y")]}function zF({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function bne({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function xne(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function dx(e){return e===void 0||e===1}function iw({scale:e,scaleX:t,scaleY:r}){return!dx(e)||!dx(t)||!dx(r)}function nl(e){return iw(e)||LF(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function LF(e){return LA(e.x)||LA(e.y)}function LA(e){return e&&e!=="0%"}function Ng(e,t,r){const n=e-r,i=t*n;return r+i}function NA(e,t,r,n,i){return i!==void 0&&(e=Ng(e,i,n)),Ng(e,r,n)+t}function ow(e,t=0,r=1,n,i){e.min=NA(e.min,t,r,n,i),e.max=NA(e.max,t,r,n,i)}function NF(e,{x:t,y:r}){ow(e.x,t.translate,t.scale,t.originPoint),ow(e.y,r.translate,r.scale,r.originPoint)}function _ne(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l1.0000000000001||e<.999999999999?e:1}function ra(e,t){e.min=e.min+t,e.max=e.max+t}function VA(e,t,[r,n,i]){const o=t[i]!==void 0?t[i]:.5,s=dr(e.min,e.max,o);ow(e,t[r],t[n],s,t.scale)}const wne=["x","scaleX","originX"],Sne=["y","scaleY","originY"];function ec(e,t){VA(e.x,t,wne),VA(e.y,t,Sne)}function BF(e,t){return zF(xne(e.getBoundingClientRect(),t))}function kne(e,t,r){const n=BF(e,r),{scroll:i}=t;return i&&(ra(n.x,i.offset.x),ra(n.y,i.offset.y)),n}const VF=({current:e})=>e?e.ownerDocument.defaultView:null,Cne=new WeakMap;class Tne{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Sr(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(W0(f,"page").point)},o=(f,h)=>{const{drag:m,dragPropagation:v,onDragStart:x}=this.getProps();if(m&&!v&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rF(m),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pi(S=>{let b=this.getAxisMotionValue(S).get()||0;if(zo.test(b)){const{projection:y}=this.visualElement;if(y&&y.layout){const _=y.layout.layoutBox[S];_&&(b=di(_)*(parseFloat(b)/100))}}this.originPoint[S]=b}),x&&Lt.postRender(()=>x(f,h));const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(f,h)=>{const{dragPropagation:m,dragDirectionLock:v,onDirectionLock:x,onDrag:g}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:S}=h;if(v&&this.currentDirection===null){this.currentDirection=Ene(S),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",h.point,S),this.updateAxis("y",h.point,S),this.visualElement.render(),g&&g(f,h)},l=(f,h)=>this.stop(f,h),u=()=>Pi(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new DF(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:VF(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Lt.postRender(()=>o(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!Xm(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=hne(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;r&&Xu(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&i?this.constraints=pne(i.layoutBox,r):this.constraints=!1,this.elastic=yne(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Pi(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=gne(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Xu(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=kne(n,i.root,this.visualElement.getTransformPagePoint());let s=mne(i.layout.layoutBox,o);if(r){const l=r(bne(s));this.hasMutatedConstraints=!!l,l&&(s=zF(l))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},d=Pi(f=>{if(!Xm(f,r,this.currentDirection))return;let h=u&&u[f]||{};s&&(h={min:0,max:0});const m=i?200:1e6,v=i?40:1e7,x={type:"inertia",velocity:n?t[f]:0,bounceStiffness:m,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(f,x)});return Promise.all(d).then(l)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Ok(t,n,0,r,this.visualElement))}stopAnimation(){Pi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Pi(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Pi(r=>{const{drag:n}=this.getProps();if(!Xm(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[r];o.set(t[r]-dr(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Xu(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Pi(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const u=l.get();i[s]=vne({min:u,max:u},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Pi(s=>{if(!Xm(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:d}=this.constraints[s];l.set(dr(u,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;Cne.set(this.visualElement,this);const t=this.visualElement.current,r=bs(t,"pointerdown",u=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();Xu(u)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const s=ms(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(Pi(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=u[f].translate,h.set(h.get()+u[f].translate))}),this.visualElement.render())});return()=>{s(),r(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=nw,dragMomentum:l=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Xm(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Ene(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class Pne extends Ma{constructor(t){super(t),this.removeGroupControls=mn,this.removeListeners=mn,this.controls=new Tne(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mn}unmount(){this.removeGroupControls(),this.removeListeners()}}const WA=e=>(t,r)=>{e&&Lt.postRender(()=>e(t,r))};class Ane extends Ma{constructor(){super(...arguments),this.removePointerDownListener=mn}onPointerDown(t){this.session=new DF(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:VF(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:WA(t),onStart:WA(r),onMove:n,onEnd:(o,s)=>{delete this.session,i&&Lt.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=bs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function WF(){const e=R.useContext(Kh);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=R.useId();return R.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}function Rne(){return One(R.useContext(Kh))}function One(e){return e===null?!0:e.isPresent}const jv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function UA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Xe.test(e))e=parseFloat(e);else return e;const r=UA(e,t.target.x),n=UA(e,t.target.y);return`${r}% ${n}%`}},Ine={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=Ia.parse(e);if(i.length>5)return n;const o=Ia.createTransformer(e),s=typeof i[0]!="number"?1:0,l=r.x.scale*t.x,u=r.y.scale*t.y;i[0+s]/=l,i[1+s]/=u;const d=dr(l,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),o(i)}};class $ne extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;Oee(Fne),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),jv.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Lt.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),uk.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function UF(e){const[t,r]=WF(),n=R.useContext(fk);return w.jsx($ne,{...e,layoutGroup:n,switchLayoutGroup:R.useContext(N$),isPresent:t,safeToRemove:r})}const Fne={borderRadius:{...Vd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vd,borderTopRightRadius:Vd,borderBottomLeftRadius:Vd,borderBottomRightRadius:Vd,boxShadow:Ine},HF=["TopLeft","TopRight","BottomLeft","BottomRight"],jne=HF.length,HA=e=>typeof e=="string"?parseFloat(e):e,KA=e=>typeof e=="number"||Xe.test(e);function Dne(e,t,r,n,i,o){i?(e.opacity=dr(0,r.opacity!==void 0?r.opacity:1,Mne(n)),e.opacityExit=dr(t.opacity!==void 0?t.opacity:1,0,zne(n))):o&&(e.opacity=dr(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;snt?1:r(wh(e,t,n))}function ZA(e,t){e.min=t.min,e.max=t.max}function Ti(e,t){ZA(e.x,t.x),ZA(e.y,t.y)}function qA(e,t,r,n,i){return e-=t,e=Ng(e,1/r,n),i!==void 0&&(e=Ng(e,1/i,n)),e}function Lne(e,t=0,r=1,n=.5,i,o=e,s=e){if(zo.test(t)&&(t=parseFloat(t),t=dr(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=dr(o.min,o.max,n);e===o&&(l-=t),e.min=qA(e.min,t,r,l,i),e.max=qA(e.max,t,r,l,i)}function YA(e,t,[r,n,i],o,s){Lne(e,t[r],t[n],t[i],t.scale,o,s)}const Nne=["x","scaleX","originX"],Bne=["y","scaleY","originY"];function XA(e,t,r,n){YA(e.x,t,Nne,r?r.x:void 0,n?n.x:void 0),YA(e.y,t,Bne,r?r.y:void 0,n?n.y:void 0)}function QA(e){return e.translate===0&&e.scale===1}function GF(e){return QA(e.x)&&QA(e.y)}function Vne(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ZF(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function JA(e){return di(e.x)/di(e.y)}class Wne{constructor(){this.members=[]}add(t){Ik(this.members,t),t.scheduleRender()}remove(t){if($k(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function e5(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(r==null?void 0:r.z)||0;if((i||o||s)&&(n=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:d,rotate:f,rotateX:h,rotateY:m,skewX:v,skewY:x}=r;d&&(n=`perspective(${d}px) ${n}`),f&&(n+=`rotate(${f}deg) `),h&&(n+=`rotateX(${h}deg) `),m&&(n+=`rotateY(${m}deg) `),v&&(n+=`skewX(${v}deg) `),x&&(n+=`skewY(${x}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(n+=`scale(${l}, ${u})`),n||"none"}const Une=(e,t)=>e.depth-t.depth;class Hne{constructor(){this.children=[],this.isDirty=!1}add(t){Ik(this.children,t),this.isDirty=!0}remove(t){$k(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Une),this.isDirty=!1,this.children.forEach(t)}}function Kne(e,t){const r=Sa.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&(Oa(n),e(o-t))};return Lt.read(n,!0),()=>Oa(n)}function Gne(e){window.MotionDebug&&window.MotionDebug.record(e)}function Zne(e){return e instanceof SVGElement&&e.tagName!=="svg"}function qne(e,t,r){const n=pn(e)?e:Sh(e);return n.start(Ok("",n,t,r)),n.animation}const fx=["","X","Y","Z"],Yne={visibility:"hidden"},t5=1e3;let Xne=0;const il={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function hx(e,t,r,n){const{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function qF({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=Xne++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!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.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,il.totalNodes=il.resolvedTargetDeltas=il.recalculatedProjection=0,this.nodes.forEach(eie),this.nodes.forEach(oie),this.nodes.forEach(sie),this.nodes.forEach(tie),Gne(il)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Kne(m,250),jv.hasAnimatedSinceResize&&(jv.hasAnimatedSinceResize=!1,this.nodes.forEach(n5))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||f.getDefaultTransition()||die,{onLayoutAnimationStart:S,onLayoutAnimationComplete:b}=f.getProps(),y=!this.targetLayout||!ZF(this.targetLayout,x)||v,_=!m&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||_||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,_);const C={...wk(g,"layout"),onPlay:S,onComplete:b};(f.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else m||n5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Oa(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes&&this.nodes.forEach(aie),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;fthis.update()))}clearAllSnapshots(){this.nodes.forEach(rie),this.sharedNodes.forEach(lie)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Lt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Lt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const T=C/1e3;i5(h.x,s.x,T),i5(h.y,s.y,T),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Af(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),uie(this.relativeTarget,this.relativeTargetOrigin,m,T),_&&Vne(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=Sr()),Ti(_,this.relativeTarget)),g&&(this.animationValues=f,Dne(f,d,this.latestValues,T,y,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Oa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Lt.update(()=>{jv.hasAnimatedSinceResize=!0,this.currentAnimation=qne(0,t5,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(t5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:u,layout:d,latestValues:f}=s;if(!(!l||!u||!d)){if(this!==s&&this.layout&&d&&YF(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||Sr();const h=di(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+h;const m=di(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}Ti(l,u),ec(l,f),Pf(this.projectionDeltaWithTransform,this.layoutCorrected,l,f)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Wne),this.sharedNodes.get(s).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const d={};u.z&&hx("z",s,d,this.animationValues);for(let f=0;f{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(r5),this.root.sharedNodes.clear()}}}function Qne(e){e.updateLayout()}function Jne(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,s=r.source!==e.layout.source;o==="size"?Pi(h=>{const m=s?r.measuredBox[h]:r.layoutBox[h],v=di(m);m.min=n[h].min,m.max=m.min+v}):YF(o,r.layoutBox,n)&&Pi(h=>{const m=s?r.measuredBox[h]:r.layoutBox[h],v=di(n[h]);m.max=m.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+v)});const l=Ju();Pf(l,n,r.layoutBox);const u=Ju();s?Pf(u,e.applyTransform(i,!0),r.measuredBox):Pf(u,n,r.layoutBox);const d=!GF(l);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:v}=h;if(m&&v){const x=Sr();Af(x,r.layoutBox,m.layoutBox);const g=Sr();Af(g,n,v.layoutBox),ZF(x,g)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=x,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function eie(e){il.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function tie(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rie(e){e.clearSnapshot()}function r5(e){e.clearMeasurements()}function nie(e){e.isLayoutDirty=!1}function iie(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function n5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function oie(e){e.resolveTargetDelta()}function sie(e){e.calcProjection()}function aie(e){e.resetSkewAndRotation()}function lie(e){e.removeLeadSnapshot()}function i5(e,t,r){e.translate=dr(t.translate,0,r),e.scale=dr(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function o5(e,t,r,n){e.min=dr(t.min,r.min,n),e.max=dr(t.max,r.max,n)}function uie(e,t,r,n){o5(e.x,t.x,r.x,n),o5(e.y,t.y,r.y,n)}function cie(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const die={duration:.45,ease:[.4,0,.1,1]},s5=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),a5=s5("applewebkit/")&&!s5("chrome/")?Math.round:mn;function l5(e){e.min=a5(e.min),e.max=a5(e.max)}function fie(e){l5(e.x),l5(e.y)}function YF(e,t,r){return e==="position"||e==="preserve-aspect"&&!rw(JA(t),JA(r),.2)}const hie=qF({attachResizeListener:(e,t)=>ms(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),px={current:void 0},XF=qF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!px.current){const e=new hie({});e.mount(window),e.setOptions({layoutScroll:!0}),px.current=e}return px.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),pie={pan:{Feature:Ane},drag:{Feature:Pne,ProjectionNode:XF,MeasureLayout:UF}},sw={current:null},QF={current:!1};function mie(){if(QF.current=!0,!!sk)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sw.current=e.matches;e.addListener(t),t()}else sw.current=!1}function vie(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],s=r[i];if(pn(o))e.addValue(i,o),Lg(n)&&n.add(i);else if(pn(s))e.addValue(i,Sh(o,{owner:e})),Lg(n)&&n.remove(i);else if(s!==o)if(e.hasValue(i)){const l=e.getValue(i);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(i);e.addValue(i,Sh(l!==void 0?l:o,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const u5=new WeakMap,gie=[...cF,fn,Ia],yie=e=>gie.find(uF(e)),JF=Object.keys(xh),bie=JF.length,c5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],xie=dk.length;function ej(e){if(e)return e.options.allowProjection!==!1?e.projection:ej(e.parent)}class _ie{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},l={}){this.resolveKeyframes=(m,v,x,g)=>new this.KeyframeResolver(m,v,x,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Sk,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Lt.render(this.render,!1,!0);const{latestValues:u,renderState:d}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=V0(r),this.isVariantNode=L$(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(r,{},this);for(const m in h){const v=h[m];u[m]!==void 0&&pn(v)&&(v.set(u[m],!1),Lg(f)&&f.add(m))}}mount(t){this.current=t,u5.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),QF.current||mie(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:sw.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;u5.delete(this.current),this.projection&&this.projection.unmount(),Oa(this.notifyUpdate),Oa(this.render),this.valueSubscriptions.forEach(r=>r()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const r in this.events)this.events[r].clear();for(const r in this.features)(t=this.features[r])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,r){const n=Ul.has(t),i=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Lt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,o){let s,l;for(let u=0;uthis.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,layoutScroll:m,layoutRoot:v})}return l}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Sr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Sh(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(aF(i)||sF(i))?i=parseFloat(i):!yie(i)&&Ia.test(r)&&(i=yF(t,r)),this.setBaseTarget(t,pn(i)?i.get():i)),pn(i)?i.get():i}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const s=_k(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);s&&(i=s[t])}if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!pn(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Fk),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class tj extends _ie{constructor(){super(...arguments),this.KeyframeResolver=bF}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}}function wie(e){return window.getComputedStyle(e)}class Sie extends tj{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,r){if(Ul.has(r)){const n=Ck(r);return n&&n.default||0}else{const n=wie(t),i=(W$(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return BF(t,r)}build(t,r,n,i){vk(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return xk(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;pn(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){Z$(t,r,n,i)}}class kie extends tj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Ul.has(r)){const n=Ck(r);return n&&n.default||0}return r=q$.has(r)?r:lk(r),t.getAttribute(r)}measureInstanceViewportBox(){return Sr()}scrapeMotionValuesFromProps(t,r,n){return X$(t,r,n)}build(t,r,n,i){yk(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){Y$(t,r,n,i)}mount(t){this.isSVGTag=bk(t.tagName),super.mount(t)}}const Cie=(e,t)=>hk(e)?new kie(t,{enableHardwareAcceleration:!1}):new Sie(t,{allowProjection:e!==R.Fragment,enableHardwareAcceleration:!0}),Tie={layout:{ProjectionNode:XF,MeasureLayout:UF}},Eie={...lne,...bte,...pie,...Tie},Hl=Aee((e,t)=>ste(e,t,Eie,Cie));function rj(){const e=R.useRef(!1);return ak(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Pie(){const e=rj(),[t,r]=R.useState(0),n=R.useCallback(()=>{e.current&&r(t+1)},[t]);return[R.useCallback(()=>Lt.postRender(n),[n]),t]}class Aie extends R.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Rie({children:e,isPresent:t}){const r=R.useId(),n=R.useRef(null),i=R.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=R.useContext(ok);return R.useInsertionEffect(()=>{const{width:s,height:l,top:u,left:d}=i.current;if(t||!n.current||!s||!l)return;n.current.dataset.motionPopId=r;const f=document.createElement("style");return o&&(f.nonce=o),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${s}px !important; + height: ${l}px !important; + top: ${u}px !important; + left: ${d}px !important; + } + `),()=>{document.head.removeChild(f)}},[t]),w.jsx(Aie,{isPresent:t,childRef:n,sizeRef:i,children:R.cloneElement(e,{ref:n})})}const mx=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=Q$(Oie),u=R.useId(),d=R.useMemo(()=>({id:u,initial:t,isPresent:r,custom:i,onExitComplete:f=>{l.set(f,!0);for(const h of l.values())if(!h)return;n&&n()},register:f=>(l.set(f,!1),()=>l.delete(f))}),o?[Math.random()]:[r]);return R.useMemo(()=>{l.forEach((f,h)=>l.set(h,!1))},[r]),R.useEffect(()=>{!r&&!l.size&&n&&n()},[r]),s==="popLayout"&&(e=w.jsx(Rie,{isPresent:r,children:e})),w.jsx(Kh.Provider,{value:d,children:e})};function Oie(){return new Map}function Iie(e){return R.useEffect(()=>()=>e(),[])}const ol=e=>e.key||"";function $ie(e,t){e.forEach(r=>{const n=ol(r);t.set(n,r)})}function Fie(e){const t=[];return R.Children.forEach(e,r=>{R.isValidElement(r)&&t.push(r)}),t}const Yc=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const l=R.useContext(fk).forceRender||Pie()[0],u=rj(),d=Fie(e);let f=d;const h=R.useRef(new Map).current,m=R.useRef(f),v=R.useRef(new Map).current,x=R.useRef(!0);if(ak(()=>{x.current=!1,$ie(d,v),m.current=f}),Iie(()=>{x.current=!0,v.clear(),h.clear()}),x.current)return w.jsx(w.Fragment,{children:f.map(y=>w.jsx(mx,{isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:s,children:y},ol(y)))});f=[...f];const g=m.current.map(ol),S=d.map(ol),b=g.length;for(let y=0;y{if(S.indexOf(_)!==-1)return;const C=v.get(_);if(!C)return;const T=g.indexOf(_);let I=y;if(!I){const $=()=>{h.delete(_);const z=Array.from(v.keys()).filter(N=>!S.includes(N));if(z.forEach(N=>v.delete(N)),m.current=d.filter(N=>{const V=ol(N);return V===_||z.includes(V)}),!h.size){if(u.current===!1)return;l(),n&&n()}};I=w.jsx(mx,{isPresent:!1,onExitComplete:$,custom:t,presenceAffectsLayout:o,mode:s,children:C},ol(C)),h.set(_,I)}f.splice(T,0,I)}),f=f.map(y=>{const _=y.key;return h.has(_)?y:w.jsx(mx,{isPresent:!0,presenceAffectsLayout:o,mode:s,children:y},ol(y))}),w.jsx(w.Fragment,{children:h.size?f:f.map(y=>R.cloneElement(y))})};var jie={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},nj=R.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:i,requestClose:o=!1,position:s="bottom",duration:l=5e3,containerStyle:u,motionVariants:d=jie,toastSpacing:f="0.5rem"}=e,[h,m]=R.useState(l),v=Rne();U_(()=>{v||n==null||n()},[v]),U_(()=>{m(l)},[l]);const x=()=>m(null),g=()=>m(l),S=()=>{v&&i()};R.useEffect(()=>{v&&o&&i()},[v,o,i]),vee(S,h);const b=R.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:f,...u}),[u,f]),y=R.useMemo(()=>pee(s),[s]);return w.jsx(Hl.div,{layout:!0,className:"chakra-toast",variants:d,initial:"initial",animate:"animate",exit:"exit",onHoverStart:x,onHoverEnd:g,custom:{position:s},style:y,children:w.jsx(je.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:fa(r,{id:t,onClose:S})})})});nj.displayName="ToastComponent";var d5={path:w.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w.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"}),w.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"}),w.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},nr=Ue((e,t)=>{const{as:r,viewBox:n,color:i="currentColor",focusable:o=!1,children:s,className:l,__css:u,...d}=e,f=pt("chakra-icon",l),h=Is("Icon",e),m={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...u,...h},v={ref:t,focusable:o,className:f,__css:m},x=n??d5.viewBox;if(r&&typeof r!="string")return w.jsx(je.svg,{as:r,...v,...d});const g=s??d5.path;return w.jsx(je.svg,{verticalAlign:"middle",viewBox:x,...v,...d,children:g})});nr.displayName="Icon";function Die(e){return w.jsx(nr,{viewBox:"0 0 24 24",...e,children:w.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"})})}function Mie(e){return w.jsx(nr,{viewBox:"0 0 24 24",...e,children:w.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"})})}function f5(e){return w.jsx(nr,{viewBox:"0 0 24 24",...e,children:w.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"})})}var zie=Uh({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),K0=Ue((e,t)=>{const r=Is("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:l,...u}=bn(e),d=pt("chakra-spinner",l),f={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${zie} ${o} linear infinite`,...r};return w.jsx(je.div,{ref:t,__css:f,className:d,...u,children:n&&w.jsx(je.span,{srOnly:!0,children:n})})});K0.displayName="Spinner";var[Lie,jk]=nn({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[Nie,Dk]=nn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),ij={info:{icon:Mie,colorScheme:"blue"},warning:{icon:f5,colorScheme:"orange"},success:{icon:Die,colorScheme:"green"},error:{icon:f5,colorScheme:"red"},loading:{icon:K0,colorScheme:"blue"}};function Bie(e){return ij[e].colorScheme}function Vie(e){return ij[e].icon}var oj=Ue(function(t,r){const n=Dk(),{status:i}=jk(),o={display:"inline",...n.description};return w.jsx(je.div,{ref:r,"data-status":i,...t,className:pt("chakra-alert__desc",t.className),__css:o})});oj.displayName="AlertDescription";function Mk(e){const{status:t}=jk(),r=Vie(t),n=Dk(),i=t==="loading"?n.spinner:n.icon;return w.jsx(je.span,{display:"inherit","data-status":t,...e,className:pt("chakra-alert__icon",e.className),__css:i,children:e.children||w.jsx(r,{h:"100%",w:"100%"})})}Mk.displayName="AlertIcon";var sj=Ue(function(t,r){const n=Dk(),{status:i}=jk();return w.jsx(je.div,{ref:r,"data-status":i,...t,className:pt("chakra-alert__title",t.className),__css:n.title})});sj.displayName="AlertTitle";var zk=Ue(function(t,r){var n;const{status:i="info",addRole:o=!0,...s}=bn(t),l=(n=t.colorScheme)!=null?n:Bie(i),u=$s("Alert",{...t,colorScheme:l}),d={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return w.jsx(Lie,{value:{status:i},children:w.jsx(Nie,{value:u,children:w.jsx(je.div,{"data-status":i,role:o?"alert":void 0,ref:r,...s,className:pt("chakra-alert",t.className),__css:d})})})});zk.displayName="Alert";function Wie(e){return w.jsx(nr,{focusable:"false","aria-hidden":!0,...e,children:w.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"})})}var Lk=Ue(function(t,r){const n=Is("CloseButton",t),{children:i,isDisabled:o,__css:s,...l}=bn(t),u={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return w.jsx(je.button,{type:"button","aria-label":"Close",ref:r,disabled:o,__css:{...u,...n,...s},...l,children:i||w.jsx(Wie,{width:"1em",height:"1em"})})});Lk.displayName="CloseButton";var Uie={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Rf=Hie(Uie);function Hie(e){let t=e;const r=new Set,n=i=>{t=i(t),r.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(r.add(i),()=>{n(()=>e),r.delete(i)}),removeToast:(i,o)=>{n(s=>({...s,[o]:s[o].filter(l=>l.id!=i)}))},notify:(i,o)=>{const s=Kie(i,o),{position:l,id:u}=s;return n(d=>{var f,h;const v=l.includes("top")?[s,...(f=d[l])!=null?f:[]]:[...(h=d[l])!=null?h:[],s];return{...d,[l]:v}}),u},update:(i,o)=>{i&&n(s=>{const l={...s},{position:u,index:d}=rA(l,i);return u&&d!==-1&&(l[u][d]={...l[u][d],...o,message:Zie(o)}),l})},closeAll:({positions:i}={})=>{n(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((u,d)=>(u[d]=o[d].map(f=>({...f,requestClose:!0})),u),{...o}))},close:i=>{n(o=>{const s=j$(o,i);return s?{...o,[s]:o[s].map(l=>l.id==i?{...l,requestClose:!0}:l)}:o})},isActive:i=>!!rA(Rf.getState(),i).position}}var h5=0;function Kie(e,t={}){var r,n;h5+=1;const i=(r=t.id)!=null?r:h5,o=(n=t.position)!=null?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Rf.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var Gie=e=>{const{status:t,variant:r="solid",id:n,title:i,isClosable:o,onClose:s,description:l,colorScheme:u,icon:d}=e,f=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return w.jsxs(zk,{addRole:!1,status:t,variant:r,id:f==null?void 0:f.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[w.jsx(Mk,{children:d}),w.jsxs(je.div,{flex:"1",maxWidth:"100%",children:[i&&w.jsx(sj,{id:f==null?void 0:f.title,children:i}),l&&w.jsx(oj,{id:f==null?void 0:f.description,display:"block",children:l})]}),o&&w.jsx(Lk,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function Zie(e={}){const{render:t,toastComponent:r=Gie}=e;return i=>typeof t=="function"?t({...i,...e}):w.jsx(r,{...i,...e})}var[qie,_me]=nn({name:"ToastOptionsContext",strict:!1}),Yie=e=>{const t=R.useSyncExternalStore(Rf.subscribe,Rf.getState,Rf.getState),{motionVariants:r,component:n=nj,portalProps:i}=e,s=Object.keys(t).map(l=>{const u=t[l];return w.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:mee(l),children:w.jsx(Yc,{initial:!1,children:u.map(d=>w.jsx(n,{motionVariants:r,...d},d.id))})},l)});return w.jsx(Zc,{...i,children:s})},Xie=e=>function({children:r,theme:n=e,toastOptions:i,...o}){return w.jsxs(fee,{theme:n,...o,children:[w.jsx(qie,{value:i==null?void 0:i.defaultOptions,children:r}),w.jsx(Yie,{...i})]})},Qie=Xie(k$),Jie=Object.defineProperty,eoe=(e,t,r)=>t in e?Jie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t,r)=>(eoe(e,typeof t!="symbol"?t+"":t,r),r);function p5(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);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})}var toe=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function m5(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function v5(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var aw=typeof window<"u"?R.useLayoutEffect:R.useEffect,Bg=e=>e,roe=class{constructor(){gr(this,"descendants",new Map),gr(this,"register",e=>{if(e!=null)return toe(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),gr(this,"unregister",e=>{this.descendants.delete(e);const t=p5(Array.from(this.descendants.keys()));this.assignIndex(t)}),gr(this,"destroy",()=>{this.descendants.clear()}),gr(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),gr(this,"count",()=>this.descendants.size),gr(this,"enabledCount",()=>this.enabledValues().length),gr(this,"values",()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index)),gr(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),gr(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),gr(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),gr(this,"first",()=>this.item(0)),gr(this,"firstEnabled",()=>this.enabledItem(0)),gr(this,"last",()=>this.item(this.descendants.size-1)),gr(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),gr(this,"indexOf",e=>{var t,r;return e&&(r=(t=this.descendants.get(e))==null?void 0:t.index)!=null?r:-1}),gr(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),gr(this,"next",(e,t=!0)=>{const r=m5(e,this.count(),t);return this.item(r)}),gr(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=m5(n,this.enabledCount(),t);return this.enabledItem(i)}),gr(this,"prev",(e,t=!0)=>{const r=v5(e,this.count()-1,t);return this.item(r)}),gr(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=v5(n,this.enabledCount()-1,t);return this.enabledItem(i)}),gr(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),n=p5(r);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(n)})}};function noe(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function fi(...e){return t=>{e.forEach(r=>{noe(r,t)})}}function ioe(...e){return R.useMemo(()=>fi(...e),e)}function ooe(){const e=R.useRef(new roe);return aw(()=>()=>e.current.destroy()),e.current}var[soe,aj]=nn({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function aoe(e){const t=aj(),[r,n]=R.useState(-1),i=R.useRef(null);aw(()=>()=>{i.current&&t.unregister(i.current)},[]),aw(()=>{if(!i.current)return;const s=Number(i.current.dataset.index);r!=s&&!Number.isNaN(s)&&n(s)});const o=Bg(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(i.current),register:fi(o,i)}}function loe(){return[Bg(soe),()=>Bg(aj()),()=>ooe(),i=>aoe(i)]}function uoe(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:i=(m,v)=>m!==v}=e,o=Mo(n),s=Mo(i),[l,u]=R.useState(r),d=t!==void 0,f=d?t:l,h=Mo(m=>{const x=typeof m=="function"?m(f):m;s(f,x)&&(d||u(x),o(x))},[d,o,f,s]);return[f,h]}var g5={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Sl={enter:{duration:.2,ease:g5.easeOut},exit:{duration:.1,ease:g5.easeIn}},kl={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},coe={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:(n=e==null?void 0:e.enter)!=null?n:kl.enter(Sl.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:(n=e==null?void 0:e.exit)!=null?n:kl.exit(Sl.exit,r),transitionEnd:t==null?void 0:t.exit}}},lj={initial:"exit",animate:"enter",exit:"exit",variants:coe},doe=R.forwardRef(function(t,r){const{unmountOnExit:n,in:i,className:o,transition:s,transitionEnd:l,delay:u,...d}=t,f=i||n?"enter":"exit",h=n?i&&n:!0,m={transition:s,transitionEnd:l,delay:u};return w.jsx(Yc,{custom:m,children:h&&w.jsx(Hl.div,{ref:r,className:pt("chakra-fade",o),custom:m,...lj,animate:f,...d})})});doe.displayName="Fade";var foe={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{scale:t,...n==null?void 0:n.exit}},transition:(o=r==null?void 0:r.exit)!=null?o:kl.exit(Sl.exit,i)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:(n=t==null?void 0:t.enter)!=null?n:kl.enter(Sl.enter,r),transitionEnd:e==null?void 0:e.enter}}},uj={initial:"exit",animate:"enter",exit:"exit",variants:foe},hoe=R.forwardRef(function(t,r){const{unmountOnExit:n,in:i,reverse:o=!0,initialScale:s=.95,className:l,transition:u,transitionEnd:d,delay:f,...h}=t,m=n?i&&n:!0,v=i||n?"enter":"exit",x={initialScale:s,reverse:o,transition:u,transitionEnd:d,delay:f};return w.jsx(Yc,{custom:x,children:m&&w.jsx(Hl.div,{ref:r,className:pt("chakra-offset-slide",l),...uj,animate:v,custom:x,...h})})});hoe.displayName="ScaleFade";var poe={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{opacity:0,x:e,y:t,transition:(o=r==null?void 0:r.exit)!=null?o:kl.exit(Sl.exit,i),transitionEnd:n==null?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:(n=e==null?void 0:e.enter)!=null?n:kl.enter(Sl.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:i,delay:o})=>{var s;const l={x:t,y:e};return{opacity:0,transition:(s=r==null?void 0:r.exit)!=null?s:kl.exit(Sl.exit,o),...i?{...l,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{...l,...n==null?void 0:n.exit}}}}},sf={initial:"initial",animate:"enter",exit:"exit",variants:poe},moe=R.forwardRef(function(t,r){const{unmountOnExit:n,in:i,reverse:o=!0,className:s,offsetX:l=0,offsetY:u=8,transition:d,transitionEnd:f,delay:h,...m}=t,v=n?i&&n:!0,x=i||n?"enter":"exit",g={offsetX:l,offsetY:u,reverse:o,transition:d,transitionEnd:f,delay:h};return w.jsx(Yc,{custom:g,children:v&&w.jsx(Hl.div,{ref:r,className:pt("chakra-offset-slide",s),custom:g,...sf,animate:x,...m})})});moe.displayName="SlideFade";var lw=Ue(function(t,r){const{htmlWidth:n,htmlHeight:i,alt:o,...s}=t;return w.jsx("img",{width:n,height:i,ref:r,alt:o,...s})});lw.displayName="NativeImage";function voe(e){const{loading:t,src:r,srcSet:n,onLoad:i,onError:o,crossOrigin:s,sizes:l,ignoreFallback:u}=e,[d,f]=R.useState("pending");R.useEffect(()=>{f(r?"loading":"pending")},[r]);const h=R.useRef(),m=R.useCallback(()=>{if(!r)return;v();const x=new Image;x.src=r,s&&(x.crossOrigin=s),n&&(x.srcset=n),l&&(x.sizes=l),t&&(x.loading=t),x.onload=g=>{v(),f("loaded"),i==null||i(g)},x.onerror=g=>{v(),f("failed"),o==null||o(g)},h.current=x},[r,s,n,l,i,o,t]),v=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return gs(()=>{if(!u)return d==="loading"&&m(),()=>{v()}},[d,m,u]),u?"loaded":d}var goe=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function yoe(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var cj=Ue(function(t,r){const{fallbackSrc:n,fallback:i,src:o,srcSet:s,align:l,fit:u,loading:d,ignoreFallback:f,crossOrigin:h,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:v,...x}=t,g=n!==void 0||i!==void 0,S=d!=null||f||!g,b=voe({...t,crossOrigin:h,ignoreFallback:S}),y=goe(b,m),_={ref:r,objectFit:u,objectPosition:l,...S?x:yoe(x,["onError","onLoad"])};return y?i||w.jsx(je.img,{as:lw,className:"chakra-image__placeholder",src:n,..._}):w.jsx(je.img,{as:lw,src:o,srcSet:s,crossOrigin:h,loading:d,referrerPolicy:v,className:"chakra-image",..._})});cj.displayName="Image";function dj(e){return R.Children.toArray(e).filter(t=>R.isValidElement(t))}var[wme,boe]=nn({strict:!1,name:"ButtonGroupContext"});function xoe(e){const[t,r]=R.useState(!e);return{ref:R.useCallback(o=>{o&&r(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}function uw(e){const{children:t,className:r,...n}=e,i=R.isValidElement(t)?R.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=pt("chakra-button__icon",r);return w.jsx(je.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:o,children:i})}uw.displayName="ButtonIcon";function cw(e){const{label:t,placement:r,spacing:n="0.5rem",children:i=w.jsx(K0,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:s,...l}=e,u=pt("chakra-button__spinner",o),d=r==="start"?"marginEnd":"marginStart",f=R.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[d]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,d,n]);return w.jsx(je.div,{className:u,...l,__css:f,children:i})}cw.displayName="ButtonSpinner";var cr=Ue((e,t)=>{const r=boe(),n=Is("Button",{...r,...e}),{isDisabled:i=r==null?void 0:r.isDisabled,isLoading:o,isActive:s,children:l,leftIcon:u,rightIcon:d,loadingText:f,iconSpacing:h="0.5rem",type:m,spinner:v,spinnerPlacement:x="start",className:g,as:S,...b}=bn(e),y=R.useMemo(()=>{const I={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:I}}},[n,r]),{ref:_,type:C}=xoe(S),T={rightIcon:d,leftIcon:u,iconSpacing:h,children:l};return w.jsxs(je.button,{ref:ioe(t,_),as:S,type:m??C,"data-active":gt(s),"data-loading":gt(o),__css:y,className:pt("chakra-button",g),...b,disabled:i||o,children:[o&&x==="start"&&w.jsx(cw,{className:"chakra-button__spinner--start",label:f,placement:"start",spacing:h,children:v}),o?f||w.jsx(je.span,{opacity:0,children:w.jsx(y5,{...T})}):w.jsx(y5,{...T}),o&&x==="end"&&w.jsx(cw,{className:"chakra-button__spinner--end",label:f,placement:"end",spacing:h,children:v})]})});cr.displayName="Button";function y5(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:i}=e;return w.jsxs(w.Fragment,{children:[t&&w.jsx(uw,{marginEnd:i,children:t}),n,r&&w.jsx(uw,{marginStart:i,children:r})]})}var Nk=Ue((e,t)=>{const{icon:r,children:n,isRound:i,"aria-label":o,...s}=e,l=r||n,u=R.isValidElement(l)?R.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return w.jsx(cr,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...s,children:u})});Nk.displayName="IconButton";var[Sme,_oe]=nn({name:"CheckboxGroupContext",strict:!1});function woe(e){const[t,r]=R.useState(e),[n,i]=R.useState(!1);return e!==t&&(i(!0),r(e)),n}function Soe(e){return w.jsx(je.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:w.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function koe(e){return w.jsx(je.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:w.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Coe(e){const{isIndeterminate:t,isChecked:r,...n}=e,i=t?koe:Soe;return r||t?w.jsx(je.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:w.jsx(i,{...n})}):null}var[Toe,fj]=nn({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[Eoe,G0]=nn({strict:!1,name:"FormControlContext"});function Poe(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:i,isReadOnly:o,...s}=e,l=R.useId(),u=t||`field-${l}`,d=`${u}-label`,f=`${u}-feedback`,h=`${u}-helptext`,[m,v]=R.useState(!1),[x,g]=R.useState(!1),[S,b]=R.useState(!1),y=R.useCallback(($={},z=null)=>({id:h,...$,ref:fi(z,N=>{N&&g(!0)})}),[h]),_=R.useCallback(($={},z=null)=>({...$,ref:z,"data-focus":gt(S),"data-disabled":gt(i),"data-invalid":gt(n),"data-readonly":gt(o),id:$.id!==void 0?$.id:d,htmlFor:$.htmlFor!==void 0?$.htmlFor:u}),[u,i,S,n,o,d]),C=R.useCallback(($={},z=null)=>({id:f,...$,ref:fi(z,N=>{N&&v(!0)}),"aria-live":"polite"}),[f]),T=R.useCallback(($={},z=null)=>({...$,...s,ref:z,role:"group","data-focus":gt(S),"data-disabled":gt(i),"data-invalid":gt(n),"data-readonly":gt(o)}),[s,i,S,n,o]),I=R.useCallback(($={},z=null)=>({...$,ref:z,role:"presentation","aria-hidden":!0,children:$.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!o,isDisabled:!!i,isFocused:!!S,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:x,setHasHelpText:g,id:u,labelId:d,feedbackId:f,helpTextId:h,htmlProps:s,getHelpTextProps:y,getErrorMessageProps:C,getRootProps:T,getLabelProps:_,getRequiredIndicatorProps:I}}var ct=Ue(function(t,r){const n=$s("Form",t),i=bn(t),{getRootProps:o,htmlProps:s,...l}=Poe(i),u=pt("chakra-form-control",t.className);return w.jsx(Eoe,{value:l,children:w.jsx(Toe,{value:n,children:w.jsx(je.div,{...o({},r),className:u,__css:n.container})})})});ct.displayName="FormControl";var Aoe=Ue(function(t,r){const n=G0(),i=fj(),o=pt("chakra-form__helper-text",t.className);return w.jsx(je.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:i.helperText,className:o})});Aoe.displayName="FormHelperText";var dt=Ue(function(t,r){var n;const i=Is("FormLabel",t),o=bn(t),{className:s,children:l,requiredIndicator:u=w.jsx(hj,{}),optionalIndicator:d=null,...f}=o,h=G0(),m=(n=h==null?void 0:h.getLabelProps(f,r))!=null?n:{ref:r,...f};return w.jsxs(je.label,{...m,className:pt("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i},children:[l,h!=null&&h.isRequired?u:d]})});dt.displayName="FormLabel";var hj=Ue(function(t,r){const n=G0(),i=fj();if(!(n!=null&&n.isRequired))return null;const o=pt("chakra-form__required-indicator",t.className);return w.jsx(je.span,{...n==null?void 0:n.getRequiredIndicatorProps(t,r),__css:i.requiredIndicator,className:o})});hj.displayName="RequiredIndicator";function pj(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:i,...o}=mj(e);return{...o,disabled:t,readOnly:n,required:i,"aria-invalid":M1(r),"aria-required":M1(i),"aria-readonly":M1(n)}}function mj(e){var t,r,n;const i=G0(),{id:o,disabled:s,readOnly:l,required:u,isRequired:d,isInvalid:f,isReadOnly:h,isDisabled:m,onFocus:v,onBlur:x,...g}=e,S=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&S.push(i.feedbackId),i!=null&&i.hasHelpText&&S.push(i.helpTextId),{...g,"aria-describedby":S.join(" ")||void 0,id:o??(i==null?void 0:i.id),isDisabled:(t=s??m)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(r=l??h)!=null?r:i==null?void 0:i.isReadOnly,isRequired:(n=u??d)!=null?n:i==null?void 0:i.isRequired,isInvalid:f??(i==null?void 0:i.isInvalid),onFocus:Gt(i==null?void 0:i.onFocus,v),onBlur:Gt(i==null?void 0:i.onBlur,x)}}var Roe={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Ooe=()=>typeof document<"u",b5=!1,Xh=null,Dl=!1,dw=!1,fw=new Set;function Bk(e,t){fw.forEach(r=>r(e,t))}var Ioe=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function $oe(e){return!(e.metaKey||!Ioe&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function x5(e){Dl=!0,$oe(e)&&(Xh="keyboard",Bk("keyboard",e))}function gu(e){if(Xh="pointer",e.type==="mousedown"||e.type==="pointerdown"){Dl=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;Bk("pointer",e)}}function Foe(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function joe(e){Foe(e)&&(Dl=!0,Xh="virtual")}function Doe(e){e.target===window||e.target===document||(!Dl&&!dw&&(Xh="virtual",Bk("virtual",e)),Dl=!1,dw=!1)}function Moe(){Dl=!1,dw=!0}function _5(){return Xh!=="pointer"}function zoe(){if(!Ooe()||b5)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){Dl=!0,e.apply(this,r)},document.addEventListener("keydown",x5,!0),document.addEventListener("keyup",x5,!0),document.addEventListener("click",joe,!0),window.addEventListener("focus",Doe,!0),window.addEventListener("blur",Moe,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",gu,!0),document.addEventListener("pointermove",gu,!0),document.addEventListener("pointerup",gu,!0)):(document.addEventListener("mousedown",gu,!0),document.addEventListener("mousemove",gu,!0),document.addEventListener("mouseup",gu,!0)),b5=!0}function Loe(e){zoe(),e(_5());const t=()=>e(_5());return fw.add(t),()=>{fw.delete(t)}}function Noe(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function Boe(e={}){const t=mj(e),{isDisabled:r,isReadOnly:n,isRequired:i,isInvalid:o,id:s,onBlur:l,onFocus:u,"aria-describedby":d}=t,{defaultChecked:f,isChecked:h,isFocusable:m,onChange:v,isIndeterminate:x,name:g,value:S,tabIndex:b=void 0,"aria-label":y,"aria-labelledby":_,"aria-invalid":C,...T}=e,I=Noe(T,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),$=Mo(v),z=Mo(l),N=Mo(u),[V,ce]=R.useState(!1),[D,U]=R.useState(!1),[A,Q]=R.useState(!1),[ge,G]=R.useState(!1);R.useEffect(()=>Loe(ce),[]);const oe=R.useRef(null),[ee,he]=R.useState(!0),[Y,X]=R.useState(!!f),xe=h!==void 0,me=xe?h:Y,pe=R.useCallback(le=>{if(n||r){le.preventDefault();return}xe||X(me?le.target.checked:x?!0:le.target.checked),$==null||$(le)},[n,r,me,xe,x,$]);gs(()=>{oe.current&&(oe.current.indeterminate=!!x)},[x]),U_(()=>{r&&U(!1)},[r,U]),gs(()=>{const le=oe.current;if(!(le!=null&&le.form))return;const ue=()=>{X(!!f)};return le.form.addEventListener("reset",ue),()=>{var L;return(L=le.form)==null?void 0:L.removeEventListener("reset",ue)}},[]);const Ae=r&&!m,He=R.useCallback(le=>{le.key===" "&&G(!0)},[G]),Te=R.useCallback(le=>{le.key===" "&&G(!1)},[G]);gs(()=>{if(!oe.current)return;oe.current.checked!==me&&X(oe.current.checked)},[oe.current]);const Me=R.useCallback((le={},ue=null)=>{const L=E=>{D&&E.preventDefault(),G(!0)};return{...le,ref:ue,"data-active":gt(ge),"data-hover":gt(A),"data-checked":gt(me),"data-focus":gt(D),"data-focus-visible":gt(D&&V),"data-indeterminate":gt(x),"data-disabled":gt(r),"data-invalid":gt(o),"data-readonly":gt(n),"aria-hidden":!0,onMouseDown:Gt(le.onMouseDown,L),onMouseUp:Gt(le.onMouseUp,()=>G(!1)),onMouseEnter:Gt(le.onMouseEnter,()=>Q(!0)),onMouseLeave:Gt(le.onMouseLeave,()=>Q(!1))}},[ge,me,r,D,V,A,x,o,n]),Qe=R.useCallback((le={},ue=null)=>({...le,ref:ue,"data-active":gt(ge),"data-hover":gt(A),"data-checked":gt(me),"data-focus":gt(D),"data-focus-visible":gt(D&&V),"data-indeterminate":gt(x),"data-disabled":gt(r),"data-invalid":gt(o),"data-readonly":gt(n)}),[ge,me,r,D,V,A,x,o,n]),Ne=R.useCallback((le={},ue=null)=>({...I,...le,ref:fi(ue,L=>{L&&he(L.tagName==="LABEL")}),onClick:Gt(le.onClick,()=>{var L;ee||((L=oe.current)==null||L.click(),requestAnimationFrame(()=>{var E;(E=oe.current)==null||E.focus({preventScroll:!0})}))}),"data-disabled":gt(r),"data-checked":gt(me),"data-invalid":gt(o)}),[I,r,me,o,ee]),Ee=R.useCallback((le={},ue=null)=>({...le,ref:fi(oe,ue),type:"checkbox",name:g,value:S,id:s,tabIndex:b,onChange:Gt(le.onChange,pe),onBlur:Gt(le.onBlur,z,()=>U(!1)),onFocus:Gt(le.onFocus,N,()=>U(!0)),onKeyDown:Gt(le.onKeyDown,He),onKeyUp:Gt(le.onKeyUp,Te),required:i,checked:me,disabled:Ae,readOnly:n,"aria-label":y,"aria-labelledby":_,"aria-invalid":C?!!C:o,"aria-describedby":d,"aria-disabled":r,style:Roe}),[g,S,s,pe,z,N,He,Te,i,me,Ae,n,y,_,C,o,d,r,b]),We=R.useCallback((le={},ue=null)=>({...le,ref:ue,onMouseDown:Gt(le.onMouseDown,Voe),"data-disabled":gt(r),"data-checked":gt(me),"data-invalid":gt(o)}),[me,r,o]);return{state:{isInvalid:o,isFocused:D,isChecked:me,isActive:ge,isHovered:A,isIndeterminate:x,isDisabled:r,isReadOnly:n,isRequired:i},getRootProps:Ne,getCheckboxProps:Me,getIndicatorProps:Qe,getInputProps:Ee,getLabelProps:We,htmlProps:I}}function Voe(e){e.preventDefault(),e.stopPropagation()}var Woe={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Uoe={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Hoe=Uh({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Koe=Uh({from:{opacity:0},to:{opacity:1}}),Goe=Uh({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),hw=Ue(function(t,r){const n=_oe(),i={...n,...t},o=$s("Checkbox",i),s=bn(t),{spacing:l="0.5rem",className:u,children:d,iconColor:f,iconSize:h,icon:m=w.jsx(Coe,{}),isChecked:v,isDisabled:x=n==null?void 0:n.isDisabled,onChange:g,inputProps:S,...b}=s;let y=v;n!=null&&n.value&&s.value&&(y=n.value.includes(s.value));let _=g;n!=null&&n.onChange&&s.value&&(_=UH(n.onChange,g));const{state:C,getInputProps:T,getCheckboxProps:I,getLabelProps:$,getRootProps:z}=Boe({...b,isDisabled:x,isChecked:y,onChange:_}),N=woe(C.isChecked),V=R.useMemo(()=>({animation:N?C.isIndeterminate?`${Koe} 20ms linear, ${Goe} 200ms linear`:`${Hoe} 200ms linear`:void 0,fontSize:h,color:f,...o.icon}),[f,h,N,C.isIndeterminate,o.icon]),ce=R.cloneElement(m,{__css:V,isIndeterminate:C.isIndeterminate,isChecked:C.isChecked});return w.jsxs(je.label,{__css:{...Uoe,...o.container},className:pt("chakra-checkbox",u),...z(),children:[w.jsx("input",{className:"chakra-checkbox__input",...T(S,r)}),w.jsx(je.span,{__css:{...Woe,...o.control},className:"chakra-checkbox__control",...I(),children:ce}),d&&w.jsx(je.span,{className:"chakra-checkbox__label",...$(),__css:{marginStart:l,...o.label},children:d})]})});hw.displayName="Checkbox";function vx(e,t,r,n){const i=Mo(r);return R.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!r||!o))return o.addEventListener(t,i,n),()=>{o.removeEventListener(t,i,n)}},[t,e,n,i,r]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,n)}}function Fs(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var vj={exports:{}},Zoe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qoe=Zoe,Yoe=qoe;function gj(){}function yj(){}yj.resetWarningCache=gj;var Xoe=function(){function e(n,i,o,s,l,u){if(u!==Yoe){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:yj,resetWarningCache:gj};return r.PropTypes=r,r};vj.exports=Xoe();var Qoe=vj.exports;const Wt=Bc(Qoe);var pw="data-focus-lock",bj="data-focus-lock-disabled",Joe="data-no-focus-lock",ese="data-autofocus-inside",tse="data-no-autofocus";function gx(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rse(e,t){var r=R.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var nse=typeof window<"u"?R.useLayoutEffect:R.useEffect,w5=new WeakMap;function xj(e,t){var r=rse(null,function(n){return e.forEach(function(i){return gx(i,n)})});return nse(function(){var n=w5.get(r);if(n){var i=new Set(n),o=new Set(e),s=r.current;i.forEach(function(l){o.has(l)||gx(l,null)}),o.forEach(function(l){i.has(l)||gx(l,s)})}w5.set(r,e)},[e]),r}var yx={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Ro=function(){return Ro=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0&&o[o.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function mw(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n=0}).sort(wse)},kse=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Kk=kse.join(","),Cse="".concat(Kk,", [data-focus-guard]"),Dj=function(e,t){return Uo((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?Cse:Kk)?[n]:[],Dj(n))},[])},Tse=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?Dc([e.contentDocument.body],t):[e]},Dc=function(e,t){return e.reduce(function(r,n){var i,o=Dj(n,t),s=(i=[]).concat.apply(i,o.map(function(l){return Tse(l,t)}));return r.concat(s,n.parentNode?Uo(n.parentNode.querySelectorAll(Kk)).filter(function(l){return l===n}):[])},[])},Ese=function(e){var t=e.querySelectorAll("[".concat(ese,"]"));return Uo(t).map(function(r){return Dc([r])}).reduce(function(r,n){return r.concat(n)},[])},Gk=function(e,t){return Uo(e).filter(function(r){return Oj(t,r)}).filter(function(r){return bse(r)})},k5=function(e,t){return t===void 0&&(t=new Map),Uo(e).filter(function(r){return Ij(t,r)})},Zk=function(e,t,r){return Hk(Gk(Dc(e,r),t),!0,r)},Vg=function(e,t){return Hk(Gk(Dc(e),t),!1)},Pse=function(e,t){return Gk(Ese(e),t)},Cl=function(e,t){return e.shadowRoot?Cl(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Uo(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var i=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return i?Cl(i,t):!1}return Cl(r,t)})},Ase=function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(s,l){return!t.has(l)})},Mj=function(e){return e.parentNode?Mj(e.parentNode):e},qk=function(e){var t=Ml(e);return t.filter(Boolean).reduce(function(r,n){var i=n.getAttribute(pw);return r.push.apply(r,i?Ase(Uo(Mj(n).querySelectorAll("[".concat(pw,'="').concat(i,'"]:not([').concat(bj,'="disabled"])')))):[n]),r},[])},Rse=function(e){try{return e()}catch{return}},Ch=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Ch(t.shadowRoot):t instanceof HTMLIFrameElement&&Rse(function(){return t.contentWindow.document})?Ch(t.contentWindow.document):t}},Ose=function(e,t){return e===t},Ise=function(e,t){return!!Uo(e.querySelectorAll("iframe")).some(function(r){return Ose(r,t)})},zj=function(e,t){return t===void 0&&(t=Ch(Pj(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:qk(e).some(function(r){return Cl(r,t)||Ise(r,t)})},$se=function(e){e===void 0&&(e=document);var t=Ch(e);return t?Uo(e.querySelectorAll("[".concat(Joe,"]"))).some(function(r){return Cl(r,t)}):!1},Fse=function(e,t){return t.filter(jj).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},Yk=function(e,t){return jj(e)&&e.name?Fse(e,t):e},jse=function(e){var t=new Set;return e.forEach(function(r){return t.add(Yk(r,e))}),e.filter(function(r){return t.has(r)})},C5=function(e){return e[0]&&e.length>1?Yk(e[0],e):e[0]},T5=function(e,t){return e.indexOf(Yk(t,e))},yw="NEW_FOCUS",Dse=function(e,t,r,n,i){var o=e.length,s=e[0],l=e[o-1],u=Uk(n);if(!(n&&e.indexOf(n)>=0)){var d=n!==void 0?r.indexOf(n):-1,f=i?r.indexOf(i):d,h=i?e.indexOf(i):-1;if(d===-1)return h!==-1?h:yw;if(h===-1)return yw;var m=d-f,v=r.indexOf(s),x=r.indexOf(l),g=jse(r),S=n!==void 0?g.indexOf(n):-1,b=S-(i?g.indexOf(i):d);if(!m&&h>=0||t.length===0)return h;var y=T5(e,t[0]),_=T5(e,t[t.length-1]);if(d<=v&&u&&Math.abs(m)>1)return _;if(d>=x&&u&&Math.abs(m)>1)return y;if(m&&Math.abs(b)>1)return h;if(d<=v)return _;if(d>x)return y;if(m)return Math.abs(m)>1?h:(o+h+m)%o}},Mse=function(e){return function(t){var r,n=(r=$j(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},E5=function(e,t,r){var n=e.map(function(o){var s=o.node;return s}),i=k5(n.filter(Mse(r)));return i&&i.length?C5(i):C5(k5(t))},bw=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&bw(e.parentNode.host||e.parentNode,t),t},bx=function(e,t){for(var r=bw(e),n=bw(t),i=0;i=0)return o}return!1},Lj=function(e,t,r){var n=Ml(e),i=Ml(t),o=n[0],s=!1;return i.filter(Boolean).forEach(function(l){s=bx(s||l,l)||s,r.filter(Boolean).forEach(function(u){var d=bx(o,u);d&&(!s||Cl(d,s)?s=d:s=bx(d,s))})}),s},P5=function(e,t){return e.reduce(function(r,n){return r.concat(Pse(n,t))},[])},zse=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(_se)},Lse=function(e,t){var r=Ch(Ml(e).length>0?document:Pj(e).ownerDocument),n=qk(e).filter(gw),i=Lj(r||e,e,n),o=new Map,s=Vg(n,o),l=s.filter(function(x){var g=x.node;return gw(g)});if(l[0]){var u=Vg([i],o).map(function(x){var g=x.node;return g}),d=zse(u,l),f=d.map(function(x){var g=x.node;return g}),h=d.filter(function(x){var g=x.tabIndex;return g>=0}).map(function(x){var g=x.node;return g}),m=Dse(f,h,u,r,t);if(m===yw){var v=E5(s,h,P5(n,o))||E5(s,f,P5(n,o));if(v)return{node:v};console.warn("focus-lock: cannot find any node to move focus into");return}return m===void 0?m:d[m]}},Nse=function(e){var t=qk(e).filter(gw),r=Lj(e,e,t),n=Hk(Dc([r],!0),!0,!0),i=Dc(t,!1);return n.map(function(o){var s=o.node,l=o.index;return{node:s,index:l,lockItem:i.indexOf(s)>=0,guard:Uk(s)}})},Xk=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},xx=0,_x=!1,Nj=function(e,t,r){r===void 0&&(r={});var n=Lse(e,t);if(!_x&&n){if(xx>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),_x=!0,setTimeout(function(){_x=!1},1);return}xx++,Xk(n.node,r.focusOptions),xx--}};function Wd(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var Bse=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:Wd(r),parent:Wd(r.parentElement),left:Wd(r.previousElementSibling),right:Wd(r.nextElementSibling)}),r=r.parentElement;return{element:Wd(e),stack:t,ownerDocument:e.ownerDocument}},Vse=function(e){var t,r,n,i,o;if(e)for(var s=e.stack,l=e.ownerDocument,u=new Map,d=0,f=s;d-1&&(v.filter(function(g){var S=g.guard,b=g.node;return S&&b.dataset.focusAutoGuard}).forEach(function(g){var S=g.node;return S.removeAttribute("tabIndex")}),A5(x,v.length,1,v),A5(x,-1,-1,v))}}}return t},Wj=function(t){Wg()&&t&&(t.stopPropagation(),t.preventDefault())},Jk=function(){return Qk(Wg)},aae=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||rae(n,r)},lae=function(){return null},Uj=function(){Th="just",Qk(function(){Th="meanwhile"})},uae=function(){document.addEventListener("focusin",Wj),document.addEventListener("focusout",Jk),window.addEventListener("blur",Uj)},cae=function(){document.removeEventListener("focusin",Wj),document.removeEventListener("focusout",Jk),window.removeEventListener("blur",Uj)};function dae(e){return e.filter(function(t){var r=t.disabled;return!r})}var Hj={moveFocusInside:Nj,focusInside:zj,focusNextElement:Gse,focusPrevElement:Zse,focusFirstElement:qse,focusLastElement:Yse,captureFocusRestore:Wse};function fae(e){var t=e.slice(-1)[0];t&&!vc&&uae();var r=vc,n=r&&t&&t.id===r.id;vc=t,r&&!n&&(r.onDeactivation(),e.filter(function(i){var o=i.id;return o===r.id}).length||r.returnFocus(!t)),t?(tc=null,(!n||r.observed!==t.observed)&&t.onActivation(Hj),Wg(),Qk(Wg)):(cae(),tc=null)}Tj.assignSyncMedium(aae);Ej.assignMedium(Jk);ose.assignMedium(function(e){return e(Hj)});const hae=hse(dae,fae)(lae);var xw=R.forwardRef(function(t,r){return R.createElement(Wk,wt({sideCar:hae,ref:r},t))}),Kj=Wk.propTypes||{};Kj.sideCar;Fs(Kj,["sideCar"]);xw.propTypes={};function pae(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Gj(e){var t;if(!pae(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function mae(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+i+n)}function vae(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function Zj(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:Gj(e)&&mae(e)?e:Zj(vae(e))}var gae=e=>e.hasAttribute("tabindex");function yae(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function qj(e){return e.parentElement&&qj(e.parentElement)?!0:e.hidden}function bae(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function xae(e){if(!Gj(e)||qj(e)||yae(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]():bae(e)?!0:gae(e)}var _ae=["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]"],wae=_ae.join(),Sae=e=>e.offsetWidth>0&&e.offsetHeight>0;function kae(e){const t=Array.from(e.querySelectorAll(wae));return t.unshift(e),t.filter(r=>xae(r)&&Sae(r))}var R5,Cae=(R5=xw.default)!=null?R5:xw,Yj=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:i,children:o,isDisabled:s,autoFocus:l,persistentFocus:u,lockFocusAcrossFrames:d}=e,f=R.useCallback(()=>{t!=null&&t.current?t.current.focus():n!=null&&n.current&&kae(n.current).length===0&&requestAnimationFrame(()=>{var x;(x=n.current)==null||x.focus()})},[t,n]),h=R.useCallback(()=>{var v;(v=r==null?void 0:r.current)==null||v.focus()},[r]),m=i&&!r;return w.jsx(Cae,{crossFrame:d,persistentFocus:u,autoFocus:l,disabled:s,onActivation:f,onDeactivation:h,returnFocus:m,children:o})};Yj.displayName="FocusLock";var Tae=DJ?R.useLayoutEffect:R.useEffect;function _w(e,t=[]){const r=R.useRef(e);return Tae(()=>{r.current=e}),R.useCallback((...n)=>{var i;return(i=r.current)==null?void 0:i.call(r,...n)},t)}function Eae(e){const{ref:t,handler:r,enabled:n=!0}=e,i=_w(r),s=R.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;R.useEffect(()=>{if(!n)return;const l=h=>{wx(h,t)&&(s.isPointerDown=!0)},u=h=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&r&&wx(h,t)&&(s.isPointerDown=!1,i(h))},d=h=>{s.ignoreEmulatedMouseEvents=!0,r&&s.isPointerDown&&wx(h,t)&&(s.isPointerDown=!1,i(h))},f=T$(t.current);return f.addEventListener("mousedown",l,!0),f.addEventListener("mouseup",u,!0),f.addEventListener("touchstart",l,!0),f.addEventListener("touchend",d,!0),()=>{f.removeEventListener("mousedown",l,!0),f.removeEventListener("mouseup",u,!0),f.removeEventListener("touchstart",l,!0),f.removeEventListener("touchend",d,!0)}},[r,t,i,s,n])}function wx(e,t){var r;const n=e.target;return n&&!T$(n).contains(n)?!1:!((r=t.current)!=null&&r.contains(n))}function Pae(e,t){const r=R.useId();return R.useMemo(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function Aae(e,t){const r=e!==void 0;return[r,r&&typeof e<"u"?e:t]}function ww(e={}){const{onClose:t,onOpen:r,isOpen:n,id:i}=e,o=_w(r),s=_w(t),[l,u]=R.useState(e.defaultIsOpen||!1),[d,f]=Aae(n,l),h=Pae(i,"disclosure"),m=R.useCallback(()=>{d||u(!1),s==null||s()},[d,s]),v=R.useCallback(()=>{d||u(!0),o==null||o()},[d,o]),x=R.useCallback(()=>{(f?m:v)()},[f,v,m]);return{isOpen:!!f,onOpen:v,onClose:m,onToggle:x,isControlled:d,getButtonProps:(g={})=>({...g,"aria-expanded":f,"aria-controls":h,onClick:BJ(g.onClick,x)}),getDisclosureProps:(g={})=>({...g,hidden:!f,id:h})}}var Ft=Ue(function(t,r){const{htmlSize:n,...i}=t,o=$s("Input",i),s=bn(i),l=pj(s),u=pt("chakra-input",t.className);return w.jsx(je.input,{size:n,...l,__css:o.field,ref:r,className:u})});Ft.displayName="Input";Ft.id="Input";var Xj=Ue(function(t,r){const{templateAreas:n,gap:i,rowGap:o,columnGap:s,column:l,row:u,autoFlow:d,autoRows:f,templateRows:h,autoColumns:m,templateColumns:v,...x}=t,g={display:"grid",gridTemplateAreas:n,gridGap:i,gridRowGap:o,gridColumnGap:s,gridAutoColumns:m,gridColumn:l,gridRow:u,gridAutoFlow:d,gridAutoRows:f,gridTemplateRows:h,gridTemplateColumns:v};return w.jsx(je.div,{ref:r,__css:g,...x})});Xj.displayName="Grid";function Z0(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):zi(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}var Eh=Ue(function(t,r){const{columns:n,spacingX:i,spacingY:o,spacing:s,minChildWidth:l,...u}=t,d=ZS(),f=l?Oae(l,d):Iae(n);return w.jsx(Xj,{ref:r,gap:s,columnGap:i,rowGap:o,templateColumns:f,...u})});Eh.displayName="SimpleGrid";function Rae(e){return typeof e=="number"?`${e}px`:e}function Oae(e,t){return Z0(e,r=>{const n=VH("sizes",r,Rae(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function Iae(e){return Z0(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Jt=Ue(function(t,r){const n=Is("Text",t),{className:i,align:o,decoration:s,casing:l,...u}=bn(t),d=I$({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return w.jsx(je.p,{ref:r,className:pt("chakra-text",t.className),...d,...u,__css:n})});Jt.displayName="Text";var Qj=e=>w.jsx(je.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Qj.displayName="StackItem";function $ae(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Z0(r,i=>n[i])}}var eC=Ue((e,t)=>{const{isInline:r,direction:n,align:i,justify:o,spacing:s="0.5rem",wrap:l,children:u,divider:d,className:f,shouldWrapChildren:h,...m}=e,v=r?"row":n??"column",x=R.useMemo(()=>$ae({spacing:s,direction:v}),[s,v]),g=!!d,S=!h&&!g,b=R.useMemo(()=>{const _=dj(u);return S?_:_.map((C,T)=>{const I=typeof C.key<"u"?C.key:T,$=T+1===_.length,N=h?w.jsx(Qj,{children:C},I):C;if(!g)return N;const V=R.cloneElement(d,{__css:x}),ce=$?null:V;return w.jsxs(R.Fragment,{children:[N,ce]},I)})},[d,x,g,S,h,u]),y=pt("chakra-stack",f);return w.jsx(je.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:v,flexWrap:l,gap:g?void 0:s,className:y,...m,children:b})});eC.displayName="Stack";var Tr=Ue((e,t)=>w.jsx(eC,{align:"center",...e,direction:"column",ref:t}));Tr.displayName="VStack";var kr=Ue((e,t)=>w.jsx(eC,{align:"center",...e,direction:"row",ref:t}));kr.displayName="HStack";function O5(e){return Z0(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Vr=Ue(function(t,r){const{area:n,colSpan:i,colStart:o,colEnd:s,rowEnd:l,rowSpan:u,rowStart:d,...f}=t,h=I$({gridArea:n,gridColumn:O5(i),gridRow:O5(u),gridColumnStart:o,gridColumnEnd:s,gridRowStart:d,gridRowEnd:l});return w.jsx(je.div,{ref:r,__css:h,...f})});Vr.displayName="GridItem";var oi=Ue(function(t,r){const n=Is("Heading",t),{className:i,...o}=bn(t);return w.jsx(je.h2,{ref:r,className:pt("chakra-heading",t.className),...o,__css:n})});oi.displayName="Heading";var vn=je("div");vn.displayName="Box";var Jj=Ue(function(t,r){const{size:n,centerContent:i=!0,...o}=t,s=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return w.jsx(vn,{ref:r,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...o})});Jj.displayName="Square";var Fae=Ue(function(t,r){const{size:n,...i}=t;return w.jsx(Jj,{size:n,ref:r,borderRadius:"9999px",...i})});Fae.displayName="Circle";var q0=je("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});q0.displayName="Center";var jae={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};Ue(function(t,r){const{axis:n="both",...i}=t;return w.jsx(je.div,{ref:r,__css:jae[n],...i,position:"absolute"})});var Ph=Ue(function(t,r){const{borderLeftWidth:n,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:s,borderWidth:l,borderStyle:u,borderColor:d,...f}=Is("Divider",t),{className:h,orientation:m="horizontal",__css:v,...x}=bn(t),g={vertical:{borderLeftWidth:n||s||l||"1px",height:"100%"},horizontal:{borderBottomWidth:i||o||l||"1px",width:"100%"}};return w.jsx(je.hr,{ref:r,"aria-orientation":m,...x,__css:{...f,border:"0",borderColor:d,borderStyle:u,...g[m],...v},className:pt("chakra-divider",h)})});Ph.displayName="Divider";function Dae(){const e=R.useRef(new Map),t=e.current,r=R.useCallback((i,o,s,l)=>{e.current.set(s,{type:o,el:i,options:l}),i.addEventListener(o,s,l)},[]),n=R.useCallback((i,o,s,l)=>{i.removeEventListener(o,s,l),e.current.delete(s)},[]);return R.useEffect(()=>()=>{t.forEach((i,o)=>{n(i.el,i.type,o,i.options)})},[n,t]),{add:r,remove:n}}function Sx(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return r!=="INPUT"&&r!=="TEXTAREA"&&n!==!0}function Mae(e={}){const{ref:t,isDisabled:r,isFocusable:n,clickOnEnter:i=!0,clickOnSpace:o=!0,onMouseDown:s,onMouseUp:l,onClick:u,onKeyDown:d,onKeyUp:f,tabIndex:h,onMouseOver:m,onMouseLeave:v,...x}=e,[g,S]=R.useState(!0),[b,y]=R.useState(!1),_=Dae(),C=G=>{G&&G.tagName!=="BUTTON"&&S(!1)},T=g?h:h||0,I=r&&!n,$=R.useCallback(G=>{if(r){G.stopPropagation(),G.preventDefault();return}G.currentTarget.focus(),u==null||u(G)},[r,u]),z=R.useCallback(G=>{b&&Sx(G)&&(G.preventDefault(),G.stopPropagation(),y(!1),_.remove(document,"keyup",z,!1))},[b,_]),N=R.useCallback(G=>{if(d==null||d(G),r||G.defaultPrevented||G.metaKey||!Sx(G.nativeEvent)||g)return;const oe=i&&G.key==="Enter";o&&G.key===" "&&(G.preventDefault(),y(!0)),oe&&(G.preventDefault(),G.currentTarget.click()),_.add(document,"keyup",z,!1)},[r,g,d,i,o,_,z]),V=R.useCallback(G=>{if(f==null||f(G),r||G.defaultPrevented||G.metaKey||!Sx(G.nativeEvent)||g)return;o&&G.key===" "&&(G.preventDefault(),y(!1),G.currentTarget.click())},[o,g,r,f]),ce=R.useCallback(G=>{G.button===0&&(y(!1),_.remove(document,"mouseup",ce,!1))},[_]),D=R.useCallback(G=>{if(G.button!==0)return;if(r){G.stopPropagation(),G.preventDefault();return}g||y(!0),G.currentTarget.focus({preventScroll:!0}),_.add(document,"mouseup",ce,!1),s==null||s(G)},[r,g,s,_,ce]),U=R.useCallback(G=>{G.button===0&&(g||y(!1),l==null||l(G))},[l,g]),A=R.useCallback(G=>{if(r){G.preventDefault();return}m==null||m(G)},[r,m]),Q=R.useCallback(G=>{b&&(G.preventDefault(),y(!1)),v==null||v(G)},[b,v]),ge=fi(t,C);return g?{...x,ref:ge,type:"button","aria-disabled":I?void 0:r,disabled:I,onClick:$,onMouseDown:s,onMouseUp:l,onKeyUp:f,onKeyDown:d,onMouseOver:m,onMouseLeave:v}:{...x,ref:ge,role:"button","data-active":gt(b),"aria-disabled":r?"true":void 0,tabIndex:I?void 0:T,onClick:$,onMouseDown:D,onMouseUp:U,onKeyUp:V,onKeyDown:N,onMouseOver:A,onMouseLeave:Q}}var yu=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),en={arrowShadowColor:yu("--popper-arrow-shadow-color"),arrowSize:yu("--popper-arrow-size","8px"),arrowSizeHalf:yu("--popper-arrow-size-half"),arrowBg:yu("--popper-arrow-bg"),transformOrigin:yu("--popper-transform-origin"),arrowOffset:yu("--popper-arrow-offset")};function zae(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var Lae={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Nae=e=>Lae[e],I5={scroll:!0,resize:!0};function Bae(e){let t;return typeof e=="object"?t={enabled:!0,options:{...I5,...e}}:t={enabled:e,options:I5},t}var Vae={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},Wae={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{$5(e)},effect:({state:e})=>()=>{$5(e)}},$5=e=>{e.elements.popper.style.setProperty(en.transformOrigin.var,Nae(e.placement))},Uae={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Hae(e)}},Hae=e=>{var t;if(!e.placement)return;const r=Kae(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:en.arrowSize.varRef,height:en.arrowSize.varRef,zIndex:-1});const n={[en.arrowSizeHalf.var]:`calc(${en.arrowSize.varRef} / 2 - 1px)`,[en.arrowOffset.var]:`calc(${en.arrowSizeHalf.varRef} * -1)`};for(const i in n)e.elements.arrow.style.setProperty(i,n[i])}},Kae=e=>{if(e.startsWith("top"))return{property:"bottom",value:en.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:en.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:en.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:en.arrowOffset.varRef}},Gae={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{F5(e)},effect:({state:e})=>()=>{F5(e)}},F5=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=zae(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:en.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},Zae={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},qae={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function Yae(e,t="ltr"){var r,n;const i=((r=Zae[e])==null?void 0:r[t])||e;return t==="ltr"?i:(n=qae[e])!=null?n:i}var Hn="top",Vi="bottom",Wi="right",Kn="left",tC="auto",Qh=[Hn,Vi,Wi,Kn],Mc="start",Ah="end",Xae="clippingParents",e4="viewport",Ud="popper",Qae="reference",j5=Qh.reduce(function(e,t){return e.concat([t+"-"+Mc,t+"-"+Ah])},[]),t4=[].concat(Qh,[tC]).reduce(function(e,t){return e.concat([t,t+"-"+Mc,t+"-"+Ah])},[]),Jae="beforeRead",ele="read",tle="afterRead",rle="beforeMain",nle="main",ile="afterMain",ole="beforeWrite",sle="write",ale="afterWrite",lle=[Jae,ele,tle,rle,nle,ile,ole,sle,ale];function Wo(e){return e?(e.nodeName||"").toLowerCase():null}function hi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zl(e){var t=hi(e).Element;return e instanceof t||e instanceof Element}function Li(e){var t=hi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rC(e){if(typeof ShadowRoot>"u")return!1;var t=hi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ule(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!Li(o)||!Wo(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var l=i[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function cle(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=s.reduce(function(u,d){return u[d]="",u},{});!Li(i)||!Wo(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(u){i.removeAttribute(u)}))})}}const dle={name:"applyStyles",enabled:!0,phase:"write",fn:ule,effect:cle,requires:["computeStyles"]};function Lo(e){return e.split("-")[0]}var Tl=Math.max,Ug=Math.min,zc=Math.round;function Sw(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function r4(){return!/^((?!chrome|android).)*safari/i.test(Sw())}function Lc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&Li(e)&&(i=e.offsetWidth>0&&zc(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&zc(n.height)/e.offsetHeight||1);var s=zl(e)?hi(e):window,l=s.visualViewport,u=!r4()&&r,d=(n.left+(u&&l?l.offsetLeft:0))/i,f=(n.top+(u&&l?l.offsetTop:0))/o,h=n.width/i,m=n.height/o;return{width:h,height:m,top:f,right:d+h,bottom:f+m,left:d,x:d,y:f}}function nC(e){var t=Lc(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function n4(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&rC(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ps(e){return hi(e).getComputedStyle(e)}function fle(e){return["table","td","th"].indexOf(Wo(e))>=0}function za(e){return((zl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Y0(e){return Wo(e)==="html"?e:e.assignedSlot||e.parentNode||(rC(e)?e.host:null)||za(e)}function D5(e){return!Li(e)||Ps(e).position==="fixed"?null:e.offsetParent}function hle(e){var t=/firefox/i.test(Sw()),r=/Trident/i.test(Sw());if(r&&Li(e)){var n=Ps(e);if(n.position==="fixed")return null}var i=Y0(e);for(rC(i)&&(i=i.host);Li(i)&&["html","body"].indexOf(Wo(i))<0;){var o=Ps(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Jh(e){for(var t=hi(e),r=D5(e);r&&fle(r)&&Ps(r).position==="static";)r=D5(r);return r&&(Wo(r)==="html"||Wo(r)==="body"&&Ps(r).position==="static")?t:r||hle(e)||t}function iC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Of(e,t,r){return Tl(e,Ug(t,r))}function ple(e,t,r){var n=Of(e,t,r);return n>r?r:n}function i4(){return{top:0,right:0,bottom:0,left:0}}function o4(e){return Object.assign({},i4(),e)}function s4(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var mle=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,o4(typeof t!="number"?t:s4(t,Qh))};function vle(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,l=Lo(r.placement),u=iC(l),d=[Kn,Wi].indexOf(l)>=0,f=d?"height":"width";if(!(!o||!s)){var h=mle(i.padding,r),m=nC(o),v=u==="y"?Hn:Kn,x=u==="y"?Vi:Wi,g=r.rects.reference[f]+r.rects.reference[u]-s[u]-r.rects.popper[f],S=s[u]-r.rects.reference[u],b=Jh(o),y=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,_=g/2-S/2,C=h[v],T=y-m[f]-h[x],I=y/2-m[f]/2+_,$=Of(C,I,T),z=u;r.modifiersData[n]=(t={},t[z]=$,t.centerOffset=$-I,t)}}function gle(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||n4(t.elements.popper,i)&&(t.elements.arrow=i))}const yle={name:"arrow",enabled:!0,phase:"main",fn:vle,effect:gle,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nc(e){return e.split("-")[1]}var ble={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xle(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:zc(r*i)/i||0,y:zc(n*i)/i||0}}function M5(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,h=e.isFixed,m=s.x,v=m===void 0?0:m,x=s.y,g=x===void 0?0:x,S=typeof f=="function"?f({x:v,y:g}):{x:v,y:g};v=S.x,g=S.y;var b=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),_=Kn,C=Hn,T=window;if(d){var I=Jh(r),$="clientHeight",z="clientWidth";if(I===hi(r)&&(I=za(r),Ps(I).position!=="static"&&l==="absolute"&&($="scrollHeight",z="scrollWidth")),I=I,i===Hn||(i===Kn||i===Wi)&&o===Ah){C=Vi;var N=h&&I===T&&T.visualViewport?T.visualViewport.height:I[$];g-=N-n.height,g*=u?1:-1}if(i===Kn||(i===Hn||i===Vi)&&o===Ah){_=Wi;var V=h&&I===T&&T.visualViewport?T.visualViewport.width:I[z];v-=V-n.width,v*=u?1:-1}}var ce=Object.assign({position:l},d&&ble),D=f===!0?xle({x:v,y:g},hi(r)):{x:v,y:g};if(v=D.x,g=D.y,u){var U;return Object.assign({},ce,(U={},U[C]=y?"0":"",U[_]=b?"0":"",U.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",U))}return Object.assign({},ce,(t={},t[C]=y?g+"px":"",t[_]=b?v+"px":"",t.transform="",t))}function _le(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,l=r.roundOffsets,u=l===void 0?!0:l,d={placement:Lo(t.placement),variation:Nc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,M5(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,M5(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const wle={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_le,data:{}};var Qm={passive:!0};function Sle(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,l=s===void 0?!0:s,u=hi(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(f){f.addEventListener("scroll",r.update,Qm)}),l&&u.addEventListener("resize",r.update,Qm),function(){o&&d.forEach(function(f){f.removeEventListener("scroll",r.update,Qm)}),l&&u.removeEventListener("resize",r.update,Qm)}}const kle={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Sle,data:{}};var Cle={left:"right",right:"left",bottom:"top",top:"bottom"};function Dv(e){return e.replace(/left|right|bottom|top/g,function(t){return Cle[t]})}var Tle={start:"end",end:"start"};function z5(e){return e.replace(/start|end/g,function(t){return Tle[t]})}function oC(e){var t=hi(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function sC(e){return Lc(za(e)).left+oC(e).scrollLeft}function Ele(e,t){var r=hi(e),n=za(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,u=0;if(i){o=i.width,s=i.height;var d=r4();(d||!d&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:o,height:s,x:l+sC(e),y:u}}function Ple(e){var t,r=za(e),n=oC(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Tl(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Tl(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+sC(e),u=-n.scrollTop;return Ps(i||r).direction==="rtl"&&(l+=Tl(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}function aC(e){var t=Ps(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function a4(e){return["html","body","#document"].indexOf(Wo(e))>=0?e.ownerDocument.body:Li(e)&&aC(e)?e:a4(Y0(e))}function If(e,t){var r;t===void 0&&(t=[]);var n=a4(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=hi(n),s=i?[o].concat(o.visualViewport||[],aC(n)?n:[]):n,l=t.concat(s);return i?l:l.concat(If(Y0(s)))}function kw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ale(e,t){var r=Lc(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function L5(e,t,r){return t===e4?kw(Ele(e,r)):zl(t)?Ale(t,r):kw(Ple(za(e)))}function Rle(e){var t=If(Y0(e)),r=["absolute","fixed"].indexOf(Ps(e).position)>=0,n=r&&Li(e)?Jh(e):e;return zl(n)?t.filter(function(i){return zl(i)&&n4(i,n)&&Wo(i)!=="body"}):[]}function Ole(e,t,r,n){var i=t==="clippingParents"?Rle(e):[].concat(t),o=[].concat(i,[r]),s=o[0],l=o.reduce(function(u,d){var f=L5(e,d,n);return u.top=Tl(f.top,u.top),u.right=Ug(f.right,u.right),u.bottom=Ug(f.bottom,u.bottom),u.left=Tl(f.left,u.left),u},L5(e,s,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function l4(e){var t=e.reference,r=e.element,n=e.placement,i=n?Lo(n):null,o=n?Nc(n):null,s=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,u;switch(i){case Hn:u={x:s,y:t.y-r.height};break;case Vi:u={x:s,y:t.y+t.height};break;case Wi:u={x:t.x+t.width,y:l};break;case Kn:u={x:t.x-r.width,y:l};break;default:u={x:t.x,y:t.y}}var d=i?iC(i):null;if(d!=null){var f=d==="y"?"height":"width";switch(o){case Mc:u[d]=u[d]-(t[f]/2-r[f]/2);break;case Ah:u[d]=u[d]+(t[f]/2-r[f]/2);break}}return u}function Rh(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,l=r.boundary,u=l===void 0?Xae:l,d=r.rootBoundary,f=d===void 0?e4:d,h=r.elementContext,m=h===void 0?Ud:h,v=r.altBoundary,x=v===void 0?!1:v,g=r.padding,S=g===void 0?0:g,b=o4(typeof S!="number"?S:s4(S,Qh)),y=m===Ud?Qae:Ud,_=e.rects.popper,C=e.elements[x?y:m],T=Ole(zl(C)?C:C.contextElement||za(e.elements.popper),u,f,s),I=Lc(e.elements.reference),$=l4({reference:I,element:_,strategy:"absolute",placement:i}),z=kw(Object.assign({},_,$)),N=m===Ud?z:I,V={top:T.top-N.top+b.top,bottom:N.bottom-T.bottom+b.bottom,left:T.left-N.left+b.left,right:N.right-T.right+b.right},ce=e.modifiersData.offset;if(m===Ud&&ce){var D=ce[i];Object.keys(V).forEach(function(U){var A=[Wi,Vi].indexOf(U)>=0?1:-1,Q=[Hn,Vi].indexOf(U)>=0?"y":"x";V[U]+=D[Q]*A})}return V}function Ile(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,l=r.flipVariations,u=r.allowedAutoPlacements,d=u===void 0?t4:u,f=Nc(n),h=f?l?j5:j5.filter(function(x){return Nc(x)===f}):Qh,m=h.filter(function(x){return d.indexOf(x)>=0});m.length===0&&(m=h);var v=m.reduce(function(x,g){return x[g]=Rh(e,{placement:g,boundary:i,rootBoundary:o,padding:s})[Lo(g)],x},{});return Object.keys(v).sort(function(x,g){return v[x]-v[g]})}function $le(e){if(Lo(e)===tC)return[];var t=Dv(e);return[z5(e),t,z5(t)]}function Fle(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,l=s===void 0?!0:s,u=r.fallbackPlacements,d=r.padding,f=r.boundary,h=r.rootBoundary,m=r.altBoundary,v=r.flipVariations,x=v===void 0?!0:v,g=r.allowedAutoPlacements,S=t.options.placement,b=Lo(S),y=b===S,_=u||(y||!x?[Dv(S)]:$le(S)),C=[S].concat(_).reduce(function(me,pe){return me.concat(Lo(pe)===tC?Ile(t,{placement:pe,boundary:f,rootBoundary:h,padding:d,flipVariations:x,allowedAutoPlacements:g}):pe)},[]),T=t.rects.reference,I=t.rects.popper,$=new Map,z=!0,N=C[0],V=0;V=0,Q=A?"width":"height",ge=Rh(t,{placement:ce,boundary:f,rootBoundary:h,altBoundary:m,padding:d}),G=A?U?Wi:Kn:U?Vi:Hn;T[Q]>I[Q]&&(G=Dv(G));var oe=Dv(G),ee=[];if(o&&ee.push(ge[D]<=0),l&&ee.push(ge[G]<=0,ge[oe]<=0),ee.every(function(me){return me})){N=ce,z=!1;break}$.set(ce,ee)}if(z)for(var he=x?3:1,Y=function(pe){var Ae=C.find(function(He){var Te=$.get(He);if(Te)return Te.slice(0,pe).every(function(Me){return Me})});if(Ae)return N=Ae,"break"},X=he;X>0;X--){var xe=Y(X);if(xe==="break")break}t.placement!==N&&(t.modifiersData[n]._skip=!0,t.placement=N,t.reset=!0)}}const jle={name:"flip",enabled:!0,phase:"main",fn:Fle,requiresIfExists:["offset"],data:{_skip:!1}};function N5(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function B5(e){return[Hn,Wi,Vi,Kn].some(function(t){return e[t]>=0})}function Dle(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Rh(t,{elementContext:"reference"}),l=Rh(t,{altBoundary:!0}),u=N5(s,n),d=N5(l,i,o),f=B5(u),h=B5(d);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Mle={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Dle};function zle(e,t,r){var n=Lo(e),i=[Kn,Hn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[Kn,Wi].indexOf(n)>=0?{x:l,y:s}:{x:s,y:l}}function Lle(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,s=t4.reduce(function(f,h){return f[h]=zle(h,t.rects,o),f},{}),l=s[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=s}const Nle={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lle};function Ble(e){var t=e.state,r=e.name;t.modifiersData[r]=l4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Vle={name:"popperOffsets",enabled:!0,phase:"read",fn:Ble,data:{}};function Wle(e){return e==="x"?"y":"x"}function Ule(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,l=s===void 0?!1:s,u=r.boundary,d=r.rootBoundary,f=r.altBoundary,h=r.padding,m=r.tether,v=m===void 0?!0:m,x=r.tetherOffset,g=x===void 0?0:x,S=Rh(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:f}),b=Lo(t.placement),y=Nc(t.placement),_=!y,C=iC(b),T=Wle(C),I=t.modifiersData.popperOffsets,$=t.rects.reference,z=t.rects.popper,N=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,V=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),ce=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(I){if(o){var U,A=C==="y"?Hn:Kn,Q=C==="y"?Vi:Wi,ge=C==="y"?"height":"width",G=I[C],oe=G+S[A],ee=G-S[Q],he=v?-z[ge]/2:0,Y=y===Mc?$[ge]:z[ge],X=y===Mc?-z[ge]:-$[ge],xe=t.elements.arrow,me=v&&xe?nC(xe):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:i4(),Ae=pe[A],He=pe[Q],Te=Of(0,$[ge],me[ge]),Me=_?$[ge]/2-he-Te-Ae-V.mainAxis:Y-Te-Ae-V.mainAxis,Qe=_?-$[ge]/2+he+Te+He+V.mainAxis:X+Te+He+V.mainAxis,Ne=t.elements.arrow&&Jh(t.elements.arrow),Ee=Ne?C==="y"?Ne.clientTop||0:Ne.clientLeft||0:0,We=(U=ce==null?void 0:ce[C])!=null?U:0,P=G+Me-We-Ee,le=G+Qe-We,ue=Of(v?Ug(oe,P):oe,G,v?Tl(ee,le):ee);I[C]=ue,D[C]=ue-G}if(l){var L,E=C==="x"?Hn:Kn,j=C==="x"?Vi:Wi,W=I[T],J=T==="y"?"height":"width",H=W+S[E],te=W-S[j],q=[Hn,Kn].indexOf(b)!==-1,ae=(L=ce==null?void 0:ce[T])!=null?L:0,we=q?H:W-$[J]-z[J]-ae+V.altAxis,$e=q?W+$[J]+z[J]-ae-V.altAxis:te,Ie=v&&q?ple(we,W,$e):Of(v?we:H,W,v?$e:te);I[T]=Ie,D[T]=Ie-W}t.modifiersData[n]=D}}const Hle={name:"preventOverflow",enabled:!0,phase:"main",fn:Ule,requiresIfExists:["offset"]};function Kle(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gle(e){return e===hi(e)||!Li(e)?oC(e):Kle(e)}function Zle(e){var t=e.getBoundingClientRect(),r=zc(t.width)/e.offsetWidth||1,n=zc(t.height)/e.offsetHeight||1;return r!==1||n!==1}function qle(e,t,r){r===void 0&&(r=!1);var n=Li(t),i=Li(t)&&Zle(t),o=za(t),s=Lc(e,i,r),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Wo(t)!=="body"||aC(o))&&(l=Gle(t)),Li(t)?(u=Lc(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=sC(o))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function Yle(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!r.has(l)){var u=t.get(l);u&&i(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function Xle(e){var t=Yle(e);return lle.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Qle(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Jle(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var V5={placement:"bottom",modifiers:[],strategy:"absolute"};function W5(){for(var e=arguments.length,t=new Array(e),r=0;r{}),_=R.useCallback(()=>{var V;!t||!x.current||!g.current||((V=y.current)==null||V.call(y),S.current=rue(x.current,g.current,{placement:b,modifiers:[Gae,Uae,Wae,{...Vae,enabled:!!m},{name:"eventListeners",...Bae(s)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:l??[0,u]}},{name:"flip",enabled:!!d,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:f}},...r??[]],strategy:i}),S.current.forceUpdate(),y.current=S.current.destroy)},[b,t,r,m,s,o,l,u,d,h,f,i]);R.useEffect(()=>()=>{var V;!x.current&&!g.current&&((V=S.current)==null||V.destroy(),S.current=null)},[]);const C=R.useCallback(V=>{x.current=V,_()},[_]),T=R.useCallback((V={},ce=null)=>({...V,ref:fi(C,ce)}),[C]),I=R.useCallback(V=>{g.current=V,_()},[_]),$=R.useCallback((V={},ce=null)=>({...V,ref:fi(I,ce),style:{...V.style,position:i,minWidth:m?void 0:"max-content",inset:"0 auto auto 0"}}),[i,I,m]),z=R.useCallback((V={},ce=null)=>{const{size:D,shadowColor:U,bg:A,style:Q,...ge}=V;return{...ge,ref:ce,"data-popper-arrow":"",style:iue(V)}},[]),N=R.useCallback((V={},ce=null)=>({...V,ref:ce,"data-popper-arrow-inner":""}),[]);return{update(){var V;(V=S.current)==null||V.update()},forceUpdate(){var V;(V=S.current)==null||V.forceUpdate()},transformOrigin:en.transformOrigin.varRef,referenceRef:C,popperRef:I,getPopperProps:$,getArrowProps:z,getArrowInnerProps:N,getReferenceProps:T}}function iue(e){const{size:t,shadowColor:r,bg:n,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}function oue(e={}){const{onClose:t,onOpen:r,isOpen:n,id:i}=e,o=Mo(r),s=Mo(t),[l,u]=R.useState(e.defaultIsOpen||!1),d=n!==void 0?n:l,f=n!==void 0,h=R.useId(),m=i??`disclosure-${h}`,v=R.useCallback(()=>{f||u(!1),s==null||s()},[f,s]),x=R.useCallback(()=>{f||u(!0),o==null||o()},[f,o]),g=R.useCallback(()=>{d?v():x()},[d,x,v]);function S(y={}){return{...y,"aria-expanded":d,"aria-controls":m,onClick(_){var C;(C=y.onClick)==null||C.call(y,_),g()}}}function b(y={}){return{...y,hidden:!d,id:m}}return{isOpen:d,onOpen:x,onClose:v,onToggle:g,isControlled:f,getButtonProps:S,getDisclosureProps:b}}function sue(e){const{wasSelected:t,enabled:r,isSelected:n,mode:i="unmount"}=e;return!!(!r||n||i==="keepMounted"&&t)}var aue={slideInBottom:{...sf,custom:{offsetY:16,reverse:!0}},slideInRight:{...sf,custom:{offsetX:16,reverse:!0}},slideInTop:{...sf,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...sf,custom:{offsetX:-16,reverse:!0}},scale:{...uj,custom:{initialScale:.95,reverse:!0}},none:{}},lue=je(Hl.section),uue=e=>aue[e||"none"],u4=R.forwardRef((e,t)=>{const{preset:r,motionProps:n=uue(r),...i}=e;return w.jsx(lue,{ref:t,...n,...i})});u4.displayName="ModalTransition";var cue=Object.defineProperty,due=(e,t,r)=>t in e?cue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fue=(e,t,r)=>(due(e,t+"",r),r),hue=class{constructor(){fue(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},Cw=new hue;function c4(e,t){const[r,n]=R.useState(0);return R.useEffect(()=>{const i=e.current;if(i){if(t){const o=Cw.add(i);n(o)}return()=>{Cw.remove(i),n(0)}}},[t,e]),r}var pue=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bu=new WeakMap,Jm=new WeakMap,ev={},kx=0,d4=function(e){return e&&(e.host||d4(e.parentNode))},mue=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=d4(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},vue=function(e,t,r,n){var i=mue(t,Array.isArray(e)?e:[e]);ev[r]||(ev[r]=new WeakMap);var o=ev[r],s=[],l=new Set,u=new Set(i),d=function(h){!h||l.has(h)||(l.add(h),d(h.parentNode))};i.forEach(d);var f=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(m){if(l.has(m))f(m);else try{var v=m.getAttribute(n),x=v!==null&&v!=="false",g=(bu.get(m)||0)+1,S=(o.get(m)||0)+1;bu.set(m,g),o.set(m,S),s.push(m),g===1&&x&&Jm.set(m,!0),S===1&&m.setAttribute(r,"true"),x||m.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",m,b)}})};return f(t),l.clear(),kx++,function(){s.forEach(function(h){var m=bu.get(h)-1,v=o.get(h)-1;bu.set(h,m),o.set(h,v),m||(Jm.has(h)||h.removeAttribute(n),Jm.delete(h)),v||h.removeAttribute(r)}),kx--,kx||(bu=new WeakMap,bu=new WeakMap,Jm=new WeakMap,ev={})}},gue=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=pue(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),vue(n,i,r,"aria-hidden")):function(){return null}};function yue(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:s=!0,onOverlayClick:l,onEsc:u}=e,d=R.useRef(null),f=R.useRef(null),[h,m,v]=xue(n,"chakra-modal","chakra-modal--header","chakra-modal--body");bue(d,t&&s);const x=c4(d,t),g=R.useRef(null),S=R.useCallback(N=>{g.current=N.target},[]),b=R.useCallback(N=>{N.key==="Escape"&&(N.stopPropagation(),o&&(r==null||r()),u==null||u())},[o,r,u]),[y,_]=R.useState(!1),[C,T]=R.useState(!1),I=R.useCallback((N={},V=null)=>({role:"dialog",...N,ref:fi(V,d),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?m:void 0,"aria-describedby":C?v:void 0,onClick:Gt(N.onClick,ce=>ce.stopPropagation())}),[v,C,h,m,y]),$=R.useCallback(N=>{N.stopPropagation(),g.current===N.target&&Cw.isTopModal(d.current)&&(i&&(r==null||r()),l==null||l())},[r,i,l]),z=R.useCallback((N={},V=null)=>({...N,ref:fi(V,f),onClick:Gt(N.onClick,$),onKeyDown:Gt(N.onKeyDown,b),onMouseDown:Gt(N.onMouseDown,S)}),[b,S,$]);return{isOpen:t,onClose:r,headerId:m,bodyId:v,setBodyMounted:T,setHeaderMounted:_,dialogRef:d,overlayRef:f,getDialogProps:I,getDialogContainerProps:z,index:x}}function bue(e,t){const r=e.current;R.useEffect(()=>{if(!(!e.current||!t))return gue(e.current)},[t,e,r])}function xue(e,...t){const r=R.useId(),n=e||r;return R.useMemo(()=>t.map(i=>`${i}-${n}`),[n,t])}var[_ue,Jc]=nn({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[wue,Ll]=nn({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Hg=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:i,trapFocus:o,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:u,blockScrollOnMount:d,allowPinchZoom:f,preserveScrollBarGap:h,motionPreset:m,lockFocusAcrossFrames:v,onCloseComplete:x}=t,g=$s("Modal",t),b={...yue(t),autoFocus:i,trapFocus:o,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:u,blockScrollOnMount:d,allowPinchZoom:f,preserveScrollBarGap:h,motionPreset:m,lockFocusAcrossFrames:v};return w.jsx(wue,{value:b,children:w.jsx(_ue,{value:g,children:w.jsx(Yc,{onExitComplete:x,children:b.isOpen&&w.jsx(Zc,{...r,children:n})})})})};Hg.displayName="Modal";var Mv="right-scroll-bar-position",zv="width-before-scroll-bar",Sue="with-scroll-bars-hidden",kue="--removed-body-scroll-bar-size",f4=kj(),Cx=function(){},X0=R.forwardRef(function(e,t){var r=R.useRef(null),n=R.useState({onScrollCapture:Cx,onWheelCapture:Cx,onTouchMoveCapture:Cx}),i=n[0],o=n[1],s=e.forwardProps,l=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,h=e.shards,m=e.sideCar,v=e.noIsolation,x=e.inert,g=e.allowPinchZoom,S=e.as,b=S===void 0?"div":S,y=e.gapMode,_=_j(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,T=xj([r,t]),I=Ro(Ro({},_),i);return R.createElement(R.Fragment,null,f&&R.createElement(C,{sideCar:f4,removeScrollBar:d,shards:h,noIsolation:v,inert:x,setCallbacks:o,allowPinchZoom:!!g,lockRef:r,gapMode:y}),s?R.cloneElement(R.Children.only(l),Ro(Ro({},I),{ref:T})):R.createElement(b,Ro({},I,{className:u,ref:T}),l))});X0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};X0.classNames={fullWidth:zv,zeroRight:Mv};var Cue=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tue(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Cue();return t&&e.setAttribute("nonce",t),e}function Eue(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Pue(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Aue=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Tue())&&(Eue(t,r),Pue(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Rue=function(){var e=Aue();return function(t,r){R.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},h4=function(){var e=Rue(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},Oue={left:0,top:0,right:0,gap:0},Tx=function(e){return parseInt(e||"",10)||0},Iue=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Tx(r),Tx(n),Tx(i)]},$ue=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Oue;var t=Iue(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Fue=h4(),yc="data-scroll-locked",jue=function(e,t,r,n){var i=e.left,o=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),` + .`.concat(Sue,` { + overflow: hidden `).concat(n,`; + padding-right: `).concat(l,"px ").concat(n,`; + } + body[`).concat(yc,`] { + overflow: hidden `).concat(n,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` + padding-left: `.concat(i,`px; + padding-top: `).concat(o,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(l,"px ").concat(n,`; + `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),` + } + + .`).concat(Mv,` { + right: `).concat(l,"px ").concat(n,`; + } + + .`).concat(zv,` { + margin-right: `).concat(l,"px ").concat(n,`; + } + + .`).concat(Mv," .").concat(Mv,` { + right: 0 `).concat(n,`; + } + + .`).concat(zv," .").concat(zv,` { + margin-right: 0 `).concat(n,`; + } + + body[`).concat(yc,`] { + `).concat(kue,": ").concat(l,`px; + } +`)},U5=function(){var e=parseInt(document.body.getAttribute(yc)||"0",10);return isFinite(e)?e:0},Due=function(){R.useEffect(function(){return document.body.setAttribute(yc,(U5()+1).toString()),function(){var e=U5()-1;e<=0?document.body.removeAttribute(yc):document.body.setAttribute(yc,e.toString())}},[])},Mue=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;Due();var o=R.useMemo(function(){return $ue(i)},[i]);return R.createElement(Fue,{styles:jue(o,!t,i,r?"":"!important")})},Tw=!1;if(typeof window<"u")try{var tv=Object.defineProperty({},"passive",{get:function(){return Tw=!0,!0}});window.addEventListener("test",tv,tv),window.removeEventListener("test",tv,tv)}catch{Tw=!1}var xu=Tw?{passive:!1}:!1,zue=function(e){return e.tagName==="TEXTAREA"},p4=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!zue(e)&&r[t]==="visible")},Lue=function(e){return p4(e,"overflowY")},Nue=function(e){return p4(e,"overflowX")},H5=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=m4(e,n);if(i){var o=v4(e,n),s=o[1],l=o[2];if(s>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Bue=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Vue=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},m4=function(e,t){return e==="v"?Lue(t):Nue(t)},v4=function(e,t){return e==="v"?Bue(t):Vue(t)},Wue=function(e,t){return e==="h"&&t==="rtl"?-1:1},Uue=function(e,t,r,n,i){var o=Wue(e,window.getComputedStyle(t).direction),s=o*n,l=r.target,u=t.contains(l),d=!1,f=s>0,h=0,m=0;do{var v=v4(e,l),x=v[0],g=v[1],S=v[2],b=g-S-o*x;(x||b)&&m4(e,l)&&(h+=b,m+=x),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(f&&(Math.abs(h)<1||!i)||!f&&(Math.abs(m)<1||!i))&&(d=!0),d},rv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},K5=function(e){return[e.deltaX,e.deltaY]},G5=function(e){return e&&"current"in e?e.current:e},Hue=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kue=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},Gue=0,_u=[];function Zue(e){var t=R.useRef([]),r=R.useRef([0,0]),n=R.useRef(),i=R.useState(Gue++)[0],o=R.useState(h4)[0],s=R.useRef(e);R.useEffect(function(){s.current=e},[e]),R.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=mw([e.lockRef.current],(e.shards||[]).map(G5),!0).filter(Boolean);return g.forEach(function(S){return S.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=R.useCallback(function(g,S){if("touches"in g&&g.touches.length===2)return!s.current.allowPinchZoom;var b=rv(g),y=r.current,_="deltaX"in g?g.deltaX:y[0]-b[0],C="deltaY"in g?g.deltaY:y[1]-b[1],T,I=g.target,$=Math.abs(_)>Math.abs(C)?"h":"v";if("touches"in g&&$==="h"&&I.type==="range")return!1;var z=H5($,I);if(!z)return!0;if(z?T=$:(T=$==="v"?"h":"v",z=H5($,I)),!z)return!1;if(!n.current&&"changedTouches"in g&&(_||C)&&(n.current=T),!T)return!0;var N=n.current||T;return Uue(N,S,g,N==="h"?_:C,!0)},[]),u=R.useCallback(function(g){var S=g;if(!(!_u.length||_u[_u.length-1]!==o)){var b="deltaY"in S?K5(S):rv(S),y=t.current.filter(function(T){return T.name===S.type&&(T.target===S.target||S.target===T.shadowParent)&&Hue(T.delta,b)})[0];if(y&&y.should){S.cancelable&&S.preventDefault();return}if(!y){var _=(s.current.shards||[]).map(G5).filter(Boolean).filter(function(T){return T.contains(S.target)}),C=_.length>0?l(S,_[0]):!s.current.noIsolation;C&&S.cancelable&&S.preventDefault()}}},[]),d=R.useCallback(function(g,S,b,y){var _={name:g,delta:S,target:b,should:y,shadowParent:que(b)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(C){return C!==_})},1)},[]),f=R.useCallback(function(g){r.current=rv(g),n.current=void 0},[]),h=R.useCallback(function(g){d(g.type,K5(g),g.target,l(g,e.lockRef.current))},[]),m=R.useCallback(function(g){d(g.type,rv(g),g.target,l(g,e.lockRef.current))},[]);R.useEffect(function(){return _u.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",u,xu),document.addEventListener("touchmove",u,xu),document.addEventListener("touchstart",f,xu),function(){_u=_u.filter(function(g){return g!==o}),document.removeEventListener("wheel",u,xu),document.removeEventListener("touchmove",u,xu),document.removeEventListener("touchstart",f,xu)}},[]);var v=e.removeScrollBar,x=e.inert;return R.createElement(R.Fragment,null,x?R.createElement(o,{styles:Kue(i)}):null,v?R.createElement(Mue,{gapMode:e.gapMode}):null)}function que(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Yue=ise(f4,Zue);var g4=R.forwardRef(function(e,t){return R.createElement(X0,Ro({},e,{ref:t,sideCar:Yue}))});g4.classNames=X0.classNames;function Xue(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:s,finalFocusRef:l,returnFocusOnClose:u,preserveScrollBarGap:d,lockFocusAcrossFrames:f,isOpen:h}=Ll(),[m,v]=WF();R.useEffect(()=>{!m&&v&&setTimeout(v)},[m,v]);const x=c4(n,h);return w.jsx(Yj,{autoFocus:t,isDisabled:!r,initialFocusRef:i,finalFocusRef:l,restoreFocus:u,contentRef:n,lockFocusAcrossFrames:f,children:w.jsx(g4,{removeScrollBar:!d,allowPinchZoom:s,enabled:x===1&&o,forwardProps:!0,children:e.children})})}var Kg=Ue((e,t)=>{const{className:r,children:n,containerProps:i,motionProps:o,...s}=e,{getDialogProps:l,getDialogContainerProps:u}=Ll(),d=l(s,t),f=u(i),h=pt("chakra-modal__content",r),m=Jc(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...m.dialog},x={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...m.dialogContainer},{motionPreset:g}=Ll();return w.jsx(Xue,{children:w.jsx(je.div,{...f,className:"chakra-modal__content-container",tabIndex:-1,__css:x,children:w.jsx(u4,{preset:g,motionProps:o,className:h,...d,__css:v,children:n})})})});Kg.displayName="ModalContent";var lC=Ue((e,t)=>{const{className:r,...n}=e,i=pt("chakra-modal__footer",r),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...Jc().footer};return w.jsx(je.footer,{ref:t,...n,__css:s,className:i})});lC.displayName="ModalFooter";var Gg=Ue((e,t)=>{const{className:r,...n}=e,{headerId:i,setHeaderMounted:o}=Ll();R.useEffect(()=>(o(!0),()=>o(!1)),[o]);const s=pt("chakra-modal__header",r),u={flex:0,...Jc().header};return w.jsx(je.header,{ref:t,className:s,id:i,...n,__css:u})});Gg.displayName="ModalHeader";var Que=je(Hl.div),Zg=Ue((e,t)=>{const{className:r,transition:n,motionProps:i,...o}=e,s=pt("chakra-modal__overlay",r),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Jc().overlay},{motionPreset:d}=Ll(),h=i||(d==="none"?{}:lj);return w.jsx(Que,{...h,__css:u,ref:t,className:s,...o})});Zg.displayName="ModalOverlay";var qg=Ue((e,t)=>{const{className:r,...n}=e,{bodyId:i,setBodyMounted:o}=Ll();R.useEffect(()=>(o(!0),()=>o(!1)),[o]);const s=pt("chakra-modal__body",r),l=Jc();return w.jsx(je.div,{ref:t,className:s,id:i,...n,__css:l.body})});qg.displayName="ModalBody";var y4=Ue((e,t)=>{const{onClick:r,className:n,...i}=e,{onClose:o}=Ll(),s=pt("chakra-modal__close-btn",n),l=Jc();return w.jsx(Lk,{ref:t,__css:l.closeButton,className:s,onClick:Gt(r,u=>{u.stopPropagation(),o()}),...i})});y4.displayName="ModalCloseButton";var b4=Ue(function(t,r){const{children:n,placeholder:i,className:o,...s}=t;return w.jsxs(je.select,{...s,ref:r,className:pt("chakra-select",o),children:[i&&w.jsx("option",{value:"",children:i}),n]})});b4.displayName="SelectField";function Jue(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}var co=Ue((e,t)=>{var r;const n=$s("Select",e),{rootProps:i,placeholder:o,icon:s,color:l,height:u,h:d,minH:f,minHeight:h,iconColor:m,iconSize:v,...x}=bn(e),[g,S]=Jue(x,ZK),b=pj(S),y={width:"100%",height:"fit-content",position:"relative",color:l},_={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(r=n.field)==null?void 0:r._focus}};return w.jsxs(je.div,{className:"chakra-select__wrapper",__css:y,...g,...i,children:[w.jsx(b4,{ref:t,height:d??u,minH:f??h,placeholder:o,...b,__css:_,children:e.children}),w.jsx(x4,{"data-disabled":gt(b.disabled),...(m||l)&&{color:m||l},__css:n.icon,...v&&{fontSize:v},children:s})]})});co.displayName="Select";var ece=e=>w.jsx("svg",{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),tce=je("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),x4=e=>{const{children:t=w.jsx(ece,{}),...r}=e,n=R.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return w.jsx(tce,{...r,className:"chakra-select__icon-wrapper",children:R.isValidElement(t)?n:null})};x4.displayName="SelectIcon";function rce(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const r=e.ownerDocument.defaultView??window,n=new r.ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const[o]=i;let s,l;if("borderBoxSize"in o){const u=o.borderBoxSize,d=Array.isArray(u)?u[0]:u;s=d.inlineSize,l=d.blockSize}else s=e.offsetWidth,l=e.offsetHeight;t({width:s,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}var nce=globalThis!=null&&globalThis.document?R.useLayoutEffect:R.useEffect;function ice(e,t){var r,n;if(!e||!e.parentElement)return;const i=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?n:window,o=new i.MutationObserver(()=>{t()});return o.observe(e.parentElement,{childList:!0}),()=>{o.disconnect()}}function oce({getNodes:e,observeMutation:t=!0}){const[r,n]=R.useState([]),[i,o]=R.useState(0);return nce(()=>{const s=e(),l=s.map((u,d)=>rce(u,f=>{n(h=>[...h.slice(0,d),f,...h.slice(d+1)])}));if(t){const u=s[0];l.push(ice(u,()=>{o(d=>d+1)}))}return()=>{l.forEach(u=>{u==null||u()})}},[i]),r}function sce(e){return typeof e=="object"&&e!==null&&"current"in e}function ace(e){const[t]=oce({observeMutation:!1,getNodes(){return[sce(e)?e.current:e]}});return t}var[lce,ep]=nn({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),_4=Ue((e,t)=>{const r=$s("Table",e),{className:n,layout:i,...o}=bn(e);return w.jsx(lce,{value:r,children:w.jsx(je.table,{ref:t,__css:{tableLayout:i,...r.table},className:pt("chakra-table",n),...o})})});_4.displayName="Table";var uce=Ue((e,t)=>{const r=ep();return w.jsx(je.thead,{...e,ref:t,__css:r.thead})}),Z5=Ue((e,t)=>{const r=ep();return w.jsx(je.tr,{...e,ref:t,__css:r.tr})}),cce=Ue((e,t)=>{var r;const{overflow:n,overflowX:i,className:o,...s}=e;return w.jsx(je.div,{ref:t,className:pt("chakra-table__container",o),...s,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:(r=n??i)!=null?r:"auto",overflowY:"hidden",maxWidth:"100%"}})}),dce=Ue((e,t)=>{const r=ep();return w.jsx(je.tbody,{...e,ref:t,__css:r.tbody})}),Xa=Ue(({isNumeric:e,...t},r)=>{const n=ep();return w.jsx(je.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}),Qa=Ue(({isNumeric:e,...t},r)=>{const n=ep();return w.jsx(je.th,{...t,ref:r,__css:n.th,"data-is-numeric":e})}),[fce,w4,hce,pce]=loe();function mce(e){var t;const{defaultIndex:r,onChange:n,index:i,isManual:o,isLazy:s,lazyBehavior:l="unmount",orientation:u="horizontal",direction:d="ltr",...f}=e,[h,m]=R.useState(r??0),[v,x]=uoe({defaultValue:r??0,value:i,onChange:n});R.useEffect(()=>{i!=null&&m(i)},[i]);const g=hce(),S=R.useId();return{id:`tabs-${(t=e.id)!=null?t:S}`,selectedIndex:v,focusedIndex:h,setSelectedIndex:x,setFocusedIndex:m,isManual:o,isLazy:s,lazyBehavior:l,orientation:u,descendants:g,direction:d,htmlProps:f}}var[vce,tp]=nn({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function gce(e){const{focusedIndex:t,orientation:r,direction:n}=tp(),i=w4(),o=R.useCallback(s=>{const l=()=>{var y;const _=i.nextEnabled(t);_&&((y=_.node)==null||y.focus())},u=()=>{var y;const _=i.prevEnabled(t);_&&((y=_.node)==null||y.focus())},d=()=>{var y;const _=i.firstEnabled();_&&((y=_.node)==null||y.focus())},f=()=>{var y;const _=i.lastEnabled();_&&((y=_.node)==null||y.focus())},h=r==="horizontal",m=r==="vertical",v=s.key,x=n==="ltr"?"ArrowLeft":"ArrowRight",g=n==="ltr"?"ArrowRight":"ArrowLeft",b={[x]:()=>h&&u(),[g]:()=>h&&l(),ArrowDown:()=>m&&l(),ArrowUp:()=>m&&u(),Home:d,End:f}[v];b&&(s.preventDefault(),b(s))},[i,t,r,n]);return{...e,role:"tablist","aria-orientation":r,onKeyDown:Gt(e.onKeyDown,o)}}function yce(e){const{isDisabled:t=!1,isFocusable:r=!1,...n}=e,{setSelectedIndex:i,isManual:o,id:s,setFocusedIndex:l,selectedIndex:u}=tp(),{index:d,register:f}=pce({disabled:t&&!r}),h=d===u,m=()=>{i(d)},v=()=>{l(d),!o&&!(t&&r)&&i(d)};return{...Mae({...n,ref:fi(f,e.ref),isDisabled:t,isFocusable:r,onClick:Gt(e.onClick,m)}),id:S4(s,d),role:"tab",tabIndex:h?0:-1,type:"button","aria-selected":h,"aria-controls":k4(s,d),onFocus:t?void 0:Gt(e.onFocus,v)}}var[bce,xce]=nn({});function _ce(e){const t=tp(),{id:r,selectedIndex:n}=t,o=dj(e.children).map((s,l)=>R.createElement(bce,{key:l,value:{isSelected:l===n,id:k4(r,l),tabId:S4(r,l),selectedIndex:n}},s));return{...e,children:o}}function wce(e){const{children:t,...r}=e,{isLazy:n,lazyBehavior:i}=tp(),{isSelected:o,id:s,tabId:l}=xce(),u=R.useRef(!1);o&&(u.current=!0);const d=sue({wasSelected:u.current,isSelected:o,enabled:n,mode:i});return{tabIndex:0,...r,children:d?t:null,role:"tabpanel","aria-labelledby":l,hidden:!o,id:s}}function Sce(){const e=tp(),t=w4(),{selectedIndex:r,orientation:n}=e,i=n==="horizontal",o=n==="vertical",[s,l]=R.useState(()=>{if(i)return{left:0,width:0};if(o)return{top:0,height:0}}),[u,d]=R.useState(!1);return gs(()=>{if(r==null)return;const f=t.item(r);if(f==null)return;i&&l({left:f.node.offsetLeft,width:f.node.offsetWidth}),o&&l({top:f.node.offsetTop,height:f.node.offsetHeight});const h=requestAnimationFrame(()=>{d(!0)});return()=>{h&&cancelAnimationFrame(h)}},[r,i,o,t]),{position:"absolute",transitionProperty:"left, right, top, bottom, height, width",transitionDuration:u?"200ms":"0ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",...s}}function S4(e,t){return`${e}--tab-${t}`}function k4(e,t){return`${e}--tabpanel-${t}`}var[kce,rp]=nn({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),C4=Ue(function(t,r){const n=$s("Tabs",t),{children:i,className:o,...s}=bn(t),{htmlProps:l,descendants:u,...d}=mce(s),f=R.useMemo(()=>d,[d]),{isFitted:h,...m}=l,v={position:"relative",...n.root};return w.jsx(fce,{value:u,children:w.jsx(vce,{value:f,children:w.jsx(kce,{value:n,children:w.jsx(je.div,{className:pt("chakra-tabs",o),ref:r,...m,__css:v,children:i})})})})});C4.displayName="Tabs";var T4=Ue(function(t,r){const n=Sce(),i={...t.style,...n},o=rp();return w.jsx(je.div,{ref:r,...t,className:pt("chakra-tabs__tab-indicator",t.className),style:i,__css:o.indicator})});T4.displayName="TabIndicator";var E4=Ue(function(t,r){const n=gce({...t,ref:r}),o={display:"flex",...rp().tablist};return w.jsx(je.div,{...n,className:pt("chakra-tabs__tablist",t.className),__css:o})});E4.displayName="TabList";var Q0=Ue(function(t,r){const n=wce({...t,ref:r}),i=rp();return w.jsx(je.div,{outline:"0",...n,className:pt("chakra-tabs__tab-panel",t.className),__css:i.tabpanel})});Q0.displayName="TabPanel";var P4=Ue(function(t,r){const n=_ce(t),i=rp();return w.jsx(je.div,{...n,width:"100%",ref:r,className:pt("chakra-tabs__tab-panels",t.className),__css:i.tabpanels})});P4.displayName="TabPanels";var Lv=Ue(function(t,r){const n=rp(),i=yce({...t,ref:r}),o={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return w.jsx(je.button,{...i,className:pt("chakra-tabs__tab",t.className),__css:o})});Lv.displayName="Tab";var[Cce,A4]=nn({name:"TagStylesContext",errorMessage:`useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),R4=Ue((e,t)=>{const r=$s("Tag",e),n=bn(e),i={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...r.container};return w.jsx(Cce,{value:r,children:w.jsx(je.span,{ref:t,...n,__css:i})})});R4.displayName="Tag";var Tce=Ue((e,t)=>{const r=A4();return w.jsx(je.span,{ref:t,noOfLines:1,...e,__css:r.label})});Tce.displayName="TagLabel";var Ece=Ue((e,t)=>w.jsx(nr,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));Ece.displayName="TagLeftIcon";var Pce=Ue((e,t)=>w.jsx(nr,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e}));Pce.displayName="TagRightIcon";var O4=e=>w.jsx(nr,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:w.jsx("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});O4.displayName="TagCloseIcon";var Ace=Ue((e,t)=>{const{isDisabled:r,children:n,...i}=e,s={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...A4().closeButton};return w.jsx(je.button,{ref:t,"aria-label":"close",...i,type:"button",disabled:r,__css:s,children:n||w.jsx(O4,{})})});Ace.displayName="TagCloseButton";var Rce={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Ew=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Nv=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function Oce(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:s=i,closeOnEsc:l=!0,onOpen:u,onClose:d,placement:f,id:h,isOpen:m,defaultIsOpen:v,arrowSize:x=10,arrowShadowColor:g,arrowPadding:S,modifiers:b,isDisabled:y,gutter:_,offset:C,direction:T,...I}=e,{isOpen:$,onOpen:z,onClose:N}=oue({isOpen:m,defaultIsOpen:v,onOpen:u,onClose:d}),{referenceRef:V,getPopperProps:ce,getArrowInnerProps:D,getArrowProps:U}=nue({enabled:$,placement:f,arrowPadding:S,modifiers:b,gutter:_,offset:C,direction:T}),A=R.useId(),ge=`tooltip-${h??A}`,G=R.useRef(null),oe=R.useRef(),ee=R.useCallback(()=>{oe.current&&(clearTimeout(oe.current),oe.current=void 0)},[]),he=R.useRef(),Y=R.useCallback(()=>{he.current&&(clearTimeout(he.current),he.current=void 0)},[]),X=R.useCallback(()=>{Y(),N()},[N,Y]),xe=Ice(G,X),me=R.useCallback(()=>{if(!y&&!oe.current){$&&xe();const Ee=Nv(G);oe.current=Ee.setTimeout(z,t)}},[xe,y,$,z,t]),pe=R.useCallback(()=>{ee();const Ee=Nv(G);he.current=Ee.setTimeout(X,r)},[r,X,ee]),Ae=R.useCallback(()=>{$&&n&&pe()},[n,pe,$]),He=R.useCallback(()=>{$&&s&&pe()},[s,pe,$]),Te=R.useCallback(Ee=>{$&&Ee.key==="Escape"&&pe()},[$,pe]);vx(()=>Ew(G),"keydown",l?Te:void 0),vx(()=>{if(!o)return null;const Ee=G.current;if(!Ee)return null;const We=Zj(Ee);return We.localName==="body"?Nv(G):We},"scroll",()=>{$&&o&&X()},{passive:!0,capture:!0}),R.useEffect(()=>{y&&(ee(),$&&N())},[y,$,N,ee]),R.useEffect(()=>()=>{ee(),Y()},[ee,Y]),vx(()=>G.current,"pointerleave",pe);const Me=R.useCallback((Ee={},We=null)=>({...Ee,ref:fi(G,We,V),onPointerEnter:Gt(Ee.onPointerEnter,le=>{le.pointerType!=="touch"&&me()}),onClick:Gt(Ee.onClick,Ae),onPointerDown:Gt(Ee.onPointerDown,He),onFocus:Gt(Ee.onFocus,me),onBlur:Gt(Ee.onBlur,pe),"aria-describedby":$?ge:void 0}),[me,pe,He,$,ge,Ae,V]),Qe=R.useCallback((Ee={},We=null)=>ce({...Ee,style:{...Ee.style,[en.arrowSize.var]:x?`${x}px`:void 0,[en.arrowShadowColor.var]:g}},We),[ce,x,g]),Ne=R.useCallback((Ee={},We=null)=>{const P={...Ee.style,position:"relative",transformOrigin:en.transformOrigin.varRef};return{ref:We,...I,...Ee,id:ge,role:"tooltip",style:P}},[I,ge]);return{isOpen:$,show:me,hide:pe,getTriggerProps:Me,getTooltipProps:Ne,getTooltipPositionerProps:Qe,getArrowProps:U,getArrowInnerProps:D}}var Ex="chakra-ui:close-tooltip";function Ice(e,t){return R.useEffect(()=>{const r=Ew(e);return r.addEventListener(Ex,t),()=>r.removeEventListener(Ex,t)},[t,e]),()=>{const r=Ew(e),n=Nv(e);r.dispatchEvent(new n.CustomEvent(Ex))}}function $ce(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function Fce(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}var jce=je(Hl.div),I4=Ue((e,t)=>{var r,n;const i=Is("Tooltip",e),o=bn(e),s=ZS(),{children:l,label:u,shouldWrapChildren:d,"aria-label":f,hasArrow:h,bg:m,portalProps:v,background:x,backgroundColor:g,bgColor:S,motionProps:b,...y}=o,_=(n=(r=x??g)!=null?r:m)!=null?n:S;if(_){i.bg=_;const ce=lG(s,"colors",_);i[en.arrowBg.var]=ce}const C=Oce({...y,direction:s.direction}),T=typeof l=="string"||d;let I;if(T)I=w.jsx(je.span,{display:"inline-block",tabIndex:0,...C.getTriggerProps(),children:l});else{const ce=R.Children.only(l);I=R.cloneElement(ce,C.getTriggerProps(ce.props,ce.ref))}const $=!!f,z=C.getTooltipProps({},t),N=$?$ce(z,["role","id"]):z,V=Fce(z,["role","id"]);return u?w.jsxs(w.Fragment,{children:[I,w.jsx(Yc,{children:C.isOpen&&w.jsx(Zc,{...v,children:w.jsx(je.div,{...C.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:w.jsxs(jce,{variants:Rce,initial:"exit",animate:"enter",exit:"exit",...b,...N,__css:i,children:[u,$&&w.jsx(je.span,{srOnly:!0,...V,children:f}),h&&w.jsx(je.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:w.jsx(je.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):w.jsx(w.Fragment,{children:l})});I4.displayName="Tooltip";const Dce=()=>w.jsx(vn,{w:"full",minH:"105px"}),Mce=FS("/_withNavbar")({component:()=>w.jsxs(Tr,{minH:"100vh",h:"1px",spacing:0,alignItems:"center",children:[w.jsx(vn,{w:"full",px:"32px",py:"16px",children:w.jsx(cj,{src:"logo.png",height:"40px",w:"106px"})}),w.jsx(vn,{h:"full",w:"full",maxW:"1200px",overflow:"visible",mt:"90px",mb:"105px",children:w.jsx(IS,{})}),w.jsx(Dce,{})]})});var zce=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function np(e,t){var r=Lce(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function Lce(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),i=zce.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var Nce=[".DS_Store","Thumbs.db"];function Bce(e){return Xc(this,void 0,void 0,function(){return Qc(this,function(t){return Yg(e)&&Vce(e.dataTransfer)?[2,Kce(e.dataTransfer,e.type)]:Wce(e)?[2,Uce(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,Hce(e)]:[2,[]]})})}function Vce(e){return Yg(e)}function Wce(e){return Yg(e)&&Yg(e.target)}function Yg(e){return typeof e=="object"&&e!==null}function Uce(e){return Pw(e.target.files).map(function(t){return np(t)})}function Hce(e){return Xc(this,void 0,void 0,function(){var t;return Qc(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return np(n)})]}})})}function Kce(e,t){return Xc(this,void 0,void 0,function(){var r,n;return Qc(this,function(i){switch(i.label){case 0:return e.items?(r=Pw(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(Gce))]):[3,2];case 1:return n=i.sent(),[2,q5($4(n))];case 2:return[2,q5(Pw(e.files).map(function(o){return np(o)}))]}})})}function q5(e){return e.filter(function(t){return Nce.indexOf(t.name)===-1})}function Pw(e){if(e===null)return[];for(var t=[],r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rr)return[!1,eR(r)];if(e.sizer)return[!1,eR(r)]}return[!0,null]}function ul(e){return e!=null}function ude(e){var t=e.files,r=e.accept,n=e.minSize,i=e.maxSize,o=e.multiple,s=e.maxFiles,l=e.validator;return!o&&t.length>1||o&&s>=1&&t.length>s?!1:t.every(function(u){var d=M4(u,r),f=Oh(d,1),h=f[0],m=z4(u,n,i),v=Oh(m,1),x=v[0],g=l?l(u):null;return h&&x&&!g})}function Xg(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function nv(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function rR(e){e.preventDefault()}function cde(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function dde(e){return e.indexOf("Edge/")!==-1}function fde(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return cde(e)||dde(e)}function So(){for(var e=arguments.length,t=new Array(e),r=0;r1?i-1:0),s=1;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ade(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var uC=R.forwardRef(function(e,t){var r=e.children,n=Qg(e,yde),i=W4(n),o=i.open,s=Qg(i,bde);return R.useImperativeHandle(t,function(){return{open:o}},[o]),ft.createElement(R.Fragment,null,r(ar(ar({},s),{},{open:o})))});uC.displayName="Dropzone";var V4={disabled:!1,getFilesFromEvent:Bce,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};uC.defaultProps=V4;uC.propTypes={children:Wt.func,accept:Wt.objectOf(Wt.arrayOf(Wt.string)),multiple:Wt.bool,preventDropOnDocument:Wt.bool,noClick:Wt.bool,noKeyboard:Wt.bool,noDrag:Wt.bool,noDragEventsBubbling:Wt.bool,minSize:Wt.number,maxSize:Wt.number,maxFiles:Wt.number,disabled:Wt.bool,getFilesFromEvent:Wt.func,onFileDialogCancel:Wt.func,onFileDialogOpen:Wt.func,useFsAccessApi:Wt.bool,autoFocus:Wt.bool,onDragEnter:Wt.func,onDragLeave:Wt.func,onDragOver:Wt.func,onDrop:Wt.func,onDropAccepted:Wt.func,onDropRejected:Wt.func,onError:Wt.func,validator:Wt.func};var Iw={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function W4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ar(ar({},V4),e),r=t.accept,n=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,d=t.onDragEnter,f=t.onDragLeave,h=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,x=t.onDropRejected,g=t.onFileDialogCancel,S=t.onFileDialogOpen,b=t.useFsAccessApi,y=t.autoFocus,_=t.preventDropOnDocument,C=t.noClick,T=t.noKeyboard,I=t.noDrag,$=t.noDragEventsBubbling,z=t.onError,N=t.validator,V=R.useMemo(function(){return mde(r)},[r]),ce=R.useMemo(function(){return pde(r)},[r]),D=R.useMemo(function(){return typeof S=="function"?S:iR},[S]),U=R.useMemo(function(){return typeof g=="function"?g:iR},[g]),A=R.useRef(null),Q=R.useRef(null),ge=R.useReducer(Rde,Iw),G=Px(ge,2),oe=G[0],ee=G[1],he=oe.isFocused,Y=oe.isFileDialogActive,X=R.useRef(typeof window<"u"&&window.isSecureContext&&b&&hde()),xe=function(){!X.current&&Y&&setTimeout(function(){if(Q.current){var ae=Q.current.files;ae.length||(ee({type:"closeDialog"}),U())}},300)};R.useEffect(function(){return window.addEventListener("focus",xe,!1),function(){window.removeEventListener("focus",xe,!1)}},[Q,Y,U,X]);var me=R.useRef([]),pe=function(ae){A.current&&A.current.contains(ae.target)||(ae.preventDefault(),me.current=[])};R.useEffect(function(){return _&&(document.addEventListener("dragover",rR,!1),document.addEventListener("drop",pe,!1)),function(){_&&(document.removeEventListener("dragover",rR),document.removeEventListener("drop",pe))}},[A,_]),R.useEffect(function(){return!n&&y&&A.current&&A.current.focus(),function(){}},[A,y,n]);var Ae=R.useCallback(function(q){z?z(q):console.error(q)},[z]),He=R.useCallback(function(q){q.preventDefault(),q.persist(),W(q),me.current=[].concat(wde(me.current),[q.target]),nv(q)&&Promise.resolve(i(q)).then(function(ae){if(!(Xg(q)&&!$)){var we=ae.length,$e=we>0&&ude({files:ae,accept:V,minSize:s,maxSize:o,multiple:l,maxFiles:u,validator:N}),Ie=we>0&&!$e;ee({isDragAccept:$e,isDragReject:Ie,isDragActive:!0,type:"setDraggedFiles"}),d&&d(q)}}).catch(function(ae){return Ae(ae)})},[i,d,Ae,$,V,s,o,l,u,N]),Te=R.useCallback(function(q){q.preventDefault(),q.persist(),W(q);var ae=nv(q);if(ae&&q.dataTransfer)try{q.dataTransfer.dropEffect="copy"}catch{}return ae&&h&&h(q),!1},[h,$]),Me=R.useCallback(function(q){q.preventDefault(),q.persist(),W(q);var ae=me.current.filter(function($e){return A.current&&A.current.contains($e)}),we=ae.indexOf(q.target);we!==-1&&ae.splice(we,1),me.current=ae,!(ae.length>0)&&(ee({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),nv(q)&&f&&f(q))},[A,f,$]),Qe=R.useCallback(function(q,ae){var we=[],$e=[];q.forEach(function(Ie){var Nt=M4(Ie,V),or=Px(Nt,2),qt=or[0],Nr=or[1],xt=z4(Ie,s,o),Gr=Px(xt,2),pr=Gr[0],mr=Gr[1],gi=N?N(Ie):null;if(qt&&pr&&!gi)we.push(Ie);else{var vo=[Nr,mr];gi&&(vo=vo.concat(gi)),$e.push({file:Ie,errors:vo.filter(function(La){return La})})}}),(!l&&we.length>1||l&&u>=1&&we.length>u)&&(we.forEach(function(Ie){$e.push({file:Ie,errors:[lde]})}),we.splice(0)),ee({acceptedFiles:we,fileRejections:$e,type:"setFiles"}),m&&m(we,$e,ae),$e.length>0&&x&&x($e,ae),we.length>0&&v&&v(we,ae)},[ee,l,V,s,o,u,m,v,x,N]),Ne=R.useCallback(function(q){q.preventDefault(),q.persist(),W(q),me.current=[],nv(q)&&Promise.resolve(i(q)).then(function(ae){Xg(q)&&!$||Qe(ae,q)}).catch(function(ae){return Ae(ae)}),ee({type:"reset"})},[i,Qe,Ae,$]),Ee=R.useCallback(function(){if(X.current){ee({type:"openDialog"}),D();var q={multiple:l,types:ce};window.showOpenFilePicker(q).then(function(ae){return i(ae)}).then(function(ae){Qe(ae,null),ee({type:"closeDialog"})}).catch(function(ae){vde(ae)?(U(ae),ee({type:"closeDialog"})):gde(ae)?(X.current=!1,Q.current?(Q.current.value=null,Q.current.click()):Ae(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):Ae(ae)});return}Q.current&&(ee({type:"openDialog"}),D(),Q.current.value=null,Q.current.click())},[ee,D,U,b,Qe,Ae,ce,l]),We=R.useCallback(function(q){!A.current||!A.current.isEqualNode(q.target)||(q.key===" "||q.key==="Enter"||q.keyCode===32||q.keyCode===13)&&(q.preventDefault(),Ee())},[A,Ee]),P=R.useCallback(function(){ee({type:"focus"})},[]),le=R.useCallback(function(){ee({type:"blur"})},[]),ue=R.useCallback(function(){C||(fde()?setTimeout(Ee,0):Ee())},[C,Ee]),L=function(ae){return n?null:ae},E=function(ae){return T?null:L(ae)},j=function(ae){return I?null:L(ae)},W=function(ae){$&&ae.stopPropagation()},J=R.useMemo(function(){return function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=q.refKey,we=ae===void 0?"ref":ae,$e=q.role,Ie=q.onKeyDown,Nt=q.onFocus,or=q.onBlur,qt=q.onClick,Nr=q.onDragEnter,xt=q.onDragOver,Gr=q.onDragLeave,pr=q.onDrop,mr=Qg(q,xde);return ar(ar(Ow({onKeyDown:E(So(Ie,We)),onFocus:E(So(Nt,P)),onBlur:E(So(or,le)),onClick:L(So(qt,ue)),onDragEnter:j(So(Nr,He)),onDragOver:j(So(xt,Te)),onDragLeave:j(So(Gr,Me)),onDrop:j(So(pr,Ne)),role:typeof $e=="string"&&$e!==""?$e:"presentation"},we,A),!n&&!T?{tabIndex:0}:{}),mr)}},[A,We,P,le,ue,He,Te,Me,Ne,T,I,n]),H=R.useCallback(function(q){q.stopPropagation()},[]),te=R.useMemo(function(){return function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=q.refKey,we=ae===void 0?"ref":ae,$e=q.onChange,Ie=q.onClick,Nt=Qg(q,_de),or=Ow({accept:V,multiple:l,type:"file",style:{display:"none"},onChange:L(So($e,Ne)),onClick:L(So(Ie,H)),tabIndex:-1},we,Q);return ar(ar({},or),Nt)}},[Q,r,l,Ne,n]);return ar(ar({},oe),{},{isFocused:he&&!n,getRootProps:J,getInputProps:te,rootRef:A,inputRef:Q,open:L(Ee)})}function Rde(e,t){switch(t.type){case"focus":return ar(ar({},e),{},{isFocused:!0});case"blur":return ar(ar({},e),{},{isFocused:!1});case"openDialog":return ar(ar({},Iw),{},{isFileDialogActive:!0});case"closeDialog":return ar(ar({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ar(ar({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ar(ar({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ar({},Iw);default:return e}}function iR(){}function la(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function U4(e){if(!la(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=U4(e[r])}),t}function No(e,t,r={clone:!0}){const n=r.clone?wt({},e):e;return la(e)&&la(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(la(t[i])&&i in e&&la(e[i])?n[i]=No(e[i],t[i],r):r.clone?n[i]=la(t[i])?U4(t[i]):t[i]:n[i]=t[i])}),n}const Ode=Object.freeze(Object.defineProperty({__proto__:null,default:No,isPlainObject:la},Symbol.toStringTag,{value:"Module"}));function Ih(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r{if(n.toString().match(/^(components|slots)$/))r[n]=wt({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=i:!i||!Object.keys(i)?r[n]=o:(r[n]=wt({},o),Object.keys(i).forEach(s=>{r[n][s]=q4(i[s],o[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Lde(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((o,s)=>{if(s){const l=t(s);l!==""&&o.push(l),r&&r[s]&&o.push(r[s])}return o},[]).join(" ")}),n}const aR=e=>e,Nde=()=>{let e=aR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=aR}}},Bde=Nde(),Vde={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Y4(e,t,r="Mui"){const n=Vde[t];return n?`${r}-${n}`:`${Bde.generate(e)}-${t}`}function Wde(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Y4(e,i,r)}),n}function Ude(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Hde=Object.freeze(Object.defineProperty({__proto__:null,default:Ude},Symbol.toStringTag,{value:"Module"}));function X4(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>wt({},r,{[n.key]:n.val}),{})};function Q4(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=Fs(e,Zde),o=qde(t),s=Object.keys(o);function l(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function u(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function d(m,v){const x=s.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(x!==-1&&typeof t[s[x]]=="number"?t[s[x]]:v)-n/100}${r})`}function f(m){return s.indexOf(m)+1`@media (min-width:${fC[e]}px)`};function As(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||lR;return t.reduce((s,l,u)=>(s[o.up(o.keys[u])]=r(t[u]),s),{})}if(typeof t=="object"){const o=n.breakpoints||lR;return Object.keys(t).reduce((s,l)=>{if(Object.keys(o.values||fC).indexOf(l)!==-1){const u=o.up(l);s[u]=r(t[l],l)}else{const u=l;s[u]=t[u]}return s},{})}return r(t)}function Xde(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function Qde(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function uy(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Jg(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=uy(e,r)||n,t&&(i=t(i,n,e)),i}function Pr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=s=>{if(s[t]==null)return null;const l=s[t],u=s.theme,d=uy(u,n)||{};return As(s,l,h=>{let m=Jg(d,i,h);return h===m&&typeof h=="string"&&(m=Jg(d,i,`${t}${h==="default"?"":Nl(h)}`,h)),r===!1?m:{[r]:m}})};return o.propTypes={},o.filterProps=[t],o}function Jde(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const efe={m:"margin",p:"padding"},tfe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},uR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},rfe=Jde(e=>{if(e.length>2)if(uR[e])e=uR[e];else return[e];const[t,r]=e.split(""),n=efe[t],i=tfe[r]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),hC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...hC,...pC];function ip(e,t,r,n){var i;const o=(i=uy(e,t,!1))!=null?i:r;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function J4(e){return ip(e,"spacing",8)}function op(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function nfe(e,t){return r=>e.reduce((n,i)=>(n[i]=op(t,r),n),{})}function ife(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=rfe(r),o=nfe(i,n),s=e[r];return As(e,s,o)}function eD(e,t){const r=J4(e.theme);return Object.keys(e).map(n=>ife(e,t,n,r)).reduce($f,{})}function yr(e){return eD(e,hC)}yr.propTypes={};yr.filterProps=hC;function br(e){return eD(e,pC)}br.propTypes={};br.filterProps=pC;function ofe(e=8){if(e.mui)return e;const t=J4({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function cy(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?$f(i,t[o](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Ii(e){return typeof e!="number"?e:`${e}px solid`}function Ki(e,t){return Pr({prop:e,themeKey:"borders",transform:t})}const sfe=Ki("border",Ii),afe=Ki("borderTop",Ii),lfe=Ki("borderRight",Ii),ufe=Ki("borderBottom",Ii),cfe=Ki("borderLeft",Ii),dfe=Ki("borderColor"),ffe=Ki("borderTopColor"),hfe=Ki("borderRightColor"),pfe=Ki("borderBottomColor"),mfe=Ki("borderLeftColor"),vfe=Ki("outline",Ii),gfe=Ki("outlineColor"),dy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ip(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:op(t,n)});return As(e,e.borderRadius,r)}return null};dy.propTypes={};dy.filterProps=["borderRadius"];cy(sfe,afe,lfe,ufe,cfe,dfe,ffe,hfe,pfe,mfe,dy,vfe,gfe);const fy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ip(e.theme,"spacing",8),r=n=>({gap:op(t,n)});return As(e,e.gap,r)}return null};fy.propTypes={};fy.filterProps=["gap"];const hy=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ip(e.theme,"spacing",8),r=n=>({columnGap:op(t,n)});return As(e,e.columnGap,r)}return null};hy.propTypes={};hy.filterProps=["columnGap"];const py=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ip(e.theme,"spacing",8),r=n=>({rowGap:op(t,n)});return As(e,e.rowGap,r)}return null};py.propTypes={};py.filterProps=["rowGap"];const yfe=Pr({prop:"gridColumn"}),bfe=Pr({prop:"gridRow"}),xfe=Pr({prop:"gridAutoFlow"}),_fe=Pr({prop:"gridAutoColumns"}),wfe=Pr({prop:"gridAutoRows"}),Sfe=Pr({prop:"gridTemplateColumns"}),kfe=Pr({prop:"gridTemplateRows"}),Cfe=Pr({prop:"gridTemplateAreas"}),Tfe=Pr({prop:"gridArea"});cy(fy,hy,py,yfe,bfe,xfe,_fe,wfe,Sfe,kfe,Cfe,Tfe);function bc(e,t){return t==="grey"?t:e}const Efe=Pr({prop:"color",themeKey:"palette",transform:bc}),Pfe=Pr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bc}),Afe=Pr({prop:"backgroundColor",themeKey:"palette",transform:bc});cy(Efe,Pfe,Afe);function ni(e){return e<=1&&e!==0?`${e*100}%`:e}const Rfe=Pr({prop:"width",transform:ni}),mC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||fC[r];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ni(r)}};return As(e,e.maxWidth,t)}return null};mC.filterProps=["maxWidth"];const Ofe=Pr({prop:"minWidth",transform:ni}),Ife=Pr({prop:"height",transform:ni}),$fe=Pr({prop:"maxHeight",transform:ni}),Ffe=Pr({prop:"minHeight",transform:ni});Pr({prop:"size",cssProperty:"width",transform:ni});Pr({prop:"size",cssProperty:"height",transform:ni});const jfe=Pr({prop:"boxSizing"});cy(Rfe,mC,Ofe,Ife,$fe,Ffe,jfe);const sp={border:{themeKey:"borders",transform:Ii},borderTop:{themeKey:"borders",transform:Ii},borderRight:{themeKey:"borders",transform:Ii},borderBottom:{themeKey:"borders",transform:Ii},borderLeft:{themeKey:"borders",transform:Ii},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ii},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dy},color:{themeKey:"palette",transform:bc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bc},backgroundColor:{themeKey:"palette",transform:bc},p:{style:br},pt:{style:br},pr:{style:br},pb:{style:br},pl:{style:br},px:{style:br},py:{style:br},padding:{style:br},paddingTop:{style:br},paddingRight:{style:br},paddingBottom:{style:br},paddingLeft:{style:br},paddingX:{style:br},paddingY:{style:br},paddingInline:{style:br},paddingInlineStart:{style:br},paddingInlineEnd:{style:br},paddingBlock:{style:br},paddingBlockStart:{style:br},paddingBlockEnd:{style:br},m:{style:yr},mt:{style:yr},mr:{style:yr},mb:{style:yr},ml:{style:yr},mx:{style:yr},my:{style:yr},margin:{style:yr},marginTop:{style:yr},marginRight:{style:yr},marginBottom:{style:yr},marginLeft:{style:yr},marginX:{style:yr},marginY:{style:yr},marginInline:{style:yr},marginInlineStart:{style:yr},marginInlineEnd:{style:yr},marginBlock:{style:yr},marginBlockStart:{style:yr},marginBlockEnd:{style:yr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:fy},rowGap:{style:py},columnGap:{style:hy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ni},maxWidth:{style:mC},minWidth:{transform:ni},height:{transform:ni},maxHeight:{transform:ni},minHeight:{transform:ni},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Dfe(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Mfe(e,t){return typeof e=="function"?e(t):e}function tD(){function e(r,n,i,o){const s={[r]:n,theme:i},l=o[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:d,transform:f,style:h}=l;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const m=uy(i,d)||{};return h?h(s):As(s,n,x=>{let g=Jg(m,f,x);return x===g&&typeof x=="string"&&(g=Jg(m,f,`${r}${x==="default"?"":Nl(x)}`,x)),u===!1?g:{[u]:g}})}function t(r){var n;const{sx:i,theme:o={}}=r||{};if(!i)return null;const s=(n=o.unstable_sxConfig)!=null?n:sp;function l(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const f=Xde(o.breakpoints),h=Object.keys(f);let m=f;return Object.keys(d).forEach(v=>{const x=Mfe(d[v],o);if(x!=null)if(typeof x=="object")if(s[v])m=$f(m,e(v,x,o,s));else{const g=As({theme:o},x,S=>({[v]:S}));Dfe(g,x)?m[v]=t({sx:x,theme:o}):m=$f(m,g)}else m=$f(m,e(v,x,o,s))}),Qde(h,m)}return Array.isArray(i)?i.map(l):l(i)}return t}const my=tD();my.filterProps=["sx"];function rD(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const zfe=["breakpoints","palette","spacing","shape"];function vC(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,s=Fs(e,zfe),l=Q4(r),u=ofe(i);let d=No({breakpoints:l,direction:"ltr",components:{},palette:wt({mode:"light"},n),spacing:u,shape:wt({},Yde,o)},s);return d.applyStyles=rD,d=t.reduce((f,h)=>No(f,h),d),d.unstable_sxConfig=wt({},sp,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return my({sx:h,theme:this})},d}const Lfe=Object.freeze(Object.defineProperty({__proto__:null,default:vC,private_createBreakpoints:Q4,unstable_applyStyles:rD},Symbol.toStringTag,{value:"Module"}));let $w;typeof document=="object"&&($w=N3({key:"css",prepend:!0}));function Nfe(e){const{injectFirst:t,children:r}=e;return t&&$w?w.jsx(wH,{value:$w,children:r}):r}function Bfe(e){return e==null||Object.keys(e).length===0}function Vfe(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(Bfe(i)?r:i):t;return w.jsx(Wh,{styles:n})}function Wfe(e,t){return yh(e,t)}const Ufe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Hfe=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Vfe,StyledEngineProvider:Nfe,ThemeContext:jl,css:X3,default:Wfe,internal_processStyles:Ufe,keyframes:Uh},Symbol.toStringTag,{value:"Module"}));function Kfe(e){return Object.keys(e).length===0}function Gfe(e=null){const t=R.useContext(jl);return!t||Kfe(t)?e:t}const Zfe=vC();function qfe(e=Zfe){return Gfe(e)}function Yfe({props:e,name:t,defaultTheme:r,themeId:n}){let i=qfe(r);return n&&(i=i[n]||i),Gde({theme:i,name:t,props:e})}const Xfe=["sx"],Qfe=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:sp;return Object.keys(e).forEach(o=>{i[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Jfe(e){const{sx:t}=e,r=Fs(e,Xfe),{systemProps:n,otherProps:i}=Qfe(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...s)=>{const l=t(...s);return la(l)?wt({},n,l):n}:o=wt({},n,t),wt({},i,{sx:o})}const ehe=Object.freeze(Object.defineProperty({__proto__:null,default:my,extendSxProp:Jfe,unstable_createStyleFunctionSx:tD,unstable_defaultSxConfig:sp},Symbol.toStringTag,{value:"Module"}));function the(e,t){return wt({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ar={},nD={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(nD);var iD=nD.exports;const rhe=Rs(Ide),nhe=Rs(Hde);var oD=iD;Object.defineProperty(Ar,"__esModule",{value:!0});Ar.alpha=uD;Ar.blend=vhe;Ar.colorChannel=void 0;var ihe=Ar.darken=yC;Ar.decomposeColor=Ui;Ar.emphasize=cD;var ohe=Ar.getContrastRatio=dhe;Ar.getLuminance=e0;Ar.hexToRgb=sD;Ar.hslToRgb=lD;var she=Ar.lighten=bC;Ar.private_safeAlpha=fhe;Ar.private_safeColorChannel=void 0;Ar.private_safeDarken=hhe;Ar.private_safeEmphasize=mhe;Ar.private_safeLighten=phe;Ar.recomposeColor=ed;Ar.rgbToHex=che;var cR=oD(rhe),ahe=oD(nhe);function gC(e,t=0,r=1){return(0,ahe.default)(e,t,r)}function sD(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function lhe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Ui(e){if(e.type)return e;if(e.charAt(0)==="#")return Ui(sD(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,cR.default)(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,cR.default)(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}const aD=e=>{const t=Ui(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};Ar.colorChannel=aD;const uhe=(e,t)=>{try{return aD(e)}catch{return e}};Ar.private_safeColorChannel=uhe;function ed(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function che(e){if(e.indexOf("#")===0)return e;const{values:t}=Ui(e);return`#${t.map((r,n)=>lhe(n===3?Math.round(255*r):r)).join("")}`}function lD(e){e=Ui(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),s=(d,f=(d+r/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),ed({type:l,values:u})}function e0(e){e=Ui(e);let t=e.type==="hsl"||e.type==="hsla"?Ui(lD(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function dhe(e,t){const r=e0(e),n=e0(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function uD(e,t){return e=Ui(e),t=gC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ed(e)}function fhe(e,t,r){try{return uD(e,t)}catch{return e}}function yC(e,t){if(e=Ui(e),t=gC(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ed(e)}function hhe(e,t,r){try{return yC(e,t)}catch{return e}}function bC(e,t){if(e=Ui(e),t=gC(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ed(e)}function phe(e,t,r){try{return bC(e,t)}catch{return e}}function cD(e,t=.15){return e0(e)>.5?yC(e,t):bC(e,t)}function mhe(e,t,r){try{return cD(e,t)}catch{return e}}function vhe(e,t,r,n=1){const i=(u,d)=>Math.round((u**(1/n)*(1-r)+d**(1/n)*r)**n),o=Ui(e),s=Ui(t),l=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return ed({type:"rgb",values:l})}const $h={black:"#000",white:"#fff"},ghe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},wu={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Su={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Hd={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ku={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Cu={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Tu={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},yhe=["mode","contrastThreshold","tonalOffset"],dR={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$h.white,default:$h.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ax={text:{primary:$h.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:$h.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function fR(e,t,r,n){const i=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=she(e.main,i):t==="dark"&&(e.dark=ihe(e.main,o)))}function bhe(e="light"){return e==="dark"?{main:ku[200],light:ku[50],dark:ku[400]}:{main:ku[700],light:ku[400],dark:ku[800]}}function xhe(e="light"){return e==="dark"?{main:wu[200],light:wu[50],dark:wu[400]}:{main:wu[500],light:wu[300],dark:wu[700]}}function _he(e="light"){return e==="dark"?{main:Su[500],light:Su[300],dark:Su[700]}:{main:Su[700],light:Su[400],dark:Su[800]}}function whe(e="light"){return e==="dark"?{main:Cu[400],light:Cu[300],dark:Cu[700]}:{main:Cu[700],light:Cu[500],dark:Cu[900]}}function She(e="light"){return e==="dark"?{main:Tu[400],light:Tu[300],dark:Tu[700]}:{main:Tu[800],light:Tu[500],dark:Tu[900]}}function khe(e="light"){return e==="dark"?{main:Hd[400],light:Hd[300],dark:Hd[700]}:{main:"#ed6c02",light:Hd[500],dark:Hd[900]}}function Che(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=Fs(e,yhe),o=e.primary||bhe(t),s=e.secondary||xhe(t),l=e.error||_he(t),u=e.info||whe(t),d=e.success||She(t),f=e.warning||khe(t);function h(g){return ohe(g,Ax.text.primary)>=r?Ax.text.primary:dR.text.primary}const m=({color:g,name:S,mainShade:b=500,lightShade:y=300,darkShade:_=700})=>{if(g=wt({},g),!g.main&&g[b]&&(g.main=g[b]),!g.hasOwnProperty("main"))throw new Error(Ih(11,S?` (${S})`:"",b));if(typeof g.main!="string")throw new Error(Ih(12,S?` (${S})`:"",JSON.stringify(g.main)));return fR(g,"light",y,n),fR(g,"dark",_,n),g.contrastText||(g.contrastText=h(g.main)),g},v={dark:Ax,light:dR};return No(wt({common:wt({},$h),mode:t,primary:m({color:o,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:l,name:"error"}),warning:m({color:f,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:d,name:"success"}),grey:ghe,contrastThreshold:r,getContrastText:h,augmentColor:m,tonalOffset:n},v[t]),i)}const The=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Ehe(e){return Math.round(e*1e5)/1e5}const hR={textTransform:"uppercase"},pR='"Roboto", "Helvetica", "Arial", sans-serif';function Phe(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=pR,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:f,pxToRem:h}=r,m=Fs(r,The),v=i/14,x=h||(b=>`${b/d*v}rem`),g=(b,y,_,C,T)=>wt({fontFamily:n,fontWeight:b,fontSize:x(y),lineHeight:_},n===pR?{letterSpacing:`${Ehe(C/y)}em`}:{},T,f),S={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(l,14,1.75,.4,hR),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,hR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return No(wt({htmlFontSize:d,pxToRem:x,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:u},S),m,{clone:!1})}const Ahe=.2,Rhe=.14,Ohe=.12;function rr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ahe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Rhe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ohe})`].join(",")}const Ihe=["none",rr(0,2,1,-1,0,1,1,0,0,1,3,0),rr(0,3,1,-2,0,2,2,0,0,1,5,0),rr(0,3,3,-2,0,3,4,0,0,1,8,0),rr(0,2,4,-1,0,4,5,0,0,1,10,0),rr(0,3,5,-1,0,5,8,0,0,1,14,0),rr(0,3,5,-1,0,6,10,0,0,1,18,0),rr(0,4,5,-2,0,7,10,1,0,2,16,1),rr(0,5,5,-3,0,8,10,1,0,3,14,2),rr(0,5,6,-3,0,9,12,1,0,3,16,2),rr(0,6,6,-3,0,10,14,1,0,4,18,3),rr(0,6,7,-4,0,11,15,1,0,4,20,3),rr(0,7,8,-4,0,12,17,2,0,5,22,4),rr(0,7,8,-4,0,13,19,2,0,5,24,4),rr(0,7,9,-4,0,14,21,2,0,5,26,4),rr(0,8,9,-5,0,15,22,2,0,6,28,5),rr(0,8,10,-5,0,16,24,2,0,6,30,5),rr(0,8,11,-5,0,17,26,2,0,6,32,5),rr(0,9,11,-5,0,18,28,2,0,7,34,6),rr(0,9,12,-6,0,19,29,2,0,7,36,6),rr(0,10,13,-6,0,20,31,3,0,8,38,7),rr(0,10,13,-6,0,21,33,3,0,8,40,7),rr(0,10,14,-6,0,22,35,3,0,8,42,7),rr(0,11,14,-7,0,23,36,3,0,9,44,8),rr(0,11,15,-7,0,24,38,3,0,9,46,8)],$he=["duration","easing","delay"],Fhe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},jhe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function mR(e){return`${Math.round(e)}ms`}function Dhe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Mhe(e){const t=wt({},Fhe,e.easing),r=wt({},jhe,e.duration);return wt({getAutoHeightDuration:Dhe,create:(i=["all"],o={})=>{const{duration:s=r.standard,easing:l=t.easeInOut,delay:u=0}=o;return Fs(o,$he),(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof s=="string"?s:mR(s)} ${l} ${typeof u=="string"?u:mR(u)}`).join(",")}},e,{easing:t,duration:r})}const zhe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Lhe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Nhe(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,s=Fs(e,Lhe);if(e.vars)throw new Error(Ih(18));const l=Che(n),u=vC(e);let d=No(u,{mixins:the(u.breakpoints,r),palette:l,shadows:Ihe.slice(),typography:Phe(l,o),transitions:Mhe(i),zIndex:wt({},zhe)});return d=No(d,s),d=t.reduce((f,h)=>No(f,h),d),d.unstable_sxConfig=wt({},sp,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return my({sx:h,theme:this})},d}const dD=Nhe(),fD="$$material";function Bhe({props:e,name:t}){return Yfe({props:e,name:t,defaultTheme:dD,themeId:fD})}var ap={};const Vhe=Rs(iH);var Rx={exports:{}},vR;function Whe(){return vR||(vR=1,function(e){function t(r,n){if(r==null)return{};var i={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.indexOf(o)>=0)continue;i[o]=r[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Rx)),Rx.exports}const Uhe=Rs(Hfe),Hhe=Rs(Ode),Khe=Rs(zde),Ghe=Rs(Mde),Zhe=Rs(Lfe),qhe=Rs(ehe);var td=iD;Object.defineProperty(ap,"__esModule",{value:!0});var Yhe=ap.default=upe;ap.shouldForwardProp=Bv;ap.systemDefaultTheme=void 0;var Ai=td(Vhe),Fw=td(Whe()),gR=npe(Uhe),Xhe=Hhe;td(Khe);td(Ghe);var Qhe=td(Zhe),Jhe=td(qhe);const epe=["ownerState"],tpe=["variants"],rpe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hD(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(hD=function(n){return n?r:t})(e)}function npe(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=hD(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function ipe(e){return Object.keys(e).length===0}function ope(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Bv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const spe=ap.systemDefaultTheme=(0,Qhe.default)(),ape=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function iv({defaultTheme:e,theme:t,themeId:r}){return ipe(t)?e:t[r]||t}function lpe(e){return e?(t,r)=>r[e]:null}function Vv(e,t){let{ownerState:r}=t,n=(0,Fw.default)(t,epe);const i=typeof e=="function"?e((0,Ai.default)({ownerState:r},n)):e;if(Array.isArray(i))return i.flatMap(o=>Vv(o,(0,Ai.default)({ownerState:r},n)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let l=(0,Fw.default)(i,tpe);return o.forEach(u=>{let d=!0;typeof u.props=="function"?d=u.props((0,Ai.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(f=>{(r==null?void 0:r[f])!==u.props[f]&&n[f]!==u.props[f]&&(d=!1)}),d&&(Array.isArray(l)||(l=[l]),l.push(typeof u.style=="function"?u.style((0,Ai.default)({ownerState:r},n,r)):u.style))}),l}return i}function upe(e={}){const{themeId:t,defaultTheme:r=spe,rootShouldForwardProp:n=Bv,slotShouldForwardProp:i=Bv}=e,o=s=>(0,Jhe.default)((0,Ai.default)({},s,{theme:iv((0,Ai.default)({},s,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(s,l={})=>{(0,gR.internal_processStyles)(s,T=>T.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:u,slot:d,skipVariantsResolver:f,skipSx:h,overridesResolver:m=lpe(ape(d))}=l,v=(0,Fw.default)(l,rpe),x=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,g=h||!1;let S,b=Bv;d==="Root"||d==="root"?b=n:d?b=i:ope(s)&&(b=void 0);const y=(0,gR.default)(s,(0,Ai.default)({shouldForwardProp:b,label:S},v)),_=T=>typeof T=="function"&&T.__emotion_real!==T||(0,Xhe.isPlainObject)(T)?I=>Vv(T,(0,Ai.default)({},I,{theme:iv({theme:I.theme,defaultTheme:r,themeId:t})})):T,C=(T,...I)=>{let $=_(T);const z=I?I.map(_):[];u&&m&&z.push(ce=>{const D=iv((0,Ai.default)({},ce,{defaultTheme:r,themeId:t}));if(!D.components||!D.components[u]||!D.components[u].styleOverrides)return null;const U=D.components[u].styleOverrides,A={};return Object.entries(U).forEach(([Q,ge])=>{A[Q]=Vv(ge,(0,Ai.default)({},ce,{theme:D}))}),m(ce,A)}),u&&!x&&z.push(ce=>{var D;const U=iv((0,Ai.default)({},ce,{defaultTheme:r,themeId:t})),A=U==null||(D=U.components)==null||(D=D[u])==null?void 0:D.variants;return Vv({variants:A},(0,Ai.default)({},ce,{theme:U}))}),g||z.push(o);const N=z.length-I.length;if(Array.isArray(T)&&N>0){const ce=new Array(N).fill("");$=[...T,...ce],$.raw=[...T.raw,...ce]}const V=y($,...z);return s.muiName&&(V.muiName=s.muiName),V};return y.withConfig&&(C.withConfig=y.withConfig),C}}function cpe(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const dpe=e=>cpe(e)&&e!=="classes",fpe=Yhe({themeId:fD,defaultTheme:dD,rootShouldForwardProp:dpe});function hpe(e){return Y4("MuiSvgIcon",e)}Wde("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ppe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],mpe=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Nl(t)}`,`fontSize${Nl(r)}`]};return Lde(i,hpe,n)},vpe=fpe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Nl(r.color)}`],t[`fontSize${Nl(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,o,s,l,u,d,f,h,m,v,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}[t.fontSize],color:(h=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?h:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),jw=R.forwardRef(function(t,r){const n=Bhe({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:l="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:h,viewBox:m="0 0 24 24"}=n,v=Fs(n,ppe),x=R.isValidElement(i)&&i.type==="svg",g=wt({},n,{color:s,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:x}),S={};f||(S.viewBox=m);const b=mpe(g);return w.jsxs(vpe,wt({as:l,className:Kde(b.root,o),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},S,v,x&&i.props,{ownerState:g,children:[x?i.props.children:i,h?w.jsx("title",{children:h}):null]}))});jw.muiName="SvgIcon";function mo(e,t){function r(n,i){return w.jsx(jw,wt({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=jw.muiName,R.memo(R.forwardRef(r))}const gpe=mo(w.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 11h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1"}),"AddCircleRounded"),ype=mo(w.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"AddOutlined"),pD=mo(w.jsx("path",{d:"M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31c.39-.39.39-1.02 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76"}),"ArrowForwardIosRounded"),bpe=mo(w.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"ClearOutlined"),xpe=mo(w.jsx("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined"),Eu=mo(w.jsx("path",{d:"M8.65 3.35 5.86 6.14c-.32.31-.1.85.35.85H8V13c0 .55.45 1 1 1s1-.45 1-1V6.99h1.79c.45 0 .67-.54.35-.85L9.35 3.35c-.19-.19-.51-.19-.7 0M16 17.01V11c0-.55-.45-1-1-1s-1 .45-1 1v6.01h-1.79c-.45 0-.67.54-.35.85l2.79 2.78c.2.19.51.19.71 0l2.79-2.78c.32-.31.09-.85-.35-.85z"}),"ImportExportRounded"),_pe=mo(w.jsx("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2zm5 9h14l-3.5-4.5-2.5 3.01L11.5 9zM22 4h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 12H6V4h5.17l1.41 1.41.59.59H22z"}),"PermMediaOutlined"),wpe=mo(w.jsx("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z"}),"Phone"),Spe=mo(w.jsx("path",{d:"M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m13-8h-2v-2h-2v2H4V8h16z"}),"Radio"),kpe=mo(w.jsx("path",{d:"M8 24c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1m4 0c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1m4 0c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1M9 10V4c0-1.66 1.34-3 3-3s3 1.34 3 3v6c0 1.66-1.34 3-3 3s-3-1.34-3-3m8.91 0c.61 0 1.09.54 1 1.14-.49 3-2.89 5.34-5.91 5.78V19c0 .55-.45 1-1 1s-1-.45-1-1v-2.08c-3.02-.44-5.42-2.78-5.91-5.78-.1-.6.39-1.14 1-1.14.49 0 .9.36.98.85C7.48 13.21 9.53 15 12 15s4.52-1.79 4.93-4.15c.08-.49.49-.85.98-.85"}),"SettingsVoiceRounded"),Cpe=mo(w.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"WarningOutlined");function mD(e){return e instanceof Error&&e.name==="ZodError"&&"issues"in e&&Array.isArray(e.issues)}var Dw=class extends Error{constructor(t,r){super(t,r);Kb(this,"name");Kb(this,"details");this.name="ZodValidationError",this.details=Tpe(r)}toString(){return this.message}};function Tpe(e){if(e){const t=e.cause;if(mD(t))return t.issues}return[]}var Epe="; ",Ppe=99,vD="Validation error",Ape=": ",Rpe=", or ";function Ope(e,t,r){return t!==null?e.length>0?[t,e].join(r):t:e.length>0?e:vD}var Ipe=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function $pe(e){return e.length===1?e[0].toString():e.reduce((t,r)=>{if(typeof r=="number")return t+"["+r.toString()+"]";if(r.includes('"'))return t+'["'+Fpe(r)+'"]';if(!Ipe.test(r))return t+'["'+r+'"]';const n=t.length===0?"":".";return t+n+r},"")}function Fpe(e){return e.replace(/"/g,'\\"')}function jpe(e){return e.length!==0}function Wv(e){const{issue:t,issueSeparator:r,unionSeparator:n,includePath:i}=e;if(t.code==="invalid_union")return t.unionErrors.reduce((o,s)=>{const l=s.issues.map(u=>Wv({issue:u,issueSeparator:r,unionSeparator:n,includePath:i})).join(r);return o.includes(l)||o.push(l),o},[]).join(n);if(t.code==="invalid_arguments")return[t.message,...t.argumentsError.issues.map(o=>Wv({issue:o,issueSeparator:r,unionSeparator:n,includePath:i}))].join(r);if(t.code==="invalid_return_type")return[t.message,...t.returnTypeError.issues.map(o=>Wv({issue:o,issueSeparator:r,unionSeparator:n,includePath:i}))].join(r);if(i&&jpe(t.path)){if(t.path.length===1){const o=t.path[0];if(typeof o=="number")return`${t.message} at index ${o}`}return`${t.message} at "${$pe(t.path)}"`}return t.message}function Dpe(e,t={}){const{maxIssuesInMessage:r=Ppe,issueSeparator:n=Epe,unionSeparator:i=Rpe,prefixSeparator:o=Ape,prefix:s=vD,includePath:l=!0}=t,u=e.errors,d=u.length===0?e.message:u.slice(0,r).map(h=>Wv({issue:h,issueSeparator:n,unionSeparator:i,includePath:l})).join(n),f=Ope(d,s,o);return new Dw(f,{cause:e})}var Mpe=(e={})=>t=>mD(t)?Dpe(t,e):t instanceof Error?new Dw(t.message,{cause:t}):new Dw("Unknown error");function zpe(e,t={}){return Mpe(t)(e)}var Lpe=new R3;const Npe=({onValidFileTransform:e})=>{const t=R.useCallback(s=>{const l=s.find(u=>u.name.endsWith(".evam"));l!==void 0&&Lpe.loadAsync(l).then(u=>{const d=u.file("v1.configuration/certifiedApps/life.evam.hydras.communication-suite/config.json");d!==null&&d.async("string").then(f=>{const h=(()=>{try{return JSON.parse(f)}catch{return null}})(),m=R_.safeParse(h);m.success?(console.log(l.name),e==null||e(m.data,l.name,l.size)):console.error(zpe(m.error).toString())})})},[e]),{getRootProps:r,getInputProps:n}=W4({noClick:!0,onDrop:t}),i=R.useCallback(s=>{const l=s.currentTarget.files;l&&t(Array.from(l))},[t]),o=R.useRef(null);return w.jsxs(vn,{bg:"grey_1",w:"full",h:"full",py:"90px",...r(),children:[w.jsx("input",{...n()}),w.jsx("input",{ref:o,accept:".EVAM",onChange:i,type:"file",hidden:!0}),w.jsx(q0,{h:"full",children:w.jsxs(Tr,{spacing:"32px",children:[w.jsxs(Tr,{children:[w.jsx(nr,{boxSize:"96px",as:_pe}),w.jsx(oi,{fontSize:"24px",children:"Drag & Drop"}),w.jsx(oi,{fontSize:"24px",children:"or"})]}),w.jsx(cr,{onClick:()=>{var s;(s=o.current)==null||s.click()},borderRadius:"full",bg:"black",color:"white",fontWeight:400,children:"Browse for file"}),w.jsx(Jt,{children:"Supports: .evam"})]})})]})},Bpe=({fileName:e,fileSizeBytes:t,onCancel:r})=>w.jsx(vn,{bg:"grey_1",w:"full",children:w.jsxs(kr,{w:"full",py:"16px",px:"12px",children:[w.jsx(nr,{as:xpe,boxSize:"77px"}),w.jsxs(Tr,{alignItems:"flex-start",w:"full",h:"full",spacing:"8px",children:[w.jsx(Jt,{fontWeight:400,children:e}),w.jsxs(Jt,{color:"grey_0",fontWeight:400,children:[t/1e3," KB"]}),w.jsx(vn,{bg:"evam_orange",h:"16px",w:"full",borderRadius:"8px"})]}),w.jsx(Nk,{ml:"40px",variant:"ghost","aria-label":"cancel file upload",onClick:r,icon:w.jsx(nr,{color:"grey_6",boxSize:"55px",as:bpe})})]})}),Vpe=()=>{const[e,t]=R.useState(void 0),{formState:{isDirty:r},reset:n}=po(),i=Lh();return R.useEffect(()=>{n(e==null?void 0:e.config)},[e]),w.jsx(vn,{children:w.jsxs(Tr,{spacing:"88px",children:[w.jsxs(Tr,{alignItems:"flex-start",spacing:"30px",children:[w.jsx(oi,{children:"Upload your configuration"}),w.jsx(Jt,{children:"Upload your existing configuration file to start editing. Once uploaded, the tool lets you fully customize and optimize the entire feature set of the Vehicle Services Communication Suite."})]}),e===void 0&&!r?w.jsxs(w.Fragment,{children:[w.jsx(Npe,{onValidFileTransform:(o,s,l)=>{t({fileName:s,config:o,fileSizeBytes:l})}}),w.jsx(kr,{w:"full",justifyContent:"right",children:w.jsx(cr,{bg:"black",color:"white",borderRadius:"full",onClick:()=>{i({to:"/create"})},children:"Create new config"})})]}):w.jsxs(Tr,{w:"full",spacing:"32px",children:[w.jsx(Bpe,{...e,onCancel:()=>t(void 0)}),w.jsx(cr,{as:$W,to:"/create",bg:"black",borderRadius:"full",color:"white",rightIcon:w.jsx(nr,{as:pD}),children:"Continue"})]})]})})},Wpe=FS("/_withNavbar/")({component:()=>w.jsx(Vpe,{})}),Upe=["airbus","sepura","motorola"],Hpe=({selectedRadioManufacturer:e,setSelectedRadioManufacturer:t})=>w.jsx(vn,{w:"full",children:w.jsxs(Tr,{alignItems:"flex-start",children:[w.jsx(oi,{children:"Edit general information"}),w.jsx(Ph,{}),w.jsxs(ct,{mt:"44px",children:[w.jsx(dt,{fontWeight:700,fontSize:"16px",children:"Select Tetra Radio Manufacturer"}),w.jsx(co,{h:"56px",placeholder:"Select radio manufacturer",value:e,onChange:({currentTarget:r})=>{t(r.value)},children:Upe.map(r=>w.jsx("option",{value:r,children:hU.capitalize(r)},r))})]})]})}),gD=R.createContext({selectedGridItem:void 0,setSelectedGridItem:()=>{},deselect:()=>{},index:void 0}),yD=({children:e,gridConfig:t,elements:r})=>{const[n,i]=R.useState(void 0),o=n===void 0?void 0:r.at(n),s=R.useMemo(()=>{if(o===void 0||n==null)return;const l=t.columnCount;return{y:Ur.floor(n/l),x:n%l}},[n,t.columnCount]);return w.jsx(gD.Provider,{value:{index:n,selectedGridItem:o,deselect:()=>i(void 0),setSelectedGridItem:i,coordinates:s},children:e})},Bl=()=>{var i,o;const e=R.useContext(gD),{gridConfig:{columnCount:t},elements:r}=po().watch("favourites"),n=R.useMemo(()=>{var l;return e.index===void 0?void 0:r.some(u=>(u==null?void 0:u.type)==="intercom")?"Only one intercom button pair may exist at a time":e.coordinates.x===t-1?"Intercom widget needs two elements of space":((l=e.selectedGridItem)==null?void 0:l.type)==="intercom"||r[e.index+1]===null?void 0:"Intercom widget needs two elements of space"},[e.index,r,(i=e.coordinates)==null?void 0:i.x,t,(o=e.selectedGridItem)==null?void 0:o.type]);return{...e,invalidIntercomPlacementReason:n}},Kpe=({currentValue:e,onChange:t})=>w.jsxs(ct,{mt:2,children:[w.jsx(dt,{children:"Button color"}),w.jsx(co,{h:"56px",value:e,onChange:({currentTarget:{value:r}})=>t(r),children:y3.map(r=>w.jsx("option",{value:r,children:Ur.capitalize(r)},r))})]}),Gpe=["raw","audio","intercom","duplex","simplex","changeTalkGroup","phoneCall","folder","SDSStatus"],yR={audio:"Audio",changeTalkGroup:"Change Talkgroup",duplex:"Duplex",folder:"Folder",raw:"Raw",SDSStatus:"SDS Status",simplex:"Simplex",intercom:"Intercom",phoneCall:"Phone call"},bR=Ur.sortBy(Gpe,e=>e.toLowerCase()),Zpe=e=>{const{setValue:t,watch:r,getValues:n}=po(),{invalidIntercomPlacementReason:i}=Bl(),o=Bl().index,s=r(e.type==="root"?`favourites.elements.${o}`:`favourites.elements.${e.rootSelectedIndex}.parameters.content.elements.${o}`),l=s!==null,u=l?s.type:"",d=R.useMemo(()=>e.type==="root"?bR:bR.filter(h=>h!=="intercom"&&h!=="audio"&&h!=="folder"),[e.type]),{type:f}=e;return w.jsx(co,{h:"56px",placeholder:l?"None":"Select action type",value:u,onChange:h=>{const m=h.currentTarget.value,v=m==="";if(u==="intercom"){const x=n("favourites.elements").map(g=>(g==null?void 0:g.type)==="intercom"?null:g);t("favourites.elements",x)}if(v)t(f==="root"?`favourites.elements.${o}`:`favourites.elements.${e.rootSelectedIndex}.parameters.content.elements.${o}`,null);else switch(m){case"audio":t(`favourites.elements.${o}`,{type:"audio"});break;case"intercom":t(`favourites.elements.${o}`,{type:"intercom",parameters:{side:"left"}}),t(`favourites.elements.${o+1}`,{type:"intercom",parameters:{side:"right"}});break;case"folder":{const x=n("favourites.gridConfig"),g=Array.from({length:x.rowCount*x.columnCount}).map(()=>null);t(`favourites.elements.${o}`,{type:"folder",parameters:{name:[""],content:{gridConfig:x,elements:g}}});break}case"duplex":{t(f==="root"?`favourites.elements.${o}`:`favourites.elements.${e.rootSelectedIndex}.parameters.content.elements.${o}`,{type:"duplex",parameters:{name:"",buttonColor:"grey",recipientType:"",recipientNumber:""}});break}case"simplex":{t(f==="root"?`favourites.elements.${o}`:`favourites.elements.${e.rootSelectedIndex}.parameters.content.elements.${o}`,{type:"simplex",parameters:{name:"",buttonColor:"grey",recipientType:"",recipientNumber:""}});break}case"changeTalkGroup":{t(f==="root"?`favourites.elements.${o}`:`favourites.elements.${e.rootSelectedIndex}.parameters.content.elements.${o}`,{type:"changeTalkGroup",parameters:{name:["",""],buttonColor:"grey",value:""}});break}case"SDSStatus":{t(f==="root"?`favourites.elements.${o}`:`favourites.elements.${e.rootSelectedIndex}.parameters.content.elements.${o}`,{type:"SDSStatus",parameters:{name:["",""],recipientNumber:"",recipientType:"issi",buttonColor:"grey",statusValue:NaN}});break}case"raw":{t(f==="root"?`favourites.elements.${o}`:`favourites.elements.${e.rootSelectedIndex}.parameters.content.elements.${o}`,{type:"raw",parameters:{name:["",""],value:[""],buttonColor:"grey"}});break}case"phoneCall":{t(f==="root"?`favourites.elements.${o}`:`favourites.elements.${e.rootSelectedIndex}.parameters.content.elements.${o}`,{type:"phoneCall",parameters:{name:"",recipientNumber:"",buttonColor:"grey"}});break}}},children:d.map(h=>i!==void 0&&h==="intercom"&&u!=="intercom"?w.jsxs("option",{disabled:!0,value:h,children:[yR[h]," (",i,")"]},h):w.jsx("option",{value:h,children:yR[h]},h))})},qpe=({selectedGridItem:e,onChange:t,...r})=>{const{type:n}=r,{index:i}=Bl();if(i===void 0)return null;switch(e.type){case"duplex":return w.jsxs(Tr,{children:[w.jsxs(ct,{children:[w.jsx(dt,{children:"Name"}),w.jsx(Ft,{h:"56px",value:e.parameters.name,onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.name`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.name`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Recipient number"}),w.jsx(Ft,{h:"56px",value:e.parameters.recipientNumber,onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.recipientNumber`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.recipientNumber`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Recipient type"}),w.jsx(co,{h:"56px",value:e.parameters.recipientType,onChange:o=>{const s=o.currentTarget.value;t(n==="root"?`favourites.elements.${i}.parameters.recipientType`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.recipientType`,s)},children:["issi","msisdn"].map(o=>w.jsx("option",{children:o},o))})]})]});case"simplex":return w.jsxs(Tr,{children:[w.jsxs(ct,{children:[w.jsx(dt,{children:"Name"}),w.jsx(Ft,{h:"56px",value:e.parameters.name,onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.name`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.name`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Recipient number"}),w.jsx(Ft,{h:"56px",value:e.parameters.recipientNumber,onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.recipientNumber`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.recipientNumber`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Recipient type"}),w.jsx(co,{h:"56px",value:e.parameters.recipientType,onChange:o=>{const s=o.currentTarget.value;t(n==="root"?`favourites.elements.${i}.parameters.recipientType`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.recipientType`,s)},children:["issi","msisdn"].map(o=>w.jsx("option",{children:o},o))})]})]});case"SDSStatus":return w.jsxs(Tr,{children:[w.jsxs(ct,{children:[w.jsx(dt,{children:"Name (line 1)"}),w.jsx(Ft,{h:"56px",value:e.parameters.name[0],onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.name.0`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.name.0`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Name (line 2)"}),w.jsx(Ft,{h:"56px",value:e.parameters.name[1],onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.name.1`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.name.1`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Recipient number"}),w.jsx(Ft,{h:"56px",value:e.parameters.recipientNumber,onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.recipientNumber`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.recipientNumber`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Recipient type"}),w.jsx(co,{h:"56px",value:e.parameters.recipientType,onChange:o=>{const s=o.currentTarget.value;t(n==="root"?`favourites.elements.${i}.parameters.recipientType`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.recipientType`,s)},children:["issi","msisdn"].map(o=>w.jsx("option",{children:o},o))})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Status value"}),w.jsx(Ft,{placeholder:"Type status code",value:isNaN(e.parameters.statusValue)?"":`${e.parameters.statusValue}`,onChange:o=>{if(o.currentTarget.value===""){t(n==="root"?`favourites.elements.${i}.parameters.statusValue`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.statusValue`,NaN);return}const s=parseInt(o.currentTarget.value),l=Ce.number().positive().int().safeParse(s);l.success&&t(n==="root"?`favourites.elements.${i}.parameters.statusValue`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.statusValue`,l.data)}})]})]});case"raw":return w.jsxs(Tr,{children:[w.jsxs(ct,{children:[w.jsx(dt,{children:"Name (line 1)"}),w.jsx(Ft,{h:"56px",value:e.parameters.name[0],onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.name.0`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.name.0`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Name (line 2)"}),w.jsx(Ft,{h:"56px",value:e.parameters.name[1],onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.name.1`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.name.1`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Value"}),w.jsx(Ft,{h:"56px",value:e.parameters.value[0],onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.value.0`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.value.0`,o)})]})]});case"changeTalkGroup":return w.jsxs(Tr,{children:[w.jsxs(ct,{children:[w.jsx(dt,{children:"Name (line 1)"}),w.jsx(Ft,{h:"56px",value:e.parameters.name[0],onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.name.0`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.name.0`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Name (line 2)"}),w.jsx(Ft,{h:"56px",value:e.parameters.name[1],onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.name.1`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.name.1`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Value"}),w.jsx(Ft,{h:"56px",value:e.parameters.value,onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.value`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.value`,o)})]})]});case"phoneCall":return w.jsxs(Tr,{children:[w.jsxs(ct,{children:[w.jsx(dt,{children:"Name"}),w.jsx(Ft,{h:"56px",value:e.parameters.name,onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.name`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.name`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Recipient number"}),w.jsx(Ft,{h:"56px",value:e.parameters.recipientNumber,onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.recipientNumber`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.recipientNumber`,o)})]})]});case"folder":return w.jsxs(w.Fragment,{children:[w.jsxs(ct,{children:[w.jsx(dt,{children:"Name (line 1)"}),w.jsx(Ft,{h:"56px",value:e.parameters.name[0]||"",onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.name.0`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.name.0`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Name (line 2)"}),w.jsx(Ft,{h:"56px",value:e.parameters.name[1]||"",onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.name.1`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.name.1`,o)})]}),w.jsxs(ct,{children:[w.jsx(dt,{children:"Name (line 3)"}),w.jsx(Ft,{h:"56px",value:e.parameters.name[2]||"",onChange:({currentTarget:{value:o}})=>t(n==="root"?`favourites.elements.${i}.parameters.name.2`:`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements.${i}.parameters.name.2`,o)})]})]});case"intercom":return null;case"audio":return null}},Ype=({gridItemSelection:e,...t})=>{const{index:r,selectedGridItem:n}=Bl(),{setValue:i}=po();return r===void 0?null:w.jsxs(ct,{children:[w.jsx(dt,{children:"Action type"}),w.jsx(Zpe,{...t}),n==null?null:w.jsx(qpe,{selectedGridItem:n,onChange:i,...t})]})},xR=e=>{const{selectedGridItem:t,coordinates:r,index:n}=Bl(),{setValue:i}=po();return t===void 0?w.jsx(q0,{w:"full",h:"full",children:w.jsx(oi,{fontWeight:700,fontSize:"16px",children:"Select and element to start editing"})}):w.jsxs(vn,{children:[w.jsxs(Jt,{children:[w.jsx("b",{children:"Selected element: "}),r.x+1,":",r.y+1]}),w.jsx(Ype,{gridItemSelection:t,...e}),t!==null&&t.type!=="audio"&&t.type!=="intercom"&&t.type!=="folder"?w.jsx(Kpe,{currentValue:t.parameters.buttonColor,onChange:o=>{i(e.type==="root"?`favourites.elements.${n}.parameters.buttonColor`:`favourites.elements.${e.rootSelectedIndex}.parameters.content.elements.${n}.parameters.buttonColor`,o)}}):null]})},Xpe=[{columnCount:4,rowCount:4},{columnCount:3,rowCount:4},{columnCount:3,rowCount:3}],_R=e=>`${e.columnCount} by ${e.rowCount}`,Ja={w:"full",h:"full",py:"8px",px:"4px"},Qpe={color:"white",fontSize:"22px"},Pu=e=>w.jsx(Jt,{...Qpe,...e}),Jpe=({element:e,isSelected:t})=>{if(e===null)return w.jsx(I4,{label:"Click to add a button",children:w.jsx(Nk,{border:t?"none":"1px solid #34ADB4","aria-label":"click to add button",...Ja,icon:w.jsx(nr,{as:ype,color:"#B4B9BE",boxSize:"45px"}),variant:"outline"})});if(e.type==="duplex"||e.type==="simplex"||e.type==="phoneCall"){const{button:r,chip:n}=so(e.parameters.buttonColor),{icon:i,text:o}=R.useMemo(()=>e.type==="duplex"||e.type==="simplex"?{icon:Spe,text:e.type==="duplex"?"Duplex":"Simplex"}:{icon:wpe,text:"Phone"},[e.type]);return w.jsxs(cr,{...Ja,bg:r.color,border:t?"none":`1px solid ${r.outlineColor}`,flexDir:"column",h:"full",justifyContent:"center",alignItems:"center",children:[w.jsx(R4,{w:"full",borderRadius:"48px",bg:n.color,border:`1px solid ${n.outlineColor}`,children:w.jsxs(kr,{w:"full",py:"4px",justifyContent:"center",children:[w.jsx(nr,{as:i,color:"white",boxSize:"20px"}),w.jsx(Pu,{fontWeight:"bold",fontSize:"18px",children:o})]})}),w.jsx(Pu,{fontWeight:"bold",children:e.parameters.name})]})}if(e.type==="folder")return w.jsx(cr,{...Ja,bg:"black",border:t?"none":"1px solid white",pr:"12px",rightIcon:w.jsx(nr,{top:0,bg:"black",right:0,pos:"absolute",as:pD,boxSize:"38px",color:"white",h:"full"}),children:w.jsxs(Pu,{fontWeight:400,textAlign:"left",w:"full",children:[e.parameters.name[0],e.parameters.name[1]!==""?w.jsx("br",{}):null,e.parameters.name[1],e.parameters.name[2]!==""?w.jsx("br",{}):null,e.parameters.name[2]]})});if(e.type==="changeTalkGroup"){const{button:r}=so(e.parameters.buttonColor);return w.jsx(cr,{...Ja,fontWeight:"bold",bg:r.color,border:t?"none":`1px solid ${r.outlineColor}`,children:w.jsxs(Pu,{children:[e.parameters.name[0],w.jsx("br",{}),e.parameters.name[1]]})})}if(e.type==="raw"){const{button:r}=so(e.parameters.buttonColor);return w.jsx(cr,{...Ja,bg:r.color,border:t?"none":`1px solid ${r.outlineColor}`,children:w.jsxs(Pu,{children:[e.parameters.name[0],w.jsx("br",{}),e.parameters.name[1]]})})}if(e.type==="SDSStatus"){const{button:r}=so(e.parameters.buttonColor);return w.jsx(cr,{...Ja,bg:r.color,border:t?"none":`1px solid ${r.outlineColor}`,children:w.jsxs(Pu,{children:[e.parameters.name[0],w.jsx("br",{}),e.parameters.name[1]]})})}if(e.type==="intercom"){const n=e.parameters.side==="right"?"Off":"On";return w.jsx(w.Fragment,{children:w.jsx(vn,{h:"full",p:"8px",bg:"#17181B",pos:"relative",children:w.jsxs(q0,{borderRadius:"10px",flexDirection:"column",bg:"#3C4043",w:"full",h:"full",border:"1px solid #80868B",children:[w.jsx(Jt,{color:"evam_orange",fontSize:"28px",children:n}),w.jsx(Jt,{color:"white",children:"Intercom"})]})})})}if(e.type==="audio")return w.jsx(cr,{bg:"#3B3D40",...Ja,children:w.jsxs(Tr,{children:[w.jsx(nr,{color:"white",as:kpe}),w.jsx(Jt,{color:"white",children:"Audio options"})]})})},wR=({gridConfig:e,elements:t})=>{const{index:r,setSelectedGridItem:n}=Bl();return w.jsx(Eh,{h:"420px",w:"full",gap:"16px",columns:e.columnCount,templateRows:`repeat(${e.rowCount},1fr)`,templateColumns:`repeat(${e.columnCount},1fr)`,children:Array.from({length:e.columnCount*e.rowCount}).map((i,o)=>{const s=t.at(o);if(s===void 0)return null;const l=o===r;return w.jsx(Vr,{onClick:()=>{n(o)},minW:0,minH:0,borderRadius:"8px",overflow:"hidden",cursor:"pointer",outline:l?"5px solid":"none",outlineColor:l?"primary_orange":"none",boxShadow:s!==null||l?"5px 5px 25px 0px #00000080":void 0,children:w.jsx(Jpe,{element:s,isSelected:l})},o)})})},SR=({onUpdate:e,config:t,...r})=>{const{type:n}=r,{watch:i}=po(),o=i(n==="root"?"favourites.gridConfig":`favourites.elements.${r.rootSelectedIndex}.parameters.content.gridConfig`);return w.jsx(co,{h:"56px",value:o?_R(o):void 0,placeholder:n==="root"?"Select grid size":void 0,onChange:s=>{const l=s.currentTarget.value;if(l===""){e(n==="root"?"favourites.elements":`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements`,[]),e(n==="root"?"favourites.gridConfig":`favourites.elements.${r.rootSelectedIndex}.parameters.content.gridConfig`,{columnCount:4,rowCount:4});return}const[u,d]=l.trim().split("by").map(h=>parseInt(h));e(n==="root"?"favourites.gridConfig":`favourites.elements.${r.rootSelectedIndex}.parameters.content.gridConfig`,{columnCount:u,rowCount:d});const f=Array.from({length:d*u}).map(()=>null);e(n==="root"?"favourites.elements":`favourites.elements.${r.rootSelectedIndex}.parameters.content.elements`,f)},children:Xpe.map(s=>{const l=_R(s);return w.jsx("option",{children:l},l)})})},eme=({onUpdate:e,config:t})=>{const{deselect:r,selectedGridItem:n,index:i}=Bl(),o=R.useRef(null),s=n&&n.type==="folder";return Eae({ref:o,handler:r}),w.jsx(vn,{w:"full",h:"full",children:w.jsxs(vn,{h:"full",children:[w.jsxs(Tr,{alignItems:"flex-start",w:"full",h:"full",children:[w.jsx(oi,{children:"Edit favourites"}),w.jsx(Ph,{}),w.jsxs(kr,{mt:"24px",fontSize:"16px",children:[w.jsx(nr,{as:Cpe,color:"primary_orange"}),w.jsx(Jt,{fontWeight:700,color:"#3C4043",children:"Warning! Changing the grid size will reset all your favorites"})]})]}),w.jsxs(Tr,{alignItems:"flex-start",ref:s?o:void 0,children:[w.jsx(Jt,{my:"16px",fontWeight:700,children:"Grid size"}),w.jsx(SR,{type:"root",config:t,onUpdate:e}),w.jsxs(vn,{w:"full",h:"full",mt:"66px",children:[w.jsx(oi,{fontSize:"16px",children:"Click to edit"}),t.gridConfig!==void 0&&t.elements.length===t.gridConfig.columnCount*t.gridConfig.rowCount?w.jsxs(Eh,{w:"full",columns:2,gap:"44px",mt:"24px",ref:s?void 0:o,children:[w.jsx(Vr,{children:w.jsx(wR,{gridConfig:t.gridConfig,elements:t.elements})}),w.jsx(Vr,{children:w.jsx(xR,{type:"root"})})]}):null,s?w.jsx(yD,{...n.parameters.content,children:t.gridConfig!==void 0&&n.parameters.content.elements.length===n.parameters.content.gridConfig.columnCount*n.parameters.content.gridConfig.rowCount?w.jsxs(w.Fragment,{children:[w.jsxs(oi,{mt:"84px",children:['Edit folder "',n.parameters.name.join(" "),'"']}),w.jsx(Ph,{mb:"40px"}),w.jsx(Jt,{fontWeight:700,color:"#3C4043",children:"Grid size"}),w.jsx(SR,{rootSelectedIndex:i,type:"folder",config:n.parameters.content,onUpdate:e}),w.jsx(oi,{fontSize:"16px",mt:"66px",children:"Click to edit"}),w.jsxs(Eh,{w:"full",columns:2,gap:"44px",mt:"24px",children:[w.jsx(Vr,{children:w.jsx(wR,{gridConfig:n.parameters.content.gridConfig,elements:n.parameters.content.elements})}),w.jsx(Vr,{children:w.jsx(xR,{type:"folder",rootSelectedIndex:i})})]})]}):null}):null]})]})]})})},as={name:"",phone:{recipientNumber:""},simplex:{recipientNumber:"",recipientType:""},raw:{fieldName:"",value:[""]},duplex:{recipientType:"",recipientNumber:""},status:{recipientNumber:"",statusValue:NaN,recipientType:""}},tme=({onSubmit:e,onCancel:t,contactValue:r,isNewContact:n})=>{var s,l,u,d,f,h,m,v,x,g,S;const[i,o]=R.useState(r);return w.jsxs(Tr,{children:[w.jsxs(kr,{w:"full",justifyContent:"space-between",children:[w.jsxs(oi,{children:[n?"New":"Edit"," contact"]}),w.jsxs(kr,{children:[w.jsx(cr,{color:"black",bg:"white",borderRadius:"full",border:"1px solid black",w:"140px",fontWeight:400,onClick:t,children:"Cancel"}),w.jsx(cr,{w:"140px",bg:"black",color:"white",borderRadius:"full",onClick:()=>{e({simplex:i.simplex===null||i.simplex.recipientNumber===""||i.simplex.recipientType===""?null:i.simplex,duplex:i.duplex===null||i.duplex.recipientNumber===""||i.duplex.recipientType===""?null:i.duplex,raw:i.raw===null||i.raw.value[0]===""?null:i.raw,status:i.status===null||i.status.recipientNumber===""||i.status.recipientType===""||isNaN(i.status.statusValue)?null:i.status,phone:i.phone===null||i.phone.recipientNumber===""?null:i.phone,name:i.name})},isDisabled:i.name==="",children:"Save contact"})]})]}),w.jsx(kr,{w:"full",alignItems:"flex-start",children:w.jsxs(ct,{w:"calc(50% - 35px)",children:[w.jsx(dt,{children:"Contact Name*"}),w.jsx(Ft,{h:"56px",value:i.name||"",placeholder:"Type contact name",onChange:b=>{const y=b.currentTarget.value;o(_=>({..._,name:y}))}})]})}),w.jsxs(Eh,{columns:2,w:"full",h:"full",columnGap:"70px",gridAutoRows:"1fr",children:[w.jsx(Vr,{children:w.jsxs(zk,{bg:"white",pl:0,children:[w.jsx(Mk,{color:"black"}),"Only fill in the contact details you need. Complete as many or as few fields as you likeā€”it's up to you!"]})}),w.jsx(Vr,{}),w.jsx(Vr,{children:w.jsxs(ct,{children:[w.jsx(dt,{children:"Telephone call"}),w.jsx(Ft,{h:"56px",value:((s=i.phone)==null?void 0:s.recipientNumber)||"",placeholder:"Type phone number",onChange:b=>{const y=b.currentTarget.value;o(_=>({..._,phone:{recipientNumber:y}}))}})]})}),w.jsx(Vr,{}),w.jsx(Vr,{children:w.jsxs(ct,{children:[w.jsx(dt,{children:"Tetra Duplex Call"}),w.jsx(co,{h:"56px",placeholder:"Select recipient type",value:((l=i.duplex)==null?void 0:l.recipientType)||"",onChange:b=>{const y=b.currentTarget.value;o(_=>{var C;return{..._,duplex:{recipientType:y,recipientNumber:((C=_.duplex)==null?void 0:C.recipientNumber)||""}}})},children:["issi","msisdn"].map(b=>w.jsx("option",{children:b},b))})]})}),w.jsx(Vr,{children:w.jsxs(ct,{children:[w.jsx(dt,{color:"white",userSelect:"none",children:"Tetra Duplex Call"}),w.jsx(Ft,{h:"56px",value:((u=i.duplex)==null?void 0:u.recipientNumber)||"",placeholder:"Select recipient number",onChange:b=>{const y=b.currentTarget.value;o(_=>{var C;return{..._,duplex:{recipientNumber:y,recipientType:((C=_.duplex)==null?void 0:C.recipientType)||""}}})}})]})}),w.jsx(Vr,{children:w.jsxs(ct,{children:[w.jsx(dt,{children:"Tetra Simplex Call"}),w.jsx(co,{h:"56px",placeholder:"Select recipient type",value:((d=i.simplex)==null?void 0:d.recipientType)||"",onChange:b=>{const y=b.currentTarget.value;o(_=>{var C;return{..._,simplex:{recipientType:y,recipientNumber:((C=_.simplex)==null?void 0:C.recipientNumber)||""}}})},children:["issi","msisdn"].map(b=>w.jsx("option",{children:b},b))})]})}),w.jsx(Vr,{children:w.jsxs(ct,{children:[w.jsx(dt,{color:"white",userSelect:"none",children:"Tetra Duplex Call"}),w.jsx(Ft,{h:"56px",value:((f=i.simplex)==null?void 0:f.recipientNumber)||"",placeholder:"Select recipient number",onChange:b=>{const y=b.currentTarget.value;o(_=>{var C;return{..._,simplex:{recipientNumber:y,recipientType:((C=_.simplex)==null?void 0:C.recipientType)||""}}})}})]})}),w.jsxs(Vr,{children:[w.jsxs(ct,{children:[w.jsx(dt,{children:"Tetra Status"}),w.jsx(co,{h:"56px",placeholder:"Select recipient type",value:((h=i.status)==null?void 0:h.recipientType)||"",onChange:b=>{const y=b.currentTarget.value;o(_=>{var C,T;return{..._,status:{recipientType:y,statusValue:((C=_.status)==null?void 0:C.statusValue)||as.status.statusValue,recipientNumber:((T=_.status)==null?void 0:T.recipientNumber)||as.status.recipientNumber}}})},children:["issi","msisdn"].map(b=>w.jsx("option",{children:b},b))})]}),w.jsxs(ct,{children:[w.jsx(dt,{color:"white",userSelect:"none",children:"Tetra Duplex Call"}),w.jsx(Ft,{h:"56px",value:((m=i.status)==null?void 0:m.statusValue)===void 0||isNaN(i.status.statusValue)?"":(v=i.status)==null?void 0:v.statusValue,placeholder:"Type status code",onChange:b=>{const y=b.currentTarget.value;o(_=>{var C,T;return{..._,status:{statusValue:parseInt(y),recipientType:((C=_.status)==null?void 0:C.recipientType)||as.status.recipientType,recipientNumber:((T=_.status)==null?void 0:T.recipientNumber)||as.status.recipientNumber}}})}})]})]}),w.jsx(Vr,{children:w.jsxs(ct,{children:[w.jsx(dt,{color:"white",userSelect:"none",children:"Tetra Duplex Call"}),w.jsx(Ft,{h:"56px",value:((x=i.status)==null?void 0:x.recipientNumber)||"",placeholder:"Select recipient number",onChange:b=>{const y=b.currentTarget.value;o(_=>{var C,T;return{..._,status:{recipientNumber:y,recipientType:((C=_.status)==null?void 0:C.recipientType)||as.status.recipientType,statusValue:((T=_.status)==null?void 0:T.statusValue)||as.status.statusValue}}})}})]})}),w.jsx(Vr,{mt:"56px",children:w.jsxs(ct,{children:[w.jsx(dt,{children:"Tetra raw command"}),w.jsx(Ft,{h:"56px",value:((g=i.raw)==null?void 0:g.fieldName)||"",placeholder:"Type field name",onChange:b=>{const y=b.currentTarget.value;o(_=>{var C;return{..._,raw:{fieldName:y,value:((C=_.raw)==null?void 0:C.value)||as.raw.value}}})}})]})}),w.jsx(Vr,{mt:"56px",children:w.jsxs(ct,{children:[w.jsx(dt,{color:"white",userSelect:"none",children:"Tetra Duplex Call"}),w.jsx(Ft,{h:"56px",value:((S=i.raw)==null?void 0:S.value[0])||"",placeholder:"Select raw command",onChange:b=>{const y=b.currentTarget.value;o(_=>{var C;return{..._,raw:{value:[y],fieldName:((C=_.raw)==null?void 0:C.fieldName)||as.raw.fieldName}}})}})]})})]})]})},rme=()=>{const{control:e}=po(),{fields:t,remove:r,append:n,update:i}=GW({control:e,name:"contacts"}),[o,s]=R.useState([]),[l,u]=R.useState("name"),[d,f]=R.useState("asc"),h=C=>{C===l?f(d==="asc"?"desc":"asc"):u(C)},m=C=>()=>h(C),v=R.useMemo(()=>Ur.orderBy(t,(C,T)=>{var I,$,z,N,V;if(!C.id)throw Error();switch(l){case"phone":return((I=C.phone)==null?void 0:I.recipientNumber)||`${T}`;case"name":return C.name;case"simplex":return(($=C.simplex)==null?void 0:$.recipientNumber)||`${T}`;case"duplex":return((z=C.duplex)==null?void 0:z.recipientNumber)||`${T}`;case"raw":return((N=C.raw)==null?void 0:N.value)||`${T}`;case"status":return((V=C.status)==null?void 0:V.recipientNumber)||`${T}`}},[d]),[t,l,d]),{onClose:x,onOpen:g,isOpen:S}=ww(),[b,y]=R.useState(void 0),_=()=>{r(o),s([])};if(b!==void 0){const C=!t.some(T=>Ur.isEqual(T,b));return w.jsx(tme,{onCancel:()=>y(void 0),onSubmit:T=>{if(C)n(T);else{const I=t.findIndex($=>Ur.isEqual(b,$));i(I,T)}y(void 0)},contactValue:b,isNewContact:C})}return w.jsxs(w.Fragment,{children:[w.jsxs(Hg,{isOpen:S,onClose:x,children:[w.jsx(Zg,{}),w.jsxs(Kg,{children:[w.jsx(Gg,{children:"Remove contacts"}),w.jsx(qg,{children:w.jsxs(Jt,{children:["You will ",w.jsx("b",{children:"remove the selected contacts permanently."})," You"," ",w.jsx("b",{children:"can not undo"})," this action."]})}),w.jsx(lC,{children:w.jsxs(kr,{w:"full",children:[w.jsx(cr,{borderRadius:"full",w:"full",bg:"#000000",color:"#FFFFFF",onClick:x,children:"Cancel"}),w.jsxs(cr,{borderRadius:"full",w:"full",bg:"#E20A0A",color:"#FFFFFF",onClick:()=>{_(),x()},children:["Remove contact",o.length>1?"s":null]})]})})]})]}),w.jsxs(kr,{w:"full",justifyContent:"space-between",children:[w.jsx(oi,{children:"Edit contacts"}),w.jsx(cr,{bg:"black",color:"white",borderRadius:"full",leftIcon:w.jsx(nr,{as:gpe,fill:"white",boxSize:"18px"}),onClick:()=>y(as),children:"New contact"})]}),w.jsx(Ph,{pt:"16px"}),w.jsx(cr,{mt:"40px",color:"black",bg:"white",borderRadius:"full",border:"1px solid black",w:"140px",fontWeight:400,onClick:g,isDisabled:o.length===0,children:"Delete"}),w.jsx(kr,{w:"full",children:w.jsx(cce,{mt:"16px",w:"full",children:w.jsxs(_4,{children:[w.jsx(uce,{children:w.jsxs(Z5,{children:[w.jsx(Qa,{children:w.jsx(hw,{isChecked:o.length===t.length&&t.length!==0,onChange:({currentTarget:{checked:C}})=>s(C?t.map((T,I)=>I):[])})}),w.jsx(Qa,{onClick:m("name"),children:w.jsxs(kr,{children:[w.jsx(nr,{cursor:"pointer",as:Eu,boxSize:"24px"}),w.jsx(Jt,{children:"Contact Name"})]})}),w.jsx(Qa,{onClick:m("simplex"),children:w.jsxs(kr,{children:[w.jsx(nr,{as:Eu,boxSize:"24px",cursor:"pointer"}),w.jsx(Jt,{children:"Simplex"})]})}),w.jsx(Qa,{onClick:m("duplex"),children:w.jsxs(kr,{children:[w.jsx(nr,{as:Eu,boxSize:"24px",cursor:"pointer"}),w.jsx(Jt,{children:"Duplex"})]})}),w.jsx(Qa,{onClick:m("phone"),children:w.jsxs(kr,{children:[w.jsx(nr,{as:Eu,boxSize:"24px",cursor:"pointer"}),w.jsx(Jt,{children:"Telephone"})]})}),w.jsx(Qa,{onClick:m("status"),children:w.jsxs(kr,{children:[w.jsx(nr,{as:Eu,boxSize:"24px",cursor:"pointer"}),w.jsx(Jt,{children:"Status"})]})}),w.jsx(Qa,{onClick:m("raw"),children:w.jsxs(kr,{children:[w.jsx(nr,{as:Eu,boxSize:"24px",cursor:"pointer"}),w.jsx(Jt,{children:"Raw"})]})})]})}),w.jsx(dce,{children:v.map(C=>{var $,z,N,V,ce;const T=t.indexOf(C),I=o.includes(T);return w.jsxs(Z5,{cursor:"pointer",bg:I?"#C8CDD2":"#E3E8EC",onClick:D=>{(D.target.tagName==="TD"||D.target.tagName==="TR")&&y(C)},children:[w.jsx(Xa,{children:w.jsx(hw,{isChecked:I,onChange:D=>{D.stopPropagation(),D.currentTarget.checked?s(U=>Ur.uniq([...U,T])):s(U=>U.filter(A=>A!==T))}})}),w.jsx(Xa,{children:C.name}),w.jsx(Xa,{children:(($=C.simplex)==null?void 0:$.recipientNumber)||""}),w.jsx(Xa,{children:((z=C.duplex)==null?void 0:z.recipientNumber)||""}),w.jsx(Xa,{children:((N=C.phone)==null?void 0:N.recipientNumber)||""}),w.jsx(Xa,{children:((V=C.status)==null?void 0:V.recipientNumber)||""}),w.jsx(Xa,{children:((ce=C.raw)==null?void 0:ce.value)||""})]},C.id)})})]})})})]})},nme=()=>{const{setValue:e,watch:t}=po(),r=t("general.radioOem");return w.jsx(Q0,{children:w.jsx(Hpe,{selectedRadioManufacturer:r,setSelectedRadioManufacturer:n=>e("general.radioOem",n)})})},ime=()=>{const{setValue:e,watch:t}=po(),r=t("favourites");return w.jsx(Q0,{children:w.jsx(yD,{...r,children:w.jsx(eme,{onUpdate:e,config:r})})})},ome=()=>w.jsx(Q0,{children:w.jsx(rme,{})}),sme=FS("/_withNavbar/create")({component:()=>{const e=R.useRef(null),t=ace(e),r=Lh(),{exit:n,formState:{submitCount:i},manualSubmit:o}=po();R.useEffect(()=>{console.log(i)},[i]);const{onClose:s,onOpen:l,isOpen:u}=ww(),{onClose:d,onOpen:f,isOpen:h}=ww();return _g?w.jsxs(w.Fragment,{children:[w.jsxs(Hg,{isOpen:h,onClose:d,children:[w.jsx(Zg,{}),w.jsxs(Kg,{children:[w.jsx(Gg,{children:w.jsx(y4,{})}),w.jsx(qg,{children:w.jsxs(Tr,{justifyContent:"center",w:"full",children:[w.jsx(Jt,{fontWeight:700,fontSize:"16px",children:"Your configuration is ready!"}),w.jsx(Jt,{textAlign:"center",children:'Click "Export" to download your configuration file.'}),w.jsxs(Jt,{textAlign:"center",children:["To apply the configuration to your vehicles, email the file to support@evam.life and specify which vehicles should be updated."," "]}),w.jsx(Jt,{textAlign:"center",children:"Remember to save your configuration file for future use. You will need it if you want to edit the configuration later."})]})}),w.jsx(lC,{children:w.jsxs(kr,{w:"full",children:[w.jsx(cr,{borderRadius:"full",w:"full",bg:"white",color:"black",onClick:d,border:"1px solid black",children:"Cancel"}),w.jsx(cr,{pos:"relative",borderRadius:"full",w:"full",bg:"evam_orange",color:"white",onClick:o,children:"Download"})]})})]})]}),w.jsxs(Hg,{isOpen:u,onClose:s,children:[w.jsx(Zg,{}),w.jsxs(Kg,{children:[w.jsx(Gg,{children:"Do you want to save your changes before leaving?"}),w.jsx(qg,{children:w.jsxs(kr,{w:"full",children:[w.jsx(cr,{borderRadius:"full",w:"full",bg:"#E20A0A",color:"#FFFFFF",onClick:n,children:"Exit"}),w.jsx(cr,{pos:"relative",borderRadius:"full",w:"full",bg:"#000000",color:"#FFFFFF",onClick:()=>{o(),r({to:"/"})},children:"Save"})]})})]})]}),w.jsxs(vn,{w:"full",children:[w.jsxs(Tr,{w:"full",spacing:"32px",children:[w.jsxs(kr,{w:"full",justifyContent:"space-between",children:[w.jsx(oi,{children:"Create configuration"}),w.jsxs(kr,{children:[w.jsx(cr,{onClick:l,borderRadius:"full",w:`${t==null?void 0:t.width}px`,bg:"white",border:"1px solid black",color:"black",children:"Exit"}),w.jsx(cr,{borderRadius:"full",ref:e,bg:"black",color:"white",onClick:f,px:"64px",_hover:{background:"#252525"},children:"Export"})]})]}),w.jsx(Jt,{children:"Easily edit your settings to personalize your experience. To update your configuration, enter your information and adjust your preferences under general settings, select and manage your favorite options, and add or update your contact information. Once you've made all the desired changes, simply save and export your configuration. Your customized settings can then be uploaded to Vehicle Services for seamless integration."})]}),w.jsxs(C4,{variant:"unstyled",mt:"32px",children:[w.jsxs(E4,{bg:"#E3E8EC",color:"#000000",h:"65px",borderRadius:"8px",children:[w.jsx(Lv,{fontSize:"24px",w:"200px",_selected:{fontWeight:700,color:"black"},color:"#80868B",children:"General"}),w.jsx(Lv,{_selected:{fontWeight:700,color:"black"},fontSize:"24px",w:"200px",color:"#80868B",children:"Favourites"}),w.jsx(Lv,{_selected:{fontWeight:700,color:"black"},fontSize:"24px",w:"200px",color:"#80868B",children:"Contacts"})]}),w.jsx(T4,{mt:"-4px",height:"4px",bg:"primary_orange",borderRadius:"1px"}),w.jsxs(P4,{pt:"72px",children:[w.jsx(nme,{}),w.jsx(ime,{}),w.jsx(ome,{})]})]})]})]}):w.jsx(K0,{})}}),xC=Mce.update({id:"/_withNavbar",getParentRoute:()=>O3}),ame=Wpe.update({path:"/",getParentRoute:()=>xC}),lme=sme.update({path:"/create",getParentRoute:()=>xC}),ume=O3.addChildren({WithNavbarRoute:xC.addChildren({WithNavbarCreateRoute:lme,WithNavbarIndexRoute:ame})}),{definePartsStyle:cme,defineMultiStyleConfig:dme}=Ut(h$.keys),fme={initialColorMode:"light",useSystemColorMode:!1},hme=cme({control:{_checked:{bg:"black",borderColor:"black"}}}),pme=dme({baseStyle:hme}),mme=IJ({config:fme,fonts:{heading:"lato"},colors:{grey_0:"#5F6368",grey_1:"#F0F4F8",grey_6:"#A0A5AA",evam_orange:"#FF7B52",primary_orange:"#FF5F2E"},components:{Input:{defaultProps:{variant:"filled"}},Checkbox:pme,Select:{defaultProps:{variant:"filled"}}}}),vme=gW({routeTree:ume});Ox.createRoot(document.getElementById("root")).render(w.jsx(ft.StrictMode,{children:w.jsx(Qie,{theme:mme,disableGlobalStyle:!0,children:w.jsx(xU,{children:w.jsx(fW,{router:vme})})})})); diff --git a/assets/lato-latin-400-normal-B11PyLys.woff b/assets/lato-latin-400-normal-B11PyLys.woff new file mode 100644 index 0000000..a2033ca Binary files /dev/null and b/assets/lato-latin-400-normal-B11PyLys.woff differ diff --git a/assets/lato-latin-400-normal-BEhtfm5r.woff2 b/assets/lato-latin-400-normal-BEhtfm5r.woff2 new file mode 100644 index 0000000..ff60934 Binary files /dev/null and b/assets/lato-latin-400-normal-BEhtfm5r.woff2 differ diff --git a/assets/lato-latin-ext-400-normal-C8eBZ-j2.woff2 b/assets/lato-latin-ext-400-normal-C8eBZ-j2.woff2 new file mode 100644 index 0000000..edb9fa6 Binary files /dev/null and b/assets/lato-latin-ext-400-normal-C8eBZ-j2.woff2 differ diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..f2cdc3a Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..3ca8983 --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + + Evam Coms Configuration Tool + + + + +
+ + diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..a5b0d99 Binary files /dev/null and b/logo.png differ